diff options
author | Mark Kogan <mkogan@ibm.com> | 2023-11-28 13:34:31 +0100 |
---|---|---|
committer | Mark Kogan <mkogan@ibm.com> | 2023-12-06 13:48:40 +0100 |
commit | dd258d8da00c400fdca752c47366b6bd453e27ed (patch) | |
tree | 6a9f42cf284014470290ae9693f14d799ab31137 /src/rgw/driver/rados | |
parent | Merge pull request #54305 from rhcs-dashboard/add-tags (diff) | |
download | ceph-dd258d8da00c400fdca752c47366b6bd453e27ed.tar.xz ceph-dd258d8da00c400fdca752c47366b6bd453e27ed.zip |
rgw: d3n: fix valgrind reported leak related to libaio worker threads
which sporadically reproduces on teuthology ubuntu instances
happens because a race between RGW shutdown occurring before
the libaio worker threads had terminated
to fix, reduced the libaio threads inactivity shutdown time
ref:
man aio_init
...
aio_idle_time
This field specifies the amount of time in seconds that a worker thread
should wait for further requests before terminating, after having
completed a previous request. The
default value is 1.
...
Fixes: https://tracker.ceph.com/issues/63445
Signed-off-by: Mark Kogan <mkogan@ibm.com>
Diffstat (limited to 'src/rgw/driver/rados')
-rw-r--r-- | src/rgw/driver/rados/rgw_d3n_datacache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rgw/driver/rados/rgw_d3n_datacache.cc b/src/rgw/driver/rados/rgw_d3n_datacache.cc index 18d213cf6c3..c81954fce1c 100644 --- a/src/rgw/driver/rados/rgw_d3n_datacache.cc +++ b/src/rgw/driver/rados/rgw_d3n_datacache.cc @@ -104,7 +104,7 @@ void D3nDataCache::init(CephContext *_cct) { struct aioinit ainit{0}; ainit.aio_threads = cct->_conf.get_val<int64_t>("rgw_d3n_libaio_aio_threads"); ainit.aio_num = cct->_conf.get_val<int64_t>("rgw_d3n_libaio_aio_num"); - ainit.aio_idle_time = 10; + ainit.aio_idle_time = 5; aio_init(&ainit); #endif } |