From nobody Wed Mar 22 20:34:17 2023 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 4PhgF970xSz41GvT for ; Wed, 22 Mar 2023 20:34:37 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic314-20.consmr.mail.gq1.yahoo.com (sonic314-20.consmr.mail.gq1.yahoo.com [98.137.69.83]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PhgF85HQFz3C2d for ; Wed, 22 Mar 2023 20:34:36 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=TSsGtXpa; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.83 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1679517274; bh=Mi1uZvwYTt2cmLU3UCzy5mL8Z7TMGYrk6yjVPa6idbM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=TSsGtXpaIqzp1Hw0iq7QBv+95zCIa2D+OoimTqXt+tWDqGoj4K90UARdL7mM1VgRJrGzEEePYQjk2Z4OxUBicz6XjPM/nT+bUojkS1znnKT41ur83Bq2n1SoLrG0bMJjXGCshmJMD4kPKMZ3+h/a8WBwFYnsDg6CTKmqMORtXSMwPZlpTk5poUyg2D2SsFYQrGzyPdX/pbTMMBxb1yVCj1hB9vPzbBuKblTT0/9XFi8Lo0EpSq0nyy78Y7WLRWa4JT4dFJKcO7w52i5DYfusFE0MSB/7qZY5+GKt6IZhg8b/GyplixgCSdQ7SbKlIFZ3F339+XfgvXkR8enU4CtVTA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1679517274; bh=m35eyy7dbOqLhXhIFFcLaEN7qkMvFn3qyqFdRu5cmp5=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=p27tSuv4qPgyf9Ku3gl/Z+CFR6LATr/56o7Eg3JJjADNl4s7Sxd3KbJkuBwBM3MSK2GuDT8Ln9eTbcapXANK51v2fNRGO9lUGvKOYGsFefa5mYfLdo0ClhoGaT2SR4zUQo4O9q95e0v/wAi+h87aB+5j7wZx56PIixASm+IQZSH10jTO/fNYOrAv/ceo74r0m7US+jOxv1Qy/ieat3y3ntPg0aBFAfNnWS2UQvlvR8Snncbm/V+6TLDVw5WLXK0ZnUTzwguYEG0M0fzn+IbcadGT35i6gOmBpEzGyiLENr3KXEiChApwxZ5MrlmW2DguDH0v7B9opsigckR5XRYylA== X-YMail-OSG: FOVTBhsVM1k9_HKkJgIaLk1gdYfk_6zdiU5EXBH_6x_jk4YNbXIAaZgLESXLW8a p1rCtqU296Q11zAHxWBe8tvCz4.gxEnEpEag7NVz48ACQ0u8pVRElanAGFh_HJyNolDPSL8gHV8w vTHw0ACX.HrTBZrblPPI6mMu8p3GDiGGYdxJCewwf8Oh0GKyUUBryLfLFJuMKzbO84bR8m1DMyTs ppYbWB5uQwxSbAs7WZCRq1ULBSEjsyBMdk9O.m.HY5Mx40ze55_85hqQIJUtHj4JYAUBKKtUPCIJ JCosvzROGDKehhPTk.nLv9FdHcZadsTlool38JtOyJAlAG65WDGwDQFJumyeRmXDn2wfn1YkbvFt aWo4UQJaBD7hHjbRPiUQVkrte_u7h6nnLRlDrjss18Eng8H_wWyFKMMayzQNbetc.kPIV28GH6Ln 4ssT6PIqiLyYbKcAwE0TvFDKHKxk0aI4OSUVRoCOaWMZq.zpemS2GrVS9roZsLiZN2zDSHmv3EHr b0rxjeC6Q9aihQ42o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th8mBFLhwPP7WkoES3ed9ScGluLAPwonl9nhh7YMrNYH9U0CM7SDgF 4YOPEgD0EKWTTv.SaI3dzdlUNLJ94bPNg4t3_7k5UfJwhZFya27J3TFv62pFd7JDNw.JCUBz2cEK qoLXyPDGuR0covYzfY1caGyTVNm0_MWYmTeBCbzEjflcyOMqeDN2qe3YKLwdOnjpbSmNU2_6fw83 OIq3JLeoHT_TtnrspSdAsEl0VScEOAu0FXdRRWcdoefW.cZyyMdKy4_XS8RfCDUndpMTQZXYvAqJ zH2hD7bLk3g_DJTzfGgxJBsGE2Jur4iF05Szwuts1Cqvpnprmsba0X6X2iAyBzwEnlv2tX5NG409 lpKZE.NAXdQ1dYmlrZErCbX64f8sTkI.cvj0aljxnLhTkaCdVOa98Tq0TJCrII1RCmd3j6TK6yFN 0o0YV0Wjp0qhVTaY4oZZBVtae.J9MvOdGJKdR._bFhACIGgLBra0o37FmJZiiDYLqBcxbZyes8Gt 02xkjo3LSytq_ytTEz6hVFW5cqlzQNH9sAbxbrGnGIHiPweD.vWz6Y0Qptelhi944RRVLTuNSj79 KTv.4mUiMqSfb6IEwSmIImXOFVRCxO7SX7l0E5IT7I.6E4voZnvJv4GfScUCPYWlNI0GguSqNsVD bGArY.cFjjurjljx7tbKcEvbgAvV2jnUf5Z2I4tzsGtijn0L391BzQZRtA_dbYdzzgC.FTfu0uX3 m1S4- X-Sonic-MF: X-Sonic-ID: 4b74fea8-911f-47de-b74b-c6939f2b02ad Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.gq1.yahoo.com with HTTP; Wed, 22 Mar 2023 20:34:34 +0000 Received: by hermes--production-bf1-777648578f-75chz (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 05e281b59b3dec1abae7697cc586a085; Wed, 22 Mar 2023 20:34:29 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3731.400.51.1.1\)) Subject: Re: Periodic rant about SCHED_ULE From: Mark Millard In-Reply-To: <952d9795-19dc-8ad1-bb75-5c556ca6795a@m5p.com> Date: Wed, 22 Mar 2023 13:34:17 -0700 Cc: FreeBSD Hackers Content-Transfer-Encoding: quoted-printable Message-Id: References: <6BD317F2-7EDD-45C0-9DC9-5B94C1BBB8E1.ref@yahoo.com> <6BD317F2-7EDD-45C0-9DC9-5B94C1BBB8E1@yahoo.com> <952d9795-19dc-8ad1-bb75-5c556ca6795a@m5p.com> To: George Mitchell X-Mailer: Apple Mail (2.3731.400.51.1.1) X-Spamd-Result: default: False [-3.49 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.988]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TAGGED_RCPT(0.00)[freebsd]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.83:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_TLS_LAST(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.83:from] X-Rspamd-Queue-Id: 4PhgF85HQFz3C2d X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Mar 22, 2023, at 12:40, George Mitchell = wrote: > On 3/22/23 15:21, Mark Millard wrote: >> George Mitchell wrote on >> Date: Wed, 22 Mar 2023 17:36:39 UTC : >> [...] >>> Here are the very complicated instructions for reproducing the = problem: >>> 1. Install and start misc/dnetc from ports. >> Installing is likely easy, as likely would be building >> with default options (if any). I know nothing about >> starting misc/dnetc so that is research. (Possibly >> trivial, although if it has alternatives to control >> then I'd need to match that context too.) >=20 > service dnetc start I built and installed misc/dnetc and got a binary blob that clearly was not built in my environment: # file /usr/local/distributed.net/dnetc /usr/local/distributed.net/dnetc: ELF 64-bit LSB executable, x86-64, = version 1 (FreeBSD), statically linked, for FreeBSD 10.1 (1001515), = FreeBSD-style, stripped Way older FreeBSD vintage than the locally available toolchains would normally build. Some might be cautious about such a thing. The man page reported that: QUOTE If you have never run the client before, it will initiate the = menu-driven configuration. Save and quit when done, the configuration file will = be saved in the same directory as the client. Now, simply restart the client. =46rom that point on it will use the saved configuration. END QUOTE I've not seen what the configuration asks about yet. >>> 2. Run "make buildworld". >> So on the 32 hardware-thread (16 cores) amd64 machine that >> I have access to, the test is to only have buildworld use >> about one hardware thread, no matter what else is going on. >> I never would have guessed that the steps would not involve >> more like -j$(sysctl -n hw.ncpu) (so around -j32 in this >> context). So it is good that you provided your note or >> I'd not know if I'd done similarly or not when trying such. >> [Note: -j1 and lack of -j are not strictly equivalent in >> how make operates. As I remember, the distinction makes >> a notable difference in the number of subprocesses created >> directly by make (one per action "line" vs. one for the >> whole block?). So even using -j1 might make a difference >> vs. what you specified. I'd have to test to see.] >=20 > I am literally running "make buildworld" with no additional options. So required for repeating your results, but likely making such results not be interesting relative to how I normally deal with buildworld buildkernel and the likel, no matter if there is other activity in an overlapping time frame or not: my time preferences are too strong to wait for a single hardware thread to do my normal builds, even with no competing activity on the builder. >>> Standard out conveniently reports how long it took (wall clock). >> But nothing in your instructions indicate about how >> to get an idea much progress dnetc made during the >> various tests? [...] >=20 > Honestly, I've never worried about this part. But dnetc logs its > progress in /usr/local/distributed.net/dnetc.txt, though not in terms > that are easy to relate to real-world progress. Oddly, when I run > "make buildworld," I'm primarily interested in getting the world = built. > Perhaps others feel differently. Off topic for the specifics of the actual benchmark that you run: Then why not use of -jN ? In my context, any buildworld using -j1 or no -j at all takes a huge amount of time longer than letting it use all the hardware threads (or so). (I've avoided having any I/O bound contexts for such.) It does not take additional load on the system for that to be true --including on the 4-core small arm boards when I happen to buildworld on such (rare). >> [...] >> FYI: I've never built with and run the alternate >> scheduler so if there is any appropriate background >> for that that would not be obvious on finding basic >> instructions, it would be appropriate to provide >> such notes. >> [...] >=20 > You have to build a new kernel, using a config file in which you have > replaced "options SCHED_ULE" with "options SCHED_4BSD". -- George Thanks for the notes. I've not decided if I'll do anything with the binary blob or not. =3D=3D=3D Mark Millard marklmi at yahoo.com