Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp685520ybh; Sat, 3 Aug 2019 07:43:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfwR7qBQOAJivMt73YRcdkGjf+pFvbNFGOV/fqPIjiE69iwsATBJBLzK8dUtGTatE5mVRO X-Received: by 2002:a63:c054:: with SMTP id z20mr5263242pgi.373.1564843388831; Sat, 03 Aug 2019 07:43:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564843388; cv=none; d=google.com; s=arc-20160816; b=hKmCJ628nFbAKbLjBTHYKSo6Y7HRhk6DFzIDXoM48huciHJdq4u9TfhSTHkwBbmwD3 oSPPAXpuBOpDPqQlei9IypkbL+nVGoss+/air1PN5dULukjgfgYOOPN+KA3jS63u7ydt Pw1Ph7qWZqmvTExbaPs4o8HWd7X9n8cbt+ncDljGWieA2yFRvVCN0i5sjxaXvhs2F1uH 00SOSFVzyuKsitb9+8D92fkmx143ZLN+VQgKc5h0frqgg4we+7u4ZIuaQv1Auf90Z+vi VWB9pgEhr4rhjGVv0/SzQTguMoDF+D0xDlJNG6J5QtD82SxLXV70xfQ0avhQXOiIKkLg w9dg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jv/NZoBvl7h7xSNp5mqC+DC1X6Mcvs4zQZLilLuxBX0=; b=uHgDBjy8CSgtePxoYi3UX6CnOC2/nH3SdzIZYUpaFqaTlUf9ehSxqcL272A0DCY8Wh M9SSFd0P8wMdPXu+3IpLQSTKSwN/ou8V+r9G09+RvdR7LUCKsaKGLDPiQt8BFK9rm4xh 0gXzSyryDuARIWsbs6txwSgFV/Pjlph0CJX0PzP6utRgxS83fZ3qZ1eLeMQc6lanrcXo opwZl5XhrTqtandsJcYJbIOWtA+DVQsro6rFZrvKFPBJSUVN5Hg/dwbc353NiXAlmcXA HUf6GC3iCl8fUo08LzjymACZqxncjn8JM0Du1lX0b7ZuByC+BMzxgWqOZW0d9S2cZVhq tWRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=cJlYpUlQ; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h31si16931524pgm.129.2019.08.03.07.42.53; Sat, 03 Aug 2019 07:43:08 -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=@digitalocean.com header.s=google header.b=cJlYpUlQ; 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=REJECT sp=REJECT dis=NONE) header.from=digitalocean.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388297AbfHBPha (ORCPT + 99 others); Fri, 2 Aug 2019 11:37:30 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:37872 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727198AbfHBPha (ORCPT ); Fri, 2 Aug 2019 11:37:30 -0400 Received: by mail-qt1-f196.google.com with SMTP id y26so74317989qto.4 for ; Fri, 02 Aug 2019 08:37:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digitalocean.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=jv/NZoBvl7h7xSNp5mqC+DC1X6Mcvs4zQZLilLuxBX0=; b=cJlYpUlQpNAUL7Rn36cXtRaIN9MKSXwFEeuaiVu/UnHGWMYr1eeZO0DK0BhhyTZ6J1 ZhnPVggRLGXPJA9g2iX1gbNt4/qhcddPEhNJWQwiR3hMGmvN8z58wwTxXGYL5ecENeoF svjYww4B/P8qerHQx7Qk9rlabVkBMkVgT4f78= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=jv/NZoBvl7h7xSNp5mqC+DC1X6Mcvs4zQZLilLuxBX0=; b=tzGFiHmv3BM/0aDuz8LUZx0gi48RT5+g4gMWIQx+E7H8H4ql71RUUwvKqesiuF72fz IBXEduI7CPdbMjLdC/PzrJD8fuik2Xk6az5/vrbvIb1ZYGosEuy8lR6JrKwBVvwgkydN WHr4XSf8XRgsdZoNmVaYgkNKYOu1nqG20Qwrqcpvo7005BVIt/1Hn940ArS000/8z6b3 2C8eAFUGPeHwh4kSB/NkANhmu2fs5x0vgIPfaNr5Yp7Voo2PK9rMY7+u3rDuhNWmEri2 spAd8NEOP1E+8imR7lg69wZBcEddTjl3bPUtQXu9t7r4+fBTv+qvppeEtg45NxPxwwOw GorQ== X-Gm-Message-State: APjAAAUq9jAA0ZuL2eX96PROn0NCeA0QZtVD8M4SccYJdLE80BG9xXgo innq/DSvU7n9MbcEjT5fzS6Wdw== X-Received: by 2002:ac8:303c:: with SMTP id f57mr96036240qte.294.1564760248496; Fri, 02 Aug 2019 08:37:28 -0700 (PDT) Received: from sinkpad (192-222-189-155.qc.cable.ebox.net. [192.222.189.155]) by smtp.gmail.com with ESMTPSA id a67sm34122957qkg.131.2019.08.02.08.37.26 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Aug 2019 08:37:27 -0700 (PDT) Date: Fri, 2 Aug 2019 11:37:15 -0400 From: Julien Desfossez To: "Li, Aubrey" Cc: Aaron Lu , Aubrey Li , Subhra Mazumdar , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 Message-ID: <20190802153715.GA18075@sinkpad> References: <20190612163345.GB26997@sinkpad> <635c01b0-d8f3-561b-5396-10c75ed03712@oracle.com> <20190613032246.GA17752@sinkpad> <20190619183302.GA6775@sinkpad> <20190718100714.GA469@aaronlu> <20190725143003.GA992@aaronlu> <20190726152101.GA27884@sinkpad> <7dc86e3c-aa3f-905f-3745-01181a3b0dac@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7dc86e3c-aa3f-905f-3745-01181a3b0dac@linux.intel.com> X-Mailer: Mutt 1.9.4 (2018-02-28) User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We tested both Aaron's and Tim's patches and here are our results. Test setup: - 2 1-thread sysbench, one running the cpu benchmark, the other one the mem benchmark - both started at the same time - both are pinned on the same core (2 hardware threads) - 10 30-seconds runs - test script: https://paste.debian.net/plainh/834cf45c - only showing the CPU events/sec (higher is better) - tested 4 tag configurations: - no tag - sysbench mem untagged, sysbench cpu tagged - sysbench mem tagged, sysbench cpu untagged - both tagged with a different tag - "Alone" is the sysbench CPU running alone on the core, no tag - "nosmt" is both sysbench pinned on the same hardware thread, no tag - "Tim's full patchset + sched" is an experiment with Tim's patchset combined with Aaron's "hack patch" to get rid of the remaining deep idle cases - In all test cases, both tasks can run simultaneously (which was not the case without those patches), but the standard deviation is a pretty good indicator of the fairness/consistency. No tag ------ Test Average Stdev Alone 1306.90 0.94 nosmt 649.95 1.44 Aaron's full patchset: 828.15 32.45 Aaron's first 2 patches: 832.12 36.53 Aaron's 3rd patch alone: 864.21 3.68 Tim's full patchset: 852.50 4.11 Tim's full patchset + sched: 852.59 8.25 Sysbench mem untagged, sysbench cpu tagged ------------------------------------------ Test Average Stdev Alone 1306.90 0.94 nosmt 649.95 1.44 Aaron's full patchset: 586.06 1.77 Aaron's first 2 patches: 630.08 47.30 Aaron's 3rd patch alone: 1086.65 246.54 Tim's full patchset: 852.50 4.11 Tim's full patchset + sched: 390.49 15.76 Sysbench mem tagged, sysbench cpu untagged ------------------------------------------ Test Average Stdev Alone 1306.90 0.94 nosmt 649.95 1.44 Aaron's full patchset: 583.77 3.52 Aaron's first 2 patches: 513.63 63.09 Aaron's 3rd patch alone: 1171.23 3.35 Tim's full patchset: 564.04 58.05 Tim's full patchset + sched: 1026.16 49.43 Both sysbench tagged -------------------- Test Average Stdev Alone 1306.90 0.94 nosmt 649.95 1.44 Aaron's full patchset: 582.15 3.75 Aaron's first 2 patches: 561.07 91.61 Aaron's 3rd patch alone: 638.49 231.06 Tim's full patchset: 679.43 70.07 Tim's full patchset + sched: 664.34 210.14 So in terms of fairness, Aaron's full patchset is the most consistent, but only Tim's patchset performs better than nosmt in some conditions. Of course, this is one of the worst case scenario, as soon as we have multithreaded applications on overcommitted systems, core scheduling performs better than nosmt. Thanks, Julien