From nobody Mon Feb 2 07:39:58 2026 X-Original-To: bugs@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 4f4JRg6xWQz6PVT7 for ; Mon, 02 Feb 2026 07:39:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 "mxrelay.nyi.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4f4JRg4jGWz3SpY for ; Mon, 02 Feb 2026 07:39:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770017999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L5Skyx2T8LL4QLTNd3k90muvDXWe2lTG4CHFeyErPJw=; b=W4r/zK3rROpwwf1tJ+MkoTcK6fBt1Dq3qcvSTzCChcCMp7Z2uAxLWSeEVe9ORKGgtyOdcO 1/PIoCNESiE/EBJtaZib2ch4ABEcszj5plY6OHHN0QzqYPVs36BvGTq2gCqvB7L0EUyys+ CUeoLJ+LLNn4h+nMV5bPgBgMAAABkQHvbtlXypOGMKrhrMTPBiEulqDbDb26VqeuEkvpI2 XRjzR2v5fNciNaElzqdntW8bQzPaaFnJloAIm9FvytptXaCTCTRvnNGkl2KXM7nwL+5jp9 9R6qj+LbREuJT50H9MUD+y2mOefX5x8jbu1Tp4vD/+ptNujTtQbOxGAib19E+A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1770017999; a=rsa-sha256; cv=none; b=YLl4As7fn6ZdPX+aUQua5lBCxZBenD1WQoTM13VooYuG3KdrxDIr4pSO8ge8OSxYfjfoQ3 8ZufLI3JCOl24eC2StFQNIMW7XLF8+PtepppRimk4v/HaI4DuQhI5XCG7k3BB5o/QsuT6h TuB15N6jb5HVexa2i9zdyYgnm0onNG0BwWMoPiIl6Bm95JVbtEjKEk43nZD36Z/qRfK+Xs 3lwJlF6H9pWCDH1e2MV+2GqJQ6IMeCPlgtHXUMKQHm0t2nnSq21gvdPfwV1uwNhmnSqmNK TZjFleA7cHs+Un2xRaFbwyoBCEn9mJjT64OeurpC7LXlNr0iSaS+axv54g3ymg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1770017999; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=L5Skyx2T8LL4QLTNd3k90muvDXWe2lTG4CHFeyErPJw=; b=Ey+q+WSQfxgspKVadXRIkd/JEEC3uO5SW24sua2hM35ddvHYrJbjh6avYvKAeUJMzJLP5W /cFCpnrchTijozuB6XgyycbIQrvFQvTGuHz4HUgybvBLlMw7odYUoOSU7qB0yKSKFMNnO2 n5fC6t3hZUJhm15s5AxWMhV3SL/AT9l5f9Zye4/fsSIcoqFPek+00eiA5jNg5FvqGE6XDc EarMOtI+toxWg0NPTPiEAsGTlPSIR2DyS/P3aUinFsAXqTeU0YFHG2jHwR9INa5g7/RW5E aUKuxEYxj6OGqlRVINWzgeAOLiLHQX1nmHE8T7Icq+LSZslgjgGgcRIzntTGyg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4f4JRg3zxSz22Q for ; Mon, 02 Feb 2026 07:39:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 6127dxtO095004 for ; Mon, 2 Feb 2026 07:39:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 6127dx1t095003 for bugs@FreeBSD.org; Mon, 2 Feb 2026 07:39:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 292265] shm_create_largepage() does not appear to allocate large pages Date: Mon, 02 Feb 2026 07:39:58 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 15.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: shr@devkernel.io X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292265 --- Comment #12 from Stefan Roesch --- I can see the following call sequence: procstat -> calls proctstat_getvmmap and checks KVME_FLAG_SUPER -> calls kinfo_getvmmap -> sysctl kern.proc.vmmap The flag KVME_FLAG_SUPER is set in sys/kern/kern_proc.c in the function kern_proc_vmmap_out(). -> calls kern_proc_vmmap_resident() sets super flag based on the super parameter -> calls pmap_mincore() + does some other checks and checks if MINCORE_SUPER is set It doesn't set MINCORE_SUPER directly, but instead uses MINCORE_PSIND(i)=E2=80=BA (((i) << MINCORE_PSIND_SHIFT) & MI= NCORE_SUPER) There are two cases - We have a PDP and its valid and page size is 2M MINCORE_PSIND(2) =3D=3D> (2 << 5) & 0x60 1000000 1100000 ->1000000 - We have PD and its valid and pagesize is 2M MINCORE_PSIND(1) =3D=3D> (1 << 5) & 0x60 100000 1100000 0100000 If I use a dtrace script, I can see that kern_proc_vmmap_resident gets called. However, pmap_mincore() gets never called. There are 3 conditions: - m->psind - addr + pagesizes[1] <=3D entry->end - (addr & (pagesize[1] - 1)) =3D=3D 0 Needs further debugging to determine which of the conditions fails. --=20 You are receiving this mail because: You are the assignee for the bug.=