X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 635189F9CAA for ; Wed, 14 Jun 2006 13:58:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 40802-01 for ; Wed, 14 Jun 2006 13:58:43 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp1.ActiveState.com (gw.activestate.com [209.17.183.249]) by postgresql.org (Postfix) with ESMTP id 8E1979FA64B for ; Wed, 14 Jun 2006 13:58:14 -0300 (ADT) Received: from smtp3.activestate.com (smtp3.activestate.com [192.168.3.19]) by smtp1.ActiveState.com (8.12.10/8.12.10) with ESMTP id k5EGwB9h020891; Wed, 14 Jun 2006 09:58:11 -0700 (envelope-from mischa@ca.sophos.com) Received: from [192.168.99.210] (mallet.activestate.com [192.168.99.210]) by smtp3.ActiveState.com (8.13.4/8.13.4) with ESMTP id k5EGwAqI030331; Wed, 14 Jun 2006 09:58:11 -0700 (envelope-from mischa@ca.sophos.com) Message-ID: <4490420C.1030609@ca.sophos.com> Date: Wed, 14 Jun 2006 10:06:20 -0700 From: Mischa Sandberg Reply-To: mischa@ca.sophos.com User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Tom Lane CC: pgsql-performance@postgresql.org Subject: Re: Solaris shared_buffers anomaly? References: <1150151282.14661.42.camel@tigger> <20060613000441.GI8588@kenobi.snowman.net> <20060613200810.GZ34196@pervasive.com> <448F3A6E.6080908@ca.sophos.com> <11046.1150237327@sss.pgh.pa.us> <448F449A.6030900@ca.sophos.com> <18773.1150250672@sss.pgh.pa.us> In-Reply-To: <18773.1150250672@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/259 X-Sequence-Number: 19616 Tom Lane wrote: > Mischa Sandberg writes: >> Tom Lane wrote: >>> Does Solaris have any call that allows locking a shmem segment in RAM? >> Yes, mlock(). But want to understand what's going on before patching. > > Sure, but testing it with mlock() might help you understand what's going > on, by eliminating one variable: we don't really know if the shmem is > getting swapped, or something else. >> For a dedicated DB server machine, Solaris has a feature: >> create "intimate" shared memory with shmat(..., SHM_SHARE_MMU). >> All backends share the same TLB entries (!). > > We use that already. (Hmm, might be interesting for you to turn it > *off* and see if anything changes. See src/backend/port/sysv_shmem.c.) Gah. Always must remember to RTFSource. And reproduce the problem on a machine I control :-) -- Engineers think that equations approximate reality. Physicists think that reality approximates the equations. Mathematicians never make the connection.