X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id A867AD8DFB for ; Thu, 29 Sep 2005 21:57:20 -0300 (ADT) 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 29015-01 for ; Fri, 30 Sep 2005 00:57:16 +0000 (GMT) Received: from mail0.rawbw.com (mail0.rawbw.com [198.144.192.41]) by svr1.postgresql.org (Postfix) with ESMTP id 6AA79D6F5D for ; Thu, 29 Sep 2005 21:57:17 -0300 (ADT) Received: (from www@localhost) by mail0.rawbw.com (8.11.6p2/8.11.6) id j8U0vLe71904; Thu, 29 Sep 2005 17:57:21 -0700 (PDT) Received: from cybs-gw.ic3.com (cybs-gw.ic3.com [66.185.177.10]) by webmail.rawbw.com (IMP) with HTTP for ; Thu, 29 Sep 2005 17:57:21 -0700 Message-ID: <1128041841.433c8d713bc8d@webmail.rawbw.com> Date: Thu, 29 Sep 2005 17:57:21 -0700 From: mudfoot@rawbw.com To: pgsql-performance@postgresql.org Cc: pgsql-performance@postgresql.org Subject: Re: Is There Any Way .... References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 X-Originating-IP: 66.185.177.10 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.178 required=5 tests=[NO_REAL_NAME=0.178] X-Spam-Level: X-Archive-Number: 200509/440 X-Sequence-Number: 14748 Quoting Lane Van Ingen : > ... to do the following: > (1) Make a table memory-resident only ? Put it on a RAM filesystem. On Linux, shmfs. On *BSD, mfs. Solaris, tmpfs. > (2) Set up user variables in memory that are persistent across all > sessions, for > as long as the database is up and running ? This sounds like a client thing? Dunno. > (3) Assure that a disk-based table is always in memory (outside of > keeping > it in > memory buffers as a result of frequent activity which would prevent > LRU > operations from taking it out) ? > Put on RAM fs (like question 1). Basically, RAM filesystems are on RAM, meaning you need to have enough physical memory to support them. And of course their contents completely disappear between reboots, so you'll need a way to populate them on bootup and make sure that your updates go to a real nonvolatile storage medium (like disks). And you might get swapping on some types of memory filesystems--Solaris' tmpfs is carved out of virtual memory, which means it will cause swapping if tmpfs contents plus the rest of your applications exceed physical memory. > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: explain analyze is your friend >