-
Notifications
You must be signed in to change notification settings - Fork 304
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
DAOS-16307 client: Defer creating network context in child processes #14875
Conversation
Features: ioil pil4dfs Create network context when a read/write operation is encountered. Required-githooks: true Signed-off-by: Lei Huang <lei.huang@intel.com>
Ticket title is 'Deferring creating network context after fork() until a read/write operation is issued' |
All tests passed in CI. |
src/client/dfuse/il/int_posix.c
Outdated
@@ -807,11 +807,6 @@ child_hdlr(void) | |||
DL_WARN(rc, "daos_eq_lib_init() failed in child process"); | |||
daos_dti_reset(); | |||
ioil_eqh = ioil_iog.iog_main_eqh = DAOS_HDL_INVAL; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think we should do this for0 IOIL.
IOIL only intercepts read/write calls unlike pil4dfs. So it's more likely that that context is going to be used in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
child_hdlr() is executed once a child process is forked if the parent process calls open() to access files on daos. We do not know whether the child process only calls metadata related functions or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was not my point.
IOIL does not intercept any metadata or libaio calls, so creating a context here is not going to matter much and is only beneficial in case the child actually does IO that is intercepted.
But in pil4dfs case, the child will create additional network context now if it does libaio for example, and we already started creating aio context here taking away a resource from there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok. Just reverted the change in libioil.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but will defer to Mohamad.
FYI Features: ioil
doesn't cover all libioil tests because the il
tag is used too.
So you'd need Features: ioil il
I'll create a ticket to update those
Features: ioil il pil4dfs Required-githooks: true Signed-off-by: Lei Huang <lei.huang@intel.com>
Features: pil4dfs Required-githooks: true Signed-off-by: Lei Huang <lei.huang@intel.com>
Test stage Test RPMs on EL 8.6 completed with status FAILURE. https://build.hpdd.intel.com/job/daos-stack/job/daos/job/PR-14875/2/display/redirect |
Test stage Functional Hardware Large completed with status UNSTABLE. https://build.hpdd.intel.com/job/daos-stack/job/daos//view/change-requests/job/PR-14875/3/testReport/ |
Test stage Functional Hardware Medium completed with status FAILURE. https://build.hpdd.intel.com//job/daos-stack/job/daos/view/change-requests/job/PR-14875/3/execution/node/1556/log |
Two failed tests in CI.
|
TBH it's a bit risky to land changes that actually do effect existing tests that are intermittently failing. let's hold this and investigate the other issues first before landing this one. |
ok. I am working on https://daosio.atlassian.net/browse/DAOS-16315. Thank you! |
Can we land this PR now? The failure of libaio + fork() in fio is caused by mercury 2.4.0rc4. |
…14875) Create network context when a read/write operation is encountered. Signed-off-by: Lei Huang <lei.huang@intel.com>
Features: ioil pil4dfs
Create network context when a read/write operation is processed.
Required-githooks: true
Before requesting gatekeeper:
Features:
(orTest-tag*
) commit pragma was used or there is a reason documented that there are no appropriate tags for this PR.Gatekeeper: