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

Process exit with orphan rings when spawning multiple processes #77

Closed
tokers opened this issue Jul 13, 2018 · 1 comment
Closed

Process exit with orphan rings when spawning multiple processes #77

tokers opened this issue Jul 13, 2018 · 1 comment

Comments

@tokers
Copy link

tokers commented Jul 13, 2018

Hello!

I am using the QAT driver (qat1.7.l.4.2.0-00012), and I am using QAT_Engine through OpenSSL, ultimately called by Nginx.

I occurred the problem " Process exit with orphan rings when spawning multiple processes", the following messages was showed by dmesg.

Jul 13 18:12:58 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26515 nginx exit with orphan rings
Jul 13 18:12:58 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26517 nginx exit with orphan rings
Jul 13 18:12:59 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26518 nginx exit with orphan rings
Jul 13 18:12:59 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26521 nginx exit with orphan rings
Jul 13 18:12:59 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26520 nginx exit with orphan rings
Jul 13 18:12:59 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26516 nginx exit with orphan rings
Jul 13 18:12:59 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26514 nginx exit with orphan rings
Jul 13 18:12:59 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26519 nginx exit with orphan rings
Jul 13 18:13:18 UPYUN_SSD kernel: dh895xcc 0000:03:00.0: Process 26568 nginx exit with orphan rings

The Nginx is configured to 8 workers, there are also some messages in error.log:

[error] SalCtrl_GetEnabledServices() - : Failed to get enabled services from ADF
[error] SalCtrl_ServiceEventHandler() - : Failed to get enabled services

I found this issue was recorded in this document: https://01.org/sites/default/files/downloads/intelr-quickassist-technology/336211qatrelnotespublicrev001.pdf . The description is:

 If multiple processes start a user space service access layer (icp_sal_userStart) and they
all exit together, the syslog may show a message "Process <PID> <NAME> exit with
orphan rings"

In order to prevent all the workers exit together, I tried to postpone the each worker's exit() calling by making each worker sleeps for a random time, but it seems useless.

Since the document is released in July 2017, Is there any new scheme that we can fix this issue?

@tokers
Copy link
Author

tokers commented Jul 13, 2018

It seems that the issue is caused by worker's permission. After changing the nginx worker process user to root, this problem was disappear.

@tokers tokers closed this as completed Jul 18, 2018
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

1 participant