Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dVIMz-00056D-7J for pgsql-performance@arkaria.postgresql.org; Wed, 12 Jul 2017 14:12:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dVIMy-0008Ln-Pc for pgsql-performance@arkaria.postgresql.org; Wed, 12 Jul 2017 14:12:00 +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_2) (envelope-from ) id 1dVIMx-00089x-Bw for pgsql-performance@postgresql.org; Wed, 12 Jul 2017 14:11:59 +0000 Received: from mail-qk0-x235.google.com ([2607:f8b0:400d:c09::235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1dVIMu-0006D1-BP for pgsql-performance@postgresql.org; Wed, 12 Jul 2017 14:11:58 +0000 Received: by mail-qk0-x235.google.com with SMTP id a66so11216172qkb.0 for ; Wed, 12 Jul 2017 07:11:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=5fYISjNHOXM8D6flidZeY3eYqomNpzEiS9wLg5jUjbM=; b=hqF0rFmWC7ykiBy+MauGesiZM0gRrJ40COQjGzwnach73wOlXGPD2EtVgfOG3E8P1x 5A5uHDqk+Il073lX4/Facg3xaVtFf1ligzgqvaDyaU3tQPiSZ3EFn4HRHS+z1TI8BjZG PnZtc/eXUB9/FuRv/xBgH1FWXizhnfxXuxcJ0AX1L+e20OkmFKZqFBbnhkqmE5/OqqJl M0Jp14aQ9TkzwD3lI1fTCf1ksPqe8FA3ZaY42yyzq3riQDDRd1hSGDlp+6COcN2/wn0K VROEokuyq0V79F6y4cEHqGkEgOP9q/Mw2Exb7YPG9j8LV15GqvRbL2mskyM+b5pWqeeO or5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=5fYISjNHOXM8D6flidZeY3eYqomNpzEiS9wLg5jUjbM=; b=EDOXnCirnPI1EBmcp4adNqns/9ZBtz9lfhen3GqdlB6FtLSlYsmBrkm4ZrZpkQOU4J JSdGgzkk4/28/YwJnC+ol32b50Unrfd1oK6nsinl/IzdtFrEnIwrflK185mGmZrwju4m 9YNlvDqR96NOXhkE1QeosJYZrdNtcbphaJnN4W2iS3v421mtSnWm1th/tKM33D2KQtAF /9Fu6EUgtizvwfcrvabeUCrxO5znomkoGbEk9cbIHwjh/xZ2SQfC6vWEBzlbnIecwsi0 aShhtY227qCMbfoUMMJ5ygVjNmTu/IZw2RS3DUBL2ZehJ6DRU1xltyUW8hz8ugafKaob XQxQ== X-Gm-Message-State: AIVw111B/iGnGaQYrrat/uWsSbZgXk1pkSShhtrIdqOhSVdDnJXPuHam zSDSV103LOED/nb7up6Bo5noWVswBQ== X-Received: by 10.55.120.134 with SMTP id t128mr6052222qkc.171.1499868714802; Wed, 12 Jul 2017 07:11:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.35.136 with HTTP; Wed, 12 Jul 2017 07:11:54 -0700 (PDT) In-Reply-To: References: <8422687a-e7bb-abad-987b-a102573e3979@commandprompt.com> From: bricklen Date: Wed, 12 Jul 2017 07:11:54 -0700 Message-ID: Subject: Re: Very poor read performance, query independent To: Charles Nadeau Cc: postgres performance list Content-Type: multipart/alternative; boundary="94eb2c05e5d2f4a64905541f651b" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-performance Precedence: bulk Sender: pgsql-performance-owner@postgresql.org --94eb2c05e5d2f4a64905541f651b Content-Type: text/plain; charset="UTF-8" On Wed, Jul 12, 2017 at 12:30 AM, Charles Nadeau wrote: > > I use noop as the scheduler because it is better to let the RAID > controller re-arrange the IO operation before they reach the disk. Read > ahead is set to 128: > > charles@hpdl380g6:~$ cat /sys/block/sdc/queue/read_ahead_kb > 128 > charles@hpdl380g6:~$ cat /sys/block/sdc/queue/scheduler > [noop] deadline cfq > > > Perhaps pg_test_fsync ( https://www.postgresql.org/docs/9.6/static/pgtestfsync.html) and pg_test_timing will help shed some light here, or at the very least give some numbers to compare against. --94eb2c05e5d2f4a64905541f651b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On W= ed, Jul 12, 2017 at 12:30 AM, Charles Nadeau <charles.nadeau@gmail= .com> wrote:

I use noop as the scheduler because it is be= tter to let the RAID controller re-arrange the IO operation before they rea= ch the disk. Read ahead is set to 128:
charles@hpdl380g6:~$ cat /sys/block/sdc/queue/read_ahead_kb
128
charles@hpdl380g6:~$ cat /sys/block/sdc/= queue/scheduler
[noop] deadline cfq=C2=A0
=

Perhaps pg_test_fsync (https:= //www.postgresql.org/docs/9.6/static/pgtestfsync.html) and pg_test_timi= ng will help shed some light here, or at the very least give some numbers t= o compare against.

--94eb2c05e5d2f4a64905541f651b--