From nobody Thu Jul 08 06:41:23 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 D4958122139C for ; Thu, 8 Jul 2021 06:41:26 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) (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 4GL6Bt5Km8z3KtX for ; Thu, 8 Jul 2021 06:41:26 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-ed1-x534.google.com with SMTP id v1so6927811edt.6 for ; Wed, 07 Jul 2021 23:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=YW/QfjWvO5QHUT6m9eU10+qr95BzYU7LvZaRyNJ9zKo=; b=kt49RXJW84vhJoUq6LKv4WodOuBNzyoVnXbpyF9L49RtnCiGg94XNNsUP2/cARSoxq XsjtzuZSpi4a7Ehx5kLSNHAE0xwbJSbRUboXR5T9Dsa63/gYC5Z96WneLS5e+A1HDofa 1VHR0aN9M03wuJQPgvhaHl4XDQ2A4BGYHDLUlIuE8SVLEMGbhiegsTaq9bPV0FLUrY6t idSYmZ+D3dYLo+A3rCS2NM1R6MtZ9RJE459MHb/IByrBF6CJZeGLjuO4YWfqfWQ28d7H FallMBtXVuopHlrh7mqUjllrlBhl2i9xxrGVPoYKmhu6nuzOqWn+nfxEXA9ZqdNFnFen h1qg== 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:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=YW/QfjWvO5QHUT6m9eU10+qr95BzYU7LvZaRyNJ9zKo=; b=Zyhs627cv31COYPgkRadiwjxEt9/NYXoKwJnI9lKV4/p1RgDdRpxuNQL14uoFxLAJG TSrioQWRGD9gIwzbFcV1sHObLWEb5GWOZvtfnfg+1Rqg5G7ENRuL/H/CuFGOdyR6lj5M HgIsbYh6aSgCLohSh4ARog+n36Pavdv5CISqv6M7y82KMj5S4n9xYaaPTIbevXKgOMuZ xEwiX1Rd2PkYXfM2ZBQJjdXaZwNBYvPUH0rzIdimhubZYwuGwcXp1x/f5g7cdEz9M+rT LQKNM6DuezAFAXNRgTIDKdM7HGThsoruHTeVEoWIkQLUqMo4W+mBlkact39uU5AS7eYJ rlvQ== X-Gm-Message-State: AOAM531Cv8Sgoa4eGSyWq9VV0O2qddFgAA5VoGfvyg5rQSLQR+WxuWDy AIVqg3nc3XUMfYNXwhh1a5e4tORFY2xV4w== X-Google-Smtp-Source: ABdhPJza8SXpU3CzAqb3PqcORVzgS39cRj+gTqdw0IszSlhDz3EjHNI1lUzf3TpFDM/ehBmsGfmaiQ== X-Received: by 2002:aa7:c74e:: with SMTP id c14mr7901143eds.40.1625726485348; Wed, 07 Jul 2021 23:41:25 -0700 (PDT) Received: from ernst.home (pd9e2360f.dip0.t-ipconnect.de. [217.226.54.15]) by smtp.gmail.com with ESMTPSA id gg4sm416274ejb.87.2021.07.07.23.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 07 Jul 2021 23:41:24 -0700 (PDT) Date: Thu, 8 Jul 2021 08:41:23 +0200 From: Gary Jennejohn To: Steve Kargl Cc: Miroslav Lachman <000.fbsd@quip.cz>, George Mitchell , FreeBSD Hackers Subject: Re: Periodic rant about SCHED_ULE Message-ID: <20210708064123.22ae2daf@ernst.home> In-Reply-To: <20210707214919.GA22332@troutmask.apl.washington.edu> References: <13445948-7804-20b4-4ae6-aaac14d11e87@m5p.com> <20210707181835.75601d54@ernst.home> <054b4735-7740-617d-6c61-c5b48ef1d85a@quip.cz> <20210707214919.GA22332@troutmask.apl.washington.edu> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) 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: 4GL6Bt5Km8z3KtX X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[freebsd]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Wed, 7 Jul 2021 14:49:19 -0700 Steve Kargl wrote: > On Wed, Jul 07, 2021 at 10:56:55PM +0200, Miroslav Lachman wrote: > > On 07/07/2021 20:18, Gary Jennejohn wrote: > > > On Wed, 7 Jul 2021 13:47:47 -0400 > > > George Mitchell wrote: > > > > [..] > > > > > > I've been ranting about this for years now, and I've had my say -- but > > > > no one has ever answered my question about what workload SCHED_ULE is > > > > best for, though numerous people have claimed that it's better than > > > > SCHED_4BSD for -- some rumored workload or other. -- George > > > > > > > > > > IIRC there was talk about making the scheduler loadable in the early > > > days. But that was years ago and I may be misrembering. > > > > > > I have a Ryzen 5 1600 with 6 cores, so older tech and "only" 3200MHz. > > > > > > I can do a clean buildworld on FreeBSD-14 using only 10 of the 12 SMTs > > > in about 40 minutes using SCHED_4BSD. While still browsing the > > > interwebs or watching a film etc. with no noticeable lags in > > > performance. > > > > > > So, for my normal desktop usage SCHED_4BSD is the only way to go. > > > > I had some performance problems with VirtualBox as hypervisor on somewhat > > older Intel Xeon with 4 cores 8 threads. So I tested 4BSD and ULE - > > SCHED_4BSD had slightly better results than SCHED_ULE. > > I am also curious why ULE is the default. Where are some real world > > performance results for comparing the two FreeBSD schedulers. > > > > I made those measurements more than a decade ago, and > reported my findings in either freebsd-hackers or > freebsd-current mailing list. > > Write a classic boss-worker MPI numerical simulation, where the > workers are compute bound. Start the MPI simulation requesting > NCPU+1 images with NCPU being the number of available cpus. > Each worker will be assigned to a cpu. Then this leads to a > worker and the boss image sharing a cpu. Due to cpu affinity, > these two then ping-pong on that cpu. > > I haven't repeated these measurement in a long time. > I feel that I have to add that the 40 minute buildworld isn't due to SCHED_4BSD alone, but that I have many features which I don't need disabled in src.conf. I'm pretty sure that a buildworld with every feature enabled would take a lot longer on my system. -- Gary Jennejohn