Current-Users archive

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

Re: firefox eats threads



On Wed, Mar 18, 2015 at 04:01:15PM +0100, Tobias Nygren 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

Here's what this looked like today when I killed it after not doing
anything in it for a day, and it grew by about 40-50 threads:

 UID   PID LNAME            PPID   CPU  LID NLWP PRI NI     VSZ    RSS WCHAN   STAT TTY     LTIME COMMAND
1000 24416 StreamTrans #17 16789 69849 2535  128  38  5 1924672 585664 parked  S-   pts/5 0:00.00 firefox
1000 24416 DNS Resolver #3 16789 69849 2529  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 DNS Resolver #3 16789 69849 2528  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2527  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2473  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2423  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2365  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2316  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2261  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2209  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2160  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2106  128  37  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2094  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 2039  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1983  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1979  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1920  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1860  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1801  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1740  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1683  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1631  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1580  128  37  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1531  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1478  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1415  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1358  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1303  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1299  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1242  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1202  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1144  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1085  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849 1026  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  973  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  912  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  849  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  787  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  733  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  689  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  654  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  648  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  646  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  616  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  575  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  537  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  500  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  465  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  454  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  440  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  418  128  37  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  410  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  379  128  36  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  364  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  358  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  353  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  317  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  301  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  294  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  277  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  255  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  241  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  205  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  197  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  192  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 mozStorage #11  16789 69849  167  128  38  5 1924672 585664 parked  I-   pts/5 0:00.63 firefox
1000 24416 mozStorage #10  16789 69849  166  128  38  5 1924672 585664 parked  I-   pts/5 0:00.01 firefox
1000 24416 -               16789 69849  164  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  149  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  143  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  132  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849  112  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 mozStorage #9   16789 69849  105  128  38  5 1924672 585664 parked  I-   pts/5 0:00.02 firefox
1000 24416 -               16789 69849   97  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849   89  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 DOM Worker      16789 69849   78  128  38  5 1924672 585664 parked  I-   pts/5 0:00.10 firefox
1000 24416 mozStorage #8   16789 69849   76  128  38  5 1924672 585664 parked  I-   pts/5 0:00.77 firefox
1000 24416 mozStorage #7   16789 69849   75  128  38  5 1924672 585664 parked  I-   pts/5 0:00.14 firefox
1000 24416 -               16789 69849   74  128  37  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849   73  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 mozStorage #6   16789 69849   70  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 mozStorage #5   16789 69849   65  128  38  5 1924672 585664 parked  I-   pts/5 0:00.13 firefox
1000 24416 Image Scaler    16789 69849   64  128  38  5 1924672 585664 parked  I-   pts/5 0:00.17 firefox
1000 24416 URL Classifier  16789 69849   63  128  36  5 1924672 585664 parked  I-   pts/5 0:32.13 firefox
1000 24416 localStorage DB 16789 69849   62  128  38  5 1924672 585664 parked  I-   pts/5 0:00.03 firefox
1000 24416 Net Predictor   16789 69849   61  128  37  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 mozStorage #4   16789 69849   59  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 Cache I/O       16789 69849   58  128  35  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 mozStorage #3   16789 69849   57  128  38  5 1924672 585664 parked  I-   pts/5 0:02.77 firefox
1000 24416 mozStorage #2   16789 69849   56  128  38  5 1924672 585664 parked  I-   pts/5 0:00.16 firefox
1000 24416 MediaManager    16789 69849   55  128  36  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 Proxy Resolutio 16789 69849   50  128  37  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849   49  128  83  5 1924672 585664 select  I-   pts/5 0:00.00 firefox
1000 24416 mozStorage #1   16789 69849   48  128  38  5 1924672 585664 parked  I-   pts/5 0:00.27 firefox
1000 24416 DOM Worker      16789 69849   44  128  38  5 1924672 585664 parked  S-   pts/5 0:00.16 firefox
1000 24416 ImageBridgeChil 16789 69849   40  128  35  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 Compositor      16789 69849   39  128  35  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 IPDL Background 16789 69849   35  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849   34  128  83  5 1924672 585664 kqueue  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849   33  128  83  5 1924672 585664 select  I-   pts/5 0:00.00 firefox
1000 24416 HTML5 Parser    16789 69849   29  128  38  5 1924672 585664 parked  I-   pts/5 0:00.13 firefox
1000 24416 DOM Worker      16789 69849   28  128  38  5 1924672 585664 parked  I-   pts/5 0:02.12 firefox
1000 24416 Cert Verify     16789 69849   26  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849   25  128  38  5 1924672 585664 parked  I-   pts/5 0:00.01 firefox
1000 24416 Cache2 I/O      16789 69849   24  128  38  5 1924672 585664 parked  I-   pts/5 2:09.50 firefox
1000 24416 Timer           16789 69849   23  128  38  5 1924672 585664 parked  S-   pts/5 0:10.29 firefox
1000 24416 Hang Monitor    16789 69849   22  128  38  5 1924672 585664 parked  I-   pts/5 0:00.00 firefox
1000 24416 JS Watchdog     16789 69849   21  128  38  5 1924672 585664 parked  S-   pts/5 0:02.59 firefox
1000 24416 Analysis Helper 16789 69849   20  128  38  5 1924672 585664 parked  S-   pts/5 0:00.70 firefox
1000 24416 Analysis Helper 16789 69849   19  128  38  5 1924672 585664 parked  S-   pts/5 0:00.83 firefox
1000 24416 Analysis Helper 16789 69849   18  128  38  5 1924672 585664 parked  S-   pts/5 0:00.97 firefox
1000 24416 Analysis Helper 16789 69849   17  128  38  5 1924672 585664 parked  S-   pts/5 0:00.66 firefox
1000 24416 Analysis Helper 16789 69849   16  128  38  5 1924672 585664 parked  S-   pts/5 0:00.77 firefox
1000 24416 Analysis Helper 16789 69849   15  128  38  5 1924672 585664 parked  S-   pts/5 0:00.73 firefox
1000 24416 Analysis Helper 16789 69849   14  128  38  5 1924672 585664 parked  S-   pts/5 0:00.74 firefox
1000 24416 Analysis Helper 16789 69849   13  128  38  5 1924672 585664 parked  S-   pts/5 0:00.85 firefox
1000 24416 Analysis Helper 16789 69849   12  128  38  5 1924672 585664 parked  S-   pts/5 0:00.63 firefox
1000 24416 Analysis Helper 16789 69849   11  128  38  5 1924672 585664 parked  S-   pts/5 0:00.68 firefox
1000 24416 Analysis Helper 16789 69849   10  128  38  5 1924672 585664 parked  S-   pts/5 0:00.66 firefox
1000 24416 Analysis Helper 16789 69849    9  128  38  5 1924672 585664 parked  S-   pts/5 0:00.66 firefox
1000 24416 Analysis Helper 16789 69849    8  128  38  5 1924672 585664 parked  S-   pts/5 0:00.67 firefox
1000 24416 Analysis Helper 16789 69849    7  128  38  5 1924672 585664 parked  S-   pts/5 0:01.05 firefox
1000 24416 Analysis Helper 16789 69849    6  128  38  5 1924672 585664 parked  S-   pts/5 0:00.75 firefox
1000 24416 Analysis Helper 16789 69849    5  128  38  5 1924672 585664 parked  S-   pts/5 0:00.98 firefox
1000 24416 Socket Thread   16789 69849    4  128  83  5 1924672 585664 select  I-   pts/5 0:06.52 firefox
1000 24416 Gecko_IOThread  16789 69849    3  128  83  5 1924672 585664 kqueue  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849    2  128  83  5 1924672 585664 select  I-   pts/5 0:00.00 firefox
1000 24416 -               16789 69849    1  128  83  5 1924672 585664 biowait D    pts/5 6:21.81 firefox


Lots of unnamed threads. Why do they get created?
 Thomas


Home | Main Index | Thread Index | Old Index