# US 2026/0064477 A1 · Memory-aware real-time scheduling for distributed query processing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064477 A1
- Document ID: US20260064477A1
- Status: Published application
- Kind: A1
- Application number: 19/058,851
- Filed: 2025-02-20
- Published: 2026-03-05
- Earliest claimed: 2024-08-31
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Panagiotis Sioulas; Cagri Balkesen; Kaan Kara; Srinivasan Sholingur Asoori; Nitin Kunal; Shady Issa; Mia Primorac; Abhinav Agarwal; Deepa Dixit; Nipun Agarwal
- Web page: https://patentgrep.com/patent/US20260064477A1

## CPC

- G06F 9/5038: {considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration (scheduling strategies G06F9/4881 and subgroups)}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 16/2455: Query execution
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Techniques for real-time scheduling for distributed query processing are provided. In one technique, a global counter and multiple local counters are stored, each local counter corresponding to a different query of multiple queries. Each query is scheduled based on the multiple local counters and the global counter. In response to determining that a particular query is waiting for data to arrive at a computing node, a first current value of the global counter is stored in association with the particular query. In response to determining that the data has arrived at the computing node: a current value of the global counter is identified; a difference between the second current value and the first current value is determined; and a current value of the local counter of the particular query is updated based on the difference.

## Claims

### Claim 1

A method comprising:
storing a global counter that changes with the passage of time;
storing a plurality of local counters, each local counter corresponding to a different query of a plurality of queries;
scheduling each query of the plurality of queries based on the plurality of local counters and the global counter;
in response to determining that a particular query of the plurality of queries is waiting for data to arrive at a computing node, storing, in association with the particular query, a first current value of the global counter;
in response to determining that the data has arrived at the computing node:
identifying a second current value of the global counter, wherein the second current value indicates a time after the first current value;
determining a difference between the second current value and the first current value;
updating a current value of the local counter of the particular query based on the difference;
wherein the method is performed by the computing node.

### Claim 2 (depends on 1)

The method of claim 1, wherein the computing node transmits the request to another computing node in a cluster of computing nodes.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
maintaining a common queue for network messages from multiple queries;
maintaining a plurality of query-specific queues;
removing, from the common queue, a network message and adding the network message to a query-specific queue;
using stride scheduling to select network messages from the plurality of query-specific queues.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
maintaining a local network counter for each query-specific queue of the plurality of query-specific queues;
selecting a particular network message from a particular query-specific queue of the plurality of query-specific queues;
after selecting the particular network message, updating a particular local network counter of the particular query-specific queue based on a ratio of a size of the particular network message and a measurement of a current network bandwidth.

### Claim 5 (depends on 1)

The method of claim 1, wherein the computing node transmits the request to a database.

### Claim 6 (depends on 1)

The method of claim 1, wherein scheduling the plurality of queries comprises:
for each local counter of the plurality of local counters:
determining a difference between a current value of the global counter and a current value of said each local counter;
storing the difference in a set of differences;
selecting a query from among the plurality of queries to schedule for processing based on the query of the plurality of queries that is associated with the largest difference in the set of differences.

### Claim 7

A method comprising:
for each query of a plurality of queries:
determining a memory reservation for said each query;
adding the memory reservation to a set of memory reservations;
in response to determining that a total of the set of memory reservations might exceed currently available memory, identifying, from among the plurality of queries, based on one or more criteria, one or more queries to prioritize;
assigning the one or more queries to a prioritized status;
scheduling, for execution, only queries that have a prioritized status;
wherein the method is performed by one or more computing devices.

### Claim 8 (depends on 7)

The method of claim 7, wherein the one or more criteria comprises currently-used memory of a query exceeding a memory usage estimate for the query.

### Claim 9 (depends on 7)

The method of claim 7, wherein the one or more criteria comprises a query that has run for the least amount of time.

### Claim 10 (depends on 7)

The method of claim 7, wherein the plurality of queries execute on a first computing node of a cluster of computing nodes, the method further comprising:
transmitting, from the first computing node to one or more other computing nodes in the cluster, a message that indicates that the one or more queries are prioritized.

### Claim 11 (depends on 7)

The method of claim 7, wherein the memory reservation of said each query is the maximum of (a) a memory usage estimate for said each query and (b) a current memory usage of said each query.

### Claim 12 (depends on 7)

The method of claim 7, further comprising:
determining that a particular query, of the one or more queries that have the prioritized status, fails due to an out-of-memory (OOM) error;
in response to determining that the particular query failed due to the OOM error:
waiting for one or more other queries in the plurality of queries to finish executing;
preventing new queries from executing;
in response to determining that the one or more other queries finished executing and while preventing new queries from executing, causing the particular query to be executed again.

### Claim 13

A method comprising:
while a plurality of queries are executing concurrently, determining that a particular query, of the plurality of queries, failed due to an out-of-memory (OOM) error;
in response to determining that the particular query failed due to an OOM error:
waiting for the other queries in the plurality of queries to finish executing;
preventing new queries from executing;
in response to determining that no query is executing and while preventing new queries from executing, causing the particular query to be executed again;
wherein the method is performed by one or more computing devices.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
prior to causing the particular query to be executed, setting a memory usage estimate of the particular query to be a value that is larger than available system memory;
determining to execute only the particular query based on the memory usage estimate.
