Sobolev.space

Random notes mostly on Machine Learning

Articles tagged linux

Exploiting Multiple Machines for Embarrassingly Parallel Applications

During work on my machine learning project I needed to perform some quite computation-heavy calculations several times — each time with a bit different inputs. These calculations were CPU and memory bound, so just spawning them all at once would just slow down overall running time because of the increased amount of context switches. Yet running 4 (=number of cores in my CPU) of them at a time (actually, 3 since other applications need CPU, too) should speed it up.

Fortunately, I have an old laptop with 2 cores as well as access to a somewhat more modern machine with 4 cores. That results in 10 cores spread across 3 machines (all of 'em have some version of GNU Linux installed). The question was how to exploit such a treasury.