From mendoza@cln.megared.net.mx Sun Dec 7 00:51:16 2003 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 C4C57D1B484 for ; Sun, 7 Dec 2003 00:51:16 +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 93289-09 for ; Sat, 6 Dec 2003 20:50:48 -0400 (AST) Received: from bsd.cln.megared.net.mx (unknown [200.52.176.19]) by svr1.postgresql.org (Postfix) with ESMTP id 74454D1B491 for ; Sat, 6 Dec 2003 20:50:44 -0400 (AST) Received: from progs01 ([172.16.227.227]) by bsd.cln.megared.net.mx (8.11.7/8.11.7) with SMTP id hB70n0f95670 for ; Sat, 6 Dec 2003 17:49:01 -0700 (MST) Message-ID: <033b01c3bc5c$282d81f0$5a0c0c38@progs01> From: "Jose Mendoza" To: Subject: 2CPU 4GBRAM Date: Sat, 6 Dec 2003 17:50:48 -0700 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0338_01C3BC21.7B825EB0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=1.2 tagged_above=0.0 required=5.0 tests=HTML_40_50, SUBJ_ALL_CAPS X-Spam-Level: * X-Archive-Number: 200312/117 X-Sequence-Number: 11625 This is a multi-part message in MIME format. ------=_NextPart_000_0338_01C3BC21.7B825EB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable =20 How can be efectivly configured the PostgreSQL to run in a machine with 2 C= PUs 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. 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? O= r is beyond that the postgresql possibilities? Any help is welcomed. thanks. Jose Mendoza mendoza@coppel.com ------=_NextPart_000_0338_01C3BC21.7B825EB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
 
How can be efectivly configured the Postgr= eSQL to=20 run in a machine with 2 CPUs Xeon 2.4 GHz and 4GB of RAM? The PostgreSQL wo= rk=20 with the 2 processors?
I had run tests and the tiems is always th= e same=20 that in a computer with 1 CPU pentium 4   2.4GHz and 2GB=20 RAM.
 
I intend to use the postgreSQL in several = projects=20 that requiere to attend about 1000 - 2500 users in a chain of retail stores= . Is=20 is that possible? Or is beyond that the postgresql possibilities?
 
 
 
Any help is welcomed.
 
thanks.
 
Jose Mendoza
mendoza@coppel.com
 
