anything about Solaris
cat /dev/urandom
% cat /dev/urandom > /dev/null &
# prtconf -Dvv | grep Opteron
value='Dual Core AMD Opteron(tm) Processor 875'
value='Dual Core AMD Opteron(tm) Processor 875'
value='Dual Core AMD Opteron(tm) Processor 875'
value='Dual Core AMD Opteron(tm) Processor 875'
value='Dual Core AMD Opteron(tm) Processor 875'
value='Dual Core AMD Opteron(tm) Processor 875'
value='Dual Core AMD Opteron(tm) Processor 875'
value='Dual Core AMD Opteron(tm) Processor 875'
# psradm -f 4-7 # psrinfo 0 on-line since 03/06/2008 17:33:23 1 on-line since 03/06/2008 17:33:29 2 on-line since 03/06/2008 17:33:31 3 on-line since 03/06/2008 17:33:33 4 off-line since 07/02/2008 14:49:35 5 off-line since 07/02/2008 14:49:35 6 off-line since 07/02/2008 14:49:35 7 off-line since 07/02/2008 14:49:35
# prtconf -Dvv | grep 'Memory size' Memory size: 24512 Megabytes
% cat /dev/urandom > /dev/null &
# mpstat 1 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 1 0 11 313 206 57 0 0 0 0 19 0 0 0 100 1 0 0 42 25 0 43 0 0 0 0 22 0 0 0 100 2 1 0 0 16 4 4 0 0 0 0 37 0 0 0 100 3 0 0 0 11 0 3 0 0 0 0 27 0 0 0 100 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 0 0 0 379 207 57 0 0 2 0 0 0 1 0 99 1 0 0 485 38 9 55 0 0 0 0 0 0 0 0 100 2 0 0 0 82 3 0 7 0 0 0 40398 0 100 0 0 3 11 0 0 74 0 8 0 0 0 0 96 1 0 0 99 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 0 0 0 315 213 50 0 1 1 0 0 0 0 0 100 1 0 0 0 38 12 50 0 0 1 0 0 0 0 0 100 2 0 0 0 16 6 3 8 0 1 0 39645 1 99 0 0 3 0 0 0 5 0 8 0 0 0 0 95 0 0 0 100 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 0 0 0 319 213 59 0 0 1 0 0 0 0 0 100 1 0 0 0 37 11 50 0 0 1 0 0 0 0 0 100 2 0 0 0 16 6 0 7 0 0 0 40440 0 100 0 0 3 1 0 0 10 0 18 0 0 0 0 101 0 0 0 100 ^C
# mpstat 1 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 1 0 1 313 206 57 0 0 0 0 19 0 0 0 100 1 0 0 42 23 0 43 0 0 0 0 22 0 0 0 100 2 1 0 0 15 4 4 0 0 0 0 36 0 0 0 100 3 0 0 0 9 0 3 0 0 0 0 27 0 0 0 100 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 0 0 0 319 213 105 0 1 1 0 0 0 0 0 100 1 0 0 0 5 1 6 0 0 1 0 0 0 0 0 100 2 11 0 0 7 2 6 0 0 1 0 98 0 0 0 100 3 0 0 0 2 0 2 0 0 0 0 0 0 0 0 100 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 0 0 0 330 228 95 0 0 2 0 0 0 0 0 100 1 0 0 0 11 2 16 0 0 0 0 2 0 0 0 100 2 0 0 0 10 4 6 0 0 0 0 95 0 0 0 100 3 0 0 0 5 0 8 0 0 0 0 1 0 0 0 100 CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl 0 0 0 0 321 219 92 0 0 1 0 0 0 0 0 100 1 0 0 0 9 3 8 0 0 0 0 1 0 0 0 100 2 0 0 0 12 5 6 0 0 0 0 95 0 0 0 100 3 0 0 0 4 1 2 0 0 0 0 0 0 0 0 100 ^C
# vmstat 1 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s1 s2 in sy cs us sy id 0 0 0 33477380 23997964 0 1 0 0 0 0 0 -0 -0 0 0 364 104 107 0 0 100 0 0 0 33388680 23930924 16 31 0 0 0 0 0 0 0 0 0 349 40216 104 0 25 75 0 0 0 33388680 23930944 6 6 0 0 0 0 0 0 0 0 0 352 40175 109 0 25 75 0 0 0 33388680 23930944 6 6 0 0 0 0 0 0 0 0 0 532 40045 117 0 25 75 ^C
# vmstat 1 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s1 s2 in sy cs us sy id 0 0 0 33477380 23997964 0 1 0 0 0 0 0 -0 -0 0 0 364 105 107 0 0 100 0 0 0 33388864 23931072 16 31 0 0 0 0 0 0 0 0 0 363 132 112 0 0 100 0 0 0 33388864 23931092 6 6 0 0 0 0 0 0 0 0 0 360 117 109 0 0 100 0 0 0 33388864 23931092 6 6 0 0 0 0 0 0 0 0 0 360 118 112 0 0 100 ^C
# prstat -n 5 1 3 > /tmp/prstat.log
# cat /tmp/prstat.log
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
5898 root 1048K 692K cpu0 0 5 0:02:10 25% cat/1
5902 root 2992K 2500K cpu2 59 0 0:00:00 0.0% prstat/1
323 root 1740K 940K sleep 59 0 0:00:00 0.0% smcboot/1
9 root 11M 9772K sleep 59 0 0:01:15 0.0% svc.configd/17
7 root 12M 11M sleep 59 0 0:00:31 0.0% svc.startd/16
Total: 43 processes, 181 lwps, load averages: 0.88, 0.35, 0.30
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
5898 root 1048K 692K cpu0 0 5 0:02:11 25% cat/1
5902 root 3332K 2712K cpu2 59 0 0:00:00 0.0% prstat/1
323 root 1740K 940K sleep 59 0 0:00:00 0.0% smcboot/1
9 root 11M 9772K sleep 59 0 0:01:15 0.0% svc.configd/17
7 root 12M 11M sleep 59 0 0:00:31 0.0% svc.startd/16
Total: 43 processes, 181 lwps, load averages: 0.88, 0.36, 0.30
PID USERNAME SIZE RSS STATE PRI NICE TIME CPU PROCESS/NLWP
5898 root 1048K 692K cpu0 0 5 0:02:12 25% cat/1
5902 root 3332K 2712K cpu2 59 0 0:00:00 0.0% prstat/1
323 root 1740K 940K sleep 59 0 0:00:00 0.0% smcboot/1
9 root 11M 9772K sleep 59 0 0:01:15 0.0% svc.configd/17
7 root 12M 11M sleep 59 0 0:00:31 0.0% svc.startd/16
Total: 43 processes, 181 lwps, load averages: 0.88, 0.36, 0.31
# ps -ef | grep 'cat /dev/urandom'
root 5898 5765 25 16:25:15 pts/1 23:15 cat /dev/urandom
root 5957 5765 0 16:48:30 pts/1 0:00 grep cat /dev/urandom
# ps -eo 'pid args' | grep 'cat /dev/urandom' 5898 cat /dev/urandom 5981 grep cat /dev/urandom
# pgrep -f 'cat /dev/urandom' 5898
# pgrep -lf 'cat /dev/urandom' 5898 cat /dev/urandom
# pflags `pgrep -f 'cat /dev/urandom'`
5898: cat /dev/urandom
data model = _ILP32 flags = MSACCT|MSFORK
/1: flags = 0
# pfiles `pgrep -f 'cat /dev/urandom'`
5898: cat /dev/urandom
Current rlimit: 65536 file descriptors
0: S_IFCHR mode:0620 dev:274,0 ino:12582918 uid:0 gid:7 rdev:24,1
O_RDWR
/devices/pseudo/pts@0:1
1: S_IFCHR mode:0666 dev:274,0 ino:6815752 uid:0 gid:3 rdev:13,2
O_WRONLY|O_CREAT|O_TRUNC|O_NOCTTY|O_LARGEFILE
/devices/pseudo/mm@0:null
2: S_IFCHR mode:0620 dev:274,0 ino:12582918 uid:0 gid:7 rdev:24,1
O_RDWR
/devices/pseudo/pts@0:1
3: S_IFCHR mode:0644 dev:274,0 ino:78118918 uid:0 gid:3 rdev:149,1
O_RDONLY|O_LARGEFILE
/devices/pseudo/random@0:urandom
# vmstat 1 3 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s1 s2 in sy cs us sy id 0 0 0 33477344 23997940 0 1 0 0 0 0 0 -0 -0 0 0 364 116 107 0 0 100 0 0 0 33388772 23930916 16 31 0 0 0 0 0 0 0 0 0 562 40127 105 0 25 75 0 0 0 33388772 23930936 6 6 0 0 0 0 0 0 0 0 0 389 40302 114 0 25 75 # pstop `pgrep -f 'cat /dev/urandom'` # vmstat 1 3 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s1 s2 in sy cs us sy id 0 0 0 33477344 23997940 0 1 0 0 0 0 0 -0 -0 0 0 364 116 107 0 0 100 0 0 0 33388772 23930916 16 31 0 0 0 0 0 0 0 0 0 363 131 119 0 0 100 0 0 0 33388772 23930936 6 6 0 0 0 0 0 0 0 0 0 362 113 111 0 0 100 # prun `pgrep -f 'cat /dev/urandom'` # vmstat 1 3 kthr memory page disk faults cpu r b w swap free re mf pi po fr de sr f0 s0 s1 s2 in sy cs us sy id 0 0 0 33477344 23997940 0 1 0 0 0 0 0 -0 -0 0 0 364 116 107 0 0 100 0 0 0 33388772 23930916 16 31 0 0 0 0 0 0 0 0 0 358 39876 125 0 25 75 0 0 0 33388772 23930936 6 6 0 0 0 0 0 0 0 0 0 334 39940 106 0 25 75
# truss -E -vall -p `pgrep -f 'cat /dev/urandom'`
0.0000 write(1, "EAEE83 hE280 nCFD5AFCD D".., 1040) = 1040
0.0000 read(3, " 1 Q1490FA 0 XC8FE f ^15".., 8192) = 1040
0.0000 write(1, " 1 Q1490FA 0 XC8FE f ^15".., 1040) = 1040
0.0000 read(3, "92D0 l0E9CD6 {B2 Z G Q97".., 8192) = 1040
0.0000 write(1, "92D0 l0E9CD6 {B2 Z G Q97".., 1040) = 1040
0.0000 read(3, "BD82 $BD a z97A9 v95B8 X".., 8192) = 1040
0.0000 write(1, "BD82 $BD a z97A9 v95B8 X".., 1040) = 1040
# truss -c -p `pgrep -f 'cat /dev/urandom'`
^C
syscall seconds calls errors
read 2.730 50584
write .256 50585
-------- ------ ----
sys totals: 2.986 101169 0
usr time: .098
elapsed: 5.740
# truss -E -u:: -p `pgrep -f 'cat /dev/urandom'` /1@1: 0.0000 -> libc:write(0x1, 0x80621b8, 0x410) /1@1: 0.0000 -> libc:_save_nv_regs(0xfeeb2c10) /1@1: 0.0000 <- libc:_save_nv_regs() = 0xfeeb2c10 /1@1: 0.0001 -> libc:_write(0x1, 0x80621b8, 0x410) /1: 0.0000 write(1, "CF DFFD0F1E5 _9F19 E mCB".., 1040) = 1040 /1@1: 0.0000 <- libc:_write() = 1040 /1@1: 0.0000 <- libc:write() = 1040 /1@1: 0.0000 -> libc:read(0x3, 0x80621b8, 0x2000) /1@1: 0.0001 -> libc:_save_nv_regs(0xfeeb2c10) /1@1: 0.0001 <- libc:_save_nv_regs() = 0xfeeb2c10 /1@1: 0.0001 -> libc:_read(0x3, 0x80621b8, 0x2000) /1: 0.0000 read(3, " FC3 _B0 : kF5B38A07 = e".., 8192) = 1040 /1@1: 0.0000 <- libc:_read() = 1040 /1@1: 0.0000 <- libc:read() = 1040 /1@1: 0.0000 -> libc:write(0x1, 0x80621b8, 0x410) /1@1: 0.0001 -> libc:_save_nv_regs(0xfeeb2c10) /1@1: 0.0001 <- libc:_save_nv_regs() = 0xfeeb2c10 /1@1: 0.0001 -> libc:_write(0x1, 0x80621b8, 0x410) /1: 0.0000 write(1, " FC3 _B0 : kF5B38A07 = e".., 1040) = 1040 /1@1: 0.0000 <- libc:_write() = 1040 /1@1: 0.0000 <- libc:write() = 1040 /1@1: 0.0000 -> libc:read(0x3, 0x80621b8, 0x2000) /1@1: 0.0001 -> libc:_save_nv_regs(0xfeeb2c10) /1@1: 0.0001 <- libc:_save_nv_regs() = 0xfeeb2c10 /1@1: 0.0001 -> libc:_read(0x3, 0x80621b8, 0x2000)
# cpustat -c IC_miss 1
time cpu event pic0
1.004 1 tick 193
1.004 3 tick 816
1.004 2 tick 241
1.004 0 tick 8856
2.004 1 tick 343
2.004 3 tick 528
2.004 2 tick 278
2.004 0 tick 8584
3.004 1 tick 188
3.004 3 tick 175
3.004 2 tick 182
3.004 0 tick 8280
4.004 3 tick 113
4.004 1 tick 170
4.004 2 tick 166
4.004 0 tick 8275
5.004 3 tick 107
5.004 1 tick 158
5.004 2 tick 330
5.004 0 tick 8282
^C
# mpstat 1 3
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 1 0 11 313 206 57 0 0 0 0 45 0 0 0 100
1 0 0 42 25 0 43 0 0 0 0 25 0 0 0 100
2 1 0 0 17 4 4 0 0 0 0 38 0 0 0 100
3 0 0 0 11 0 3 0 0 0 0 27 0 0 0 100
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 0 0 0 313 210 0 7 0 0 0 39747 0 100 0 0
1 0 0 0 60 10 99 0 2 0 0 0 0 0 0 100
2 8 0 0 14 6 10 0 0 0 0 98 0 0 0 100
3 0 0 0 3 0 4 0 0 0 0 0 0 0 0 100
CPU minf mjf xcal intr ithr csw icsw migr smtx srw syscl usr sys wt idl
0 0 0 0 310 208 0 7 0 0 0 39725 1 99 0 0
1 0 0 0 56 10 91 0 0 0 0 0 0 0 0 100
2 1 0 0 14 6 10 0 0 0 0 95 0 0 0 100
3 0 0 0 1 0 0 0 0 0 0 0 0 0 0 100
# cpustat -c IC_miss -p `pgrep -f 'cat /dev/urandom'` 1
time cpu event pic0
1.010 1 tick 221
1.010 3 tick 71
1.010 0 tick 8701
1.010 2 tick 5930
2.010 1 tick 387
2.010 2 tick 489
2.010 3 tick 407
2.010 0 tick 8671
3.010 2 tick 147
3.010 1 tick 209
3.010 3 tick 177
3.010 0 tick 8351
4.010 1 tick 353
4.010 2 tick 282
4.010 0 tick 8313
4.010 3 tick 178
^C
# kstat -p 'cpu::sys:cpu_ticks_kernel' 1 3 cpu:0:sys:cpu_ticks_kernel 1823530 cpu:1:sys:cpu_ticks_kernel 2645270 cpu:2:sys:cpu_ticks_kernel 453506 cpu:3:sys:cpu_ticks_kernel 1802559 cpu:0:sys:cpu_ticks_kernel 1823630 cpu:1:sys:cpu_ticks_kernel 2645270 cpu:2:sys:cpu_ticks_kernel 453506 cpu:3:sys:cpu_ticks_kernel 1802559 cpu:0:sys:cpu_ticks_kernel 1823730 cpu:1:sys:cpu_ticks_kernel 2645270 cpu:2:sys:cpu_ticks_kernel 453506 cpu:3:sys:cpu_ticks_kernel 1802559
# dtrace -s /usr/demo/dtrace/libc.d -p `pgrep -f 'cat /dev/urandom'` dtrace: script '/usr/demo/dtrace/libc.d' matched 2570 probes ^C _read 143901 _write 143901 read 143901 write 143901 _save_nv_regs 287802
Posted at 02:12午後 7 03, 2008 by Daisuke Homma in Solaris | 投稿されたコメント[0]
Today's Page Hits: 182