bug-bash
[Top][All Lists]
Advanced

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

Re: [PATCH] circular buffer + hash for jobs.c:bgpids


From: Chet Ramey
Subject: Re: [PATCH] circular buffer + hash for jobs.c:bgpids
Date: Sun, 19 Apr 2015 20:24:56 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0

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    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

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