bug-parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GNU Parallel Bug Reports loadavg_cmd looks at processes ignoring threads


From: Leonid German
Subject: GNU Parallel Bug Reports loadavg_cmd looks at processes ignoring threads
Date: Mon, 8 Feb 2016 16:24:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

Hi,

when using the --load option, one can observe that processes are being
started even though the machine is overloaded.

GNU Parallel computes the load average "as the number of processes
waiting for disk or CPU right now". The following command in loadavg_cmd
is used to get the count "ps ax -o state,command". However, if a process
is running threads, like MATLAB does, the process (or main thread) is
listed as sleeping (S).

I suggest using the H option, showing threads as if they were processes,
e.g. "ps axH -o state,command".

The difference in my particular case is that 15 processes are shown
running, which would allow parallel to start more. In reality 85 threads
are running, overloading the CPU.

Best regards,
Leonid German



reply via email to

[Prev in Thread] Current Thread [Next in Thread]