Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 73FF19FBEB6 for ; Wed, 18 Jul 2007 15:48:24 -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 18645-06 for ; Wed, 18 Jul 2007 15:48:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id C620C9FBEFA for ; Wed, 18 Jul 2007 15:48:20 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 9C7BD564BE; Wed, 18 Jul 2007 13:48:19 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Wed, 18 Jul 2007 13:48:17 -0500 Date: Wed, 18 Jul 2007 13:48:16 -0500 From: "Jim C. Nasby" To: Heikki Linnakangas Cc: Ron Mayer , pgsql-performance@postgresql.org Subject: Re: ionice to make vacuum friendier? Message-ID: <20070718184816.GB39272@nasby.net> References: <469DD744.1060906@enterprisedb.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J3rqiH0DIeiRD2zz" Content-Disposition: inline In-Reply-To: <469DD744.1060906@enterprisedb.com> X-Operating-System: FreeBSD 6.1-RELEASE-p10 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.13 (2006-08-11) X-Hashcash: 1:20:070718:heikki@enterprisedb.com::QkOlLYs2EjpFzae5:00000000000000 0000000000000000000000000w4w X-Hashcash: 1:20:070718:rm_pg@cheapcomplexdevices.com::IxXzZBS2tnV6q0XH:00000000 0000000000000000000000000FB5 X-Hashcash: 1:20:070718:pgsql-performance@postgresql.org::DWdG+geR5rRZMEzy:00000 0000000000000000000000003LoS X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/223 X-Sequence-Number: 25907 --J3rqiH0DIeiRD2zz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 18, 2007 at 10:03:00AM +0100, Heikki Linnakangas wrote: > Ron Mayer wrote: > > Seems Linux has IO scheduling through a program called ionice. > >=20 > > Has anyone here experimented with using it rather than > > vacuum sleep settings? >=20 > I looked at that briefly for smoothing checkpoints, but it was > unsuitable for that purpose because it only prioritizes reads, not writes. >=20 > It maybe worth trying for vacuum, though vacuum too can do a lot of > writes. In the worst case, the OS cache is saturated with dirty pages, > which blocks all writes in the system. >=20 > If it did prioritize writes as well, that would be *excellent*. Any > kernel hackers out there looking for a project? My understanding is that FreeBSD will prioritize IO based on process priority, though I have no idea how it's actually accomplished or how effective it is. But if we put in special support for this for Linux we should consider FBSD as well. --=20 Jim Nasby decibel@decibel.org EnterpriseDB http://enterprisedb.com 512.569.9461 (cell) --J3rqiH0DIeiRD2zz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iD8DBQFGnmBwdO30qud8SkgRAvGkAJ9rhl9LVn8XeqtsZUx+GoInIdIotACghXE+ 2tjQHAt3gJen8LDSBSeAsD4= =7eRf -----END PGP SIGNATURE----- --J3rqiH0DIeiRD2zz--