public inbox for linux-ext4@vger.kernel.org
 help / color / mirror / Atom feed
* Large buffer cache in EXT4
@ 2013-02-17  4:04 Subranshu Patel
  2013-02-17  6:28 ` Andreas Dilger
  2013-02-17 10:25 ` Martin Steigerwald
  0 siblings, 2 replies; 7+ messages in thread
From: Subranshu Patel @ 2013-02-17  4:04 UTC (permalink / raw)
  To: linux-ext4

I created 2 filesystem on my system (RHEL 6.3, kernel version 2.6.32)
- XFS and EXT4 and mounted them.

On both the filesystem I executed the mdtest tool(opensource tool) for
64 concurrent process. Each process performed the following:
- Create large number of directories
- Remove all the directories

During this time I monitored the memory usage of the system using sar
command. I checked the 3 components - kbmemused, kbbuffers and
kbcached

kbmemused - Amount of used memory in kilobytes. This does not take
into account memory used by the kernel itself.
kbbuffers - buffer cache
kbcached - page cache

While the kbmemused and kbcached component was almost similar in EXT4
and XFS (XFS being a little higher), the kbbuffer showed a totally
different trend.

For EXT4, kbbuffers was:
390999KB for dir creation
364803KB for dir removal
For XFS, kbbuffers was:

1701KB for dir creation
2738KB for dir removal

In kernel 2.6, both buffer cache and page cache are merged. The page
cache caches pages of files. The buffer cache caches disk blocks which
consists of mainly metadata (not file data).

Why is the buffer cache large in case of EXT4 and what is stored in
the buffer cache?

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

end of thread, other threads:[~2013-02-18 15:22 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-17  4:04 Large buffer cache in EXT4 Subranshu Patel
2013-02-17  6:28 ` Andreas Dilger
2013-02-17 10:19   ` Martin Steigerwald
2013-02-18 15:22   ` Eric Sandeen
2013-02-17 10:25 ` Martin Steigerwald
2013-02-18  4:35   ` Theodore Ts'o
2013-02-18 13:16     ` Martin Steigerwald

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