------=_NextPart_000_0338_01C3BC21.7B825EB0-- From peter_e@gmx.net Tue Dec 9 18:41:23 2003 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 E22FAD1B8C0 for ; Tue, 9 Dec 2003 18:41:23 +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 90390-03 for ; Tue, 9 Dec 2003 14:40:53 -0400 (AST) Received: from curie.credativ.org (credativ.com [217.160.209.18]) by svr1.postgresql.org (Postfix) with ESMTP id 05F9FD1B4CA for ; Tue, 9 Dec 2003 14:40:43 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by curie.credativ.org (Postfix) with ESMTP id 81176562C8; Tue, 9 Dec 2003 19:40:27 +0100 (CET) Received: from 192.168.2.126 (dsl-213-023-254-243.arcor-ip.net [213.23.254.243]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by curie.credativ.org (Postfix) with ESMTP id CA3FD56271; Tue, 9 Dec 2003 19:40:26 +0100 (CET) From: Peter Eisentraut To: "Jose Mendoza" , Subject: Re: 2CPU 4GBRAM Date: Tue, 9 Dec 2003 19:40:24 +0100 User-Agent: KMail/1.5.4 References: <033b01c3bc5c$282d81f0$5a0c0c38@progs01> In-Reply-To: <033b01c3bc5c$282d81f0$5a0c0c38@progs01> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200312091940.24983.peter_e@gmx.net> X-Virus-Scanned: by AMaViS X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/121 X-Sequence-Number: 11629 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. PostgreSQL relies on your operating system for multiprocessor support. If you run more than one database session then your operating system should/could distribute the resulting processes across the available CPUs. If you only run single-user tests, then you won't see any difference, though. > 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? That is certainly easily possible. From wyu@talisys.com Tue Dec 9 18:59:57 2003 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. From cbbrowne@libertyrms.info Tue Dec 9 23:29:57 2003 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 60229D1B554 for ; Tue, 9 Dec 2003 23:29: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 41828-04 for ; Tue, 9 Dec 2003 19:29:28 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 94DAED1B50A for ; Tue, 9 Dec 2003 19:29: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 hB9NTPbI065623 for ; Tue, 9 Dec 2003 23:29:25 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hB9N9xWP063328 for pgsql-admin@postgresql.org; Tue, 9 Dec 2003 23:09:59 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.admin Subject: Re: 2CPU 4GBRAM Date: Tue, 09 Dec 2003 17:20:21 -0500 Organization: Hub.Org Networking Services Lines: 31 Message-ID: <60zne18wgq.fsf@dev6.int.libertyrms.info> References: <033b01c3bc5c$282d81f0$5a0c0c38@progs01> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Reasonable Discussion, linux) Cancel-Lock: sha1:m45xTpRxLNZuYus+kyFQYbDpRH4= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/148 X-Sequence-Number: 11656 mendoza@cln.megared.net.mx ("Jose Mendoza") writes: > 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. > > 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? Well, if the tests that you have done have been presented, serially, to one connection, then they were all submitted to one backend process, in order, and you couldn't expect to get any benefit from having multiple CPUs. If you want to test how things scale with 2 CPUs and a whole bunch of users, what you most importantly have to do is to simulate the "whole bunch of users" part. You should set up programs, perhaps running on 10 computers, that generate traffic to resemble the actions of 1000 users. If you build a more proper test, you should find that the extra CPU does make some difference. But if all that you do amounts to running a single serial report, you surely won't see that... -- let name="cbbrowne" and tld="libertyrms.info" in String.concat "@" [name;tld];; Christopher Browne (416) 646 3304 x124 (land) From cbbrowne@libertyrms.info Tue Dec 9 23:29:58 2003 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 ABB17D1B461 for ; Tue, 9 Dec 2003 23:29:58 +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 39705-10 for ; Tue, 9 Dec 2003 19:29:28 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 98B33D1B8C0 for ; Tue, 9 Dec 2003 19:29: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 hB9NTPbK065623 for ; Tue, 9 Dec 2003 23:29:25 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hB9N9xHG063331 for pgsql-admin@postgresql.org; Tue, 9 Dec 2003 23:09:59 GMT From: Christopher Browne X-Newsgroups: comp.databases.postgresql.admin Subject: Re: 2CPU 4GBRAM Date: Tue, 09 Dec 2003 17:27:33 -0500 Organization: Hub.Org Networking Services Lines: 26 Message-ID: <60smjt8w4q.fsf@dev6.int.libertyrms.info> References: <033b01c3bc5c$282d81f0$5a0c0c38@progs01> <200312091940.24983.peter_e@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@news.hub.org User-Agent: Gnus/5.1003 (Gnus v5.10.3) XEmacs/21.4 (Reasonable Discussion, linux) Cancel-Lock: sha1:Qi/bUAMedCV7A80xTDa4O6IhCCw= To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/147 X-Sequence-Number: 11655 peter_e@gmx.net (Peter Eisentraut) writes: > Jose Mendoza wrote: >> 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? > > That is certainly easily possible. Well, a couple thousand concurrent users, on a fairly small server, may prove challenging. The database connections alone will chew a fair bit of memory, and postmasters rather more. It may be a nifty idea to build an application that sits in between that queues up requests so that the DBMS doesn't have to cope with managing thousands of concurrent connections, that are not, individually, terribly busy, but instead has 50 connections that are kept pretty busy. IBM sells a product called MQSeries that does that; I seem to recall that Microsoft paid an Israeli company to develop a 'clone,' now called MSMQ. Apparently pretty good stuff, where applicable... -- let name="cbbrowne" and tld="libertyrms.info" in String.concat "@" [name;tld];; Christopher Browne (416) 646 3304 x124 (land)