ML-guided scheduling
TaskSim Lab Model Inspection
What the model predicts
The model predicts how much CPU time a process is likely to need. The scheduler then turns that prediction into a score. A lower score means “run this process sooner.”
The running app loads an XGBoost model trained on a normalized sample of the real Alibaba cluster trace. When you enter tasks manually, the frontend sends every task to the backend, the backend predicts all runtimes in one batch, then the scheduler uses those predictions.
Local training artifact
Real Alibaba trace sampleFeatures
Exported by the simulatorTraining flow
- Download Alibaba
batch_task.csv. - Normalize rows into simulator tasks.
- Export runtime features with
--mode export-features. - Train XGBoost to predict observed runtime.
- Load the trained model in the backend.
- Batch-predict manual or generated tasks before scheduling.
Why this is useful
FIFO is easy to reason about but ignores urgency. MLFQ responds quickly but can create high context-switch overhead. The ML-guided policy tries to identify short, urgent, high-priority work before it turns into deadline misses.