From: jdement@lookout.mtt.it.uswc.uswest.com (Jeffrey DeMent)
Subject: Max RPCs Queued per Server
Date: Fri, 30 Sep 1994 18:35:28 GMT [thread overview]
Message-ID: <CwyGz5.FG4@da_vinci.ecte.uswc.uswest.com> (raw)
DCE Community,
I'm trying to figure out how many rpc's can be queued up to a individual server
in a DCE system, and I need a sanity check and some help.
Can someone look at my thinking as described below and make some sense out of
it?
ASSUMPTIONS:
1)TCP only -- if someone wants to address UDP great, otherwise I'll deal with
it on another post.
2)Dynamically chosen endpoints -- apparently if this is not the case, other
things change.
3)"maximum listen backlog" on a socket is 8 -- WHAT IS THIS "MAXIMUM LISTEN
BACKLOG", I'm thinking it's a TCP thing, not a DCE concept ?
4)I'll specify "max_call_requests" of 16 in my server initialization code in
the rpc_server_listen() call.
LOGIC:
1)Within my DCE server process, a single "listener thread" is set up for
TCP that listens to all TCP connection requests on a socket (this is
called a "listening socket" and is different and counted separately from
"comm sockets" described below (correct) ?).
2)For each connection request (first DCE rpc from a client ?) the "listener
thread" receives, it creates a socket and a "receiver thread" is assigned
for subsequent communication with the client (who requested the connection).
The socket created here that the "receiver thread" listens on is called a
"comm socket".
3)The "receiver thread" accepts an rpc's data and queues it up for use by a
"call thread". The number of "call threads" is dictated by the
"max_call_requests" in the rpc_server_listen() call.
Now I'm a little confused .....
* The class notes say: number of requests (I read this rpc's) in queue
waiting for a "call thread" to execute them is 8 times the number of
"call threads" which means in my example I have the capacity for 8*16
rpc's in the queue plus another 16 rpc's being executed by my 16 "call
threads" -- for a total of 128+16=144 -- my DCE server can have 144 rpc's
in queue or executing.
Is this right ?
* But my class notes also talk about DCE creating sockets using the
following logic: "max_call_requests" divided by "maximum listen backlog"
which in my case would be 16/8=2, and it seems to suggest these are the
aforementioned "comm sockets" which have "receiver threads" on them.
But that seems to make no sense if everything else here holds.
..... so I'm confused !
Anyone care to tread into this and show me the light ?
Jeff
_____________________________________________________________________
Jeffrey L. DeMent _._._._._._._
U S WEST Technologies (_|_|_|_|_|_|_)
1475 Lawrence Street, Suite 304 ` \` | | '/ '
Denver, Colorado 80202 ` \`| |'/ '
` \| |/ '
Phone: (303) 595-0519 ` \0/ '
Fax: (303) 595-5055 `~#~'
^
Internet: jdement@lookout.mnet.uswest.com / \
_____________________________________________________________________
next reply other threads:[~1994-09-30 18:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-09-30 18:35 Jeffrey DeMent [this message]
1994-09-30 16:40 ` Max RPCs Queued per Server Muiz Motani
1994-10-04 3:02 ` Nathaniel Mishkin
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox