Linux memory usage


 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Linux memory usage
# 1  
Old 09-22-2005
Linux memory usage

What's the best way to find out how much memory is being used/available? I tried using free, but I didn't quite understand the output. Can someone explain it?

$ free
total used free shared buffers cached
Mem: 16304536 16256376 48160 0 234000 15358344
-/+ buffers/cache: 664032 15640504
Swap: 4194192 0 4194192
$ man free
$ free -m
total used free shared buffers cached
Mem: 15922 15877 44 0 228 15000
-/+ buffers/cache: 649 15273
Swap: 4095 0 4095
# 2  
Old 09-22-2005
A good way at getting a quick overview is the top command (look at the top few lines of output).

$ top

Here's some (albeit RedHat) specifics that you will find useful
http://www.redhat.com/docs/manuals/l...y-rhlspec.html

Cheers
ZB
# 3  
Old 09-22-2005
Also keep in mind that Linux uses all available memory whenever it can for buffers and such. Memory not used is memory sitting around doing nothing, afterall. But it gives up the buffers when something else wants the memory. So don't panic when you see 100% of memory being used.
# 4  
Old 09-24-2005
Quote:
Originally Posted by junkmail426
tried using free, but I didn't quite understand the output.
Code:
$ cat /proc/meminfo

has a plain one
# 5  
Old 09-24-2005
Can try this, which will update the memory useage every 2 seconds. Open up a terminal and type

watch 'cat /proc/meminfo'
# 6  
Old 02-22-2006
In solaris, I use vmstat to see for high sr (Scan Rate) to detect memory deficiency.

What is the equivalent thing to do in redHat Linux Advanced server 3.0?
# 7  
Old 02-27-2006
Any Linux Expert here?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Linux Application Memory usage

Hello We are in the process of migrating few of our applications in our linux boxes to new linux box to streamline our applications . In this context , i would like to know how we can calculate a particular application is used .? This data will then be used to select which applications need... (7 Replies)
Discussion started by: ron5174
7 Replies

2. Red Hat

Swap memory usage is high in Linux

Hi , There is one following alert . Message : cdm:Average (2 samples) swap memory usage is now 91%, which is above the warning threshold (90%) Here is my findings. Output of TOP command in Linux server. top - 14:21:44 up 6 days, 4:48, 1 user, load average: 2.55, 2.06,... (3 Replies)
Discussion started by: Maddy123
3 Replies

3. UNIX for Advanced & Expert Users

Memory Usage(Physical) in one Word? Suse Linux.

Experts, I have been trying to figure out what is the total physical memory used from this output: And what is the free memory available for the application or any programs. The answer has to be in this format: 1. Physical Memory Used= xx.xx% 2. Physical Memry available= yy.yy% ... (5 Replies)
Discussion started by: rveri
5 Replies

4. Shell Programming and Scripting

Shell script for logging cpu and memory usage of a Linux process

I am looking for a way to log and graphically display cpu and RAM usage of linux processes over time. Since I couldn't find a simple tool to so (I tried zabbix and munin but installation failed) I started writing a shell script to do so The script file parses the output of top command through... (2 Replies)
Discussion started by: andy_dufresne
2 Replies

5. UNIX for Advanced & Expert Users

linux memory buffers & cache usage

18:45:47 # free -m total used free shared buffers cached Mem: 96679 95909 770 0 1530 19550 -/+ buffers/cache: 74828 21851 Swap: 12287 652 11635 Hi all. The below output is from a RHEL 4.5... (0 Replies)
Discussion started by: drummerrob
0 Replies

6. Shell Programming and Scripting

Memory Usage Monitor on Linux/SunOS Servers

ok, so i'm trying to write a shell script (not perl) that monitors memory usage on a server. but i'm confused as to what fields exactly determines that yes, memory is low on a particular server. it sounds simple enough, but it really isn't. what do I look for in the field below? ... (1 Reply)
Discussion started by: SkySmart
1 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. Linux

Memory Usage on Linux server

Hi , As I am new to Linux server, I am facing some doubts like: On linux server virtual memory usage goes to 99%, but I have Threshold limit of 95%. So it crossed the threshold limit and alarmd. Yesterday I moniterd the server using TOP command, and found some of Tibco process was consuming... (4 Replies)
Discussion started by: Jaywantmm
4 Replies

9. UNIX for Dummies Questions & Answers

Memory Usage on Linux server

Hi , As I am new to Linux server, I am facing some doubts like: On linux server virtual memory usage goes to 99%, but I have Threshold limit of 95%. So it crossed the threshold limit and alarmd. Yesterday I moniterd the server using TOP command, and found some of Tibco process was consuming... (1 Reply)
Discussion started by: Jaywantmm
1 Replies

10. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
Login or Register to Ask a Question