Re: [PATCHES] SRA Win32 sync() code

From: "Merlin Moncure" <merlin(dot)moncure(at)rcsonline(dot)com>
To: "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: "PostgreSQL Win32 port list" <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: [PATCHES] SRA Win32 sync() code
Date: 2003-11-17 14:28:22
Message-ID: 303E00EBDD07B943924382E153890E5434AA0E@cuthbert.rcsinc.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers-win32

Bruce Momjian wrote:
> So, by my logic, if we have 100 backends all doing updates, we will
need
> 10 * 100 or 1000 writer processes or threads to keep up with that
load.
> That seems quite excessive to me from a context switching and process
> overhead perspective.

Quick point:
A single process using multiple threads dedicated to writing is an
excellent optimization target on the win32 platform, (and if it is
similarly useful on other platforms, so much the better). To my way of
thinking, this is an ideal approach in the long run.

Multiple processes scheduling writes (even it is only 10), IMO, is a bad
idea because of the way process management on win32 works for various
reasons.

Merlin

Responses

Browse pgsql-hackers-win32 by date

  From Date Subject
Next Message Bruce Momjian 2003-11-17 15:32:11 Re: [PATCHES] SRA Win32 sync() code
Previous Message Hannu Krosing 2003-11-17 10:28:34 Re: [PATCHES] SRA Win32 sync() code