Linux最大檔案數
阿新 • • 發佈:2019-01-30
背景:
使用MS-OTM(UDP轉none)測試CPU排程演算法,最大執行緒數,在開啟509個轉發時,出現以下問題:
1.開啟檔案過多?
使用ulimit -n發現值為1024,
編輯/etc/security/limits.conf 檔案增加內容
root soft nofile 2000
root hard nofile 2001
重新登入root,使用ulimit -n發現值更改為2000
2.資源暫時不可用?(11 Resource temporarily unavailable)
