From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#72278: 29.4; Proced reports incorrect results with 16KB page size Date: Thu, 25 Jul 2024 09:12:37 +0000 Message-ID: References: <87v80un1rz.fsf@zohomail.eu> <87msm6mskq.fsf@zohomail.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6739"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 72278@debbugs.gnu.org To: Rahguzar Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 25 11:14:16 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 1sWuYC-0001dD-FT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 11:14:16 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWuXt-0001Ch-77; Thu, 25 Jul 2024 05:13:57 -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 1sWuXs-0001CQ-79 for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 05:13: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 1sWuXr-0006jy-ST for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 05:13:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWuXy-0002MO-HT for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 05:14:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2024 09:14: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.17218988289027 (code B ref 72278); Thu, 25 Jul 2024 09:14:02 +0000 Original-Received: (at 72278) by debbugs.gnu.org; 25 Jul 2024 09:13:48 +0000 Original-Received: from localhost ([127.0.0.1]:35526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWuXk-0002LW-EH for submit@debbugs.gnu.org; Thu, 25 Jul 2024 05:13:48 -0400 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:44281) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWuXi-0002LO-B1 for 72278@debbugs.gnu.org; Thu, 25 Jul 2024 05:13:47 -0400 Original-Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-5a3458bf989so826841a12.0 for <72278@debbugs.gnu.org>; Thu, 25 Jul 2024 02:13:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721898758; x=1722503558; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=INZaJHLv+mmqXtGnoEDaFFk6tBRJMI+X9DDRHlt8i+I=; b=O/srd0rBFvN0Ez2A3iVciJa/oOcfRQl6Kxg5e8gSaTD6x4tAiSKkzxYIjxSMwXw+Ob 4fy8aQFc8/ir4y5PBbs27ySSfTsThL2sBKS6NpkJY1qMauGYdrqwD5F3vHEmE/Cvdav6 gS/zmaXCKh6XuxoNgbSrBJ30l3+0J/gmTyx+e10bvkPg9hvwdoNLIyww2JhTktu1hB/8 NGv29rSrpAKh92zpTYlqXOJMFWI7FBmjOyPZSt3fWUB50qK3XoaVsUcEoYOW8LRznAxr OxjzCeQBcuBl9xk0XI5dxqQpCNNAZt8FEFP26cJwNZ5W9lVfZfxJqHLlFHEnKdFj00hp W8LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721898758; x=1722503558; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=INZaJHLv+mmqXtGnoEDaFFk6tBRJMI+X9DDRHlt8i+I=; b=eUJkGeGyG5VKp9AANHzzo3T7xSR7dCVBZZju9X5FRi7CAUuDkuvuRCyPUXEWD7RwVo K/Tr1tTR8iolyYUtaEHQW8YSzC3T8z3t+rpHQjV7EIT3OaCcazWZkfP7aUs6rRjvfnoh 9qcwBp+XSli6CkHTQFwbitQjJu1rO4wSD74tVkTOz8Gpj3rvtDnP1OOkC4sOZUp3TBMs BPMcrgw9XL0AgfmK3rAgwtpFqXhjhN/Cf+rT/GolAVxczm8kDXLI4EEZy4vsYQTe7ZaM 7B+cMxRxM6XeCizBpDr65FeiVQROtOVhE9NsyWk9cwAjdKKsk+Gyjt9JQbRk2oE0Xafj 6YzQ== X-Gm-Message-State: AOJu0Yy91qVyRtdb2a7maVitoNyc04BjoFrV3YBcaY4JtEQlB3gQdWj0 d174/psQZnrKMEZMpK4yHEYdp8+wJQ++MyGpPmXiN9oMdM9bR0S4AbmlkK6zTE8QfJwapCfDTR1 BRruN1XWUgC4U+YF0T/BOuVYtyTk= X-Google-Smtp-Source: AGHT+IH+9r7aVm64c+1FVQoTXazh1iS8wZyBx1zBJ7l9XaqdXSB3H9MZ6/g84IGcLi6XtRt6K4Hcwt84j7KPq/Uk1wg= X-Received: by 2002:a50:cd93:0:b0:5a1:a469:4d9b with SMTP id 4fb4d7f45d1cf-5ac2a7b70c0mr1301236a12.13.1721898757744; Thu, 25 Jul 2024 02:12:37 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Thu, 25 Jul 2024 09:12:37 +0000 In-Reply-To: <87msm6mskq.fsf@zohomail.eu> 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:289294 Archived-At: Rahguzar writes: > From discussion with Eli at the help-gnu-emacs thread I think there is > some hard coded assumption about 4KB page size in sysdep.c. E.g. here at > line 3741 > > pmem = 4.0 * 100 * rss / procfs_get_total_memory (); Makes sense to me. AFAIK, the page size can be different for different processes, so I guess we'd need to find the page size per process in something like /proc//status? Is that the right way to do it? I'm not on a GNU/Linux machine right now so I can't check.