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 0B97252B3E for ; Sat, 20 Aug 2005 18:23:31 -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 61258-07 for ; Sat, 20 Aug 2005 21:23:29 +0000 (GMT) Received: from smtpauth01.mail.atl.earthlink.net (smtpauth01.mail.atl.earthlink.net [209.86.89.61]) by svr1.postgresql.org (Postfix) with ESMTP id 976FB52A88 for ; Sat, 20 Aug 2005 18:23:28 -0300 (ADT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=earthlink.net; b=YuSmJZJhL5Sw4Ak1nBNwsCkWWigVf80zB8Vxx2k/7SeQvEhCUvfSO2tYc3naK9g2; h=Received:Message-Id:X-Mailer:Date:To:From:Subject:Cc:In-Reply-To:References:Mime-Version:Content-Type:X-ELNK-Trace:X-Originating-IP; Received: from [24.41.3.216] (helo=RJP-01.earthlink.net) by smtpauth01.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1E6aoM-000847-P8; Sat, 20 Aug 2005 17:23:30 -0400 Message-Id: <6.2.3.4.0.20050820171521.05bd0a38@pop.earthlink.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Sat, 20 Aug 2005 17:23:25 -0400 To: Jeremiah Jahn From: Ron Subject: Re: extremly low memory usage Cc: postgres performance In-Reply-To: <1124561769.27881.200.camel@bluejay.goodinassociates.com> References: <1124331108.27881.96.camel@bluejay.goodinassociates.com> <1124386761.27881.119.camel@bluejay.goodinassociates.com> <4304CB77.4070403@arbash-meinel.com> <1124470109.27881.152.camel@bluejay.goodinassociates.com> <43061472.2080201@arbash-meinel.com> <6.2.3.4.0.20050819140714.05c181e8@pop.earthlink.net> <43063196.9000001@arbash-meinel.com> <1124485299.27881.192.camel@bluejay.goodinassociates.com> <43064A06.8020102@arbash-meinel.com> <1124561769.27881.200.camel@bluejay.goodinassociates.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-ELNK-Trace: acd68a6551193be5d780f4a490ca69563f9fea00a6dd62bcd8796ffd4a735881ffc8faabeffd2923350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.41.3.216 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.466 required=5 tests=[AWL=0.092, DNS_FROM_RFC_ABUSE=0.374] X-Spam-Level: X-Archive-Number: 200508/302 X-Sequence-Number: 14049 At 02:16 PM 8/20/2005, Jeremiah Jahn wrote: >I'm just watching gnome-system-monoitor. Which after careful >consideration.....and looking at dstat means I'm on CRACK....GSM isn't >showing cached memory usage....I asume that the cache memory usage >is where data off of the disks would be cached...? > >memory output from dstat is this for a few seconds: > >---procs--- ------memory-usage----- ---paging-- >--disk/sda----disk/sdb- ----swap--- ----total-cpu-usage---- >run blk new|_used _buff _cach _free|__in_ _out_|_read write:_read >write|_used _free|usr sys idl wai hiq siq > 0 0 0|1336M 10M 4603M 17M| 490B 833B|3823B 3503k:1607k > 4285k| 160k 2048M| 4 1 89 7 0 0 > 1 0 0|1337M 10M 4600M 18M| 0 0 | 0 0 > : 0 464k| 160k 2048M| 25 0 75 0 0 0 > > 1 0 0|1334M 10M 4596M 25M| 0 0 | 0 0 > : 0 56k| 160k 2048M| 21 4 75 0 0 0 Then the "low memory usage" was a chimera. Excellent! Given the evidence in this thread, IMO you should upgrade your box to 16GB of RAM ASAP. That should be enough to cache most, if not all, of the 10GB of the "hot" part of your DB; thereby dedicating your HD subsystem as much as possible to writes (which is unavoidable HD IO). As I've posted before, at $75-$150/GB, it's well worth the investment whenever you can prove it will help as we have here. Hope this helps, Ron Peacetree