Language Selection

English French German Italian Portuguese Spanish

CLI Magic: Running multiple jobs with xjobs

Filed under

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.

Full Story.

More in Tux Machines

Open source Gov.UK is 'example of UK soft power'

In introducing Manzoni, Nefkens described the UK as a world leader in the “digital transformation of government”, a model even for similar schemes in the USA and Australia. Furthermore, New Zealand has used source code - it’s based on open standards and is open source - to help build out own digital services. Read more

New ELF Linker from the LLVM Project

We have been working hard for a few months now to rewrite the ELF support in lld, the LLVM linker. We are happy to announce that it has reached a significant milestone: it is now able to bootstrap LLVM, Clang, and itself and pass all tests on x86-64 Linux and FreeBSD with the speed expected of an LLVM project. Read more

Altair to Open Source PBS Professional HPC Technology in 2016

“Altair’s open source contribution is valuable and will help advance the work of the OpenHPC Collaborative Project,” said Jim Zemlin, executive director at The Linux Foundation. “By working together to build and extend new technologies for the world’s most complex computing systems, Altair and other members of OpenHPC can accelerate exascale computing.” The open licensing system is scheduled to be released to the open source community in mid-2016. Read more

Thunderbird to be separated from Mozilla

This is a long-ish message. It covers general topics about Thunderbird and the future, and also the topics of the Foundation involvement (point 9) and the question of merging repositories (point 11). Naturally, I believe it’s worth the time to read through the end. Read more