|Syntactic Confectionery Delight|
[OT]What is "buffers" and "cached" memory in Linux system box?by sunshine_august (Scribe)
|on Sep 19, 2008 at 03:31 UTC||Need Help??|
sunshine_august has asked for the
wisdom of the Perl Monks concerning the following question:
Hi, dear all monks:
I am writting a block of code to calculate the free memory of a linux system box, but I am confused with the "buffers" and "cached" memory from the output generated by 'free' command.
What should I think of the "buffers" and "cached" memory? should I think they are part of free memory?
In my opinion, the kernel can take back the "buffers" and "cached" memory when some process require more memory but the free memory is lower than some threshhold.
If I am wrong, pls feel free to correct me, thx:)