Files
kernel/include/linux
Andrea Arcangeli ba6f0ff398 ksm: fix ksm swapin time optimization
The new anon-vma code, was suboptimal and it lead to erratic invocation of
ksm_does_need_to_copy.  That leads to host hangs or guest vnc lockup, or
weird behavior.  It's unclear why ksm_does_need_to_copy is unstable but
the point is that when KSM is not in use, ksm_does_need_to_copy must never
run or we bounce pages for no good reason.  I suspect the same hangs will
happen with KVM swaps.  But this at least fixes the regression in the
new-anon-vma code and it only let KSM bugs triggers when KSM is in use.

The code in do_swap_page likely doesn't cope well with a not-swapcache,
especially the memcg code.

Signed-off-by: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Rik van Riel <riel@redhat.com>
Cc: Izik Eidus <ieidus@yahoo.com>
Cc: Avi Kivity <avi@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-08-09 20:44:58 -07:00
..
2010-07-31 14:20:02 +01:00
2010-08-02 15:03:21 -03:00
2010-05-28 01:38:00 +02:00
2010-05-03 08:33:00 -04:00
2010-08-05 13:26:20 +01:00
2010-06-04 16:00:42 -04:00
2010-06-15 09:56:01 +10:00
2010-05-27 09:12:53 -07:00
2010-05-19 13:38:54 -04:00
2010-06-24 21:30:09 -07:00
2010-08-06 15:36:47 -05:00
2010-05-19 22:41:57 -04:00
2010-05-10 16:08:01 -07:00
2010-08-04 11:00:45 +02:00
2010-05-17 16:30:58 -07:00
2010-08-05 09:22:31 -05:00
2010-07-12 14:41:40 +02:00
2010-05-25 08:07:01 -07:00
2010-05-27 09:12:42 -07:00
2010-05-21 09:34:29 -07:00
2010-07-19 11:54:16 +02:00
2010-06-16 18:08:13 +02:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-06-23 13:16:38 -07:00
2010-05-11 12:01:10 -07:00
2010-06-22 08:07:01 +02:00
2010-07-19 22:01:26 -07:00
2010-05-03 11:50:57 +02:00
2010-06-03 03:21:52 -07:00
2010-05-21 09:37:29 -07:00
2010-08-09 20:44:58 -07:00
2010-06-29 10:07:09 +02:00
2010-05-14 15:09:32 -04:00
2010-08-02 06:39:44 +03:00
2010-08-01 10:47:00 +03:00
2010-07-06 13:45:24 -04:00
2010-06-16 18:03:15 +02:00
2010-07-14 17:14:00 +10:00
2010-06-03 03:21:52 -07:00
2010-08-09 20:44:57 -07:00
2010-05-11 14:40:55 +02:00
2010-06-03 03:21:52 -07:00
2010-06-03 03:21:52 -07:00
2010-05-17 05:27:42 +02:00
2010-06-03 03:21:52 -07:00
2010-07-02 21:59:08 -07:00
2010-07-05 16:14:52 -06:00
2010-07-05 16:14:25 -06:00
2010-07-24 09:58:22 -06:00
2010-07-31 19:53:06 +08:00
2010-07-30 09:29:35 -07:00
2010-06-03 03:21:52 -07:00
2010-07-19 01:58:48 +02:00
2010-07-19 01:58:48 +02:00
2010-05-03 15:53:54 -07:00
2010-06-03 03:21:52 -07:00
2010-07-19 11:02:51 +02:00
2010-05-27 09:12:50 -07:00
2010-05-30 09:02:47 -07:00
2010-05-11 10:09:47 +02:00
2010-07-22 13:46:21 -07:00
2010-06-03 03:21:52 -07:00
2010-05-25 11:41:43 -04:00
2010-08-03 00:31:48 -07:00
2010-06-16 14:55:35 -07:00
2010-05-10 11:08:35 -07:00
2010-05-27 09:12:43 -07:00
2010-07-21 21:43:06 +02:00
2010-05-15 23:28:39 -07:00
2010-05-12 23:02:23 -07:00
2010-08-06 10:37:02 -04:00
2010-05-19 22:40:47 -04:00
2010-08-02 10:37:17 -05:00
2010-05-19 22:15:46 +09:30
2010-06-03 03:21:52 -07:00