Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 7DAD716D90F8 for ; Tue, 27 Mar 2012 16:58:39 -0300 (ADT) Received: from smtp.01.com ([199.36.142.181]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SCcXN-0007Dn-Qi for pgsql-performance@postgresql.org; Tue, 27 Mar 2012 19:58:38 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 399393F54F3 for ; Tue, 27 Mar 2012 14:58:25 -0500 (CDT) X-Virus-Scanned: amavisd-new at smtp-out-1.01.com Received: from smtp.01.com ([127.0.0.1]) by localhost (smtp-out-1.01.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N8sPlE0T0mcZ for ; Tue, 27 Mar 2012 14:58:25 -0500 (CDT) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp-out-1.01.com (Postfix) with ESMTP id 13E133F534E for ; Tue, 27 Mar 2012 14:58:25 -0500 (CDT) Received: from mail-1.01.com (mail.01.com [172.18.30.178]) by smtp-out-1.01.com (Postfix) with ESMTP id D387329400B; Tue, 27 Mar 2012 14:58:24 -0500 (CDT) Date: Tue, 27 Mar 2012 14:58:22 -0500 (CDT) From: Joshua Berkus To: Peter van Hardenberg Cc: postgres performance list Message-ID: <1125348837.158829.1332878302273.JavaMail.root@mail-1.01.com> In-Reply-To: Subject: Re: Determining working set size MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [72.177.2.103] X-Mailer: Zimbra 7.1.3_GA_3374 (ZimbraWebClient - FF3.0 (Linux)/7.1.3_GA_3346) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/167 X-Sequence-Number: 46617 Peter, Check out pg_fincore. Still kind of risky on a production server, but does an excellent job of measuring page access on Linux. ----- Original Message ----- > Baron Swartz's recent post [1] on working set size got me to > thinking. > I'm well aware of how I can tell when my database's working set > exceeds available memory (cache hit rate plummets, performance > collapses), but it's less clear how I could predict when this might > occur. > > Baron's proposed method for defining working set size is interesting. > Quoth: > > > Quantifying the working set size is probably best done as a > > percentile over time. > > We can define the 1-hour 99th percentile working set size as the > > portion of the data > > to which 99% of the accesses are made over an hour, for example. > > I'm not sure whether it would be possible to calculate that today in > Postgres. Does anyone have any advice? > > Best regards, > Peter > > [1]: > http://www.fusionio.com/blog/will-fusionio-make-my-database-faster-percona-guest-blog/ > > -- > Peter van Hardenberg > San Francisco, California > "Everything was beautiful, and nothing hurt." -- Kurt Vonnegut > > -- > Sent via pgsql-performance mailing list > (pgsql-performance@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-performance >