summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorWaiman Long <longman@redhat.com>2017-02-08 10:44:15 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2017-02-09 17:01:39 +1100
commitadf0206f053cc0bfb4b8e7ddb4ef81b9ecfdd99e (patch)
treefbc6a2241b41b44df71900b9f18235983db2795c /mm
parentb4d623f67460595ba2c37eefceec33a3cea97422 (diff)
debugobjects: scale thresholds with # of CPUs
On a large SMP systems with hundreds of CPUs, the current thresholds for allocating and freeing debug objects (256 and 1024 respectively) may not work well. This can cause a lot of needless calls to kmem_aloc() and kmem_free() on those systems. To alleviate this thrashing problem, the object freeing threshold is now increased to "1024 + # of CPUs * 32". Whereas the object allocation threshold is increased to "256 + # of CPUs * 4". That should make the debug objects subsystem scale better with the number of CPUs available in the system. Link: http://lkml.kernel.org/r/1483647425-4135-3-git-send-email-longman@redhat.com Signed-off-by: Waiman Long <longman@redhat.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: "Du Changbin" <changbin.du@intel.com> Cc: Christian Borntraeger <borntraeger@de.ibm.com> Cc: Jan Stancek <jstancek@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions