Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 6AC67B5DBFC for ; Mon, 12 Sep 2011 22:15:22 -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 70645-01 for ; Tue, 13 Sep 2011 01:15:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tamriel.snowman.net (tamriel.snowman.net [72.66.115.51]) by mail.postgresql.org (Postfix) with ESMTP id 21C06B5DBD1 for ; Mon, 12 Sep 2011 22:15:16 -0300 (ADT) Received: by tamriel.snowman.net (Postfix, from userid 1000) id 6AF1522972; Mon, 12 Sep 2011 21:15:16 -0400 (EDT) Date: Mon, 12 Sep 2011 21:15:16 -0400 From: Stephen Frost To: Robert Schnabel Cc: Scott Marlowe , pgsql-performance Subject: Re: Allow sorts to use more available memory Message-ID: <20110913011516.GU12765@tamriel.snowman.net> References: <4E6E426D.7060405@missouri.edu> <4E6E830E.30701@missouri.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="O2qoDrRdTxptnP8M" Content-Disposition: inline In-Reply-To: <4E6E830E.30701@missouri.edu> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/2.6.32-5-amd64 (x86_64) X-Uptime: 21:14:22 up 222 days, 9:44, 12 users, load average: 0.10, 0.07, 0.01 User-Agent: Mutt/1.5.20 (2009-06-14) 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: 201109/176 X-Sequence-Number: 44952 --O2qoDrRdTxptnP8M Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * 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. =09 Thanks, Stephen --O2qoDrRdTxptnP8M Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk5urqQACgkQrzgMPqB3kijemACcDlLbseP8KGjOBcAHtMb9OnET 3NwAnizJkqPDYvDjg//puuWIQ8jvq28U =N4zM -----END PGP SIGNATURE----- --O2qoDrRdTxptnP8M--