Re: Inter-process call overhead under Windows XP SP2
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Fri, 20 Oct 2006 18:08:13 -0700
As I already said, the cost depends on many factors, inluding
the number of threads running on the machine and the CPU
utilization. The number of arguments affects the memory copies
only, but those are negligible in your case. The most overhead
comes from thread switching. (BTW, there's no memory copy
involved from one process into the other - COM likely uses
shared memory.)
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"Dilip" <rdilipk@xxxxxxxxx> wrote in message
news:1161366387.113085.8060@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Alexander Nickolov wrote:
It's hard to tell. You didn't mention your hardware platform.
And you didn't say what are the apartment models for your
client and server. Best performance would come from using
MTA in both places. Anyway, 1 microsecond sounds reasonable
if you have a dual core CPU and/or a lightly loaded machine.
Otherwise thread switching among more and longer-lasting
threads would prevent you from obtaining such good times.
Sorry.. The applications are running under a dual-proc Intel 986MHz,
1.2GB Ram, Windows 2000 SP4 machine.
An inproc COM object from process 1 (apartment threaded) calls in to a
COM server (process 2, acting as a NT service). process 2 is
completely multi-threaded (MTA).
Just to skew this a bit further I am not running a test application on
process 1. Its an application that is part of a much larger system
that ends up calling the interface method exposed by process 2 around
half-a-million times.
Roughly what do you think would be the cost of a COM/LPC call with 10
parameters?
.
- Prev by Date: Re: Heap resize policy
- Next by Date: Re: Disable File Deletion/Hiding Folders
- Previous by thread: Re: Inter-process call overhead under Windows XP SP2
- Next by thread: Re: Inter-process call overhead under Windows XP SP2
- Index(es):
Relevant Pages
|