]> asedeno.scripts.mit.edu Git - linux.git/commit
Merge branch 'net-revert-lib-percpu_counter-API-for-fragmentation-mem-accounting'
authorDavid S. Miller <davem@davemloft.net>
Sun, 3 Sep 2017 18:01:05 +0000 (11:01 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Sep 2017 18:01:05 +0000 (11:01 -0700)
commit4113f36bc7084ea0d47c0f5f1137776b603c91a7
treedf2e5f6fbb0792262701818650a9d6f35f6b5151
parent64327fc811268d4a24de03dac242ea29de6be75f
parent5a63643e583b6a9789d7a225ae076fb4e603991c
Merge branch 'net-revert-lib-percpu_counter-API-for-fragmentation-mem-accounting'

Jesper Dangaard Brouer says:

====================
net: revert lib/percpu_counter API for fragmentation mem accounting

There is a bug in fragmentation codes use of the percpu_counter API,
that can cause issues on systems with many CPUs, above 24 CPUs.

After much consideration and different attempts at solving the API
usage.  The conclusion is to revert to the simple atomic_t API instead.

The ratio between batch size and threshold size make it a bad use-case
for the lib/percpu_counter API.  As using the correct API calls will
unfortunately cause systems with many CPUs to always execute an
expensive sum across all CPUs. Plus the added complexity is not worth it.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>