Re: KVM performance Java server/MySQL...

2013-02-08 Thread Erik Brakkee
quote who=Gleb Natapov On Thu, Feb 07, 2013 at 04:41:31PM +0100, Erik Brakkee wrote: Hi, We have been benchmarking a java server application (java 6 update 29) that requires a mysql database. The scenario is quite simple. We open a web page which displays a lot of search results. To get the

Re: KVM performance Java server/MySQL...

2013-02-08 Thread Erik Brakkee
quote who=Erik Brakkee The IO scheduler on the host and on the guest is CFS. We also tried with deadline scheduler on the host but this did not make any measurable difference. We did not try no-op on the host. I mean of course that we did not try no-op on the guest (not on the host). -- To

[PATCH] Added one_reg interface for timer registers

2013-02-08 Thread Bharat Bhushan
If userspace wants to change some specific bits of TSR (timer status register) then it uses GET/SET_SREGS ioctl interface. So the steps will be: i) user-space will make get ioctl, ii) change TSR in userspace iii) then make set ioctl. It can happen that TSR gets changed by

Re: KVM performance Java server/MySQL...

2013-02-08 Thread Erik Brakkee
quote who=Erik Brakkee quote who=Gleb Natapov On Thu, Feb 07, 2013 at 04:41:31PM +0100, Erik Brakkee wrote: Hi, We have been benchmarking a java server application (java 6 update 29) that requires a mysql database. The scenario is quite simple. We open a web page which displays a lot of

Re: [PATCH 3/5] target-i386: Slim conversion to X86CPU subclasses

2013-02-08 Thread Andreas Färber
Am 08.02.2013 10:03, schrieb Igor Mammedov: On Thu, 7 Feb 2013 13:08:19 -0200 Eduardo Habkost ehabk...@redhat.com wrote: On Tue, Feb 05, 2013 at 05:39:22PM +0100, Igor Mammedov wrote: From: Andreas Färber afaer...@suse.de Move x86_def_t definition to header and embed into X86CPUClass.

Re: [RFC PATCH 0/8] virtio: new API for addition of buffers, scatterlist changes

2013-02-08 Thread Jens Axboe
On Fri, Feb 08 2013, Rusty Russell wrote: Paolo Bonzini pbonz...@redhat.com writes: The virtqueue_add_buf function has two limitations: 1) it requires the caller to provide all the buffers in a single call; 2) it does not support chained scatterlists: the buffers must be provided as

Re: KVM performance Java server/MySQL...

2013-02-08 Thread David Cruz
Other optimizations people are testing out there. - use nohz=off in the kernel loading line y menu.lst - Disable Cgroups completely. Using cgclear, and turning off cgred cg-config daemons. And from a Personal point of view, we've always tried to use MySQL in a different server from JBoss. 99% of

Re: [PATCH 2/2] x86, apicv: Add Posted Interrupt supporting

2013-02-08 Thread Gleb Natapov
On Fri, Feb 08, 2013 at 12:07:36AM -0200, Marcelo Tosatti wrote: On Thu, Feb 07, 2013 at 03:52:24PM +0200, Gleb Natapov wrote: Its not a bad idea to have a new KVM_REQ_ bit for PIR processing (just as the current patches do). Without the numbers I do not see why. KVM_REQ_EVENT already

Re: [PATCH 2/2] x86, apicv: Add Posted Interrupt supporting

