Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XNDug-0004a2-Kd for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Aug 2014 04:35:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XNDug-0004hz-3t for pgsql-hackers@arkaria.postgresql.org; Fri, 29 Aug 2014 04:35:50 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XNDue-0004hq-Js for pgsql-hackers@postgresql.org; Fri, 29 Aug 2014 04:35:48 +0000 Received: from mail.catalyst.net.nz ([2404:130:0:10::40:0]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XNDuZ-0001dl-Tb for pgsql-hackers@postgresql.org; Fri, 29 Aug 2014 04:35:46 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.catalyst.net.nz (Postfix) with ESMTP id 9DC9232C7C; Fri, 29 Aug 2014 16:35:37 +1200 (NZST) X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz Received: from mail.catalyst.net.nz ([127.0.0.1]) by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5Rr9GyCo3USE; Fri, 29 Aug 2014 16:35:36 +1200 (NZST) Received: from [IPv6:2404:130:0:1000:d067:9a65:62ff:3539] (unknown [IPv6:2404:130:0:1000:d067:9a65:62ff:3539]) (Authenticated sender: mark.kirkwood) by mail.catalyst.net.nz (Postfix) with ESMTPSA id A9FF732C72; Fri, 29 Aug 2014 16:35:36 +1200 (NZST) Message-ID: <54000317.6030604@catalyst.net.nz> Date: Fri, 29 Aug 2014 16:35:35 +1200 From: Mark Kirkwood User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Alvaro Herrera , Robert Haas CC: Amit Kapila , Haribabu Kommi , "pgsql-hackers@postgresql.org" Subject: Re: Per table autovacuum vacuum cost limit behaviour strange References: <53672F63.3080400@catalyst.net.nz> <53686F22.8030300@catalyst.net.nz> <20140826161911.GE6343@eldon.alvh.no-ip.org> <20140828173646.GR7046@eldon.alvh.no-ip.org> <20140828205635.GA7705@eldon.alvh.no-ip.org> In-Reply-To: <20140828205635.GA7705@eldon.alvh.no-ip.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org On 29/08/14 08:56, Alvaro Herrera wrote: > Robert Haas wrote: > >> I agree that you might not like that. But you might not like having >> the table vacuumed slower than the configured rate, either. My >> impression is that the time between vacuums isn't really all that >> negotiable for some people. I had one customer who had horrible bloat >> issues on a table that was vacuumed every minute; when we changed the >> configuration so that it was vacuumed every 15 seconds, those problems >> went away. > > Wow, that's extreme. For that case you can set > autovacuum_vacuum_cost_limit to 0, which disables the whole thing and > lets vacuum run at full speed -- no throttling at all. Would that > satisfy the concern? > Well no - you might have a whole lot of big tables that you want vacuum to not get too aggressive on, but a few small tables that are highly volatile. So you want *them* vacuumed really fast to prevent them becoming huge tables with only a few rows therein, but your system might not be able to handle *all* your tables being vacuum full speed. This is a fairly common scenario for (several) web CMS systems that tend to want to have session and/cache tables that are small and extremely volatile, plus the rest of the (real) data that is bigger and vastly less volatile. While there is a valid objection along the lines of "don't use a database instead of memcache", it does seem reasonable that Postgres should be able to cope with this type of workload. Cheers Mark -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers