libosmocore stderr log performance / blocking

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Harald Welte laforge at osmocom.org
Sat Sep 26 17:57:01 UTC 2020


On Sat, Sep 26, 2020 at 07:50:14PM +0200, Harald Welte wrote:
> One idea would be to play with setvbuf(3) to increase stderr buffering
> inside libc.

I just tried; at least for gnome-terminal it did not at all change the
results, even if a 1MByte buffer was used in setvbuf().  I thoght this could
be related to our use of fflush() in stderr logging.  But even when removing
the fflush() I could still see those 64..128ms stalls when running the test
program via gnome-terminal.  Not sure what's going on, but definitely we
can stop looking at setvbuf() as a solution.

-- 
- Harald Welte <laforge at osmocom.org>            http://laforge.gnumonks.org/
============================================================================
"Privacy in residential applications is a desirable marketing option."
                                                  (ETSI EN 300 175-7 Ch. A6)



More information about the OpenBSC mailing list