[nylug-talk] Distro Recommendation... for an old, cruddy machine.

Lee Revell rlrevell at joe-job.com
Mon Jan 7 15:56:09 EST 2008


On Jan 7, 2008 3:43 PM, Sunny Dubey <sunny at opencurve.org> wrote:
> On Sunday 06 January 2008 09:13:03 pm Lee Revell wrote:
> > D) Reduce RLIMIT_STACK to 256KB ("stack" setting in
> > /etc/security/limits.conf)
> >
> > This will save 7.5MB per thread. Very important for multithreaded
> > apps like Evolution...
> >
> > Lee
>
> I don't know much about threads and such, but something about the above seems
> wrong.
>
> Either the kernel is wrong for automatically allocating a particular amount of
> memory to any spawned thread.

It's necessary.  Every thread of execution requires a stack.

> Or the developers of apps like Evolution are
> wrong for not initializing threads with more realistic memory demands.

The apps are wrong.  The pthread docs explicitly state that apps
should not assume the default thread stack size will be reasonable.

Lee


More information about the nylug-talk mailing list