agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedFrom: Tom Lane <tgl@sss.pgh.pa.us>
To: Thomas Hallgren <thomas@tada.se>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: PL/Java Development <Pljava-dev@gborg.postgresql.org>
Subject: Re: Shared memory
Date: Mon, 27 Mar 2006 10:31:47 -0500
Message-ID: <14559.1143473507@sss.pgh.pa.us> (raw)
In-Reply-To: <4427A8F1.3020009@tada.se>
References: <4423CF32.3060406@tada.se>
<20060324125851.GC8718@svana.org>
<4427A8F1.3020009@tada.se>
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
view thread (22+ messages) latest in thread
Message-ID: <14559.1143473507@sss.pgh.pa.us>
Permalink: ../14559.1143473507@sss.pgh.pa.us/
Also on: postgresql.org/message-id/14559.1143473507@sss.pgh.pa.us
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pljava-dev@postgresql.org
Cc: tgl@sss.pgh.pa.us, thomas@tada.se, kleptog@svana.org, pgsql-hackers@postgresql.org, Pljava-dev@gborg.postgresql.org
Subject: Re: Shared memory
In-Reply-To: <14559.1143473507@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox