From nobody Wed Jul 21 22:43:13 2021 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DAD8812BA2EB for ; Wed, 21 Jul 2021 22:43:17 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4GVVwj1NZwz3m73 for ; Wed, 21 Jul 2021 22:43:16 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by mail-wr1-x435.google.com with SMTP id d12so3758262wre.13 for ; Wed, 21 Jul 2021 15:43:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=date:from:to:subject:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=A5vBBDh/eXfmfplGD1GMIERU5mJCFudfTwNA0CSWztU=; b=vXtNnPVEmcGcpHU9NSTV6uaH2YNSpzdE71VdmKjGhIB4JmOBrfEi+S6BRHAgeSRXTR EjibnOPgy5Mjau4APfAhe29jbKMQmyoziDmZOiQUDamPllpGBnKaumdIParKGXiE0nUd DzfoIYGqc5j8tFr/o6VNgxKwKtzw6bmahYajxAsoeL/neqcrD4EtVWdA+MTbMK7S0u31 81UgfQJESzwOhPNV3TCkQKYLysM7lm0mvbYZUbJB0VvaBNY7E+WqLnGyUtOjZEsj/i2Q BG7DzIdRkdRjtWZIhMZcLCc83kFcnRMq39j63+0TP+314Ky1RPTZw9BrLSPNXjW6IQGQ LESw== 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:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A5vBBDh/eXfmfplGD1GMIERU5mJCFudfTwNA0CSWztU=; b=pxwfhcriuy77R7c0xTfKUCsJpu+h753vDM3W8olhrbRq8dtJgKITE2rNnozsn0jNAd vye6rG40/doij3mGtTDQTnRZA7x20czSX/2DHaaMjY40VaxYaEnaFmw9Fm6CCn3HSSYI V126E7VxLEuTrdJFbaAOTaVg3/rkfIkzvXfn3Ybty4Svq6k9wwgvVzu8QtNlrbHOZvKm EafehXUaRvnxWene5Y+fGXhaqDY9K6qBP5N9oG22MN/6u/QTPOnS2sZ2sI2+Iu7ic8SM ZtPpj4riOMRp2IWPhnpMSykp22OxdubGlsu3JUnYDR6XPOaD0Sc8We0wXm7Dh2ZCQ8TS Cg0w== X-Gm-Message-State: AOAM530pBvftFfd1lcChpxJnsJdzfYr8odcuOEoFHsZOtHmCwseBzONd EutU6kKupEuagVZLkUg9Ovt//aV1BCk= X-Google-Smtp-Source: ABdhPJyZPyJbdFTr7/5VU3edi3aL5ahdmn9HKOTXEQdXKH1uaCzE4oEnwM43Smjp2ogcqbEDUNkc3A== X-Received: by 2002:adf:b318:: with SMTP id j24mr46425751wrd.361.1626907395800; Wed, 21 Jul 2021 15:43:15 -0700 (PDT) Received: from gumby.homeunix.com (host-92-1-116-226.as13285.net. [92.1.116.226]) by smtp.gmail.com with ESMTPSA id q19sm1013204wmq.38.2021.07.21.15.43.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Jul 2021 15:43:14 -0700 (PDT) Date: Wed, 21 Jul 2021 23:43:13 +0100 To: freebsd-hackers@freebsd.org Subject: Re: Periodic rant about SCHED_ULE Message-ID: <20210721234313.4708c58d@gumby.homeunix.com> In-Reply-To: <5482bee3-e033-c605-b380-ca3493be7492@FreeBSD.org> References: <13445948-7804-20b4-4ae6-aaac14d11e87@m5p.com> <20210708101907.0be3a3c2@rimwks.local> <20210714164745.0128ea15@gumby.homeunix.com> <8239e474-fc36-b8aa-93b7-39197534cd30@heuristicsystems.com.au> <20210719013743.0590b1f2@gumby.homeunix.com> <5482bee3-e033-c605-b380-ca3493be7492@FreeBSD.org> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; amd64-portbld-freebsd12.2) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4GVVwj1NZwz3m73 X-Spamd-Bar: + Authentication-Results: mx1.freebsd.org; dkim=pass header.d=googlemail.com header.s=20161025 header.b=vXtNnPVE; dmarc=pass (policy=quarantine) header.from=googlemail.com; spf=pass (mx1.freebsd.org: domain of rwmaillists@googlemail.com designates 2a00:1450:4864:20::435 as permitted sender) smtp.mailfrom=rwmaillists@googlemail.com X-Spamd-Result: default: False [1.94 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[googlemail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[googlemail.com:+]; DMARC_POLICY_ALLOW(-0.50)[googlemail.com,quarantine]; RECEIVED_SPAMHAUS_PBL(0.00)[92.1.116.226:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[googlemail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::435:from]; DWL_DNSWL_NONE(0.00)[googlemail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[googlemail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.99)[0.991]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::435:from:127.0.2.255]; NEURAL_SPAM_LONG(0.95)[0.952]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::435:from]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] Reply-To: rwmaillists@googlemail.com From: RW via freebsd-hackers X-Original-From: RW X-ThisMailContainsUnwantedMimeParts: N On Mon, 19 Jul 2021 09:14:34 +0300 Andriy Gapon wrote: > On 19/07/2021 03:37, RW via freebsd-hackers wrote: > > I haven't got time to look into this in detail but from a cursory > > examination it looks like there must be some kind of translation > > between the PRI values seen in top and the priorities used in the > > scheduler. > > Yes. top's priority is the real priority - 100. The test for preemption is pri <= preempt_thresh I suspect that the defaults have been set up on the assumption of pri < preempt_thresh With and without FULL_PREEMPTION the defaults are 224 and 80 respectively. Both of these are one level outside a range. There may possibly be a good reason for 80, but 224 means that one idle level is included.