Red Hat NETSCAPE MANAGEMENT SYSTEM 4.5 User Manual Page 238

  • Download
  • Add to my manuals
  • Print
  • Page
    / 286
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 237
Resource Management
238
www.vmware.com
This indicates that virtual machine 103 is currently allocated 1,000 shares. To change
the number of shares allocated to virtual machine 103, simply write to the file. Note
that you need root privileges in order to change share allocations.
echo 2000 > /proc/vmware/vm/103/cpu/shares
The change can be confirmed by reading the file again.
cat /proc/vmware/vm/103/cpu/shares
The number of shares is displayed.
2000
To query the affinity set for virtual machine 103, simply read the file:
cat /proc/vmware/vm/103/cpu/affinity
The identifying numbers of the processors in the affinity set are displayed.
0,1
This indicates that virtual machine 103 is allowed to run on CPUs 0 and 1. To restrict
virtual machine 103 to run only on CPU 1, simply write to the file. Note that you need
root privileges in order to change affinity sets.
echo 1 > /proc/vmware/vm/103/cpu/affinity
The change can be confirmed by reading the file again.
Cautions
CPU share allocations do not necessarily guarantee the rate of progress within a
virtual machine. For example, suppose virtual machine 103 is allocated 2,000 shares,
while virtual machine 104 is allocated 1,000 shares. If both virtual machines are CPU-
bound — for example, both are running the same compute-intensive benchmark —
then virtual machine 103 should indeed run twice as fast as virtual machine 104.
However, if virtual machine 103 instead runs an I/O-bound workload that causes it to
stop as it waits for other resources, it does not run twice as fast as virtual machine 103,
even though it is allowed to use twice as much CPU time.
Page view 237
1 2 ... 233 234 235 236 237 238 239 240 241 242 243 ... 285 286

Comments to this Manuals

No comments