Messages in this thread | | | From | Bernd Eckenfels <> | Subject | Re: why swap at all? | Date | Sat, 29 May 2004 00:28:50 +0200 |
| |
In article <200405290037.17775.vda@port.imtp.ilyichevsk.odessa.ua> you wrote: >> The benchmark involved was ls. It took several seconds. If I ran it again >> in 5 seconds or so, it was fine. Much longer and it would take several >> seconds again. Sounds like pages getting evicted in LRU order. > > By what magic system can know that you are going to do ls again > in 2 minutes?
The problem is more about the blocks cp touches, less about predicting the ls workload.
> 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.
Greetings Bernd -- eckes privat - http://www.eckes.org/ Project Freefire - http://www.freefire.org/ - 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/
| |