Received: from maia.hub.org (maia-1.hub.org [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 9D6386406EB for ; Mon, 17 May 2010 06:52:27 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 86246-07 for ; Mon, 17 May 2010 09:52:14 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sci.pam.szczecin.pl (sci.pam.szczecin.pl [212.14.5.155]) by mail.postgresql.org (Postfix) with ESMTP id 8E63C6406E3 for ; Mon, 17 May 2010 06:52:19 -0300 (ADT) Received: from flox.pam.szczecin.pl ([212.14.5.130] helo=[192.168.1.18]) by sci.pam.szczecin.pl with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1ODwzh-0006z0-Pu; Mon, 17 May 2010 11:52:17 +0200 Message-ID: <4BF111D1.2000101@ams.edu.pl> Date: Mon, 17 May 2010 11:52:17 +0200 From: Piotr Legiecki User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Scott Marlowe CC: pgsql-performance@postgresql.org Subject: Re: old server, new server, same performance References: <4BED08B4.4030507@sci.pam.szczecin.pl> <4BF0F8FF.5040703@ams.edu.pl> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201005/86 X-Sequence-Number: 38670 Scott Marlowe pisze: >>> So still I don't get this: select * from table; on old server takes 0,5 sec, >>> on new one takes 6sec. Why there is so big difference? And it does not >>> matter how good or bad select is to measure performance, because I don't >>> measure the performance, I measure the relative difference. Somwhere there >>> is a bottleneck. >> Yep, the network I'd say. How fast are things like scp between the >> various machines? Sure it is, but not in a way one could expect: - scp from 1000Gbit laptop to old server 27MB/sec - scp from the same laptop to new server 70MB/sec Both servers have 1000Gbit connection. So it is still mysterious why old server makes 9x faster select? I don't claim that something is slow on new (or even older) server. Not at all. the application works fine (still on older machine). I only wonder about those differences. >>> 4. Machine. The new server has 5 SAS disks (+ 1 spare), but I don't remember >>> how they are set up now (looks like mirror for system '/' and RAID5 for rest >>> - including DB). size of the DB is 405MB >> Get off of RAID-5 if possible. A 3 Disk RAID-5 is the slowest >> possible combination for RAID-5 and RAID-5 is generally the poorest >> choice for a db server. Sure I know that RAID-5 is slower than mirror but anyway how much slower? And for sure not as much as single ATA disk. > I refer you to this classic post on the subject: > http://www.mail-archive.com/pgsql-general@postgresql.org/msg93043.html Well, this thread is about benchmarking databases (or even worse, comparison between two RDBMS). I'm not benchmarking anything, just compare one factor. P.