Solaris10中如何设置ndd参数 2011-02-14 14:54:43

分类: Linux

在solaris10上,某些内核参数可以通过ndd命令来修改。ndd命令主要用来设置和获取driver configuration parameter。

? 用于列出driver支持的所有参数。例如: ndd /dev/tcp \? 可以列出所有tcp driver参数。 "\"用于避免shell把"?"当作特殊字符。

大部分ndd参数可以通用ndd命令进行在线修改。

如: ndd -set /dev/udp udp_xmit_hiwat 65536

但系统重启后,该更改会失效,一般需要把设置加到启动脚本中。

方式一:加入到/etc/rc2.d/Sxxxx 脚本中

/etc/rc2.d/S99ndd sets the parameters:

ndd -set /dev/udp udp_xmit_hiwat 65536 
ndd -set /dev/udp udp_recv_hiwat 65536

方式二:加入到/etc/inittab脚本中

/etc/inittab set parameters:

n1::sysinit:/usr/sbin/ndd -set /dev/udp udp_smallest_anon_port 9000 > /dev/console

n2::sysinit:/usr/sbin/ndd -set /dev/udp udp_largest_anon_port 65500 > /dev/console

需要注意,在solaris10上直接加到/etc/system里可能并不会生效。

附:oracle安装文件中对于设置UDP参数的说明

4.2.2 Checking UDP Parameter Settings

The User Data Protocol (UDP) parameter settings define the amount of send and receive buffer space for sending and receiving datagrams over an IP network. These settings affect cluster interconnect transmissions. If the buffers set by these parameters are too small, then incoming UDP datagrams can be dropped due to insufficient space, which requires send-side retransmission. This can result in poor cluster performance.

On Solaris, the UDP parameters are udp_recv_hiwat and udp_xmit_hiwat. On Solaris 10 the default values for these parameters are 57344 bytes. Oracle recommends that you set these parameters to at least 65536 bytes.

To check current settings for udp_recv_hiwat and udp_xmit_hiwat, enter the following commands:

# ndd /dev/udp udp_xmit_hiwat
# ndd /dev/udp udp_recv_hiwat

On Solaris 10, to set the values of these parameters to 65536 bytes in current memory, enter the following commands:

# ndd -set /dev/udp udp_xmit_hiwat 65536
# ndd -set /dev/udp udp_recv_hiwat 65536

On Solaris 9, to set the values of these parameters to 65536 bytes on system restarts, open the /etc/system file, and enter the following lines:

set udp:udp_xmit_hiwat=65536
set udp:udp_recv_hiwat=65536

On Solaris 10, to set the UDP values for when the system restarts, the ndd commands have to be included in a system startup script. For example, The following script. in /etc/rc2.d/S99ndd sets the parameters:

ndd -set /dev/udp udp_xmit_hiwat 65536 
ndd -set /dev/udp udp_recv_hiwat 65536

===========
进程数没有限制,最大进程数为29995个
#ulimit -a
core file size        (blocks, -c) unlimited
data seg size         (kbytes, -d) unlimited
file size             (blocks, -f) unlimited
open files                    (-n) 16384
pipe size          (512 bytes, -p) 10
stack size            (kbytes, -s) 8192
cpu time             (seconds, -t) unlimited
max user processes            (-u) 29995
virtual memory        (kbytes, -v) unlimited

<script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script> 阅读(336) | 评论(0) | 转发(0) |

0

上一篇: solaris的ndd指令(相当于linux的sysctl命令)

下一篇:solaris tcp参数调整实例

评论热议

Solaris10中如何设置ndd参数相关推荐

  1. pandas使用fillna函数并设置bfill参数使用列中的后序值填充缺失值

    pandas使用fillna函数并设置bfill参数使用列中的后序值填充缺失值(replace missing values with following values in column in da ...

  2. pandas使用fillna函数并设置fffill参数使用列中的前序值填充缺失值(replace missing values with preceding values in column in d

    pandas使用fillna函数并设置fffill参数使用列中的前序值填充缺失值(replace missing values with preceding values in column in d ...

  3. seaborn使用violinplot函数可视化小提琴图、并在violinplot函数中设置inner参数来添加数据点显示数据的稠密程度

    seaborn使用violinplot函数可视化小提琴图.并在violinplot函数中设置inner参数来添加数据点显示数据的稠密程度(Seaborn violinplot with data po ...

  4. pandas使用drop_duplicates函数基于subset参数指定的数据列子集删除重复行、并设置keep参数保留重复行中的最后一个数据行

    pandas使用drop_duplicates函数基于subset参数指定的数据列子集删除重复行.并设置keep参数保留重复行中的最后一个数据行 目录

  5. seaborn使用violinplot函数可视化小提琴图、并在violinplot函数中设置inner参数来添加横线(inner=“stick“)显示数据的稠密程度

    seaborn使用violinplot函数可视化小提琴图.并在violinplot函数中设置inner参数来添加横线(inner="stick")显示数据的稠密程度(Seaborn ...

  6. java 隐藏地址栏参数_要想在浏览器的地址栏上的URL中隐藏传输的参数,需要将form标签的method属性值设置为( )。 (5.0分)_学小易找答案...

    [填空题]若在JSP页面的不同作用域中有相同名称的对象,且EL表达式中又省略了相应的作用域类型名,则系统将会按照 . . . 的先后顺序查找相应对象. (20.0分) [简答题]AJAX异步请求过程中 ...

  7. 【Groovy】Groovy 脚本调用 ( Groovy 类中调用 Groovy 脚本 | 参考 Script#evaluate 方法 | 创建 Binding 对象并设置 args 参数 )

    文章目录 一.Groovy 类中调用 Groovy 脚本 1.参考 Script#evaluate 方法分析 Groovy 类中调用 Groovy 脚本 2.创建 Binding 对象并设置 args ...

  8. jvm内存参数配置_idea中设置JVM参数,简单理解JVM常见参数,JVM调优简单入门

    前面学习了JVM的内存分布,今天就来验证下.顺便通过测试学习一下JVM的几个参数,不过测试是在idea中,所以先要在idea上设置JVM参数. 一.idea设置全局的JVM参数 一共三步,第一步在菜单 ...

  9. 程序中 设置jvm 参数_高效应用程序的7个JVM参数

    程序中 设置jvm 参数 在撰写本文时(2020年3月),围绕垃圾收集和内存,您可以将600多个参数传递给JVM. 如果您包括其他方面,则JVM参数总数将很容易超过1000个.

最新文章

  1. CLINS: 基于激光-惯性系统的连续时间轨迹估计(IROS 2021)
  2. R语言使用ggplot2包使用geom_dotplot函数绘制分组点图(分组调色板填充、自定义调色板、灰度比例)实战(dot plot)
  3. Go语言学习之旅01--变量与数据
  4. Oracle安装错误“程序异常终止
  5. Unity 2D游戏开发快速入门第1章创建一个简单的2D游戏
  6. 移动端C#病毒“东山再起”,利用知名应用通信实现远控隐私窃取
  7. r语言合并多个csv文件_PDF合并怎么做?分享多个PDF文件合并的方法
  8. 花高价招来的阿里P8,我从他那里总结了8大硬核能力,4个经典案例,真香
  9. Java基础学习总结(66)——配置管理库typesafe.config教程
  10. C语言程序设计:图书管理系统(超详细有登录系统,附代码和实验报告)
  11. laravel较优雅的分表关联查询(性能较好,SQL的数量=表的数量,涵盖了较多laravel手册推荐的方法)...
  12. stylelint规则大全
  13. Java中Date时区的转换
  14. python--控制窗体
  15. 黑苹果(Hackintosh)简单步骤教程
  16. 码流、单码流、双码流、多码流
  17. Android下的蓝牙自动配对
  18. MATLAB 基础与通信系统仿真
  19. 新手真无线蓝牙耳机怎么选?大神推荐高颜值时尚主流蓝牙耳机推荐
  20. a计权声功率级计算公式_超高层建筑气动噪声总声压级和A计权声压级的计算

热门文章

  1. 12招,让你成为「耐撕」的产品人
  2. ubuntu 安装jdk问题 install.sfx not found
  3. 虚拟机安装Mac OS X雪豹(snow leopard)
  4. win10系统如何关闭任务栏缩略图预览
  5. 智慧灯杆网关典型应用案例介绍
  6. 购物小票java代码
  7. IBM WebSphere 产品介绍
  8. C实现-小写字母转换为大写字母(具体)
  9. 与旷视共同寻找小微商业的智能零售解决方案|白洞战报
  10. 评测一款php淘宝客系统,有商家报名和试用等功能