Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id E6FB01337B69; Tue, 3 May 2011 11:08:43 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 51757-02; Tue, 3 May 2011 14:08:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pv0-f174.google.com (mail-pv0-f174.google.com [74.125.83.174]) by mail.postgresql.org (Postfix) with ESMTP id 0F4791337A5D; Tue, 3 May 2011 11:08:34 -0300 (ADT) Received: by pvg12 with SMTP id 12so43020pvg.19 for ; Tue, 03 May 2011 07:08:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Dp/cykPv5JfGkVwLuAO1abOF5coQiH9Fl9tKmrviiYs=; b=iVOj0yh/oq33/fE8XwMdR0Uq5EbZ5SdCLfCkmSu5xQMWGN0bMUHrcDwurTnVnAKN0S YMqCJmPYYfvHi4x4x9UoPaS7ohRhKLSI0bwqsshwbhN1OEwExW6jaIYqz9kPeX3+4hvL 9CkfKpcCIP7pxKnJjiQZokEi5OuCXeGlexgQs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=f++7S13xBRKuurYB+5h4MpilwD1+tIczHkApDx2fvbGNC7S2vNslHRjsC2Pn+P5ccg R1cbzsWrRD5n1k/H18YAHVdXSQCVouQs+EPLmLsurQP1nxUoGFpareJqyKyrmMJjhHBf 0aNsc3HpmLTV5gRd9uSR0krr/RNacSD/4yrFU= MIME-Version: 1.0 Received: by 10.68.34.74 with SMTP id x10mr11044367pbi.175.1304431715077; Tue, 03 May 2011 07:08:35 -0700 (PDT) Received: by 10.68.62.129 with HTTP; Tue, 3 May 2011 07:08:35 -0700 (PDT) In-Reply-To: References: Date: Tue, 3 May 2011 09:08:35 -0500 Message-ID: Subject: Re: [GENERAL] Can we Flush the Postgres Shared Memory ? From: Merlin Moncure To: =?ISO-8859-1?Q?C=E9dric_Villemain?= Cc: raghu ram , Raghavendra , Simon Riggs , pgsql-admin , pgsql-general , pgsql novice Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.898 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001 X-Spam-Level: X-Archive-Number: 201105/25 X-Sequence-Number: 37462 On Tue, May 3, 2011 at 8:55 AM, C=E9dric Villemain wrote: > 2011/5/3 Merlin Moncure : >> >> no it will not, or at least there is no guarantee it will be. =A0the >> 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). =A0to 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 cach= e > yeah -- good point. aside: does that also drop cache on the drive/raid car= d? merlin