2013-02-08 Thread Gleb Natapov
On Thu, Feb 07, 2013 at 07:49:47PM -0200, Marcelo Tosatti wrote: On Thu, Feb 07, 2013 at 04:01:11PM +0200, Gleb Natapov wrote: On Wed, Feb 06, 2013 at 08:49:23PM -0200, Marcelo Tosatti wrote: Second is that interrupt may be reported as delivered, but it will be coalesced (possible only

Re: [Qemu-devel] [PATCH 3/5] target-i386: Slim conversion to X86CPU subclasses

2013-02-08 Thread Igor Mammedov
On Fri, 08 Feb 2013 12:16:17 +0100 Andreas Färber afaer...@suse.de wrote: Am 08.02.2013 10:03, schrieb Igor Mammedov: On Thu, 7 Feb 2013 13:08:19 -0200 Eduardo Habkost ehabk...@redhat.com wrote: On Tue, Feb 05, 2013 at 05:39:22PM +0100, Igor Mammedov wrote: From: Andreas Färber

Re: [PATCH 2/2] x86, apicv: Add Posted Interrupt supporting

2013-02-08 Thread Marcelo Tosatti
On Fri, Feb 08, 2013 at 02:28:44PM +0200, Gleb Natapov wrote: On Thu, Feb 07, 2013 at 07:49:47PM -0200, Marcelo Tosatti wrote: On Thu, Feb 07, 2013 at 04:01:11PM +0200, Gleb Natapov wrote: On Wed, Feb 06, 2013 at 08:49:23PM -0200, Marcelo Tosatti wrote: Second is that interrupt may be

Re: [PATCH] kvm-s390: Bugfix for handling of iscs.

2013-02-08 Thread Christian Borntraeger
On 07/02/13 13:20, Cornelia Huck wrote: Hi, here's another kvm-s390 bugfix for kvm-next, this time fixing a thinko in the I/O interrupt injection. Please apply. Cornelia Huck (1): KVM: s390: Fix handling of iscs. arch/s390/kvm/interrupt.c | 18 +++--- 1 file changed,

Re: [Qemu-devel] [PATCH 3/5] target-i386: Slim conversion to X86CPU subclasses

2013-02-08 Thread Eduardo Habkost
On Fri, Feb 08, 2013 at 01:58:42PM +0100, Igor Mammedov wrote: On Fri, 08 Feb 2013 12:16:17 +0100 Andreas Färber afaer...@suse.de wrote: Am 08.02.2013 10:03, schrieb Igor Mammedov: On Thu, 7 Feb 2013 13:08:19 -0200 Eduardo Habkost ehabk...@redhat.com wrote: On Tue, Feb 05, 2013

Re: [Qemu-devel] [PATCH 3/5] target-i386: Slim conversion to X86CPU subclasses

2013-02-08 Thread Eduardo Habkost
On Fri, Feb 08, 2013 at 12:52:31PM -0200, Eduardo Habkost wrote: On Fri, Feb 08, 2013 at 01:58:42PM +0100, Igor Mammedov wrote: [...] Continuing on theoretical issue: We could add an inited field to X86CPUClass that gets checked at initfn time (only ever getting set to true by the

Re: [Qemu-devel] [PATCH 3/5] target-i386: Slim conversion to X86CPU subclasses

2013-02-08 Thread Andreas Färber
Am 08.02.2013 15:52, schrieb Eduardo Habkost: On Fri, Feb 08, 2013 at 01:58:42PM +0100, Igor Mammedov wrote: On Fri, 08 Feb 2013 12:16:17 +0100 Andreas Färber afaer...@suse.de wrote: Am 08.02.2013 10:03, schrieb Igor Mammedov: On Thu, 7 Feb 2013 13:08:19 -0200 Eduardo Habkost

Re: [Qemu-devel] [PATCH 3/5] target-i386: Slim conversion to X86CPU subclasses

2013-02-08 Thread Eduardo Habkost
On Fri, Feb 08, 2013 at 05:54:50PM +0100, Andreas Färber wrote: Am 08.02.2013 15:52, schrieb Eduardo Habkost: On Fri, Feb 08, 2013 at 01:58:42PM +0100, Igor Mammedov wrote: On Fri, 08 Feb 2013 12:16:17 +0100 Andreas Färber afaer...@suse.de wrote: Am 08.02.2013 10:03, schrieb Igor

[PATCH][v4] PPC: add paravirt idle loop for 64-bit book E

2013-02-08 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -removed KVM prefix to patch subject, patch is not KVM specific arch/powerpc/kernel/epapr_hcalls.S |2 ++ arch/powerpc/kernel/idle_book3e.S | 32 ++-- 2

Re: [PATCH] Added one_reg interface for timer registers

2013-02-08 Thread Scott Wood
On 02/08/2013 04:06:14 AM, Bharat Bhushan wrote: If userspace wants to change some specific bits of TSR (timer status register) then it uses GET/SET_SREGS ioctl interface. So the steps will be: i) user-space will make get ioctl, ii) change TSR in userspace iii) then make set

