# US 2017/0293505 A1 · Processing workloads in single-threaded environments

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

- Number: US 2017/0293505 A1
- Document ID: US20170293505A1
- Status: Published application
- Kind: A1
- Application number: 15/633,538
- Filed: 2017-06-26
- Published: 2017-10-12
- Earliest claimed: 2014-06-27
- Assignees: VMware, Inc.
- Applicants: VMware, Inc.
- Inventors: Stefan Cameron
- Web page: https://patentgrep.com/patent/US20170293505A1

## CPC

- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 9/466: {Transaction processing}
- G06F 9/4881: {Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues}
- G06F 9/4887: {involving deadlines, e.g. rate based, periodic}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 16/957: Browsing optimisation, e.g. caching or content distillation
- G06T 1/20: Processor architectures; Processor configuration, e.g. pipelining
- H04N 21/00: Selective content distribution, e.g. interactive television or video on demand [VOD] (real-time bi-directional transmission of motion video data H04N7/14 {; broadcast or conference over packet switching networks H04L12/18})
- H04N 21/44004: {involving video buffer management, e.g. video decoder buffer or video display buffer}
- H04N 21/443: OS processes, e.g. booting an STB, implementing a Java virtual machine in an STB or power management in an STB
- G06T 2200/28: involving image processing hardware
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- H04N: PICTORIAL COMMUNICATION, e.g. TELEVISION

## Abstract

A method renders frames while processing workload slices at a rate defined by a first slice-to-frame ratio. The first slice to frame ratio defines a first rate at which the workload slices are assigned to the frames. The method determines whether to adjust the first slice-to-frame ratio based on the rendering of the frames and the processing of the workload slices. When it is determined that the first slice-to-frame should be adjusted, the method adjusts the first slice-to-frame ratio to a second slice-to-frame ratio and renders upcoming frames while processing upcoming workload slices at a second rate defined by the second slice-to-frame ratio. When it is determined that the first slice-to-frame should not be adjusted, the method renders upcoming frames while processing upcoming workload slices at the first rate defined by the first slice-to-frame ratio.

## Claims

### Claim 1

A method comprising:
rendering, by a computing device, one or more frames while processing one or more workload slices at a rate defined by a first slice-to-frame ratio, wherein the first slice to frame ratio defines a first rate at which the one or more workload slices are assigned to the one or more frames;
determining, by the computing device, whether to adjust the first slice-to-frame ratio based on the rendering of at least a portion of the one or more frames and the processing of the one or more workload slices;
when it is determined that the first slice-to-frame should be adjusted:
adjusting, by the computing device, the first slice-to-frame ratio to a second slice-to-frame ratio, wherein the second slice to frame ratio defines a second rate at which workload slices are assigned to frames; and
rendering, by the computing device, one or more upcoming frames while processing one or more upcoming workload slices at the second rate defined by the second slice-to-frame ratio; and
when it is determined that the first slice-to-frame should not be adjusted:
rendering, by the computing device, one or more upcoming frames while processing one or more upcoming workload slices at the first rate defined by the first slice-to-frame ratio.

### Claim 2 (depends on 1)

The method of claim 1, wherein the first slice-to-frame ratio is determined by:
determining an effective frame rate based on at least a first rendered frame, the effective frame rate being used to estimate a duration of an upcoming frame;
determining an effective slice rate based on at least a first completed workload slice, the effective slice rate being used to estimate a time to complete an upcoming workload slice; and
calculating the first slice-to-frame ratio according to the effective frame rate and the effective slice rate.

### Claim 3 (depends on 2)

The method of claim 2, wherein the second slice-to-frame ratio is determined by:
determining an updated effective frame rate based on at least a second rendered frame;
determining an updated effective slice rate based on at least a second processed workload slice; and
determining whether the first slice-to-frame ratio is changed based on the updated effective frame rate and the updated effective slice rate.

### Claim 4 (depends on 3)

The method of claim 3, wherein:
the updated effective frame rate is based on a duration to render the at least the second rendered frame; and
the updated effective slice rate is based on a duration to process the at least the second workload slice.

### Claim 5 (depends on 1)

The method of claim 1, wherein:
when it is determined that the first slice-to-frame should be adjusted, assigning the one or more upcoming workload slices to the one or more upcoming frames according to the second slice-to-frame ratio, and
when it is determined that the first slice-to-frame should not be adjusted, assigning the one or more upcoming workload slices to the one or more upcoming frames according to the first slice-to-frame ratio.

### Claim 6 (depends on 1)

The method of claim 1, wherein:
the one or more frames are rendered and the one or more workload slices are processed in a single threaded environment concurrently, and
the one or more upcoming frames are rendered and the one or more upcoming workload slices are processed in the single threaded environment concurrently.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
detecting an event that initiates a workload to be processed; and
slicing the workload into portions comprising the one or more workload slices and the one or more upcoming workload slices.

### Claim 8

