Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id C849D632752 for ; Mon, 19 Jul 2010 11:20:27 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 59359-07 for ; Mon, 19 Jul 2010 14:20:20 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iw0-f174.google.com (mail-iw0-f174.google.com [209.85.214.174]) by mail.postgresql.org (Postfix) with ESMTP id 4FA00632723 for ; Mon, 19 Jul 2010 11:20:20 -0300 (ADT) Received: by iwn7 with SMTP id 7so4619434iwn.19 for ; Mon, 19 Jul 2010 07:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=l0ZqlMcLWI+xopEJi0S563kXqc1McPWtHcyMhvUsX8E=; b=q2ImMVsH9SYM/9EtE9g8c/mAVhEpJ6G8C+irIa2rytMUPua3MfUi19U+u6rnstzA95 P5lwYlxVjp65lGYWs2IdU85Zk+1ucfb2mCghI8XT0SnVnfqgYXYd8LO9GxSUbFzk/+nG Zi/cvW2LEBBG0/f9lF+t10FHe1kpXR21CvpCc= 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 :content-type; b=ZAMQdYrkCNyTpHVqnxUzPbqlqoBKONspuhjIKOVllCFK7Wsa4QEsBTB+qt/puIF9HQ VuAyfEw7fBMliVrmNKVRmDJsR/owrohIMNa97gUPGM88mVMUdPHwWL356zO9UYR1M6bd V1agnFE+wgZhe0+8ALbxrBX59LGnE6bwRCDKU= MIME-Version: 1.0 Received: by 10.231.168.200 with SMTP id v8mr6008292iby.33.1279549218291; Mon, 19 Jul 2010 07:20:18 -0700 (PDT) Received: by 10.231.173.131 with HTTP; Mon, 19 Jul 2010 07:20:17 -0700 (PDT) In-Reply-To: <4C440C93020000250003388D@gw.wicourts.gov> References: <4C440C93020000250003388D@gw.wicourts.gov> Date: Mon, 19 Jul 2010 11:20:17 -0300 Message-ID: Subject: Re: IDE x SAS RAID 0 on HP DL 380 G5 P400i controller performance problem From: Daniel Ferreira de Lima To: Kevin Grittner , pgsql-performance@postgresql.org Content-Type: multipart/alternative; boundary=0050450142dba100c4048bbe444c X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201007/283 X-Sequence-Number: 39672 --0050450142dba100c4048bbe444c Content-Type: text/plain; charset=ISO-8859-1 > > **Both with Linux Kernel 2 .4.37.9 and Postgresql 7.2** > > Wow. You really need to upgrade. > Yes, but unfortunately, actually it's impossible and economically inviable... > > Under a insertion test we get a performance of 2.5 secs under 2000 > > inserts (table with a single char(50) column) in the IDE disk. > > And 500GB RAID 0 (4 disks!) and 37.5 secs under the same test! > > Is each insert in its own database transaction? (That is you've > done nothing to BEGIN a transaction, do the inserts, and then > COMMIT?) If so, you're old IDE is lying to PostgreSQL when it says > it has committed each insert. If you pull the power cord on the > computer a few times during this insert test, you'll find you wind > up missing rows which were supposedly inserted, and you will likely > have database corruption, which might render the database totally > unusable. > It's a single inserts.sql with 2000 inserts. But it's interesting test, I'll check the inserted data if it exist or not. Maybe it's inserting only in RAM and not at disk and this nice performance is fake. > If you implement your RAID with a good controller which has a > battered backed-up RAM cache, and that is configured to write-back, > you'll see much better performance. > I'm working on it.. a have been seen posts in the web of people saying things about the BBU in P400i be disabled by default. Or problems with older version of kernel module (cciss) turn it off by some kind of incompatibility. Search the archives for BBU and you'll find many other discussions > of this. > > -Kevin > Thanks, Kevin. -- Daniel Ferreira --0050450142dba100c4048bbe444c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

=A0
> **Both with Linux Kernel 2 .4.37.9 and Postgresql 7.2**

Wow. =A0You really need to upgrade.

Yes, but= unfortunately, actually it's impossible and economically inviable...
=A0
> Under a insertion test we get a performance of 2.5 secs under 2000
> inserts (table with a single char(50) column) in the IDE disk.
> And 500GB RAID 0 (4 disks!) and 37.5 secs under the same test!

Is each insert in its own database transaction? =A0(That is you'v= e
done nothing to BEGIN a transaction, do the inserts, and then
COMMIT?) =A0If so, you're old IDE is lying to PostgreSQL when it says it has committed each insert. =A0If you pull the power cord on the
computer a few times during this insert test, you'll find you wind
up missing rows which were supposedly inserted, and you will likely
have database corruption, which might render the database totally
unusable.

It's a single inserts.sql with 2000 = inserts.=A0
But it's interesting test, I'll check the inserted = data if it exist or not.
Maybe it's inserting only in RAM and not at= disk and this nice performance is fake.
=A0
If you implement your RAID with a good controller which has a
battered backed-up RAM cache, and that is configured to write-back,
you'll see much better performance.

I'm wo= rking on it.. a have been seen posts in the web of people saying things about the BBU in P400i be disabled by default. Or problems with older
version of kernel module (cciss) turn it off by some kind of incompatibilit= y.

Search the archives for BBU and you'll find many other discussions
of this.

-Kevin
=A0
Thanks, Kevin.

-- =
Daniel Ferreira
--0050450142dba100c4048bbe444c--