hi allA page cache keeps some pages (entire pages).
I have confusion regarding the usage of page cache and buffer cache.
AFAIK both are disk caches. Also buffer cache are part of
page cache. Then why do we require these two seperate caches.
TID sanjayk
A buffer cache keeps some buffers (generally less than a page).
When you try to access a page, the PC will look in the page cache.
When you try to access a buffer, the PC will look in the buffer cache.
Buffers and pages are two very different objects, use very often by the kernel. It is better to have differents caches for each object for a better understanding and also better performances.
-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/