diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-20 13:48:26 (GMT) |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2007-05-20 13:48:26 (GMT) |
commit | 4fb8055bf7165d681dbe7ba5d10d8f98a5043d92 (patch) | |
tree | f240fc986f75cb724a2e7d416ea92b89c172c317 /patches/linux/2.4.26/linux-2.4.21-allow-gcc-3.3-arm-lib.patch | |
parent | 5d2b862edcc5c39e7a336c7a4868701495b5be57 (diff) |
Ah! I finally have a progress bar that doesn't stall the build!
- pipe size in Linux is only 8*512=4096 bytes
- pipe size is not setable
- when the feeding process spits out data faster than the eating
process can read it, then the feeding process stalls after 4KiB
of data sent to the pipe
- for us, the progress bar would spawn a sub-shell every line,
and the sub-shell would in turn spawn a 'date' command.
Which was sloooww as hell, and would cause some kind of a
starvation: the pipe was full most of the time, and the
feeding process was stalled all this time.
Now, we use internal variables and a little hack based onan offset
to determine the elapsed time. Much faster this way, but still
CPU-intensive.
Diffstat (limited to 'patches/linux/2.4.26/linux-2.4.21-allow-gcc-3.3-arm-lib.patch')
0 files changed, 0 insertions, 0 deletions