Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 83C99B5DBD6 for ; Wed, 5 Oct 2011 18:54:24 -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 49783-08 for ; Wed, 5 Oct 2011 21:54:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 65CADB5DBC7 for ; Wed, 5 Oct 2011 18:54:17 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id p95LsHs02311; Wed, 5 Oct 2011 17:54:17 -0400 (EDT) From: Bruce Momjian Message-Id: <201110052154.p95LsHs02311@momjian.us> Subject: Re: Allow sorts to use more available memory In-Reply-To: <20110913011516.GU12765@tamriel.snowman.net> To: Stephen Frost Date: Wed, 5 Oct 2011 17:54:17 -0400 (EDT) CC: Robert Schnabel , Scott Marlowe , pgsql-performance X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.404 tagged_above=-10 required=5 tests=BAYES_00=-1.9, RP_MATCHES_RCVD=-0.504 X-Spam-Level: X-Archive-Number: 201110/63 X-Sequence-Number: 45285 Stephen Frost wrote: -- Start of PGP signed section. > * Robert Schnabel (schnabelr@missouri.edu) wrote: > > And getting back to the to-do list entry and reading the related > > posts, it appears that even if you could set work_mem that high it > > would only use 2GB anyway. I guess that was the second part of my > > question. Is that true? > > Errr, and to get back to the to-do (which I've been considering doing > something about...), it's to allow the *actual* memory usage for things > like sorts to use more than 2GB, but as others have pointed out, you can > do that by putting pgsql_tmp on a memory filesystem and letting the > sorts spill to the memory-based FS. It would be nice if the tempfs would allow us to control total temp memory usage, except it causes a failure rather than splilling to real disk. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +