| Allegro CL version 6.2 New since 6.2 release. | |||||||||
Arguments: &key limit drop active query flush forget show
This function was added to the Allegro CL RPC facility after the
release of Allegro CL 6.2. You must have downloaded the relevant patch
(you can do so with update-allegro). If you have downloaded the
patch, this function rpc-version will be defined and the
form (rpc-version) will return (3 2
2) (version 3.2.2) or later.
This function is used to query and to manage the process pool maintained by the Allegro CL RPC Module. Each new in-bound remote call (a call that is not a callback from an out-bound call) is evaluated in a new Lisp process. In the os-threads model of Lisp multi-processing (see multiprocessing.htm), there is some overhead associated with the creation of a new Lisp process. The process pool reduces this overhead by re-using processes.
The keyword arguments are:
nil. See below for possible values for query and the resulting value of the function call.
nil,
display the status, parameters and statistics of the process pool on
*standard-output*.
nil,
discard all the idle processes in the pool.
nil,
discard any pending remote calls waiting for a process.
:none, disable the
process pool facility. When non-nil (but not
:none), start a new pool. In both cases, all
previous statistics are discarded.If the flush
and/or forget arguments are non-nil, their effect takes place first. If the
flush argument is nil or
omitted, then any idle processes are discarded with a warning. If the
forget argument is nil or omitted, then any waiting work items are
discarded with a warning.
If the value of the query argument is one of the
listed keywords, rpc-process-pool returns information about
the process pool and the status of processes, as described. If the
value of the query argument is nil or omitted, rpc-process-pool returns nil.
| Value of query | Value returned by rpc-process-pool |
nil.
This is the default. |
nil |
:waiting |
Return the number of remote calls waiting for a process at this moment. |
:pool |
Return the number of idle processes in the pool at this moment. |
:running |
Return the number of processes running a remote call at this moment. |
:limit |
Return the limit on the number of idle processes kept in the pool. |
:drop |
Return the limit on how long idle processes are kept in the pool. |
:active |
Return the limit on the number of processes that will be run simultaneously to handle remote calls. |
:max-active |
Return the maximum number of active processes. |
:max-waiting |
Return the maximum number of calls waiting for a process. |
:re-used |
Return the number of times a process was re-used. |
:new |
Return the number of times a process was created. |
:saved |
Return the number of times a process was saved for re-use. |
:killed |
Return the number of times a process was discarded after use. |
:dropped |
Return the number of times a process was discarded from the idle pool |
See also rpc.htm for general information on the Remote Procedure Call utility in Allegro CL.
Copyright (c) 1998-2002, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 6.2. This page is new in the 6.2 release.
Created 2002.2.26.
| Allegro CL version 6.2 New since 6.2 release. | |||||||||