MeGusta
deepin
2025-02-18 20:30 在stackexchange上面查询到,获取系统nofile最大值的命令:
python3 -c "import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))"
我返回的是(1024, 1048576),你设置的值 10485760是不是超限了。
Reply Like 0 View the author
在stackexchange上面查询到,获取系统nofile最大值的命令:
python3 -c "import resource; print(resource.getrlimit(resource.RLIMIT_NOFILE))"
我返回的是(1024, 1048576),你设置的值 10485760是不是超限了。
二楼可能是正解。
cat > /etc/security/limits.d/nofile.conf << "EOF"
* soft nproc 1048576
* hard nproc 1048576
root soft nproc unlimited
* soft nofile 1048576
* hard nofile 1048576
root soft nofile unlimited
EOF
试过了,1048576也不行
可能今年我就退回win11 了。。
试过了,1048576也不行
可能今年我就退回win11 了。。


好像sn最大是1024,hn最大是1048576。
Popular Events
More
试了以上两种都不行,论坛没有人遇到这个问题吗,你们是如何增加 当前进程最大open file量?