diff options
author | Waiman Long <longman@redhat.com> | 2017-01-25 10:51:37 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2017-01-25 13:50:37 +1100 |
commit | af2418d76f5d8d0b0b308056847a4c7ad0f14343 (patch) | |
tree | b02ad6457c8a83f16a4acfed68bbf4a87339e11b /kernel/sched/cpudeadline.h | |
parent | 967d4e52599dcc22680a24bcad7734ff3824faaa (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 'kernel/sched/cpudeadline.h')
0 files changed, 0 insertions, 0 deletions