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] why each process needs a separate page for kernel's pgd tabl

To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] why each process needs a separate page for kernel's pgd table in PV x86_64?
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Mon, 24 Mar 2008 00:07:39 -0400
Delivery-date: Sun, 23 Mar 2008 21:08:04 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=5seCtcrYrdpAJRjCflIA+tJbMG1y9n+32I0TDwjWxFw=; b=YE/GU2H+pYfQPsyyC+rroKexppQeD4Pw+nZDEXoCbSOKxrI8wiIBufnLPK2P59EpoZnP1wbN/6HIOc+6Vl+Vzj2r/kZGtR/JbWOiwluEd2pJNetJNrV2eq95ccxdnQG/ebpzrDIZtbDHSQlVIm0vXRI+lQ7xRcKC+hjCALJppuk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=M6zYNmYC/q7+DZd4u+tFHeMZAtErxRNoP+winVaFn++uvCCHCmoqBUQUtPFrfSJH3jukWjlop46Sg9OalERlyPFt1UxZZX4+YL1oUlgivvs9jA+w4VIxpxGnGkQjyOo5rw2xM5GtE6pe7ga0MBoAKhbGqEwllUFjTk8z1MgpBZY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
Hi,

I notice that in the paravirtualized linux for x86_64, each process allocates 2 pages for mm->pgd: one for kernel's page table, the other for user's page table.

Why not let all processes share the kernel's page table? i.e., add a field in mm struct (like mm->kernel_pgd, ) and let it point to a page, which will be referenced by all process. This can save some 4K for each process forked.

Please correct me if I'm wrong.

Thanks,
Weiming
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] why each process needs a separate page for kernel's pgd table in PV x86_64?, weiming <=