Re: [PATCH v3 5/5] KVM: MMU: fast drop all spte on the pte_list

2013-02-08 Thread Marcelo Tosatti
On Tue, Feb 05, 2013 at 04:55:37PM +0800, Xiao Guangrong wrote: If a shadow page is being zapped or a host page is going to be freed, kvm will drop all the reverse-mappings on the shadow page or the gfn. Currently, it drops the reverse-mapping one by one - it deletes the first reverse

Re: [PATCH v3 0/3] KVM: MMU: simple cleanups

2013-02-08 Thread Marcelo Tosatti
On Tue, Feb 05, 2013 at 03:26:21PM +0800, Xiao Guangrong wrote: There are the simple cleanups for MMU, no function / logic changed. Marcelo, Gleb, please apply them after applying [PATCH v3] KVM: MMU: lazily drop large spte Changelog: no change, just split them from the previous patchset

Re: [PATCH v3 1/5] KVM: MMU: introduce mmu_spte_establish

2013-02-08 Thread Marcelo Tosatti
On Tue, Feb 05, 2013 at 04:53:19PM +0800, Xiao Guangrong wrote: There is little different between walking parent pte and walking ramp: all spte in rmap must be present but this is not true on parent pte list, in kvm_mmu_alloc_page, we always link the parent list before set the spte to present

Re: Q: Why not use struct mm_struct to manage guest physical addresses in new port?

2013-02-08 Thread Marcelo Tosatti
On Tue, Feb 05, 2013 at 11:02:32AM -0800, David Daney wrote: Hi, I am starting to working on a port of KVM to an architecture that has a dual TLB. The Guest Virtual Addresses (GVA) are translated to Guest Physical Addresses (GPA) by the first TLB, then a second TLB translates the GPA to a

Re: Q: Why not use struct mm_struct to manage guest physical addresses in new port?

2013-02-08 Thread David Daney
On 02/08/2013 02:11 PM, Marcelo Tosatti wrote: On Tue, Feb 05, 2013 at 11:02:32AM -0800, David Daney wrote: Hi, I am starting to working on a port of KVM to an architecture that has a dual TLB. The Guest Virtual Addresses (GVA) are translated to Guest Physical Addresses (GPA) by the first

Re: [PATCH] KVM: Remove user_alloc from struct kvm_memory_slot

2013-02-08 Thread Marcelo Tosatti
On Thu, Feb 07, 2013 at 06:55:57PM +0900, Takuya Yoshikawa wrote: This field was needed to differentiate memory slots created by the new API, KVM_SET_USER_MEMORY_REGION, from those by the old equivalent, KVM_SET_MEMORY_REGION, whose support was dropped long before: commit

[PATCH] KVM : VMX: disable apicv by default

2013-02-08 Thread Yang Zhang
From: Yang Zhang yang.z.zh...@intel.com Without Posted Interrupt, current code is broken. Just disable by default until Posted Interrupt is ready. Signed-off-by: Yang Zhang yang.z.zh...@intel.com --- arch/x86/kvm/vmx.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH] Added one_reg interface for timer registers

2013-02-08 Thread Bharat Bhushan
If userspace wants to change some specific bits of TSR (timer status register) then it uses GET/SET_SREGS ioctl interface. So the steps will be: i) user-space will make get ioctl, ii) change TSR in userspace iii) then make set ioctl. It can happen that TSR gets changed by

[PATCH][v4] PPC: add paravirt idle loop for 64-bit book E

2013-02-08 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- -removed KVM prefix to patch subject, patch is not KVM specific arch/powerpc/kernel/epapr_hcalls.S |2 ++ arch/powerpc/kernel/idle_book3e.S | 32 ++-- 2

Re: [PATCH] Added one_reg interface for timer registers

2013-02-08 Thread Scott Wood
On 02/08/2013 04:06:14 AM, Bharat Bhushan wrote: If userspace wants to change some specific bits of TSR (timer status register) then it uses GET/SET_SREGS ioctl interface. So the steps will be: i) user-space will make get ioctl, ii) change TSR in userspace iii) then make set