Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel errors after run #11

Open
debian89 opened this issue Apr 5, 2017 · 7 comments
Open

Kernel errors after run #11

debian89 opened this issue Apr 5, 2017 · 7 comments

Comments

@debian89
Copy link

debian89 commented Apr 5, 2017

Hello,

When I try to run purifier proccess, its crashed with followed kernel messages:

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
D: bnxt_rte_pmd_init() called for (null)

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: PCI device 0000:01:00.0 on NUMA socket -1

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: probe driver: 8086:1572 rte_i40e_pmd

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
D: eth_i40e_dev_init(): FW 4.33 API 1.2 NVM 04.04.01 eetrack 80001869

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: PCI device 0000:01:00.1 on NUMA socket -1

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: probe driver: 8086:1572 rte_i40e_pmd

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: PCI device 0000:01:00.2 on NUMA socket -1

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: probe driver: 8086:1572 rte_i40e_pmd

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
D: eth_i40e_dev_init(): FW 4.33 API 1.2 NVM 04.04.01 eetrack 80001869

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: PCI device 0000:01:00.3 on NUMA socket -1

Message from syslogd@dx602-s16 at Apr 5 05:12:29 ...
L: probe driver: 8086:1572 rte_i40e_pmd

Kernel version is: 4.4.55

@medvedv
Copy link
Owner

medvedv commented Apr 7, 2017

Hi,

Show /var/log/purifier.log content please.

@debian89
Copy link
Author

debian89 commented Apr 7, 2017

Hello,

Here is the output:

EAL: Error - exiting with code: 1
Cause: TCP_hash_create on core 2 failed
EAL: Error - exiting with code: 1
Cause: TCP_hash_create on core 2 failed
EAL: Error - exiting with code: 1
Cause: TCP_hash_create on core 2 failed
EAL: Error - exiting with code: 1
Cause: TCP_hash_create on core 2 failed
EAL: Error - exiting with code: 1
Cause: TCP_hash_create on core 2 failed
EAL: Error - exiting with code: 1
Cause: TCP_hash_create on core 2 failed
EAL: Error - exiting with code: 1
Cause: Invalid lcores count
EAL: Error - exiting with code: 1
Cause: Invalid lcores count
EAL: Error - exiting with code: 1
Cause: TCP_hash_create on core 2 failed

@medvedv
Copy link
Owner

medvedv commented Apr 8, 2017

Hi,

In case
Cause: TCP_hash_create on core 2 failed
you have not enough memory
For every worker lcore (total cores - 2) it is recommended to have at least 1.5 Gb memory.
Or you can decrease size of hash table for states
#define PRF_TCP_CONN_HASH_SIZE (1 << 22) <-- define in prf_stateful.h
In case
Cause: Invalid lcores count
you have not enough lcores. Purifier needs to have at least 3 cores (2 + 1 worker).

@debian89
Copy link
Author

debian89 commented Apr 8, 2017

Hello,
But the server is with 8 cores and 8 gb ram?

@medvedv
Copy link
Owner

medvedv commented Apr 8, 2017

How do you run purifier?
And show
cat /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages
in case Xeon E3 or
cat /sys/devices/system/node/node0/hugepages/hugepages-1048576kB/nr_hugepages
in case E5

@debian89
Copy link
Author

Hello,

Sorry for my late reply. nr_hugepages is 1024
I am starting process with parameters: ./purifier -c 0x7 -n 4

@medvedv
Copy link
Owner

medvedv commented Apr 19, 2017

Hi,

Looks like it's ok. For -c 0x7 you need to have about 1,5 - 2 Gb of memory. But according to log you don't have enough memory (Cause: TCP_hash_create on core 2 failed). Try
-#define PRF_TCP_CONN_HASH_SIZE (1 << 22)
+#define PRF_TCP_CONN_HASH_SIZE (1 << 19)
in prf_stateful.h

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants