Parallel Find command


 
Thread Tools Search this Thread
Operating Systems Solaris Parallel Find command
# 1  
Old 09-02-2011
Parallel Find command

Hi All,

I ran parallel 80 Commands as below,

Code:
#################################3
  PID USERNAME  SIZE   RSS STATE  PRI NICE      TIME  CPU PROCESS/NLWP

 23677 root     1040K  856K sleep   58    0   0:04.04 0.7% find/1
 23700 root     1040K  856K sleep   58    0   0:03.59 0.6% find/1
 15408 root     1032K  776K sleep   48    0   0:07.05 0.6% find/1
 15405 root     1032K  792K sleep   59    0   0:04.54 0.6% find/1
 15421 root     1032K  792K sleep   58    0   0:05.57 0.6% find/1
 15406 root     1032K  792K sleep   58    0   0:06.26 0.6% find/1
 15437 root     1032K  792K sleep   58    0   0:06.04 0.6% find/1
 23647 root     1040K  856K sleep   58    0   0:02.53 0.5% find/1
 23701 root     1040K  856K sleep   58    0   0:03.06 0.5% find/1
 23668 root     1040K  856K sleep   58    0   0:02.56 0.5% find/1
 23689 root     1048K  864K sleep   58    0   0:02.24 0.5% find/1
 15413 root     1032K  776K run     39    0   0:05.19 0.5% find/1
 15431 root     1032K  776K sleep   58    0   0:06.38 0.5% find/1
 20819 b36376   1712K 1424K cpu0    39    0   0:00.00 0.5% prstat/1
 15420 root     1032K  792K sleep   58    0   0:04.32 0.4% find/1
 23684 root     1040K  856K sleep   58    0   0:03.51 0.4% find/1
 23702 root     1040K  856K sleep   58    0   0:02.41 0.4% find/1
 23656 root     1040K  856K sleep   59    0   0:03.39 0.4% find/1
Total: 153 processes, 448 lwps, load averages: 3.76, 2.41, 1.91
###############################

But i can see many of them are in sleep state. Is it possible to run all the commands like changing the priority.As its taking much time in the output.

Regards

Ankit

Last edited by pludi; 09-02-2011 at 01:47 PM..
# 2  
Old 09-02-2011
Code:
I ran parallel 80 Commands as below,

How do you start these commands? (There are several meaning of words "to run parallel").
# 3  
Old 09-02-2011
How many processors do you have? How many cores each? Is Hyper-Threading or anything similar active? Because, basically, the output from top and others is a moments snapshot, and it's only possible to have at most 1 process running per processor core at any time, with the others sleeping until it's their turn.
# 4  
Old 09-02-2011
I started all the commands from a shell script using while loop & send all the commands to backgroud.

Regards

Ankit
# 5  
Old 09-04-2011
Are the processes starved from disk I/O? I.e. is your disk seeking all the time?

If you want more control over your processes in parallel consider using GNU Parallel to start similar processes in parallel.

Watch the intro video to learn more: Part 1: GNU Parallel script processing and execution - YouTube
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Parallel RM and FIND commands conflicting

Hi all. Long time!! Hope you're doing well.. I've stumbled on a peculiar siutaion here, and would expect help from this forum on a clean resolution. We are running an rm and find command simultaneously from two different Unix sessions of the same user(let's say USER01) and on the same... (3 Replies)
Discussion started by: kumarjt
3 Replies

2. Shell Programming and Scripting

Python GNU parallel single command on multiple cores

Hello, I have a 4 core machine. Here is my initial script cd /work/ python script.py input.txt output.txt 1 2 3 This script runs for 1.5hrs. So I read across the web and figured out that you can use GNU parallel to submit multiple jobs using parallel. But I am not sure if I can run... (4 Replies)
Discussion started by: jacobs.smith
4 Replies

3. Shell Programming and Scripting

Checking if command ran in parallel

Hi, I am running below code For I in $var do .......some line of code....... nohup Sqlplus apps/apps <<EOF & My_proc($I) Exit EOF done Nohup and & is used for parallel processing. Can someone help in determining if the procedure with different arguments Was called paralley or... (3 Replies)
Discussion started by: Pratiksha Mehra
3 Replies

4. Shell Programming and Scripting

Bash script parallel tasks and command to wait untill complete?

Hello, im having bash script with while *** command1 && command2 && command3 && done i want to ask how i can prevent overloading server, by waiting untill all commands complete? any low resources intensive command like "wait" - i dont know if exist? (2 Replies)
Discussion started by: postcd
2 Replies

5. UNIX for Advanced & Expert Users

Parallel Execution of Command

Hi All, We have a table that has to store around 80-100 million records. The table is partitioned by a column called Market Code. There are 30 partitions each corresponding to one MRKT_CD. The source of this table is a join between 3-4 other tables. We are loading this table through SQLPLUS... (2 Replies)
Discussion started by: jerome_rajan
2 Replies

6. Shell Programming and Scripting

Parallel execution of command inside file

Hi all, I have the requirement to generate the file containing following command eval /path/ dsjob -logdetail projectname JOBNAME /path/ 1. The file contains the above command say about 150 times i,e only the JOBNAME changes in every command 2. The commands must be written in such a way... (2 Replies)
Discussion started by: sanjay mn
2 Replies

7. Shell Programming and Scripting

Find and execute shell scripts in multiple sub directories in parallel

I have one parent directory and within that parent directory there are several other sub-directories and within those sub-directories there are several other "large number" of sub-directories. All the sub directories have a shell script in them with a common file name execute_command.sh I want... (4 Replies)
Discussion started by: shoaibjameel123
4 Replies

8. Shell Programming and Scripting

What is the parallel execution command available in Ubuntu Linux?

Hi, I am using Ubuntu 10.04 LTS 32-bit. I would like to execute a command in two or more servers (multiple remote hosts) in parallel. The commands "shmux" or "on" are not available in Ubuntu. Could anyone tell me what other equivalent commands available in Ubuntu to accomplish this task? (1 Reply)
Discussion started by: royalibrahim
1 Replies

9. UNIX for Advanced & Expert Users

implementation of copy command in parallel

hey i have to implement copy command in parallel in c language. i dont know how to create a new directory in destination. if anything u know related to this help me (1 Reply)
Discussion started by: rajsekhar28
1 Replies

10. Shell Programming and Scripting

Run a command in parallel

Hi all, How do i run a command in parallel 50 times and capturing the result of each run in a separate file Eg: myApp arg1 > run1.txt myApp arg1 > run2.txt ::::::::::::::::::::::::: ::::::::::::::::::::::::: myApp arg1 > run50.txt The above way is sequential. ... (3 Replies)
Discussion started by: jakSun8
3 Replies
Login or Register to Ask a Question