Re: horrible disk thorughput on itanium

From: Padraig Brady (padraig@antefacto.com)
Date: Fri Dec 07 2001 - 16:00:20 EST


David S. Miller wrote:

> From: Andi Kleen <ak@suse.de>
> Date: 07 Dec 2001 14:54:49 +0100
>
> It is a common problem on all OS that eventually got threadsafe stdio.
> I bet putc sucks on Solaris too.
>
> Nope, they even inline the full implementation it in their header
> files so they beat even our putc_unlocked() to the point it is
> embarassing.

glibc does this also?
from /usr/include/libio.h

#define _IO_putc_unlocked(_ch, _fp) \
    (((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end) \
     ? __overflow (_fp, (unsigned char) (_ch)) \
     : (unsigned char) (*(_fp)->_IO_write_ptr++ = (_ch)))

I'm just thinking however that apps compiled with the
above will break with Linus' suggestion of using locks
only after a pthread_create(), as they don't really
call the library in the above case at all.

Padraig.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 07 2001 - 21:00:40 EST