A lot of processes run automatically when I run a single process.
Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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]
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.