Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 7DFBEC4CD7A for ; Thu, 3 May 2012 10:05:49 -0300 (ADT) Received: from smtp.optionshouse.com ([38.98.137.6] helo=smtp.peak6.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SPvjA-0002yq-2B for pgsql-performance@postgresql.org; Thu, 03 May 2012 13:05:48 +0000 X-AuditID: 0a64cb1e-b7fb26d000001053-df-4fa28238a765 Message-ID: <4FA2829D.5030409@optionshouse.com> Date: Thu, 3 May 2012 08:05:33 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Robert Klemme CC: Jan Nielsen , , , John Lister Subject: Re: Configuration Recommendations References: <4F96FFE1.2030809@peak6.com> <4F97ABBB.1000708@kickstone.co.uk> <4F986CAC.4060904@peak6.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.107.46] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrCIsWRmVeSWpSXmKPExsXClcIrpmvRtMjfYN12XYveTxPYLL68f81k cX3mOWaLJxua2R1YPHbOusvu8XTCZHaPdStOMntc2DeNPYAlqoHRJjEvL78ksSRVISW1ONlW yb+gJDM/r9gjv7Q4VcElszg5JzEzN7VISSEzxVbJXEmhICcxOTU3Na/EVimxoCA1L0XJjksB A9gAlWXmKaTmJeenZOal2yp5BvvrWliYWuoaKtnFI4OETpaMe8t6mAvOCVTcPmXUwLiDt4uR k0NCwESi9e48VghbTOLCvfVsIDavgL7Ew6+PwGwWARWJ53PvMoPYbAK6EpP6V4DFhYDifWdv MIHY/ALCEvs+NIHViAqESNxunAQ1R1Di5MwnLCC2iICexPMpL9m7GLk4mAUmM0r8+dAG1iAM dMSHhZuZQBJCAtuZJN7+gtjGKRAo8XHVHLBJzAK2EhfmXGeBsOUltr+dwwxxharEiuaJbBAf KEjMudrOMoFRaBaS5bOQtM9C0r6AkXkVo3hxWWJyRqZpQXFuSYGhXkFqYraZXl5qySZGcIyf ltvBOH2p4iFGAQ5GJR5egYyF/kKsiWXFlbmHGCU4mJVEeNXagEK8KYmVValF+fFFpTmpxYcY TYGhNpFZSjQ5H5h+8kriDY0NLU0tTcwszY2NDZTEeRsX1/oLCaQD00N2ampBahFMHxMHp1QD 49mj7l2BSdp/5Db9nzmr09Z0f6mD+M/e8HmK27fkTIleHdAXmvbmDC+3WJarp3WLk9jH6KuT T8pVX75VVP7z+1mzdyUxFR912M+XmV6XTCqZ8ZzpyAdG7id1s+ZcSAy1W9JwMFM1OqaosfzO f+4D8qtiP51Y8PrOx4WFGnLu248YPfh6Zsf5i0osxRmJhlrMRcWJAGJ6BoUHAwAA X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/40 X-Sequence-Number: 46864 On 05/03/2012 02:28 AM, Robert Klemme wrote: > Maybe this also has some additional input: > http://www.fccps.cz/download/adv/frr/hdd/hdd.html Be careful with that link. His recommendations for dirty_ratio and dirty_background_ratio would be *very bad* in a database setting. Note this from the actual article: "I am aware that my tuning values are probably quite insane in some respects, may cause occasional longer periods of high read latency, may cause other problems. Still I guess the exercise was worth it - the tests did show some interesting results." That's putting it lightly. With some of those settings in a very large memory server, you could see *minutes* of synchronous IO waits if dirty_ratio gets saturated. I like to follow this: http://www.westnet.com/~gsmith/content/linux-pdflush.htm As a note, there are actually new tunables for some of this: dirty_bytes, and dirty_background_bytes. With them, you can match them better to the actual size of your controller write cache so you can avoid page flush storms causing IO stalls. It's unfortunate, but database servers are not the target platform for most of the kernel devs, and really have a much different profile from everyday systems. We need to address latency more than throughput, though both are important. I think Greg mentioned something that setting these too low can cause VACUUM to lag, but I'm willing to take that tradeoff. We've had IO stalls in the past when our background ratio was too high, and it wasn't pretty. Ironically, we never had a problem until we tripled our system memory, and suddenly our drive controllers were frequently getting choked to death. Mr. Nielsen's setup actually looks pretty darn good. It's my personal opinion he might run into some IO waits if he plans to use this for heavy OLTP, thanks to having only 8 spindles in his RAID1+0, but he may eventually grow into a SAN. That's fine. It's a good starting point. -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-444-8534 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email