I redid most of the cart code today. I went back to the 2 lists approach instead of the 3 lists Rahul has. Attached is my current code. I'm still off on the shortterm (n_s) count but I'll get there. Also this thing livelocks the kernel under severe swap pressure, shrink_cache just doesn't make any progress. I'll look into these two issues tomorrow after some sleep :-) Any comments are ofcourse welcome. Kind regards, -- Peter Zijlstra