Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: asmem memory disply inacurate?, Diiference between Free and Used %< Next Oldest | Next Newest >
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: Sep. 11 2005,17:41 QUOTE

When asmem is run with the -asis option, showing the used memory percentage instead of free percentage, there is a disparity. I have 512megs of memory, and 418 megs or 81% free, yet with the option, it is 57% used. Has this program been updated lately?
Back to top
Profile PM 
undertow Offline





Group: Members
Posts: 48
Joined: Mar. 2005
Posted: Sep. 11 2005,18:57 QUOTE

i'd suggest dumping the whole shebang and getting something integrated like gkrellm, which when stripped down might make a smaller footprint than 4 different little widgets.  It would definitely be 'cleaner' and have a 'new' look to it.  the dockapps are a bit hideous in my opinion.  gkrellm has all the capabilities that those 4 do, and could be skinned to match the new DSL theme, like xmms and flux.  (yes i know there's a gkrellm.dsl)
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Sep. 11 2005,19:04 QUOTE

It's probably displaying cached memory in with the "57% used" portion.  I'd say that the "81% free" is the accurate reading of actually free physical ram.

Try using the "free" command in a terminal to see the difference between what is actually being used and what is used when including cache & buffers.  Your cached memory is there storing stuff from previously-used applications, for quick retrieval if necessary.  If that ram is needed for something else it will immediately be freed.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
chaostic Offline





Group: Members
Posts: 328
Joined: Mar. 2005
Posted: Sep. 11 2005,21:40 QUOTE

Okay, ran free and I see a whole lot wrong with the asmem program, from atleast an astetics point of view. The default command shows used amount of memory but free amount percentage, as calculated from asmem:
asmem: 370476 71%
The -used option shows as calulated by asmem:
asmem -used: 1448856 28%
Now the -asis option shows the values as read from device:
asmem -asis: 122760 25%
-Used -Asis shows the used memory values as read from device:
asmem -used -asis: 382572 74%

It also takes a long time for the non -asis values to become correct.

Free reads:
dsl@box:~$ free
             total         used         free       shared      buffers
Mem:    515332    382632   132700          0         3948
Swap:       0              0             0
Total:    515332    382632   132700

So now I run it as:
asmem -used -asis -withdrawn -bg black -fg red -memory red &>/dev/null &

The default launch for this chould be changed to this for the next version of DSL, imho, because -used -asis is more accurate and would show a better representation of the bar in asmem (which, if I recall correctly, used to switch around what was shown on the little bar when the different options were used, but doesn't now)

---
dsl 1.5
Back to top
Profile PM 
3 replies since Sep. 11 2005,17:41 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: asmem memory disply inacurate?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code