Help with script to fully occupied all available cpu

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Help with script to fully occupied all available cpu
# 8  
Old 09-13-2011
The best idea (what I can imagine) is to get GNU Parallel. Especially for 16-core monsters. Smilie I played with it a little - it's easy to use and you can say it how many jobs it should execute. But no one of my boxes have more than 2 cores (((.
find . -name '*.txt' | parallel -j4 ./prog

It works (here) as xargs.
And don't confuse GNU parallel with parallel from "moreutils".
This User Gave Thanks to yazu For This Post:
# 9  
Old 09-13-2011
Hi yazu,

How to check that whether we already have install GNU parallel in server?
Thanks for guide.
# 10  
Old 09-13-2011
No, you definitely don't have it - it's too fresh. You should compile it. But it has not to have root privileges and you can install it in your $HOME/bin. The link - GNU Parallel - GNU Project - Free Software Foundation

But I really used 0install (for debian based, ubuntu in my case):
sudo apt-get install zeroinstall-injector
0alias parallel

This User Gave Thanks to yazu For This Post:
# 11  
Old 09-13-2011
thanks, yazu.
Do you have any idea regarding following error message:
/bin/sh: ./sem: Permission denied

I'm not a root. Just an user to install it.
# 12  
Old 09-13-2011
Ok. I don't understand at once that this question about parallel. I'll look at it.

---------- Post updated at 06:50 PM ---------- Previous update was at 06:42 PM ----------

Well I downloaded the latest tarball, and (not as root, of course) :
./configure --prefix=$HOME/opt
make install
parallel --version
  GNU parallel 20110822

seq 1 5 | parallel -j5 echo

Do not see any problems.
These 2 Users Gave Thanks to yazu For This Post:
# 13  
Old 09-14-2011
thanks yazu for assist.
Many appreciate.

Last edited by cpp_beginner; 09-14-2011 at 12:43 AM.. Reason: mistake
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

C Shell Script: While function not fully looping

I am new to scripting and this is probably the 4th or 5th simple script I have written. I am working with a HUGE number of data that need to be organized into folders and named a certain way. I wrote the naming script using a while function to go through the 1000-some folders and rename the files... (0 Replies)
Discussion started by: notluckyhannah
0 Replies

2. Solaris

Can't change fully qualified host name

I tried changing my /etc/inet/hosts file for my server to: <ip address> <hostname> <fqdn> but when I go to reboot the file changes right back to: <ip address> <hostname> how do I get the <fqdn> to stick on a reboot. Thanks (2 Replies)
Discussion started by: jastanle84
2 Replies

3. UNIX for Dummies Questions & Answers

Space occupied by core

Guys, Can some one help me? I need to find the total percent of space occupied by core files on my unix system. I know df -k will give me the percent space utilization for a directory but how do we replicate the space for a file? (3 Replies)
Discussion started by: yabhi_22
3 Replies

4. Shell Programming and Scripting

script to display occupied and non occupied ports in unix

I want to extend this script. This must also be able to show me that a port is already assigned to a service but not running now there must be three different messages port 8949 is open but not listening port 8959 is open port 8999 hasn't been assigned to any service. I know that... (1 Reply)
Discussion started by: charan314
1 Replies

5. Shell Programming and Scripting

how to get fully qualified path name

hi actually i want to get fully qualified path name of the file when the file name is entered as command line argument while running a shell script ex. if i run the shell as $./ ./nsdnet_file.csv the it should display me the full path of the file like /dialp/Release/bin/nsdnet_file.csv... (3 Replies)
Discussion started by: priyanka3006
3 Replies

6. Shell Programming and Scripting

Very Challenging Problem. Please read fully.

Hi, This is the Third thread i'm putting here for the same problem. :( Actually, i'm trying a script like this.. but its taking a long time.. about 3 days to complete fully.. #!/bin/ksh if then exit 1 fi while read i do while read j do field7=`echo $j|cut -d "|"... (12 Replies)
Discussion started by: RRVARMA
12 Replies

7. Solaris

Hostname not fully qualified..

Hi Friends.. I have a small problem with the hostname of my system.I had installed Solaris 10 X86 on Vmware in my windows 2000 system.After booting of my solaris system,if i give check-hostname command it says ,, hostname is not fully qualified ,,change the hostname to (3 Replies)
Discussion started by: sdspawankumar
3 Replies

8. Solaris

Command used for checking space occupied by files & sub-direc's inside a mount in %?

Hi, I want to know the command which can be used for finding the % of disk space occupied by files & sub-folders inside a given mount in Sun Solaris For eg: I have /tmp/ folder when I sat df -k it will give the percentage of space used by /tmp/. Say if I want to see how much % the files &... (2 Replies)
Discussion started by: weblogicsupport
2 Replies

9. UNIX for Advanced & Expert Users

so there is no way to know the size occupied by data ?

I want to find out how many disk blocks are used by only data (and not metadata) by a file. But as far as I can tell, if the file has holes, then there is no way to know this. You can find out the logical size of the file (physical size + hole blocks). You can get the physical size of the... (3 Replies)
Discussion started by: the_learner
3 Replies

10. Programming

How to find out the stack size occupied for a process?

Hi, In Linux how to find out what will be the stack size allocated for a process? Actually i have to fork n number of processess, and will call exec. I will be execing an executable which is already multithreaded and each thread size is defined. My doubt is how to know if the size of the... (2 Replies)
Discussion started by: rvan
2 Replies
Login or Register to Ask a Question