
208 The Virtualization Cookbook for Red Hat Enterprise Linux 5.2
For the second requirement, SLES 9, SLES 10 and RHEL 5 now have this function built in.
Details of this function are described in Chapter 15, “Linux monitor stream support for z/VM”
in Device Drivers, Features, and Commands documentation for the October 2005 stream,
which is available on the Web at:
http://www-128.ibm.com/developerworks/linux/linux390/october2005_documentation.html
A brief explanation of how to use this built-in monitoring function is given here.
1. There are three modules built into the kernel but not loaded, by default: appldata_mem,
appldata_os and appldata_net_sum. You can verify that they are not loaded with the lsmod
and grep commands:
# lsmod | grep appldata
2. There is no output, which means that no modules with the string appldata are loaded.
Load those modules now using the modprobe command and verify they have been loaded:
# modprobe appldata_mem
# modprobe appldata_os
# modprobe appldata_net_sum
3. Now if you repeat the lsmod command, you should see the following:
# lsmod | grep appldata
appldata_net_sum 20064 0
appldata_os 22536 0
appldata_mem 20576 0
4. The directory in the virtual /proc/ file system where the monitoring variables exist is
/proc/sys/appldata/. In this directory there are five files:
timer Controls whether any data gathering is in effect
interval Sets the interval, in milliseconds, that samples will be taken
mem Controls the memory data gathering module
os Controls the CPU data gathering module
net_sum Controls the net data gathering module
5. To turn on the built-in kernel monitoring, use the echo command to send a non-zero value
into four of the five monitoring variables in the /proc/ virtual file system:
# echo 1 > /proc/sys/appldata/timer
# echo 1 > /proc/sys/appldata/mem
# echo 1 > /proc/sys/appldata/os
# echo 1 > /proc/sys/appldata/net_sum
# echo 20000 > /proc/sys/appldata/interval
Built-in kernel monitoring should now be turned on.
14.4 Viewing Linux data in the Performance Toolkit
After the system has had some time to collect data, you should be able to use the
Performance Toolkit to view Linux performance data. There should be entries in the FCONX
LINUXUSR file as completed in 14.2.2, “Configuring Web Browser support” on page 199. To
Note: We do not recommend keeping Linux data gatherers running in all images all the
time, because this may cause a serious performance problem. Instead, start gatherers
only for specific periods of time and only when you have a performance problem to
investigate. Also, as Linux monitoring data is captured, the Performance Toolkit’s minidisk
space can fill up relatively quickly.
Comentarios a estos manuales