Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* Re: max no of listeners
@ 1993-12-16  8:57 Bernd Dreier
  1993-12-16 17:36 ` Larry Buickel
  0 siblings, 1 reply; 5+ messages in thread
From: Bernd Dreier @ 1993-12-16  8:57 UTC (permalink / raw)


I think you have to care about two different numbers. First one is the max_call_requests, which
you specify in one of the rpc_use_*protseq*() routines ( default is
rpc_c_protseq_max_reqs_default and this default is actually used in every case by now ). It gives
the maximum number of incoming remote procedure calls a server can handle. The handling of at
least this number of call requests by the server is guaranteed ( maybe even greater depending on
the protocol sequence ). The second important number ( the one you talk about ) is
max_calls_exec, which you specify in rpc_server_listen(). It is bordered by your hardware and
implicitly by max_call_requests. Cause the max_call_requests is always set to
rpc_c_protseq_max_reqs_default it doesn't make much sense to set max_calls_exec greater than
this, but still it is possible ( maybe more RPCs than max_call_requests are handled!!! ). The
incoming calls, which can be handled, but cannot be executed concurrently are queued. ( See OSF
DCE Application Development Reference )

Hope this helps!



        Bernd Dreier  /
                     /    
                    /   
_____________________________________________________________________
        University of Augsburg (Bavaria)
        Department of Mathematics - Computer Science
        Universitaetsstrasse 2
        D-86159 Augsburg                    Phone : +49 +821/598-2116 
        Internet: Dreier@Uni-Augsburg.DE    Fax :          598-2200


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: max no of listeners
  1993-12-16  8:57 max no of listeners Bernd Dreier
@ 1993-12-16 17:36 ` Larry Buickel
  1993-12-16 21:42   ` Mark Hickey
  1993-12-17 18:09   ` Seiichi Tatsukawa
  0 siblings, 2 replies; 5+ messages in thread
From: Larry Buickel @ 1993-12-16 17:36 UTC (permalink / raw)



Thanks Bernd and Bill, I'm almost there!  I have a couple
more questions here.  

When specifying a value using rpc_server_use_all_protseqs()
routines, does the max_calls_requests parameter specify the 
max *total* or the max for *each* protocol sequence? 

Similarly when I call rpc_server_use_protseq() for a specific
protocol sequence, does the max_call_requests parameter 
effectively override the "global" number of requests allowed
or does it govern only the number requested for that 
particular protocol sequence?

Finally, the app notes for IBM's version point out that 
whatever you specify for max_call_requests will be replaced
with rpc_c_protseq_max_reqs_default.  I checked and 
rpc_c_protseq_max_reqs_default is defined as 0 in 
<dce/idlbase.h> - I would guess that 0 is interpreted as 
infinite and this whole discussion on max_call_requests has
been moot?  Thanks ...

Larry B


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: max no of listeners
  1993-12-16 17:36 ` Larry Buickel
@ 1993-12-16 21:42   ` Mark Hickey
  1993-12-17  3:08     ` Nathaniel Mishkin
  1993-12-17 18:09   ` Seiichi Tatsukawa
  1 sibling, 1 reply; 5+ messages in thread
From: Mark Hickey @ 1993-12-16 21:42 UTC (permalink / raw)


In article <CI528o.2prG@austin.ibm.com> larry@austin.ibm.com writes:
>
>Thanks Bernd and Bill, I'm almost there!  I have a couple
>more questions here.  
>
>When specifying a value using rpc_server_use_all_protseqs()
>routines, does the max_calls_requests parameter specify the 
>max *total* or the max for *each* protocol sequence? 
>
See below.

>Similarly when I call rpc_server_use_protseq() for a specific
>protocol sequence, does the max_call_requests parameter 
>effectively override the "global" number of requests allowed
>or does it govern only the number requested for that 
>particular protocol sequence?
>
See below.

>Finally, the app notes for IBM's version point out that 
>whatever you specify for max_call_requests will be replaced
>with rpc_c_protseq_max_reqs_default.  I checked and 
>rpc_c_protseq_max_reqs_default is defined as 0 in 
><dce/idlbase.h> - I would guess that 0 is interpreted as 
>infinite and this whole discussion on max_call_requests has
>been moot?  Thanks ...

