警告:
不要在一台用于生产的服务器上尝试用 /proc/sys下不同的文件对系统的进行调节。有时候,改变一个设置,可能会致使内核变得不稳定,甚至需要重启系统。如果一个设置会明显的打断当前登录系统上用户的工作,那么应该使用一个用于开发环境的系统来进行这些改动尝试。在尝试改变 /proc/sys下任何值之前,你应该清楚知道这些选项的用法以及知道这些选项所带来的结果。
[root@localhost /]# ls -l /proc/sys/fs/
总计 0
-rw-r--r-- 1 root root 0 12-25 17:46 aio-max-nr
-r--r--r-- 1 root root 0 12-25 17:46 aio-nr
drwxr-xr-x 2 root root 0 12-25 08:57 binfmt_misc
-r--r--r-- 1 root root 0 12-25 17:46 dentry-state
-rw-r--r-- 1 root root 0 12-25 17:46 dir-notify-enable
-rw-r--r-- 1 root root 0 12-25 17:46 file-max
-r--r--r-- 1 root root 0 12-25 17:46 file-nr
-r--r--r-- 1 root root 0 12-25 17:46 inode-nr
-r--r--r-- 1 root root 0 12-25 17:46 inode-state
... ...
echo "1" > /proc/sys/kernel/sysrq
echo "4 2 45" > /proc/sys/kernel/acct
[root@localhost dev]# ls
cdrom hpet parport raid rtc scsi
[root@localhost cdrom]# cat info
CD-ROM information, Id: cdrom.c 3.20 2003/12/17
drive name: hdc
drive speed: 24
drive # of slots: 1
Can close tray: 1
Can open tray: 1
Can lock tray: 1
Can change speed: 1
Can select disk: 0
Can read multisession: 1
Can read MCN: 1
Reports media changed: 1
Can play audio: 1
Can write CD-R: 1
Can write CD-RW: 1
Can read DVD: 1
Can write DVD-R: 0
Can write DVD-RAM: 0
Can read MRW: 1
Can write MRW: 1
Can write RAM: 1
[root@localhost fs]# cat dentry-state
6594 3215 45 0 0 0
[root@localhost fs]# cat file-max
35378
[root@localhost fs]# cat file-nr
4032 0 35378
[root@localhost fs]# cat overflowgid overflowuid
65534
65534
欢迎光临 曲径通幽论坛 (http://www.groad.net/bbs/) | Powered by Discuz! X3.2 |