Re: Is sendfile all that sexy?

From: Ingo Molnar (mingo@elte.hu)
Date: Sun Jan 14 2001 - 14:09:54 EST


On Sun, 14 Jan 2001, jamal wrote:

> Already doing the single file, single process. [...]

in this case there could still be valid performance differences, as
copying from user-space is cheaper than copying from the pagecache. To
rule out SMP interactions, you could try a UP-IOAPIC kernel on that box.

(I'm also curious what kind of numbers you'll get with the zerocopy
patch.)

> However, i do run by time which means i could read the file from the
> begining(offset 0) to the end then re-do it for as many times as
> 15secs would allow. Does this affect it? [...]

no, in the case of a single thread this should have minimum impact. But
i'd suggest to increase the /proc/sys/net/tcp*mem* values (to 1MB or
more).

        Ingo

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



This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 21:00:39 EST