Skip to content

Commit

Permalink
tests: increase memory for qemu tests
Browse files Browse the repository at this point in the history
Signed-off-by: Thiery Ouattara <[email protected]>
  • Loading branch information
outscale-toa authored and outscale-mgo committed Sep 7, 2020
1 parent 6050917 commit db56b17
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion examples/dperf/run.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
2 changes: 1 addition & 1 deletion examples/firewall/run.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
2 changes: 1 addition & 1 deletion examples/nic/run.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
2 changes: 1 addition & 1 deletion examples/rxtx/run.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
2 changes: 1 addition & 1 deletion examples/switch/run.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion examples/switch/run_vhost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/qemu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/accumulator/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- $@
2 changes: 1 addition & 1 deletion tests/accumulator/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/antispoof/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/antispoof/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/core/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/core/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/diode/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/diode/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/firewall/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/firewall/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/integration/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion tests/nic/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/nic/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/pmtud/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/pmtud/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/print/bench.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/print/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/queue/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/queue/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/rxtx/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/rxtx/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/switch/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/switch/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/tap/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"
2 changes: 1 addition & 1 deletion tests/tap/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/thread/test.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
sudo ./tests-thread --socket-mem 64 --no-shconf
sudo ./tests-thread --socket-mem 256 --no-shconf
2 changes: 1 addition & 1 deletion tests/udp-filter/test.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion tests/vhost/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "$@"
2 changes: 1 addition & 1 deletion tests/vhost/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

2 changes: 1 addition & 1 deletion tests/vtep/bench.sh
Original file line number Diff line number Diff line change
@@ -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 -- "$@"

0 comments on commit db56b17

Please sign in to comment.