Use of /proc/sys/vm/drop_caches in RHEL 4 can cause a deadlock or high system load / system hang

Solution Verified - Updated -

Issue

  • A deadlock can occur between kjournald and drop_pagecache.
  • After I operated "echo 1 > /proc/sys/vm/drop_caches" on the system which uses a ext3 filesystem, I experienced a deadlock.
  • High system load and or hang occurs and many threads seen in system calls related to filesystems or IO stuck waiting for a spin_lock

Environment

  • Red Hat Enterprise Linux 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content