Re: horrible disk thorughput on itanium

From: Padraig Brady (
Date: Sat Dec 08 2001 - 11:29:35 EST

Linus Torvalds wrote:

> On Fri, 7 Dec 2001, Padraig Brady wrote:
>>glibc does this also?
>>from /usr/include/libio.h
> Almost NOBODY uses "putc_unlocked()". It did not even _exist_ ten
> years ago, and it's one of those POSIX things that very few people
> are aware of.

There are loads of function macros like this in libio.h unfortunately,
so it would break binary compatability, albeit for a minority of
programs. For e.g. I know gnu textutils use the unlocked functions
(because I put them in :-(). This is what you get for exporting glibc
internal structures, high coupling/low cohesion for short-sighted
performance gains (but I suppose only hindsight is 20:20 :-)).

> I know stdio is not historically the fastest way to do IO, but hey,
> that's not an excuse for making it _really_ slow.

I absolutely agree, and this change is something that should definitely
be done for the next major version (7) (which will break binary

Also since it wouldn't break source compatability it might be considered
important enough to change, but I doubt it (note the new unlocked
textutils have not been generally released yet).


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

This archive was generated by hypermail 2b29 : Sat Dec 15 2001 - 21:00:12 EST