From a733a70261d1c847e3130c509cc911f86d71453d Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Sun, 10 Feb 2019 13:12:10 -0600 Subject: Add more agressive memory allocation calls If we hit a situation where we can't allocate a page of memory, this will force a coalesce (defrag) a few times and then eventually trigger other memory reclamation actions. Also tweaked a few spots in the kernel to enhance debug: - add more stops to look at errors (HB_BREAK_ON_ERROR) - add more backtrace calls - add a new debug flag to count the extra coalesce calls Change-Id: Ibac7079a44a12dc61e41304de4c4ae518c206d13 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71653 Tested-by: Jenkins Server Tested-by: Jenkins OP Build CI Reviewed-by: Matt Derksen Reviewed-by: Nicholas E. Bofferding Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Daniel M. Crowell --- src/include/kernel/pagemgr.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/include/kernel') diff --git a/src/include/kernel/pagemgr.H b/src/include/kernel/pagemgr.H index 2431c613d..7b5deddb4 100644 --- a/src/include/kernel/pagemgr.H +++ b/src/include/kernel/pagemgr.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2010,2018 */ +/* Contributors Listed Below - COPYRIGHT 2010,2019 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -200,6 +200,7 @@ class PageManager static size_t cv_coalesce_count; //!< running coalesced counter static size_t cv_low_page_count; //!< lowest page count + static size_t cv_alloc_coalesce_count; //!< number of repeat allocs protected: -- cgit v1.2.3