Skip to contentSkip to conversation

MM question

DISCUSSION Jason Titus 2 participants 2 messages Feb 16, 1999 – Feb 18, 1999 Memory management

lore
Share & tools
lore
#0 lore raw

I know this must be on a FAQ or some such, but after many hours of newsgroup/web searching - nothing.

Is there a way to turn off/down the page caching and buffering? I'm doing database work and am having a really time benchmarking other elements of the system due to Linux's friendly caching....

I have tried editing /proc/sys/vm/pagecache and buffermem, but the changes don't seem to do anything (2.2.0-pre5 - x86). Is there something you have to do to activate the changes? Is there some other file to edit to set the variables at boot time?

It sure would be nice to have more control over the caching, like being able to have a /etc/cache.conf file where you could set parameters and mark certain files/filetypes as priority cache items...

Anyway, any help would be much appreciated, and sorry for the ignorant question,

Jason Titus
[email protected]
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address' in the body to [email protected]. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/

#1 lore raw

Hi,

Quoted 3 lines · Jason Titus

Is there a way to turn off/down the page caching and buffering? I'm doing database work and am having a really time benchmarking other elements of the system due to Linux's friendly caching....

No.

You can tune a few different aspects of the VM's management of the caches, but there is really no way to disable them completely.

Quoted 3 lines

It sure would be nice to have more control over the caching, like being able to have a /etc/cache.conf file where you could set parameters and mark certain files/filetypes as priority cache items...

Why exactly do you need it? For plain benchmarking, the standard technique to defeat caching is to benchmark on files much larger than physical memory.

--Stephen
--
To unsubscribe, send a message with 'unsubscribe linux-mm my@address' in the body to [email protected]. For more info on Linux MM,
see: http://humbolt.geo.uu.nl/Linux-MM/