mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
5fb0f4f5d8
commit
c812282081
2 files changed
+6
-2
No files matched your search
@@ -203,6 +203,7 @@ tools/misc/xen-hvmctx
|
||||
tools/misc/gtraceview
|
||||
tools/misc/gtracestat
|
||||
tools/misc/xenlockprof
|
||||
tools/misc/lowmemd
|
||||
tools/pygrub/build/*
|
||||
tools/python/build/*
|
||||
tools/python/xen/util/path.py
|
||||
|
||||
@@ -373,7 +373,10 @@ static void __init setup_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);
|
||||
|
||||
@@ -387,7 +390,7 @@ static void check_low_mem_virq(void)
|
||||
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
|
||||
|
||||