Received: from xcgca811.corp.logicon.com (xcgca811.corp.logicon.com [137.51.212.181]) by hub.org (8.10.1/8.10.1) with SMTP id e5NDuE168511 for ; Fri, 23 Jun 2000 09:56:14 -0400 (EDT) Received: from 137.51.212.181 by xcgca811.corp.logicon.com (InterScan E-Mail VirusWall NT); Fri, 23 Jun 2000 06:56:01 -0700 (Pacific Daylight Time) Received: by xcgca811.corp.logicon.com with Internet Mail Service (5.5.2650.21) id ; Fri, 23 Jun 2000 06:56:01 -0700 Received: from pas1.logicon.com (topdog.pas1.logicon.com [137.51.114.9]) by xcgca040.sp.logicon.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id NPV9J5ZW; Fri, 23 Jun 2000 06:56:18 -0700 Received: from logicon.com (kurtz) by pas1.logicon.com (4.1/SMI-4.1) id AA08550; Thu, 22 Jun 00 11:35:48 PDT Message-Id: <39525ACC.E50F258C@logicon.com> Date: Thu, 22 Jun 2000 11:28:28 -0700 From: Chris Albertson Organization: Logicon RDA X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.7 sun4u) X-Accept-Language: en Mime-Version: 1.0 To: Dana Hudes Cc: =?iso-8859-1?Q?Lo=EFc=20TREGOU=CBT?= , pgsql-admin@postgresql.org Subject: Re: smp , php and postmaster distant References: <38FD86EF.153D37A1@ext.cri74.org> <395251DA.74EB8611@ext.cri74.org> <004c01bfdc74$00e9c2a0$3d5cdcd1@hudes.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200006/130 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