Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751631AbdLVGKA (ORCPT ); Fri, 22 Dec 2017 01:10:00 -0500 Received: from mail-by2nam01on0084.outbound.protection.outlook.com ([104.47.34.84]:27067 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750854AbdLVGJ4 (ORCPT ); Fri, 22 Dec 2017 01:09:56 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Date: Fri, 22 Dec 2017 09:09:40 +0300 From: Yury Norov To: Wanpeng Li Cc: linux-kernel@vger.kernel.org, kvm , LAK , Andrew Morton , Ashish Kalra , Christoffer Dall , Geert Uytterhoeven , Konrad Rzeszutek Wilk , Linu Cherian , Shih-Wei Li , Sunil Goutham Subject: Re: [PATCH v2] IPI performance benchmark Message-ID: <20171222060940.f2gjsjelqacdyec3@yury-thinkpad> References: <20171219085010.4081-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [42.106.74.36] X-ClientProxiedBy: VI1PR08CA0126.eurprd08.prod.outlook.com (2603:10a6:800:d4::28) To SN4PR0701MB3837.namprd07.prod.outlook.com (2603:10b6:803:4f::12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b1eedc7a-447a-4023-d686-08d549029ed9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603307)(7153060);SRVR:SN4PR0701MB3837; X-Microsoft-Exchange-Diagnostics: 1;SN4PR0701MB3837;3:I23X/8mOGLks8bwdgMmwIBf7XmGf9zBcIFXtUrhxr5c4A3XWhVsjZob4+ZiAJk5rSLAmgoQnQ+i64x5NppDLBTR62rLq/xG1heSnZpAXW//WWUFL/b99136V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efoRLXK1AHQviHNoQ1BPEA1k+PC7RbcKWSn0JSzfW3FSzTlE7/CmHHEJat/zQ5ncfuqWvOzOYD6nNV6GLM695LifcJYbIJ7z8ci2BVE7b8Im55/i+Sle+St2uvKj25PC5UAQIDyg0rwTUs3HP3DYF1XtI+WGvlnTq7oN8pKs8bCQiYi/2iGqCSPrqA2J7tXHthTQet0WzO/dqn2R8uRCNZ4hRgAHWYbyf2snLGCxjwG+NNbtxWRILIya3ld7R1bSYOkWCJqFQH8b8ysv8IBk4ONpuxmTw9HUKC+Nnm9gU3qN9oa9Yzr4OFRDXje4J8KvzYNUo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(190756311086443)(209352067349851); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040470)(2401047)(5005006)(8121501046)(93006095)(3231023)(944501038)(10201501046)(3002001)(6041268)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(6072148)(201708071742011);SRVR:SN4PR0701MB3837;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:SN4PR0701MB3837; X-Microsoft-Exchange-Diagnostics: 1;SN4PR0701MB3837;4:NkBDCeA9QgKifeL4rK1sgt0ZRkehLWd2aiN8Vpe9Ln5cIm/euAXrPp7YB+oWZpUqDlKxnOhn91t/KUhZZ+V70flqHHCVHM5qPb7XlJ1/3zz0BLOygW1o0TOIh4dgpaLIhXSLJ0i19zRDtGbvhnbeww3OmY3SmhHEitorrLHiOH3e5fsTjwPzkLFWWNBDYv/UapbAFrqseglWSI4K4c3LvmcE/dI6yHgqX2pSYvz8tWN0IMYM3qR4g05/em1i0132WUOZ3a++BFvW0/ilPMQYAReKIiILU3kVLp+15Lax22Ts8jBzC9n7NnCVAEsQzf4MFPjIQUIv17fBTNKgqufRX434u3HKbOFrHYm66RVvzFM= X-Forefront-PRVS: 05299D545B X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(7916004)(366004)(39380400002)(376002)(39860400002)(346002)(396003)(24454002)(189003)(199004)(377424004)(16586007)(54906003)(8936002)(72206003)(58126008)(478600001)(107886003)(8676002)(81166006)(2906002)(81156014)(68736007)(105586002)(76506005)(16526018)(6246003)(106356001)(97736004)(25786009)(66066001)(4001150100001)(39060400002)(4326008)(47776003)(59450400001)(33716001)(33896004)(76176011)(83506002)(6496006)(53936002)(52116002)(386003)(6916009)(42882006)(6116002)(3846002)(1411001)(229853002)(5660300001)(2950100002)(7736002)(305945005)(316002)(50466002)(1076002)(6666003)(9686003)(5009440100003)(23726003)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN4PR0701MB3837;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN4PR0701MB3837;23:JX0F9RQBiqe0CInHzJH+u97xv2GlFcoFfI+WY7y?= =?us-ascii?Q?KvbVuPRNmR+tNYe75/ihOMFNGwAkixzdCat5yxaECpzEhkFacJ6EntuiQjY5?= =?us-ascii?Q?e3OncFDZoGBC1FF30Nji1ZKj2QNschdiWUcNyijObs3jmREp+CVFec+FQ7Pm?= =?us-ascii?Q?5367+xnJqTtGDLjnKXmKiojC5l6pg9EB+T4kMVrW+jqf+Tp7+eLimqmz9w8Z?= =?us-ascii?Q?4Jbefe1REb0zEVM6VB+XUT6q2H+GvYjDFuGF6MjaqPqSDg/6+kHBPO5KXVIr?= =?us-ascii?Q?VbKXr5ThHOvcpZFTAHKsDHdsAHqDKrTAylmDC9FPNDD2AC1ciomMPT1P1Sg5?= =?us-ascii?Q?r8eSNLQJdj8xxGhixLF+B49Rx2oEx9lgSiDuvFqSK5lgS5ODHZYnsnUUYvim?= =?us-ascii?Q?M7tQvj04EUo5guHConsU+kNGlc9ZKS8/gi0X6m+fLhyAs5QUeZ5Y8wpcvK7s?= =?us-ascii?Q?fh+QylDgfYilekjKxImiIaun72RoAf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y1LU5A6Hx3Z3EaUmyqAq7GazKmg5w SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Dec 2017 06:09:53.6631 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b1eedc7a-447a-4023-d686-08d549029ed9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN4PR0701MB3837 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1923 Lines: 37 On Wed, Dec 20, 2017 at 02:44:25PM +0800, Wanpeng Li wrote: > Hi Yury, > 2017-12-19 16:50 GMT+08:00 Yury Norov : > > This benchmark sends many IPIs in different modes and measures > > time for IPI delivery (first column), and total time, ie including > > time to acknowledge the receive by sender (second column). > > > > The scenarios are: > > Dry-run: do everything except actually sending IPI. Useful > > to estimate system overhead. > > Self-IPI: Send IPI to self CPU. > > Normal IPI: Send IPI to some other CPU. > > Broadcast IPI: Send broadcast IPI to all online CPUs. > > Broadcast lock: Send broadcast IPI to all online CPUs and force them > > acquire/release spinlock. > > > > The raw output looks like this: > > [ 155.363374] Dry-run: 0, 2999696 ns > > [ 155.429162] Self-IPI: 30385328, 65589392 ns > > [ 156.060821] Normal IPI: 566914128, 631453008 ns > > [ 158.384427] Broadcast IPI: 0, 2323368720 ns > > [ 160.831850] Broadcast lock: 0, 2447000544 ns > > > > For virtualized guests, sending and reveiving IPIs causes guest exit. > > I used this test to measure performance impact on KVM subsystem of > > Christoffer Dall's series "Optimize KVM/ARM for VHE systems" [1]. > > > > Test machine is ThunderX2, 112 online CPUs. Below the results normalized > > to host dry-run time, broadcast lock results omitted. Smaller - better. > > Could you test on a x86 box? I see a lot of calltraces on my haswell > client host, there is no calltrace in the guest, however, I can still > observe "Invalid parameters" warning when insmod this module. In > addition, the x86 box fails to boot when ipi_benchmark is buildin. EINVAL is returned intentionally to let user run test again without annoying rmmod.