aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYi-wei Zhao <gbjc64@motorola.com>2012-12-20 18:06:21 -0600
committerZiyan <jaraidaniel@gmail.com>2016-01-08 10:44:50 +0100
commit95c015c61de96acca5bb4f3fd77f0cdab3322060 (patch)
treef0e14c2f4ec30e0c7fbbca29473779871026e09a /include
parente9e13169869ecfd1b2566a923cf08a3d35b21614 (diff)
downloadkernel_samsung_tuna-95c015c61de96acca5bb4f3fd77f0cdab3322060.zip
kernel_samsung_tuna-95c015c61de96acca5bb4f3fd77f0cdab3322060.tar.gz
kernel_samsung_tuna-95c015c61de96acca5bb4f3fd77f0cdab3322060.tar.bz2
mm: page_alloc: retry direct compaction
When system load is heavy, memory commpaction may encounter transient failure; add retry mechanism. And add the following statistic variable "compact_retry_success" in /proc/vmstat to see how many compaction success due to the retry. And __zone_watermark_ok() will easily return false when system is busy, which will make compaction failure as well. Amend some to save margin cases. This patch is ported from the patch: * (CR) mem compaction enhancement Reviewed-on: http://gerrit.pcs.mot.com/494962 Change-Id: I5ad08364678c7e68993f66e0c0d43d97712a99b6 Signed-off-by: Yi-wei Zhao <gbjc64@motorola.com> Reviewed-on: http://gerrit.pcs.mot.com/507230 Tested-by: Jira Key <JIRAKEY@motorola.com> Reviewed-by: Jason Hrycay <jason.hrycay@motorola.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/vm_event_item.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/vm_event_item.h b/include/linux/vm_event_item.h
index 03b90cdc..a70cc00 100644
--- a/include/linux/vm_event_item.h
+++ b/include/linux/vm_event_item.h
@@ -38,7 +38,7 @@ enum vm_event_item { PGPGIN, PGPGOUT, PSWPIN, PSWPOUT,
PAGEOUTRUN, ALLOCSTALL, PGROTATED,
#ifdef CONFIG_COMPACTION
COMPACTBLOCKS, COMPACTPAGES, COMPACTPAGEFAILED,
- COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS,
+ COMPACTSTALL, COMPACTFAIL, COMPACTSUCCESS, COMPACTSUCCESS_RETRY,
#endif
#ifdef CONFIG_HUGETLB_PAGE
HTLB_BUDDY_PGALLOC, HTLB_BUDDY_PGALLOC_FAIL,