Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp615018yba; Wed, 24 Apr 2019 06:56:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpuRioKLMQWqtRWmftkR4msazpfiz6xzHSVafSIP2yOw1TapkZfmlRZmUzVbtSDQa5Dkx8 X-Received: by 2002:aa7:86ce:: with SMTP id h14mr33432537pfo.84.1556114205081; Wed, 24 Apr 2019 06:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556114205; cv=none; d=google.com; s=arc-20160816; b=N+VGx8KbRLH0MdCX5U4PBPmo+COJYHtXcobsuphR8TB8yYoMyVl85lGY3f9j6/AuY9 MTLbg0CsvBPbnip71ARssEwMOz4o2xtWYE7NspJHJQ+ZjLZw6y75UCDklPcHFB6h0v0w D0F5vtk5I1YLGmzawEbetMluZ86f7j7s0KLgvWmVR/2BjdJYloU1MTTbvFSM6HMdWIgw RBVyoQk/tfczaANJwk4JET54EkU0jCrAH8UcjqgjB3flxfmx7+/q9Etr4+L+lyDtHdJd tATLU0/QeObtNHlRjxcEq/4csUmy0wamLZrb7ATcL/Y1U/QSulLT4kwGNLwS091EdtS6 uVeQ== 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 :in-reply-to:references:mime-version:dkim-signature; bh=ARgXNmSzkKlmq4ccihD4uxhUoE7bnpwP+o6PZbdz4R0=; b=xEOYfVm3wt2hsMhSUujsNudALTIwEclKd65XiEidiEetgWAzBn3SyZNosRxsbXBhWx k0MAAozbBFcJbpg1Zk0I3+6nuJipQRUNrff8QL5+yHMaJMxY0OvONCShYWvIeiI21RG+ Xxu6u8PzKK5OlbOoD/L06NjenwgYVXjck5Zer1DRIPCMhjwskqNEkrr5zNVAPWXvU6R5 c8BQr7jtVQbA7vr7jV1sK7WR7qHyrvqTsHT61a4qGpwtXkCm3wUzj+Z2GwBUhUZ9kgWw Fuo5yGFEmqAS3zjAu3r6735ixYpT+wGzSgrhMdL7hWdaoaX+jo7AKFvAMQcFNOsJ+rQK ckDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ss4ONKJ7; 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 c19si19995873pfi.230.2019.04.24.06.56.30; Wed, 24 Apr 2019 06:56:45 -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=ss4ONKJ7; 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 S1730086AbfDXNNX (ORCPT + 99 others); Wed, 24 Apr 2019 09:13:23 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41307 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728842AbfDXNNX (ORCPT ); Wed, 24 Apr 2019 09:13:23 -0400 Received: by mail-lf1-f65.google.com with SMTP id t30so14632823lfd.8 for ; Wed, 24 Apr 2019 06:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ARgXNmSzkKlmq4ccihD4uxhUoE7bnpwP+o6PZbdz4R0=; b=ss4ONKJ79o3GzVKbigUF93RJvnKdaG491YqDeMvXVGw/UkrtWyALvJ6F6xOWikFL+R Y+acTn9EtArMjWKysAhCHgnioWVlcq3Vsci7vxU61o+l+wiEXPMEYFO6qaLazINPyrBY U3nynF35GrshzIyjv07nILyDhbidMc+8ggR2+5RQFLMEfafIP6x6YKkphPH48WxGsvp7 Y69nXi3TsNyNhYpSbHlp10JEx1ToBAGR7WxcyPnjyIQ6cYbUlpwM4oy6YutA/SJl9etg PTAT8YlaDi7NVPsis9STYT8alJAg5GFbnS/8Bpox3VEvkPSswnActSSXhvJWbEsVaynz Lkeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ARgXNmSzkKlmq4ccihD4uxhUoE7bnpwP+o6PZbdz4R0=; b=luqhOsJ/iO7tgSniQGK05UIUlkTK25vr8/LGkBTtPjOO/IrVzwVXIm+BZnCoQTOW1A ffHnDHmn1oVERfAmj1hDtxm8ufZJ7CVPV4HQoUgYoC4I99a48A6Q9xglOaJruweaEr/C mCNfyiXhWXnRWlm3d+vdjpv+tsb/+Tca63NNmiZXZ2gxrkRz8omr/I9bmZO0DVk48zPi TO6YnoyAqSqBpQyLU6HD0v5rD4FikDXiFcCJM9hWDTNygTEMswUS9RS0EsI7tHS/RoFR EdipUZP0IUJ8t5q2EvWNXLtTO07xyQE4PHj8Pk+lup1Lb2toYh49Za5Xr7/ZmMB3Vp80 5Yew== X-Gm-Message-State: APjAAAU/h22V+b7Q1XU6NgZNN7yye9NybZ5TB+E+1KnvIFYRGBiGmbCH KCnRRI9nXVtQ9oFifK8f3U1cvNnSgVlPeMATMXQ= X-Received: by 2002:a19:f013:: with SMTP id p19mr16986859lfc.49.1556111601406; Wed, 24 Apr 2019 06:13:21 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aubrey Li Date: Wed, 24 Apr 2019 21:13:10 +0800 Message-ID: Subject: Re: [RFC PATCH v2 00/17] Core scheduling v2 To: Vineeth Remanan Pillai Cc: Nishanth Aravamudan , Julien Desfossez , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , Subhra Mazumdar , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , Aaron Lu , Valentin Schneider , Mel Gorman , Pawan Gupta , Paolo Bonzini 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 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? Thanks, -Aubrey