Re: Warm-up cache may have its virtue - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Warm-up cache may have its virtue
Date
Msg-id 10366.1136510243@sss.pgh.pa.us
Whole thread Raw
In response to Warm-up cache may have its virtue  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Responses Re: Warm-up cache may have its virtue  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
List pgsql-hackers
Qingqing Zhou <zhouqq@cs.toronto.edu> writes:
> Hinted by this thread:
>     http://archives.postgresql.org/pgsql-performance/2006-01/msg00016.php
> I wonder if we should really implement file-system-cache-warmup strategy
> which we have discussed before.

The difference between the cached and non-cached states is that the
kernel has seen fit to remove those pages from its cache.  It is
reasonable to suppose that it did so because there was a more immediate
use for the memory.  Trying to override that behavior will therefore
result in de-optimizing the global performance of the machine.

If the machine is actually dedicated to Postgres, I'd expect disk pages
to stay in cache without our taking any heroic measures to keep them
there.  If they don't, that's a matter for kernel configuration tuning,
not "warmup" processes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Questions on printtup()
Next
From: Qingqing Zhou
Date:
Subject: Re: Warm-up cache may have its virtue