Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8240185ybi; Tue, 23 Jul 2019 05:17:06 -0700 (PDT) X-Google-Smtp-Source: APXvYqzs+zrSEKyM++rb5bfsEPZEuGm1dUwrI070tHwIvXpxn/e/d+fbuNIYEtuH+RgUxCW7CTjY X-Received: by 2002:a17:902:100a:: with SMTP id b10mr40057609pla.338.1563884226699; Tue, 23 Jul 2019 05:17:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563884226; cv=none; d=google.com; s=arc-20160816; b=q/NRku+U8jVsNZ1hjTKYEkCl+B/ICXD6zS2b02Cd+W7lebWzOCmOMMYH+2m0vPe+GK Lw+aqI2S+WVmdomF2NDYsWEDKHf3iiLjnSmWNCBRemRdehwUOhkqIewS/mdUqkWeIrgL p2y6OHWqNFS/DRdV7NEa9EZavQylRbBecdRDgVKxNwtGAsLis1NY9X28zTzCDX5WSjDZ dvUqz9Y69Ob1NYsiTedhLxtVUaxlkh1UoUnAVo1e1dKlamWvf9/Fz6/jeyUSamN6596a lMkXFBxajcFGXTvRQoYAxMqoUoT3x8DkqKSMBEbZdYscIpfM8crjzF3XXqFgGjmjBJyQ 4xNw== 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=1etmy9Atvv4SrZGT3oic1ZoFV3GFj3ap7yhS6jSdM8g=; b=sJqvnno696m2KTbbPbYhsvvwyQs8MehqC8gYwZtKv9tqzi2zyGpSvaHYjlSyuiYWOH Wpy4ORkRY+znU3MRKXxYUDCKXF+3A9fBNwpa/cAWmGXUYDsxvDaMR/Omxf88YyPtegCy eQslCmOuS15NDGs++OPY6zKlcvD/KdEXEaXs0ACDtbgBPU9i9B9q9WjpzkrJSr0gStwJ Tehphil5pxqw63K0Sepj1Q4F2IFchQPE+B4BOU9d7Uy+Ghu3WqO6pqVXvDJ07INK3fKK zkyXwDNHRX0hBWs5CpY3XiN2ksOXmimFi1gpCQ1Bv88MjAgIfMBypQcmojaTlrwKKyqH Vh6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=H04dM0Ty; 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 s37si11600769pjb.16.2019.07.23.05.16.50; Tue, 23 Jul 2019 05:17:06 -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=H04dM0Ty; 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 S1732196AbfGWCwW (ORCPT + 99 others); Mon, 22 Jul 2019 22:52:22 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41341 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729066AbfGWCwV (ORCPT ); Mon, 22 Jul 2019 22:52:21 -0400 Received: by mail-lj1-f196.google.com with SMTP id d24so39511732ljg.8 for ; Mon, 22 Jul 2019 19:52:19 -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=1etmy9Atvv4SrZGT3oic1ZoFV3GFj3ap7yhS6jSdM8g=; b=H04dM0TyEHGefL+muTqXD2UMxoFKeUoxvL9OBTbsBCO39+iSJ+Pb77kXL3xr8zSY5w VpFqfrwE2GhKZHKV47aGRDkz1p2TZUhIUQIFUHjN+jmJVGVxDYRrMDsAozWF1AVVdDn6 ir65d7ldZ6yaO85qkL1pEprDCekw2vro8JHemOYbxuYuHcptswKBde5vffB3MbU7bhv/ 3r4kCvm+21zq80dRa9hl6ap4tKwjQSXIJ1i0TX8M59H7mzaSi26uzP5PS2fBmmmlfMv4 /aVQqzBSYh6GaD5AHqX3uekducWJvJ4KwQNi4rEnpORsjpVtbbzvTR4nFPdG6AhHXVYP PWXg== 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=1etmy9Atvv4SrZGT3oic1ZoFV3GFj3ap7yhS6jSdM8g=; b=OF9UcVbzOlH66OEDPksxF4FTh3cmQTUFHMu0J9B30mkq6BdFYf3FogFX347qHrO4YV CbbQb2IXdrBdHWwTtCTuWR7361vB6CI5iOI7i/0b0npwC6rdlQlgtFgjzsFMQVJ5pcsm AIta0d0KOGH0SwGz5K1YMjTVBpcWpLaNrGSosdkCAaCZhLCt3t/3hAS/hRJ3rU5UEB6w eGoxYGuIUdr1DHork8cljEuPp5L3HYhOs/bTRR0bBBrMXlQP9z/gf+kD2lNqPEAVwTz3 GkJbqoKjUSUDStE3bqSRo32CUuLaGGnWE/I/VlvB6S5qeEG1J2cF/pgicjK+D8pOXtjz 0VqA== X-Gm-Message-State: APjAAAXWXrwI2oDCLSVWHGCMUGZZTO499d8iFQRbUt4PAAzQrR8LuRi4 UkqAgtmZXGozExys3tReaUweb7+UHh8VboIk1cw= X-Received: by 2002:a2e:9b83:: with SMTP id z3mr10610019lji.84.1563850338979; Mon, 22 Jul 2019 19:52:18 -0700 (PDT) MIME-Version: 1.0 References: <20190531210816.GA24027@sinkpad> <20190606152637.GA5703@sinkpad> <20190612163345.GB26997@sinkpad> <635c01b0-d8f3-561b-5396-10c75ed03712@oracle.com> <20190613032246.GA17752@sinkpad> <20190619183302.GA6775@sinkpad> <20190718100714.GA469@aaronlu> <18fdcd2b-9064-6895-5948-feed65f96e35@linux.alibaba.com> In-Reply-To: <18fdcd2b-9064-6895-5948-feed65f96e35@linux.alibaba.com> From: Aubrey Li Date: Tue, 23 Jul 2019 10:52:07 +0800 Message-ID: Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 To: Aaron Lu Cc: Julien Desfossez , Subhra Mazumdar , Vineeth Remanan Pillai , Nishanth Aravamudan , Peter Zijlstra , Tim Chen , Ingo Molnar , Thomas Gleixner , Paul Turner , Linus Torvalds , Linux List Kernel Mailing , =?UTF-8?B?RnLDqWTDqXJpYyBXZWlzYmVja2Vy?= , Kees Cook , Greg Kerr , Phil Auld , 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 Mon, Jul 22, 2019 at 6:43 PM Aaron Lu wrote: > > On 2019/7/22 18:26, Aubrey Li wrote: > > The granularity period of util_avg seems too large to decide task priority > > during pick_task(), at least it is in my case, cfs_prio_less() always picked > > core max task, so pick_task() eventually picked idle, which causes this change > > not very helpful for my case. > > > > -0 [057] dN.. 83.716973: __schedule: max: sysbench/2578 > > ffff889050f68600 > > -0 [057] dN.. 83.716974: __schedule: > > (swapper/5/0;140,0,0) ?< (mysqld/2511;119,1042118143,0) > > -0 [057] dN.. 83.716975: __schedule: > > (sysbench/2578;119,96449836,0) ?< (mysqld/2511;119,1042118143,0) > > -0 [057] dN.. 83.716975: cfs_prio_less: picked > > sysbench/2578 util_avg: 20 527 -507 <======= here=== > > -0 [057] dN.. 83.716976: __schedule: pick_task cookie > > pick swapper/5/0 ffff889050f68600 > > Can you share your setup of the test? I would like to try it locally. My setup is a co-location of AVX512 tasks(gemmbench) and non-AVX512 tasks (sysbench MYSQL). Let me simply it and send offline. Thanks, -Aubrey