From nobody Sat Jun 21 20:04:52 2025 X-Original-To: freebsd-current@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 4bPlgj5qBqz5ywwf for ; Sat, 21 Jun 2025 20:05:05 +0000 (UTC) (envelope-from olce@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4bPlgj5CcYz3gWr; Sat, 21 Jun 2025 20:05:05 +0000 (UTC) (envelope-from olce@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750536305; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1vw3Movd/lwFhwrLfLVM3xUu7O/NDYFeNGhgIY7/CC4=; b=B1QgC7/W3veQdov8UGnWMtWpxgMVnwb6j5JN9+30dlqBDcs8Zdb05v7nKhpDUvPpPshxQF ff5Xsx6g/jPOW5UfY9G8xi9RKQ/E16RTCq570WIQM5aTlnNAi7jx9kUeaV+Qbghh1+QUjG 0DD0h0fZdgt/AkXrP9SDhHztlSd8nLTcCMbIPnkeYR3Bp0bymU2XEsRIqEJZ4z4omTXI/L GCVHjp3hSIDy9MvHv+803RCPftXhwUH6Dlpi/DuClpAaHVD8PHctDJmpILTuLed3Xe0w0/ 1ZEGynFdDCLK7q1jlNkJIBzdpmGG4gPAGTr+FZbnpl0iX0SG5Cm+hzL15drx/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1750536305; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=1vw3Movd/lwFhwrLfLVM3xUu7O/NDYFeNGhgIY7/CC4=; b=jeh77Cy3vQI5o1x/ELY5BMe4CEYdVM5Ki1rNQpmVckFnNn5e/BKp0Ai3zXnmpADUmxz3P4 rB7MhAu2mLsUauV0ZKHn3CwIZSfnt47Rs9QCRdYl71kmBiomHEG1Q2ndy/mq4PumCxOLUE RXDBqhcSRu0sGjtR8nAv6igp7QSmHiF8MgF/XNzmw9oS6aOpbDQjvIqJDGF3uHeU4bFJtS Z5T0mUv+aAFs8VljIveJ55xD57aVatdhF6uMLeY2q6gb74iWBCQGn45305ChqKey36giVI at8Oe7FQzU16o1Hkt265DzIO7tbf2diUxGugubKOUnHF9GDna7ro0NS8IZfAww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1750536305; a=rsa-sha256; cv=none; b=fjCy9fE2ReGK1qiLwPMPBGRBMCdq4kMML/dI57HnzWFChCGEHNG4cAg+pw3gnofAPRxIKR bCWE5S2FZVWC7r43lclKGVpRclUkrh59GL2SO+VsJai3QJytFsHa6t+IfLXxkzDHX+i90w Rud85YsSOjjHuk+Ibc7bGIN41wb90BOuNIXLd79OMm0EeHxI5MA3IVOLWOfx5auZdCmHz8 vFgtAVzxm6y/bcpFuDpouK1QWOXV8oCEkbMWssjiJ31gKoc4HlN2DXg1tv499utqbomDkY a+LljeN2pAuvX6hq6cqrJf+lvRp+reFBR/zIBHsDjnNYqbpYJuRCLDk4ZgiewA== Received: from francois.localnet (aclermont-ferrand-653-1-222-123.w90-14.abo.wanadoo.fr [90.14.66.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: olce/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4bPlgj21wLz26L; Sat, 21 Jun 2025 20:05:05 +0000 (UTC) (envelope-from olce@freebsd.org) From: Olivier Certner To: "Bjoern A. Zeeb" Cc: freebsd-current@freebsd.org Subject: Re: regression: memory issues on main/arm64 over sched/runq changes Date: Sat, 21 Jun 2025 16:04:52 -0400 Message-ID: <2563206.rlboQYEQCB@francois> Organization: FreeBSD In-Reply-To: <43005447-2rq0-6nn2-pnr5-4939s112npr4@yvfgf.mnoonqbm.arg> References: <43005447-2rq0-6nn2-pnr5-4939s112npr4@yvfgf.mnoonqbm.arg> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5750140.2f8PWJG3B8"; micalg="pgp-sha384"; protocol="application/pgp-signature" --nextPart5750140.2f8PWJG3B8 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8"; protected-headers="v1" From: Olivier Certner To: "Bjoern A. Zeeb" Cc: freebsd-current@freebsd.org Date: Sat, 21 Jun 2025 16:04:52 -0400 Message-ID: <2563206.rlboQYEQCB@francois> Organization: FreeBSD In-Reply-To: <43005447-2rq0-6nn2-pnr5-4939s112npr4@yvfgf.mnoonqbm.arg> References: <43005447-2rq0-6nn2-pnr5-4939s112npr4@yvfgf.mnoonqbm.arg> MIME-Version: 1.0 Hi Bjoern, Given the amount of analysis and test that went into the runq/scheduler commits, a priori it is extremely unlikely there's any problem with them (assuming you're using ULE). Additionally, the scheduler never does memory allocations except at initialization. > (testing/fiddling reports) Assuming the commits you listed are actually the cause of the change in behavior, what you're likely observing is a race condition exposed by slightly changed execution orderings/thread selection for timesharing threads. Since you said you observe no deletions, this may be a race due to the list being observed while being added to. Actually, skimming at the code of if_addgroup() and if_getgroup(), I suspect some barriers are missing. Out of caution, are you absolutely sure you've so far bisected without any local change? > I do not know if it's feasible or doable to bi-sect those chanes further? All these commits are independent, and you can bisect them as usual. Actually, it would be great if you can do so, as apparently the problem you're having is not completely deterministic, involves interface groups which I'm not familiar with, and personally I won't be able to spend a significant amount of time on it until Monday. If you do so, my bet is the outcome will be baecdea10eb5 or af8de65ef23e (more likely), which would be one more hint at what I've just said above. Even better, if something like fdf31d274769 comes out, that would be an actual proof of a race. Most other changes should never come out, and if they do may invalidate what I've said above. So, if you have the occasion, I would grateful if you can bisect and report. Thanks and regards. -- Olivier Certner --nextPart5750140.2f8PWJG3B8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCQAdFiEEmNCxHjkosai0LYIujKEwQJceJicFAmhXEGQACgkQjKEwQJce JifVVRAAkOwMcx3omahxQxhY4YLtnLpD1dtJ6vau4wJbK+ADz5D2vVimmhC68Gxs TQFH2DcV3sFfQGqak3Dvt7xmccfS2ay8mjIOIxgDExebdMzoITtSW6/Vjp24l5IO sXaPDCiaEWtm6LQbNAi24EEYPelFi90+G9o6G35ETbmRm8ZaKnq+LZPnPvwSCZFI 3i9vRyPAnmWTAywasZzuX+HqTrWHBMTrAAfxzpVAav6VT+m/Gn/Ngng2o+6ehqxi O6jmenumARRPsTyk31t1Zt/O5HcXQQ7Xdt9n92cybDSbJxuMbnqhDqF1TpgVPr1y NV70fi5ftsZmsh8i/VxcBr4wjNWruX1N41ExuyY+KJoUakiWq9SNZ1BRGjtHeVrl pTdARNaGT9fkEyfEP8TkJaJkBQGQw1Jr85GfDFgasNnNQylgvrFPG9zw8isN4Jkj 6lbkoY0aqafn/obzU+9v5o1eVVFRzIE+H18Uv3ZW/aMTAMmNolqbcgnC5oOgQb+5 AoAGFpQcOxJK2nXdtFZzQUm/y+ctVjDuGjdQ0HZ5AV72lvc1bBxLYaufB3uNe5uy xA7BxPpluNoYpNxv0n/9tHAbgZeeWhOvNAltQtnJwnkg9yoaMq6jhpD4e93xpVaJ wq7fIGbATQl4iBXK+KdXAlPSr3iN0FDpLjWouSH5QqGcvRpsXVk= =cl5O -----END PGP SIGNATURE----- --nextPart5750140.2f8PWJG3B8--