passt: Set soft limit for number of open files to hard limit

Default value for /proc/sys/fs/nr_open is 2^20, which is more than
enough: set this hard limit as current (soft) limit on start, and
drop the 'ulimit -n' from the demo script.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio
2021-03-18 11:36:55 +01:00
parent 48ca38c606
commit ef25cb39a9
2 changed files with 12 additions and 1 deletions

View File

@@ -75,7 +75,6 @@ sysctl -w net.ipv6.conf.all.forwarding=1
ethtool -K veth_passt tx off
ip netns exec passt ethtool -K veth_passt tx off
ip netns exec passt sysctl -w net.ipv4.ping_group_range="0 2147483647"
ulimit -n 300000
ip netns exec passt ./passt