[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] compute the correct totalram_pages when the balloon increase or decrease the
# HG changeset patch # User vhanquez@xxxxxxxxxxxxxxxxxxxxxxx # Node ID e47f04c55eb1612bca605c972943ae166aae22d0 # Parent 98c6c36ac4443ce7f95c87eb317bf13d868e14e0 compute the correct totalram_pages when the balloon increase or decrease the reservation. memory reports should be more correct now. From: Satoshi Uchida <s-uchida@xxxxxxxxxxxxx> Signed-off-by: Vincent Hanquez <vincent@xxxxxxxxxxxxx> diff -r 98c6c36ac444 -r e47f04c55eb1 linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c --- a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Mon Oct 24 13:12:42 2005 +++ b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c Mon Oct 24 11:57:37 2005 @@ -70,6 +70,9 @@ static unsigned long current_pages; static unsigned long target_pages; +/* VM /proc information for memory */ +extern unsigned long totalram_pages; + /* We may hit the hard limit in Xen. If we do then we remember it. */ static unsigned long hard_limit; @@ -223,6 +226,7 @@ } current_pages += nr_pages; + totalram_pages = current_pages; out: balloon_unlock(flags); @@ -295,6 +299,7 @@ XENMEM_decrease_reservation, &reservation) != nr_pages); current_pages -= nr_pages; + totalram_pages = current_pages; balloon_unlock(flags); _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |