Slow boot times when disk space is low

I’ve been trying to troubleshoot an issue for months and I’ve finally figured out the cause, but I have no clue what to do about it. It seems that when my boot drive disk space gets low, macOS takes around 10 minutes to boot. Normal boot times are incredibly fast, my issue is only when my disk space gets low. When booting with verbose output I see messages about the low disk space as well. If I delete some files and free up some space then my boot times go back to normal. Does anyone have experience with this?

FWIW, I’m currently experiencing this with around 19GB of free space on my boot drive.

Intel i9 9900k Gigabyte Z390 AMD RX 580

submitted by /u/Proto_Tech
[link] [comments]