The problem isn't with IO, see below the number of threads wanting for IO, its irrelevant...#-------------------------- # Insert Into File #-------------------------- sub insert_into_file{ my $fh = shift; my $record = shift; lock($x); $fh->print("$record\n"); }
$ iostat -xndz 1
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
1.0 21.0 8.0 958.5 0.1 0.7 4.0 33.2 9 9 md/d10
0.0 21.0 0.0 958.5 0.0 0.6 0.0 30.6 0 7 md/d11
1.0 21.0 8.0 958.5 0.0 0.5 0.0 24.5 0 8 md/d12
1.0 26.0 8.0 959.5 0.0 0.7 0.0 24.6 0 10 c0t1d0
0.0 26.0 0.0 959.5 0.0 0.8 0.0 30.3 0 10 c0t0d0
Wait: number of threads queued for I/O
Actv: number of threads performing I/O
wsvc_t: Average time spend waiting on queue
asvc_t: Average time performing I/O
%w: Only useful if one thread is running on the entire machine – time spent
waiting for I/O
%b: Device utilization – only useful if device can do just 1 I/O at a time (invalid
for arrays etc...)
Output of truss
syscall seconds calls errors
read .560 7092
write .201 2363
lwp_park 3.621 132604
lwp_unpark 2.656 125751
yield .031 1148
-------- ------ ----
sys totals: 7.070 268958 0
usr time: 80.730
elapsed: 39.650
In reply to Re: Sun Solaris (SPARC processor) + Threads + performance/optimization
by gulden
in thread Sun Solaris (SPARC processor) + Threads + performance/optimization
by gulden
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |