Re: Shared memory

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Shared memory
Дата
Msg-id 14559.1143473507@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Shared memory  (Thomas Hallgren <thomas@tada.se>)
Ответы Re: Shared memory  (Thomas Hallgren <thomas@tada.se>)
Список pgsql-hackers
Thomas Hallgren <thomas@tada.se> writes:
> The real downside is that a call from SQL to PL/Java using the current
> in-process approach is really fast. It takes about 5 micro secs on my
> 2.8GHz i386 box. The overhead of an IPC-call on that box is about 18
> micro secs on Linux and 64 micro secs on Windows. That's an overhead
> of between 440% and 1300% due to context switching alone. Yet, for
> some applications, perhaps that overhead is acceptable?

It's only that much difference?  Given all the other advantages of
separating the JVM from the backends, I'd say you should gladly pay
that price.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Recovery from multi trouble
Следующее
От: Thomas Hallgren
Дата:
Сообщение: Re: Shared memory