Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1742327
| From | Marcelo Tosatti <mtosatti@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ |
| Date | 2017-09-29 22:20 +0200 |
| Message-ID | <uv9Vp-2wp-25@gated-at.bofh.it> (permalink) |
| References | (5 earlier) <uuBqG-5Tq-11@gated-at.bofh.it> <uuQ6l-6L4-1@gated-at.bofh.it> <uuYGB-3GT-1@gated-at.bofh.it> <uv6E9-cr-11@gated-at.bofh.it> <uv6Xw-CV-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Fri, Sep 29, 2017 at 07:05:41PM +0200, Paolo Bonzini wrote: > On 29/09/2017 18:40, Marcelo Tosatti wrote: > >> If you know you have this kind disk workload, you must use virtio-blk or > >> virtio-scsi with iothreads and place the iothreads on their own physical > >> CPUs. > >> > >> Among "run arbitrary workloads", "run real-time workloads", "pack stuff > >> into as few physical CPUs as possible", you can only pick two. > > > > Thats not the state of things (userspace in vcpu-0 is not specially tailored > > to not violate latencies in vcpu-1): that is not all user triggered > > actions can be verified. > > > > Think "updatedb", and so on... > > _Which_ spinlock is it that can cause unwanted latency while running > updatedb on VCPU0 and a real-time workload on VCPU1, and only so on virt > because of the emulator thread? Hundreds of them (the one being hit is in timer_interrupt), but i went to check and there are hundreds of raw spinlocks shared between the kernel threads that run on isolated CPUs and vcpu-0. > Is this still broken if you set up > priorities for the emulator thread correctly and use PI mutexes in QEMU? I don't see why it would not, if you have to schedule the emulator thread to process and inject I/O interrupts for example. > And if so, what is the cause of interruptions in the emulator thread > and how are these interruptions causing the jitter? Interrupt injections. > Priorities and priority inheritance (or lack of them) is a _known_ > issue. Jan was doing his KVM-RT things in 2009 and he was talking about > priorities[1] back then. The effect of correct priorities is to _lower_ > jitter, not to make it worse, and anyway certainly not worse than > SCHED_NORMAL I/O thread. Once that's fixed, we can look at other problems. > > Paolo > > [1] http://static.lwn.net/images/conf/rtlws11/papers/proc/p18.pdf which > also mentions pv scheduling
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Marcelo Tosatti <mtosatti@redhat.com> - 2017-09-27 01:30 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Paolo Bonzini <pbonzini@redhat.com> - 2017-09-27 11:40 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Marcelo Tosatti <mtosatti@redhat.com> - 2017-09-28 03:00 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Paolo Bonzini <pbonzini@redhat.com> - 2017-09-28 09:30 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Marcelo Tosatti <mtosatti@redhat.com> - 2017-09-29 01:10 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Marcelo Tosatti <mtosatti@redhat.com> - 2017-09-29 01:10 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Paolo Bonzini <pbonzini@redhat.com> - 2017-09-29 10:20 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Marcelo Tosatti <mtosatti@redhat.com> - 2017-09-29 18:50 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Paolo Bonzini <pbonzini@redhat.com> - 2017-09-29 19:10 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Marcelo Tosatti <mtosatti@redhat.com> - 2017-09-29 22:20 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Paolo Bonzini <pbonzini@redhat.com> - 2017-10-02 14:40 +0200
Re: [patch 3/3] x86: kvm guest side support for KVM_HC_RT_PRIO hypercall\ Peter Zijlstra <peterz@infradead.org> - 2017-10-02 14:50 +0200
csiph-web