Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 1D69B1337B47 for ; Tue, 26 Oct 2010 21:46:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 12758-09 for ; Wed, 27 Oct 2010 00:46:47 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-qw0-f46.google.com (mail-qw0-f46.google.com [209.85.216.46]) by mail.postgresql.org (Postfix) with ESMTP id 710B61337B58 for ; Tue, 26 Oct 2010 21:46:45 -0300 (ADT) Received: by qwk3 with SMTP id 3so104304qwk.19 for ; Tue, 26 Oct 2010 17:46:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=yHb18J+BIIRxQ+enG0v4aaHts/ySJZGcL0ij/+O96kc=; b=Fwjnhw9l79JUwzLt601h3pMtK7UyzMLElqw2JSHlOYpUhKR+A4lfGF3vgOpGKSyLnY 9fL2OWa0RDP3z0/krhJT+8cAwXbN4+H5QgRW0Y+SprasxqbG4A46xCbZGfNzM9PPRSlI KFFkFW7dFgPHylgKOb5VSr2Gbh5yuEAUXnEbo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=m0ppC5Zn9vwiZyibwtXia7YTJc4WPuHlw0F4oVi31oXO/LXHg5tLsYel2VdkEplPKi qe//Ka2DyHxtGW9D6IZG/QIM75ArbqXRV6nNEV2fsG8kWB3hy0Kg9YpqmDlzDhlS3n2y 3ttIdCOgOUKVokIJiXRfMzvG2/fgcWd4mIyoE= Received: by 10.224.6.136 with SMTP id 8mr2504429qaz.0.1288140405879; Tue, 26 Oct 2010 17:46:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.1.67 with HTTP; Tue, 26 Oct 2010 17:46:25 -0700 (PDT) In-Reply-To: <201010210230.o9L2UMX11996@momjian.us> References: <201010210230.o9L2UMX11996@momjian.us> From: Josh Kupershmidt Date: Tue, 26 Oct 2010 20:46:25 -0400 Message-ID: Subject: Re: [NOVICE] Asynchronous I/O in Postgres To: Bruce Momjian Cc: mladen.gogala@vmsinfo.com, pgsql-docs@postgresql.org Content-Type: multipart/mixed; boundary=0015175ce0c650365004938e8fb0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201010/52 X-Sequence-Number: 6193 --0015175ce0c650365004938e8fb0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable [moving to -docs] On Wed, Oct 20, 2010 at 10:30 PM, Bruce Momjian wrote: > Josh Kupershmidt wrote: >> 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? =A0Can someone suggest > updated docs? It looks like effective_io_concurrency only has an impact on bitmap heap scans. I think a brief mention of this fact in the docs for effective_io_concurrency should suffice, patch attached. Josh --0015175ce0c650365004938e8fb0 Content-Type: application/octet-stream; name="effective_io_concurrency-doc.patch" Content-Disposition: attachment; filename="effective_io_concurrency-doc.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_gfrhho6y0 ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9jb25maWcuc2dtbCBiL2RvYy9zcmMv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