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: Thu, 25 Jul 2024 07:47:56 -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="10122"; 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 Thu Jul 25 16:49:00 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 1sWzm7-0002OR-BN for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 16:48:59 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWzm4-0007Wz-OC; Thu, 25 Jul 2024 10:48:56 -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 1sWzm3-0007WZ-5I for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 10:48:55 -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 1sWzm2-0008Nt-Td for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 10:48:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWzmA-00069o-71 for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2024 14:49:02 +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.172191889423577 (code B ref 72278); Thu, 25 Jul 2024 14:49:02 +0000 Original-Received: (at 72278) by debbugs.gnu.org; 25 Jul 2024 14:48:14 +0000 Original-Received: from localhost ([127.0.0.1]:37562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWzlN-00068A-Pe for submit@debbugs.gnu.org; Thu, 25 Jul 2024 10:48:14 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]:51942) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWzlL-00067t-4Q for 72278@debbugs.gnu.org; Thu, 25 Jul 2024 10:48:12 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id B3A9D3C0140A0; Thu, 25 Jul 2024 07:47:57 -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 rqVciX-QD7aB; Thu, 25 Jul 2024 07:47:57 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 712573C00E402; Thu, 25 Jul 2024 07:47:57 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 712573C00E402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1721918877; bh=hJWqwrl1nYxIqZhHeyaOfSPNkYnPseLxlVHxdXidhlI=; h=Message-ID:Date:MIME-Version:To:From; b=Ctoyg0br79yU4LcOdCFjN8HCsxTlaAkOidC0XkFbHa/FFANLPtbjxji82Jc01lVTL uP+xDhvJRL+XRB7ZVakJoICaRMIKfn3hh04yZFRe7jhs/tJvCq6F1CKz20Dsr6UZxq WWDP5zvs7kEc+yM0773Dyql/gtZyGg9wMFvfJzJI8939g0QLtiLpeH+nIhPYxsNhOm nhFm6h1cUslQoGwoVPph3SFDpRFlBkQabUhx0yr7c8EKlhLGlIOeNieZUxJCXxLaD7 E5SL/rCsGVgW4WOWSgWlD/Wmr3OMpjGKhA6GES8P0aYFlQT1AvSy9G4QkjYW7Xik7n sp2JeH5DQ0RkA== 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 eySs93PQ80Vq; Thu, 25 Jul 2024 07:47:57 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.154.17.165]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 4C07A3C0140A0; Thu, 25 Jul 2024 07:47:57 -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:289311 Archived-At: 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 also note that the man page for getpagesize says this: > > This call first appeared in 4.2BSD. SVr4, 4.4BSD, SUSv2. In > SUSv2 the getpagesize() call was labeled LEGACY, and it was > removed in POSIX.1-2001. Emacs uses getpagesize in other places. I suppose we should change them all to sysconf (_SC_PAGESIZE) on the off chance that there's a platform somewhere where page sizes exceed 1 GiB. I don't know of any such platform now, probably because so much software still uses getpagesize....