Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 5924D632B86 for ; Mon, 14 Jun 2010 20:21:46 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 01335-04 for ; Mon, 14 Jun 2010 23:21:37 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by mail.postgresql.org (Postfix) with ESMTP id C5501632876 for ; Mon, 14 Jun 2010 20:21:38 -0300 (ADT) Received: by wwb18 with SMTP id 18so4333792wwb.19 for ; Mon, 14 Jun 2010 16:21:36 -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 :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=lCNDLgbTZlzNIT2r0JW/Cw7CHBOnnF+s4UGQmuducyc=; b=gCz2OaKyu/JJhfUvCep3cLSW0jQXaweRCpoiDQ/vcckMRl/vyjZ14IN62BjK1nVZli W0pL1HgHXLoqnSdUrcGIgcWTJr+2udwkCNyjKt8gSnsGN29rwOhbAxU6GxAuSxSQJXHC NPhE4xyU3l49WFPio/36Wd6mG/bBozeTPkUiA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=lJBOz4qzb6ImI0AenmszBHP+krN5pNJyXcXp+IoJJ+1MAxcgkhEmBRhhXxVWV4g5bz SRndBW6vzc+5fBW+lk6uExvtx2zgwRvxrYpfX+bwjynprnHhKwASRo7Wd8T5SJXcoUiV pNx4vZjXd/Ilnfw+mnf2mFYzRir3Km68rGwXE= Received: by 10.227.128.85 with SMTP id j21mr6479925wbs.0.1276557696263; Mon, 14 Jun 2010 16:21:36 -0700 (PDT) Received: from Tom-Wilcoxs-MacBook.local (93-97-110-189.zone5.bethere.co.uk [93.97.110.189]) by mx.google.com with ESMTPS id n31sm12150399wba.9.2010.06.14.16.21.35 (version=SSLv3 cipher=RC4-MD5); Mon, 14 Jun 2010 16:21:35 -0700 (PDT) Message-ID: <4C16B97F.4080201@gmail.com> Date: Tue, 15 Jun 2010 00:21:35 +0100 From: Tom Wilcox User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Robert Haas , pgsql-performance@postgresql.org Subject: Re: requested shared memory size overflows size_t References: <584872.74177.qm@web39702.mail.mud.yahoo.com> <4C167A8D.1060002@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201006/302 X-Sequence-Number: 39158 Thanks. I will try with a more sensible value of wal_buffers.. I was hoping to keep more in memory and therefore reduce the frequency of disk IOs.. Any suggestions for good monitoring software for linux? On 15/06/2010 00:08, Robert Haas wrote: > On Mon, Jun 14, 2010 at 2:53 PM, Tom Wilcox wrote: > >> maintenance_work_mem=4GB >> work_mem=4GB >> shared_buffers=4GB >> effective_cache_size=4GB >> wal_buffers=1GB >> > It's pretty easy to drive your system into swap with such a large > value for work_mem - you'd better monitor that carefully. > > The default value for wal_buffers is 64kB. I can't imagine why you'd > need to increase that by four orders of magnitude. I'm not sure > whether it will cause you a problem or not, but you're allocating > quite a lot of shared memory that way that you might not really need. > >