How to examine the memory usage??


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users How to examine the memory usage??
# 1  
Old 01-09-2003
Question How to examine the memory usage??

Hello,
I'm working with Linux 2.4.18
I'll like to know, if there is a way to know exactly what is using the RAM memory of my box.
I try with ps command, but the size of the memory usage than I can calculate, it is very diferent compared with the information that I get with the free command.

There is an aplication, or a way to examine in detail the RAM usage??

Thanks in advace.
Regards!
# 2  
Old 01-09-2003
Perhaps examining the size column of the output of the top command is what you are looking for?
# 3  
Old 01-09-2003
you can also try vmstat
# 4  
Old 01-09-2003
The linux version of vmstat only provides summary information:

Code:
   Swap
www# vmstat    
   procs                      memory    swap          io     system         cpu
 r  b  w   swpd   free   buff  cache  si  so    bi    bo   in    cs  us  sy  id
 0  0  0   1452  79228 282476  68832   0   0     0     2    2     2   1   1   1

I think the poster was looking for detailed process-by-process RAM usage information, as I understood the post.
# 5  
Old 01-09-2003
Quote:
Originally posted by Neo
Perhaps examining the size column of the output of the top command is what you are looking for?
I try it to, but the result it's the same that ps.
# 6  
Old 01-09-2003
Quote:
Originally posted by Neo
I think the poster was looking for detailed process-by-process RAM usage information, as I understood the post.
Yes, that is what I'm looking for.
I'm sorry if the sintax of the post looks a litle weird, my english is not very good Smilie

Thanks again!|
# 7  
Old 01-10-2003
You may have to look closer at the ps command for process by process information (realize that this still does not give you anything but a snapshot of what is going on when you run it - building a script to collect the information might help.).

Determine process memory usage (Note 'accepted answer')

Another thing to note - you run the ps command and do your calculation. That uses memory, cpu. You run the free command and that uses cpu, memory...if you are on a single cpu server, there is no way you can run both commands at exactly the same time. Other processes will finish and give back memory, some will start up and eat up more. You need to understand that you would never get A=B.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

2. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

3. 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

4. Solaris

Memory usage in Solaris - memory not freed?

Hi, I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory. I'm using "top" to get the free memory and the memory usage of processes. Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies

5. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

6. 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

7. UNIX for Dummies Questions & Answers

cpu, memory and virtual memory usage

Hi All, Does anyone know what the best commands in the UNIX command line are for obtaining this info: current CPU usage memory usage virtual memory usage preferably with date and time parameters too? thanks ocelot (4 Replies)
Discussion started by: ocelot
4 Replies

8. HP-UX

How can I get memory usage or anything that show memory used from sar file?

Refer from title: How can i get memory used or anything that can show memory from sar file example on solaris:- we can use sar with option to show memory used at time that sar crontab run. on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies

9. Programming

CPU usage and memory usage

Please tell me solaris functions/api for getting following information 1- Function that tells how much memory used by current process 2- Function that tells how much memory used by all running processes 3- Function that tells how much CPU is used by current process 4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question