]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Restrict logging in MissingLoc::add_source_info
authorBill Scales <bill_scales@uk.ibm.com>
Fri, 21 Nov 2025 10:38:44 +0000 (10:38 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Thu, 27 Nov 2025 07:45:07 +0000 (07:45 +0000)
commit3693e835b0a398ec726ed83abcbe84673cfa6ba9
treeaca5a068a87687ef353ee52dae0a655c8a1a9c72
parentc0c02d747a7ce4fdd5c610828eb67af72f88e831
osd: Restrict logging in MissingLoc::add_source_info

add_source_info can generate an excessive amount of logging
if a PG has thousands of missing objects. When a system is
under load and threads are repeatedly context switching this
can lead to timeouts (tests showed this function taking up
to 10 seconds to execute with 99% of that time being in
logging calls where the thread was being pre-empted).
Stopping logging after the function has been running for
more than 0.5 seconds strikes a balance between providing
sufficient informtion to debug problems while providing
more stability when a system is heavily loaded.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/osd/MissingLoc.cc