Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id CDAF61335B36 for ; Wed, 20 Oct 2010 23:30:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 71793-02 for ; Thu, 21 Oct 2010 02:30:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 1204C1337B5A for ; Wed, 20 Oct 2010 23:30:20 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o9L2UMX11996; Wed, 20 Oct 2010 22:30:22 -0400 (EDT) From: Bruce Momjian Message-Id: <201010210230.o9L2UMX11996@momjian.us> Subject: Re: Asynchronous I/O in Postgres In-Reply-To: To: Josh Kupershmidt Date: Wed, 20 Oct 2010 22:30:22 -0400 (EDT) CC: mladen.gogala@vmsinfo.com, "pgsql-novice@postgresql.org" X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/135 X-Sequence-Number: 24107 Josh Kupershmidt wrote: > On Fri, Oct 8, 2010 at 8:14 AM, Mladen Gogala wrote: > > Mladen Gogala wrote: > >> > >> So, essentially, the process is reading block by block, in a sequence. > >> What, exactly, does "effective_io_concurrency" mean? > >> > > > > To rephrase my question, can anybody tell me where in the code is it used? > > The docs are a bit sparse here :-( > > But it looks to me like effective_io_concurrency only affects bitmap > heap scans. The setting from effective_io_concurrency gets put into > "target_prefetch_pages" in ./src/backend/utils/misc/guc.c . But the > only place which uses that variable is > ./src/backend/executor/nodeBitmapHeapscan.c. > > The EnterpriseDB docs > > mention: > "effective_io_concurrency is only used for Bitmap Heap Scans. For > normal sequential scans the operating system should handle read-ahead > internally (On Linux, see the blockdev command, in particular --setra > and --setfra)." So, this this also true for community Postgres? Can someone suggest updated docs? -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + It's impossible for everything to be true. +