ntop / n2disk

Open source components and extensions for n2disk
503 stars 11 forks source link

Segmentation Fault when trying to use Multiple reader threads #40

Closed RezaMohammadi99 closed 3 years ago

RezaMohammadi99 commented 3 years ago

I am running n2disk on a super-micro server running Ubuntu 20.04, linux kernel 5.8.0-55-generic. When I try to specify multiple reader threads with core affinities, n2disk crashes and produces a segmentation fault. I have provided the log below.

sudo n2disk -R 0,1,2,3 -S 4 -zI 5,6 -C 256 -b 65536 -p 10240 -L -i ntxs1 -o /mnt/storage -e 1 17/Jun/2021 16:47:28 [n2disk.c:6250] [DEBUG] Simulating packet capture 17/Jun/2021 16:47:28 [n2disk.c:6718] Welcome to n2disk v.3.6.210604 (r5261) [CPU 830F1] 17/Jun/2021 16:47:28 [n2disk.c:6751] Running on 2 node(s) system with 64 core(s). NUMA affinity set to node -1. 17/Jun/2021 16:47:28 [n2disk.c:6811] Using PF_RING for packet capture 17/Jun/2021 16:47:28 [n2disk.c:6833] WARNING: If you are using standard drivers (packet capture via kernel) please disable time-pulse thread 17/Jun/2021 16:47:28 [n2disk.c:6836] Multithread support enabled

PS. Is there documentation on specifying multiple reader threads?

cardigliano commented 3 years ago

@RezaMohammadi99 what interface model is ntxs1? In any case I recommend removing the -R option which is deprecated (it's still there for backward compatibility) and it is not really required.