Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 4EA2F15907A for ; Mon, 5 Mar 2012 08:26:42 -0400 (AST) Received: from campbell-lange.net ([93.191.37.68]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1S4Wzo-0008QL-3J for pgsql-performance@postgresql.org; Mon, 05 Mar 2012 12:26:39 +0000 Received: from 78-105-14-9.zone3.bethere.co.uk ([78.105.14.9] helo=rory-x220.config) by campbell-lange.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1S4Wza-0002Zd-9o; Mon, 05 Mar 2012 12:26:18 +0000 Received: from rory by rory-x220.config with local (Exim 4.77) (envelope-from ) id 1S4WzU-0005YY-6E; Mon, 05 Mar 2012 12:26:12 +0000 Date: Mon, 5 Mar 2012 12:26:12 +0000 From: Rory Campbell-Lange To: Scott Marlowe Cc: pgsql-performance@postgresql.org Subject: Re: Advice sought : new database server Message-ID: <20120305122612.GA11815@campbell-lange.net> References: <20120304095838.GA3064@campbell-lange.net> <20120304183630.GA8902@campbell-lange.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201203/53 X-Sequence-Number: 46503 On 04/03/12, Scott Marlowe (scott.marlowe@gmail.com) wrote: > On Sun, Mar 4, 2012 at 11:36 AM, Rory Campbell-Lange > wrote: > > On 04/03/12, Scott Marlowe (scott.marlowe@gmail.com) wrote: ... [Description of system with 2 * 4 core Xeons, 8GB RAM, LSI card with 4*15K SCSI drives in R10. We are looking for a new server to partner with this one.] ... > > We do have complex transactions, but I haven't benchmarked the > > performance so I can't describe it. > > Yeah try to get a measurement of how many transactions per second > you're running at peak load, and if you're currently IO bound or CPU > bound. Our existing server rarely goes above 7% sustained IO according to SAR. Similarly, CPU at peak times is at 5-7% on the SAR average (across all 8 cores). I'm not clear on how to read the memory stats, but the average kbcommit value for this morning's work is 12420282 which (assuming it means about 12GB memory) is 4GB more than physical RAM. However the system never swaps, probably due to our rather parsimonious postgres memory settings. > > Few of the databases are at the many > > million row size at the moment, and we are moving to an agressive scheme > > of archiving old data, so we hope to keep things fast. > > The key here is that your whole db can fit into memory. 48G is > cutting it close if you're figuring on being at 40G in a year. I'd > spec it out with 96G to start. That way if you want to set work_mem > to 8 or 16M you can without worrying about running the machine out of > memory / scramming your OS file system cache with a few large queries > etc. Thanks for this excellent point. > > However I thought 15k disks were a pre-requisite for a fast database > > system, if one can afford them? > > The heads have to seek, settle and THEN you ahve to wait for the > platters to rotate under the head i.e. latency. > > > I assume if all else is equal the 1880 > > controller will run 20-40% faster with 15k disks in a write-heavy > > application. > > Also I would be grateful to learn if there is a good reason > > not to use 2.5" SATA disks. > > The 10k 2.5 seagate drives have combined seek and latency figures of > about 7ms, while the15k 2.5 seagate drives have a combined time of > about 5ms. Even the fastest 3.5" seagates average 6ms average seek > time, but with short stroking can get down to 4 or 5. > > Now all of this becomes moot if you compare them to SSDs, where the > seek settle time is measured in microseconds or lower. The fastest > spinning drive will look like a garbage truck next to the formula one > car that is the SSD. Until recently incompatabilites with RAID > controllers and firmware bugs kept most SSDs out of the hosting > center, or made the ones you could get horrifically expensive. The > newest generations of SSDs though seem to be working pretty well.