On Wed June 5 2024 18:33:35 Jim via tde-users wrote:
Mike, how did you calculate how many files are opened
by firefox? I just
added up all the entries in /proc/<pid>/fd for firefox and its children
processes and I "only" got 1881.
2256004 seems like an astonishing number. Can you clarify this?
Hi Jim,
"lsof -n | grep firefox | wc -l" includes things like memory mapped libraries.
"ps ax | grep firefox | wc -l" currently yields 78 firefox processes but
"ps -eLf | grep firefox | wc -l" yields 2319 firefox threads.
(This of course is nowhere near bulletproof but it'll do for now.)
I probably have a couple hundred tabs open, across 23 firefox windows.
--Mike