Expensive fuser in progress_bar.sh

Dan Nicholson dbn.lists at gmail.com
Mon Jun 26 06:35:50 PDT 2006

On 6/25/06, Dan Nicholson <dbn.lists at gmail.com> wrote:
> I think if you want to be making 8 calls per second, you should try to
> limit them to bash built-ins only.  One option would be to touch a
> file at the beginning of the target script.

Attached is one solution that is working on my box (so far).  The
whole system is noticeably less sluggish while building.  `top' looks
normal again.

/tmp may not be the best place for the temp file.  I suppose you could
put it in $JHALFSDIR instead.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: progress_bar-nofuser.diff
Type: text/x-patch
Size: 2671 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/alfs-discuss/attachments/20060626/1ba51329/attachment.bin>

More information about the alfs-discuss mailing list