Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1772527imm; Wed, 16 May 2018 02:52:05 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqgXD/8vapXNoIKcLoHCG6KT2GXeGAzDY4Dv0pMDwO/2feWH82sO3GEkGvwTTG7ZcW7f+vm X-Received: by 2002:a62:6756:: with SMTP id b83-v6mr217068pfc.76.1526464325552; Wed, 16 May 2018 02:52:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526464325; cv=none; d=google.com; s=arc-20160816; b=g0lXXV6srRhqSizKBjZwm973ktFvKBc9BBLzym4w1Jt/VyVHwZmQhncacP56DhS8c4 7JrBx+gqy+PqpktAJw+t7XsZqrLyDdu/AifNHvSe+OlmwrbOBBs7dfCU0m0IG6j3FLCv hF2sSbe8a9TnBczQWvZhQ/OmmuHh2cdNeKl+sA2dezmLa2bS+gY3FTwPcqnfZ3eZO0IQ ChUqgermCjOuEezBMMd42wvfv1nJtTbt6rX9nZ7g7qX4uCoioap8n/7164RSo5qxIs2B c8zDgkVwvE4wUYDbEMt4cuW9LEiEUj1qa2hs3AyYrOznnvwEMwxYgxfOyUWtOI0It2xs DZoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject :arc-authentication-results; bh=VJ6225VVZ1V3LEC9ZPhagZUww5l87P7H7PhvF2DgDEU=; b=nVgPR9udqmnxBUmlNh9k5ZCMXduVPOPslHrIFoU3050tyeEMb2wrSt6ccWEL/av2zq eQKaURMmuNlK4FdZqEuHx4ZTzmpnl7Tk4N/v8in918qpfxlKdzMHGxcePhVCIy05xzg6 o4qnS7cj0m4DXSFniJMwlMOIr4fAQJQ/r2aDfoT5ddkVNQ7/+1xl2CUMJ4csVlD+fRNd lJvmF5xtm1GA6k1O1rdzRGxl8OhoBgrIRPG3VttVlWZEar6tYqG6vOQJTb4NkAf9PTL1 52X7KJrrzY86NCSZxEBZv/lr3dr7upJY5SoV8t9BD8KOE0mFIiaHJz46HzdR9MO5Ub8s VPzg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22-v6si2363466plj.595.2018.05.16.02.51.51; Wed, 16 May 2018 02:52:05 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753401AbeEPJuD (ORCPT + 99 others); Wed, 16 May 2018 05:50:03 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:47858 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753280AbeEPJuA (ORCPT ); Wed, 16 May 2018 05:50:00 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 91D184201AEA; Wed, 16 May 2018 09:49:59 +0000 (UTC) Received: from [10.36.118.65] (unknown [10.36.118.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6B3616B5A0; Wed, 16 May 2018 09:49:58 +0000 (UTC) Subject: Re: [RFC][PATCH] KVM: APPLES can improve the performance of applications and virtualized systems by up to 49% To: Weiwei Jia , linux-kernel@vger.kernel.org Cc: kvm@vger.kernel.org, xen-devel@lists.xenproject.org, dingxn@gmail.com, jianchen.shan@gmail.com, Weiwei Jia References: From: David Hildenbrand Organization: Red Hat GmbH Message-ID: <395e16c4-f764-604f-f37e-d178ab753920@redhat.com> Date: Wed, 16 May 2018 11:49:57 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 16 May 2018 09:49:59 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Wed, 16 May 2018 09:49:59 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'david@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12.05.2018 10:27, Weiwei Jia wrote: > Dear all, > > Recently, we made a few improvements on effectively utilizing Pause > Loop Exiting (PLE) support for higher throughput on virtualized > systems. Basically, it solves two problems: 1) how to adjust > PLE_Window; 2) how to select virtual CPUs to schedule on VM_EXITs > caused by PLE. Our tests with standard benchmarks show that the > approach can improve performance by up to 49%. The approach shows > promising performance and is easy to implement. We think that it would > be wonderful if Linux/KVM and XEN can consider the approach. > > We already have a prototype implementation based on KVM (Linux Kernel > 3.19.8). Our patch for Linux Kernel 3.19.8 and the paper describing > our idea are available in Github repository [1][2][3]. We are pleased > to revise our patch in order to merge it into Linux/KVM and XEN. We > hope that you can test and adopt our approach/techniques. We are > pleased to get some comments/suggestions on the approach and on how > the idea can be adopted/tested by Linux/KVM and XEN. Thank you. > Hi, Please port the patch to latest upstream and send it as a proper patch to this mailing list. (otherwise you won't get feedback on it WHP) If you want some initial comment if this makes sense at all in the context of KVM and can be implemented, you can send the patch itself as RFC (based on an older kernel version). Thanks! > [1] APPLES paper: https://github.com/sysmen/apples/tree/master/paper > [2] APPLES patch: > https://github.com/sysmen/apples/blob/master/patches/3.19.8-APPLES.patch > [3] APPLES patch README: > https://github.com/sysmen/apples/blob/master/patches/README.txt > > Best Regards, > Sysmen Research Group > -- Thanks, David / dhildenb