Parent code is given below..it is the part of code
child scripts part code is there
So when the parent script is running it is calling 15 instance of child process which is running parallel. So scripts have created many zombie processes that why CPU utilization is very high. See the below top command
Before running scripts
last pid: 26477; load averages: 40.74, 41.65, 50.03
249 processes: 207 sleeping, 8 running, 2 zombie, 3 stopped, 29 on cpu
CPU states: 0.1% idle, 80.9% user, 19.0% kernel, 0.0% iowait, 0.0% swap
Memory: 52G real, 26G free, 16G swap in use, 32G swap free
After running the parent scripts
last pid: 3941; load averages: 83.84, 82.16, 79.35
386 processes: 255 sleeping, 61 running, 45 zombie, 3 stopped, 22 on cpu
CPU states: 0.0% idle, 60.9% user, 39.1% kernel, 0.0% iowait, 0.0% swap
Memory: 52G real, 31G free, 10G swap in use, 37G swap free
See the load average is high and zombie process has increase.
So please let me know where the fault in scripts is. How I can decrease the zombie process. It is taken all the cpu utilization.
please see the zombie process
In the parent script I see below highlighted variable is not initialized, I think the variable name should be NO_OF_CIPS instead:-
Also I noticed parent script is running inside an infinite loop, what is the exit condition?
Hi Folks
I have a doubt. I have a script which is running with 2 input parameters
./GetDSLnkCount.sh <jobnumber> Parmfile.txt
I need to run the script in parallel for different jobnumbers. The commands are
./GetDSLnkCount.sh jnhuc14500 Parmfile.txt
./GetDSLnkCount.sh jnhuc14501... (3 Replies)
i have script A and script B, both scripts have to run in parallel, my requirement is script A create table temp1, post creating it will run fr 4 hrs , script B has to start 0nly after creation of table temp1 ( which is done by script A) , again script B will run for 5 hrs
if i run sequencially... (7 Replies)
Hi All,
I have a huge collection of files in a directory about 200000. I have the command below but it only uses one core of the computer. I want it to do task in parallel.
This is the command that I want to run in parallel:
sort testfile | uniq -c | sort -nr
I know how to run sort... (10 Replies)
I need to process 50 sqlplus scripts which are listed in a text file. I need to develop a shell script that'll read this file and run these sqlplus scripts. At any point of time, the number of sqlplus scripts running shouldn't exceed 6. If any of the sqlplus scripts completes successfully then... (17 Replies)
I have a parent process which will start 36 child process. This I achieved by using the 'for loop'.
In Parent.sh:-
./Child.sh <arg1> <arg2> ... &
If I execute "ps -ef | grep Child.sh", I can see 72 child processes running at the background. I mean I can see the duplicate of each process.
... (2 Replies)
Hi
I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running.
My Code:
... (5 Replies)
I'm going to undertake a hardware refresh soon and I was wondering if it is possible to run two machines (X and Y) with the same hostname (but different IP addresses) on the same network? Server X is the original server and has an entry in DNS. Server Y is the new server and won't have an entry... (1 Reply)
Hi,
Iam having the scripts as follows. i jus want to run those in parallel.
main aim is to minimise the time for overall execution of the script.
now out.txt is having 1 lac records.
script1(split.sh)
split -1000 out.txt splitout
ls -A splitout* > filelist.txt
cat filelist.txt... (6 Replies)
hi ,
i need to run a parallel program .
for example;
program1
{
array=" the second program should called here : program 2"
the execution should continue
}
the 2nd program should recieve an array of information as argument and it should... (4 Replies)