lkml.org 
[lkml]   [2001]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Scheduler ( was: Just a second ) ...
Date
On December 19, 2001 19:50, Rik van Riel wrote:
> On Tue, 18 Dec 2001, Linus Torvalds wrote:
> > The thing is, I'm personally very suspicious of the "features for that
> > exclusive 0.1%" mentality.
>
> Then why do we have sendfile(), or that idiotic sys_readahead() ?

Damn straights

sendfile(2) had an oppertunity to be a real extention of the Unix philosophy.
If it was called something like "copy" (to match "read" and "write"), and
worked on all fds (even if it didn't do zerocopy, it should still just work),
it'd fit in a lot more nicely than even BSD sockets. Alas, as it is, it's
more of a wart than an extention.

Now, sys_readahead() is pretty much the stupidest thing I've ever heard. If
we had a copy(2) syscall, we could do the same thing by: copy(sourcefile,
/dev/null, count). I don't think sys_readahead() even qualifies as a wart.

-Ryan
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.086 / U:0.136 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site