From owner-freebsd-stable@freebsd.org Tue Sep 15 02:43:13 2020 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 19DD83EAD2B for ; Tue, 15 Sep 2020 02:43:13 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from hz.grosbein.net (hz.grosbein.net [IPv6:2a01:4f8:c2c:26d8::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hz.grosbein.net", Issuer "hz.grosbein.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Br6wb2SLQz4fbx for ; Tue, 15 Sep 2020 02:43:11 +0000 (UTC) (envelope-from eugen@grosbein.net) Received: from eg.sd.rdtc.ru (eg.sd.rdtc.ru [IPv6:2a03:3100:c:13:0:0:0:5]) by hz.grosbein.net (8.15.2/8.15.2) with ESMTPS id 08F2gsCk057019 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 15 Sep 2020 02:42:57 GMT (envelope-from eugen@grosbein.net) X-Envelope-From: eugen@grosbein.net X-Envelope-To: freebsd-stable@lists.invis.net Received: from [10.58.0.10] (dadvw [10.58.0.10]) by eg.sd.rdtc.ru (8.16.1/8.16.1) with ESMTPS id 08F2gwkJ038205 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Tue, 15 Sep 2020 09:42:58 +0700 (+07) (envelope-from eugen@grosbein.net) Subject: Re: Cannot find announcement that min supported i386 CPU is now i686 To: Charles Lecklider , freebsd-stable@freebsd.org References: <4460db23-9a29-7972-1b41-74585764a5d7@lists.invis.net> <20200831205136.GA15141@elch.exwg.net> <2986c4ef-6e73-50f9-215e-20e8a9793434@lists.invis.net> <6bd2c4f6-5ce1-5a0d-14b3-71831a0443f4@grosbein.net> <934c2a63-d3b0-dafb-08cf-8572bb313d03@lists.invis.net> <4873c4bd-abdc-f566-8038-e51c755b1222@grosbein.net> From: Eugene Grosbein Message-ID: <35a18110-3252-2f53-ebae-b9a893776b62@grosbein.net> Date: Tue, 15 Sep 2020 09:42:53 +0700 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00,LOCAL_FROM, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Report: * -2.3 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 SPF_PASS SPF: sender matches SPF record * 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record * 2.6 LOCAL_FROM From my domains * -0.0 NICE_REPLY_A Looks like a legit reply (A) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on hz.grosbein.net X-Rspamd-Queue-Id: 4Br6wb2SLQz4fbx X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=permerror (mx1.freebsd.org: domain of eugen@grosbein.net uses mechanism not recognized by this client) smtp.mailfrom=eugen@grosbein.net X-Spamd-Result: default: False [-1.90 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[eugen]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; NEURAL_HAM_LONG(-1.03)[-1.028]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[grosbein.net]; NEURAL_SPAM_SHORT(0.23)[0.228]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_PERMFAIL(0.00)[empty SPF record]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-stable] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Sep 2020 02:43:13 -0000 14.09.2020 12:08, Charles Lecklider via freebsd-stable wrote: > On 2020-09-14 04:41, Eugene Grosbein wrote: >> Build time for modern FreeBSD version is too gross and needs way too much memory, >> so I stopped building image for my i586 hardware "in place" quite long ago. > > It would take about a week to compile, but since it was stable <11.4 I > didn't really care. > >> I use my i7-based desktop to build NanoBSD image for its upgrade, it works just fine >> by default setting ARCH/TARGET_ARCH to i386 and correct CPUTYPE. > > I tried that on my workstation (dual Xeon, lots of RAM) but couldn't get > it to compile for i586 - various things kept bailing out. It would > compile i386 for i686, but not i586. Have you tried it with 11.4? Just updated that my i586 AMD Geode system upto latest 11.4-STABLE, all went OK. I build it with standard nanobsd(8) utility in base system, my build configuration contains: NANO_PMAKE="make -j3" NANO_KERNEL=GWOLD CONF_BUILD=' TARGET=i386 TARGET_ARCH=i386 NANO_ARCH=i386 CPUTYPE?=k6-3 ... ' And kernel configuration has: machine i386 cpu I586_CPU cpu I686_CPU options CPU_GEODE options CPU_SOEKRIS options SCHED_4BSD ... For UP system, I find SCHED_4BSD behave better than default SCHED_ULE. >>> Don't try -Os or -Oz (which really do help on a real i586) - ZFS will >>> wedge quickly. >> >> Currently i586-class CPU needs as many speed improvements as possible >> and I was told that -Os might drop performance comparing with -O2, >> so why bother? > > It depends on your workload. This machine spends most of its life > running rsync over ssh, so having more useful code in L2 cache makes a > difference even if it takes a few more clock cycles to run. The > bottleneck is IO - mainly disc, but also network (way better with > polling - don't know why it's not in GENERIC) so those extra clock > cycles aren't as important. > > If you're doing real number-crunching stuff with it, a) why?!, Isn't ssh encryption/decryption "real" number-crunching? My i586 system did IPSec encryption for tunnels and despite of having AES-CBC-128 onboard hardware accelerator suitable for IPSec, it was quite limited by CPU horsepower, so I used hmac-md5 instead of SHA variants to speed-up things a bit and still, it was able to saturate 100Mbps with unencrypted PPPoE+ipfw nat but only 33Mbps with IPSec AES+MD5 and less with SHA. > and b) yes, -O2 would be better. > >>> 11.4 i386 doesn't honour `vfs.zfs.arc_max` in any meaningful way >>> resulting in one of the `find`s in periodic security wedging ZFS. >> >> Been there, seen that. The problem pre-dates 11.x series and appeared in 10.x. >> It was much better in times of 9.x, though. > > Yes, I've also seen it before, but 11.4 is particularly egregious with > its disregard on i386 - amd64 is behaving itself on everything I've tried. > >>> options KSTACK_PAGES=4 >> >> This is default for 12.x/i386 but was not merged to stable/11. > > That's good to know. > >> You might find useful these also: >> >> vfs.zfs.vdev.cache.size="8M" >> vfs.zfs.prefetch_disable="1" > > Prefetch is disabled on i386 by default; I played with the vdev cache > size too but it made no discernable difference. > >> And for kernel config: >> >> options KVA_PAGES=512 >> >> This makes ZFS more stable giving it bigger kernel virtual area with less utilization for it. > > Yes, that's the theory, but when I tried it on earlier versions the > kernel would just blow up on boot. I may try it again next time I update > the kernel. It worked for me with KVA_PAGES=768 even, so kernel and ZFS had 3GB for virtual area and only 1GB for userland but that was i386 virtual machine with 512M or 1GB RAM only (cheapest hoster provided some years ago), so 1GB for userland was just fine :-) >>> TL;DR: I'd avoid 11.4 i386 as it doesn't appear to have been tested on >>> i486/i586 at all. >> >> Finally I gave up running ZFS for vmem-contrained systems, >> e.g. I moved my i386 virtual machines that benefit from ZFS compression to amd64. > > Oh, sure - I'd never dream of doing anything fancy with ZFS on this > machine - it just does backups. > > My point was that 11.4 doesn't "feel" right - it doesn't seem to have > been tested on of FreeBSD since 2.x - some "feel" right, some "feel" dodgy (5.3, 6.x, > some 8.x IIRC). On amd64 it "feels" great, but I don't really trust it > on i386. Can't see any difference with early 11.x versions but I build it all by myself for many major releases.