delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; q=dns; s= | |
default; b=fTdew6UVgVG3CxtZUx8CfEcDOjjfs84gai3twNjEaGshDZF9f1bx+ | |
hMIfdDygHSKYnKjuTYN8dXanQs0d7zaPXwSR2h/XHs5/uq2cc+TLxgqk+Y+8IEmY | |
4maUXI+J6qLTsscKNBPG32hdRMVDBsB6WA5/RMcI3mxyw+uJQqfWQE= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:from:to:subject:message-id:reply-to | |
:references:mime-version:content-type:in-reply-to; s=default; | |
bh=3jneiWtJEdvh27CAu7SN3+kCAPs=; b=RF160EJSEDDmjunEJg1sr1WGZCbO | |
R4Sy1Hy3/nOPSw0PI3C+Oo1+5m00PZN6gwZIq0tuywXWRB/+GQqN89A/AzJfKVrC | |
lsGFPciE7bmUqONbJvdMFXxAVkNW2634BYdmgZrl91/aTrPcHG6Ydvrw22Gg6Iqk | |
7immcaXZVNrU9ho= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=H*r:500 |
X-HELO: | mout.kundenserver.de |
Date: | Tue, 21 Aug 2018 17:16:33 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: memory reported in /proc/pid/status is wrongly scaled |
Message-ID: | <20180821151633.GE3348@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <CAL0dvti5rj=MtBjcPzrijT+YGazwWCE-utu=BD2TV9YL8Qc-5Q AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <CAL0dvti5rj=MtBjcPzrijT+YGazwWCE-utu=BD2TV9YL8Qc-5Q@mail.gmail.com> |
User-Agent: | Mutt/1.9.2 (2017-12-15) |
--82I3+IH0IqGh5yIs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 21 16:53, Livio Bertacco wrote: > Thanks Corinna, I tried the developer snapshot and the VmSize line from > "status" file looks good now. >=20 > What do you think about adding the VmPeak line too? (I can create the pat= ch > myself). >=20 > > On second thought there's more wrong than just that. > > Just dividing by page_size or allocation_granularity results in too sma= ll > values. >=20 > Yes, now that you mention it, this rounding up is actually still missing > for the vmrss and vmmaxrss values in the "stat" file (which just divides = by > page_size): > 1150 > <https://cygwin.com/git/gitweb.cgi?p=3Dnewlib-cygwin.git;a=3Dblob;f=3Dwin= sup/cygwin/fhandler_process.cc#l1150> > vmrss =3D vmc.WorkingSetSize / page_size; > 1151 > <https://cygwin.com/git/gitweb.cgi?p=3Dnewlib-cygwin.git;a=3Dblob;f=3Dwin= sup/cygwin/fhandler_process.cc#l1151> > vmmaxrss =3D ql.MaximumWorkingSetSize / page_size; > and, by the way, is it correct that these two are reported in 4k pages > instead of 64k pages? > "statm" reports e.g. VmRss (that's the second value in the statm line) in > 64k pages so that value doesn't match the same Rss amount (24th value) fr= om > "stat". I'd actually be happy to get patches here. Just have a look at https://cygwin.com/contrib.html for the 2-clause BSD statement. Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --82I3+IH0IqGh5yIs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlt8LNEACgkQ9TYGna5E T6CjrxAAk6OTPeiFX8e9dcgPgjHooVDPxKNW8XSdMN914vKpS8ayvp+gcv9LDSlW YHm0UAiMW3YfGfRJ+mBv3gWbMjLtwavZbONT3zyqGU1XEnx3XqW3Hp/tIn0G9kp2 rTVZErU/MN/54njNWvUX9ESwyuykmqE0Dintwdj3T2K7MNQOeG2eWUZ1DltLMj+f YskNwrAmFDQAylz4rpFojKFLMrDj7W5acIRBu6IfMUDwNoMKLTzahspdNC9htXu5 avqbqTUp3gSYNfQfjHfOZPc0+fOvtFYnzroaq4WNK19V2Ze/fd72wOysPlOmC7Xu qe8PCJVLb6G3BHciTnMWOQnTUPe+2KbprqlfkpmwryMbsCSToM0Efebsy0sl/c+v oZAekG2r3AdtI1PjYtio+GKmJZIHXEXRh6ZC98goROvN89hj4MKNkhIFcQ/yIxJq lMd3NnnNMsd0ckaPWiKm51pDoJ3U/zmlFKLDjw1UBzazpPdq6D4MiDcZioL9u5/4 9e17L+J/t2GyiV/hn4yoKQu59Z/EBDliC6qGwAuNWxy6mepk5udIB28Hjgs02oTW Z4Q/PmQfLYL0WjMj04lpvY83HmYx5Adx81X0MWO6E8DOHA6QT/DnEwaEJXWzdt2t eayj2ptrB5xgTnLr2MxNp31BSG1CKwWuh19vkYVPuSsg6q/eN/o= =8jnP -----END PGP SIGNATURE----- --82I3+IH0IqGh5yIs--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |