X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id D40EED1B42F for ; Tue, 9 Dec 2003 18:59:57 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 91812-06 for ; Tue, 9 Dec 2003 14:59:26 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id C1FE3D1B49B for ; Tue, 9 Dec 2003 14:59:25 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hB9IxObI027717 for ; Tue, 9 Dec 2003 18:59:24 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hB9IfMKV025466 for pgsql-admin@postgresql.org; Tue, 9 Dec 2003 18:41:22 GMT From: William Yu X-Newsgroups: comp.databases.postgresql.admin Subject: Re: 2CPU 4GBRAM Date: Tue, 09 Dec 2003 10:41:21 -0800 Organization: Hub.Org Networking Services Lines: 27 Message-ID: References: <033b01c3bc5c$282d81f0$5a0c0c38@progs01> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en In-Reply-To: <033b01c3bc5c$282d81f0$5a0c0c38@progs01> To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/123 X-Sequence-Number: 11631 Jose Mendoza wrote: > How can be efectivly configured the PostgreSQL to run in a machine with > 2 CPUs Xeon 2.4 GHz and 4GB of RAM? The PostgreSQL work with the 2 > processors? > I had run tests and the tiems is always the same that in a computer with > 1 CPU pentium 4 2.4GHz and 2GB RAM. The way it works with Postgres is that discrete transactions/queries only run on a single processor. So if you only have 1 user running 1 session, Postgres will never use more than 1 CPU. With multiple users and/or multiple sessions, work is spread over the multiple CPUs. > I intend to use the postgreSQL in several projects that requiere to > attend about 1000 - 2500 users in a chain of retail stores. Is is that > possible? Or is beyond that the postgresql possibilities? I'm sure Postgres could handle it. Whether the hardware you currently have spec'd out could handle it or your application framework could handle it is a totally different story. We could give you our best guess based on more detailed info -- like how big is the total & working dataset, what are the usage patterns, what kind of queries/transactions are most common, etc. -- but you will definitely have to do your own profiling to get accurate numbers.