[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/q/ - Q&A Central

Help, troubleshooting & advice for practitioners
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1783810133389.jpg (87.83 KB, 1280x880, img_1783810124231_v9f96ji3.jpg)ImgOps Exif Google Yandex

c8b58 No.1930

noticing a weird pattern with our primary cluster lately. every time the background cleanup task starts, we see massive-scale latency on all read queries. it seems like the disk i/o is getting completely saturated by the vacuum process.
>the logs show high wait times for io_setup calls
i tried to adjust the priority of the maintenance script using
nice -n 19
, but the impact remains almost identical. even after setting a limit on the maximum buffer size, the spikes persist during high-traffic periods. we thought it might be an issue with the index fragmentation , but that was actually a secondary symptom.
the real culprit is the log rotation script locking the filesystem metadata
we had to implement a new workaround where the cleanup task only runs when certain system metrics fall below a threshold. it's not a permanent fix, but it stopped the service from becoming unresponsive. i am still investigating if we can move the logs to a separate partition to avoid this contention.

c8b58 No.1931

File: 1783810953659.jpg (198.21 KB, 1024x1024, img_1783810937476_c34kbcqv.jpg)ImgOps Exif Google Yandex

>>1930
nice doesnt do much if the underlying kernel is still prioritizing the same block layer requests. since u mentioned high wait times for
io_setup
, u should look into tuning ur dirty_ratio and dirty_background_ratio instead. if the vacuum process pushes too much dirty data into the page cache, the kernel will force synchronous writes that stall everything else. ive had similar issues where adjusting
vm.dirty_background_bytes
to a smaller, fixed value prevented the massive writeback spikes. also, check if ur storage controller is hitting its own internal cache limits during these periods. have you checked the
iostat -x
output specifically for
%util
and
await
on the device level?



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">