Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Admin > Re: Configuring...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 17 Topic 5102 of 5411
Post > Topic >>

Re: Configuring Shared Buffers

by rafael.domiciano@[EMAIL PROTECTED] ("Rafael Domiciano") Jun 30, 2008 at 08:16 PM

------=_Part_8150_15279041.1214867762706
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Yes, the server just does S, U, I and D.
The queries is pretty simples, don't have huge joins across tables...
In this server I have around 500 tables, the largest are:
9 millions tuples | 5 millions tuples

This server is our "authenticator"; the response is need to be
"imediatly".
Today, the monitoring of the server is done using the unix command:
loguptime
With the time we discovered that when loguptime is up than 1.0 the
response
begin to late, and the applications begin to take "Time-out".

2008/6/30 Tino Schwarze <postgresql@[EMAIL PROTECTED]
>:

> On Mon, Jun 30, 2008 at 04:01:14PM -0300, Rafael Domiciano wrote:
> > The Postgres version is 8.3.3 and I am using Fedora Core 8.
> > I have in the actual server around 70 connections the same time. I am
> > assigning for this 100.
>
> And what does the server do? Mainly SELECT / UPDATE / INSERT / DELETE,
> how is workload distributed, are queries very complex or pretty simple
> are there huge joins across many tables?
>
> How many tables do you have and what are the largest ones? Are we
talking
> about thousands of rows or millions or lots of millions?
>
> Tino.
>
> > > > Folks, I am configuring a new Postgres Server, that's gonna
> substitute
> > > the
> > > > critical server of the enterprise.
> > > > I have a good machine:
> > > > Quad-Core 2.5 Ghz
> > > > 4 Gb RAM
> > > > 1 Dedicated HD 300 Gb Sata for the PostgreSQL Directory
> > >
> > > If it's the "critical server", you'd want to use a RAID1 for the
disk
> so
> > > your server and data survives a harddisk crash.
> > >
> > > > My question is:
> > > > How much I could assign for the "Shared Buffers" parameter?
> > > >
> > > > The default assigned now is 24 Mb.
> > >
> > > That's rather low. I suppose, you may safely say 200Mb here (check
th=
at
> > > you don't run into OS limits, they might need raising). You may also
> > > want to increase work_mem, but it depends on what the DB does, how
ma=
ny
> > > concurrent connections you have etc. pp. maintenance_work_mem may
> safely
> > > be set rather high - it speeds up vacuum etc. and is only used
during
> > > such operations. Also look for effective_cache_size and
max_fsm_pages=
..
> > >
> > > BTW: What version are you going to use?
> > >
> > > Tino.
> > >
> > > --
> > > "What we nourish flourishes." - "Was wir n=E4hren erbl=FCht."
> > >
> > > www.craniosacralzentrum.de
> > > www.forteego.de
> > >
> > > --
> > > Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
> > > To make changes to your subscription:
> > > http://www.postgresql.org/mailpref/pgsql-admin
> > >
>
> --
> "What we nourish flourishes." - "Was wir n=E4hren erbl=FCht."
>
> www.craniosacralzentrum.de
> www.forteego.de
>
> --
> Sent via pgsql-admin mailing list (pgsql-admin@[EMAIL PROTECTED]
)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-admin
>

------=_Part_8150_15279041.1214867762706
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Yes, the server just does S, U, I and D.<br>The queries is pretty simples,
=
don&#39;t have huge joins across tables...<br>In this server I have around
=
500 tables, the largest are:<br>9 millions tuples | 5 millions tuples<br>
<br>This server is our &quot;authenticator&quot;; the response is need to
b=
e &quot;imediatly&quot;.<br>Today, the monitoring of the server is done
usi=
ng the unix command: loguptime<br>With the time we discovered that when
log=
uptime is up than 1.0 the response begin to late, and the applications
begi=
n to take &quot;Time-out&quot;.<br>
<br><div class=3D"gmail_quote">2008/6/30 Tino Schwarze &lt;<a
href=3D"mailt=
o:postgresql@[EMAIL PROTECTED]
"
target=3D"_blank">postgresql@[EMAIL PROTECTED]
>&gt;:<br><blo=
ckquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204,
204,=
 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div>On Mon, Jun 30, 2008 at 04:01:14PM -0300, Rafael Domiciano wrote:<br>
