Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 70FB3632241 for ; Thu, 5 Feb 2009 09:18:40 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 15870-07 for ; Thu, 5 Feb 2009 09:18:37 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qy0-f17.google.com (mail-qy0-f17.google.com [209.85.221.17]) by mail.postgresql.org (Postfix) with ESMTP id A9DEC6316A4 for ; Thu, 5 Feb 2009 09:18:35 -0400 (AST) Received: by qyk10 with SMTP id 10so383190qyk.19 for ; Thu, 05 Feb 2009 05:18:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=yWp06lJ3R51QcVmxBCSKbfWLzfn9mkl5VRtjwxwSlFo=; b=vmmKUZEiytPU/cVRLaiHuw9O+6RZ4iyUqsWLOo2B/kFJIe3xAYd+XY+rO2DLO+zYeX bERANBRIf2RO+Nff9HrBFbrmPYmoX6YkuTqegdK+oxJ+YZHIzuIyfEGVjm5zX7+DD99s 9KcTYw5bwuz3X4PgJfRgcFK9LF1znAjap17kc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=JRRm5RCO0rSuF0nLKqEEOsAK5IlDzcXgY6nCk76iD0wr+14E+qmlmSocscw3WIpNqa NUlzPK3NmuG4gqh6m2Wcrgv9w9D6FozSBOhWxGSokZnshzgh+JE/pTh6SGXEeIlufMle bX6OaSRA+WkGJ7mQQKPJh4zn5BpgY2aTz5JzY= MIME-Version: 1.0 Received: by 10.214.184.10 with SMTP id h10mr658168qaf.153.1233839898190; Thu, 05 Feb 2009 05:18:18 -0800 (PST) Date: Thu, 5 Feb 2009 18:48:18 +0530 Message-ID: Subject: question about measuring shared_buffers usage From: Rajesh Kumar Mallah To: postgres admin Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/42 X-Sequence-Number: 31263 Hi , I have following setting in my postgresql.conf file. shared_buffers = 10000 (8k blocks) ; which is apprx 80MB my question is how can i know how much is the usage of the shared_buffers so that it can be increased or decreased. below is the output of ipcs , I am wondering is postgres using 420MB shared memory (but shared_buffers is only 80MB) $ ipcs -m ------ Shared Memory Segments -------- key shmid owner perms bytes nattch status 0x00000000 3637248 postgres 600 52228 0 0x0052e6a9 7798785 postgres 600 40034304 42 0x00000000 4489218 postgres 600 52228 0 0x00000000 4521987 postgres 600 52228 0 0x00000000 4554756 postgres 600 52228 0 0x00000000 4587525 postgres 600 52228 0 0x00000000 4620294 postgres 600 52228 0 0x00000000 2883591 postgres 600 52228 0 0x00000000 3670024 postgres 600 74240 0 0x00000000 3702793 postgres 600 768 0 0x00000000 3735562 postgres 600 524 0 0x00000000 3768331 postgres 600 4 0 0x0052e2c1 7831564 postgres 600 420610048 121 regds mallah.