Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

CPU and Memory Status for Linux

762809Oct 15 2010 — edited Oct 17 2010
Hi,

What is the command line in linux the would display output for total %CPU usage ? for example 100
What is the command line in linux the would display output for total %Memory usage ? for example 100

I tried "top" command but it shows top users individual usage.
top - 01:50:13 up 6 days, 13:03,  2 users,  load average: 0.09, 0.28, 0.43
Tasks: 459 total,   1 running, 457 sleeping,   0 stopped,   1 zombie
Cpu(s):  0.5% us,  0.2% sy,  0.0% ni, 99.3% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   9351560k total,  9305532k used,    46028k free,    15816k buffers
Swap:  5116620k total,   214428k used,  4902192k free,  8120140k cached

  PID USER      PR  NI %CPU    TIME+  %MEM  VIRT  RES  SHR S COMMAND
24748 root      16   0    1  95:58.20  0.1 50912  13m 4996 S X
31316 root      16   0    1   0:02.22  0.0  2232 1264  796 R top
 9277 root      16   0    1  13:01.83  0.2 27620  14m 7504 S gnome-system-mo
12545 oraprod   16   0    0   0:11.79  0.5  613m  45m  43m S oracle
    1 root      16   0    0   0:13.98  0.0  2924  600  512 S init
    2 root      RT   0    0   0:00.42  0.0     0    0    0 S migration/0
    3 root      34  19    0   0:00.09  0.0     0    0    0 S ksoftirqd/0
    4 root      RT   0    0   0:00.28  0.0     0    0    0 S migration/1
    5 root      34  19    0   0:00.14  0.0     0    0    0 S ksoftirqd/1
    6 root      RT   0    0   0:00.29  0.0     0    0    0 S migration/2
    7 root      34  19    0   0:00.02  0.0     0    0    0 S ksoftirqd/2
    8 root      RT   0    0   0:00.21  0.0     0    0    0 S migration/3
    9 root      34  19    0   0:00.12  0.0     0    0    0 S ksoftirqd/3
   10 root       5 -10    0   0:00.02  0.0     0    0    0 S events/0
   11 root       5 -10    0   0:00.02  0.0     0    0    0 S events/1
   12 root       5 -10    0   0:00.02  0.0     0    0    0 S events/2
   13 root       5 -10    0   0:00.03  0.0     0    0    0 S events/3
Thanks a lot

MsK
This post has been answered by Dude! on Oct 16 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 14 2010
Added on Oct 15 2010
7 comments
3,076 views