Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp945058yba; Wed, 24 Apr 2019 12:13:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcFgXMsLzE8I1wszv6Rus/pBLRwiqD4u+DP9cYWNe9PbPhGcbsPMiz8nDpY38HgJZSTzRY X-Received: by 2002:aa7:982f:: with SMTP id q15mr3509086pfl.244.1556133185990; Wed, 24 Apr 2019 12:13:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556133185; cv=none; d=google.com; s=arc-20160816; b=YStoIhq9aH6jBwxRePIr0CY/44xf/wz3HUPMkEXNoalzUr+zVeLUyNko0wwvHEw1go uCaFa5juMDQQCzVLy1pcJoDxhjWm5DnXQCSoR2qNcobVQYKLF3vR5LQerHj/fs5vQDxC m4B+KFPOUOxNhZEY15q+szoCN36d2jPHRVu+zpDLJmC70isznnhzhLi8aHNl07+EiaiF FvYpZyB3txBu+EheXMmrtzj/D2RyoJ3ai9qA2ykaRTcqc7Uf4l1c0XgOfJljvC49uG7H 6R2pqjBiXf/Q7n8QpDXXq4+jMep2Mt43DOkO8WvLtHWWe+wg50MqroexKATjAVDb6tgl 24AA== 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=KqWzI5RBqkSYwXqu3BP17kOVTF1TJARwl4vmT894iMM=; b=eteBN2fjjfk4WHFx/qxws6V1eSV/xz+xZMZJhC0bjG2YMipTFbVHnxlIfpNKQlx8cc okmwlvCNG2NEhWXnRqI+myyPd6Y/iCH+Gr9+oLE1oFJhlt2SOYEFaV/0+2RVLFHEaZM9 9KHZah5MDwNmEQ880ExYe7O/1fxHRs0icGLUeiwi2sUpA5HhGwqEAN6VVKbPa3qUSJUx njY9QNJtB1onAQXLHe5vdXNszwLp9ATxZRFpguRH7u9z5dtxCVrLxM8VmC8gQPDfsdrD P0E8r+4nr5JKNBxqrH0YGP7BFVPUCYuh0zfXBpt1rIr9AoeDKCytrDCSqvklozoGn+mg cEhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digitalocean.com header.s=google header.b=g4VoSO8d; 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 23si4507253pfi.227.2019.04.24.12.12.50; Wed, 24 Apr 2019 12:13: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; dkim=pass header.i=@digitalocean.com header.s=google header.b=g4VoSO8d; 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 S1727922AbfDXOAY (ORCPT + 99 others); Wed, 24 Apr 2019 10:00:24 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:33931 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726637AbfDXOAY (ORCPT ); Wed, 24 Apr 2019 10:00:24 -0400 Received: by mail-qt1-f194.google.com with SMTP id j6so1104940qtq.1 for ; Wed, 24 Apr 2019 07:00:23 -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=KqWzI5RBqkSYwXqu3BP17kOVTF1TJARwl4vmT894iMM=; b=g4VoSO8dKH5SOcZMEaI/VIQ/BJ7wniQFvIu62iQg3UBOmFb2bSugt/L/NF5/pOE6tu GvZMct11fLDysOQEK+av1dMlw27d7BYCQvCr6rmx3gkXGsR/dDfUTnyDMA954RZQofEu 6RxPk8Rj101BZ2s8OJMkbVbHIervuZ/nMs7Vs= 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=KqWzI5RBqkSYwXqu3BP17kOVTF1TJARwl4vmT894iMM=; b=RdIsoGqBrr6U/mCsDfv58EoRdh5d9VluH/bA3IjYgkiGhLcz1maWHLZSceVDcRFBcP Gvk1cinjKunlpLdxXhU2Dy5GW1nPVueJGBlbNhWHTIeknY69FI9QUQRgkMAW+rV6L4di pZ8MsO19x4or4TRXMpNwpT2KCQuiPaYSSi2uPCkpKm/porEHn3fvKFVADEa6ZV3PfpVU Nj0708EqfhmypV/G6Tim0yewMnSSuADM+z+qWKDGC7LhC/Ra1cpOEySigs+s4rbDdLwM YZvrkfLuZrm8Xfo4lL+uK7ty4rVXPWUUb8hABs8NqJLQKN3Sccz7BbyvnH+hmarRxTi8 vE1Q== X-Gm-Message-State: APjAAAWwd+TGb2KpozgC878MB4virfnEJKgZO9Zf4Lsn5ry8CKkP2yb9 TmXexUunSAIasspCELfKLomTQQ== X-Received: by 2002:ac8:72da:: with SMTP id o26mr10222861qtp.138.1556114423054; Wed, 24 Apr 2019 07:00:23 -0700 (PDT) Received: from sinkpad (192-222-189-155.qc.cable.ebox.net. [192.222.189.155]) by smtp.gmail.com with ESMTPSA id z3sm2527228qkc.76.2019.04.24.07.00.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 07:00:22 -0700 (PDT) Date: Wed, 24 Apr 2019 10:00:13 -0400 From: Julien Desfossez To: Aubrey Li Cc: Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , =?iso-8859-1?Q?Fr=E9d=E9ric?= Weisbecker , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 Message-ID: <20190424140013.GA14594@sinkpad> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Mailer: Mutt 1.5.24 (2015-08-30) User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 24-Apr-2019 09:13:10 PM, Aubrey Li wrote: > On Wed, Apr 24, 2019 at 12:18 AM Vineeth Remanan Pillai > wrote: > > > > Second iteration of the core-scheduling feature. > > > > This version fixes apparent bugs and performance issues in v1. This > > doesn't fully address the issue of core sharing between processes > > with different tags. Core sharing still happens 1% to 5% of the time > > based on the nature of workload and timing of the runnable processes. > > > > Changes in v2 > > ------------- > > - rebased on mainline commit: 6d906f99817951e2257d577656899da02bb33105 > > Thanks to post v2, based on this version, here is my benchmarks result. > > Environment setup > -------------------------- > Skylake server, 2 numa nodes, 104 CPUs (HT on) > cgroup1 workload, sysbench (CPU intensive non AVX workload) > cgroup2 workload, gemmbench (AVX512 workload) > > Case 1: task number < CPU num > -------------------------------------------- > 36 sysbench threads in cgroup1 > 36 gemmbench threads in cgroup2 > > core sched off: > - sysbench 95th percentile latency(ms): avg = 4.952, stddev = 0.55342 > core sched on: > - sysbench 95th percentile latency(ms): avg = 3.549, stddev = 0.04449 > > Due to core cookie matching, sysbench tasks won't be affect by AVX512 > tasks, latency has ~28% improvement!!! > > Case 2: task number > CPU number > ------------------------------------------------- > 72 sysbench threads in cgroup1 > 72 gemmbench threads in cgroup2 > > core sched off: > - sysbench 95th percentile latency(ms): avg = 11.914, stddev = 3.259 > core sched on: > - sysbench 95th percentile latency(ms): avg = 13.289, stddev = 4.863 > > So not only power, now security and performance is a pair of contradictions. > Due to core cookie not matching and forced idle introduced, latency has ~12% > regression. > > Any comments? Would it be possible to post the results with HT off as well ? Thanks, Julien