HP-UX SNAplus2 R7 Administration Command Reference

Administration Commands
query_kernel_memory_limit
Other Conditions
Appendix A, Common Return Codes from snapadmin Commands, lists combinations of primary and secondary
return codes that are common to all commands.
2.135 query_kernel_memory_limit
The query_kernel_memory_limit command returns information about the amount of kernel memory that
SNAplus2 is currently using, the maximum amount it has used, and the congured limit. This information enables
you to check memory usage and set the limit appropriately to ensure that sufcient 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, refer
to the HP-UX SNAplus2 Administration Guide), or modify it later when the node is running (using the
set_kernel_memory_limit command).
2.135.1 Supplied Parameters
Parameter name Type Length Default
[query_kernel_memory_limit]
reset_max_used constant NO
Supplied parameter is:
reset_max_used
Species whether SNAplus2 resets the max_used value (after returning it on this command) to match the
amount of memory currently allocated. This ensures that a subsequent query_kernel_memory_limit
command will return the maximum amount used since this command was issued, rather than the maximum
amount used since the system was started (or since the max_used value was last reset). Possible values are:
YES
Reset the max_used value to match the current memory allocation.
NO
Do not reset the max_used value.
2.135.2 Returned Parameters
Parameter name Type
limit decimal
actual decimal
max_used decimal
reset_max_used constant
If the command executes successfully, SNAplus2 returns the following parameters:
limit
The maximum amount of kernel memory, in bytes, that SNAplus2 is allowed to use at any one time. If
a SNAplus2 component attempts to allocate kernel memory that would take the total amount of memory
currently allocated above this limit, the allocation attempt will fail. A value of 0 (zero) indicates no limit.
397