HP-UX SNAplus2 NOF Programmer's Guide
NOF API Verbs (QUERY Verbs)
QUERY_KERNEL_MEMORY_LIMIT
Chapter 4708
QUERY_KERNEL_MEMORY_LIMIT
This verb returns information about the amount of kernel memory that
SNAplus2 is currently using, the maximum amount it has used, and the
configured limit. This allows you to check memory usage and set the
limit appropriately, to ensure that sufficient memory is available for
SNAplus2 components and for other programs on the HP-UX computer.
You can specify the kernel memory limit when starting the SNAplus2
software (for more information, see the HP-UX SNAplus2
Administration Guide), or modify it later when the node is running
(using the SET_KERNEL_MEMORY_LIMIT verb).
VCB Structure
typedef struct query_kernel_memory_limit
{
AP_UINT16 opcode; /* verb operation code */
unsigned char reserv2; /* reserved */
unsigned char format; /* reserved */
AP_UINT16 primary_rc; /* primary return code */
AP_UINT32 secondary_rc; /* secondary return code */
AP_UINT32 limit; /* kernel memory limit, 0 => no limit */
AP_UINT32 actual; /* current amount of memory allocated */
AP_UINT32 max_used; /* maximum amount of memory allocated */
unsigned char reset_max_used; /* set max_used = actual */
} QUERY_KERNEL_MEMORY_LIMIT;
Supplied Parameters
The application supplies the following parameters:
opcode
AP_QUERY_KERNEL_MEMORY_LIMIT
reset_max_used
Specify whether SNAplus2 should reset the
max_used
value (after returning it on this verb) to match the
amount of memory currently allocated. This ensures
that a subsequent
QUERY_KERNEL_MEMORY_LIMIT verb will return
the maximum amountused since this verb, rather than