Received: from mailhub1.isdnet.net (mailhub1.isdnet.net [195.154.209.21]) by hub.org (8.10.1/8.10.1) with ESMTP id e5O9I0112868 for ; Sat, 24 Jun 2000 05:18:01 -0400 (EDT) Received: from ppp37-cergy.isdnet.net (ppp37-cergy.isdnet.net [194.149.184.164]) by mailhub1.isdnet.net (8.9.3/8.9.3) with SMTP id LAA99453; Sat, 24 Jun 2000 11:17:58 +0200 (CEST) Received: by ppp37-cergy.isdnet.net with Microsoft Mail id <01BFDDCE.38A80480@ppp37-cergy.isdnet.net>; Sat, 24 Jun 2000 11:20:37 +0200 Message-ID: <01BFDDCE.38A80480@ppp37-cergy.isdnet.net> From: Nicolas Huillard To: =?iso-8859-1?Q?Lo=EFc_TREGOU=CBT?= , "pgsql-admin@postgresql.org" Subject: RE: smp , php and postmaster distant Date: Sat, 24 Jun 2000 10:49:17 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.org id e5O9I1113153 X-Archive-Number: 200006/132 Performance degradations may also be due to lacking a daily "vacuum analyze;", which tells the optimizer how it should work. Nicolas Huillard -----Message d'origine----- De: Chris Albertson [SMTP:calbertson@logicon.com] Date: jeudi 22 juin 2000 20:28 À: Dana Hudes Cc: Loïc TREGOUËT; pgsql-admin@postgresql.org Objet: Re: smp , php and postmaster distant Dana Hudes wrote: > Your gain from SMP under such situation is the application has a cpu for itself > and all the system overhead processes run on the other cpu. The above is correct, but Postgresql uses one process per connection. This is a (possibly crude) from for multi threading. But it is the same way the web server works. The process is forked. In the systems I've seen it is common to have four to eight simultaneous open connections to the database. Multiple CPUs _do_ help in this case. The question below is hard to answer. If I read it correctly he is asking "Why is performance go down when I switched to a dual CPU system?" He does not provide detailed information about the configuration of his system both before and after the change so we can't answer. Perhaps he had fsync disabled then but no now. Who knows? A lot more detail is required. My point is one more that with Postgresql, multiple CPUs can help if you have multiple active clients. > > Hie , > > > > > > I have put a database on a 2 processors db server . (2 * PII 450 Mhz > > with 512 Mo RAM) > > > > This server is distant from the web server . > > > > I've a php3 interface and , i've seen some big loose of performance > > . > > > > The request are longer when i use the bi-processor . > > > > Is it due to the distant server or do i need some configurations to > > postmaster to accept multi prcocessors ? > > > > The web server and the database server are link with a 100Mbit link > > ! > > > > thanks for > > all -- Chris Albertson calbertson@logicon.com Voice: 626-351-0089 x17 Logicon, Pasadena California Fax: 626-351-0699