Top SMP output - Linux

This is a discussion on Top SMP output - Linux ; Hi: i am working with a linux box. i would like to parse top`s output in a SMP system. i have read the documentation and found that 'top C' command 'display total CPU states instead of individual CPUs. This option ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Top SMP output

  1. Top SMP output

    Hi:

    i am working with a linux box. i would like to parse top`s output in a
    SMP system.

    i have read the documentation and found that 'top C' command 'display
    total CPU states instead of individual CPUs. This option only affects
    SMP systems'. But as i do not have a SMP system at home, it would be
    great if someone could post here (or email me), a copy of 'top' and
    'top C' output in a multiple cpu system (in batch mode please).

    Thank you very much in advance ...

    By the way, does this output differ much from the ones of other
    unixes?? thank you very much

  2. Re: Top SMP output

    Asier wrote:
    > Hi:
    >
    > i am working with a linux box. i would like to parse top`s output in a
    > SMP system.
    >
    > i have read the documentation and found that 'top C' command 'display
    > total CPU states instead of individual CPUs. This option only affects
    > SMP systems'. But as i do not have a SMP system at home, it would be
    > great if someone could post here (or email me), a copy of 'top' and
    > 'top C' output in a multiple cpu system (in batch mode please).
    >
    > Thank you very much in advance ...
    >
    > By the way, does this output differ much from the ones of other
    > unixes?? thank you very much


    Here ya go...


    [root@fridge root]# top -b


    13:55:58 up 39 min, 2 users, load average: 1.00, 0.97, 0.84
    59 processes: 57 sleeping, 2 running, 0 zombie, 0 stopped
    CPU states: cpu user nice system irq softirq iowait idle
    total 9.9% 0.0% 40.0% 0.0% 0.0% 0.0% 50.0%
    cpu00 0.0% 0.0% 0.0% 0.0% 0.0% 0.0% 100.0%
    cpu01 19.8% 0.0% 80.1% 0.0% 0.0% 0.0% 0.0%
    Mem: 2061104k av, 68648k used, 1992456k free, 0k shrd, 12108k
    buff
    38080k active, 2948k inactive
    Swap: 2048184k av, 0k used, 2048184k free 15216k
    cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    845 root 25 0 1488 1488 856 R 49.9 0.0 27:09 1 minicom
    1 root 15 0 492 492 440 S 0.0 0.0 0:05 1 init
    2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0
    migration/0
    3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1
    migration/1
    4 root 15 0 0 0 0 SW 0.0 0.0 0:13 1 keventd
    5 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0
    ksoftirqd/0
    6 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1
    ksoftirqd/1
    8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand
    7 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd
    9 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
    10 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kupdated
    11 root 25 0 0 0 0 SW 0.0 0.0 0:00 0
    mdrecoveryd
    17 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 ahc_dv_0
    18 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 ahc_dv_1
    19 root 25 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_0
    20 root 25 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_1
    23 root 20 0 0 0 0 SW 0.0 0.0 0:00 1
    qla2300_dpc2
    24 root 20 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_2
    28 root 16 0 0 0 0 SW 0.0 0.0 0:03 0 raid1d
    29 root 16 0 0 0 0 SW 0.0 0.0 0:02 1
    raid1syncd
    30 root 15 0 0 0 0 SW 0.0 0.0 0:04 0 raid1d
    31 root 15 0 0 0 0 SW 0.0 0.0 0:02 0
    raid1syncd
    32 root 15 0 0 0 0 SW 0.0 0.0 0:09 0 raid1d
    33 root 15 0 0 0 0 SW 0.0 0.0 0:06 0
    raid1syncd
    34 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 raid1d
    35 root 15 0 0 0 0 SW 0.0 0.0 0:00 1
    raid1syncd
    36 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
    80 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
    270 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kjournald
    271 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kjournald
    548 root 15 0 572 572 496 S 0.0 0.0 0:00 1 syslogd
    552 root 15 0 460 460 404 S 0.0 0.0 0:00 0 klogd
    562 root 15 0 440 440 384 S 0.0 0.0 0:00 0
    irqbalance
    572 rpc 20 0 584 584 508 S 0.0 0.0 0:00 1 portmap
    591 rpcuser 25 0 724 724 644 S 0.0 0.0 0:00 1 rpc.statd
    640 root 15 0 1524 1524 1284 S 0.0 0.0 0:00 0 sshd
    660 root 25 0 716 716 636 S 0.0 0.0 0:00 1
    rpc.rquotad
    664 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 nfsd



    ===================
    root@fridge root]# top -Cb


    13:56:13 up 40 min, 2 users, load average: 1.00, 0.97, 0.84
    59 processes: 57 sleeping, 2 running, 0 zombie, 0 stopped
    CPU states: cpu user nice system irq softirq iowait idle
    total 13.3% 0.0% 36.6% 0.0% 0.0% 0.0% 50.0%
    Mem: 2061104k av, 68820k used, 1992284k free, 0k shrd, 12260k
    buff
    38256k active, 2948k inactive
    Swap: 2048184k av, 0k used, 2048184k free 15216k
    cached

    PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
    845 root 25 0 1488 1488 856 R 49.9 0.0 27:24 1 minicom
    1 root 15 0 492 492 440 S 0.0 0.0 0:05 1 init
    2 root RT 0 0 0 0 SW 0.0 0.0 0:00 0
    migration/0
    3 root RT 0 0 0 0 SW 0.0 0.0 0:00 1
    migration/1
    4 root 15 0 0 0 0 SW 0.0 0.0 0:13 1 keventd
    5 root 34 19 0 0 0 SWN 0.0 0.0 0:00 0
    ksoftirqd/0
    6 root 34 19 0 0 0 SWN 0.0 0.0 0:00 1
    ksoftirqd/1
    8 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kscand
    7 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd
    9 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
    10 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kupdated
    11 root 25 0 0 0 0 SW 0.0 0.0 0:00 0
    mdrecoveryd
    17 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 ahc_dv_0
    18 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 ahc_dv_1
    19 root 25 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_0
    20 root 25 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_1
    23 root 20 0 0 0 0 SW 0.0 0.0 0:00 1
    qla2300_dpc2
    24 root 20 0 0 0 0 SW 0.0 0.0 0:00 1 scsi_eh_2
    28 root 16 0 0 0 0 SW 0.0 0.0 0:03 0 raid1d
    29 root 16 0 0 0 0 SW 0.0 0.0 0:02 1
    raid1syncd
    30 root 15 0 0 0 0 SW 0.0 0.0 0:04 0 raid1d
    31 root 15 0 0 0 0 SW 0.0 0.0 0:02 0
    raid1syncd
    32 root 15 0 0 0 0 SW 0.0 0.0 0:09 0 raid1d
    33 root 15 0 0 0 0 SW 0.0 0.0 0:06 0
    raid1syncd
    34 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 raid1d
    35 root 15 0 0 0 0 SW 0.0 0.0 0:00 1
    raid1syncd
    36 root 15 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
    80 root 25 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
    270 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kjournald
    271 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 kjournald
    548 root 15 0 572 572 496 S 0.0 0.0 0:00 1 syslogd
    552 root 15 0 460 460 404 S 0.0 0.0 0:00 0 klogd
    562 root 15 0 440 440 384 S 0.0 0.0 0:00 0
    irqbalance
    572 rpc 20 0 584 584 508 S 0.0 0.0 0:00 1 portmap
    591 rpcuser 25 0 724 724 644 S 0.0 0.0 0:00 1 rpc.statd
    640 root 15 0 1524 1524 1284 S 0.0 0.0 0:00 0 sshd
    660 root 25 0 716 716 636 S 0.0 0.0 0:00 1
    rpc.rquotad
    664 root 15 0 0 0 0 SW 0.0 0.0 0:00 1 nfsd



    --

    www.linuxscope.com
    To reply, replace idinsig with netnews

+ Reply to Thread