2012-11-19 15:38:04 Category: LINUX1. Top 10 CPU-intensive processes: PS Auxw|head-1;ps auxw|sort-rn-k3|head-10 2. The top 10 processes of memory consumption PS Auxw|head-1;ps auxw|sort-rn-k4|head-1 0 3. The top 10 processes for virtual memory use PS Auxw|head-1;ps auxw|sort-rn-k5|head-10 4. You can also try PS auxw--sort=rss PS auxw--sort=%cpu 5. Take a look at a few parameters including The memory occupancy rate of the%MEM process MAJFL is the major page fault count, the size of the virtual memory used by the VSZ process, the size of the resident set used by the RSS process, or the size of the actual RAM (RSS is the "resident set Siz E "meaning physical memory used) TTY associated with process terminal (TTY) serial port terminal (/DEV/TTYSN) pseudo terminal (/dev/pty/) control terminal (/dev/tty) console terminal (/dev/ttyn,/dev /console) virtual terminal (/dev/pts/n) STAT Check Status: The process state is represented by a character, such as R (running is running or ready to run), S (sleeping Sleep), I (Idle idle), Z (Zombie), D (non-disruptive sleep, Usually I/O), P (Waiting for a Swap page), W (Swap out, indicates the current page is not in memory), N (Low priority Task) T (terminate termination), W has no resident pages D non-interruptible uninterruptible sleep (usually IO) R is running, or the process in the queue S is in hibernation T stop or be traced Z Zombie process W enters memory swap (invalid starting from kernel 2.6) x dead Process <高优先级 n低优先级="" l有些页被锁进内存="" s包含子进程="" +位于后台的进程组;="" l多线程,克隆线程="" multi-threaded="" (using="" clone_thread,="" like="" nptl="" pthreads="">
View the most CPU-and memory-intensive processes under Linux