首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > 其他操作系统 > Modifying the SCSI Device Driver max_coalesce Par
【标  题】:Modifying the SCSI Device Driver max_coalesce Par
【关键字】:Modifying,the,SCSI,Device,Driver,max_coalesce,Par
【来  源】:http://www.cublog.cn/u/2984/showart.php?id=118760

Modifying the SCSI Device Driver max_coalesce Par

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 < foo

To put the change into effect, you must rebuild the kernel and reboot, with:

# bosboot -a -d hdisk0
# shutdown -rF
HP-UX系统和网络管理III--第1章:【上一篇】
Using Raw Disk I/O:【下一篇】
【相关文章】
  • Linux iSCSI技术-[安装Linux iscsi组件]
  • The Unofficial Fedora FAQ
  • Part 1 of 4: Primary objectives
  • Problems with SCSI controllers and devices
  • Access the SWT widget in other Thread
  • the copy content of BASH
  • Parser perl module is required for intltool
  • An Introduction to the Unix Shell中文
  • Linux Partition HOWTO
  • Linux driver introduction
  • 【随机文章】
  • Bash中的变量
  • 忙里偷闲
  • 昨天把freebsd分区扩大到10G
  • flash中数组的妙用
  • 如何选择最佳方案构建企业级呼叫中心
  • some sentenses from The c++ programming language chapter9
  • 开源产品学习方法论
  • 不知道应该叫创意还是叫不沦不类
  • GNU 文本实用程序简介----面向行的过滤(3)
  • 修理中了病毒和N多流氓软件的电脑
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.