crouse Site Admin

Joined: 17 Apr 2025 Posts: 8985 Location: Iowa
|
Posted: Fri Oct 13, 2025 6:44 am Post subject: Running multiple jobs with xjobs |
|
|
Hmmmmmmm I may have to try this thing out..... since i have two dual processor machines still....... now....what jobs do i need to do ... lol
Running multiple jobs with xjobs
http://www.linux.com/article.pl?sid=06/10/08/1814214
Quote: |
Ever feel like you're not getting the most out of your multiprocessor machine? The xjobs utility allows you to schedule several processes to run simultaneously to make the most of your system's resources.
Xjobs takes a list of arguments from standard input and passes them to a utility, or takes a list of commands from a script, and then runs the jobs in parallel. If you have a multiprocessor machine, xjobs will automatically run one job per processor by default. For instance, on a dual-CPU machine, if you run ls -1 *gz | xjobs gunzip, xjobs will gunzip two files at a time by default. If you run the same command on a quad-CPU machine, it will gunzip four files at a time by default, until it runs out of files to process.
Getting xjobs
Xjobs isn't in any of the major distros, so you'll need to compile it from source. This shouldn't be difficult; just make sure that you have GNU Flex installed -- which should be available in any major Linux distro.
Grab the most recent release of xjobs from the utility's homepage. Uncompress the tarball using tar -zxvf xjobs-xxxxxxxx.tgz, replacing xxxxxxxx with the current version of xjobs, and then use cd to move to the new xjobs-xxxxxxxx directory.
Next, run make install to compile and install xjobs. As long as you have GNU Make, Flex, and the C compiler installed, everything should run fine. So far, I've compiled xjobs on CentOS 4.3, Ubuntu Dapper on AMD64, and Nexenta with no problems.
|
flex: The Fast Lexical Analyzer
http://flex.sourceforge.net/
the home of the xjobs utility
http://www.maier-komor.de/xjobs.html
_________________ Arch Linux 0.7.2 Gimmick Kernel 2.6.18-7-ARCH
OpenSUSE 10.1 Kernel 2.6.13-15.8-smp #1 SMP
Redhat Linux 3.0ES
|
|