hottub.patents
US 12,436,810 B2#3426675 Most CitedActiveUnited States (USPTO)Utility

Iterative workload processing having a mandatory processing task and a preferred processing task

0Forward Citations (#3426675 Global)
0.0/yrCitation Velocity (#3426675 Global)
0.00Citation PageRank (#3426675 Global)
6Prior Art Cited
20Claims (3 Indep. · 17 Dep.)
8Drawings / Sheets

Abstract

Iterative workload processing having a mandatory processing task and a preferred processing task. A processor device iteratively performs a processing workload that comprises a mandatory processing task and a preferred processing task. The mandatory processing task includes accessing a plurality of input messages that have not yet been processed, and the preferred processing task has a target timeframe within which to be performed. For each iteration, a maximum preferred processing task amount of time to perform the preferred processing task is determined based on a moving average of mandatory processing task times of previous iterations and based on the target timeframe. The preferred processing task is performed for a period of time no greater than the maximum preferred processing task amount of time.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 0.

Claims (20 — 3 Independent, 17 Dependent)

  1. Claim 1Independent Claim

    A method, comprising: iteratively performing, by a processor device of a central computing device communicatively coupled to a plurality of client computing devices via one or more networks, a processing workload that comprises a mandatory processing task and a preferred processing task; and for each iteration: starting a first timer; processing a plurality of input messages received from a client computing device of the plurality of client computing devices that have not yet been processed; pausing the first timer; performing the preferred processing task; restarting the first timer; sending output messages to the plurality of client computing devices in response to the plurality of input messages; stopping the first timer; and calculating, based on a value of the first timer, a moving average of mandatory processing task times.

  2. Claim 2Depends on #1

    The method of claim 1, further comprising: during each iteration: subsequent to processing the plurality of input messages received from the client computing device from among the plurality of client computing devices that have not yet been processed, determining a maximum preferred processing task amount of time to perform the preferred processing task during the iteration; wherein performing the preferred processing task comprises performing the preferred processing task for a period of time no greater than the maximum preferred processing task amount of time.

  3. Claim 3Depends on #2

    The method of claim 2, wherein the maximum preferred processing task amount of time to perform the preferred processing task is based on a current value of a moving average of mandatory processing task times and a target timeframe.

  4. Claim 4Depends on #1

    The method of claim 1, wherein starting the first timer comprises starting the first timer and a second timer, and further comprising: during each iteration: subsequent to calculating, based on the value of the first timer, the moving average of mandatory processing task times, resetting the first timer; stopping the second timer; determining a remaining amount of time for the iteration based on a difference between a value of the second timer and a target timeframe; and waiting for the remaining amount of time.

  5. Claim 5Depends on #1

    The method of claim 1, wherein performing the preferred processing task comprises: determining a maximum preferred processing task amount of time based on a moving average of mandatory processing task times and a target timeframe; determining a number of model update steps based on a moving average of model update step times and the maximum preferred processing task amount of time; determining a game time interval for each model update step of the model update steps based on the number of model update steps and a predetermined incremental amount of game time; and setting an iteration counter to a value of zero.

  6. Claim 6Depends on #5

    The method of claim 5, further comprising: subsequent to setting the iteration counter to the value of zero, starting a third timer; updating a simulation model that identifies a plurality of virtual objects forward an incremental amount of game time based on the game time interval; detecting interactions between the plurality of virtual objects based on the game time interval; stopping the third timer; and updating the moving average of model update step times based on a value of the third timer.

  7. Claim 7Depends on #6

    The method of claim 6, further comprising: subsequent to updating the moving average of model update step times, resetting the third timer; incrementing the iteration counter; and determining whether the iteration counter is equal to the moving average of model update step times.

  8. Claim 8Depends on #5

    The method of claim 5, wherein determining the number of model update steps based on the moving average of model update step times and the maximum preferred processing task amount of time comprises: calculating a result by dividing the maximum preferred processing task amount of time by a current value of the moving average of model update step times; and multiplying the result by a relax factor, wherein the number of model update steps comprises the result multiplied by the relax factor.

  9. Claim 9Depends on #1

    The method of claim 1, wherein the mandatory processing task comprises accessing the plurality of input messages received from the client computing device from among the plurality of client computing devices that have not yet been processed.

  10. Claim 10Depends on #1

    The method of claim 1, wherein the preferred processing task comprises generating a content recommendation for each input message of the plurality of input messages received from the client computing device.

  11. Claim 11Depends on #10

    The method of claim 10, further comprising: determining a number of content recommendations to be generated; and calculating a time to perform the preferred processing task by dividing a maximum preferred processing task amount of time to perform the preferred processing task by the number of content recommendations to be generated.

  12. Claim 12Depends on #10

    The method of claim 10, wherein the output messages comprise the content recommendation generated for each input message.

  13. Claim 13Depends on #1

    The method of claim 1, wherein the first timer tracks an amount of time of the mandatory processing task and a second timer tracks an amount of time of the mandatory processing task and the preferred processing task.

  14. Claim 14Independent Claim

    A computing device, comprising: a memory; and a processor device coupled to the memory to: iteratively perform, by an application server communicatively coupled to a plurality of client computing devices via one or more networks, a processing workload that comprises a mandatory processing task and a preferred processing task; and for each iteration: start a first timer; process a plurality of input messages received from a client computing device of the plurality of client computing devices that have not yet been processed; pause the first timer; perform the preferred processing task; restart the first timer; send output messages to the plurality of client computing devices in response to the plurality of input messages; stop the first timer; and calculate, based on a value of the first timer, a moving average of mandatory processing task times.

  15. Claim 15Depends on #14

    The computing device of claim 14, wherein the processor device is further to: during each iteration: subsequent to processing the plurality of input messages received from the client computing device from among the plurality of client computing devices that have not yet been processed, determine a maximum preferred processing task amount of time to perform the preferred processing task during the iteration; wherein to perform the preferred processing task, the processor device is to perform the preferred processing task for a period of time no greater than the maximum preferred processing task amount of time.

  16. Claim 16Depends on #14

    The computing device of claim 14, wherein to start the first timer comprises, the processor device is to start the first timer and a second timer, and the processor device is further to: during each iteration: subsequent to calculating, based on the value of the first timer, the moving average of mandatory processing task times, reset the first timer; stop the second timer; determine a remaining amount of time for the iteration based on a difference between a value of the second timer and a target timeframe; and wait for the remaining amount of time.

  17. Claim 17Depends on #14

    The computing device of claim 14, wherein to perform the preferred processing task, the processor device is to: determine a maximum preferred processing task amount of time based on a moving average of mandatory processing task times and a target timeframe; determine a number of model update steps based on a moving average of model update step times and the maximum preferred processing task amount of time; determine a game time interval for each model update step of the model update steps based on the number of model update steps and a predetermined incremental amount of game time; and set an iteration counter to a value of zero.

  18. Claim 18Depends on #17

    The computing device of claim 17, wherein the processor device is further to: subsequent to setting the iteration counter to the value of zero, start a third timer; update a simulation model that identifies a plurality of virtual objects forward an incremental amount of game time based on the game time interval; detect interactions between the plurality of virtual objects based on the game time interval; stop the third timer; and update the moving average of model update step times based on a value of the third timer.

  19. Claim 19Depends on #17

    The computing device of claim 17, wherein to determine the number of model update steps based on the moving average of model update step times and the maximum preferred processing task amount of time, the processor device is to: calculate a result by dividing the maximum preferred processing task amount of time by a current value of the moving average of model update step times; and multiply the result by a relax factor, wherein the number of model update steps comprises the result multiplied by the relax factor.

  20. Claim 20Independent Claim

    A computer program product stored on a non-transitory computer-readable storage medium and including computer-executable instructions to cause a processor device to: iteratively perform, by an application server communicatively coupled to a plurality of client computing devices via one or more networks, a processing workload that comprises a mandatory processing task and a preferred processing task; and for each iteration: start a first timer; process a plurality of input messages received from a client computing device of the plurality of client computing devices that have not yet been processed; pause the first timer; perform the preferred processing task; restart the first timer; send output messages to the plurality of client computing devices in response to the plurality of input messages; stop the first timer; and calculate, based on a value of the first timer, a moving average of mandatory processing task times.

Technical Overview & Description

RELATED APPLICATION This application is a continuation of co-pending U.S. patent application Ser. No. 16/717,159, filed on Dec. 17, 2019, entitled “ ITERATIVE WORKLOAD PROCESSING HAVING A MANDATORY PROCESSING TASK AND A PREFERRED PROCESSING TASK, ” which is hereby incorporated herein by reference in its entirety. BACKGROUND Certain types of workloads are performed iteratively, sometime tens, hundreds, or thousands of times a second, wherein both a mandatory processing task and a non-mandatory processing task, referred to herein as a preferred processing task, are to be accomplished within a target timeframe. SUMMARY The examples disclosed herein implement iterative workload processing having a mandatory processing task and a preferred processing task, wherein the preferred processing task is performed for a variable amount of time based on a moving average of mandatory processing task times. In particular, the examples implement a workload processing loop wherein a moving average of mandatory processing task times is maintained, and the preferred processing task time for each workload processing loop varies based on the moving average of mandatory processing task times. Thus, the examples disclosed herein minimize substantial differences in times to perform successive workload processing loops even when the mandatory processing task times of successive workload processing loops greatly vary. Among other advantages, this eliminates wide variations in responsiveness to users. In one embodiment a method is provided. The method includes iteratively performing, by a processor device, a processing workload that comprises a mandatory processing task and a preferred processing task, the mandatory processing task comprising accessing a plurality of input messages that have not yet been processed, and the preferred processing task having a target timeframe within which to be performed. The method further includes, for each iteration, determining a maximum preferred processing

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

Non-Patent Literature (10)

  • Author Unknown,
  • “
  • Time and Framerate Management,
  • ”
  • Unity User Manual, Version 2018.4, Oct. 22, 2019, Unity Technologies, 7 pages.
  • Author Unknown,
  • “
  • Let's talk about Game Loop,
  • ”
  • Nitwoe's Dev Blog, dev.nitwoe.com/2016/03/04/lets-talk-about-game-loop/, Mar. 4, 2016, 6 pages.