From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Xu Subject: reduce networking latency Date: Wed, 24 Sep 2014 14:40:53 -0400 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: mst@redhat.com To: kvm Return-path: Received: from mail-ig0-f178.google.com ([209.85.213.178]:59350 "EHLO mail-ig0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbaIXSky (ORCPT ); Wed, 24 Sep 2014 14:40:54 -0400 Received: by mail-ig0-f178.google.com with SMTP id r10so7037163igi.11 for ; Wed, 24 Sep 2014 11:40:53 -0700 (PDT) Sender: kvm-owner@vger.kernel.org List-ID: Hi Michael, I found this interesting project from KVM TODO website: allow handling short packets from softirq or VCPU context Plan: We are going through the scheduler 3 times (could be up to 5 if softirqd is involved) Consider RX: host irq -> io thread -> VCPU thread -> guest irq -> guest thread. This adds a lot of latency. We can cut it by some 1.5x if we do a bit of work either in the VCPU or softirq context. Testing: netperf TCP RR - should be improved drastically netperf TCP STREAM guest to host - no regression Would you mind saying more about the work either in the vCPU or softirq context? Why it is only for short packets handling? Thanks a lot! Regards, Cong