On 4/17/15 4:55 PM, John Fremlin wrote:
> Did some benchmarks, for the while true; do (:) & (:); done simple example
> this goes from 215 to 313 iterations/s, and changes sys+user CPU from 152%
> to 45%
> 
> Any long running bash script will tend to exhibit this issue --
I disagree that `any' long-running bash script will create thousands of
asychronous jobs and never call `wait' with no arguments.  It's not
clear that your example above is realistic.

Let's see what happens with your patch to change bash to save statuses of
asynchronous jobs instead of all jobs before we see whether another change
is warranted.

Thanks for your work investigating this.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    c...@case.edu    http://cnswww.cns.cwru.edu/~chet/

Reply via email to