This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: horrible disk thorughput on itanium
- From: Geoff Keating <geoffk at geoffk dot org>
- To: akpm at zip dot com dot au
- Cc: drepper at redhat dot com, torvalds at transmeta dot com, libc-alpha at sources dot redhat dot com
- Date: Fri, 7 Dec 2001 18:17:46 -0800
- Subject: Re: horrible disk thorughput on itanium
- References: <p73r8q86lpn.fsf@amdsim2.suse.de> <Pine.LNX.4.33.0112070710120.747-100000@mikeg.weiden.de> <9upmqm$7p4$1@penguin.transmeta.com> <u8k7vylu72.fsf@gromit.moeb>, <u8k7vylu72.fsf@gromit.moeb> <m3r8q67oqd.fsf@myware.mynet> <3C1159BF.95158321@zip.com.au>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> Date: Fri, 07 Dec 2001 16:07:27 -0800
> From: Andrew Morton <akpm@zip.com.au>
> In answer to Geoff Keating's question, this program:
>
> #include <stdio.h>
>
> main()
> {
> int i;
>
> for (i = 0; i < 100*1000*1000; i++)
> putc(0, stdout);
> exit(0);
> }
>
> when directed to /dev/null takes 7.5 seconds. But only 1.3 seconds
> with putc_unlocked.
I well believe that, since putc_unlocked is a macro which can be
inlined and then further optimised, but I was referring to the
proposed change to putc(), which doesn't make it a macro and actually
adds more code.
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>