LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   how 2 c the memory used by processes (https://www.linuxquestions.org/questions/linux-general-1/how-2-c-the-memory-used-by-processes-263171/)

imppayel 12-06-2004 06:04 AM

how 2 c the memory used by processes
 
in windows in windows task manager > process> we can see how much memory each process is taking.
how to see the same thing for each process running in linux o.s. ?

bahramH 12-06-2004 06:26 AM

you have many tools to look at the behavior of your system.

1- The most commonly used is "ps". it has lots of options, and (if not suffcicient ) you can feed its output to "grep" to filter through.
Please refer to the man page of ps and worked out examples for more informations.

2- "top" gives a real time view of your processes (their ID, memory and CPU usage, ...). Again, refer to man pages for all the options.

imppayel 12-08-2004 03:13 AM

top -s
m
is only showing a few of the running processes.
how to see th memory status of all the processes?

hk_linux 12-08-2004 07:40 AM

u have to execute in batch mode

top -n 1 -b (n is the number of iterations)

u can choose to pipe the output to other process, also.


All times are GMT -5. The time now is 05:25 AM.