From mboxrd@z Thu Jan 1 00:00:00 1970 From: Asias He Subject: Re: [PATCH 1/2] kvm tools: Respect ISR status in virtio header Date: Sat, 07 May 2011 22:24:16 +0800 Message-ID: <4DC55610.8070804@gmail.com> References: <1304735660-10844-1-git-send-email-asias.hejun@gmail.com> <20110507093027.GD27657@elte.hu> <4DC529E8.8030104@gmail.com> <20110507140030.GA2859@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: "Michael S. Tsirkin" , Rusty Russell , Mark McLoughlin , Anthony Liguori , Pekka Enberg , Cyrill Gorcunov , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org To: Ingo Molnar Return-path: Received: from mail-pw0-f46.google.com ([209.85.160.46]:56607 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755115Ab1EGOZa (ORCPT ); Sat, 7 May 2011 10:25:30 -0400 Received: by pwi15 with SMTP id 15so1802231pwi.19 for ; Sat, 07 May 2011 07:25:30 -0700 (PDT) In-Reply-To: <20110507140030.GA2859@elte.hu> Sender: kvm-owner@vger.kernel.org List-ID: On 05/07/2011 10:00 PM, Ingo Molnar wrote: > > * Asias He wrote: > >> BTW. The ping latency was caused by the movement of irq injection outside the >> loop. Suppose we have 5 available buffers and only 1 buffer from tap device. >> We will sleep on read without giving the buffer from tap to guest. The >> latency will be huge in this case. >> >> while(virt_queue__available(vq)) { >> ... >> read(tap_fd) >> ... >> } >> trigger_irq() > > But ... in one of the mails one of you claimed that even when moving the irq > notification inside the loop (which we all agreed was necessary to avoid > latencies!) the latencies would still occur during stress-tests. What I got in stress-tests(ping -f) with irq notification inside the loop is only network hangs. > > So something is still not understood here and could hit us anytime with any of > the virtio drivers in the future and such bugs are not always so nice to debug > like the latency problem here ... Yes, Especially when they are under tremendous stress. > > Thanks, > > Ingo > -- Best Regards, Asias He