Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 02-11-2005, 10:35 AM   #1
LQ Newbie
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
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

Old 03-01-2005, 09:25 AM   #2
LQ Newbie
Registered: Feb 2005
Location: Moscow
Distribution: gentoo(home)/fedora(yet@work)
Posts: 4

Rep: Reputation: 0
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.
Old 03-01-2005, 09:31 AM   #3
Senior Member
Registered: Aug 2003
Location: Barcelona, Catalunya
Distribution: Gentoo
Posts: 1,042

Rep: Reputation: 54
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
Old 03-01-2005, 10:29 AM   #4
LQ Newbie
Registered: Feb 2005
Location: Moscow
Distribution: gentoo(home)/fedora(yet@work)
Posts: 4

Rep: Reputation: 0
Seems like pthread_create() is a wrapper around clone() in recent glibcs?
Old 03-01-2005, 02:14 PM   #5
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running processes, which ones don't I need Garibaldi3489 Slackware 11 02-06-2005 04:46 PM
Too many Running Processes AdamCo Linux - Software 5 10-22-2004 03:17 AM
processes running true_atlantis Slackware 2 02-27-2004 03:34 AM
need running processes amrogers3 Linux - Newbie 4 02-24-2004 09:23 AM
Running processes Nicksan Linux - Software 1 05-30-2003 10:14 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration