Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1ZXEY5-00037M-Me for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Sep 2015 20:22:25 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1ZXEY4-00018M-JH for pgsql-hackers@arkaria.postgresql.org; Wed, 02 Sep 2015 20:22:24 +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.84) (envelope-from ) id 1ZXEY2-00016n-TF for pgsql-hackers@postgresql.org; Wed, 02 Sep 2015 20:22:22 +0000 Received: from [212.85.157.144] (helo=mimolette.dalibo.net) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1ZXEY0-0007KF-4S for pgsql-hackers@postgresql.org; Wed, 02 Sep 2015 20:22:22 +0000 Received: from [192.168.0.4] (aur75-1-78-192-238-147.fbxo.proxad.net [78.192.238.147]) by mimolette.dalibo.net (Postfix) with ESMTPSA id E85EB1F103F0; Wed, 2 Sep 2015 22:21:48 +0200 (CEST) Message-ID: <55E75A5C.2090409@dalibo.com> Date: Wed, 02 Sep 2015 22:21:48 +0200 From: Julien Rouhaud User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: Andres Freund CC: Jeff Janes , Bruce Momjian , Merlin Moncure , "pgsql-hackers@postgresql.org" Subject: Re: Allow a per-tablespace effective_io_concurrency setting References: <20141206130828.GA1314@momjian.us> <20141209204337.GC24488@momjian.us> <55AA2469.20306@dalibo.com> <55AA27C3.7060009@dalibo.com> <20150902135351.GA5286@alap3.anarazel.de> In-Reply-To: <20150902135351.GA5286@alap3.anarazel.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 212.85.157.144 (failed) X-Pg-Spam-Score: -1.1 (-) 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 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/09/2015 15:53, Andres Freund wrote: > On 2015-07-18 12:17:39 +0200, Julien Rouhaud wrote: > > You also didn't touch /* * How many buffers PrefetchBuffer callers > should try to stay ahead of their * ReadBuffer calls by. This is > maintained by the assign hook for * effective_io_concurrency. Zero > means "never prefetch". */ int target_prefetch_pages = 0; which > surely doesn't make sense anymore after these changes. > > But do we even need that variable now? > I thought this was related to the effective_io_concurrency GUC (possibly overloaded by the per-tablespace setting), so I didn't make any change on that. I also just found an issue with my previous patch, the global effective_io_concurrency GUC was ignored if the tablespace had a specific seq_page_cost or random_page_cost setting, I just fixed that in my local branch. >> diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h >> index dc167f9..57008fc 100644 --- a/src/include/utils/guc.h +++ >> b/src/include/utils/guc.h @@ -26,6 +26,9 @@ #define MAX_KILOBYTES >> (INT_MAX / 1024) #endif >> >> +/* upper limit for effective_io_concurrency */ +#define >> MAX_IO_CONCURRENCY 1000 + /* * Automatic configuration file name >> for ALTER SYSTEM. * This file will be used to store values of >> configuration parameters @@ -256,6 +259,8 @@ extern int >> temp_file_limit; >> >> extern int num_temp_buffers; >> >> +extern int effective_io_concurrency; + > > target_prefetch_pages is declared in bufmgr.h - that seems like a > better place for these. > I was rather sceptical about that too. I'll move these in bufmgr.h. Regards. - -- Julien Rouhaud http://dalibo.com - http://dalibo.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iQEcBAEBAgAGBQJV51pcAAoJELGaJ8vfEpOqIV0H/Rj1e/DtJS60X2mReWDyfooD G3j0Ptblhy+brYIIxo9Bdp9hVeYFmEqlOJIht9T/3gjfkg5IMz+5bV2waEbAan/m 9uedR/RmS9sz2YpwGgpd21bfSt2LwB+UC448t3rq8KtuzwmXgSVVEflmDmN1qV3z PseUFzS74HeIJWfxLRLGsJ5amN0hJ8bdolIfxdFR0FyFDv0tRv1DzppdMebVJmHs uIdJOU49sIDHjcnsUcq67jkP+IfTUon+nnwvk5FYVVKdBX2ka1Q/1VAvTfmWo0oV WZSlIjQdMUnlTX91zke0NdmsTnagIeRy1oISn/K1v+YmSqnsPqPAcZ6FFQhUMqI= =4ofZ -----END PGP SIGNATURE----- -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers