Skip to content

Commit

Permalink
DAOS-16307 client: Defer creating network context in child processes (#…
Browse files Browse the repository at this point in the history
…14875)

Create network context when a read/write operation is encountered.

Signed-off-by: Lei Huang <lei.huang@intel.com>
  • Loading branch information
wiliamhuang committed Aug 19, 2024
1 parent e28080f commit a7646d9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
7 changes: 0 additions & 7 deletions src/client/dfuse/pil4dfs/int_dfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -940,13 +940,6 @@ child_hdlr(void)
DL_WARN(rc, "daos_eq_lib_init() failed in child process");
daos_dti_reset();
td_eqh = main_eqh = DAOS_HDL_INVAL;
if (d_eq_count_max > 0) {
rc = daos_eq_create(&td_eqh);
if (rc)
DL_WARN(rc, "daos_eq_create() failed");
else
main_eqh = td_eqh;
}
context_reset = true;
}

Expand Down
5 changes: 4 additions & 1 deletion src/tests/ftest/dfuse/bash.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ def run_bashcmd(self, il_lib=None, compatible_mode=False):
f"bzip2 -z {fuse_root_dir}/lib.a",
f"chmod u-r {fuse_root_dir}/lib.a.bz2",
'fio --readwrite=randwrite --name=test --size="2M" --directory '
f'{fuse_root_dir}/ --bs=1M --numjobs="4" --ioengine=psync '
f'{fuse_root_dir}/ --bs=1M --numjobs="4" --ioengine=psync --thread=0'
"--group_reporting --exitall_on_error --continue_on_error=none",
'fio --readwrite=randwrite --name=test --size="2M" --directory '
f'{fuse_root_dir}/ --bs=1M --numjobs="4" --ioengine=psync --thread=1'
"--group_reporting --exitall_on_error --continue_on_error=none",
'fio --readwrite=randwrite --name=test --size="2M" --directory '
f'{fuse_root_dir}/ --bs=1M --numjobs="1" --ioengine=libaio --iodepth=16'
Expand Down

0 comments on commit a7646d9

Please sign in to comment.