From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#72278: 29.4; Proced reports incorrect results with 16KB page size Date: Fri, 26 Jul 2024 18:40:30 -0700 Organization: UCLA Computer Science Department Message-ID: References: <87v80un1rz.fsf@zohomail.eu> <86zfq65acb.fsf@gnu.org> <88d8077a-b01b-4428-8388-6944581bdfe7@cs.ucla.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18008"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Rahguzar , 72278@debbugs.gnu.org To: Stefan Kangas , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 27 03:41:23 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sXWR0-0004W2-Jy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Jul 2024 03:41:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sXWQX-0000wN-VG; Fri, 26 Jul 2024 21:40:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sXWQX-0000w8-1a for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 21:40:53 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sXWQW-0001Lw-PK for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 21:40:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sXWQf-0007S3-OX for bug-gnu-emacs@gnu.org; Fri, 26 Jul 2024 21:41:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Jul 2024 01:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72278 X-GNU-PR-Package: emacs Original-Received: via spool by 72278-submit@debbugs.gnu.org id=B72278.172204445028613 (code B ref 72278); Sat, 27 Jul 2024 01:41:01 +0000 Original-Received: (at 72278) by debbugs.gnu.org; 27 Jul 2024 01:40:50 +0000 Original-Received: from localhost ([127.0.0.1]:40301 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXWQT-0007RQ-JG for submit@debbugs.gnu.org; Fri, 26 Jul 2024 21:40:49 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]:41480) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sXWQQ-0007RC-MP for 72278@debbugs.gnu.org; Fri, 26 Jul 2024 21:40:48 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 828D63C00D407; Fri, 26 Jul 2024 18:40:31 -0700 (PDT) Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id gHCBQbR6d5dR; Fri, 26 Jul 2024 18:40:31 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 03A263C00D408; Fri, 26 Jul 2024 18:40:31 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 03A263C00D408 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1722044431; bh=C4oHwbk7IgtAyi9UiES7Vv8jCn2EKSzG+iTqOtfpbTY=; h=Message-ID:Date:MIME-Version:To:From; b=nadS9bC1B47FI9fxEI757iQG8C1qQG6S3ZmNLKDmDV0soK3FpAXNVDjy9ZVXpUqZz L/3z5Q5m36mG3w2ZnT5fPDQWbz7WUmTvQhDLbc8ybAFfS5EHG6ayOGqySiZ7Ph0SSU C+zZp/cHBrGcJL1pyY5WMfAncWwS6ERCmj2bU52kpDmNveKFrrfvNI08AwhMIZS1B0 GjY/7LXh0qPMUBfFoxtmlqxV+A/SwYjQAU30QZVUXRYNRzkCU3zoctBM/dlFF9CJph 9FerkDn7DDJ/DO1TXsyRvGBPDJsJqUZ60JTwc6o5nMBOjuk84AYDkC7KV2dx0N+SqL +pqr44aR8inRw== X-Virus-Scanned: amavis at mail.cs.ucla.edu Original-Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id 9KW8siiTXV4Q; Fri, 26 Jul 2024 18:40:30 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.154.17.165]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id D12353C00D407; Fri, 26 Jul 2024 18:40:30 -0700 (PDT) Content-Language: en-US In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:289398 Archived-At: On 2024-07-26 15:33, Stefan Kangas wrote: > Paul Eggert writes: > >> On 2024-07-25 02:55, Stefan Kangas wrote: >>> On Linux, page sizes can vary per process ("multiple page size >>> support"). Should we bother with that? >> I thought that support didn't change what getpagesize returns or what >> /proc/PID/stat reports, at least not in mainline Linux kernels. Am I >> missing something? > I don't know to be honest, which is why I'm asking. For recent Asahi Linux user-mode pages are always 16 KiB; see . I'd be surprised if any Linux distro lets getpagesize calls differ among processes running atop the same kernel. Although Linux does support huge pages via (for example) mmap with MAP_HUGETLB, I would expect this to not affect getpagesize or /proc/PID/stat. I haven't verified this by running code or by scouting through kernel source, though.