Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 785EA9FA001 for ; Sat, 18 Nov 2006 14:48:19 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 07833-04 for ; Sat, 18 Nov 2006 14:48:16 -0400 (AST) X-Greylist: delayed 00:59:59.890498 by SQLgrey- Received: from mail.apoexpress.de (mail.apoexpress.de [62.153.135.53]) by postgresql.org (Postfix) with ESMTP id 7F72E9F9B3F for ; Sat, 18 Nov 2006 14:48:14 -0400 (AST) Received: from [192.168.0.5] (84.60.172.115) by mail.apoexpress.de with ESMTP (Eudora Internet Mail Server X 3.2.8); Sat, 18 Nov 2006 18:48:06 +0100 To: brian@shoptoit.ca (Brian Wipf), pgsql-performance@postgresql.org In-Reply-To: Subject: Re: shared_buffers > 284263 on OS X From: lists@event-s.net (Guido Neitzer) Date: Sat, 18 Nov 2006 18:48:07 +0100 Message-ID: <1hp0hfj.1w6pgseogv3b4M%lists@event-s.net> Organization: Event-s User-Agent: MacSOUP/D-2.7 (Mac OS X version 10.4.8) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200611/150 X-Sequence-Number: 21920 Brian Wipf wrote: > I'm trying to optimize a PostgreSQL 8.1.5 database running on an > Apple G5 Xserve (dual G5 2.3 GHz w/ 8GB of RAM), running Mac OS X > 10.4.8 Server. > > The queries on the database are mostly reads, and I know a larger > shared memory allocation will help performance (also by comparing it > to the performance of the same database running on a SUSE Linux box, > which has a higher shared_buffers setting). > > When I set shared_buffers above 284263 (~ 2.17 GB) in the > postgresql.conf file, I get the standard error message when trying to > start the db: It might be, that you hit an upper limit in Mac OS X: [galadriel: memtext ] cug $ ./test test(291) malloc: *** vm_allocate(size=2363490304) failed (error code=3) test(291) malloc: *** error: can't allocate region test(291) malloc: *** set a breakpoint in szone_error to debug max alloc = 2253 M That seems near the size you found to work. I don't really know much about that, but it seems you just can't alloc more memory than a bit over 2GB. So, be careful with my non-existing knowledge about that ... ;-) cug