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 A9D089FA509 for ; Fri, 5 May 2006 11:53:11 -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 52193-06 for ; Fri, 5 May 2006 11:53:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from morpheus.bostonstock.com (morpheus.bostonstock.com [192.233.205.44]) by postgresql.org (Postfix) with ESMTP id E28249FA372 for ; Fri, 5 May 2006 11:53:01 -0300 (ADT) Received: by MORPHEUS with Internet Mail Service (5.5.2653.19) id <2R02CBRM>; Fri, 5 May 2006 10:48:07 -0400 Message-ID: <0C4841B42F87D51195BD00B0D020F5CB044B2615@MORPHEUS> From: "mcelroy, tim" To: "'Craig A. James'" Cc: pgsql-performance@postgresql.org Subject: Re: Memory and/or cache issues? Date: Fri, 5 May 2006 10:48:01 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C67052.DB34524A" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/116 X-Sequence-Number: 18903 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C67052.DB34524A Content-Type: text/plain; charset="iso-8859-1" Thanks for a great explanation Craig, makes more sense now. Tim -----Original Message----- From: Craig A. James [mailto:cjames@modgraph-usa.com] Sent: Friday, May 05, 2006 10:51 AM To: mcelroy, tim Cc: pgsql-performance@postgresql.org Subject: Re: [PERFORM] Memory and/or cache issues? 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 ------_=_NextPart_001_01C67052.DB34524A Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [PERFORM] Memory and/or cache issues?

Thanks for a great explanation Craig, makes more = sense now.

Tim

 -----Original Message-----
From:   Craig A. James [mailto:cjames@modgraph-usa.com]
Sent:   Friday, May 05, 2006 10:51 = AM
To:     mcelroy, tim
Cc:     = pgsql-performance@postgresql.org
Subject:        = Re: [PERFORM] Memory and/or cache issues?

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

------_=_NextPart_001_01C67052.DB34524A--