Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 9BACE475F58 for ; Wed, 14 Aug 2002 09:41:11 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 012AF475E0E for ; Wed, 14 Aug 2002 09:41:11 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7EDf2Vk007559; Wed, 14 Aug 2002 09:41:02 -0400 (EDT) To: David Gilbert Cc: "Thomas O'Connell" , pgsql-admin@postgresql.org Subject: Re: performance tuning: shared_buffers, sort_mem; swap In-reply-to: <15706.20957.753062.582158@canoe.velocet.net> References: <27214.1029257785@sss.pgh.pa.us> <1372.1029274016@sss.pgh.pa.us> <15705.36038.645823.820155@canoe.velocet.net> <4195.1029296149@sss.pgh.pa.us> <15706.20957.753062.582158@canoe.velocet.net> Comments: In-reply-to David Gilbert message dated "Wed, 14 Aug 2002 08:49:33 -0400" Date: Wed, 14 Aug 2002 09:41:01 -0400 Message-ID: <7558.1029332461@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/181 X-Sequence-Number: 5296 David Gilbert writes: > "Tom" == Tom Lane writes: > Tom> Well, I must say this is the first time I've heard of "BSD-style > Tom> shared memory". > The canonical example is to mmap() a file multiply. Oh. Yes, as Curt said, this issue has been beaten to death already; see the archives. You could in fact use a MAP_ANON region as a replacement for SysV shared memory, but AFAICT you would lose a rather important interlock against starting a new postmaster when old backends remain alive. Ugly as the SysV API is, it does some things we need rather nicely. > One bonus of bsd shared memory (when anonymous) is that it dies with > the process ... even in the worst case. But in fact we don't *want* it to be anonymous. regards, tom lane