]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: remove swap token code
authorRik van Riel <riel@redhat.com>
Thu, 12 Apr 2012 22:52:00 +0000 (08:52 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 17 Apr 2012 03:47:18 +0000 (13:47 +1000)
commitb1b9c3307d5cd18257128ea3e62ccb260efd1183
tree5962f6f7c8c5de87ededac9b543304cd9c36ff13
parentce28503e67be4c99cef787ba37ddeb2ed8f4d030
mm: remove swap token code

The swap token code no longer fits in with the current VM model.  It does
not play well with cgroups or the better NUMA placement code in
development, since we have only one swap token globally.

It also has the potential to mess with scalability of the system, by
increasing the number of non-reclaimable pages on the active and inactive
anon LRU lists.

Last but not least, the swap token code has been broken for a year without
complaints, as reported by Konstantin Khlebnikov.  This suggests we no
longer have much use for it.

The days of sub-1G memory systems with heavy use of swap are over.  If we
ever need thrashing reducing code in the future, we will have to implement
something that does scale.

Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm_types.h
include/linux/swap.h
include/trace/events/vmscan.h
kernel/fork.c
mm/Makefile
mm/memcontrol.c
mm/memory.c
mm/rmap.c
mm/thrash.c [deleted file]
mm/vmscan.c