Oleg Nesterov
39af1765f1
memcg: optimize the "Search everything else" loop in mm_update_next_owner()
...
for_each_process_thread() is sub-optimal. All threads share the same
->mm, we can swicth to the next process once we found a thread with
->mm != NULL and ->mm != mm.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Cc: Balbir Singh <bsingharora@gmail.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Michal Hocko <mhocko@suse.cz>
Cc: Peter Chiang <pchiang@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-06-04 16:54:03 -07:00
..
2014-04-18 14:20:48 +02:00
2014-06-03 13:18:00 -07:00
2013-11-13 12:09:34 +09:00
2014-04-28 12:20:00 +02:00
2014-06-03 14:00:15 -07:00
2014-06-03 23:13:00 +02:00
2014-06-03 09:01:02 -07:00
2014-06-03 12:57:53 -07:00
2014-06-03 23:10:15 +02:00
2014-04-15 20:26:58 +02:00
2014-05-02 23:12:42 -04:00
2013-12-10 18:21:34 +00:00
2014-02-18 11:17:17 +01:00
2014-02-18 11:17:17 +01:00
2014-04-24 13:44:54 -04:00
2014-03-20 10:10:53 -04:00
2014-04-12 12:38:53 -07:00
2014-04-12 12:38:53 -07:00
2013-12-20 12:25:45 -08:00
2014-04-03 09:26:18 -07:00
2014-05-13 11:28:30 -04:00
2014-05-27 14:33:17 -07:00
2014-04-02 12:51:41 -07:00
2014-05-05 16:07:46 -07:00
2014-05-22 10:21:31 +02:00
2014-04-03 16:22:16 -07:00
2013-11-13 12:09:12 +09:00
2013-11-09 00:16:23 -05:00
2014-06-04 16:54:03 -07:00
2014-02-13 18:13:22 -08:00
2014-06-04 16:54:01 -07:00
2013-12-19 13:50:32 -05:00
2014-02-02 14:09:12 -08:00
2014-06-03 12:57:53 -07:00
2014-04-03 16:21:05 -07:00
2014-06-03 13:18:00 -07:00
2014-04-03 16:21:07 -07:00
2014-02-21 21:49:07 +01:00
2013-10-19 19:45:35 -04:00
2014-04-07 16:36:11 -07:00
2013-11-15 09:32:22 +09:00
2014-05-28 13:24:26 +10:00
2014-04-18 14:20:48 +02:00
2013-11-13 12:09:26 +09:00
2014-04-25 12:00:49 -07:00
2014-06-04 16:53:51 -07:00
2014-03-31 14:13:25 -07:00
2013-10-25 17:15:18 -04:00
2014-05-01 10:35:01 -07:00
2014-02-26 06:35:13 -08:00
2013-12-05 21:28:42 +08:00
2014-04-07 16:36:08 -07:00
2013-12-04 14:09:46 +10:30
2014-04-02 16:20:21 -07:00
2013-12-09 16:56:29 +01:00
2014-04-07 14:55:46 -07:00
2014-03-06 15:35:10 +01:00
2013-12-18 19:04:50 -08:00
2014-04-12 14:49:50 -07:00
2014-04-07 16:35:54 -07:00
2014-05-23 10:47:21 -06:00
2014-04-16 15:25:53 -04:00
2014-04-07 16:36:11 -07:00
2014-02-24 14:47:15 -08:00
2014-05-22 11:36:10 +02:00
2014-03-11 11:33:47 +01:00
2014-04-03 16:21:05 -07:00
2014-05-22 11:16:36 +02:00
2013-11-13 12:09:33 +09:00
2014-04-25 12:00:49 -07:00
2013-12-10 18:25:28 +00:00
2013-12-10 18:25:28 +00:00
2013-11-19 16:39:05 -05:00
2014-04-30 13:46:17 +02:00
2014-05-14 09:46:30 -07:00
2014-05-08 09:10:56 -04:00
2014-02-24 14:47:15 -08:00
2014-04-14 16:03:02 -07:00
2014-04-03 16:21:07 -07:00
2014-04-18 16:40:08 -07:00
2014-05-22 10:28:56 +02:00