Changes between Version 10 and Version 11 of jazz/10-05-11
- Timestamp:
- May 11, 2010, 3:52:04 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TabularUnified jazz/10-05-11
v10 v11 22 22 * 如何調整每個使用者可以開啟的檔案個數 23 23 * [參考] [http://www.xenoclast.org/doc/benchmark/HTTP-benchmarking-HOWTO/node7.html Increasing the file descriptor limit] 24 * [參考] [http://www.netadmintools.com/art295.html GNU/Linux - How Many Open Files?] 24 25 * 注意:修改 /etc/security/limits.conf 中間必須確定是 TAB ,如果有設定 vim 的 softwaretab 的話,得特別當心!!! 25 26 * /proc/sys/fs/file-max - 核心預設最多可以開啟的檔案個數 … … 27 28 ~$ cat /proc/sys/fs/file-max 28 29 743964 30 }}} 31 * /proc/sys/fs/file-max - 目前已開啟檔案個數、可供開啟檔案個數、總開啟檔案上限 32 {{{ 33 [root@srv-4 proc]# cat /proc/sys/fs/file-nr 34 3391 969 52427 35 | | | 36 | | | 37 | | maximum open file descriptors 38 | total free allocated file descriptors 39 total allocated file descriptors 40 (the number of file descriptors allocated since boot) 29 41 }}} 30 42 * /etc/security/limits.conf - 每個程序(process)可以開啟檔案的個數(number limits of open files per process) - 像 HDFS 的 !DataNode 就需要調整這種參數([wiki:jazz/10-02-22#Hadoop:HDFS 2010-02-22])