&gt; The Postgres version is 8.3.3 and I am using Fedora Core 8.<br>
&gt; I have in the actual server around 70 connections the same time. I
am<=
br>
&gt; assigning for this 100.<br>
<br>
</div>And what does the server do? Mainly SELECT / UPDATE / INSERT /
DELETE=
,<br>
how is workload distributed, are queries very complex or pretty simple<br>
are there huge joins across many tables?<br>
<br>
How many tables do you have and what are the largest ones? Are we
talking<b=
r>
about thousands of rows or millions or lots of millions?<br>
<font color=3D"#888888"><br>
Tino.<br>
</font><div><div></div><div><br>
&gt; &gt; &gt; Folks, I am configuring a new Postgres Server, that&#39;s
go=
nna substitute<br>
&gt; &gt; the<br>
&gt; &gt; &gt; critical server of the enterprise.<br>
&gt; &gt; &gt; I have a good machine:<br>
&gt; &gt; &gt; Quad-Core 2.5 Ghz<br>
&gt; &gt; &gt; 4 Gb RAM<br>
&gt; &gt; &gt; 1 Dedicated HD 300 Gb Sata for the PostgreSQL Directory<br>
&gt; &gt;<br>
&gt; &gt; If it&#39;s the &quot;critical server&quot;, you&#39;d want to
us=
e a RAID1 for the disk so<br>
&gt; &gt; your server and data survives a harddisk crash.<br>
&gt; &gt;<br>
&gt; &gt; &gt; My question is:<br>
&gt; &gt; &gt; How much I could assign for the &quot;Shared Buffers&quot;
p=
arameter?<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; The default assigned now is 24 Mb.<br>
&gt; &gt;<br>
&gt; &gt; That&#39;s rather low. I suppose, you may safely say 200Mb here
(=
check that<br>
&gt; &gt; you don&#39;t run into OS limits, they might need raising). You
m=
ay also<br>
&gt; &gt; want to increase work_mem, but it depends on what the DB does,
ho=
w many<br>
&gt; &gt; concurrent connections you have etc. pp. maintenance_work_mem
may=
 safely<br>
&gt; &gt; be set rather high - it speeds up vacuum etc. and is only used
du=
ring<br>
&gt; &gt; such operations. Also look for effective_cache_size and
max_fsm_p=
ages.<br>
&gt; &gt;<br>
&gt; &gt; BTW: What version are you going to use?<br>
&gt; &gt;<br>
&gt; &gt; Tino.<br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; &quot;What we nourish flourishes.&quot; - &quot;Was wir n=E4hren
=
erbl=FCht.&quot;<br>
&gt; &gt;<br>
&gt; &gt; <a href=3D"http://www.craniosacralzentrum.de"
target=3D"_blank">w=
ww.craniosacralzentrum.de</a><br>
&gt; &gt; <a href=3D"http://www.forteego.de"
target=3D"_blank">www.forteego=
..de</a><br>
&gt; &gt;<br>
&gt; &gt; --<br>
&gt; &gt; Sent via pgsql-admin mailing list (<a
href=3D"mailto:pgsql-admin@[EMAIL PROTECTED]
" target=3D"_blank">pgsql-admin@[EMAIL PROTECTED]
>)<br>
&gt; &gt; To make changes to your subscription:<br>
&gt; &gt; <a href=3D"http://www.postgresql.org/mailpref/pgsql-admin"
target=
=3D"_blank">http://www.postgresql.org/mailpref/pgsql-admin</a><br>
&gt; &gt;<br>
<br>
</div></div>--<br>
<div><div></div><div>&quot;What we nourish flourishes.&quot; - &quot;Was
wi=
r n=E4hren erbl=FCht.&quot;<br>
<br>
<a href=3D"http://www.craniosacralzentrum.de"
target=3D"_blank">www.cranios=
acralzentrum.de</a><br>
<a href=3D"http://www.forteego.de"
target=3D"_blank">www.forteego.de</a><br=
>
<br>
--<br>
Sent via pgsql-admin mailing list (<a
href=3D"mailto:pgsql-admin@[EMAIL PROTECTED]
" target=3D"_blank">pgsql-admin@[EMAIL PROTECTED]
>)<br>
To make changes to your subscription:<br>
<a href=3D"http://www.postgresql.org/mailpref/pgsql-admin"
target=3D"_blank=
">http://www.postgresql.org/mailpref/pgsql-admin</a><br>
</div></div></blockquote></div><br>

------=_Part_8150_15279041.1214867762706--
 




 17 Posts in Topic:
Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 14:52:05 
Re: Configuring Shared Buffers
postgresql@[EMAIL PROTECT  2008-06-30 20:28:30 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 16:01:14 
Re: Configuring Shared Buffers
postgresql@[EMAIL PROTECT  2008-06-30 21:17:10 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 21:09:27 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 20:16:02 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 19:19:41 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 20:41:38 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 19:45:36 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 20:51:05 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 19:59:59 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-06-30 21:12:47 
Re: Configuring Shared Buffers
scott.marlowe@[EMAIL PROT  2008-06-30 19:05:10 
Re: Configuring Shared Buffers
scott.marlowe@[EMAIL PROT  2008-06-30 20:08:39 
Re: Configuring Shared Buffers
alvherre@[EMAIL PROTECTED  2008-06-30 22:38:46 
Re: Configuring Shared Buffers
kneufeld@[EMAIL PROTECTED  2008-06-30 19:43:11 
Re: Configuring Shared Buffers
rafael.domiciano@[EMAIL P  2008-07-01 22:24:49 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Oct 12 9:57:17 CDT 2008.