免费注册 查看新帖 |

Chinaunix

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

[新手入门] Modifying the SCSI Device Driver max_coalesce Par [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-05-27 00:07 |只看该作者 |倒序浏览

Modifying the SCSI Device Driver max_coalesce Parameter
When there are multiple disk-I/O requests in the SCSI device driver's queue, it attempts to coalesce those requests into a smaller number of large requests. The largest request (in terms of data transmitted) that the SCSI device driver will build is limited by the max_coalesce parameter. Normally, max_coalesce has a value of 64KB.
To make maximum use of striped logical volumes and disk arrays, it may be desirable to increase the size of max_coalesce. To do so, it is necessary to have a stanza in the PdAt ODM database that specifies the new max_coalesce value. If you have already added such a stanza, you can obtain the current version with:
# odmget -q \
"uniquetype=disk/scsi/osdisk AND attribute=max_coalesce" \
PdAt > foo
If there is no such stanza already, use an editor to create the file foo with the following content:
PdAt:
        uniquetype = "disk/scsi/osdisk"
        attribute = "max_coalesce"
        deflt = "0x20000"
        values = "0x20000"
        width = ""
        type = "R"
        generic = ""
        rep = "n"
        nls_index = 0
Note that max_coalesce, in bytes, is expressed as a hexadecimal number. The deflt and values field values of 0x20000 will set max_coalesce to 128KB. Then replace the old stanza in PdAt, if any, with foo, using:
# odmdelete -o PdAt \
-q "uniquetype=/disk/scsi/osdisk AND attribute=max_coalesce"
# odmadd
To put the change into effect, you must rebuild the kernel and reboot, with:
# bosboot -a -d hdisk0
# shutdown -rF

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/2984/showart_118760.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP