From ef25cb39a9cb9e36a8872dcd252686023eaec959 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Thu, 18 Mar 2021 11:36:55 +0100 Subject: 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 --- doc/demo.sh | 1 - 1 file changed, 1 deletion(-) (limited to 'doc') diff --git a/doc/demo.sh b/doc/demo.sh index a5b45b5..fe24751 100755 --- a/doc/demo.sh +++ b/doc/demo.sh @@ -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 -- cgit v1.2.3