From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: PostgreSQL, Asynchronous I/O, Buffered I/O and why did fsync-gate not affect Oracle or MySQL?
Date: Sun, 2 May 2021 13:31:01 -0500
Message-ID: <25742a94-aa0d-1595-fe0d-6931e81c1d24@gmail.com> (raw)
In-Reply-To: <CAF4RT5S-yddHmGzxZwpJZwxLkSzk22F-FuxpVrwaD+Pn03evaQ@mail.gmail.com>
References: <CAF4RT5S-yddHmGzxZwpJZwxLkSzk22F-FuxpVrwaD+Pn03evaQ@mail.gmail.com>
On 5/2/21 8:46 AM, Pól Ua Laoínecháin wrote:
[snip]
> Now, I'm not quite sure that I completely comprehend matters: Is there
> a difference between Asynchronous I/O and Buffered I/O?
* Asynchronous (a-syn-chron-ous) is an adjective which means "not together
with time".
* Buffered means "read more than you need at the moment, and then do
processing to/from a cache".
They are not mutually exclusive.
Their antonyms are
* Synchronous (syn-chron-ous): together with time.
* Direct, where you read/write only what you need at the moment, directly
to/from the IO device.
Thus, *async* IO is where you tell the IO subsystem that you need something,
and then *go off and do something else*; the IO system interrupts you when
the data has been delivered.
*Sync*hronous IO is where you request IO and then *wait for the data*.
--
Angular momentum makes the world go 'round.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: ronljohnsonjr@gmail.com
Subject: Re: PostgreSQL, Asynchronous I/O, Buffered I/O and why did fsync-gate not affect Oracle or MySQL?
In-Reply-To: <25742a94-aa0d-1595-fe0d-6931e81c1d24@gmail.com>
References: <CAF4RT5S-yddHmGzxZwpJZwxLkSzk22F-FuxpVrwaD+Pn03evaQ@mail.gmail.com> <25742a94-aa0d-1595-fe0d-6931e81c1d24@gmail.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