Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIart-0006ar-8n for pgsql-admin@arkaria.postgresql.org; Fri, 02 Nov 2018 14:56:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIarr-0005Lk-Qg for pgsql-admin@arkaria.postgresql.org; Fri, 02 Nov 2018 14:56:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gIarr-0005Ld-Iy for pgsql-admin@lists.postgresql.org; Fri, 02 Nov 2018 14:56:11 +0000 Received: from mtaout004-public.msg.strl.va.charter.net ([68.114.190.29]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gIarp-0002Xg-4t for pgsql-admin@postgresql.org; Fri, 02 Nov 2018 14:56:11 +0000 Received: from impout005 ([68.114.189.20]) by mtaout004.msg.strl.va.charter.net (InterMail vM.9.00.023.01 201-2473-194) with ESMTP id <20181102145606.UGGX3685.mtaout004.msg.strl.va.charter.net@impout005>; Fri, 2 Nov 2018 09:56:06 -0500 Received: from cerberus.crazybean.net ([24.151.10.150]) by impout005 with charter.net id v2w51y00D3EE3TL012w5r6; Fri, 02 Nov 2018 09:56:06 -0500 X-Authority-Analysis: v=2.2 cv=Ts+WvHfh c=1 sm=1 tr=0 a=D2HTw/M6/8MmcHighGO7rg==:117 a=D2HTw/M6/8MmcHighGO7rg==:17 a=IkcTkHD0fZMA:10 a=JHtHm7312UAA:10 a=pGLkceISAAAA:8 a=OfDPy7CYWN6p-OAUSUkA:9 a=QEXdDO2ut3YA:10 Received: from [10.25.227.242] (144.121.139.193.lightower.net [144.121.139.193]) by cerberus.crazybean.net (OpenSMTPD) with ESMTPSA id deeccf61 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 2 Nov 2018 10:56:05 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.0 \(3445.100.39\)) Subject: Re: Relation between parameters in postgresql.conf file!! From: Rui DeSousa In-Reply-To: <1541140765942-0.post@n3.nabble.com> Date: Fri, 2 Nov 2018 10:56:03 -0400 Cc: pgsql-admin@postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1541140765942-0.post@n3.nabble.com> To: pavan95 X-Mailer: Apple Mail (2.3445.100.39) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Nov 2, 2018, at 2:39 AM, pavan95 = wrote: >=20 >=20 > 1. vacuum_cost_page_hit > 2. vacuum_cost_page_miss > 3. vacuum_cost_page_dirty >=20 >=20 These are tunable parameters to control auto vacuum. Look at = vacuum_cost_limit and then consider how the above parameters would = affect it. > 1. autovacuum_vacuum_scale_factor=3D0.2(20%) > 2. autovacuum_analyze_scale_factor=3D0.1(10%) >=20 Those are just the factors used to determine when auto vacuum or analyze = should vacuum/analyze a table.=20 > =46rom the below description: >=20 >> vacuum_cost_page_hit (integer) >> The estimated cost for vacuuming a buffer found in the shared buffer = cache. > It represents the cost to lock the buffer pool, lookup the shared hash = table > and scan the content of the page. The default value is one > 1. Does the vacuum operate on the buffer pool(memory)? Assuming it is > operated on the data files!!! > 2. What does the sentence "lock the buffer pool, lookup the shared = hash > table and scan the content of the page" refers to?? >=20 To do anything with the block in the datafile it first needs to be = loaded into the buffer pool thus all associated overhead of that = operation. >> vacuum_cost_page_dirty (integer) >> The estimated cost charged when vacuum modifies a block that was = previously > clean. It represents the extra I/O required to flush the dirty block = out to > disk again. The default value is 20. > What does actually happen here?? Why does this generate extra I/O?? =20= >=20 > What is the meaning of the sentence "It represents the extra I/O = required to > flush the dirty block out to disk again"?? Why does vacuum flush the = dirty > block to disk when writer process does that? >=20 Again it=E2=80=99s the same as the other tunable parameters.. it just = states the cost of modifying a clean block.