[ECOS] Redboot console performance tweak

Christoph Csebits christoph.csebits@frequentis.com
Tue Sep 10 10:50:00 GMT 2002


On Tue, Sep 10, 2002 at 01:05:55PM -0400, Mark Salter wrote:
> I'm not sure. How are you configuring/running the hello world app?
As usual :-).

net/net_io.c contains the following code:

    if ((++out_buflen == sizeof(out_buf)) ||
        (have_hash && (++hash_count == 3))) {
        net_io_flush();

this means, that net_io_flush() is only called
if the to be written data exceeds sizeof(out_buf)
which is 1024.
What about writing once "Hello World\n",
which is about 12 characters? RedBoot will never
show it.

reverting the tweak to ( note: the ( c =='\n') ):
    if ((++out_buflen == sizeof(out_buf)) || ( c =='\n') ||
        (have_hash && (++hash_count == 3))) {
        net_io_flush();

and the string is displayed.

Christoph

-- 

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list