pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Maximum Performance
7+ messages / 5 participants
[nested] [flat]

* Maximum Performance
@ 2002-01-24 08:02 Jean Huveneers <j.huveneers@farcourier.com>
  2002-01-24 08:27 ` Re: Maximum Performance Luis Amigo <lamigo@atc.unican.es>
  2002-01-24 13:54 ` Re: Maximum Performance DHSC Webmaster <webmaster@dhs-club.com>
  0 siblings, 2 replies; 7+ messages in thread

From: Jean Huveneers @ 2002-01-24 08:02 UTC (permalink / raw)
  To: pgsql-admin

Hi,

Within an couple of weeks we will start using PostgreSQL on Mandrake 8.1
in real business (we have been testing, for over a half year).

In future we will have some tables with 100.000+ records an the system
has te work very fast.

I know that speed of querries depend much on the amount of availible RAM
to PostgreSQL, the server will only run the databases. What amount is
RAM is usefull (I meen, does Postgres use the RAM, if availible, up to 2
GB)?

I'm can chose for a Dual Athlon MP on a Tyan Thunder K7 motherbord, but
does PostgreSQL use the 2 processors?

Regards, 

Jean Huveneers



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Maximum Performance
  2002-01-24 08:02 Maximum Performance Jean Huveneers <j.huveneers@farcourier.com>
@ 2002-01-24 08:27 ` Luis Amigo <lamigo@atc.unican.es>
  2002-01-24 09:00   ` Re: Maximum Performance Manuel Trujillo <manueltrujillo@dorna.es>
  1 sibling, 1 reply; 7+ messages in thread

From: Luis Amigo @ 2002-01-24 08:27 UTC (permalink / raw)
  To: Jean Huveneers <j.huveneers@farcourier.com>; +Cc: pgsql-admin

Jean Huveneers wrote:

> Hi,
>
> Within an couple of weeks we will start using PostgreSQL on Mandrake 8.1
> in real business (we have been testing, for over a half year).
>
> In future we will have some tables with 100.000+ records an the system
> has te work very fast.
>
> I know that speed of querries depend much on the amount of availible RAM
> to PostgreSQL, the server will only run the databases. What amount is
> RAM is usefull (I meen, does Postgres use the RAM, if availible, up to 2
> GB)?
>
> I'm can chose for a Dual Athlon MP on a Tyan Thunder K7 motherbord, but
> does PostgreSQL use the 2 processors?
>
> Regards,
>
> Jean Huveneers
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

On my own experience I will tell you that if you're able to force postgres
to keep all database in memory it will be very fast, so memory only depends
on your
database size.
Each backend may run on a different processor, so the more processors u
have the more backends u can run at once
hope it helps

Attachments:

lamigo.vcf (text/x-vcard, 289B) download begin:vcard n:Amigo Navarro;Luis Alberto tel;cell:609581857 x-mozilla-html:FALSE org:Universidad de Cantabria;Arquitectura de Computadores adr:;;Avda Los Castros S/N ;Santander;Cantabria;39005;España version:2.1 email;internet:lamigo@atc.unican.es x-mozilla-cpt:;0 fn:Luis Amigo end:vcard
^ permalink raw reply [nested|flat] 7+ messages in thread

* Re: Maximum Performance
  2002-01-24 08:02 Maximum Performance Jean Huveneers <j.huveneers@farcourier.com>
  2002-01-24 08:27 ` Re: Maximum Performance Luis Amigo <lamigo@atc.unican.es>
@ 2002-01-24 09:00   ` Manuel Trujillo <manueltrujillo@dorna.es>
  2002-01-24 12:46     ` Re: Maximum Performance Luis Amigo <lamigo@atc.unican.es>
  0 siblings, 1 reply; 7+ messages in thread

From: Manuel Trujillo @ 2002-01-24 09:00 UTC (permalink / raw)
  To: Luis Amigo <lamigo@atc.unican.es>; +Cc: Jean Huveneers <j.huveneers@farcourier.com>; pgsql-admin

El jue, 24-01-2002 a las 09:27, Luis Amigo escribió:
> On my own experience I will tell you that if you're able to force postgres
> to keep all database in memory it will be very fast, so memory only depends
> on your
> database size.
> Each backend may run on a different processor, so the more processors u
> have the more backends u can run at once
> hope it helps

Yes, but... How can I know the exact size of my database? And, if I
compile the postgresql under four processors, don't work like (or in a)
SMP, distributing the charge into the four processors?? 

-- 
Manuel Trujillo         manueltrujillo@dorna.es
Technical Engineer      http://www.motograndprix.com
Dorna Sports S.L.       +34 93 4702864




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Maximum Performance
  2002-01-24 08:02 Maximum Performance Jean Huveneers <j.huveneers@farcourier.com>
  2002-01-24 08:27 ` Re: Maximum Performance Luis Amigo <lamigo@atc.unican.es>
  2002-01-24 09:00   ` Re: Maximum Performance Manuel Trujillo <manueltrujillo@dorna.es>
@ 2002-01-24 12:46     ` Luis Amigo <lamigo@atc.unican.es>
  0 siblings, 0 replies; 7+ messages in thread

