From owner-svn-src-head@freebsd.org Thu Jun 11 21:42:22 2020 Return-Path: Delivered-To: svn-src-head@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 886B33425B8; Thu, 11 Jun 2020 21:42:22 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) (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 49jclK2TzTz4RNj; Thu, 11 Jun 2020 21:42:21 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: by mail-io1-xd29.google.com with SMTP id d5so8068128ios.9; Thu, 11 Jun 2020 14:42:20 -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 :mime-version:content-transfer-encoding; bh=F8tO4WMoZCGEG/J2fntZPL6ciLwZVHM1ZtZyBw/IUoI=; b=D9/iB+EvZm38xYksenfGSSKo+ldU8mnZfRT6w+jPa7x4AS+b1gqPByrn6viNtSkgTY Yi+91CmPvNUpsn4C5/7UhIUvR152JneaiUe8Ck1wY/q2zzwS1q8FmkAtVKFGq4W9kd4V NZ0CGLmfBxY4kCQN/02hi7NT2nKfAnIot3uN6gIPB/KxVYqE2morCC6AEkez63ZkvrOA axL6OvFX+Vd6qhdCidGLdsYCJMYVBrzJcsf4guPKFQ+3sNZ/72xBnOg3UejOIU3HpfBe 6SY10QCyLyoXcXvOtygRHuCztIafY52DKqHL8mfv/0FXjpUUEP3VZQW3DhRwDxFThzr6 fflg== 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:mime-version:content-transfer-encoding; bh=F8tO4WMoZCGEG/J2fntZPL6ciLwZVHM1ZtZyBw/IUoI=; b=VJGGv7Ix+azrEwYrSBY5TSQr9cFbSaH06OJepPhUNcNaKqIUT217iwGaKZRpltMLmA 2oymZiItOvlfvwTjxewisb3OMpNxfxs+nwe1ecHUv47gU1Txw97qqZAv9GHC4gnpes7S U8pQt3cjOrn+kSWqQoJo6Yt1vshN+i2xiJZKMSNDriBUWLXT+O+Ao8OdtgSv8dOcL3za Y71Gsj8VCe5ig579M9ortFyqPkVfJQ4BgMuAxRLSk5mOGESJL4Nb6WrWaLojzjHEygbl dFamxJYfGp6ppjeaVWWx9m+njlpkEsecIEMf2GYHEfrrXnmUBUHa+C71ArUCHRXKUqXp UByg== X-Gm-Message-State: AOAM533uz8lsomFdWOhZDeRMT3PT0cdw3COZijLKiDCD3ZVCMMHjk4OS 6PgkGwRViLthlgniW+EDTBk= X-Google-Smtp-Source: ABdhPJyLJpawxmcomszvME2wth+iKAOiXtxZXHM5Te35vdZ3Itj+F/v/xFjrHARPgE4okQ5M2dqUjQ== X-Received: by 2002:a02:a518:: with SMTP id e24mr5066004jam.72.1591911740213; Thu, 11 Jun 2020 14:42:20 -0700 (PDT) Received: from ralga.knownspace (173-19-125-130.client.mchsi.com. [173.19.125.130]) by smtp.gmail.com with ESMTPSA id z12sm2061069iol.15.2020.06.11.14.42.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jun 2020 14:42:20 -0700 (PDT) Date: Thu, 11 Jun 2020 16:42:16 -0500 From: Justin Hibbits To: Mark Millard Cc: "vangyzen@freebsd.org" , svn-src-head@freebsd.org, FreeBSD Current , FreeBSD Hackers , FreeBSD PowerPC ML , Brandon Bergren Subject: Re: svn commit: r360233 - in head: contrib/jemalloc . . . : This partially breaks a 2-socket 32-bit powerpc (old PowerMac G4) based on head -r360311 Message-ID: <20200611164216.47f82775@ralga.knownspace> In-Reply-To: <5542B85D-1C3A-41D8-98CE-3C02E990C3EB@yahoo.com> References: <8479DD58-44F6-446A-9CA5-D01F0F7C1B38@yahoo.com> <17ACDA02-D7EF-4F26-874A-BB3E935CD072@yahoo.com> <695E6836-F860-4557-B7DE-CC1EDB347F18@yahoo.com> <121B9B09-141B-4DC3-918B-1E7CFB99E779@yahoo.com> <8AAB0462-3FA8-490C-8D8D-7C15B1C9E2DE@yahoo.com> <18E62746-80DB-4195-977D-4FF32D0129EE@yahoo.com> <9562EEE4-62EF-4164-91C0-948CC0432984@yahoo.com> <9B68839B-AEC8-43EE-B3B6-B696A4A57DAE@yahoo.com> <359C9C7D-4106-42B5-AAB5-08EF995B8100@yahoo.com> <20200513105632.06db9e21@titan.knownspace> <20200611155545.55526f7c@ralga.knownspace> <5542B85D-1C3A-41D8-98CE-3C02E990C3EB@yahoo.com> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; powerpc64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49jclK2TzTz4RNj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=D9/iB+Ev; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of chmeeedalf@gmail.com designates 2607:f8b0:4864:20::d29 as permitted sender) smtp.mailfrom=chmeeedalf@gmail.com X-Spamd-Result: default: False [-3.48 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCPT_COUNT_SEVEN(0.00)[7]; NEURAL_HAM_SHORT(-0.56)[-0.562]; FREEMAIL_TO(0.00)[yahoo.com]; RECEIVED_SPAMHAUS_PBL(0.00)[173.19.125.130:received]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.91)[-0.914]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.004]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d29:from]; RCVD_TLS_ALL(0.00)[] X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Jun 2020 21:42:23 -0000 On Thu, 11 Jun 2020 14:36:37 -0700 Mark Millard wrote: > On 2020-Jun-11, at 13:55, Justin Hibbits > wrote: > > > On Wed, 10 Jun 2020 18:56:57 -0700 > > Mark Millard wrote: > > > >> On 2020-May-13, at 08:56, Justin Hibbits > >> wrote: > >>> Hi Mark, > >> > >> Hello Justin. > > > > Hi Mark, > > Hello again, Justin. > > >> > >> I've been avoiding the old PowerMacs and leaving > >> them at head -r360311 , pending an update that > >> would avoid the kernel zeroing pages that it > >> should not zero. But I've seen that you were busy > >> with more modern contexts this last about a month. > >> > >> And, clearly, my own context has left pending > >> (for much longer) other more involved activities > >> (compared to just periodically updating to > >> more recent FreeBSD vintages). > >> > >> . . . > >> > > > > Sorry for the delay, I got sidetracked with a bunch of other > > development. > > > I did install a newer FreeBSD on my dual G4 and couldn't > > see the problem. > > How did you test? > > In my context it was far easier to see the problem > with builds that did not use MALLOC_PRODUCTION. In > other words: jemalloc having its asserts tested. > > The easiest way I found to get the asserts to fail > was to do (multiple processes (-m) and totaling to > more than enough to force paging/swapping): > > stress -m 2 --vm-bytes 1700M & > > (Possibly setting up some shells first > to potentially later exit.) > > Normally stress itself would hit jemalloc > asserts. Apparently the asserts did not > stop the code and it ran until a failure > occurred (via dtv=0x0). I never had to > manually stop the stress processes. > > If no failures during, then exit shells > that likely were swapped out or partially > paged out during the stress run. They > hit jemalloc asserts during their cleanup > activity in my testing. My testing was only with a WITNESS kernel, and wasn't an exhaustive test, so obviously is not a straight apples-to-apples comparison. Unfortunately, my backlog of other work got in the way of doing a meaningful extensive test. > > > > That said, the attached patch effectively copies > > what's done in OEA6464 into OEA pmap. Can you test it? > > I'll try it once I get a chance, probably later > today. > > I gather from what I see that moea64_protect did not > need the changes that you originally thought might > be required? I only see moea_protect changes in the > patch. The wording was a little ambiguous. I had meant to convey that I was looking at mmu_oea64.c for inspiration for what's missing in mmu_oea.c. > > === > Mark Millard > marklmi at yahoo.com > ( dsl-only.net went > away in early 2018-Mar) > - Justin