Actions
Bug #2228
closedenforcing specific number of threads with autofp does not seem to work
Affected Versions:
Effort:
Difficulty:
Label:
Description
Maybe related to https://redmine.openinfosecfoundation.org/issues/2227
The test machine is with 8 CPUs.
sudo suricata -S /dev/null -vvv --pcap=eth0 --set pcap.0.threads=16 --runmode=autofp [26940] 11/10/2017 -- 11:33:07 - (runmode-pcap.c:292) <Info> (RunModeIdsPcapAutoFp) -- RunModeIdsPcapAutoFp initialised [26940] 11/10/2017 -- 11:33:07 - (flow-manager.c:828) <Config> (FlowManagerThreadSpawn) -- using 1 flow manager threads [26940] 11/10/2017 -- 11:33:07 - (flow-manager.c:992) <Config> (FlowRecyclerThreadSpawn) -- using 1 flow recycler threads [26940] 11/10/2017 -- 11:33:07 - (util-conf.c:109) <Info> (ConfUnixSocketIsEnable) -- Running in live mode, activating unix socket [26940] 11/10/2017 -- 11:33:07 - (unix-manager.c:124) <Info> (UnixNew) -- Using unix socket file '/var/run/suricata/suricata-command.socket' [26940] 11/10/2017 -- 11:33:07 - (tm-threads.c:2178) <Notice> (TmThreadWaitOnThreadInit) -- all 24 packet processing threads, 4 management threads initialized, engine started.
sudo suricata -S /dev/null -vvv --pcap=eth0 --set pcap.0.threads=260 --runmode=autofp ... [29246] 11/10/2017 -- 11:42:16 - (runmode-pcap.c:292) <Info> (RunModeIdsPcapAutoFp) -- RunModeIdsPcapAutoFp initialised [29246] 11/10/2017 -- 11:42:16 - (flow-manager.c:828) <Config> (FlowManagerThreadSpawn) -- using 1 flow manager threads [29246] 11/10/2017 -- 11:42:16 - (flow-manager.c:992) <Config> (FlowRecyclerThreadSpawn) -- using 1 flow recycler threads [29246] 11/10/2017 -- 11:42:16 - (util-conf.c:109) <Info> (ConfUnixSocketIsEnable) -- Running in live mode, activating unix socket [29246] 11/10/2017 -- 11:42:16 - (unix-manager.c:124) <Info> (UnixNew) -- Using unix socket file '/var/run/suricata/suricata-command.socket' [29246] 11/10/2017 -- 11:42:16 - (tm-threads.c:2178) <Notice> (TmThreadWaitOnThreadInit) -- all 12 packet processing threads, 4 management threads initialized, engine started.
sudo suricata -S /dev/null -vvv --pcap=eth0 --set pcap.0.threads=300 --runmode=autofp ... [27711] 11/10/2017 -- 11:37:13 - (runmode-pcap.c:292) <Info> (RunModeIdsPcapAutoFp) -- RunModeIdsPcapAutoFp initialised [27711] 11/10/2017 -- 11:37:13 - (flow-manager.c:828) <Config> (FlowManagerThreadSpawn) -- using 1 flow manager threads [27711] 11/10/2017 -- 11:37:13 - (flow-manager.c:992) <Config> (FlowRecyclerThreadSpawn) -- using 1 flow recycler threads [27711] 11/10/2017 -- 11:37:13 - (util-conf.c:109) <Info> (ConfUnixSocketIsEnable) -- Running in live mode, activating unix socket [27711] 11/10/2017 -- 11:37:13 - (unix-manager.c:124) <Info> (UnixNew) -- Using unix socket file '/var/run/suricata/suricata-command.socket' [27711] 11/10/2017 -- 11:37:13 - (tm-threads.c:2178) <Notice> (TmThreadWaitOnThreadInit) -- all 52 packet processing threads, 4 management threads initialized, engine started.
Suricata info -
This is Suricata version 4.0.0-dev (rev 11806875) Features: PCAP_SET_BUFF AF_PACKET HAVE_PACKET_FANOUT LIBCAP_NG LIBNET1.1 HAVE_HTP_URI_NORMALIZE_HOOK PCRE_JIT HAVE_NSS HAVE_LUA HAVE_LUAJIT HAVE_LIBJANSSON TLS MAGIC SIMD support: SSE_4_2 SSE_4_1 SSE_3 Atomic intrisics: 1 2 4 8 16 byte(s) 64-bits, Little-endian architecture GCC version 6.3.0 20170516, C version 199901 compiled with _FORTIFY_SOURCE=0 L1 cache line size (CLS)=64 thread local storage method: __thread compiled with LibHTP v0.5.25, linked against LibHTP v0.5.25 Suricata Configuration: AF_PACKET support: yes PF_RING support: no NFQueue support: no NFLOG support: no IPFW support: no Netmap support: no DAG enabled: no Napatech enabled: no Unix socket enabled: yes Detection enabled: yes Libmagic support: yes libnss support: yes libnspr support: yes libjansson support: yes hiredis support: no hiredis async with libevent: no Prelude support: no PCRE jit: yes LUA support: yes, through luajit libluajit: yes libgeoip: yes Non-bundled htp: no Old barnyard2 support: no CUDA enabled: no Hyperscan support: no Libnet support: yes Rust support (experimental): no Experimental Rust parsers: no Rust strict mode: no Suricatasc install: yes Profiling enabled: no Profiling locks enabled: no Development settings: Coccinelle / spatch: yes Unit tests enabled: no Debug output enabled: no Debug validation enabled: no Generic build parameters: Installation prefix: /usr Configuration directory: /etc/suricata/ Log directory: /var/log/suricata/ --prefix /usr --sysconfdir /etc --localstatedir /var Host: x86_64-pc-linux-gnu Compiler: gcc (exec name) / gcc (real) GCC Protect enabled: no GCC march native enabled: yes GCC Profile enabled: no Position Independent Executable enabled: no CFLAGS -g -O2 -march=native PCAP_CFLAGS -I/usr/include SECCFLAGS
Actions