1. A method of optimizing performance of a virtual machine executed by a system that includes a plurality of processing units, the method comprising: measuring, by a container application of the system that controls the virtual machine, a metric of an application executed by the virtual machine; and adjusting a tunable parameter of the virtual machine based on the measured metric.