You are not logged in.
Pages: 1
I have 4Gb of ram installed, but free -m says that 1787 is used.
I'm using Gnome with awn. I have firefox running, sonata, mpd, Emesene, thunderbird, and compiz. And compiz is really laggy sometimes.
how to I output the "top" command to a way I can copy and paste the data here?
Offline
Hmm, I would say firefox on this one, depending on how many tabs I mean I have 15 tabs open, and it's taking up 350 megs. One thing I noticed though is sometimes certain web apps tend to run rampant, like facebook or gmail. I have no idea why this is but htop will tell me firefox is using far more ram and cpu than it should I close facebook, or gmail, and then it goes back to normal.
output the top command like this:
top | less
you could use top | more but I couldn't leave the innuendo alone
A thing of beauty is a joy forever
-John Keats
Offline
Remember that you shouldn't count cached memory into your "used" memory (since that are just remains of programs that you have used and not using atm), so the relevant number for this consideration is in the second line "+/- buffers/cache". Or even better use the ps_mem.py script, that lists memory usage by program.
Offline
Linux is a system that tends to cache a lot of stuff, application, files, etc., using all of available ram
Don't worry if an application needs to use more RAM, system will just drop some of cached data...
It would also be great to have my computer built into my skull. That way I could surf the Net during useless periods of life, such as when people talk to me.
Offline
$free -m
total used free shared buffers cached
Mem: 3884 2484 1399 0 542 922
-/+ buffers/cache: 1019 2864
Swap: 2000 0 2000
This means that I'm only using (2484 - 922 = ) 1562 Mb of ram?
Last edited by zephyrus17 (2009-05-13 10:37:46)
Offline
$free -m total used free shared buffers cached Mem: 3884 2484 1399 0 542 922 -/+ buffers/cache: 1019 2864 Swap: 2000 0 2000
This means that I'm only using (2484 - 922 = ) 1562 Mb of ram?
no, 2484-922-542=~1019 Mb
Memory Buffers - A page cache for the virtual memory system. The
kernel keeps track of frequently accessed memory and stores the
pages here.Memory Cached - Any modern operating system will cache files
frequently accessed. You can see the effects of this with the
following commands:
Last edited by pressh (2009-05-13 11:08:37)
Offline
for more...you can also sort the top command by %memory, %cpu, etc. --- similiar to windows task manager.
for example:
$top
to launch the program. pressing h brings up help, q exits.
pressing uppercase F (shift+f) pulls up a "sort field" option. from here you can choose to sort by process id, process status, %memory, %cpu, and more.
to sort by memory, you would press "n" to make that selection, and then enter to verify and return to the overview. top will now sort by memory usage.
This doesnt give any hard numbers, but its a very useful way to see what is consuming memory and cpu and under what conditions it does so.
hope that helps.
PS - top can do many more useful things. I suggest investigating it some more
Offline
@thisperishedmin: I will. top is quite a nifty program
@pressh: 1Gb still seems like quite a lot.. What's the main drain in this case? Compiz?
Offline
@thisperishedmin: I will. top is quite a nifty program
@pressh: 1Gb still seems like quite a lot.. What's the main drain in this case? Compiz?
yes, it is a lot of RAM used,
with KDE, Openoffice doc open, amarok playing, thunderbird mail open, firefox with flash playing, lightzone (editing CR2 pic), konqueror (with picture preview) it takes ~700MB
But I think that you may need to optimize software you are using (whenever possible). Still with this amount of spare RAM, you are fine.
Offline
htop is rather handy, it's more readable than top.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
htop is rather handy, it's more readable than top.
just installed to try it out (pacman -S htop for anyone who is wondering) and I must say it seems pretty nice...
I'll probably continue to use top just because I use it alot at work where whatever comes default is a necessity to get around. (This is why I've learned Vi and why I've learned what I know about top so far =P)
Thanks for the recommendation though
Offline
Pages: 1