|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Low mem virq incremental adjustments
# HG changeset patch
# User Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
# Date 1331197522 0
# Node ID 56ca2b874928af0352e445ee31aefe5d7fda2f49
# Parent f611200469159a960c3f0b975aa0f91ec768e29f
Low mem virq incremental adjustments
Consider tmem before firing the virq.
Add .gitignore rune.
Signed-off-by: Andres Lagar-Cavilla <andres@xxxxxxxxxxxxxxxx>
Acked-by: Dan Magenheimer <dan.magenheimer@xxxxxxxxxx>
Committed-by: Keir Fraser <keir@xxxxxxx>
---
diff -r f61120046915 -r 56ca2b874928 .gitignore
--- a/.gitignore Wed Mar 07 11:50:31 2012 +0100
+++ b/.gitignore Thu Mar 08 09:05:22 2012 +0000
@@ -203,6 +203,7 @@
tools/misc/gtraceview
tools/misc/gtracestat
tools/misc/xenlockprof
+tools/misc/lowmemd
tools/pygrub/build/*
tools/python/build/*
tools/python/xen/util/path.py
diff -r f61120046915 -r 56ca2b874928 xen/common/page_alloc.c
--- a/xen/common/page_alloc.c Wed Mar 07 11:50:31 2012 +0100
+++ b/xen/common/page_alloc.c Thu Mar 08 09:05:22 2012 +0000
@@ -373,7 +373,10 @@
static void check_low_mem_virq(void)
{
- if ( unlikely(total_avail_pages <= low_mem_virq_th) )
+ unsigned long avail_pages = total_avail_pages +
+ opt_tmem ? tmem_freeable_pages() : 0;
+
+ if ( unlikely(avail_pages <= low_mem_virq_th) )
{
send_global_virq(VIRQ_ENOMEM);
@@ -387,7 +390,7 @@
return;
}
- if ( unlikely(total_avail_pages >= low_mem_virq_high) )
+ if ( unlikely(avail_pages >= low_mem_virq_high) )
{
/* Reset hysteresis. Bring threshold up one order.
* If we are back where originally set, set high
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |