commands for RAM and swap usage?

Taking care of your Linux box.

commands for RAM and swap usage?

Postby hameedkhan » Mon May 10, 2004 9:31 pm

hi,
today i was wondering that how can i check my RAM usage and swap usage. so, i google for it tried online manuals. i have found few ways to check how much RAM (physical memory) is in use and how much swap (virtual memory) is in use.

cat /proc/meminfo
and the free command.

all i want is to confirm that are those only two ways we can find about RAM and swap usage. or there are any other traditional or well known commands. if you know about them please let me it will be very kind of you.

Thanks,
Hameed Khan.
hameedkhan
Havaldaar
 
Posts: 141
Joined: Wed Apr 07, 2004 12:58 am
Location: Karachi, Pakistan

Re: commands for RAM and swap usage?

Postby lambda » Mon May 10, 2004 11:33 pm

vmstat and top.
lambda
Major General
 
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Website: http://www.hungry.com/~fn/
Location: Lahore

Postby hameedkhan » Tue May 11, 2004 12:03 am

Thanks lambda.
hameedkhan
Havaldaar
 
Posts: 141
Joined: Wed Apr 07, 2004 12:58 am
Location: Karachi, Pakistan

Postby kernel-trap » Tue May 11, 2004 9:31 am

another command is

free -m

Regards
kernel-trap
Havaldaar
 
Posts: 105
Joined: Thu Dec 25, 2003 2:31 pm

Postby farhantoqeer » Tue May 11, 2004 4:15 pm

top is great if you intend to work at shell, for gui, use kpm or gtop.
A: Yes
Q: Is top-posting bad?
farhantoqeer
Major General
 
Posts: 917
Joined: Thu Jun 27, 2002 5:45 pm
Website: http://www.emergen.biz
Location: Karachi

Postby zaeemarshad » Tue May 11, 2004 4:37 pm

top is the best...

while in top press Shift+M to sort proceses by memory usage and shift + P to sort processes by CPU usage. press h to see other shortcuts.

Regards
Zaeem
zaeemarshad
Lieutenant Colonel
 
Posts: 660
Joined: Sat Jul 06, 2002 12:35 pm
Website: http://zaeem.no-ip.org
WLM: zarshadvirk@hotmail.com
Yahoo Messenger: negativecreep61@yahoo.com
AOL: zarshadvirk
Location: Islamabad

Postby hameedkhan » Wed May 12, 2004 1:34 am

many many thanks to all of you
hameedkhan
Havaldaar
 
Posts: 141
Joined: Wed Apr 07, 2004 12:58 am
Location: Karachi, Pakistan


Return to “%s” Administration

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron