X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id B921CEAD819 for ; Fri, 22 Oct 2004 21:45:45 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58432-06 for ; Fri, 22 Oct 2004 20:45:44 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id CF4FAEAE4A2 for ; Fri, 22 Oct 2004 21:45:36 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i9MKjpQZ018765; Fri, 22 Oct 2004 16:45:51 -0400 (EDT) To: Jan Wieck Cc: Simon Riggs , pgsql-patches@postgresql.org, pgsql-hackers@postgresql.org, josh@agliodbs.com Subject: Re: [PATCHES] ARC Memory Usage analysis In-reply-to: <41796115.2020501@Yahoo.com> References: <1098471059.20926.49.camel@localhost.localdomain> <41796115.2020501@Yahoo.com> Comments: In-reply-to Jan Wieck message dated "Fri, 22 Oct 2004 15:35:49 -0400" Date: Fri, 22 Oct 2004 16:45:51 -0400 Message-ID: <18764.1098477951@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/760 X-Sequence-Number: 60263 Jan Wieck writes: > What do you think about my other theory to make C actually 2x effective > cache size and NOT to keep T1 in shared buffers but to assume T1 lives > in the OS buffer cache? What will you do when initially fetching a page? It's not supposed to go directly into T2 on first use, but we're going to have some difficulty accessing a page that's not in shared buffers. I don't think you can equate the T1/T2 dichotomy to "is in shared buffers or not". You could maybe have a T3 list of "pages that aren't in shared buffers anymore but we think are still in OS buffer cache", but what would be the point? It'd be a sufficiently bad model of reality as to be pretty much useless for stats gathering, I'd think. regards, tom lane