Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 0C33A9FB618 for ; Sat, 31 Mar 2007 13:31:55 -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 17492-01-2 for ; Sat, 31 Mar 2007 13:31:51 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 12D219FB614 for ; Sat, 31 Mar 2007 13:31:51 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id l2VGVmOJ006435; Sat, 31 Mar 2007 12:31:48 -0400 (EDT) To: "Joshua D. Drake" cc: Xiaoning Ding , Scott Marlowe , pgsql-performance@postgresql.org Subject: Re: scalablility problem In-reply-to: <460E82ED.8070106@commandprompt.com> References: <460D7220.9010302@cse.ohio-state.edu> <1175290903.25022.110.camel@state.g2switchworks.com> <460E8198.1010604@cse.ohio-state.edu> <460E82ED.8070106@commandprompt.com> Comments: In-reply-to "Joshua D. Drake" message dated "Sat, 31 Mar 2007 08:49:01 -0700" Date: Sat, 31 Mar 2007 12:31:48 -0400 Message-ID: <6434.1175358708@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200703/470 X-Sequence-Number: 23875 "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