Hi, This is an improved version that reduces failures due to calling it with no zones with pressure... It has some problems related to latency (as normal kernel) probably due to the maximum of 64 loops in do_try_to_free_pages... [might it be time to back off some of earlier patches?] It has survived several memory tests (mmap002) and with good performance in more normal situations. [it could 'scan' more before giving up in shrink_mmap] /RogerL -- Home page: http://www.norran.net/nra02596/