X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 610DEEFFF8 for ; Thu, 5 Jun 2003 08:09:04 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 38015-06 for ; Thu, 5 Jun 2003 08:09:03 +0000 (GMT) Received: from ns4.aftenposten.no (ns4.aftenposten.no [80.91.34.77]) by svr1.postgresql.org (Postfix) with ESMTP id 3CC81EFFF6 for ; Thu, 5 Jun 2003 08:09:02 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by ns4.aftenposten.no (Postfix) with ESMTP id CAC3950AA9 for ; Thu, 5 Jun 2003 10:09:02 +0200 (MEST) Received: from ns4.aftenposten.no ([127.0.0.1]) by localhost (ns4 [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00348-01 for ; Thu, 5 Jun 2003 10:09:00 +0200 (MEST) Received: from smtp1.aftenposten.no (unknown [80.91.34.6]) by ns4.aftenposten.no (Postfix) with ESMTP id 1B42750A94 for ; Thu, 5 Jun 2003 10:09:00 +0200 (MEST) Received: from telecommail.inpoc.no (unverified) by smtp1.aftenposten.no (Content Technologies SMTPRS 4.3.1) with ESMTP id for ; Thu, 5 Jun 2003 10:13:10 +0200 Received: by TELECOMMAIL with Internet Mail Service (5.5.2653.19) id ; Thu, 5 Jun 2003 10:10:54 +0200 Message-ID: From: "Lending, Rune" To: "'pgsql-admin@postgresql.org'" Subject: Shared_buffers and kernel parameters, tuning Date: Thu, 5 Jun 2003 10:10:49 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C32B39.F940A740" X-Spam-Status: No, hits=1.5 tagged_above=0.0 required=5.0 tests=HTML_10_20, HTML_MESSAGE X-Spam-Level: ** X-Archive-Number: 200306/33 X-Sequence-Number: 9024 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_01C32B39.F940A740 Content-Type: text/plain After days of searching and testing I have come up with this way of configuring our postgresql 7.2 db. I have not yet increased my shared_buffer as high as suggested below on our prod machine (24-7 high traffic), but after testing on our dev machines this allows at least the databse to start up. It is very difficult to test the actual performance since there is a hugh difference in traffic on dev and prod. Here is what we have: We have a high traffic system with a database described as followed: 4 pentium 3 633 cpu's 3753456 kB RAM (3.5 Gb) Red Hat Linux 7.2 postgresql 7.2 What I like to do is: /proc/sys/kernel/sem=250 32000 100 500 (after advise from forum/docs) /proc/sys/kernel/shmmax=1921769472 (RAM / 2 * 1024 - this piece of math I got from some of oracle's support pages (ooopps) actually ) /proc/sys/kernel/shmall=1921769472 (RAM / 2 * 1024) in postgresql.conf: shared_buffers = 117248 (shmmax / 2 / 1024 / 8 ) This I got from this forum. Does this sound right or am I totally out of bounds here? I have, as said before done this on our dev macine ( a lot smaller machine ), but it would be nice with some feedback .. Thanx in advance for response. /rune ------_=_NextPart_001_01C32B39.F940A740 Content-Type: text/html Shared_buffers and kernel parameters, tuning

After days of searching and testing I have come up with this way of
configuring our postgresql 7.2 db.
I have not yet increased my shared_buffer as high as suggested below on our
prod machine (24-7 high traffic), but after testing on our dev machines
this allows at least the databse to start up. It is very difficult to test
the actual performance since there is a hugh difference in traffic on dev
and prod.
Here is what we have:

We have a high traffic system with a database described as followed:

4 pentium 3 633 cpu's
3753456 kB RAM (3.5 Gb)
Red Hat Linux 7.2

postgresql 7.2


What I like to do is:

/proc/sys/kernel/sem=250 32000 100 500 (after advise from forum/docs)
/proc/sys/kernel/shmmax=1921769472 (RAM / 2 * 1024 - this
piece of math I got from some of oracle's support pages (ooopps) actually )

/proc/sys/kernel/shmall=1921769472 (RAM / 2 * 1024)

in postgresql.conf:

shared_buffers = 117248 (shmmax / 2 / 1024 / 8 ) This I got from this forum.


Does this sound right or am I totally out of bounds here? I have, as said
before done this on our dev macine ( a lot smaller machine ), but it would be nice with some feedback ..


Thanx in advance for response.

/rune

------_=_NextPart_001_01C32B39.F940A740--