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 3AA719FA509 for ; Fri, 5 May 2006 11:50:40 -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 50140-08 for ; Fri, 5 May 2006 11:50:27 -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 26BE69FA372 for ; Fri, 5 May 2006 11:50:20 -0300 (ADT) Received: by MORPHEUS with Internet Mail Service (5.5.2653.19) id <2R02CBRA>; Fri, 5 May 2006 10:45:26 -0400 Message-ID: <0C4841B42F87D51195BD00B0D020F5CB044B2614@MORPHEUS> From: "mcelroy, tim" To: 'Michael Stone' , pgsql-performance@postgresql.org Subject: Re: Memory and/or cache issues? Date: Fri, 5 May 2006 10:45:21 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C67052.106185F6" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/115 X-Sequence-Number: 18902 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.106185F6 Content-Type: text/plain; charset="iso-8859-1" Thanks Michael. Are you saying the 'used' column is the irrelevant number? Is the number that is more pertinent is 1416880? Is that the actual amount of memory in use? I agree about the allocation of a bogus amount of memory but the issue occurred after-hours when the application(s) were not running. Or are you saying the app whacked the DB during the day and never recovered? Tim -----Original Message----- From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Michael Stone Sent: Friday, May 05, 2006 10:41 AM To: pgsql-performance@postgresql.org Subject: Re: [PERFORM] Memory and/or cache issues? On Fri, May 05, 2006 at 10:27:10AM -0400, 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. Which is a mostly irrelevant number. >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 You've got 1.4G in use, 5.3G of disk cache, 165M of buffers and 667M free. That doesn't seem unreasonable. If an application needs more memory the amount of disk cache will decrease. As I said in an earlier email, the problem is that the application is trying to allocate a bogus amount of memory, not that you have a memory problem. Mike Stone ---------------------------(end of broadcast)--------------------------- TIP 5: don't forget to increase your free space map settings ------_=_NextPart_001_01C67052.106185F6 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [PERFORM] Memory and/or cache issues?

Thanks Michael.  Are you saying the 'used' = column is the irrelevant number?  Is the number that is more = pertinent is 1416880?  Is that the actual amount of memory in = use?  I agree about the allocation of a bogus amount of memory but = the issue occurred after-hours when the application(s) were not = running.  Or are you saying the app whacked the DB during the day = and never recovered?

Tim


 -----Original Message-----
From:   pgsql-performance-owner@postgresql.org = [mailto:pgsql-perf= ormance-owner@postgresql.org]  On Behalf Of Michael = Stone

Sent:   Friday, May 05, 2006 10:41 = AM
To:     = pgsql-performance@postgresql.org
Subject:        = Re: [PERFORM] Memory and/or cache issues?

On Fri, May 05, 2006 at 10:27:10AM -0400, 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.

Which is a mostly irrelevant number.

>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

You've got 1.4G in use, 5.3G of disk cache, 165M of = buffers and 667M
free. That doesn't seem unreasonable. If an = application needs more
memory the amount of disk cache will decrease. As I = said in an earlier
email, the problem is that the application is trying = to allocate a bogus
amount of memory, not that you have a memory = problem.

Mike Stone

---------------------------(end of = broadcast)---------------------------
TIP 5: don't forget to increase your free space map = settings

------_=_NextPart_001_01C67052.106185F6--