Re: WIN32 native ... lets start?!?
От | Magnus Naeslund(f) |
---|---|
Тема | Re: WIN32 native ... lets start?!? |
Дата | |
Msg-id | 02af01c1fd38$0760e0f0$020a0a0a@mnd обсуждение исходный текст |
Ответ на | WIN32 native ... lets start?!? (Joerg Hessdoerfer <Joerg.Hessdoerfer@sea-gmbh.com>) |
Список | 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 по дате отправления: