Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: firefox eats threads




On March 18, 2015 11:01:15 AM EDT, Tobias Nygren <tnn%NetBSD.org@localhost> wrote:
>Firefox names all it's threads by type with pthread_setname_np(3).
>The following command is useful to find out what kind of threads are in
>use:
>
>$ ps -sp 12501 -O lname
>
>Firefox after startup pools 45 threads so that's one third of your
>available LWPs. My opinion is that the default ulimits on amd64 have
>not
>caught up with the times. 1024 would be a more reasonable figure than
>128 & 160 for open files and lwps.
>

Fwiw, chrome/chromium fires up 69 threads, although I've only examined it running on a linux box.
Those limits are clearly inadequate.  They should probably be calculated based on the machine resources, such as the amount of memory available.

Eric



Home | Main Index | Thread Index | Old Index