Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id BA94C9FB4FE for ; Sat, 31 Mar 2007 14:08:32 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 29117-01-2 for ; Sat, 31 Mar 2007 14:08:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from cse.ohio-state.edu (mail.cse.ohio-state.edu [164.107.123.5]) by postgresql.org (Postfix) with ESMTP id B32EB9FB4F0 for ; Sat, 31 Mar 2007 14:08:28 -0300 (ADT) Received: from [164.107.116.241] (jason.cse.ohio-state.edu [164.107.116.241]) (authenticated bits=0) by cse.ohio-state.edu (8.12.11.20060308/8.12.11) with ESMTP id l2VH8Sld012650; Sat, 31 Mar 2007 13:08:28 -0400 (EDT) Message-ID: <460E9589.6070103@cse.ohio-state.edu> Date: Sat, 31 Mar 2007 13:08:25 -0400 From: Xiaoning Ding User-Agent: Thunderbird 1.5.0.10 (X11/20070301) MIME-Version: 1.0 To: Tom Lane CC: "Joshua D. Drake" , Scott Marlowe , pgsql-performance@postgresql.org Subject: Re: scalablility problem References: <460D7220.9010302@cse.ohio-state.edu> <1175290903.25022.110.camel@state.g2switchworks.com> <460E8198.1010604@cse.ohio-state.edu> <460E82ED.8070106@commandprompt.com> <6434.1175358708@sss.pgh.pa.us> In-Reply-To: <6434.1175358708@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: 200703/471 X-Sequence-Number: 23876 Tom Lane wrote: > "Joshua D. Drake" writes: >>> I use RHEL 4. I can not understand how the scalability related with >>> shared memory? > >> It isn't RHEL4 and shared memory. It is PostgreSQL and shared memory. >> Things have changed with PostgreSQL since 7.3 (7.3 is really god awful >> old) that allow it to more effectively access shared memory and thus >> provide better performance. > > Some specifics: > > * bufmgr algorithms redesigned to allow larger number of shared buffers > to be used effectively > > * bufmgr redesigned to not have a single lock for management of all > shared buffers; likewise for lockmgr > > * lots of marginal tweaks such as paying attention to cache line > alignment of "hot" shared data structures > > I'm probably forgetting some things but I think the bufmgr and lockmgr > changes were the biggest improvements in this area. > > regards, tom lane That is very helpful. Thanks! Xiaoning > >