| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [RESEND] tuning linux for high network performance? |
| From: | Karen Shaeffer <shaeffer@xxxxxxxxxxxxxxx> |
| Date: | Thu, 24 Oct 2002 02:37:51 -0700 |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <1035432669.9628.1.camel@rth.ninka.net>; from davem@rth.ninka.net on Wed, Oct 23, 2002 at 09:11:09PM -0700 |
| References: | <200210231218.18733.roy@karlsbakk.net> <20021023130101.GA646@outpost.ds9a.nl> <1035379308.5950.3.camel@rth.ninka.net> <200210231542.48673.roy@karlsbakk.net> <1035432669.9628.1.camel@rth.ninka.net> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.2.5.1i |
On Wed, Oct 23, 2002 at 09:11:09PM -0700, David S. Miller wrote: > On Wed, 2002-10-23 at 06:42, Roy Sigurd Karlsbakk wrote: > > As far as I've understood, sendfile() won't do much good with large files. > > Is > > this right? > > There is always a benefit to using sendfile(), when you use > sendfile() the cpu doesn't touch one byte of the data if > the network card support TX checksumming. The disk DMAs > to ram, then the net card DMAs from ram. Simple as that. Referring to: $ rpm -qf /usr/include/sys/sendfile.h glibc-devel-2.2.5-40 quoting "sendfile.h" #ifdef __USE_FILE_OFFSET64 # error "<sys/sendfile.h> cannot be used with _FILE_OFFSET_BITS=64" #endif So, how does one use sendfile() for large files that are greater than 2 GBytes? Am I missing something? Thanks, Karen -- Karen Shaeffer Neuralscape; Santa Cruz, Ca. 95060 shaeffer@xxxxxxxxxxxxxxx http://www.neuralscape.com |
| Previous by Date: | Re: [PATCH] IPv6: Sysctl for ICMPv6 Rate Limitation, YOSHIFUJI Hideaki / 吉藤英明 |
|---|---|
| Next by Date: | Re: O_DIRECT sockets? (was [RESEND] tuning linux for high network performance?), Roy Sigurd Karlsbakk |
| Previous by Thread: | Re: [RESEND] tuning linux for high network performance?, David S. Miller |
| Next by Thread: | sendfile64() anyone? (was [RESEND] tuning linux for high network performance?), Roy Sigurd Karlsbakk |
| Indexes: | [Date] [Thread] [Top] [All Lists] |