diff --git a/examples/dperf/run.sh b/examples/dperf/run.sh index afa0271d2..7be0aa336 100755 --- a/examples/dperf/run.sh +++ b/examples/dperf/run.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./example-dperf -c1 -n1 --socket-mem 64 --no-shconf "$@" +sudo ./example-dperf -c1 -n1 --socket-mem 256 --no-shconf "$@" diff --git a/examples/firewall/run.sh b/examples/firewall/run.sh index 012344fa8..8b3e52b46 100755 --- a/examples/firewall/run.sh +++ b/examples/firewall/run.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./example-firewall -c1 -n1 --socket-mem 64 --no-shconf "$@" +sudo ./example-firewall -c1 -n1 --socket-mem 256 --no-shconf "$@" diff --git a/examples/nic/run.sh b/examples/nic/run.sh index 5578196f1..c416a9111 100755 --- a/examples/nic/run.sh +++ b/examples/nic/run.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./example-nic -c1 -n1 --socket-mem 64 --no-shconf "$@" +sudo ./example-nic -c1 -n1 --socket-mem 256 --no-shconf "$@" diff --git a/examples/rxtx/run.sh b/examples/rxtx/run.sh index 82d643a55..55fec4c69 100755 --- a/examples/rxtx/run.sh +++ b/examples/rxtx/run.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./example-rxtx -c1 -n1 --socket-mem 64 --no-shconf "$@" +sudo ./example-rxtx -c1 -n1 --socket-mem 256 --no-shconf "$@" diff --git a/examples/switch/run.sh b/examples/switch/run.sh index 351c77ca9..360847eb0 100755 --- a/examples/switch/run.sh +++ b/examples/switch/run.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./example-switch -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./example-switch -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/examples/switch/run_vhost.sh b/examples/switch/run_vhost.sh index eb5c4aefa..e1ca1bd56 100755 --- a/examples/switch/run_vhost.sh +++ b/examples/switch/run_vhost.sh @@ -130,7 +130,7 @@ check_bin ssh -V check_bin sudo qemu-system-x86_64 -h check_bin sudo socat -h -sudo ./example-switch -c1 -n1 --socket-mem 64 --no-shconf -- --vhost 2 "$@" & +sudo ./example-switch -c1 -n1 --socket-mem 256 --no-shconf -- --vhost 2 "$@" & example_pid=$! sleep 10 qemu_start 1 diff --git a/src/utils/qemu.c b/src/utils/qemu.c index 1445037af..19ae5b395 100644 --- a/src/utils/qemu.c +++ b/src/utils/qemu.c @@ -25,7 +25,7 @@ #include "utils/common.h" #ifndef PG_QEMU_MEM_SIZE -#define PG_QEMU_MEM_SIZE "128M" +#define PG_QEMU_MEM_SIZE "256M" #endif int pg_util_cmdloop(const char *cmd, int timeout_s) diff --git a/tests/accumulator/bench.sh b/tests/accumulator/bench.sh index cd0bad12f..9c725af97 100755 --- a/tests/accumulator/bench.sh +++ b/tests/accumulator/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-accumulator -c1 -n1 --socket-mem 64 --no-shconf -- $@ +sudo ./bench-accumulator -c1 -n1 --socket-mem 256 --no-shconf -- $@ diff --git a/tests/accumulator/test.sh b/tests/accumulator/test.sh index 0cdb5d5b2..71ac9f374 100755 --- a/tests/accumulator/test.sh +++ b/tests/accumulator/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-accumulator -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-accumulator -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/antispoof/bench.sh b/tests/antispoof/bench.sh index fe0c6cacf..677691546 100755 --- a/tests/antispoof/bench.sh +++ b/tests/antispoof/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-antispoof -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-antispoof -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/antispoof/test.sh b/tests/antispoof/test.sh index d08343ca5..46c13c0ee 100755 --- a/tests/antispoof/test.sh +++ b/tests/antispoof/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-antispoof -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-antispoof -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/core/bench.sh b/tests/core/bench.sh index fac6aaad5..d9b4bc3e8 100755 --- a/tests/core/bench.sh +++ b/tests/core/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-core -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-core -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/core/test.sh b/tests/core/test.sh index 721f3ce4c..8b3121747 100755 --- a/tests/core/test.sh +++ b/tests/core/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-core -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-core -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/diode/bench.sh b/tests/diode/bench.sh index e30954b06..1845b696a 100755 --- a/tests/diode/bench.sh +++ b/tests/diode/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-diode -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-diode -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/diode/test.sh b/tests/diode/test.sh index b23da7386..abce81b54 100755 --- a/tests/diode/test.sh +++ b/tests/diode/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-diode -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-diode -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/firewall/bench.sh b/tests/firewall/bench.sh index 867b0bf92..03d935a9d 100755 --- a/tests/firewall/bench.sh +++ b/tests/firewall/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-firewall -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-firewall -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/firewall/test.sh b/tests/firewall/test.sh index 28408e947..5543a2f9c 100755 --- a/tests/firewall/test.sh +++ b/tests/firewall/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-firewall -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-firewall -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/integration/test.sh b/tests/integration/test.sh index 4b1c0ea0c..9701e6558 100755 --- a/tests/integration/test.sh +++ b/tests/integration/test.sh @@ -77,5 +77,5 @@ if [ "$NB_HUGE" -lt 1 ]; then fi # Launch test -sudo ./tests-integration -c1 -n1 --socket-mem 64 -- -vm vm.qcow -vm-key vm.rsa -hugepages /mnt/huge +sudo ./tests-integration -c1 -n1 --socket-mem 256 -- -vm vm.qcow -vm-key vm.rsa -hugepages /mnt/huge diff --git a/tests/nic/bench.sh b/tests/nic/bench.sh index 6a98c94c5..5212f610f 100755 --- a/tests/nic/bench.sh +++ b/tests/nic/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-nic -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-nic -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/nic/test.sh b/tests/nic/test.sh index 57c2c541b..e26fb1c28 100755 --- a/tests/nic/test.sh +++ b/tests/nic/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-nic -c1 -n1 --socket-mem 64 --no-shconf --vdev=eth_ring0 +sudo ./tests-nic -c1 -n1 --socket-mem 256 --no-shconf --vdev=eth_ring0 diff --git a/tests/pmtud/bench.sh b/tests/pmtud/bench.sh index 7a4aaa096..39304f9f2 100755 --- a/tests/pmtud/bench.sh +++ b/tests/pmtud/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-pmtud -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-pmtud -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/pmtud/test.sh b/tests/pmtud/test.sh index 5518cf133..a95de2967 100755 --- a/tests/pmtud/test.sh +++ b/tests/pmtud/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-pmtud -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-pmtud -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/print/bench.sh b/tests/print/bench.sh index 82baed29d..05278bf99 100755 --- a/tests/print/bench.sh +++ b/tests/print/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-print -c1 -n1 --socket-mem 64 --no-shconf -- "$@" 2> /dev/null +sudo ./bench-print -c1 -n1 --socket-mem 256 --no-shconf -- "$@" 2> /dev/null diff --git a/tests/print/test.sh b/tests/print/test.sh index 94c314f26..554f57230 100755 --- a/tests/print/test.sh +++ b/tests/print/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-print -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-print -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/queue/bench.sh b/tests/queue/bench.sh index 70b19699d..ffbadbb6c 100755 --- a/tests/queue/bench.sh +++ b/tests/queue/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-queue -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-queue -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/queue/test.sh b/tests/queue/test.sh index 4197467d0..99fd2a982 100755 --- a/tests/queue/test.sh +++ b/tests/queue/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-queue -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-queue -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/rxtx/bench.sh b/tests/rxtx/bench.sh index f001e5e4e..93d42688c 100755 --- a/tests/rxtx/bench.sh +++ b/tests/rxtx/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-rxtx -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-rxtx -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/rxtx/test.sh b/tests/rxtx/test.sh index a070692e2..e2dd25d3b 100755 --- a/tests/rxtx/test.sh +++ b/tests/rxtx/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-rxtx -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-rxtx -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/switch/bench.sh b/tests/switch/bench.sh index a0029dc51..2c4946078 100755 --- a/tests/switch/bench.sh +++ b/tests/switch/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-switch -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-switch -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/switch/test.sh b/tests/switch/test.sh index c4d2af9c8..0dc8ee1af 100755 --- a/tests/switch/test.sh +++ b/tests/switch/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-switch -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-switch -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/tap/bench.sh b/tests/tap/bench.sh index 0a900e161..3a5cc2975 100755 --- a/tests/tap/bench.sh +++ b/tests/tap/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-tap -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-tap -c1 -n1 --socket-mem 256 --no-shconf -- "$@" diff --git a/tests/tap/test.sh b/tests/tap/test.sh index 615019e6e..0d6e4ded5 100755 --- a/tests/tap/test.sh +++ b/tests/tap/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-tap -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-tap -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/thread/test.sh b/tests/thread/test.sh index b6de473fb..218074cb4 100755 --- a/tests/thread/test.sh +++ b/tests/thread/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-thread --socket-mem 64 --no-shconf +sudo ./tests-thread --socket-mem 256 --no-shconf diff --git a/tests/udp-filter/test.sh b/tests/udp-filter/test.sh index 964563e97..bf5ce2284 100755 --- a/tests/udp-filter/test.sh +++ b/tests/udp-filter/test.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./tests-udp-filter -c1 -n1 --socket-mem 64 --no-shconf +sudo ./tests-udp-filter -c1 -n1 --socket-mem 256 --no-shconf diff --git a/tests/vhost/bench.sh b/tests/vhost/bench.sh index f2d5b4d65..ef745dcd7 100755 --- a/tests/vhost/bench.sh +++ b/tests/vhost/bench.sh @@ -77,4 +77,4 @@ if [ "$NB_HUGE" -lt 1 ]; then fi # Launch test -sudo ./bench-vhost -c1 -n1 --socket-mem 64 -- -vm vm.qcow -vm-key vm.rsa -hugepages /mnt/huge "$@" +sudo ./bench-vhost -c1 -n1 --socket-mem 256 -- -vm vm.qcow -vm-key vm.rsa -hugepages /mnt/huge "$@" diff --git a/tests/vhost/test.sh b/tests/vhost/test.sh index 033e205b6..b257af014 100755 --- a/tests/vhost/test.sh +++ b/tests/vhost/test.sh @@ -77,5 +77,5 @@ if [ "$NB_HUGE" -lt 1 ]; then fi # Launch test -sudo ./tests-vhost -c1 -n1 --socket-mem 64 -- -vm vm.qcow -vm-key vm.rsa -hugepages /mnt/huge +sudo ./tests-vhost -c1 -n1 --socket-mem 256 -- -vm vm.qcow -vm-key vm.rsa -hugepages /mnt/huge diff --git a/tests/vtep/bench.sh b/tests/vtep/bench.sh index 8ebeebaea..5c38c49aa 100755 --- a/tests/vtep/bench.sh +++ b/tests/vtep/bench.sh @@ -1,2 +1,2 @@ #!/bin/sh -sudo ./bench-vtep -c1 -n1 --socket-mem 64 --no-shconf -- "$@" +sudo ./bench-vtep -c1 -n1 --socket-mem 256 --no-shconf -- "$@"