Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 4278C476D07 for ; Mon, 8 Jul 2002 17:41:13 -0400 (EDT) Mailbox-Line: From Tim.Ellis@gamet.com Mon Jul 8 17:41:13 2002 Received: from linuxmail.lgsinc.com (unknown [12.22.4.163]) by postgresql.org (Postfix) with ESMTP id 0B913476A52 for ; Mon, 8 Jul 2002 14:23:23 -0400 (EDT) Received: from timetop ([10.13.15.254]) by linuxmail.lgsinc.com (8.11.0/8.8.7) with SMTP id g68IN8114743; Mon, 8 Jul 2002 11:23:14 -0700 Date: Mon, 8 Jul 2002 11:23:04 -0700 From: Tim Ellis To: Curt Sampson Cc: stigmata@blackangel.net, pgsql-admin@postgresql.org Subject: Re: memory strangeness (fwd) Message-Id: <20020708112304.733fbe30.Tim.Ellis@gamet.com> In-Reply-To: References: <20020705101359.V48217-100000@osiris.deathkeep.com> Organization: Gamet X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-mandrake-linux-gnu) WerdupHomey: 3.14159265358979323 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-2.3 required=5.0 tests=IN_REP_TO,DOUBLE_CAPSWORD version=2.30 X-Spam-Level: X-Archive-Number: 200207/118 X-Sequence-Number: 4804 On Sun, 7 Jul 2002 13:06:00 +0900 (JST) Curt Sampson wrote: > > On this particular system, though, it's doing > > nothing except PG. 384 MB of RAM, I can give PG 160 of it, which > > leaves me with some 170 MB of idle RAM. > > No, that's not idle RAM; that's buffer cache. (FreeBSD, like most > modern Unix operating systems, will use any spare physical memory > to cache blocks read from the disk.) If you allocate 160/170, you > now have pretty much maximized your chances that postgres and the > operating system will be buffering the same data, and made your > memory as minimally effective as possible. Is there not a method of reading a disk block and instructing the OS not to buffer it, or am I hallucinating? (My main RDBMS experience experience is on Solaris, and I could swear that major RDBMSs on that OS will ask the OS not to buffer disk I/O on behalf of the database) -- Tim Ellis DBA, Gamet