The max_calls_requests parameter in reality governs the number of sockets 
allocated to handle requests for a server for a particular protocol sequence.
The default (which, as you noted above, is used regardless of the value 
specified) ends up causing only one socket (endpoint) per protocol sequence
to be allocated (NOT infinity).  Note that this is a limitation of the 
current implementation and will probably change in the future.  The number of
calls the server can keep active at one time is governed by the max_call_exec 
parameter of the rpc_server_listen call (the size of the buffer of queued
requests is derived from this parameter).  The number of incoming packets the
server can handle is the machine dependent size of the listen backlog queue on
a socket.
    			Mark Hickey
                        OSF DEE Quality Assurance
                        mhickey@osf.org


>
>Larry B




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: max no of listeners
  1993-12-16 21:42   ` Mark Hickey
@ 1993-12-17  3:08     ` Nathaniel Mishkin
  0 siblings, 0 replies; 5+ messages in thread
From: Nathaniel Mishkin @ 1993-12-17  3:08 UTC (permalink / raw)


Mark Hickey (mhickey@ironman.qadce.osf.org) wrote:
: The number of incoming packets the server can handle is the machine
: dependent size of the listen backlog queue on a socket.

I think it's a little trickier than this.  The socket listen backlog
is (a) relevant only when the ncacn RPC protocol is being used, and
(b) matters only during transport-level connection establishment (as
opposed to all the times that multiple clients with established
connections are all trying to make calls around the same time to the
same server).

The idea of a "max calls" param to the rpc_use_protseq*() calls is
partly flawed (e.g., you don't generally really know what how many
clients are going to be using each protseq at any given moment), but
it seemed better than nothing.  It's kind of a placeholder in the
current implementation but exists against the possibility that the API
will be implemented in an environment where transport-level resources
can be explicitly allocated in a way more flexible than BSD sockets
allows them to be.  (Hint: just allocating more than one socket has
some problematical interactions with the endpoint mapper which is why
the current implementation doesn't do so.)
--
                -- Nat Mishkin
                   Atria Software, Inc.
                   mishkin@atria.com


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: max no of listeners
  1993-12-16 17:36 ` Larry Buickel
  1993-12-16 21:42   ` Mark Hickey
@ 1993-12-17 18:09   ` Seiichi Tatsukawa
  1 sibling, 0 replies; 5+ messages in thread
From: Seiichi Tatsukawa @ 1993-12-17 18:09 UTC (permalink / raw)


In article <CI528o.2prG@austin.ibm.com> larry@austin.ibm.com writes:
>
>When specifying a value using rpc_server_use_all_protseqs()
>routines, does the max_calls_requests parameter specify the 
>max *total* or the max for *each* protocol sequence? 

Each protocol sequence (if implemented to work correctly :-).

>Similarly when I call rpc_server_use_protseq() for a specific
>protocol sequence, does the max_call_requests parameter 
>effectively override the "global" number of requests allowed
>or does it govern only the number requested for that 
>particular protocol sequence?

There is no "global" number of requests allowed. It's the
combination of the number of connections accepted (tcp/ip
listen()'s backlog*number of ports, udp/ip?), the number of
requests queued (if all call executor threads are busy, default
8*number of call executor threads) and the number of call
executor threads allocated (max_calls_exec). The
max_call_requests supposed to govern the number of connections
accepted (or the number of connection requests queued) for a
particular protocol sequence if implemented.

>  I checked and
>rpc_c_protseq_max_reqs_default is defined as 0 in
><dce/idlbase.h> - I would guess that 0 is interpreted as
>infinite and this whole discussion on max_call_requests has
>been moot?

No. On most systems, it's likely SOMAXCONN.

---  Seiichi

     + Seiichi Tatsukawa (^[$BN)@n@:0l^[(B) tatsu_s@apollo.hp.com +
     +      Hewlett-Packard/Open Systems Software Division        +


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1993-12-17 18:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-12-16  8:57 max no of listeners Bernd Dreier
1993-12-16 17:36 ` Larry Buickel
1993-12-16 21:42   ` Mark Hickey
1993-12-17  3:08     ` Nathaniel Mishkin
1993-12-17 18:09   ` Seiichi Tatsukawa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox