[RFC] nptl: change default stack guard size of threads
Florian Weimer
fweimer@redhat.com
Wed Dec 6 13:13:00 GMT 2017
On 12/06/2017 02:10 PM, Wilco Dijkstra wrote:
> Florian Weimer wrote:
>> On 11/29/2017 11:38 PM, Carlos O'Donell wrote:
>>> On 11/29/2017 02:28 PM, Wilco Dijkstra wrote:
>>>> Why should it be any different from LP64? Typical page size will still be
>>>> 64KB, so a 4KB guard would be rounded up to 64KB. An ILP32 system
>>>> with 64KB pages could create ~30000 threads per process. Does that
>>>> make it unusable?
>>>
>>> ... and this is already configurable via pthread_attr_setguardsize(), so
>>> you *could* tune a system to have smaller guards against the recommendation
>>> of the runtime authors?
>>
>> Sure, if you recompile your application. That's not really a solution IMHO.
>
> You've got to do that already in order to run it on ILP32 - there isn't exactly
> a large amount of existing ILP32 binaries around, let alone ones that need more
> than 30000 threads per process.
I wasn't talking about aarch64 ILP32, and I suspect neither was Carlos.
In my world, if you still have 32-bit binaries, it's because you lost
the sources or the tools or knowledge to build them at some point.
Thanks,
Florian
More information about the Libc-alpha
mailing list