From: | Fujii Masao <masao(dot)fujii(at)gmail(dot)com> |
---|---|
To: | Peter Geoghegan <peter(at)2ndquadrant(dot)com> |
Cc: | Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Process wakeups when idle and power consumption |
Date: | 2011-05-10 01:58:59 |
Message-ID: | BANLkTin2L2wcJH5MsuRb4vVn=H2LrZHHiA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, May 9, 2011 at 8:27 PM, Peter Geoghegan <peter(at)2ndquadrant(dot)com> wrote:
> On 9 May 2011 11:19, Heikki Linnakangas
> <heikki(dot)linnakangas(at)enterprisedb(dot)com> wrote:
>
>> Can't we use the pipe trick on Windows? The API is different, but we use
>> pipes on Windows for other things already. When a process is launched, open
>> a pipe between postmaster and the child process. In the child, spawn a
>> thread that just calls ReadFile() on the pipe, which blocks. If postmaster
>> dies, the ReadFile() call will return with an error.
>
> Alright. I'm currently working on a proof-of-concept implementation of
> that. In the meantime, any thoughts on how this should meld with the
> existing latch implementation?
How about making WaitLatch monitor the file descriptor for the pipe
by using select()?
Regards,
--
Fujii Masao
NIPPON TELEGRAPH AND TELEPHONE CORPORATION
NTT Open Source Software Center
From | Date | Subject | |
---|---|---|---|
Next Message | Andrew Dunstan | 2011-05-10 02:15:39 | Re: Formatting Curmudgeons WAS: MMAP Buffers |
Previous Message | Rob Wultsch | 2011-05-10 01:57:35 | Re: crash-safe visibility map, take five |