From: Jim Nasby <Jim.Nasby@BlueTreble.com>
To: Jinhua Luo <luajit.io@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: insert performance
Date: Sun, 10 Jan 2016 15:05:52 -0600
Message-ID: <5692C7B0.3060002@BlueTreble.com> (raw)
In-Reply-To: <CAAc9rOz2+yL=SWdA-NMCVg-iPBCBdzW+uQyNi3+se9S6CrpvvA@mail.gmail.com>
References: <CAAc9rOz2+yL=SWdA-NMCVg-iPBCBdzW+uQyNi3+se9S6CrpvvA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-performance>
On 1/9/16 11:57 PM, Jinhua Luo wrote:
> But I do not understand that why the process do so many IO with async
> commit? And it does not even happen at the shared buffer flushing and
> locks waiting. Where's the code path doing these IO?
I assume you're asking about all the IO to the heap table. That is most
likely occurring as part of ReadBuffer(). As soon as you fill up shared
buffers, BufferAlloc() is likely to end up with a dirty buffer,
resulting in it calling FlushBuffer() (see
src/backend/storage/buffer/bufmgr.c#1084).
Note that that call is tracked by
TRACE_POSTGRESQL_BUFFER_WRITE_DIRTY_START(), so I'd expect you to see it
in the relevant systemtap stats.
--
Jim Nasby, Data Architect, Blue Treble Consulting, Austin TX
Experts in Analytics, Data Architecture and PostgreSQL
Data in Trouble? Get it in Treble! http://BlueTreble.com
--
Sent via pgsql-performance mailing list (pgsql-performance@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: Jim.Nasby@BlueTreble.com, luajit.io@gmail.com
Subject: Re: insert performance
In-Reply-To: <5692C7B0.3060002@BlueTreble.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox