X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 3A2449FA372 for ; Fri, 5 May 2006 12:16:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 56704-03-3 for ; Fri, 5 May 2006 12:16:21 -0300 (ADT) X-Greylist: delayed 00:25:05.8983 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 721CB9FB1C1 for ; Fri, 5 May 2006 12:16:21 -0300 (ADT) Received: from moonunit2.moonview.localnet (wsip-70-167-125-69.sd.sd.cox.net [70.167.125.69]) by svr4.postgresql.org (Postfix) with ESMTP id 94B3B5B2116 for ; Fri, 5 May 2006 14:51:23 +0000 (GMT) Received: from [192.168.0.3] (moonunit3.moonview.localnet [192.168.0.3]) by moonunit2.moonview.localnet (8.13.1/8.13.1) with ESMTP id k45EwPq8017248; Fri, 5 May 2006 07:58:25 -0700 Message-ID: <445B666E.6000908@modgraph-usa.com> Date: Fri, 05 May 2006 07:51:26 -0700 From: "Craig A. James" User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "mcelroy, tim" Cc: pgsql-performance@postgresql.org Subject: Re: Memory and/or cache issues? References: <0C4841B42F87D51195BD00B0D020F5CB044B2611@MORPHEUS> In-Reply-To: <0C4841B42F87D51195BD00B0D020F5CB044B2611@MORPHEUS> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/118 X-Sequence-Number: 18905 mcelroy, tim wrote: > Sorry, been up all night and maybe provided too much information or not > the right information and only confused folks, tired I guess. When I > say 'in use' I am referring to the 'used' column. Thanks all who have > responded to this inquiry, I appreciate it. > > Here's free from PROD001: > [root@wbibsngwyprod001 kernel]# free -k -t > total used free shared buffers cached > Mem: 7643536 6975772 667764 0 165496 5393396 > -/+ buffers/cache: 1416880 6226656 > Swap: 8185108 5208 8179900 > Total: 15828644 6980980 8847664 On Linux (unlike most Unix systems), "used" includes both processes AND the kernel's file-system buffers, which means "used" will almost always be close to 100%. Starting with a freshly-booted system, you can issue almost any command that scans files, and "used" will go up and STAY at nearly 100% of memory. For example, reboot and try "tar cf - / >/dev/null" and you'll see the same sort of "used" numbers. In My Humble Opinion, this is a mistake in Linux. This confuses just about everyone the first time they see it (including me), because the file-system buffers are dynamic and will be relenquished by the kernel if another process needs memory. On Unix systems, "used" means, "someone else is using it and you can't have it", which is what most of us really want to know. Craig