Files
kernel/include/linux
Nathan Zimmer 4a8c7bb59a mm/mempolicy.c: convert the shared_policy lock to a rwlock
When running the SPECint_rate gcc on some very large boxes it was
noticed that the system was spending lots of time in
mpol_shared_policy_lookup().  The gamess benchmark can also show it and
is what I mostly used to chase down the issue since the setup for that I
found to be easier.

To be clear the binaries were on tmpfs because of disk I/O requirements.
We then used text replication to avoid icache misses and having all the
copies banging on the memory where the instruction code resides.  This
results in us hitting a bottleneck in mpol_shared_policy_lookup() since
lookup is serialised by the shared_policy lock.

I have only reproduced this on very large (3k+ cores) boxes.  The
problem starts showing up at just a few hundred ranks getting worse
until it threatens to livelock once it gets large enough.  For example
on the gamess benchmark at 128 ranks this area consumes only ~1% of
time, at 512 ranks it consumes nearly 13%, and at 2k ranks it is over
90%.

To alleviate the contention in this area I converted the spinlock to an
rwlock.  This allows a large number of lookups to happen simultaneously.
The results were quite good reducing this consumtion at max ranks to
around 2%.

[akpm@linux-foundation.org: tidy up code comments]
Signed-off-by: Nathan Zimmer <nzimmer@sgi.com>
Acked-by: David Rientjes <rientjes@google.com>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Cc: Nadia Yvette Chambers <nyc@holomorphy.com>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-01-14 16:00:49 -08:00
..
2016-01-11 17:48:53 -05:00
2016-01-05 18:04:58 +01:00
2015-11-16 15:41:49 +00:00
2015-11-07 10:40:47 -07:00
2015-12-28 13:07:07 -07:00
2015-12-06 12:46:31 +01:00
2015-10-31 19:05:59 -04:00
2015-10-30 01:47:27 -04:00
2015-12-14 10:03:46 +01:00
2015-11-23 09:44:58 +01:00
2016-01-14 16:00:49 -08:00
2015-10-27 18:55:31 -07:00
2015-11-06 17:50:42 -08:00
2015-11-06 17:50:42 -08:00
2016-01-07 14:31:27 -05:00
2016-01-10 22:13:15 -05:00
2015-12-13 19:59:48 -08:00
2016-01-04 16:11:11 -05:00
2016-01-14 16:00:49 -08:00
2016-01-04 10:20:19 -05:00
2015-11-05 14:36:09 -05:00
2015-11-23 09:44:58 +01:00
2015-12-04 08:38:42 -07:00