From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13664 invoked by alias); 21 Aug 2018 15:16:40 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 13536 invoked by uid 89); 21 Aug 2018 15:16:39 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.24) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Aug 2018 15:16:37 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.183]) with ESMTPSA (Nemesis) id 0LbZwx-1gHFsn3fH1-00lEbw for ; Tue, 21 Aug 2018 17:16:34 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id D7E8AA80CAF; Tue, 21 Aug 2018 17:16:33 +0200 (CEST) Date: Tue, 21 Aug 2018 20:20:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: memory reported in /proc/pid/status is wrongly scaled Message-ID: <20180821151633.GE3348@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="82I3+IH0IqGh5yIs" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-08/txt/msg00283.txt.bz2 --82I3+IH0IqGh5yIs Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1466 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 > > vmrss =3D vmc.WorkingSetSize / page_size; > 1151 > > 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" Content-length: 833 -----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--