Q. How do I make changes to /proc filesystem permanently? For example I want to se fs.file-max to 65536, I can use command echo "65536" > /proc/sys/fs/file-max. But, after rebooting my Linux server this value will be reset to the default. How do I make it permanent?
A. You are right. You are using sysctl. It is used to modify kernel parameters at runtime. The parameters available are those listed under /proc/sys/. You need to use /etc/sysctl.conf file, which is a simple file containing sysctl values to be read in and set by sysctl. This is a configuration file for setting system variables. So all you have to do is add variable = value in /etc/sysctl.conf file. So the changes remains the permanent. For example, above command echo "65536" > /proc/sys/fs/file-max, should be added as follows: To Load in sysctl settings from the file specified or /etc/sysctl.conf immediately type following command:Example
# vi /etc/sysctl.confAppend following line:/proc/sys/fs/file-max = 65536Save the file.
Here is my sample sysctl.conf file:net.ipv4.ip_forward = 1
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000# sysctl -p
本日志由 flyinweb 于 2010-12-22 14:58:47 发表,目前已经被浏览 2409 次,评论 0 次;
作者添加了以下标签: /proc filesystem;
引用通告:http://www.517sou.net/Article/553/Trackback.ashx
而且直接配置文件是效率最高的,通过其它驱动效率都相对较低,BDB
这个测试不太准确,看官方的测试结果:http://bind-dlz.sourceforg
为什么使用BDB时QPS这么低? 我在bind版本基本相似的环境中测试的
It is quite useful and interesting too.
VIRT 的上限是64G,也就是36位, cat /proc/cpuinfo的结果是:addre
昨天要准备用线程重写webbench,试验了下Fedora Linux 2.6.35.14
不明白您的具体的意思是什么?
已经发送到你QQ邮箱