Re: [mp2] Memory not being shared

[prev] [thread] [next] [Date index for 2005/02/12]

From: Richard F. Rebel
Subject: Re: [mp2] Memory not being shared
Date: 14:22 on 12 Feb 2005
--=-y2Mj5gS3u1GtgA+WTXaR
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable


Hi Kurt,

I sent a message just prior to this that contained a forward from the
linux kernel mailing list that explains this further, but:

The method you are using to check changed with 2.6.10 and may readily
account for the changes you are seeing in your figures.

In the end, you should not be using '/proc/<pid>/statm' shared column
derived figures to determine how shared apache is with it's children's
via COW pages.  That figure in 2.4 was polluted with other data, and in
2.6 it has changed.  In 2.6.10 and later, and for the "foreseeable"
future it will NOT contain private pages shared with forked children.

This leaves us at a loose end though.

Best,

On Fri, 2005-02-11 at 17:34 -0500, Kurt Hansen wrote:
> Perrin Harkins wrote:
>=20
> >
> >I wonder if it has something to do with SMP.  It would be good to try it
> >on a kernel that is not compiled for SMP.  It might be worth compiling
> >your own kernel to test it.
> >
> >Running a non-threaded perl is always a good idea if you are not using
> >threads.  Performance will be better too.mercy=20
> > =20
> >
> I re-booted into the 2.6.10-1.12_FC2 (non-SMP) kernel. No difference.
>=20
> Then, I tried going back to an earlier kernel, 2.6.8-1.521smp to be=20
> exact. In that case, the shared memory jumped from 4M to 15M! That still=20
> leaves 55M unshared, but the kernel seems to be part of the equation.=20
> Thanks for the clue, Perrin! I'm not sure if there is a problem with=20
> 2.6.10 or if 2.6.8 was the kernel on the machine when I originally=20
> compiled perl.
>=20
> Has anyone else seen problems with the 2.6.10 kernel?
>=20
> I guess my next step is to re-compile perl and see where that leads me.
>=20
> Take care,
>=20
> Kurt Hansen
> khansen@xxxxxxxxxx.xxx
--=20
Richard F. Rebel <rrebel@xxxxx.xxx>
WhenU.com

--=-y2Mj5gS3u1GtgA+WTXaR
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCDhEkx1ZaISfnBu0RAqnsAJ9b+pSALogYPlgKrwpJpFjfwXHAwgCdEj1z
EZSJVg0s5bxiWLnuXWxTRYY=
=Thvb
-----END PGP SIGNATURE-----

--=-y2Mj5gS3u1GtgA+WTXaR--

(message missing)

[mp2] Memory not being shared
Kurt Hansen 15:57 on 11 Feb 2005

Re: [mp2] Memory not being shared
Stas Bekman 17:14 on 11 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 17:54 on 11 Feb 2005

Re: [mp2] Memory not being shared
Perrin Harkins 20:32 on 11 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 21:23 on 11 Feb 2005

Re: [mp2] Memory not being shared
Perrin Harkins 21:36 on 11 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 22:34 on 11 Feb 2005

Re: [mp2] Memory not being shared
Stas Bekman 04:04 on 12 Feb 2005

Re: [mp2] Memory not being shared
Richard F. Rebel 14:31 on 12 Feb 2005

Re: [mp2] Memory not being shared
Richard F. Rebel 14:22 on 12 Feb 2005

Re: [mp2] Memory not being shared
Kurt Hansen 17:58 on 12 Feb 2005

Generated at 17:31 on 15 Feb 2005 by mariachi v0.52