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:
@@ -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
|
||||
|
Reference in New Issue
Block a user