perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fred Moyer <f...@redhotpenguin.com>
Subject Fwd: [rt.cpan.org #73752] Wrong unshared memory values when using /proc/self/statm
Date Thu, 05 Jan 2012 08:48:30 GMT
---------- Forwarded message ----------
From: "Christian Ruppert via RT" <bug-Apache-SizeLimit@rt.cpan.org>
Date: Jan 4, 2012 5:09 PM
Subject: [rt.cpan.org #73752] Wrong unshared memory values when using
/proc/self/statm
To:

Wed Jan 04 20:09:34 2012: Request 73752 was acted upon.
Transaction: Ticket created by idl0r
      Queue: Apache-SizeLimit
    Subject: Wrong unshared memory values when using /proc/self/statm
  Broken in: (no value)
   Severity: (no value)
      Owner: Nobody
 Requestors: idl0r@qasl.de
     Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=73752 >


Hi everybody,

Using Linux::Smaps is not always possible, for example when using Grsecurity
patches for the Linux kernel.
This ends up in using /proc/self/statm instead of smaps, see attachment for
a
test case.

<snip>
% perl test.pl
Legacy check: SIZE=20844, SHARE=1720, UNSHARED=19124
Smaps check: SIZE=20848, SHARE=1776, UNSHARED=928
</snip>

So assuming unshared is $size - $share seems to be totally wrong, note the
huge difference between unshared with smaps and with statm.

--
Regards,
Christian Ruppert


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (GNU/Linux)

iQEcBAABCAAGBQJPBPg5AAoJEMOx0zmdw4Z1cFEIALPVaVudGhpR2IqQGopFdSY2
k0CqALBb9lquLUl3gwKmTuMfg8LkgpEhblSMQHNCBHBLJEZ6FERP7vUR4y6br28S
/MRej+HJ+fLunIb/Dq6kvCzmFfHU47xiOUC2uv17VkPTIvM3SwNJLoqIqJM6vuz6
yGEOkFsoTgwBg0CAwRrDrUdiTrtY5WkhauROYBMpeP+LISjVql3+CTqd0F5jSb0D
QzTMv/0vALVUoTHvffqT5W8BYAvBoWEzSuFTaxKdo0G+84h2KgRzmGslCqZGgYL6
rQqpVxYE+yHzotNdSF6zhUiL8C+w1OQjrtFugMSkIku/7QVPAavCOn35e8Eql60=
=UH10
-----END PGP SIGNATURE-----

Mime
View raw message