Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1856255imm; Sat, 12 May 2018 01:27:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqTZDW9NAWs5M4BVB4hq18Vx7Yxm3Q4ff7demskp/w1wmCX40XSV5xo5caW8hFMRPn54RXY X-Received: by 2002:aa7:83c7:: with SMTP id j7-v6mr2251975pfn.50.1526113651140; Sat, 12 May 2018 01:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526113651; cv=none; d=google.com; s=arc-20160816; b=Gg73rKbdj8FkVdp4jgban+ACfBzCqpSwRP03E5cG3K+LNR0w45DJsyEwOD80k/mH7j BtgExBNtdXvJaa3irgPhZi21p1PYmKeUFDzFKt1P5WJdu7mYdDRnP9EqjDCGDeBx4OR7 wl67m2regVUVMlylb46G90oGMOrtf4pRhyhGbTT5U/z3OnwjP0Td/qMA8VJmEawxyIL6 Htq8SJcL//dFkF1QBoV1ge/WlaBp5IcxyPOhV+YVzMOEYRJ7V837fAQaxvzTiqnM1u4d vgUncUt9BLUHl8VhYyxjVpK9WUZ6WgupW6WZZSFtIFqe9L3EaVW9QyQxJA7j0Mq+LhfW fNBw== 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 :mime-version:dkim-signature:arc-authentication-results; bh=1Ke+zgLdMzQjoKFHcRc3U4S8Any1xF+QeCQYIFaOrfI=; b=Pm50+BbTBW49exX06Yhjs6zTx4se2jKniB9ewpTrXn4nO4H318QsNhG+Lb5Vg/pRlI i+IctfBRVYqMUuGfYDJMvRMDd9qsnyB+p50RIQQBFUYEpdByT48xc8w+x7Buo5oz/Y8D Y0q4jSedmDdP9ediL2oFVnE+z/HzjT8TCoDUWB6HXXFOFJCGUDUJFtR98F593DcCTL0P n3kQsPSzulh1kEpqNf6JcR4KAfSYPHHqoUqpVHmehodd65pdmPr487imvT4/uiszOLZB Rh0zI9WBcfMe3A3/C+yOjhY8mrIF1bqsMyJjaOa250WVyoL/kH0AQhzew73Ls3J89Pq3 uPrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mmEwlCTs; 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=QUARANTINE 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 u10-v6si4804279pfn.44.2018.05.12.01.27.16; Sat, 12 May 2018 01:27:31 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mmEwlCTs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750854AbeELI1I (ORCPT + 99 others); Sat, 12 May 2018 04:27:08 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:43290 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750739AbeELI1H (ORCPT ); Sat, 12 May 2018 04:27:07 -0400 Received: by mail-lf0-f52.google.com with SMTP id n18-v6so4642371lfh.10; Sat, 12 May 2018 01:27:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=1Ke+zgLdMzQjoKFHcRc3U4S8Any1xF+QeCQYIFaOrfI=; b=mmEwlCTsRP6opmlizbJ+GfH9BR1ARM+QTneKezrD/2WJkokpx4qxqzOwmtzLv3hY8+ 61jOVizMdbsgEGBMrjBML93qPY/iTCEVo2MI17nrWZDRjTqJkbXPkNne/kNjFQrh4E6X yfxQF9k+gR9LG7e8iUo0kcyd4rKAMA8xoJWnYfagbwpUrEUdwKVzWt2t0vgvyOtA7srA 6bjPhC6jDbngO+S+Sagdg+U0y4LjltjRWB8Cx9DHKA/A6D8cH+q9uugW2OJXUmVQ8lAc wR8dkHIcnOMC3EXRecxhPs9Zn9ifBpr6TDgEE0z6LvO48xGHa1N3LTiD/2AJ+LqQLMPR F+YQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=1Ke+zgLdMzQjoKFHcRc3U4S8Any1xF+QeCQYIFaOrfI=; b=KVZk0G2DBlMx2hDIc5R5TWPxej1XEhrnOV5DkPVa7CF08ooJXC+qQdIH2uJincR2hc 2A3AcFdQyuUX6p2OwL/Id6dVnnBmdFL8z5EwjWpTzkofEfV4l05zhncFI/dVLv2zQGP7 egGrnGOGDrBtsme5ocuEK1jhWBgz66lCB9vFsusiDHwb5StiS8JbLzj0FbYMXyIOjZVL LHwYneuJYpLUHb316vz++lXVTr05kjwkiFDyNw5IZl3m4me/yPUhNP2aIwuBtv8cZoyj KbdJJexiqt95x+HAZM5vFX1txHpFaPR3+Lh7VSwFyVdw/dseLwr8S+kX7VsIxWUqnVih dBYA== X-Gm-Message-State: ALKqPwf/xPYqRkPLaZOLrdJiXu14FQlyThUBh5DYQdhEfc0PO1n/RB1m aRUkpiYp/q5sWi3fwlvj71aFc67uYQqXqDDsrgiLvA== X-Received: by 2002:a2e:8904:: with SMTP id d4-v6mr594753lji.55.1526113625450; Sat, 12 May 2018 01:27:05 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:5d55:0:0:0:0:0 with HTTP; Sat, 12 May 2018 01:27:04 -0700 (PDT) From: Weiwei Jia Date: Sat, 12 May 2018 16:27:04 +0800 Message-ID: Subject: [RFC][PATCH] KVM: APPLES can improve the performance of applications and virtualized systems by up to 49% To: linux-kernel@vger.kernel.org Cc: kvm@vger.kernel.org, xen-devel@lists.xenproject.org, dingxn@gmail.com, jianchen.shan@gmail.com, Weiwei Jia 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 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. [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