disk cache configuration

Submitted by mbmessaoud
on May 5, 2009 - 10:18am

Hi

How to configure disk cache in linux kernel

the first parameter arametre that is displayed when this command is exceuted

cat /proc/meminfo |grep Cached
Cached: 250492 kB ( How to change this value?)
SwapCached: 4700 kB

Any comment is welcome

no fixed value

strcmp
on
May 5, 2009 - 1:28pm

there is no fixed value. no memory is wasted, if you start more applications or allocate more application memory, cache size gets smaller. if you exit the applications or get them swapped out, or if you read many files, cache size will grow. there are some knobs for the balance in /proc/sys/vm/ , but most people get along with the default, it is easy to misconfigure.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.