Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I can't answer for why the output of 'free' is so cryptic, but I can tell you that the "buffers/cache" line shows your actual used/free memory. So in your output, you have 100MB used and 22MB available.
The top "Mem" line has something to do with memory that is allocated, but not actually being used, which is why it shows less free memory. You can usually ignore that line.
Do some searching - this comes up all the time.
128Meg and no swap - brave lad.
From a post a little while ago, think of buffers as "in-flight" data. Cache is disk cache - helps alleviate hard disk latency.
Fluctuates based on demand for pages from applications - as demand goes up, the cache shrinks.
Leads to high storage occupancy, but in the Linux world this is considered a good goal.
buffer mapps a file descripter into a series of virtual memory locations making tranparent i/o
exactly as syg00 said
but it's important to read virtual here
linux memory use is multilayered and as far as i know all that is returned on creation of a buffer is a pointer to one or more virtual not actual memory pages that are then mapped to actual memory in another lower layer array. The virtual memory space for 32 bit processors is 4gb wide 1 gb kernel space and 3 gb user space. you only have 128mb of ram so exactly what pages are actually in physical ram and what of that physical ram is then being cached by the cpu mmu pipes and what pointers to pages are being cached or buffered at each instant is something that can only be determines by debuggers and what not.
short answer: why bother thinking about "where" the buffer is. It lives in software.