Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1EF1764FCD7 for ; Wed, 17 Sep 2008 21:40:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 66941-01 for ; Wed, 17 Sep 2008 21:40:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.239]) by postgresql.org (Postfix) with ESMTP id A68C064FCCA for ; Wed, 17 Sep 2008 21:40:20 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so4461308rvf.43 for ; Wed, 17 Sep 2008 17:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Cz7hR068CUVFvj0uZj0Y6vUp/IKo7ZN/3BMx51nI7mA=; b=LUcvqtLNyChYjTbfs9EJf8b8CrgKSaAYrIZgAs+k+TPrpnl5rwnmAs7h8FAyOCW+jm T/puUJWcaaLlPKikvHsuiz3ui4j8JGHffFP5qQ517OyeTZDBvn2kKdSe6rKK2bC231MA s3X5BzpLNzwDe8JKS9ze56r30v+CLp1bwivUc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=he1pIMmet7VfgZkPiWCMPjClK1OqwGATH37+OGCW1+nyQoPHpkAWR8m0DoSxw2OW+I ORhNolx/TIrKEqGwc3NqLteG7s5mhvulIX9FpkFlMZ7hD/plbH1aWi2SimhCI/SJHqBt 26Qnf6WqKbcyug6V0NZfY81PFiD/IxHzVJcC4= Received: by 10.141.97.5 with SMTP id z5mr6951466rvl.226.1221698419104; Wed, 17 Sep 2008 17:40:19 -0700 (PDT) Received: by 10.141.74.11 with HTTP; Wed, 17 Sep 2008 17:40:19 -0700 (PDT) Message-ID: Date: Wed, 17 Sep 2008 18:40:19 -0600 From: "Scott Marlowe" To: steve@outtalimits.com.au Subject: Re: Postgres && Swap Cc: pgsql-admin@postgresql.org In-Reply-To: <2f860102cfbbc11cfa67fe892b19417d@127.0.0.1> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2f860102cfbbc11cfa67fe892b19417d@127.0.0.1> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/191 X-Sequence-Number: 30284 Well, there's plenty of negatives to not doing it. Like postgresql's large shared_buffers getting swapped out to make more space for disk buffers. So, pgsql goes to grab data from shared buffers and has to wait for the OS to swap them back in. On Wed, Sep 17, 2008 at 4:28 PM, wrote: > Is there any negative effects by doing this? > > The swappiness is sitting on the default 60 at the moment. > > On Wed, 17 Sep 2008 00:46:13 -0600, "Scott Marlowe" > wrote: >> On Tue, Sep 16, 2008 at 11:30 PM, wrote: >>> Hi All >>> >>> >>> I recently made a change to my Postgres Server and upped the >> max_fsm_page >>> size to 60000 >>> Since then, Postgres has been using about 30-80MB of swap space. >>> >>> This box has 4GB of RAM. All up Postgres has not been allocated no more >>> than 3G >>> >>> Is this swapping something to be worried about? >> >> I recommend turning swappiness down in linux that should stop pg from >> getting prematurely swapped out like that. >