Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 8B8CD9FB7F6 for ; Sat, 19 May 2007 02:27:23 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 81589-07 for ; Sat, 19 May 2007 02:27:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from westnet.com (westnet.com [216.187.52.2]) by postgresql.org (Postfix) with ESMTP id 363119FB418 for ; Sat, 19 May 2007 02:27:13 -0300 (ADT) Received: from westnet.com (localhost [127.0.0.1]) by westnet.com (8.14.0/8.14.0) with ESMTP id l4J5RGOE014405 for ; Sat, 19 May 2007 01:27:16 -0400 (EDT) Received: from localhost (gsmith@localhost) by westnet.com (8.14.0/8.13.2/Submit) with ESMTP id l4J5RGhR014402 for ; Sat, 19 May 2007 01:27:16 -0400 (EDT) X-Authentication-Warning: westnet.com: gsmith owned process doing -bs Date: Sat, 19 May 2007 01:27:16 -0400 (EDT) From: Greg Smith X-X-Sender: gsmith@westnet.com To: pgsql-performance@postgresql.org Subject: Re: Background vacuum In-Reply-To: <464DFCC3.8040207@cheapcomplexdevices.com> Message-ID: References: <4642A1B3.6030009@swissembedded.com> <4642A811.9010703@drivefaster.net> <4643B490.2040704@cheapcomplexdevices.com> <20070517135530.GI6907@phlogiston.dyndns.org> <464D04F8.7020306@cheapcomplexdevices.com> <464D18CE.8070408@cheapcomplexdevices.com> <18134.1179458524@sss.pgh.pa.us> <464DFCC3.8040207@cheapcomplexdevices.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/360 X-Sequence-Number: 24750 On Fri, 18 May 2007, Ron Mayer wrote: > Anecdotally ;-) I've found renice-ing reports to help Let's break this down into individual parts: 1) Is there enough CPU-intensive activity in some database tasks that they can be usefully be controlled by tools like nice? Sure. 2) Is it so likely that you'll fall victim to a priority inversion problem that you shouldn't ever consider that technique? No. 3) Does the I/O scheduler in modern OSes deal with a lot more things than just the CPU? You bet. 4) Is vacuuming a challenging I/O demand? Quite. Add all this up, and that fact that you're satisfied with how nice has worked successfully for you doesn't have to conflict with an opinion that it's not the best approach for controlling vacuuming. I just wouldn't extrapolate your experience too far here. -- * Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD