From 76486ece10c6dbada8d78bbe50aa8254d3496a47 Mon Sep 17 00:00:00 2001 From: Jesper Dangaard Brouer Date: Thu, 21 Aug 2014 16:39:14 +0200 Subject: trafgen: add option to not adjust system socket mem during testrun The default behavior of trafgen is to boost the systems default socket memory limits during a testrun. This behaviour does not always result in improved performance, because this will stress the kernels SLAB allocators unnecessary. Introducing an option "--no-sock-mem" that instruct trafgen to not perform any socket memory adjustments. Fixes: #130 Acked-by: Daniel Borkmann Signed-off-by: Jesper Dangaard Brouer --- trafgen.8 | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'trafgen.8') diff --git a/trafgen.8 b/trafgen.8 index 4a888c5..31c2f52 100644 --- a/trafgen.8 +++ b/trafgen.8 @@ -152,6 +152,15 @@ scheduling rate resp. CPU time. This is however not the default setting, since it could lead to starvation of other processes, for example low priority kernel threads. .PP +.SS -A, --no-sock-mem +Do not change systems default socket memory setting during testrun. +Default is to boost socket buffer memory during the test to: +.PP + /proc/sys/net/core/rmem_default:4194304 + /proc/sys/net/core/wmem_default:4194304 + /proc/sys/net/core/rmem_max:104857600 + /proc/sys/net/core/wmem_max:104857600 +.PP .SS -Q, --notouch-irq Do not reassign the NIC's IRQ CPU affinity settings. .PP -- cgit v1.2.3-54-g00ecf