Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp137306ybi; Thu, 30 May 2019 22:14:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqwS+bVMHuE865td87yucN22bLFeqhaOoMycaH8m4bnRHBzlpDi5dNOGbxrADjDAL7t4hQNc X-Received: by 2002:a63:2248:: with SMTP id t8mr7072697pgm.358.1559279656498; Thu, 30 May 2019 22:14:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559279656; cv=none; d=google.com; s=arc-20160816; b=jSCH/ykeEGcWs2fBks7v9DBchq6+hJ3hea5Pny/thMtdtMWD8M3gEZzilotbFJrMPY EZSueWvydpEpP5rn9d+w7U6U59pLZhcg0p1sfAXBcRTZp52wWyn4Ad+O/eco7QL32WOh dZiuvveYQyLf9dktbh+2NqmW2ZqPSJ0eCN4ixoT2na8N+iiVtG9f/7P1VlPLKLYulekj 4qg2CcNzjykyoX1S9NAlCucZWaKX7sTLM7bSFN03HLqvjboMAdsSfKQoUy1dJqhUe3DT OTRRSCmD0qXLMYHgcrsuDzBnTE9VwWVDzsOoH2S6ZKxds7aVtvzvyXyPEdOVML/7aaUV fhUw== 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=YglXuDcWf9alTVQYtcbGhpd+g01E+BzX09PlpWU7znI=; b=PUS4HDImgIvUWPFboukdC9CTdZf/iYrFRCavKYCub5ldR/2TR2usLmAGMHlTiI1ow2 w/ZxSfcf7GrDB4NDkgi7JroW15Ny3PoiHOW5hiDxrxDwZdkZjpkySGcEKWzOTAmXbLrA fSk7p1OzcWwDKbcuMdRq+CDY/mtvT9W7nHtpOXAD7eItmfEmU0m2ro9bnlysSbGS/PxF aoYD4cJav99WUvFmlX5xmYKn0tA+0k5xjRzicAHwWa/ifjuRLjS5tiGZ/Qo3bFazw2tX QmXQf6NwEEbdtJk4UZIUAzd5fAcSUtY/4D1xc3fXc3fob8SKmVTUDxorHL2JMp97Qj7m skSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vVhfIp8b; 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 x10si1355575pfi.87.2019.05.30.22.14.00; Thu, 30 May 2019 22:14:16 -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=vVhfIp8b; 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 S1726593AbfEaFMz (ORCPT + 99 others); Fri, 31 May 2019 01:12:55 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:36885 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725955AbfEaFMy (ORCPT ); Fri, 31 May 2019 01:12:54 -0400 Received: by mail-lf1-f66.google.com with SMTP id m15so6838247lfh.4 for ; Thu, 30 May 2019 22:12:53 -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=YglXuDcWf9alTVQYtcbGhpd+g01E+BzX09PlpWU7znI=; b=vVhfIp8bGmjkhBghXDT5wKTG0FfDZVItFEl3sfCf172am+PmH1Adz/XHBDFUqhtu+x PdzEkUr9EJIUrSdSVgOW+hb72EbhNrKOaiHJ56nCFjWy9yEo9bxOj2PMGD0M0zqQnUbF YVEBUhkwt1MXpWVuZ2jsfZ3VM4H3OY7H3xEQuM2p76dmYDARwDcHwPtB1aBTVjgvzGvt 6mi2luQHRT/irnsvNznPZANGcjVnMNo9kVtokTpYdN8YlrO+WTCsabpAOPCQXiUZIRWQ vKRL2OwX7vgz49zDCahE3/HkLkwZC2/lhAYLoGmLXJCHjP4PxwtFf4U+LO+H43ok1ksg 7aAw== 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=YglXuDcWf9alTVQYtcbGhpd+g01E+BzX09PlpWU7znI=; b=LE+Oyv+BD28oVNj2Qm5fJWaxEVePPXRDHIkfdHMMMIUJcj+igpMN8xI0F/k2GuKVC5 21GfclAfRGiGJSdXbnoxPLBxNJveBZ/ExNx8pibMcweUnhGYZ73ouw+mk1PSBTmXR6tk RQeyQUp0cfPgFmhSDAV4aE3cPe4V6A9SWLMIDHlxMqRMzqZwtYiNynWEIBMaoK+DzWEJ eb586YSNJtGn4IPgpegrCCVw4qCkHP5TA8fgsJnBiiP29cREmOOGUb9GF1oeHZ+DINVS yngwjOIgu+ct0UUx85LL2ykYbwG0/P2ZO0ZzUO6Q8sLlDbqy1JoJtGO4UqvA7qLFk/IX QJWQ== X-Gm-Message-State: APjAAAVUNEEqkoPTCuDsCfgqELrFjwNACHn1zgG9QregwUFp8oBFDpCE J7KLS4cgqM7VV4kH/29SKETRSMU+hW+zkv1xujo= X-Received: by 2002:a19:2045:: with SMTP id g66mr4252270lfg.132.1559279572547; Thu, 30 May 2019 22:12:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Aubrey Li Date: Fri, 31 May 2019 13:12:40 +0800 Message-ID: Subject: Re: [RFC PATCH v3 00/16] Core scheduling v3 To: Aaron Lu Cc: Vineeth Remanan Pillai , 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 , 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 Fri, May 31, 2019 at 11:01 AM Aaron Lu wrote: > > This feels like "date" failed to schedule on some CPU > on time. > > My first reaction is: when shell wakes up from sleep, it will > fork date. If the script is untagged and those workloads are > tagged and all available cores are already running workload > threads, the forked date can lose to the running workload > threads due to __prio_less() can't properly do vruntime comparison > for tasks on different CPUs. So those idle siblings can't run > date and are idled instead. See my previous post on this: > https://lore.kernel.org/lkml/20190429033620.GA128241@aaronlu/ > (Now that I re-read my post, I see that I didn't make it clear > that se_bash and se_hog are assigned different tags(e.g. hog is > tagged and bash is untagged). Yes, script is untagged. This looks like exactly the problem in you previous post. I didn't follow that, does that discussion lead to a solution? > > Siblings being forced idle is expected due to the nature of core > scheduling, but when two tasks belonging to two siblings are > fighting for schedule, we should let the higher priority one win. > > It used to work on v2 is probably due to we mistakenly > allow different tagged tasks to schedule on the same core at > the same time, but that is fixed in v3. I have 64 threads running on a 104-CPU server, that is, when the system has ~40% idle time, and "date" is still failed to be picked up onto CPU on time. This may be the nature of core scheduling, but it seems to be far from fairness. Shouldn't we share the core between (sysbench+gemmbench) and (date)? I mean core level sharing instead of "date" starvation? Thanks, -Aubrey