Abstract
Big data analysis requires the speedup of parallel computing. However, in virtualized systems, the power of parallel computing is not fully exploited due to the limits of current Virtual Machine Monitor (VMM) schedulers. Xen, a popular virtualization platform, is widely used to host parallel jobs. In practice, virtualized systems must accommodate both parallel and serial jobs, where resource contention between virtual machines (VMs) results in severe performance degradation for parallel tasks. Furthermore, physical resources are often wasted during communication processes due to ineffective scheduling. This paper presents vChecker, an application-level co-scheduler that mitigates performance degradation and optimizes hardware utilization. vChecker balances the number of available CPU cores with the needs of parallel jobs, assisting Xen's credit scheduler without requiring hypervisor modifications. Experimental results demonstrate that vChecker optimizes parallel job performance in Xen and enhances overall system utilization.
Introduction
In the era of big data, parallel computing is essential for processing vast datasets efficiently. However, when these workloads run on virtualized platforms like Xen, they often encounter significant performance bottlenecks. The primary issue lies in Xen’s default Credit Scheduler, which was designed primarily for serial workloads. It focuses on "fairness," ensuring every Virtual Machine (VM) receives a proportional slice of CPU time.
Parallel jobs, however, consist of multiple interdependent subtasks that require frequent synchronization. If the Credit Scheduler activates one subtask on a physical CPU (pCPU) while leaving its communication partner in a wait queue, the active subtask "spins," wasting hardware cycles while waiting for a response. This lack of synchronization, known as the co-scheduling problem, leads to severe performance degradation and resource waste.
The vChecker Architecture
To address these challenges, we propose vChecker, a demand-based co-scheduler. Unlike traditional solutions that require complex modifications to the Xen hypervisor, vChecker operates entirely at the application level within the privileged dom0 domain. This design allows for deployment without patching or rebooting the core virtualization layer.
As shown in the architecture diagram, vChecker employs a multi-stage process:
- Monitoring: It tracks available pCPUs and identifies VMs hosting parallel subtasks.
- Threshold-Based Scheduling: vChecker waits until a sufficient number of pCPUs are free to run subtasks concurrently, rather than scheduling them piecemeal.
- Safety Mechanism: To prevent starvation, a timer forces subtasks to run if the wait time exceeds a predefined threshold.
- Control: Using standard management APIs (
libvirtandXl), it pauses serial VMs and resumes parallel ones to enforce co-scheduling.
Experimental Evaluation
We evaluated vChecker using the NAS Parallel Benchmark (NPB) suite, an industry standard for testing parallel systems. The test environment consisted of a quad-core host running Xen 4.2.0, supporting 32 uniprocessor guest VMs. We tested various workloads (BT, CG, EP, FT, IS, LU, MG, and SP) representing different computation and communication patterns.
Results and Discussion
The experimental results confirm that vChecker significantly improves performance for communication-intensive workloads. By synchronizing subtask execution, vChecker reduced execution times for the IS benchmark by 15%, LU by 10.6%, and FT by 6.7%.
Beyond speedups, resource efficiency improved markedly. The "Normalized communications per unit time" (NCUT) metric showed increases of 38% for IS and 17% for LU, indicating that pCPUs spent more time on productive communication rather than idle waiting.
However, a trade-off was observed: for computation-heavy tasks like the BT benchmark, performance decreased by 8.7%. This suggests that the overhead of waiting for a synchronized start can be counterproductive for jobs that do not rely heavily on inter-task communication.
Conclusion
vChecker demonstrates that significant performance gains for parallel jobs in Xen can be achieved through application-level co-scheduling without hypervisor modification. While highly effective for communication-heavy tasks, future work will focus on dynamic workload detection to automatically toggle co-scheduling for different job types and exploring scalability on modern many-core servers.
Summary updated