Received: by 10.223.164.200 with SMTP id h8csp911688wrb; Mon, 6 Nov 2017 00:45:55 -0800 (PST) X-Google-Smtp-Source: ABhQp+RhC4vSYBuNg/gYrAZNx20pRMqXEz16JMQM1QyQpVaeOXI7kSkNZx4/CO8orE1gtKXZ9ewL X-Received: by 10.98.59.65 with SMTP id i62mr16273245pfa.143.1509957954956; Mon, 06 Nov 2017 00:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509957954; cv=none; d=google.com; s=arc-20160816; b=cDzDqrjc64KexXMcsAYArN2B+TNzQPBh7VY7dacQ8KGL0/P1/5w5ImMWPlDxbbEa5S C++vq/WWueEonMrMZV8R2oCJ6XBKr4nLntwfiSWuiZsdM88HFUsx4yX2+7uNRoA96ee4 b3PybxkJFEE/d8iTw+z4bSZ0sS75HXRL/DL90TMQiJmMZGpNDIHT0zNrDZs65irdaPXO mjaleNNB8oYaCwNXHQaCE+DeEn4mJgtL2hKWpEzT6fmJ3XxkJuP+NunnYTb0Akf9aw7C wvw9vEzvXmpTMRXuX707zMrvvx+Jy53GUcLHuxCEIaw1x+x8g2eSLFBrGW1snX3y5/kf k9UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=xnK5Q19L32J20qUWzRmDecuS4uB4pXh9GJ63PxbSPdk=; b=wrWylwOhfUPwB3HQ1lrTW1wcE+3+cL1yG208nHUSY0fb+t30KqHK7B6z9scjGolqVl xueU2mqpVLdKBWMb8nIMpcYkz8f92sGqOSiROiAP7GdXTogn55r2lFisJrVdMUZaeuQh r3Jz5/ePpLw259z9S1q/IbMnYD2tpV3ozPCISH6KEOpweBKwQT2p9DNU5XEAQSIrgEUg g7ZvhM+1NVN7v2WwB2/QdzvYMVhr+Le7F6wdiPDTsj2UMs9CnOvCAkzc9LVl+zj81T6y tPcj/9BaR9fNG2Eg8M5fZaZM0OZNOkCB+25AFdRkLT3f9bs/AWQhztHvLOIaZ8PKLVFw YGcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AKuZYNr4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e72si12189051pfm.35.2017.11.06.00.45.40; Mon, 06 Nov 2017 00:45:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=AKuZYNr4; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751884AbdKFIny (ORCPT + 98 others); Mon, 6 Nov 2017 03:43:54 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:45548 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750727AbdKFInx (ORCPT ); Mon, 6 Nov 2017 03:43:53 -0500 Received: by mail-ot0-f195.google.com with SMTP id q99so7781076ota.2; Mon, 06 Nov 2017 00:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=xnK5Q19L32J20qUWzRmDecuS4uB4pXh9GJ63PxbSPdk=; b=AKuZYNr4QbtawMQlsZbvBthLOUxLCzfTWlHpVmZ1/6c8Ng0YZY0g2QssYxxUObQQcz ZTVF45x8FB+IFAy8Yc5RCMZRh3TRAuuQxcFkI4nmxU4IKhuFSGe12/IdjwcWAzmnPyqH fRkHj8DwKupKVymlrztx0S+atYh0spo2evavY5EqxGd/c6P0W53JuqKaKcusV4Ua2DCA 0V1VdXz7ny6F/simrJRDV7Qp9e3jRUyx5dtSWJ0B4VFFxYn1kxKDFGXLIt6Koyibro87 qCFXNyDi8Bgm6ySXUNPSctYFqa/3/G2aBY898QWFLlzufyj7VMRXNzTwhyPjm3ST1ge2 7nNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=xnK5Q19L32J20qUWzRmDecuS4uB4pXh9GJ63PxbSPdk=; b=ki7TpOceU34kQczxsTUB+cMWe2Kxd2TkDKrgEMCFe84teqrktaAnd45ZjOL6MuXjjE 8PAxfgjxZqgKKNEXzovphxjJpuezyfClT/xWYrvIWD+caOwvxWPxJPUaG3fRflqCqMQ2 N8EMPhV6LgoOqznIlKP0/Ccyd2A1xqaI9BypOPMiJDLfztG1m5vZFrfKtuotdEgqBFCi lPote3pyhzaB+3erDuIMP25DS8m6trWSlspW/b/AfHc59yU3FZ36qazpntBDhw3MvNqj l3IZKix738vV7rFWUPnijrbNwKUo3sfKPinmm5rIcPMoBEEc3uV4IS83vC6VsPHiyXmW PlLg== X-Gm-Message-State: AJaThX7kENYw7REKHB5K3zyZpG/1mfnbxT96jGDWEeUqC1vvbKIajBpM 0P+CypMdfL9rBITwO5thO3bXDwc9/U/y16fn9/0= X-Received: by 10.157.39.194 with SMTP id c60mr9552062otb.435.1509957832406; Mon, 06 Nov 2017 00:43:52 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.53.27 with HTTP; Mon, 6 Nov 2017 00:43:51 -0800 (PST) In-Reply-To: <20170802160921.21791-1-vkuznets@redhat.com> References: <20170802160921.21791-1-vkuznets@redhat.com> From: Wanpeng Li Date: Mon, 6 Nov 2017 16:43:51 +0800 Message-ID: Subject: Re: [PATCH v10 0/9] Hyper-V: paravirtualized remote TLB flushing and hypercall improvements To: Vitaly Kuznetsov Cc: "the arch/x86 maintainers" , devel@linuxdriverproject.org, "linux-kernel@vger.kernel.org" , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Steven Rostedt , Jork Loeser , Simon Xiao , Andy Lutomirski , Andy Shevchenko , Paolo Bonzini , kvm Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2017-08-03 0:09 GMT+08:00 Vitaly Kuznetsov : > Changes since v9: > - Rebase to 4.13-rc3. > - Drop PATCH1 as it was already taken by Greg to char-misc tree. There're no > functional dependencies on this patch so the series can go through a different tree > (and it actually belongs to x86 if I got Ingo's comment right). > - Add in missing void return type in PATCH1 [Colin King, Ingo Molnar, Greg KH] > - A few minor fixes in what is now PATCH7: add pr_fmt, tiny style fix in > hyperv_flush_tlb_others() [Andy Shevchenko] > - Fix "error: implicit declaration of function 'virt_to_phys'" in PATCH2 > reported by kbuild test robot (#include ) > - Add Steven's 'Reviewed-by:' to PATCH9. > > Original description: > > Hyper-V supports hypercalls for doing local and remote TLB flushing and > gives its guests hints when using hypercall is preferred. While doing > hypercalls for local TLB flushes is probably not practical (and is not > being suggested by modern Hyper-V versions) remote TLB flush with a > hypercall brings significant improvement. > > To test the series I wrote a special 'TLB trasher': on a 16 vCPU guest I > was creating 32 threads which were doing 100000 mmap/munmaps each on some > big file. Here are the results: > > Before: > # time ./pthread_mmap ./randfile > real 3m33.118s > user 0m3.698s > sys 3m16.624s > > After: > # time ./pthread_mmap ./randfile > real 2m19.920s > user 0m2.662s > sys 2m9.948s > > This series brings a number of small improvements along the way: fast > hypercall implementation and using it for event signaling, rep hypercalls > implementation, hyperv tracing subsystem (which only traces the newly added > remote TLB flush for now). > Hi Vitaly, Could you attach your benchmark? I'm interested in to try the implementation in paravirt kvm. Regards, Wanpeng Li From 1577278272896304438@xxx Thu Aug 31 20:02:58 +0000 2017 X-GM-THRID: 1574636603958149385 X-Gmail-Labels: Inbox,Category Forums