LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2005, 04:35 AM   #1
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Rep: Reputation: 30
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?
 
Old 03-04-2005, 10:01 AM   #2
itsme86
Senior Member
 
Registered: Jan 2004
Location: Oregon, USA
Distribution: Slackware
Posts: 1,246

Rep: Reputation: 59
You just take the value under 'free' and add 'buffers' and 'cache' to it.
 
Old 03-04-2005, 04:29 PM   #3
audibel
Member
 
Registered: Oct 2004
Distribution: Debian Sarge
Posts: 177

Original Poster
Rep: Reputation: 30
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.

Last edited by audibel; 03-04-2005 at 04:31 PM.
 
Old 03-04-2005, 07:51 PM   #4
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
ya, check out /proc/meminfo it may use that..
cat /proc/meminfo

Last edited by 95se; 03-05-2005 at 10:01 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
buffer/cache variable for free command... audibel Linux - Software 3 12-14-2007 03:54 PM
where and how to say squid how many free space to use for cache ? rino2003 Linux - Software 0 12-14-2004 01:12 PM
Free Software, Free Society: Selected Essays of Richard M. Stallman irfanhab Linux - General 1 11-09-2004 07:22 AM
Free Gillete Products + list of other free stuff looksmart123 General 1 08-08-2004 04:38 PM
Free, free,FREE=? no money, = Freedom? murshed Linux - Newbie 8 01-20-2003 08:01 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration