Memory Resources for Each Virtual Device
Use vsxmstat to show memory usage for each virtual device. You can use the -vs parameter to show specified virtual devices only.
These parameters to show more data:
unit - Change the memory measurement unit shown in the command output.sort - Sort the results according to the virtual devices that use the most memory. Limit the display to the specified number of results.
Syntax
# vsxmstat [-vs <vsid>] [unit <unit>] [sort <top>]
Parameter
|
Description
|
-vs
|
Shows the memory usage of the specified virtual devices.
|
<vsid>
|
virtual device identification.
To show multiple devices:
- Put a space between each VSID:
-vs 1 3 5 - List a range of VSIDs:
-vs 1-4
Note: You can combine VSID ranges together with single VSIDs
|
unit
|
Change the memory measurement unit shown in the command output.
|
<unit>
|
The memory measurement unit. The default value is megabytes.
Use with the unit parameter.
The values are:
B - bytesK, KB - kilobytesM, MB - megabytes (default)G, GB - gigabytes
|
sort
|
Sort the results according to the virtual devices that use the most memory.
|
<top>
|
Maximum number of virtual devices to show. Only those virtual devices that use the most memory are shown.
Use with the sort parameter.
Use all to show all virtual devices.
|
Example
# vsxmstat -vs 0 1 3 5-8 unit MB sort 5
# vsxmstat sort 5
Output (Both examples show the same results)
VSX Memory Status
=================
Memory Total: 997.22 MB
Memory Free: 232.56 MB
Swap Total: 2047.34 MB
Swap Free: 2047.16 MB
Swap-in rate: 0.00 MB
VSID | Memory Consumption
======+====================
0 | 133.50 MB
8 | 92.41 MB
3 | 43.81 MB
6 | 42.47 MB
1 | 42.47 MB
|