← Latest papers
🤖 machine learning

P-MOSS: Scheduling Main-Memory Indexes Over NUMA Servers Using Next Token Prediction

P-MOSS is a learned spatial scheduling framework that leverages Next Token Prediction and Decision Transformers to optimize query execution and data placement on NUMA servers based on low-level hardware statistics, achieving up to a 6x improvement in query throughput for B+-Tree indexes compared to traditional scheduling methods.

Original authors: Yeasir Rayhan, Walid G. Aref

Published 2026-06-12
📖 4 min read☕ Coffee break read

Original authors: Yeasir Rayhan, Walid G. Aref

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are the manager of a massive, high-speed library (the Database) built inside a futuristic city (NUMA Server). This city isn't just one big open space; it's divided into several distinct neighborhoods (NUMA Nodes), each with its own local library branches (Cores).

In the past, these neighborhoods were identical. But today, the city has grown complex. Some neighborhoods are connected by super-fast highways, while others are linked by slow, winding country roads. If you send a librarian to fetch a book from a neighborhood far away, they waste precious time traveling. If you send them to a neighborhood that's already crowded, they get stuck in traffic.

This is the problem P-MOSS solves.

The Problem: The "Wrong Seat" at the Dinner Table

Think of your computer's processor as a giant dinner table with hundreds of seats (Cores). The data (books) is sitting on plates scattered around the table.

  • The Old Way: The operating system (the host) just says, "Sit anywhere!" or "Spread out evenly!" It doesn't care if the person sitting next to you has the book you need, or if the person across the table is blocking your view.
  • The Result: Librarians spend more time walking between neighborhoods than actually reading books. The library runs slowly.

The Solution: P-MOSS (The Smart Librarian)

P-MOSS is a new, AI-powered manager that learns exactly where to sit every single librarian and where to place every single book to minimize walking time. It doesn't just guess; it learns from the city's traffic patterns.

Here is how it works, using simple analogies:

1. The "Next Token" Trick (Predicting the Future)

The paper compares P-MOSS to Large Language Models (LLMs) like the ones that write text for you.

  • How LLMs work: They read a sentence and predict the next word. If the sentence is "The cat sat on the...", the model predicts "mat."
  • How P-MOSS works: Instead of words, P-MOSS looks at a sequence of decisions. It asks: "I have placed books in Neighborhood A, B, and C. Based on the traffic I see right now, which Core (Seat) should I assign to the next batch of books?"
  • It treats the scheduling decision like a sentence, predicting the "next word" (the best seat) to complete the perfect schedule.

2. The "Black Box" Reporters (Hardware PMU)

How does P-MOSS know what the traffic is like? It doesn't ask the librarians (the software) to fill out surveys. That would slow them down.

  • Instead, P-MOSS installs tiny, invisible cameras (Performance Monitoring Units or PMUs) directly on the hardware.
  • These cameras watch the "engine" of the city: how fast the memory is moving, how many times a librarian has to stop because a cache was empty, and how much traffic is on the inter-neighborhood roads.
  • P-MOSS uses these raw, low-level stats to understand the "mood" of the hardware without getting in the way.

3. The Two-Phase Training (School and Internship)

P-MOSS doesn't learn by trial-and-error while the library is open (which would be chaotic). It learns in two stages:

  • Phase 1: Pre-training (The Classroom): P-MOSS is fed a massive dataset of traffic reports from many different types of cities (Intel, AMD, NVIDIA servers) and many different types of crowds (read-heavy, write-heavy workloads). It learns general rules: "Oh, when it's a 'read-heavy' crowd, we should group books together. When it's 'write-heavy,' we should spread them out."
  • Phase 2: Fine-tuning (The Internship): Once P-MOSS has the general rules, it looks at the specific city it's working in today. It takes a few quick observations of the current traffic and adjusts its general rules to fit this specific neighborhood perfectly.

The Results: A Faster Library

The paper tested P-MOSS on a standard library index (a B+-Tree) across many different types of servers.

  • The Win: P-MOSS made the library up to 6 times faster than the standard methods used by operating systems today.
  • The Magic: It didn't just work on one type of computer. It worked on Intel, AMD, and even NVIDIA servers, adapting its strategy to the unique "shape" of each machine.

Summary

P-MOSS is like a super-intelligent traffic controller for a computer's memory. Instead of guessing where to put data, it uses a "Next Word" prediction trick (borrowed from AI chatbots) to figure out the perfect seating arrangement for data and processors. It learns from the hardware's own "cameras" (PMU) to ensure that every piece of data is sitting right next to the processor that needs it, resulting in a library that runs incredibly fast, no matter what kind of computer you are using.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →