LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 11-29-2006, 04:09 AM   #1
dalvirgautam
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Rep: Reputation: 0
A lot of processes run automatically when I run a single process.


Hi, I am using Linux version- OpenSSL 0.9.7a Feb 19 2003 built on: Thu May 19 18:22:25 EDT 2005 platform: linux-elf options: bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long) blowfish(idx)

My problem is that when I run a process (say ./gw), a large no. of different PIDs(around 150) are getting created with only single PPID. This also interrupts other processes to execute.

Can anyone please suggest what can I do here?
 
Old 11-29-2006, 10:08 AM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 194Reputation: 194
What is ./gw and does this occur on any other command or process you start? What are these other processes? Output of ps would be helpful.
 
Old 11-29-2006, 01:18 PM   #3
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 196

Rep: Reputation: 30
you could try 'nicing' the process so that it (and I think the child processes) will be nicer to the other processes.

For example, I have a program that competes with production processes that still needs to run --
nice -n19 ./myprocess

Note: nicing or renicing process overrides the process priority the kernel assigns. -19 is as nice (aka as low of priority) as you can go. +20 is a "mean" process and requires root privelidges to change above 0.

Or you could try putting the process into the background --
./myprocess &

That would only help these 150 processes behave a little better. As far as the 150 children my first guess is that your application has defined 150 worker/child processes for the parent, but have little else to go on since we have no idea what "./gw" is.

Also, what do your resources look like? free -mt, top...are you hitting your system's limit? Are you swapping a lot (or none at all)? What type of system is it on?

Last edited by beeblequix; 11-29-2006 at 01:24 PM.
 
Old 11-30-2006, 01:23 AM   #4
dalvirgautam
LQ Newbie
 
Registered: Nov 2006
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for ur valuable suggestions.
Let me clear you the problem I anm facing.
Actually I want that the process which I am running only should run with only single PID(as for any normal case).
But problem is when I run a process, a large no. of processes run automatically with same name. Hence a lot of PIDs are creating with single PPID.

Is there any way so that only single process should run when I execute a single process.

I have checked the top amd free -mt, but find nothing.




you could try 'nicing' the process so that it (and I think the child processes) will be nicer to the other processes.

For example, I have a program that competes with production processes that still needs to run --
nice -n19 ./myprocess

Note: nicing or renicing process overrides the process priority the kernel assigns. -19 is as nice (aka as low of priority) as you can go. +20 is a "mean" process and requires root privelidges to change above 0.

Or you could try putting the process into the background --
./myprocess &

That would only help these 150 processes behave a little better. As far as the 150 children my first guess is that your application has defined 150 worker/child processes for the parent, but have little else to go on since we have no idea what "./gw" is.

Also, what do your resources look like? free -mt, top...are you hitting your system's limit? Are you swapping a lot (or none at all)? What type of system is it on?[/QUOTE]
 
Old 12-01-2006, 06:10 PM   #5
beeblequix
Member
 
Registered: Oct 2005
Location: Tierra Firma, Earth
Distribution: Debian of course...
Posts: 196

Rep: Reputation: 30
That still may not be a bad thing. I have a number of processes all spawned from the same parent. That's normal for many programs. Trickykid's question is still important -- run a ps -ef and list them for us.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Controling which processes can run exnt Linux - Security 2 09-13-2006 01:52 PM
my own tiny SDL program dumps a lot of symbols when it is run kevman Programming 2 03-08-2006 06:05 PM
Run 4-processes concurrently using fork() ugp Programming 1 02-26-2006 08:49 AM
how to run system-config-soundcard automatically during starting process? leduytien Linux - Software 1 02-11-2006 09:57 AM
How to get it known all processes run under Linux (kernel 2.4.20-8) ukrainet Linux - Newbie 2 12-01-2004 06:13 AM


All times are GMT -5. The time now is 02:50 AM.

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