Re: Scheduler ( was: Just a second ) ...

Ryan Cumming (bodnar42@phalynx.dhs.org)
Wed, 19 Dec 2001 20:04:10 -0800


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/