Low mem virq incremental adjustments

Consider tmem before firing the virq.

Add .gitignore rune.

Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Acked-by: Dan Magenheimer <dan.magenheimer@oracle.com>
Committed-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Andres Lagar-Cavilla committed 2012-03-08 09:05:22 +00:00
1 parent 5fb0f4f5d8
commit c812282081
2 files changed
+6 -2

No files matched your search

+1
View File
@@ -203,6 +203,7 @@ tools/misc/xen-hvmctx
tools/misc/gtraceview tools/misc/gtraceview
tools/misc/gtracestat tools/misc/gtracestat
tools/misc/xenlockprof tools/misc/xenlockprof
tools/misc/lowmemd
tools/pygrub/build/* tools/pygrub/build/*
tools/python/build/* tools/python/build/*
tools/python/xen/util/path.py tools/python/xen/util/path.py
+5 -2
View File
@@ -373,7 +373,10 @@ static void __init setup_low_mem_virq(void)
static void check_low_mem_virq(void) 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); send_global_virq(VIRQ_ENOMEM);
@@ -387,7 +390,7 @@ static void check_low_mem_virq(void)
return; 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. /* Reset hysteresis. Bring threshold up one order.
* If we are back where originally set, set high * If we are back where originally set, set high
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.