From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hogan Subject: Re: remove _STK_LIM_MAX override Date: Thu, 1 May 2014 12:22:32 +0100 Message-ID: <53622E78.9020703@imgtec.com> References: <535EAA4E.800@gmx.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s0tanx4u4MnpsCgAixfkRFt77o6IH4Gc8" Return-path: In-Reply-To: <535EAA4E.800-Mmb7MZpHnFY@public.gmane.org> Sender: linux-metag-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: To: Helge Deller , linux-metag-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: John David Anglin --s0tanx4u4MnpsCgAixfkRFt77o6IH4Gc8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 28/04/14 20:21, Helge Deller wrote: > Dear metag people, >=20 > on the parisc arch we found a problem with GNU make, that our process s= tacks became too big so that many debian packages didn't built because no= t enough threads (started via GNU make) could be created.=20 >=20 > The final solution was to remove our arch-specifc _STK_LIM_MAX override= =2E > I will push this patch for parisc upstream soon: > https://patchwork.kernel.org/patch/4072991/ >=20 > It seems metag is now the only arch left which overrides _STK_LIM_MAX. > Maybe you need to revisit that too? Hi Helge, Could you clarify the exact problem? As far as I can tell from strace experimentation GNU make will reset the RLIMIT_STACK soft limit to it's previous value prior to forking off any children, and doesn't appear to make use of pthreads itself either. That's not to say the default hard limit override shouldn't be removed. I think it was only there to prevent the excessively large 1GB default stack size being used and causing problems with Meta's limited virtual address space (which is effectively fixed by your other patch). Thanks James --s0tanx4u4MnpsCgAixfkRFt77o6IH4Gc8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTYi6AAAoJEGwLaZPeOHZ6D28P/3FMQvpG3yiWrZDaGmyoYy14 Va+dSgjW1gA4WoIneBya+qNvgUrjSipZzr2Xm8c45nV3HSjfhSyqffPOv2GGICai MifrmZ/ceTt4wP4gMi1i5daAcNqnf/qGdUIMTfPsQBGaqgAnmrGVYFrAKG5EgKCy HahZgpv+4jUdNSkx7HSgiIB4Cy72qESjFe00rWz8/9rAsuTemL5/fd3B/5XQ1uWz shdYVUwJ/h2sy1LE0PwI3FzjeCtdHxHIrLdtUWh3N9B0Zo3RPKlPaA13NRO6Crhc Y6Gd7WsXL4WYDYLt48q/Yci2SBo5xWC+o4uaeRVh/n0WjzxeTIAU/WPU/e7TV3OJ JJpspMhiFWOJwItnlrlCFYIZzcCNjsigyHowLUzkBHS4+fD3/Qm/VcPKqsqqv2ub IUdtqvY+L7kTtGiaFbEnKTYYuUoW6WS7CgakwHDtkR+Zbvq+0DqtqolOVHN7wBqJ 8D6hV8iVbiv+qRbsXkXs1DbTBgndVICmTqs2344dMKBeIMci8srdZPeRBMBhRH1R CunMMSJYxtNknmUzZBvtX++e89RS6xNKumhn2bemexJ7ULHnRm2kcFg4L56TZm9Y pCGcAhgsl/JZiDttMPjCWZKSkxm7ooKcyIUNdFdCxzHR5S9eU7EEyfdEmTEGPX1N aD8IIoDozRoRB9yLX/K3 =1niO -----END PGP SIGNATURE----- --s0tanx4u4MnpsCgAixfkRFt77o6IH4Gc8-- -- To unsubscribe from this list: send the line "unsubscribe linux-metag" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html