[RFC] Remove mlocked pages from the LRU and track them The patchset removes mlocked pages from the LRU and maintains a counter for the number of discovered mlocked pages. This is a lazy scheme for accounting for mlocked pages. The pages may only be discovered to be mlocked during reclaim. However, we attempt to detect mlocked pages at various other opportune moments. So in general the mlock counter is not far off the number of actual mlocked pages in the system. Patch against 2.6.20-rc6-mm3 Known problems to be resolved: - Page state bit used to mark a page mlocked is not available on i386 with NUMA. - Note tested on SMP, UP. Need to catch a plane in 2 hours. Tested on: IA64 NUMA 12p