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: Wed, 24 Jul 2024 23:38:34 -0700 Organization: UCLA Computer Science Department Message-ID: <88d8077a-b01b-4428-8388-6944581bdfe7@cs.ucla.edu> References: <87v80un1rz.fsf@zohomail.eu> <86zfq65acb.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------W5uUXeSMfic91hZo3OtrdQUe" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32953"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Rahguzar , 72278-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 25 08:39:26 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 1sWs8L-0008Pd-4F for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 08:39:25 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWs7w-0000wz-AF; Thu, 25 Jul 2024 02:39:00 -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 1sWs7s-0000uf-0K for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 02:38:56 -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 1sWs7r-0004tt-Nm for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 02:38:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWs7y-0003qW-DU for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 02:39:02 -0400 Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2024 06:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 72278 X-GNU-PR-Package: emacs Mail-Followup-To: 72278@debbugs.gnu.org, eggert@cs.ucla.edu, rahguzar@zohomail.eu Original-Received: via spool by 72278-done@debbugs.gnu.org id=D72278.172188953014762 (code D ref 72278); Thu, 25 Jul 2024 06:39:02 +0000 Original-Received: (at 72278-done) by debbugs.gnu.org; 25 Jul 2024 06:38:50 +0000 Original-Received: from localhost ([127.0.0.1]:35200 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWs7m-0003q2-3N for submit@debbugs.gnu.org; Thu, 25 Jul 2024 02:38:50 -0400 Original-Received: from mail.cs.ucla.edu ([131.179.128.66]:33926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWs7k-0003pi-9x for 72278-done@debbugs.gnu.org; Thu, 25 Jul 2024 02:38:49 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id C84843C0140A0; Wed, 24 Jul 2024 23:38:35 -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 NLYdemiFGlZd; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) Original-Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 59C8A3C00E400; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 59C8A3C00E400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1721889515; bh=BxP93MN+km71+Tr1JxGPIKFFqz737AuUst3MOtcyZWc=; h=Message-ID:Date:MIME-Version:To:From; b=LD+7GNprvjA6ByhKrxq2jb5BjxxqqEgW18dHfxcXPZ0PRsmBkGxtsEPOdQuFl1Jr8 +cUDJr1YyxnByANDxiswWGmHIr+JrDYiBWVPrMyxOnSr/+KZio+iKLlpa0hRQH+itm BZKgO9Cif0P6MWJcglhO29egN2AKBooJD4cDyyGfgOTH6xt8nrhUkWDxZua6Kjk4Bn ZMCtnPIzmKLhajMidILlhHeM65HbvDbS+mIhl0VTCQDFRHGO0VCfwazES2eWnblbXi beOXUbWy/HP5LNRqE6p/F7g85uJvZwoqK5L0VKodTORNPQn6matdOk4QufhWwUgFp5 K9CCk/L/0SxWQ== 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 KY7LlXynpLaY; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) Original-Received: from [192.168.254.12] (unknown [47.154.17.165]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 3998C3C0140A0; Wed, 24 Jul 2024 23:38:35 -0700 (PDT) Content-Language: en-US In-Reply-To: <86zfq65acb.fsf@gnu.org> 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:289273 Archived-At: This is a multi-part message in MIME format. --------------W5uUXeSMfic91hZo3OtrdQUe Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024-07-24 22:06, Eli Zaretskii wrote: > Paul, it sounds like we need to multiply by getpagesize() instead of > by a fixed value of 4? Yes, that sounds right. I installed the attached patch into Emacs master on Savannah, and am boldly closing the bug as fixed. We can reopen it if I'm wrong. Thanks, Rahguzar, for reporting the bug. --------------W5uUXeSMfic91hZo3OtrdQUe Content-Type: text/x-patch; charset=UTF-8; name="0001-Fix-process-attributes-rss-and-pmem-on-GNU-Linux.patch" Content-Disposition: attachment; filename*0="0001-Fix-process-attributes-rss-and-pmem-on-GNU-Linux.patch" Content-Transfer-Encoding: base64 RnJvbSA0MmNkZmU3ZjYwZWY3YWUzYmNjYjViMWU0MzM0OWMzYTZiNTRhYzRhIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBXZWQsIDI0IEp1bCAyMDI0IDIzOjMyOjI0IC0wNzAwClN1YmplY3Q6IFtQQVRD SF0gRml4IHByb2Nlc3MtYXR0cmlidXRlcyByc3MgYW5kIHBtZW0gb24gR05VL0xpbnV4Ck1J TUUtVmVyc2lvbjogMS4wCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbjsgY2hhcnNldD1VVEYt OApDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiA4Yml0CgpQcm9ibGVtIHJlcG9ydGVkIGJ5 IFJhaGd1emFyIDxodHRwczovL2J1Z3MuZ251Lm9yZy83MjI3OD4uCiogc3JjL3N5c2RlcC5j IChzeXN0ZW1fcHJvY2Vzc19hdHRyaWJ1dGVzKToKW0dOVV9MSU5VWCB8fCBDWUdXSU4gfHwg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IGF0dHJzKTsKLQkgIHBtZW0gPSA0LjAgKiAxMDAgKiByc3MgLyBwcm9jZnNfZ2V0X3Rv dGFsX21lbW9yeSAoKTsKKworCSAgLyogUlNTIGluIEtpQi4gICovCisJICB1aW50bWF4X3Qg cnNzayA9IHJzczsKKwkgIHJzc2sgKj0gZ2V0cGFnZXNpemUgKCkgPj4gMTA7CisKKwkgIGF0 dHJzID0gRmNvbnMgKEZjb25zIChRcnNzLCBJTlRfVE9fSU5URUdFUiAocnNzaykpLCBhdHRy cyk7CisJICBwbWVtID0gMTAwLjAgKiByc3NrIC8gcHJvY2ZzX2dldF90b3RhbF9tZW1vcnkg KCk7CiAJICBpZiAocG1lbSA+IDEwMCkKIAkgICAgcG1lbSA9IDEwMDsKIAkgIGF0dHJzID0g RmNvbnMgKEZjb25zIChRcG1lbSwgbWFrZV9mbG9hdCAocG1lbSkpLCBhdHRycyk7Ci0tIAoy LjQzLjAKCg== --------------W5uUXeSMfic91hZo3OtrdQUe--