Re: why swap at all?

From: jlnance
Date: Mon May 31 2004 - 05:50:41 EST



> > cp should use fadvise() and say that it _really_ does not need those pages.
>
> Yes, indeed. On the other hand the sequential read could be detected by the kernel, too.

I'm not sure. Copying a file is a pretty good indication that you
are about to do something with either the new or the old file.

Thanks,

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