LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   getting the buffer/cache free value from free (https://www.linuxquestions.org/questions/programming-9/getting-the-buffer-cache-free-value-from-free-297496/)

audibel 03-04-2005 03:35 AM

getting the buffer/cache free value from free
 
Would anybody be able to tell me what the buffer/cache free, and used values would be named for the program free. I'm trying to modify cynapses for karamba to show the Actual current usage of RAM instead of what is being held, and would like to use those values. I tried things like %bu and %bf and %cu and %cf to no effect. I know %um is used memory, so what might buffer/cache used be?

itsme86 03-04-2005 09:01 AM

You just take the value under 'free' and add 'buffers' and 'cache' to it.

audibel 03-04-2005 03:29 PM

Maybe you misunderstand my question...

I'm running karamba, with cynapses... and instead of it printing the value %um of %tm (used memory of total memory) I want to print the used buffer variable... Could anyone point me to the variable name, and/or a direction on the net which I might take to discover similar information.

And I'm sorry, now that I look at it, I don't even think it's using the free program.

95se 03-04-2005 06:51 PM

ya, check out /proc/meminfo it may use that..
cat /proc/meminfo


All times are GMT -5. The time now is 07:16 AM.