From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AE57C43331 for ; Fri, 3 Apr 2020 05:51:23 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4FDAA206A3 for ; Fri, 3 Apr 2020 05:51:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4FDAA206A3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=vt.edu Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.92.3) (envelope-from ) id 1jKFEM-0000q8-7a; Fri, 03 Apr 2020 01:51:02 -0400 Received: from omr1.cc.ipv6.vt.edu ([2607:b400:92:8300:0:c6:2117:b0e] helo=omr1.cc.vt.edu) by shelob.surriel.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1jKFEJ-0000ps-Hd for kernelnewbies@kernelnewbies.org; Fri, 03 Apr 2020 01:50:59 -0400 Received: from mr2.cc.vt.edu (mr2.cc.ipv6.vt.edu [IPv6:2607:b400:92:8400:0:90:e077:bf22]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id 0335ovGn013675 for ; Fri, 3 Apr 2020 01:50:58 -0400 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mr2.cc.vt.edu (8.14.7/8.14.7) with ESMTP id 0335oqtq017342 for ; Fri, 3 Apr 2020 01:50:57 -0400 Received: by mail-qv1-f69.google.com with SMTP id m5so4931937qvy.0 for ; Thu, 02 Apr 2020 22:50:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to:references :mime-version:content-transfer-encoding:date:message-id; bh=+4hiCDa1f3x+d9cFf0dtQlKupV9XTyFqeyWs6h4qO4k=; b=poKY3l8JVfalRMb6ysdeAr1DlQMXZqVYJOnJkQi/6rgxnrlmdTYC+TukWymSGh9tY5 GqCVgqi/xuO/J3IwMalgrKHWtuVA0XrYUFiTmlu2XkKSKIGSNTksowSLr6n7g39lF18a Ka1VltzofyWP9ldG84cdKB7K7eHgKDNzVnqz0k+Vx0qOZmEXMrPqKo1N10bLnr54kxIe zlEs5H+J5kvEjB7UXHTckwSdwot4MSM80HYb0OTsWcnlf5P0VH5RETnKAaE9O4ZdptKN z0jOHbsw1KHsV9AZHDFTDjbFysy/OAu6bXTKhxlfs85fQ0bL0a/Yj5kYel8tLhzZGDK2 nSmg== X-Gm-Message-State: AGi0PuZhwzqDNXnJxI3fe06+4QyH1B0YZccSIYJ4fYP2WSE0qDO2rQVS XQu6TVKSrCKH+NJdjHDZB36hBYGgz2TLnP8iPE6yQn+1n9/B7gxwFT3y6me1KjTWFRpkxDeF40K cO+ncw4QFPXBDgOm80YNaz8b5TMn4IXoajdqiNk8= X-Received: by 2002:a37:4ac2:: with SMTP id x185mr7114994qka.413.1585893051887; Thu, 02 Apr 2020 22:50:51 -0700 (PDT) X-Google-Smtp-Source: APiQypI1xBjPTM4jKjOC06R4xi1Im59LGcwhw+7Ph0sRs/tEzowGo4pDjB7m9gg49XfETyIvxi5Qyw== X-Received: by 2002:a37:4ac2:: with SMTP id x185mr7114976qka.413.1585893051522; Thu, 02 Apr 2020 22:50:51 -0700 (PDT) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id n38sm5679306qtk.64.2020.04.02.22.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Apr 2020 22:50:09 -0700 (PDT) From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Google-Original-From: "Valdis Kl=?utf-8?Q?=c4=93?=tnieks" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Evan T Mesterhazy Subject: Re: [Scheduler] CFS - What happens to each task's slice if nr_running * min_granularity > sched_latency? In-Reply-To: References: Mime-Version: 1.0 Date: Fri, 03 Apr 2020 01:50:08 -0400 Message-ID: <132353.1585893008@turing-police> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1775591392441841456==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============1775591392441841456== Content-Type: multipart/signed; boundary="==_Exmh_1585893007_9685P"; micalg=pgp-sha1; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --==_Exmh_1585893007_9685P Content-Type: text/plain; charset=us-ascii On Thu, 02 Apr 2020 22:10:11 -0400, Evan T Mesterhazy said: > I ran a test by starting five busy processes with a nice level of -10. > Next, I launched ~40 busy processes with a nice level of 0 (all procs were > set to use the same CPU). I expected CFS to expand the period and assign > each process a slice equal to the min granularity. However, the 5 processes > with nice = -10 still used considerably more CPU than the other processes. Well, it's *expected* that if you set nice = -10 they'll get more CPU. Do you have any evidence that CFS *didn't* give the nice==0 processes a min_granularity slide once in a while? --==_Exmh_1585893007_9685P Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Comment: Exmh version 2.9.0 11/07/2018 iQIVAwUBXobOjwdmEQWDXROgAQKKrBAAsn13rcyXN4lcUM4/9lnqxOZJdMila33G wrX6k1IuqW/WMW4i3iG4b9dbT8bTzk0q1dHE6xK+AicHtTDgUxn4FAyySVniPits IeCxEnAqCFlL9cLfY5i+J3Wcdbdoq/eGbVv0Uj1EmXMmECZ+GL/PG5GVcICFZGhH 13x7id8lGec7KvqCT2iF3WErgchLBfM4FqjPT2AKMs+R4TUJ02QHOHXalRil7kDZ sCfbhrhhqVF32P/JpQpMQd3jYWX/7imlMsDj8u+KnUXt0bWlQGAp7GWCABxzDBWR m2ADNF4vBiZvvOqXKcZM1C+zEV4i98lLzRucgeaHXDnFumOOuiOWoJeNZIvO7c0a XczXhZDKKX4OH6yZ3JfiTMJ93+CeisRt9vAuagND+aymfoWAAHK81Ng1hwjzPtEA IEo3RlDVkAZC+mPgsDelgWS7fUTiYjhMKIH9vRGSg+BlCpny6T+bNp+BPl1q5PBB J6fQEWygAF0uonjt3ZIPH4QnIp06swQya2sv34zK41fWvEt4YjYkOKyfCYknsaWw 6wQK18+v2IDTNIvV8XKM9dkE/98oszvk/OZZohA6KA60EjaW6iSbfXGTZRkj2/MA X7x0L4waJzXgIcXFM0lqJma757gViFND/4hTWnECRM9vUXATTPI+owrdrd3z4uVY l4P9CO+9H/g= =dna6 -----END PGP SIGNATURE----- --==_Exmh_1585893007_9685P-- --===============1775591392441841456== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============1775591392441841456==--