From: Luis Amigo @ 2002-01-24 12:46 UTC (permalink / raw)
  To: Manuel Trujillo <manueltrujillo@dorna.es>; pgsql-admin

Manuel Trujillo wrote:

> El jue, 24-01-2002 a las 09:27, Luis Amigo escribió:
> > On my own experience I will tell you that if you're able to force postgres
> > to keep all database in memory it will be very fast, so memory only depends
> > on your
> > database size.
> > Each backend may run on a different processor, so the more processors u
> > have the more backends u can run at once
> > hope it helps
>
> Yes, but... How can I know the exact size of my database? And, if I
> compile the postgresql under four processors, don't work like (or in a)
> SMP, distributing the charge into the four processors??
>
> --
> Manuel Trujillo         manueltrujillo@dorna.es
> Technical Engineer      http://www.motograndprix.com
> Dorna Sports S.L.       +34 93 4702864

Si prefieres hablamos en español.


we're currently working on a 8-processor sgi server with irix by now each
backend run in one processor there is no load balance
the amount of memory u will need is as I know (table size+indexes size) they are
in your base directory, if u can afford it then u will be working on memory
but fsync and walfiles
hope it help

Attachments:

lamigo.vcf (text/x-vcard, 289B) download begin:vcard n:Amigo Navarro;Luis Alberto tel;cell:609581857 x-mozilla-html:FALSE org:Universidad de Cantabria;Arquitectura de Computadores adr:;;Avda Los Castros S/N ;Santander;Cantabria;39005;España version:2.1 email;internet:lamigo@atc.unican.es x-mozilla-cpt:;0 fn:Luis Amigo end:vcard
^ permalink raw reply [nested|flat] 7+ messages in thread

* Re: Maximum Performance
  2002-01-24 08:02 Maximum Performance Jean Huveneers <j.huveneers@farcourier.com>
