WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] kernel /proc information modified for xen mem-set

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] kernel /proc information modified for xen mem-set
From: "Satoshi Uchida" <s-uchida@xxxxxxxxxxxxx>
Date: Fri, 21 Oct 2005 20:08:59 +0900
Delivery-date: Fri, 21 Oct 2005 11:06:18 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcXWL9WYlVCOccP5TuaF1ZTCcdeY3g==
Hi.

I interested that memory capacity can be changed.
But, although xen balloon information(/proc/xen/balloon) is modified for
xen mem-set command, 
memory information in domain is not modified.

In actually, MemFree is computed each time, but TotalMem is setup at
boot time.
So, in top command and etc.,  memory used decrease, but memory free
increased.
However, this is not correct, and If anyone see this information, he/she
maybe perplexed.

This patch is reflect TotalMem information.
But, I think that like this solution is not excellent.

Thank you.

from xen_changeset : Wed Oct 19 18:18:30 2005 +0100 7438:fb265175f47c

+++ a/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c        Fri Oct
21 19:51:41 2005
--- b/linux-2.6-xen-sparse/drivers/xen/balloon/balloon.c        Fri Oct
21 19:12:33 2005
***************
*** 70,75 ****
--- 70,78 ----
  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,228 ****
--- 226,232 ----
        }
  
        current_pages += nr_pages;
+       totalram_pages = current_pages;
  
   out:
        balloon_unlock(flags);
***************
*** 295,300 ****
--- 299,305 ----
                XENMEM_decrease_reservation, &reservation) != nr_pages);
  
        current_pages -= nr_pages;
+       totalram_pages = current_pages;
  
        balloon_unlock(flags);
  


Satoshi UCHIDA

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>