lkml.org 
[lkml]   [2001]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: horrible disk thorughput on itanium
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/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.161 / U:18.740 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site