From patchwork Fri Apr 8 01:24:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Faggioli X-Patchwork-Id: 8779581 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 62338C0553 for ; Fri, 8 Apr 2016 01:26:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8AB522024F for ; Fri, 8 Apr 2016 01:26:26 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A692E201CD for ; Fri, 8 Apr 2016 01:26:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoLA2-0008BG-H1; Fri, 08 Apr 2016 01:24:34 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aoLA1-0008AU-UX for xen-devel@lists.xenproject.org; Fri, 08 Apr 2016 01:24:34 +0000 Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id E5/E8-03293-15807075; Fri, 08 Apr 2016 01:24:33 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrHIsWRWlGSWpSXmKPExsXiVRvkpBvAwR5 u8P61isX3LZOZHBg9Dn+4whLAGMWamZeUX5HAmvFsRydLwXzeiq9N21kaGLdxdzFycQgJTGeU mP6umxHEYRFYwypx/skVJhBHQuASq8S8Z0tYuhg5gJwYiTn7ArsYOYHMcomlk98xgdhCAioSN 7evYoKYtIhJ4urC9WAJYQE9iSNHf7BD2P4S8zb3M4LYbAIGEm927GUFsUUElCTurZoMVs8sUC Lxp6OZGcRmEVCVWHVgBVicV8Be4uLny2C9nAIOEhM3PIVabC+xrfsEmC0qICex8nILK0S9oMT JmU/AbmYW0JRYv0sfYry8xPa3c5gnMIrMQlI1C6FqFpKqBYzMqxg1ilOLylKLdA0N9JKKMtMz SnITM3OAPGO93NTi4sT01JzEpGK95PzcTYzA8K9nYGDcwbity/kQoyQHk5Io75U3bOFCfEn5K ZUZicUZ8UWlOanFhxg1ODgEJpydO51JiiUvPy9VSYL3Ixt7uJBgUWp6akVaZg4wQmFKJTh4lE R4f4OkeYsLEnOLM9MhUqcYdTm2TL23lkkIbIaUOO9rkCIBkKKM0jy4EbBkcYlRVkqYl5GBgUG IpyC1KDezBFX+FaM4B6OSMK8MO9AUnsy8ErhNr4COYAI64gI/G8gRJYkIKakGxuSV216UVPmu uxU0Kc+evW/lm86WKRuOsz9Y5ancEGQlwyg78+Dup9fW8tx1nfFp6wezO/O2drNM/+hYLzFvk te88jaVe6majcUTX4mlaz8uzF4ScjJFZnYQ762eJ7m/p16NUazb45ao2bX+4y9vxv2aJb88VW 2Knf3yWlOEQ1UYthZK3NL6pcRSnJFoqMVcVJwIANGQwpsRAwAA X-Env-Sender: raistlin.df@gmail.com X-Msg-Ref: server-16.tower-31.messagelabs.com!1460078672!26140334!1 X-Originating-IP: [74.125.82.66] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.28; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3407 invoked from network); 8 Apr 2016 01:24:32 -0000 Received: from mail-wm0-f66.google.com (HELO mail-wm0-f66.google.com) (74.125.82.66) by server-16.tower-31.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 8 Apr 2016 01:24:32 -0000 Received: by mail-wm0-f66.google.com with SMTP id a140so751444wma.2 for ; Thu, 07 Apr 2016 18:24:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:subject:from:to:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=uj2q0N4ItkRSfYBvSZmMGW+r80FakhBS8n8jUWCLBIo=; b=dOptk1r/ehnWcZ+LUvlQsKoSBkRkC0yf5QSIw2maxD3S0Culelrv57ydcxY23YwIlr vgAqYUWEH1W1G0IuqEyd2oD2bYs/hWTFkedkZF1mZWJclXR3enl3CNltNbyZ0sQDquxM rxTPTvAl5/PDzRVDn6fNbNLp/iBJmYZWTx2RPNCvOGqLw+0ypMl+3jln70iuezLcfRLN nnPrXIER19JB11MJrtp9dCVyBIgbbSdaA/TR5esyjr6kktJhna5mS8g4gjT6H3n+gyqm 5N/93gnJHCAkxD1GXjcnJc6+KBgrQ+oTlaq+oLIErTnWrhe1OVdWKyj2NssoU6wTVL6z msMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:from:to:cc:date:message-id :in-reply-to:references:user-agent:mime-version :content-transfer-encoding; bh=uj2q0N4ItkRSfYBvSZmMGW+r80FakhBS8n8jUWCLBIo=; b=M+hbfO/kfbFSYG58k0bTq+J/Ov4qdtTTnj6WNRSQLwn8tja8Z6FAablKtWo73FrGEU 9BR8M+66jBbKQOoj/vPaX/eDZioo7KPmZh942hJBvL2bSNF+Kthh9WuLxYSO1dWA7B+N xAqI5gqljbGqDHWLUrPuio2DpMvju1WbnLfHTr5Trqxio6nZ6KLlvlAneiYCRdvKPefr P4jn2RGsA3XA0DR/knnUNLJ3RZBP/NY10r9/Pi9hgALW+0hUVEgXD2y+FuPnoNRFF9Bt GmTb0rBx/pKM/HY9ioNmgQexC2+oAyR7hVzQMUTJQT4zUCS9+gEKLhRAx4ooEzLD9zOI xBTA== X-Gm-Message-State: AD7BkJIpGaoJjTibCKh1pv8RkOmloOUNs1wQevpV+R1/Wk79uPtqXM7mV8w0AirbSAM6UA== X-Received: by 10.28.232.140 with SMTP id f12mr631423wmi.6.1460078672326; Thu, 07 Apr 2016 18:24:32 -0700 (PDT) Received: from Solace.fritz.box (net-37-116-155-252.cust.vodafonedsl.it. [37.116.155.252]) by smtp.gmail.com with ESMTPSA id w67sm535189wmd.23.2016.04.07.18.24.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Apr 2016 18:24:31 -0700 (PDT) From: Dario Faggioli To: xen-devel@lists.xenproject.org Date: Fri, 08 Apr 2016 03:24:30 +0200 Message-ID: <20160408012428.10762.78812.stgit@Solace.fritz.box> In-Reply-To: <20160408011204.10762.14241.stgit@Solace.fritz.box> References: <20160408011204.10762.14241.stgit@Solace.fritz.box> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Cc: Juergen Gross , George Dunlap , Uma Sharma Subject: [Xen-devel] [PATCH v3 09/11] xen: sched: per-core runqueues as default in credit2 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Experiments have shown that arranging the scheduing runqueues on a per-core basis yields better results, in most cases. Such evaluation has been done, for the first time, by Uma Sharma, during her participation to OPW. Some of the results she got are summarized here: http://lists.xen.org/archives/html/xen-devel/2015-03/msg01499.html Signed-off-by: Dario Faggioli Signed-off-by: Uma Sharma Reviewed-by: Juergen Gross Acked-by: George Dunlap --- docs/misc/xen-command-line.markdown | 2 +- xen/common/sched_credit2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/misc/xen-command-line.markdown b/docs/misc/xen-command-line.markdown index 0047f94..5d801b8 100644 --- a/docs/misc/xen-command-line.markdown +++ b/docs/misc/xen-command-line.markdown @@ -472,7 +472,7 @@ combination with the `low_crashinfo` command line option. ### credit2\_runqueue > `= core | socket | node | all` -> Default: `socket` +> Default: `core` Specify how host CPUs are arranged in runqueues. Runqueues are kept balanced with respect to the load generated by the vCPUs running on diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index eeb3f54..d44cc3d 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -226,7 +226,7 @@ static const char *const opt_runqueue_str[] = { [OPT_RUNQUEUE_NODE] = "node", [OPT_RUNQUEUE_ALL] = "all" }; -static int __read_mostly opt_runqueue = OPT_RUNQUEUE_SOCKET; +static int __read_mostly opt_runqueue = OPT_RUNQUEUE_CORE; static void parse_credit2_runqueue(const char *s) {