From: "Haifeng He" Subject: Question about memory management in Xen Date: Thu, 25 Oct 2007 01:42:07 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi, All I have a question about the memory management in Xen. Suppose I start 2 DomU instances and both of them use the same kernel image. In this case, 1) will Xen make two copy of the kernel image in the memory, i.e., occupy 2*sizeof(kernel image) space in the physical memory or, 2) will Xen only have one copy of the read-only pages of the kernel image (for instance, text section, rodata section) in the physical memory? Because I read somewhere about that, Unix will only have one copy of read-only pages in the memory and share them among processes. How about Xen? Any thoughts? Thank you Haifeng