From nobody Fri Aug 4 02:15:14 2023 X-Original-To: dev-commits-src-main@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 4RH8Sl6Txxz4Tjpg for ; Fri, 4 Aug 2023 02:15:35 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic304-25.consmr.mail.gq1.yahoo.com (sonic304-25.consmr.mail.gq1.yahoo.com [98.137.68.206]) (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 4RH8Sj58XCz4fTf for ; Fri, 4 Aug 2023 02:15:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=mOAkEJfx; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.206 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=1691115331; bh=HW4zSOELXNY7eFIvgMfPZmlp3y/PeMDLuHAcTNS0HwU=; h=From:Subject:Date:To:References:From:Subject:Reply-To; b=mOAkEJfxlO4kF6GG8kmGS2cchzcyoSjzg+mNwkNX7S6HPatDWFTfepy54vtLf40/kXNzCG8ra8An3XxXvHcX4xC8YWc1SlSBCtWAeufSSj5HEaOcuWA1JdCvltVavuu4rFJh8x2FhwlYs7xUDE+MZRV7QdFVoUXy4tvJZ0eB6ly4tBu5OLHfZArIj9dArXlK1BsFYNb0PdcXOLLetYunwUh0BB23p+kOK/eQLUScNQtjPf7ZfQHPGebSiZYSHMrMDfPuKvS/n8jvU0gjiikR4THgNmkKCWtxwWqrnSk70WBsS/GN61Eoj2FbEujhgiyjDi8nykq6sMwJLOgGNEK/6Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1691115331; bh=eFkEVQL6wnNIox9Ah3drjOtHqRhsmuVjdkxrod3cdlO=; h=X-Sonic-MF:From:Subject:Date:To:From:Subject; b=Gcu4/WHw+ad+9ay1N2QEipFgcGLx9IZ2rf/PvDikqnPF3ur8sxB/d5ovZvDqTzScHYBGw4hBimtp3sKcNlOH4QW9OseaUl5urAsS0Uzk7Vg50cocSk1WXHkOkAB5+OJtfzELV5YBXMa6V6PeCVK9oiKYCCmS6/SILXnFwSQ/ZRoOkV9Y6Jyhw4VXP5e77cijhZF2oCYWz3yLG+F7lreOPFT5In/1FzhVak4GUfwe6S+EmFAXaaZB54LX0j8GNbmD/yvPSW85iD8XP7AzXvUf3gVEJSQJM27o8lMZ1cKTJ001rkbzfTYLWB0uwrUChgsX4R2HGXfupvS2mN8rKGPEJg== X-YMail-OSG: MPEvnXoVM1k0jn8vr84tQtOb.8gUD0c4xfN96EepGZqbH7bahMOasVuCJFzn8o0 mk_3naT60teIlkc6Ao3BMSr130Dv604AegYtUxY8DY5UkZsSfQEIyDY_iAq4o8zi1TNcfq4O0UJM QJ0uc.CKhRxt6.DyXVV2rq5b_M6lhQy.OjXe2dyAN9I_B50pHs7j13VBNPmiXgirNgNxSQLL.XgS SbKAvQDZ51XWUFortB.zRsJ4YQfYxnMZ9EKaFqsd0lknUkODODsp_Dexv8ax9jt5BQylSujX1qTo jNVlxbrVodVpZwludVd3M_ngrETPEaRM0zTUAjcoaTWHGS284Me2T9QqUX7TVNrlC2m5rjR3yMW5 c1RxDunL6cXdRP9oAMLoM.dktBgJfVvwQqOqaYgRSe2r0tN3tOY0oYLv3eakXFtquC5XpjOY1sX2 lMOJepL82kZQ3ICWBcOQ46OkuVuCXygxa2KuOnrDIYGV9wNzHuGtr3i0mI5bN8QB_Pc3UwVbtZXU puTNThcxgo5yM3nn4ZeCD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n71oqJBiXIdpr35.03KD_4BaGZNqqEIqy9XXi6sbEAH7 8oo7M6cFRgzrxSiVUraWVO0rQJQXSv8b8maMa0cyuKSG8TgCZw1NURTOql4zc6Gpogj73L_406ms D4K7TJ7aiI45QZnqEoCUfz.U2ALHCUCdxsFjaNT0Ju8trv3hg3.unhdfem7QmXp8eYz8pwBKSEXE ws.dH0i3di8sqSJ92wSH2I76VYTaLAmsjea7Q40Jtw1y.Mf2ntOzDVjqZ.P9C0Lk0AdOUjvhoW2A 893Rj.1Z.3yngyL8lS7beGsQ4iIXxEi6C68eLc6nTRWfA5muG2mmybwNYhN.uPvAH0y.yGuh0RqG Ievbtcs8fjOSwKEwQNssEwUuQgpSERcDSWcvFM0WDJzGtBSF8UeXv9zTiBx7tsOISvI7Swj.ueWl a31HsqALuSgU6dsHozkJgUYMcZ8jojW331MHnOyLN58xkiYumRTrlViMZmU1Kdoj9nJ4q1LEiVFR EN9gTKX_GZQkoQ_42AST_Uf.Q6hwC7bLJ2YAUqcVsnm_xcu3DNwmpYI1abflweD0dkWWvG.Tqdha NS_JzD4ymS3NMYniCNDIMkjzULue2lsv7juBv.iTksfIgPaJ703PKCuk0j4vpaVUzoDvXL774nuv gQ.ASTIPz2rYu_k18wo1.rby2klSY5WJJbrhM7or8mFcbSksKYXeti23ZIuHNLR1u.nEWa.S.9WS Z X-Sonic-MF: X-Sonic-ID: d163e112-a8d3-40ca-9480-f29d8d775161 Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Fri, 4 Aug 2023 02:15:31 +0000 Received: by hermes--production-bf1-7c4db57b6-49kxr (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ff4a28eaf56c847c21b842917df06e3c; Fri, 04 Aug 2023 02:15:27 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: git: 5a7e48dddfb5 - main - tests: Add MAP_32BIT flag test Message-Id: <263CA271-1603-41FE-BAF9-E32AC5818945@yahoo.com> Date: Thu, 3 Aug 2023 19:15:14 -0700 To: Konstantin Belousov , dev-commits-src-main@freebsd.org X-Mailer: Apple Mail (2.3731.700.6) References: <263CA271-1603-41FE-BAF9-E32AC5818945.ref@yahoo.com> X-Spamd-Result: default: False [-0.99 / 15.00]; NEURAL_HAM_SHORT(-0.99)[-0.990]; SUBJECT_ENDS_SPACES(0.50)[]; 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]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[dev-commits-src-main@freebsd.org]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.206:from]; BLOCKLISTDE_FAIL(0.00)[98.137.68.206:server fail]; MID_RHS_MATCH_FROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.206:from]; DKIM_TRACE(0.00)[yahoo.com:+]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com,freebsd.org]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Spamd-Bar: / X-Rspamd-Queue-Id: 4RH8Sj58XCz4fTf Konstantin Belousov wrote on Date: Thu, 03 Aug 2023 20:58:47 UTC : > On Thu, Aug 03, 2023 at 02:50:57PM +0300, Dmitry Chagin wrote: > > On Wed, Aug 02, 2023 at 12:57:36AM +0300, Konstantin Belousov wrote: > > > On Tue, Aug 01, 2023 at 09:29:32PM +0100, Jessica Clarke wrote: > > > > On 1 Aug 2023, at 21:24, Dmitry Chagin = wrote: > > > > >=20 > > > > > The branch main has been updated by dchagin: > > > > >=20 > > > > > URL: = https://cgit.FreeBSD.org/src/commit/?id=3D5a7e48dddfb5a668ded4742b79e6f6f8= 8b647e6a > > > > >=20 > > > > > commit 5a7e48dddfb5a668ded4742b79e6f6f88b647e6a > > > > > Author: Dmitry Chagin > > > > > AuthorDate: 2023-08-01 20:23:15 +0000 > > > > > Commit: Dmitry Chagin > > > > > CommitDate: 2023-08-01 20:23:15 +0000 > > > > >=20 > > > > > tests: Add MAP_32BIT flag test > > > > >=20 > > > > > Reviewed by: kib, markj > > > > > Differential Revision: https://reviews.freebsd.org/D41236 > > > > > MFC after: 1 month > > > > > --- > > > > > tests/sys/vm/Makefile | 8 ++++++ > > > > > tests/sys/vm/mmap_map_32bit_helper.c | 51 = ++++++++++++++++++++++++++++++++++++ > > > > > tests/sys/vm/mmap_map_32bit_test.sh | 37 = ++++++++++++++++++++++++++ > > > > > 3 files changed, 96 insertions(+) > > > > >=20 > > > > > diff --git a/tests/sys/vm/Makefile b/tests/sys/vm/Makefile > > > > > index 8ef8a45e5f39..9aac49bc5320 100644 > > > > > --- a/tests/sys/vm/Makefile > > > > > +++ b/tests/sys/vm/Makefile > > > > > @@ -9,4 +9,12 @@ ATF_TESTS_C+=3D mlock_test \ > > > > > page_fault_signal \ > > > > > shared_shadow_inval_test > > > > >=20 > > > > > +.if ${MACHINE_ARCH} !=3D "i386" && ${MACHINE} !=3D "arm" && \ > > > > > + (${MACHINE} !=3D "powerpc" || ${MACHINE_ARCH} !=3D = "powerpc") > > > > > + # MAP_32BIT is only available on 64-bit platforms > > > >=20 > > > > So use ${MACHINE_ABI:Mlong64} after including src.opts.mk? > > >=20 > > > May be we should enable the MAP_32BIT flag on 32bit arches, = instead? > > > It requests allocation below 2G, which is half of VA on i386, or = 2/3 > > > on arm. Interestingly, it should work already from compat32. > >=20 > > It's disturbing that no none has requested this, I can do that > Please do. The largest part of the work is to recheck the man page and = tests. If I guess correctly, the above implies restricting the process size on native armv7 to a strict 2 GiBytes or so. The OrangePi+2Ed (cortex-a7) that I use has a somewhat larger effective process address space (RAM+SWAP usable by one process) than the armv7 chroot/jail use on any of the = cortex-a72/cortex-a53/cortex-x1c/cortex-a78c aarch64 systems that I've access to. I have actually built something on the OrangePi+2Ed that I could not build on the aarch64 systems in an = armv7 poudriere-devel jail --because of the process size limitation on aarch64 systems was smaller. (Not that I remember the details. I do not do such builds regularly. But I might have notes about it someplace.) So a ~2 GiByte process size limitation would make armv7 = chroot/jail/lib32=20 on aarch64 vs. native armv7 more uniform --but some native armv7's could be somewhat less capable. Note: It is not obvious to me that keeping armv7 going until FreeBSD = 15's release avoids being too restrictive, even as tier 2. Even the somewhat larger address space for native could easily end up being too much of a constraint, for example, much like the process size build problems that happen now for armv7 on aarch64 for port builds in poudriere(-devel) jails. For reference: CPU: ARM Cortex-A7 r0p5 (ECO: 0x00000000) CPU Features:=20 Multiprocessing, Thumb2, Security, Virtualization, Generic Timer, = VMSAv7, PXN, LPAE, Coherent Walk Optional instructions:=20 SDIV/UDIV, UMULL, SMULL, SIMD(ext) LoUU:2 LoC:3 LoUIS:2=20 Cache level 1: 32KB/64B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 2-way instruction cache Read-Alloc Cache level 2: 512KB/64B 8-way unified cache WB Read-Alloc Write-Alloc real memory =3D 2113257472 (2015 MB) avail memory =3D 2054692864 (1959 MB) =3D=3D=3D Mark Millard marklmi at yahoo.com