LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linux cache question (https://www.linuxquestions.org/questions/linux-newbie-8/linux-cache-question-4175474679/)

L1nuxn00b703 08-25-2013 04:20 PM

linux cache question
 
Hi all,
Ok so I know linux caches all available RAM for faster data access, my question is where is the cache? is it basically the RAM and linux just converts it to cache and calls it cache? and is this process totally different then linux disk cache?

I've googled around but I still havent grasp the concept. Maybe I'm thinking too much into it but I really want to understand.

Thanks.

jailbait 08-25-2013 04:36 PM

"my question is where is the cache"

The cache is memory that is physically located in the CPU. The cache memory can be accessed much faster than main memory which must be accessed across the memory bus. The hardware controls the cache and the kernel has nothing to do with it. The design of the cache system varies from one computer type to another. The hardware uses the memory cache to speed up main memory accesses.

"is this process totally different then linux disk cache?"

Yes. The Linux disk cache is created from main memory (but not all of main memory) by the kernel and it is administered by the kernel to speed up disk access.

------------------------
Steve Stites


All times are GMT -5. The time now is 03:32 PM.