Re: [pgsql-www] NuSphere and PostgreSQL for windows

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: [pgsql-www] NuSphere and PostgreSQL for windows
Дата
Msg-id 87he30j255.fsf@stark.dyndns.tv
обсуждение исходный текст
Ответ на Re: [pgsql-www] NuSphere and PostgreSQL for windows  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
Ответы Re: [pgsql-www] NuSphere and PostgreSQL for windows  (Shridhar Daithankar <shridhar_daithankar@persistent.co.in>)
Список pgsql-hackers
Shridhar Daithankar <shridhar_daithankar@persistent.co.in> writes:

> The little pthreads programming I did on linux/freeBSD tells me that it
> supports majority of features except TLS(linux2.4/linuxthreads) and per thread
> signals. 

LinuxThreads is dead. NPTL is the way and the light.

It has ELF TLS which for super-fast thread-local storage, proper per-thread
signal semantics, as well as not using USR1,USR2 in ways that mess up
signal-handling. It also has kernel support for user-space mutexes (strange as
that may sound).

> >>I am sure local buffers would be lot cheaper than shared buffers.
> > On what do you base that?  It sounds like pure fantasy to me.  RAM is RAM.

Well that's not entirely true. Thread context switches don't involve MMU
operations the way process context switches do. So even though RAM is RAM, the
RAM in the threaded implementation might be faster to access simply because
it's already in the processor cache. The process model has to do a TLB flush
and load a whole new page table which takes a lot of time to begin with, and
then slows down all memory accesses later.

-- 
greg



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: PL contribution guidelines?
Следующее
От: Manfred Spraul
Дата:
Сообщение: Re: Threads vs Processes (was: NuSphere and PostgreSQL