Re: Speeding up swap

Gerd Knorr (kraxel@goldbach.in-berlin.de)
Sun, 24 Oct 1999 20:12:34 +0200


In lists.linux.kernel, you wrote:
> On Sun, Oct 24, 1999 at 09:29:44AM -0700, David Schwartz wrote:
> > If you allow it to be used by non-privileged processes, you create the
> > potential for an untrusted process to cause ridiculous amounts of physical
> > I/O. Although one could argue that an untrusted process can currently cause
> > as much damage by repeatedly reading sequentially through a file much larger
> > than physical memory.
> >
>
> That's why I suggested that it is perhaps useful that the user
> process gives up its ability to seek() on this fd.

Bad idea IMHO. If you are writing a file, it might happen that you have to
seek back to the start of the file and fill some headers when you are done.
For example when recording movies.

Gerd

-- 
<script>alert("WARNING: You have JavaScript enabled.");</script>

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