@ 2002-01-24 13:54 ` DHSC Webmaster <webmaster@dhs-club.com>
  1 sibling, 0 replies; 7+ messages in thread

From: DHSC Webmaster @ 2002-01-24 13:54 UTC (permalink / raw)
  To: Jean Huveneers <j.huveneers@farcourier.com>; pgsql-admin

Jean,
We are using a quad pentium xeon machine with 6 GB ram RH 7.1 enterprise
kernel. Postgres uses everything that is available. Actually, its only
idling with the hardware we have and we have tables with over 2M rows.
Your disk subsystem is very important as well as it can easily become a
bottleneck that can cripple an otherwise capable system. We have placed
our largest and most active tables as well as indices on separate
physical drives for best performance.

Jean Huveneers wrote:
> 
> Hi,
> 
> Within an couple of weeks we will start using PostgreSQL on Mandrake 8.1
> in real business (we have been testing, for over a half year).
> 
> In future we will have some tables with 100.000+ records an the system
> has te work very fast.
> 
> I know that speed of querries depend much on the amount of availible RAM
> to PostgreSQL, the server will only run the databases. What amount is
> RAM is usefull (I meen, does Postgres use the RAM, if availible, up to 2
> GB)?
> 
> I'm can chose for a Dual Athlon MP on a Tyan Thunder K7 motherbord, but
> does PostgreSQL use the 2 processors?
> 
> Regards,
> 
> Jean Huveneers
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

-- 
Bill MacArthur
Webmaster
DHS Club



^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Maximum Performance
@ 2002-01-24 11:13 Radu-Adrian Popescu <radu.popescu@aldratech.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Radu-Adrian Popescu @ 2002-01-24 11:13 UTC (permalink / raw)
  To: pgsql-admin

On Thu, 2002-01-24 at 10:02, Jean Huveneers wrote:
> Hi,
> 
> Within an couple of weeks we will start using PostgreSQL on Mandrake 8.1
> in real business (we have been testing, for over a half year).
> 
Not that i have anything against Mandrake, but it is a desktop
distribution. I've heard several admins say their kernels are pretty
weak when it comes to server applications. So get a RedHat kernel
instead (2.2 or 2.4 series), because they are tested very thouroughly
and they include the best of Alan Cox' patches.
> In future we will have some tables with 100.000+ records an the system
> has te work very fast.

100.000+ records it's a pretty thin number. A PIII with 256 MB and X/Gnome
desktop running handles tables of 1.000.000 records on my workstation very
well.

> I know that speed of querries depend much on the amount of availible RAM
> to PostgreSQL, the server will only run the databases. What amount is
> RAM is usefull (I meen, does Postgres use the RAM, if availible, up to 2
> GB)?

Postgresql can use alot of ram. Read the pgsql docs on shared memory and kernel
parameters; you can reserve alot of shmem to postgresql, and yes, with a
large DB and/or alot of concurent connections it will even eat up your
swap. Also, check out Bruce M.'s articles on PostgreSQL optimization, as
they cover this and many more issues.
  
> I'm can chose for a Dual Athlon MP on a Tyan Thunder K7 motherbord, but
> does PostgreSQL use the 2 processors?

Like the post before said, using a SMP kernel (again, use RedHat's
kernels !) will send backends to both processors. Also you should note
that *any* program that forks or creates threads on a SMP machine will
be able to use (all) the processors.
 
-- 



Radu-Adrian Popescu
CSA, DBA, Programmer




^ permalink  raw  reply  [nested|flat] 7+ messages in thread

* Re: Maximum Performance
@ 2002-01-24 11:14 Radu-Adrian Popescu <radu.popescu@aldratech.com>
  0 siblings, 0 replies; 7+ messages in thread

From: Radu-Adrian Popescu @ 2002-01-24 11:14 UTC (permalink / raw)
  To: pgsql-admin

On Thu, 2002-01-24 at 11:00, Manuel Trujillo wrote:
> El jue, 24-01-2002 a las 09:27, Luis Amigo escribió:
> > On my own experience I will tell you that if you're able to force postgres
> > to keep all database in memory it will be very fast, so memory only depends
> > on your
> > database size.
> > Each backend may run on a different processor, so the more processors u
> > have the more backends u can run at once
> > hope it helps
> 
> Yes, but... How can I know the exact size of my database? And, if I
> compile the postgresql under four processors, don't work like (or in a)
> SMP, distributing the charge into the four processors?? 

First off, you could do a "du -h" in the data sub-directory in your
postgresql installation, to get an ideea about how large it is.

Even better, you could do a select count(*) from table1; and repeat this
in order to get the number of rows you have in each table in your
database. You can also get the size of a row in a table. Obviously, you
can multiply the n_rows with the row_width and get the approx. size of a
table. So there you go. But do add space for the indexes, the sequences
and the pg_ tables. This sould be more accurate, but for a gross (and
faster) estimation use "du -h ."

Hope that helps. Make sure the amount of shram you get thru your kernel
is enough, but not large enough to prevent everything else run :-)

 
-- 



Radu-Adrian Popescu
CSA, DBA, Programmer




^ permalink  raw  reply  [nested|flat] 7+ messages in thread


end of thread, other threads:[~2002-01-24 13:54 UTC | newest]

Thread overview: 7+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-01-24 08:02 Maximum Performance Jean Huveneers <j.huveneers@farcourier.com>
2002-01-24 08:27 ` Luis Amigo <lamigo@atc.unican.es>
2002-01-24 09:00   ` Manuel Trujillo <manueltrujillo@dorna.es>
2002-01-24 12:46     ` Luis Amigo <lamigo@atc.unican.es>
2002-01-24 13:54 ` DHSC Webmaster <webmaster@dhs-club.com>
2002-01-24 11:13 Re: Maximum Performance Radu-Adrian Popescu <radu.popescu@aldratech.com>
2002-01-24 11:14 Re: Maximum Performance Radu-Adrian Popescu <radu.popescu@aldratech.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox