免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1108 | 回复: 1
打印 上一主题 下一主题

speed up solaris tar [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-09-30 14:05 |只看该作者 |倒序浏览
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

论坛徽章:
0
2 [报告]
发表于 2003-10-01 00:35 |只看该作者

speed up solaris tar

The bottleneck is not the tape device. It's your RAID5. Maybe you have many small files.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP