Qiang Zeng
2011-May-09 02:27 UTC
[Xen-users] how to disable batching of page table entries updates for guest OS
Xen has a perf. enhancement by batching page table updates for the guest OS. I''m trying to measure the impact on the guest OS''s performance, when this enhancement is disabled. But I don''t know how to disable it. I tried modifying do_mmu_update in xen/arch/x86/mm.c, which is to process the batch of page table updates requested by the guest OS. I simply limit it to only process one update: << for ( i = 0; i < count; i++ )>> for ( i= 0; i < 1; i++)However, after I install this version, there is a kernel panic. An alternative may be to modify the code in the paravirtualized guest OS code, but I prefer to change xen code. Or do I HAVE to change the OS code rather than xen? Could somebody provide some hints? Thanks! Qiang. _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Michael South
2011-May-10 01:00 UTC
Re: [Xen-users] how to disable batching of page table entries updates for guest OS
What if count us zero? -- Michael South msouth@msouth.org On May 8, 2011, at 22:27, Qiang Zeng <zengqiang.buaa@gmail.com> wrote:> Xen has a perf. enhancement by batching page table updates for the guest OS. I''m trying to measure the impact on the guest OS''s performance, when this enhancement is disabled. > > But I don''t know how to disable it. I tried modifying do_mmu_update in xen/arch/x86/mm.c, which is to process the batch of page table updates requested by the guest OS. I simply limit it to only process one update: > > << for ( i = 0; i < count; i++ ) > > >> for ( i= 0; i < 1; i++) > However, after I install this version, there is a kernel panic. > > An alternative may be to modify the code in the paravirtualized guest OS code, but I prefer to change xen code. Or do I HAVE to change the OS code rather than xen? > > Could somebody provide some hints? Thanks! > > > > Qiang. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Joseph Glanville
2011-May-10 02:27 UTC
[Xen-devel] Re: [Xen-users] how to disable batching of page table entries updates for guest OS
Hi, This is a much better question for the xen-devel list. I am cc''ing the list in. Sounds like an intersting experiment however, goodluck. Joseph. On 9 May 2011 12:27, Qiang Zeng <zengqiang.buaa@gmail.com> wrote:> Xen has a perf. enhancement by batching page table updates for the guest OS. > I''m trying to measure the impact on the guest OS''s performance, when this > enhancement is disabled. > > But I don''t know how to disable it. I tried modifying do_mmu_update in > xen/arch/x86/mm.c, which is to process the batch of page table updates > requested by the guest OS. I simply limit it to only process one update: > > << for ( i = 0; i < count; i++ ) > >>> for ( i= 0; i < 1; i++) > > However, after I install this version, there is a kernel panic. > > An alternative may be to modify the code in the paravirtualized guest OS > code, but I prefer to change xen code. Or do I HAVE to change the OS code > rather than xen? > > Could somebody provide some hints? Thanks! > > Qiang. > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >-- Kind regards, Joseph. Founder | Director Orion Virtualisation Solutions | www.orionvm.com.au | Phone: 1300 56 99 52 | Mobile: 0428 754 846 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2011-May-10 07:57 UTC
Re: [Xen-devel] Re: [Xen-users] how to disable batching of page table entries updates for guest OS
On Tue, 2011-05-10 at 03:27 +0100, Joseph Glanville wrote:> Hi, > > This is a much better question for the xen-devel list. > I am cc''ing the list in. > > Sounds like an intersting experiment however, goodluck. > > Joseph. > > On 9 May 2011 12:27, Qiang Zeng <zengqiang.buaa@gmail.com> wrote: > > Xen has a perf. enhancement by batching page table updates for the guest OS. > > I''m trying to measure the impact on the guest OS''s performance, when this > > enhancement is disabled. > > > > But I don''t know how to disable it. I tried modifying do_mmu_update in > > xen/arch/x86/mm.c, which is to process the batch of page table updates > > requested by the guest OS. I simply limit it to only process one update: > > > > << for ( i = 0; i < count; i++ ) > > > >>> for ( i= 0; i < 1; i++) > > > > However, after I install this version, there is a kernel panic. > > > > An alternative may be to modify the code in the paravirtualized guest OS > > code, but I prefer to change xen code. Or do I HAVE to change the OS code > > rather than xen?I think you will need to change the OS code to unbatch the hypercalls. In the example above you changed the semantics of the hypercall and when the guest saw the unexpected return code (indicating that only 1/N entries was processed) it -- rightly -- panic()d. Ian.> > > > Could somebody provide some hints? Thanks! > > > > Qiang. > > > > _______________________________________________ > > Xen-users mailing list > > Xen-users@lists.xensource.com > > http://lists.xensource.com/xen-users > > > > >_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel