Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 43248C4CD7A for ; Thu, 3 May 2012 10:02:01 -0300 (ADT) Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SPvfU-0002tG-3i for pgsql-performance@postgresql.org; Thu, 03 May 2012 13:02:00 +0000 Received: by mail-lpp01m010-f46.google.com with SMTP id j13so1214150lah.19 for ; Thu, 03 May 2012 06:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:x-tagtoolbar-keys:content-type; bh=hMnLW5z7xpMbYXssa9toLPAmu8hC58T9Q175GC9QMNo=; b=M964zrPPTJPAZWMJWvvlwa/Guqp3BjSoXVdEPjgldYquOoJYCtSMYPqsQO8P3ScCUC PX3cw2ma95e8STeOPnYDEj6jz0kCn9qIDERHtq2L3NJP5vSaEr/5xn4P8bJ2suX33SHF kY9ODxKkaJp7vyd1srMtQ6xSZ5ixLaodslkxocLyR6M8tj0AH7Z7dko9bXvpwpYsCCDe MgpU8L4HA75AZFBYpL8SNGs5/R99CibLqECcxvw27C8DKellarwx5FpAvT1DWq8Wj6/k dmTbjnk+iMv7k6h2KGt86sbBe88rY6DLSMUW60oVV9RpEYiV3QY9hFTScqPr79kgs2ID x56g== Received: by 10.152.144.101 with SMTP id sl5mr1963688lab.51.1336050119312; Thu, 03 May 2012 06:01:59 -0700 (PDT) Received: from [10.108.190.46] ([80.85.199.236]) by mx.google.com with ESMTPS id q5sm6642207lbd.13.2012.05.03.06.01.57 (version=SSLv3 cipher=OTHER); Thu, 03 May 2012 06:01:57 -0700 (PDT) Message-ID: <4FA281C4.6040104@googlemail.com> Date: Thu, 03 May 2012 15:01:56 +0200 From: Martin Grotzke User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120424 Thunderbird/12.0 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: Several optimization options (config/hardware) References: <4FA13444.4050501@googlemail.com> In-Reply-To: X-Enigmail-Version: 1.4.1 X-TagToolbar-Keys: D20120503150156232 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig383954E35099020CE83EE172" X-Pg-Spam-Score: -2.6 (--) X-Archive-Number: 201205/25 X-Sequence-Number: 46849 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig383954E35099020CE83EE172 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Laurenz, On 05/03/2012 09:26 AM, Albe Laurenz wrote: > Martin Grotzke wrote: >> we want to see if we can gain better performance with our postgresql >> database. In the last year the amount of data growed from ~25G to now >> ~140G and we're currently developing a new feature that needs to get >> data faster from the database. The system is both read and write > heavy. >> >> At first I want to give you an overview over the hardware, software > and >> configuration and the changes that I see we could check out. I'd be > very >> happy if you could review and tell if the one or the other is > nonsense. >> >> Hardware: >> - CPU: 4x4 Cores Intel Xeon L5630 @ 2.13GHz >> - RAM: 64GB >> - RAID 1 (1+0) HP Company Smart Array G6 controllers, P410i >> (I don't know the actual number of discs) >> - A single partition for data and wal-files >> >> Software >> - RHEL 6, Kernel 2.6.32-220.4.1.el6.x86_64 >> - postgresql90-server-9.0.6-1PGDG.rhel6.x86_64 >=20 > You could try different kernel I/O elevators and see if that improves > something. >=20 > I have made good experiences with elevator=3Ddeadline and elevator=3Dno= op. Ok, great info. I'm not sure at which device to look honestly to check the current configuration. mount/fstab shows the device /dev/mapper/VG01-www for the relevant partition. When I check iostat high utilization is reported for the devices dm-4 and sda (showing nearly the same numbers for util always), so I suspect that dm-4 is mapped on sda. This is the current config: $ cat /sys/block/sda/queue/scheduler noop anticipatory deadline [cfq] $ cat /sys/block/dm-4/queue/scheduler none Which of them should be changed? I'll discuss this also with our hosting provider next week, he'll know what has to be done. Cheers, Martin --------------enig383954E35099020CE83EE172 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+igcQACgkQ7FvOl7Te+pZMTwCfaNjoqDDj53UGc7eQXZ56qaIF 0L8AoLzn6rDYXjFSmcWdymJ+BWwJ0cYg =FqLQ -----END PGP SIGNATURE----- --------------enig383954E35099020CE83EE172--