Re: [GENERAL] Can we Flush the Postgres Shared Memory ? - Mailing list pgsql-admin

From Merlin Moncure
Subject Re: [GENERAL] Can we Flush the Postgres Shared Memory ?
Date
Msg-id BANLkTim_LQ3oMVonYNX5-vbvw6d2A_M7vQ@mail.gmail.com
Whole thread Raw
In response to Re: [GENERAL] Can we Flush the Postgres Shared Memory ?  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
Responses Re: [GENERAL] Can we Flush the Postgres Shared Memory ?  (Cédric Villemain <cedric.villemain.debian@gmail.com>)
List pgsql-admin
On Tue, May 3, 2011 at 8:55 AM, Cédric Villemain
<cedric.villemain.debian@gmail.com> wrote:
> 2011/5/3 Merlin Moncure <mmoncure@gmail.com>:
>>
>> no it will not, or at least there is no guarantee it will be.  the
>> only way to reset the buffers in that sense is to restart the database
>> (and even then they might not be read from disk, because they could
>> sit in the o/s cache).  to force a read from the drive you'd have to
>> reboot the server, or at least shut it down and use a lot of memory
>> for some other purpose.
>
> with linux, you can : "echo 3 > /proc/sys/vm/drop_caches" for the OS cache
>

yeah -- good point.  aside: does that also drop cache on the drive/raid card?

merlin

pgsql-admin by date:

Previous
From: Cédric Villemain
Date:
Subject: Re: [GENERAL] Can we Flush the Postgres Shared Memory ?
Next
From: Cédric Villemain
Date:
Subject: Re: [GENERAL] Can we Flush the Postgres Shared Memory ?