-   Linux - Software (
-   -   gentoo: duplicate processes running? (

meddle 02-11-2005 10:35 AM

gentoo: duplicate processes running?
hi everybody,

a friend of mine recently mentioned that he was having problems with gentoo on his machine involving some duplicate processes, and after investigation, we determined that i seem to have the same problem.


$ firefox &
[1] 17879
$ ps
17800 pts/0    00:00:00 bash
17879 pts/0    00:00:00 firefox
17889 pts/0    00:00:01 firefox-bin
17893 pts/0    00:00:00 firefox-bin
17894 pts/0    00:00:00 firefox-bin
17895 pts/0    00:00:00 firefox-bin
17896 pts/0    00:00:00 firefox-bin
17897 pts/0    00:00:00 firefox-bin
17899 pts/0    00:00:00 ps

i'm not sure if this is just the way things are *supposed* to be or not - i'm assuming not. it doesn't happen universally, only with firefox, thunderbird (ebuild), nicotine, openoffice (ebuild), and several others.

my friend suggested that it might have something to do with our kernel headers or glibc. we both installed gentoo off a livecd that had the 2.4 kernel on it, but we both opted to get the 2.6 kernel during the installation instead. he did a stage1 install, i did a stage2.

anyway; if this is just normal, then i have another question. when i go into top, each duplicate process shows up with the same virtual memory use - is this shared memory, or is each process (of firefox, for instance) allocating 46+ megs of memory?

thanks for any input :)


rkrylov 03-01-2005 09:25 AM

So, what are these processes? Seems like system making
fork() with all vm of new process as shared with parent inside pthread_create().
I'm not adept about it, sorry if talking nonsense.
Perhaps it is so to admit allocating these processes to different nodes in
By the way, I have another older-glibc Fedora upgraded to 2.6.10 kernel - it behave in old way - no duplicate items in tasklist.
Any links are appreciated.

Hammett 03-01-2005 09:31 AM

I think that's a forked firefox process. I also run Gentoo and I have the same "problem". It also happens to me with xmms, but if you pay attention to it, you'll see (or should) that the sum of all processes is right. I mean, I don't have 4 firefox-bin processes with 2% CPU usage each (as an example), but i have 4 eating 0.5% of CPU.
A good way to see that is opening top, see how much resources do firefox eat and compare it with the ps -aux output to see if it fits correctly.

Hope this helps

rkrylov 03-01-2005 10:29 AM

Seems like pthread_create() is a wrapper around clone() in recent glibcs?

acid_kewpie 03-01-2005 02:14 PM

i really hope this isn't still being seen as anything resembling a problem. they are multithreaded programs. that's how they work...

All times are GMT -5. The time now is 11:00 PM.