Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id A6D2263377D for ; Mon, 11 Jan 2010 15:41:02 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 73205-03-5 for ; Mon, 11 Jan 2010 19:40:49 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mail.postgresql.org (Postfix) with ESMTP id 04075633F2E for ; Mon, 11 Jan 2010 15:38:45 -0400 (AST) Received: by fg-out-1718.google.com with SMTP id 22so876896fge.1 for ; Mon, 11 Jan 2010 11:38:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8tvSq1/jeF2LUnm8ueaoPce2l86WjpaQL4ANC97mzf4=; b=OJ1ivtzZQtg+WKcBTRoiJcSpaFzAr+cK2eggsUU34yX9q/3KKGNhzGttC5vearxMgT AG09I9FLBEGB8nUw36VtDZ+WnhhRs6OFeVkt0CjbQH3UgLjTcaCabQTHJ9NABcRYaiQv AXL4knNmOoX4mb2pu9L22D2427Adhh/NwgSW0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=D8vFVyN9TsfhZAfcXTHxObXpw2Bca6OUiRMedsL5XGjrhDs0Nz1GsB5Yh9Dfu4sKuf 3VeZXMqIO8JBZ16EM8cE0iJeFVK9qfsNQko+O5obZZhgi0MESDXxC6rd9pho1tnWJNXz ZUSi+DTRbANHXNdDttOHRBDUxfBj0mCU7699s= MIME-Version: 1.0 Received: by 10.216.86.193 with SMTP id w43mr5454723wee.17.1263238722824; Mon, 11 Jan 2010 11:38:42 -0800 (PST) In-Reply-To: References: <4B4B177B020000250002E194@gw.wicourts.gov> Date: Mon, 11 Jan 2010 12:38:42 -0700 Message-ID: Subject: Re: performance config help From: Scott Marlowe To: Kevin Grittner Cc: Bob Dusek , pgsql-performance@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201001/211 X-Sequence-Number: 37091 On Mon, Jan 11, 2010 at 12:36 PM, Scott Marlowe w= rote: > FYI, on an 8 or 16 core machine, 10k to 30k context switches per > second aren't that much. =A0If you're climbing past 100k you might want > to look out. > > The more I read up on the 74xx CPUs and look at the numbers here the > more I think it's just that this machine has X bandwidth and it's > using it all up. =A0You could put 1,000 cores in it, and it wouldn't go > any faster. =A0My guess is that a 4x6 core AMD machine or even a 2x6 > Nehalem would be much faster at this job. =A0Only way to tell is to run > something like the stream benchmark and see how it scales, > memory-wise, as you add cores to the benchmark. Also I'm guessing that query profiling may help, if we can get the queries to request less data to trundle through then we might be able to get Bob the performance needed to keep up. But at some point he's gonna have to look at partitioning his database onto multiple machines some how.