[lkml]   [2001]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: horrible disk thorughput on itanium
David S. Miller wrote:

> From: Andi Kleen <>
> 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.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

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