* LFS Support for Sendfile
@ 2002-02-28 0:27 Doug O'Neil
2002-02-28 1:22 ` Doug McNaught
0 siblings, 1 reply; 7+ messages in thread
From: Doug O'Neil @ 2002-02-28 0:27 UTC (permalink / raw)
To: lk
Hello group.
First time poster. If this isn't the right place for this then please point
me in the right direction and accept my apology.
I'm using Linux 2.4.12 on a PIII
I've been playing with sendfile and noticed that it doesn't like 64 bit
filesystems ( _FILE_OFFSET_BITS=64). Is there a patch or kernel revision out
there that supports LFS for sendfile? Or is there some method I can't see
to work around this.
I'm opening a descriptor on a disk partition. I don't need to support
individual block transfers larger than 2 Gig., but would like to serve up
partitions that are larger than 2Gig.
Thanks in advance
Doug
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LFS Support for Sendfile
2002-02-28 0:27 LFS Support for Sendfile Doug O'Neil
@ 2002-02-28 1:22 ` Doug McNaught
2002-02-28 8:03 ` Matti Aarnio
0 siblings, 1 reply; 7+ messages in thread
From: Doug McNaught @ 2002-02-28 1:22 UTC (permalink / raw)
To: Doug O'Neil; +Cc: lk
"Doug O'Neil" <DougO@seven-systems.com> writes:
> Hello group.
>
> First time poster. If this isn't the right place for this then please point
> me in the right direction and accept my apology.
>
> I'm using Linux 2.4.12 on a PIII
That's pretty darn old. Can you try it with a modern kernel (2.4.18)?
-Doug
--
Let us cross over the river, and rest under the shade of the trees.
--T. J. Jackson, 1863
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LFS Support for Sendfile
2002-02-28 1:22 ` Doug McNaught
@ 2002-02-28 8:03 ` Matti Aarnio
2002-03-02 22:24 ` Chris Wedgwood
0 siblings, 1 reply; 7+ messages in thread
From: Matti Aarnio @ 2002-02-28 8:03 UTC (permalink / raw)
To: Doug McNaught; +Cc: Doug O'Neil, lk
On Wed, Feb 27, 2002 at 08:22:10PM -0500, Doug McNaught wrote:
> "Doug O'Neil" <DougO@seven-systems.com> writes:
> > Hello group.
> >
> > First time poster. If this isn't the right place for this then please point
> > me in the right direction and accept my apology.
> >
> > I'm using Linux 2.4.12 on a PIII
>
> That's pretty darn old. Can you try it with a modern kernel (2.4.18)?
Won't help.
The API (kernel syscall) as defined does not support LFS.
mm/filemap.c:
asmlinkage ssize_t sys_sendfile(int out_fd, int in_fd, off_t *offset,
size_t count)
The problem there is that "off_t *" thing. A loff_t in that spot would
solve the problem, but that needs rewriting the thing with a new syscall
number. Trivial in itself, though. (And changeing the count to 64-bit
value is equally trivial at the same time.)
There lurks another problem in the filesystems, though.
All SysV UFS tradition type filesystems with indirect indexing of
disk blocks will need more and more of metadata traversal to reach
actual data blocks on very large files. It slows things down.
The "extent based" filesystems offer flatter performance, and while
I can't determine if ReiserFS is exactly of that type, it too offers
fast and flat performance.
> -Doug
/Matti Aarnio
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: LFS Support for Sendfile
2002-02-28 8:03 ` Matti Aarnio
@ 2002-03-02 22:24 ` Chris Wedgwood
2002-03-03 12:36 ` Hans Reiser
0 siblings, 1 reply; 7+ messages in thread
From: Chris Wedgwood @ 2002-03-02 22:24 UTC (permalink / raw)
To: Matti Aarnio; +Cc: Doug McNaught, Doug O'Neil, lk
On Thu, Feb 28, 2002 at 10:03:25AM +0200, Matti Aarnio wrote:
The API (kernel syscall) as defined does not support LFS.
I wonder does it really need to? I mean, a loop calling sendfile for
2GB (or whatever) at a time is almost as good, if not better in some
ways.
The "extent based" filesystems offer flatter performance, and
while I can't determine if ReiserFS is exactly of that type, it
too offers fast and flat performance.
Reiserfs (v3) isn't extent based but does perform pretty well. When I
was messing large numbers of with (what at the time were) large files
of 50GB or so, XFS proved to be very effective.
--cw
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: LFS Support for Sendfile
2002-03-02 22:24 ` Chris Wedgwood
@ 2002-03-03 12:36 ` Hans Reiser
0 siblings, 0 replies; 7+ messages in thread
From: Hans Reiser @ 2002-03-03 12:36 UTC (permalink / raw)
To: Chris Wedgwood; +Cc: Matti Aarnio, Doug McNaught, Doug O'Neil, lk
Chris Wedgwood wrote:
>On Thu, Feb 28, 2002 at 10:03:25AM +0200, Matti Aarnio wrote:
>
> The API (kernel syscall) as defined does not support LFS.
>
>I wonder does it really need to? I mean, a loop calling sendfile for
>2GB (or whatever) at a time is almost as good, if not better in some
>ways.
>
> The "extent based" filesystems offer flatter performance, and
> while I can't determine if ReiserFS is exactly of that type, it
> too offers fast and flat performance.
>
>Reiserfs (v3) isn't extent based but does perform pretty well. When I
>was messing large numbers of with (what at the time were) large files
>of 50GB or so, XFS proved to be very effective.
>
>
> --cw
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to majordomo@vger.kernel.org
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
>
>
extents are in reiserfs v4.0 (September ship date), and should offer
much improved performance for large files.
Hans
^ permalink raw reply [flat|nested] 7+ messages in thread
[parent not found: <fa.inaf1vv.one4p5@ifi.uio.no>]
end of thread, other threads:[~2002-03-03 21:41 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-28 0:27 LFS Support for Sendfile Doug O'Neil
2002-02-28 1:22 ` Doug McNaught
2002-02-28 8:03 ` Matti Aarnio
2002-03-02 22:24 ` Chris Wedgwood
2002-03-03 12:36 ` Hans Reiser
[not found] <fa.inaf1vv.one4p5@ifi.uio.no>
[not found] ` <fa.esfhmsv.bku814@ifi.uio.no>
2002-03-03 5:08 ` Dan Maas
2002-03-03 5:34 ` Andrew Morton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox