ITPub博客

首页 > IT基础架构 > 服务器/存储 > Script to Display FC Queue Depth Settings

Script to Display FC Queue Depth Settings

原创 服务器/存储 作者:cxs86621 时间:2015-09-04 22:23:26 0 删除 编辑


Comments (3)

AnthonyEnglish commented Aug 17Comment Permalink

Thanks to lillracksingen for the tip about the Korn shell syntax. Much easier to write ... and to read.

lillracksingen commented Aug 14Comment Permalink

<nitpicking>
I'd prefer cleaner Korn shell syntax for the if and assignment statements:
if (( high_water_mark > default_num_cmd_elems ))
then
(( desired_num_cmd_elems = high_water_mark ))
else
(( desired_num_cmd_elems = default_num_cmd_elems ))
fi

if (( actual_num_cmd_elems < desired_num_cmd_elems ))
then
echo "chdev -l $i -a num_cmd_elems=$desired_num_cmd_elems-a max_xfer_size=0x200000 -P"
fi

Referenced variables inside (()) expressions do not need to be prefixed with the dollar sign. 
</nitpicking>

Tictac_NS commented Nov 15 2013Comment Permalink

Sweet, I have been tweaking queue_depth and num_cmd_elems on a number of servers, based on recommendations from the queue depth article. This undocumented option is a great help. Thanks for pointing it out.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16163290/viewspace-1791143/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-11-01

  • 博文量
    24
  • 访问量
    56096