Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NWORKERS keeps CPU down but not memory #16

Open
mjuric opened this issue Mar 5, 2014 · 0 comments
Open

NWORKERS keeps CPU down but not memory #16

mjuric opened this issue Mar 5, 2014 · 0 comments
Assignees

Comments

@mjuric
Copy link
Owner

mjuric commented Mar 5, 2014

Hi Mario,

I've found another case in which the NWORKERS environmental variable doesn't seem to work as I would expect. I'm importing data from 2MASS into an existing database - I previously imported half the data, and now I'm importing the second half.

I've set NWORKERS to 8 by invoking export NWORKERS=8. Then, after entering lsd-import text tmass 2MASS_data/psc_b*, it looks in htop like LSD has spawned ~125 processes.

I tried using NWORKERS=24 before, and a much larger number of processes were spawned, which filled the RAM and swap, and almost brought pan down before I managed to terminate the processes. It looks like NWORKERS has some effect on the number of spawned processes, but it doesn't set the number exactly.

The CPU usage is, however, constrained by NWORKERS. Although a very large number of processes are spawned, the number actually doing work at any given time seems to be NWORKERS. The problem is that all of the inactive processes take up memory, which can easily crash the machine.

Thanks,
-Greg

@mjuric mjuric self-assigned this Mar 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant