Re: WIN32 native ... lets start?!? - Mailing list pgsql-hackers

From Magnus Naeslund(f)
Subject Re: WIN32 native ... lets start?!?
Date
Msg-id 02af01c1fd38$0760e0f0$020a0a0a@mnd
Whole thread Raw
In response to WIN32 native ... lets start?!?  (Joerg Hessdoerfer <Joerg.Hessdoerfer@sea-gmbh.com>)
List pgsql-hackers
Joerg Hessdoerfer <Joerg.Hessdoerfer@sea-gmbh.com> wrote:
[snip]
> The problem is not the fork() call itself, this has been done (MinGW
> and cygwin I know of, possibly others) but the speed of fork() on
> windows, it's creepingly slow (due to usermode copy, I assume ;-).
> 
> IPC needs to be done, I'm just about to start...
> 

I'm not so familiar with the win32 kernel mode stuff.
But i've seen programs using .vxd (kernelmode, ring X ?) helpers for getting more privileges, maybe cross process
ones.
Well, i'll look into this sometime if it's possible to reduce the context switches by going vxd.
There must be some way to read protection of the pages and map them as COW or RO in the new process to get rid of much
ofthe copy, but then again, we're talking microsoft here :)
 
I once did a .exe loader that used the MapViewOfFile (win32 mmap) of the .exe itself to accomplish shared loadable
modulesthat worked on x86 linux and win32 without recompile (might be something like the XFree86 binary gfx card
drivers).

Good luck on the IPC work!

Magnus

-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Programmer/Networker [|] Magnus Naeslund
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: interfaces/ecpg/preproc reduce/reduce conflicts
Next
From: Neil Conway
Date:
Subject: minor CVS regression