Lists: | Postg범퍼카 토토SQL |
---|
From: | Bryan Irvine <bryan(dot)irvine(at)kingcountyjournal(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | Performance |
Date: | 2003-08-07 19:07:59 |
Message-ID: | 1060283279.16173.33.camel@elvis |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
I've read up some on performance tuning now that I have postgresql
running, and I'm wondering how I can make it run the fastest it possibly
can. It's getting logged to by snort from 2 different firewalls, and is
getting approximately 200,000 inserts per day (this seems like a lot to
me but maybe not). and I'm wondering how I can tweak the postgresql.conf
(or anything else) to make the most of every cycle.
I've read that disabling fsync, setting buffer size, crontabbing vacuum,
and vacuum analyze, as well as raising the amount of time between
checkpoint runs helps. I haven't read what I should set some of these
values to. How high should buffer and cache size be? how high should I
raise the checkpoint? Any other tips?
The machine is a Duron 933Mhz, with 256M RAM, with 2 40gb IDE drives on
a striped array running on OpenBSD. The only other software running is
nagios, mrtg, and a couple of leetle perl scripts.
--Bryan
From: | Josh Berkus <josh(at)agliodbs(dot)com> |
---|---|
To: | Bryan Irvine <bryan(dot)irvine(at)kingcountyjournal(dot)com>, pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Performance |
Date: | 2003-08-07 20:59:22 |
Message-ID: | 200308071359.22728.josh@agliodbs.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
Bryan,
> I've read that disabling fsync, setting buffer size, crontabbing vacuum,
> and vacuum analyze, as well as raising the amount of time between
> checkpoint runs helps. I haven't read what I should set some of these
> values to. How high should buffer and cache size be? how high should I
> raise the checkpoint? Any other tips?
Two:
Join the PGSQL-PERFORMANCE mailing list for more help.
Read http://www.varlena.com/varlena/GeneralBits/Tidbits/index.php
... if you have not already
--
-Josh Berkus
Aglio Database Solutions
San Francisco
From: | "M(dot) Bastin" <marcbastin(at)mindspring(dot)com> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | COPY and text encodings |
Date: | 2003-08-08 11:22:46 |
Message-ID: | a05210602bb5935a5513a@[192.168.0.225] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | Postg범퍼카 토토SQL |
Hi all,
When doing a COPY FROM STDIN, while having set the client encoding to
some encoding, is the encoding of all data being uploaded
automatically being converted to the server's encoding, or does COPY
do a "blind", bulk upload?
Thanks,
Marc
From: | János Löbb <janos(dot)lobb(at)yale(dot)edu> |
---|---|
To: | Bryan Irvine <bryan(dot)irvine(at)kingcountyjournal(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: Performance |
Date: | 2003-08-08 13:53:59 |
Message-ID: | C2E693F5-C9A7-11D7-871E-000A27DD8970@janos.mail.yale.edu |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
> The machine is a Duron 933Mhz, with 256M RAM, with 2 40gb IDE drives on
> a striped array running on OpenBSD. The only other software running is
> nagios, mrtg, and a couple of leetle perl scripts.
>
> --Bryan
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
>
My guess is that by tripling the RAM will do better than any tweaking
on the database side.
János
----------------------------------------------
Trying to argue with a politician is like lifting up the head of a
corpse.
(S. Lem: His Master Voice)
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | "M(dot) Bastin" <marcbastin(at)mindspring(dot)com> |
Cc: | pgsql-novice(at)postgresql(dot)org |
Subject: | Re: COPY and text encodings |
Date: | 2003-08-08 17:44:15 |
Message-ID: | 200308081744.h78HiF903949@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-novice |
Yes, I think it is being converted automatically.
---------------------------------------------------------------------------
M. Bastin wrote:
> Hi all,
>
> When doing a COPY FROM STDIN, while having set the client encoding to
> some encoding, is the encoding of all data being uploaded
> automatically being converted to the server's encoding, or does COPY
> do a "blind", bulk upload?
>
> Thanks,
>
> Marc
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073