Y
Hacker News
new
|
ask
|
show
|
jobs
by
drdexebtjl
28 days ago
> You can't determine how much of the memory can actually be reclaimed under memory pressure until you try to reclaim it.
Yes, and I’m arguing that we should be able to, by having the kernel keep track.
1 comments
man8alexd
27 days ago
The kernel keeps track of active/inactive pages by scanning page tables during the reclaim process. It only scans until it finds enough inactive pages to reclaim. Scanning all pages all the time is very expensive from a performance point of view.
link