Re: why swap at all?

From: Bernd Eckenfels
Date: Fri May 28 2004 - 17:37:41 EST


In article <200405290037.17775.vda@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/