[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: cli to track app utilizing CPU

Thank you both for your help.

I'd like to summarize the CLIs that I have used to
check the offending application:

1.  top

- press <M> [capital M]  - this sorts the
summarized memory util version in by memory usage.

2.  ps

type: ps -eo pid,vsz,rss,args --sort rss | more

pid - process ID
vsz - virtual memory usage
rss - resident set size (physical RAM)
args - command args to display the processes

I am sorting it by physical RAM output.


free and `cat /proc/meminfo` - provides me a summary snapshot
of free and used memory related statistics; for my purpose
the ps CLI above allowed me to see in detail the offending application.

thanks again.

- a.

> On Friday 27 February 2004 04:07 pm, a s p a s i a wrote:
>> hello,
>> i have 12gig of RAM; checking top i noticed
>> that i only have aroun 500mb fee memory ...
>> though it shows percentage of memory utilized
>> by an app ... is there a CLI that I can use to
>> exactly trace which application or process is
>> using most of my memory, and exactly how much?
> Usually the kernel cache the memory so that it can access it faster. If I
> am
> not mistaken, "free" and "top" shows the memory left that are not cached.
> The
> cached memory is not necessarily used by the application (yet).
> If you use "free", the second line that says "-/+ buffers/cache:" shows
> you
> how much memory is actually use by apps, and how much is cached.
> Someone please correct me if I'm wrong.
> HTH.
> --
> Reuben D. Budiardja
> Department of Physics and Astronomy
> The University of Tennessee, Knoxville, TN
> ---------------------------------------------------------
> "To be a nemesis, you have to actively try to destroy
> something, don't you? Really, I'm not out to destroy
> Microsoft. That will just be a completely unintentional
> side effect."
>                  - Linus Torvalds -
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request redhat com?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]