A non-transitory computer readable storage medium containing instructions, that when executed, control a computer system to be configured for:
rendering one or more frames while processing one or more workload slices at a rate defined by a first slice-to-frame ratio, wherein the first slice to frame ratio defines a first rate at which the one or more workload slices are assigned to the one or more frames;
determining whether to adjust the first slice-to-frame ratio based on the rendering of at least a portion of the one or more frames and the processing of the one or more workload slices;
when it is determined that the first slice-to-frame should be adjusted:
adjusting the first slice-to-frame ratio to a second slice-to-frame ratio, wherein the second slice to frame ratio defines a second rate at which workload slices are assigned to frames; and
rendering one or more upcoming frames while processing one or more upcoming workload slices at the second rate defined by the second slice-to-frame ratio; and
when it is determined that the first slice-to-frame should not be adjusted:
rendering one or more upcoming frames while processing one or more upcoming workload slices at the first rate defined by the first slice-to-frame ratio.

### Claim 9 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein the first slice-to-frame ratio is determined by:
determining an effective frame rate based on at least a first rendered frame, the effective frame rate being used to estimate a duration of an upcoming frame;
determining an effective slice rate based on at least a first completed workload slice, the effective slice rate being used to estimate a time to complete an upcoming workload slice; and
calculating the first slice-to-frame ratio according to the effective frame rate and the effective slice rate.

### Claim 10 (depends on 9)

The non-transitory computer readable storage medium of claim 9, wherein the second slice-to-frame ratio is determined by:
determining an updated effective frame rate based on at least a second rendered frame;
determining an updated effective slice rate based on at least a second processed workload slice; and
determining whether the first slice-to-frame ratio is changed based on the updated effective frame rate and the updated effective slice rate.

### Claim 11 (depends on 10)

The non-transitory computer readable storage medium of claim 10, wherein:
the updated effective frame rate is based on a duration to render the at least the second rendered frame; and
the updated effective slice rate is based on a duration to process the at least the second workload slice.

### Claim 12 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein:
when it is determined that the first slice-to-frame should be adjusted, assigning the one or more upcoming workload slices to the one or more upcoming frames according to the second slice-to-frame ratio, and
when it is determined that the first slice-to-frame should not be adjusted, assigning the one or more upcoming workload slices to the one or more upcoming frames according to the first slice-to-frame ratio.

### Claim 13 (depends on 8)

The non-transitory computer readable storage medium of claim 8, wherein:
the one or more frames are rendered and the one or more workload slices are processed in a single threaded environment concurrently, and
the one or more upcoming frames are rendered and the one or more upcoming workload slices are processed in the single threaded environment concurrently.

### Claim 14 (depends on 8)

The non-transitory computer readable storage medium of claim 8, further comprising:
detecting an event that initiates a workload to be processed; and
slicing the workload into portions comprising the one or more workload slices and the one or more upcoming workload slices.

### Claim 15

An apparatus, comprising:
one or more computer processors; and
a non-transitory computer-readable storage medium comprising instructions, that when executed, control the one or more computer processors to be configured for:
rendering one or more frames while processing one or more workload slices at a rate defined by a first slice-to-frame ratio, wherein the first slice to frame ratio defines a first rate at which the one or more workload slices are assigned to the one or more frames;
determining whether to adjust the first slice-to-frame ratio based on the rendering of at least a portion of the one or more frames and the processing of the one or more workload slices;
when it is determined that the first slice-to-frame should be adjusted:
adjusting the first slice-to-frame ratio to a second slice-to-frame ratio, wherein the second slice to frame ratio defines a second rate at which workload slices are assigned to frames; and
rendering one or more upcoming frames while processing one or more upcoming workload slices at the second rate defined by the second slice-to-frame ratio; and
when it is determined that the first slice-to-frame should not be adjusted:
rendering one or more upcoming frames while processing one or more upcoming workload slices at the first rate defined by the first slice-to-frame ratio.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the first slice-to-frame ratio is determined by:
determining an effective frame rate based on at least a first rendered frame, the effective frame rate being used to estimate a duration of an upcoming frame;
determining an effective slice rate based on at least a first completed workload slice, the effective slice rate being used to estimate a time to complete an upcoming workload slice; and
calculating the first slice-to-frame ratio according to the effective frame rate and the effective slice rate.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein the second slice-to-frame ratio is determined by:
determining an updated effective frame rate based on at least a second rendered frame;
determining an updated effective slice rate based on at least a second processed workload slice; and
determining whether the first slice-to-frame ratio is changed based on the updated effective frame rate and the updated effective slice rate.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein:
the updated effective frame rate is based on a duration to render the at least the second rendered frame; and
the updated effective slice rate is based on a duration to process the at least the second workload slice.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein:
when it is determined that the first slice-to-frame should be adjusted, assigning the one or more upcoming workload slices to the one or more upcoming frames according to the second slice-to-frame ratio, and
when it is determined that the first slice-to-frame should not be adjusted, assigning the one or more upcoming workload slices to the one or more upcoming frames according to the first slice-to-frame ratio.

### Claim 20 (depends on 15)

The apparatus of claim 15, wherein:
the one or more frames are rendered and the one or more workload slices are processed in a single threaded environment concurrently, and
the one or more upcoming frames are rendered and the one or more upcoming workload slices are processed in the single threaded environment concurrently.

### Claim 21 (depends on 15)

The apparatus of claim 15, further comprising:
detecting an event that initiates a workload to be processed; and
slicing the workload into portions comprising the one or more workload slices and the one or more upcoming workload slices.
