public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How Inactive may be much greather than cached?
@ 2007-10-18  6:24 Vasily Averin
  2007-10-18  6:27 ` Nick Piggin
  0 siblings, 1 reply; 6+ messages in thread
From: Vasily Averin @ 2007-10-18  6:24 UTC (permalink / raw)
  To: Linux Kernel Mailing List, linux-ext4; +Cc: devel

Hi all,

could anybody explain how "inactive" may be much greater than "cached"?
stress test (http://weather.ou.edu/~apw/projects/stress/) that writes into
removed files in cycle puts the node to the following state:

MemTotal: 16401648 kB
MemFree: 636644 kB
Buffers: 1122556 kB
Cached: 362880 kB
SwapCached: 700 kB
Active: 1604180 kB
Inactive: 13609828 kB

At the first glance memory should be freed on file closing, nobody refers to
file and ext3_delete_inode() truncates inode. We can see that memory is go away
from "cached", however could somebody explain why it become "invalid" instead be
freed? Who holds the references to these pages?

thank you,
	Vasily Averin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-10-18 14:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-18  6:24 How Inactive may be much greather than cached? Vasily Averin
2007-10-18  6:27 ` Nick Piggin
2007-10-18  7:14   ` Vasily Averin
2007-10-18  7:27     ` Nick Piggin
2007-10-18 10:33       ` Vasily Averin
2007-10-18 14:17       ` Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox