X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 387FE11F6B89 for ; Fri, 7 Apr 2006 12:25:21 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58030-08 for ; Fri, 7 Apr 2006 12:25:18 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 1B52011F6AF8 for ; Fri, 7 Apr 2006 12:25:17 -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 k37FPE2n012192; Fri, 7 Apr 2006 11:25:15 -0400 (EDT) To: "Charles A. Landemaine" cc: pgsql-performance@postgresql.org Subject: Re: Loading the entire DB into RAM In-reply-to: References: Comments: In-reply-to "Charles A. Landemaine" message dated "Fri, 07 Apr 2006 11:37:34 -0300" Date: Fri, 07 Apr 2006 11:25:14 -0400 Message-ID: <12191.1144423514@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.131 required=5 tests=[AWL=0.131] X-Spam-Score: 0.131 X-Spam-Level: X-Archive-Number: 200604/138 X-Sequence-Number: 18222 "Charles A. Landemaine" writes: > What I'd like to do is find out how to keep the whole DB in RAM so > that each time some one does a query, it doesn't use the HDD. Is it > possible, if so, how? That should happen essentially for free, if the kernel doesn't have any better use for the memory --- anything read from disk once will stay in kernel disk cache. Perhaps you need to take a closer look at your kernel VM parameters. Or maybe you don't have enough RAM yet for both the DB contents and the processes you need to run. regards, tom lane