- 论坛徽章:
- 0
|
solaris 8/e3500.
T3-raid5-LTO tape library.
tar is pretty slow, 3Mbytes/second.
I tried to speed up with:
tar cvfb /dev/rmt/2 2048 /oradata/$ORACLE_SID
from iostat, it seems much faster, that is ,10+M bytes per second.
But from iostat, I verified with truss and see it is doing 1M read/write.
But from iostat , I also noticed that, write per second to tape is much greater than read per second from disk.
extended device statistics
r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c2t6d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t0d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t2d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c1t4d1
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c1t4d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t1d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c0t3d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c4t1d1
21.4 0.0 17876.7 0.0 0.0 0.6 0.0 28.0 0 53 c4t1d0 --t3 storage
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c4t3d1
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c4t3d0
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c1t2d1
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 c1t2d0
0.0 135.7 0.0 8172.3 0.0 0.7 0.0 4.8 0 66 rmt/2 --tape driver 1
0.0 151.6 0.0 9161.9 0.0 0.7 0.0 4.7 0 71 rmt/3 --tape driver 2
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 main-db4:vold(pid60
0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0 192.168.200.240:/oracle
How can this happen? Does it means that the tape is actually doing smaller block write? How to verify it and change it?(maybe tar get faster).
Thanks.
[root@main-db4 /]# truss -p 1093
write(3, "ACCDBFC4A8D3DABEB1B2BFA3".., 1048576) = 1048576
read(9, " ".., 1048576) = 1048576
write(3, " ".., 1048576) = 1048576
read(9, "B7C0D6E5A1A2ECEED6E5C3C0".., 1048576) = 1048576
write(3, "B7C0D6E5A1A2ECEED6E5C3C0".., 1048576) = 1048576
read(9, "C9FA CEDED0EBBEB9BCDBA3".., 1048576) = 1048576
write(3, "C9FA CEDED0EBBEB9BCDBA3".., 1048576) = 1048576
read(9, "C2\t018001800180 ,\01805".., 1048576) = 1048576
write(3, "C2\t018001800180 ,\01805".., 1048576) = 1048576
read(9, "D0D0D2BCCDF2CCD7D5E4B2D8".., 1048576) = 1048576
write(3, "D0D0D2BCCDF2CCD7D5E4B2D8".., 1048576) = 1048576
read(9, " ".., 1048576) = 1048576
write(3, " ".., 1048576) = 1048576
read(9, " K01 314CAD7B6BCB5E7D3B0".., 1048576) = 1048576
write(3, " K01 314CAD7B6BCB5E7D3B0".., 1048576) = 1048576
read(9, "C1\n84C8ABD0C2B8DFC4DCB0".., 1048576) = 1048576
write(3, "C1\n84C8ABD0C2B8DFC4DCB0".., 1048576) = 1048576
read(9, "C8D5C4DACEB4CAD5B5BDC8CE".., 1048576) = 1048576
write(3, "C8D5C4DACEB4CAD5B5BDC8CE".., 1048576) = 1048576
read(9, " 2 6 \ 2 . 1 G \BBAACBB6".., 1048576) = 1048576
write(3, " 2 6 \ 2 . 1 G \BBAACBB6".., 1048576) = 1048576 |
|