Distributed CPU Scheduling Subject to Nonlinear Constraints

Mohammadreza Doostmohammadian, Alireza Aghasi, Apostolos I. Rikos, Andreas Grammenos, Evangelia Kalyvianaki, Christoforos N. Hadjicostis, Karl Henrik Johansson, Themistoklis Charalambous

Introduction

In modern cloud computing and distributed power management, the efficient allocation of resources across a network of agents is a critical operational requirement. Traditional distributed optimization techniques often focus on reaching a global optimum asymptotically. However, in practical applications like CPU scheduling, maintaining a balanced system—where the total resource supply matches the total demand—is necessary not just at the limit, but at every step of the process. This paper presents a distributed optimization framework that ensures "anytime feasibility" while addressing the complexities of real-world hardware, including nonlinearities such as quantization, saturation, and non-quadratic cost functions.

The Problem: Beyond Idealized Models

Distributed resource allocation involves a group of agents collaborating to minimize a collective cost function while adhering to a global sum constraint. Most existing algorithms suffer from two primary limitations:

  1. Asymptotic Feasibility: Many standard consensus-based algorithms only satisfy the global resource constraint once they have fully converged. In high-stakes environments like data centers or power grids, a temporary imbalance during the optimization process can lead to system instability or failure.
  2. Idealized Assumptions: Theoretical models often assume linear communication channels and quadratic cost functions. In practice, digital hardware introduces nonlinearities such as saturation (limited actuator ranges) and quantization (discrete data steps). Furthermore, real-world cost structures are frequently non-quadratic, requiring more robust mathematical handling.

Methodology: Gradient-Laplacian Solutions

The authors propose a framework utilizing nonlinear distributed gradient-Laplacian solutions, developed for both continuous-time and discrete-time systems. The approach is built on several technical pillars:

Anytime Feasibility

By employing weight-balanced or undirected network topologies and specific initialization protocols, the algorithm ensures that the sum of resources across all nodes remains constant throughout the entire optimization process. This allows the system to be stopped at any iteration while still providing a valid, balanced resource distribution.

Addressing Nonlinearities

The framework explicitly accounts for two categories of nonlinearities:

  • Sector-based Nonlinearities: This includes logarithmic quantization, where the error scales proportionally with the signal size. The authors prove that the system can still achieve exact convergence under these conditions.
  • Non-sector-based Nonlinearities: This includes uniform quantization (rounding to the nearest integer), common in digital hardware. For these cases, the authors derive a mathematical bound to estimate the $\epsilon$-accuracy—the proximity to the true optimum that the system can realistically achieve.

Box Constraints and Penalty Functions

To manage physical limits—such as a server's inability to process more than 100% or less than 0% of its capacity—the authors integrate smooth penalty and barrier functions into the local cost objectives. This ensures that individual node states remain within feasible "box constraints" without violating the global sum-preservation property.

Key Insights and Results

The "Anytime" Advantage

The primary contribution of this work is the shift from feasibility as a destination to feasibility as a constant state. This robustness allows for dynamic interruption and provides a safety margin that traditional asymptotic methods lack.

Quantization Trade-offs

The research clarifies the trade-offs inherent in digital communication. While logarithmic quantization allows for exact convergence, uniform quantization results in a steady-state error. The provided mathematical framework allows system designers to calculate the necessary precision levels to meet specific performance targets.

Performance in Simulation

The theory was validated through two primary numerical simulations:

  • CPU Scheduling: A 12-server network simulation demonstrated that even with a quantization level of $q=0.125$, the system accurately reached the predicted $\epsilon$-neighborhood of the optimizer.
  • Non-Quadratic Costs: Using quartic (fourth-order) cost functions, the algorithm successfully minimized residuals where traditional linear-consensus methods would typically fail or underperform.
  • Convergence Speed: Interestingly, the authors found that certain nonlinearities, such as sign-based functions, can actually accelerate the convergence rate compared to standard linear protocols.

Conclusion and Future Work

This framework provides a robust solution for distributed resource allocation under realistic hardware constraints. By guaranteeing anytime feasibility and accounting for quantization and saturation, it bridges the gap between theoretical optimization and practical deployment in cloud infrastructure.

Future research directions include extending the model to handle higher-order state dimensions (multi-variable optimization per node) and relaxing the weight-balanced network assumptions to better accommodate highly dynamic, ad-hoc network topologies. Additionally, addressing the "chattering" effects (small oscillations) observed in discrete-time sign-based solutions remains a priority for improving the trade-off between convergence speed and precision.

Summary updated

BibTeX
@inproceedings{doostmohammadian2022distributed,
  author = {Mohammadreza Doostmohammadian and Alireza Aghasi and Apostolos I. Rikos and Andreas Grammenos and Evangelia Kalyvianaki and Christoforos N. Hadjicostis and Karl Henrik Johansson and Themistoklis Charalambous},
  title = {{Distributed CPU Scheduling Subject to Nonlinear Constraints}},
  booktitle = {CCTA},
  year = {2022},
  doi = {10.1109/ccta49430.2022.9966048},
}
Figure