All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel /proc information modified for xen mem-set
@ 2005-10-21 11:08 Satoshi Uchida
  2005-10-24 17:04 ` Vincent Hanquez
  0 siblings, 1 reply; 2+ messages in thread
From: Satoshi Uchida @ 2005-10-21 11:08 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1498 bytes --]

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 #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 4036 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-24 17:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-21 11:08 [PATCH] kernel /proc information modified for xen mem-set Satoshi Uchida
2005-10-24 17:04 ` Vincent Hanquez

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.