Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C8CE0475D22 for ; Tue, 14 Jan 2003 14:01:49 -0500 (EST) Received: from web21104.mail.yahoo.com (web21104.mail.yahoo.com [216.136.227.106]) by postgresql.org (Postfix) with SMTP id 2AB1C475BA1 for ; Tue, 14 Jan 2003 14:01:49 -0500 (EST) Message-ID: <20030114190149.7293.qmail@web21104.mail.yahoo.com> Received: from [131.142.161.245] by web21104.mail.yahoo.com via HTTP; Tue, 14 Jan 2003 11:01:49 PST Date: Tue, 14 Jan 2003 11:01:49 -0800 (PST) From: CaptainX0r Reply-To: captainx0r@yahoo.com Subject: Re: Sun vs. Mac - best Postgres platform? To: pgsql-performance@postgresql.org In-Reply-To: <20030114133046.T5335@mail.libertyrms.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/105 X-Sequence-Number: 752 --- Andrew Sullivan wrote: > On Tue, Jan 14, 2003 at 10:10:54AM -0800, CaptainX0r wrote: > > > could you post your $PGDATA/postgresql.conf for our > viewing > > > pleasure ? > > > > max_connections = 64 > > shared_buffers = 65536 # 1/2 total RAM /8K > > sort_mem = 100000 # min 64, size in KB > ^^^^^^ > There's your problem. Don't set that anywhere near that high. > If you run 2 queries that require sorting, _each sort_ can use > up to > 100000 K. Which can chew up all your memory pretty fast. I changed back to the default 1024, and down to the minimum, 64 - no change. I think that was changed simultaneously with some other parameter (bad, I know) that actually had an affect. I guess I can remove it. > > effective_cache_size = 65536 # typically 8KB each > > What basis did you have to change this? Have you done work > figuring out how big the kernel's disk cache is regularly on > that system? I read somewhere that this should be set to half the system RAM size, 64k*8k=512m = 1/2 of the 1 Gig RAM. I guess this is way off since you're saying that it's disk cache. This agrees with the documentation. I can't really rely on the (precious little Solaris postgres) info I find on the net.... ;) Unfortunately, setting back to 1000 doesn't appear to help. > > Hannu brings up a good point - one that was debated before > > my attempts at making Solaris faster. If you were going to > make a > > fast postgres server what would you use? Assuming you could > > afford a SunFire 280R (~$8k?), would that money be better > > spent on a (say) Dell server running (say) linux? We're > > doing light > > I've been finding FreeBSD way faster than Linux. But yes. I like to hear this since I'm a big FreeBSD fan. So far I think I've understood this as: FreeBSD > Linux > OSX > Solaris. Thanks much for the input, -X __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com