Originally posted by Linuxxx
View Post
I'm guessing that a thing that happens with THP on now is that the disk cache aggressively grows to make use of unused memory (which is great), but it handles everything in 4k chunks, so when a program tries to allocate under THP, each 2MB THP makes the kernel have to 'discard' (or otherwise handle) 512 cache entries. Seems like aiming for economies of scale across the board might be beneficial. Same wth swap. If I'm swapping, I'm even more in a position where I want things handled in 2MB chunks instead of 4k at a time, and there will probably be greater compression efficiency packing two or three 2MB chunks into one 2MB swap write.
Leave a comment: