Changes between Version 10 and Version 11 of jazz/10-05-11


Ignore:
Timestamp:
May 11, 2010, 3:52:04 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-05-11

    v10 v11  
    2222 * 如何調整每個使用者可以開啟的檔案個數
    2323   * [參考] [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?]
    2425   * 注意:修改 /etc/security/limits.conf 中間必須確定是 TAB ,如果有設定 vim 的 softwaretab 的話,得特別當心!!!
    2526   * /proc/sys/fs/file-max - 核心預設最多可以開啟的檔案個數
     
    2728~$ cat /proc/sys/fs/file-max
    2829743964
     30}}}
     31   * /proc/sys/fs/file-max - 目前已開啟檔案個數、可供開啟檔案個數、總開啟檔案上限
     32{{{
     33[root@srv-4 proc]# cat /proc/sys/fs/file-nr
     343391    969     52427
     35|        |       |
     36|        |       |
     37|        |       maximum open file descriptors
     38|        total free allocated file descriptors
     39total allocated file descriptors
     40(the number of file descriptors allocated since boot)
    2941}}}
    3042   * /etc/security/limits.conf - 每個程序(process)可以開啟檔案的個數(number limits of open files per process) - 像 HDFS 的 !DataNode 就需要調整這種參數([wiki:jazz/10-02-22#Hadoop:HDFS 2010-02-22])