US 11526434
Network-level garbage collection in an on-demand code execution system
Granted 2022-12-13 · Filed 2019-06-25 · Application 16/452,440 · Utility · Kind B1
- Assignee as printed
- Amazon Technologies, Inc., Seattle, WA (US)
- Inventors
- Marc John Brooker, Seattle, WA (US); Andrew J. Lusk, Seattle, WA (US); Mikhail Danilov, Sammamish, WA (US)
- CPC, current
- G06F12/0253; G06F9/45558; G06F9/5016; G06F9/505; G06F9/5077; G06F2009/4557; G06F2009/45583; G06F2009/45595; G06F2209/5019; G06F2212/1024; G06F2212/152
Abstract
Systems and methods are described for management of garbage collection processes in an on-demand code execution system. An on-demand code execution system may execute user-submitted code on virtual machine instances. As each virtual machine instance executes code, garbage (e.g., memory that is allocated and then not properly de-allocated) may accumulate and may reduce the computing resources that the virtual machine instance makes available for allocation to further code executions. A garbage collection schedule manager may be used to generate a system-wide garbage collection schedule and manage garbage collection processes in accordance with the schedule. The garbage collection schedule manager may schedule garbage collection processes at times when demand for computing resources is forecasted to be low, and may coordinate scheduling of garbage collection processes across multiple virtual machine instances and host computing devices to prevent garbage collection processes from impacting code execution performance.
The claims as the USPTO long-text file prints them (text data version 20261117.3), split by PatentRef's claim parser (structure version 2): each claim's opening words, then one row for each element with its character offsets in the claim text, and the dependent claims under the claim they refer to. The split describes the text; it is not a reading of it. Each claim and each element has a link of its own. How the links are made.
Claim 1
Independent claim.
1. A system for managing garbage collection in an on-demand code execution system, the system comprising:
- Claim 1, element e1a processor in communication with a non-transitory data store; and 106–167
- Claim 1, element e2computer-executable instructions stored in the non-transitory data store, 173–245
- Claim 1, element e3wherein the computer-executable instructions, when executed by the processor, configure the processor to perform operations including: 247–380
- Claim 1, element e4obtaining historical workload metrics regarding demand for a plurality of host computing devices, the demand comprising requests to execute user-submitted tasks on an on-demand code execution system; 382–580
- Claim 1, element e5determining, based at least in part on the historical workload metrics, a workload forecast for the plurality of host computing devices; 582–717
- Claim 1, element e6determining, based at least in part on the workload forecast, a garbage collection schedule, 719–810
- Claim 1, element e7wherein the garbage collection schedule comprises a plurality of timeslots, 812–886
- Claim 1, element e8wherein each of the plurality of timeslots is associated with a time at which the workload forecast predicts that future requests to execute user-submitted tasks will consume less than a threshold amount of computing resources of the plurality of host computing devices, and wherein a number of timeslots associated with individual times is determined based at least in part on the workload forecast; 888–1287
- Claim 1, element e9receiving a request to schedule a first garbage collection process on a first virtual machine instance that is hosted on a host computing device of the plurality of host computing devices; 1289–1476
- Claim 1, element e10identifying a first open timeslot on the garbage collection schedule, the first open timeslot being associated with a first time; and 1478–1606
- Claim 1, element e11assigning the first open timeslot to the first virtual machine instance, 1612–1683
- Claim 1, element e12wherein assigning the first open timeslot to the first virtual machine instance causes the first virtual machine instance to execute the first garbage collection process at the first time.1685–1872
4 dependent claims: 2 to 5 (2, 3, 5 on claim 1; 4 on 3)
Claim 2
Depends on claim 1.
2. The system of claim 1, wherein
- Claim 2, element e1the first open timeslot comprises an earliest open timeslot on the garbage collection schedule.34–128
Claim 3
Depends on claim 1.
3. The system of claim 1, wherein
- Claim 3, element e1the first garbage collection process comprises: 34–80
- Claim 3, element e2identifying one or more portions of a computing resource associated with the first virtual machine instance, 82–189
- Claim 3, element e3wherein the one or more portions of the computing resource were allocated during one or more user-submitted task executions, have not been deallocated, and are no longer in use; and 191–367
- Claim 3, element e4deallocating the one or more portions of the computing resource.373–436
Claim 4
Depends on claim 3.
4. The system of claim 3, wherein
- Claim 4, element e1the computing resource associated with the first virtual machine instance comprises a computer memory.34–135
Claim 5
Depends on claim 1.
5. The system of claim 1 comprising
- Claim 5, element e1further computer-executable instructions stored in the non-transitory data store, 36–116
- Claim 5, element e2wherein the further computer-executable instructions, when executed by the processor, configure the processor to perform operations including: 118–259
- Claim 5, element e3processing a request to execute a user-submitted task on the on-demand code execution system, 261–353
- Claim 5, element e4wherein processing the request comprises: 355–395
- Claim 5, element e5identifying, from a plurality of virtual machine instances that are each hosted on a computing device of the plurality of host computing devices, a virtual machine instance that is not currently executing a garbage collection process; and 397–630
- Claim 5, element e6causing execution of the user-submitted task on the virtual machine instance that is not currently executing a garbage collection process.636–773
Claim 6
Independent claim.
6. A computer-implemented method comprising:
- Claim 6, element e1determining, based at least in part on historical workload metrics for a plurality of host computing devices that execute user-submitted tasks in an on-demand code execution system, a workload forecast; 45–246
- Claim 6, element e2determining, based at least in part on the workload forecast, a garbage collection schedule, 248–339
- Claim 6, element e3wherein the garbage collection schedule comprises a plurality of timeslots, 341–415
- Claim 6, element e4wherein each of the plurality of timeslots is associated with a time, and wherein a number of timeslots associated with individual times is determined based at least in part on the workload forecast; 417–615
- Claim 6, element e5receiving a request to schedule a first garbage collection process on a first virtual machine instance that is hosted on one of the plurality of host computing devices; 617–784
- Claim 6, element e6identifying a first open timeslot on the garbage collection schedule; and 786–854
- Claim 6, element e7causing the first virtual machine instance to execute the first garbage collection process at a time associated with the first open timeslot.860–1000
10 dependent claims: 7 to 16 (7, 8, 10, 15 on claim 6; 9 on 8; 11, 12, 13 on 10; 14 on 13; 16 on 15)
Claim 7
Depends on claim 6.
7. The computer-implemented method of claim 6, wherein
- Claim 7, element e1identifying the first open timeslot on the garbage collection schedule is based at least in part on a capacity of the first virtual machine instance to defer execution of the first garbage collection process.55–262
Claim 8
Depends on claim 6.
8. The computer-implemented method of claim 6 further comprising:
- Claim 8, element e1identifying a peak demand time at which the workload forecast predicts that future requests to execute user-submitted tasks will consume more than a threshold amount of computing resources of the plurality of host computing devices, 66–297
- Claim 8, element e2wherein no timeslots in the garbage collection schedule are associated with the peak demand time; 299–395
- Claim 8, element e3selecting, from a plurality of times associated with open timeslots in the garbage collection schedule, an earlier time associated with a second open timeslot, the earlier time preceding the peak demand time; 397–604
- Claim 8, element e4identifying, from a plurality of virtual machine instances that are each hosted on a computing device of the plurality of host computing devices, a virtual machine instance that is likely to request scheduling of a garbage collection process at or near the peak demand time; and 606–879
- Claim 8, element e5assigning the second open timeslot to the virtual machine instance, 885–951
- Claim 8, element e6wherein assigning the second open timeslot to the virtual machine instance causes the virtual machine instance to execute the garbage collection process at the earlier time.953–1125
Claim 9
Depends on claim 8.
9. The computer-implemented method of claim 8, wherein
- Claim 9, element e1selecting the earlier time is based at least in part on minimizing a difference between the earlier time and the peak demand time.55–184
Claim 10
Depends on claim 6.
10. The computer-implemented method of claim 6 further comprising:
- Claim 10, element e1receiving a request to execute a user-submitted task on the on-demand code execution system; 67–158
- Claim 10, element e2obtaining, for individual virtual machine instances of a plurality of virtual machine instances that are each hosted on a computing device of the plurality of host computing devices, an estimated capacity to execute user-submitted tasks without first executing a garbage collection process; 160–449
- Claim 10, element e3selecting, based at least in part on the garbage collection schedule, the user-submitted task, and the estimated capacities of the individual virtual machine instances, a virtual machine instance to execute the user-submitted task; and 451–681
- Claim 10, element e4executing the user-submitted task on the virtual machine instance.687–752
Claim 11
Depends on claim 10.
11. The computer-implemented method of claim 10, wherein
- Claim 11, element e1executing the user-submitted task on the virtual machine instance causes the virtual machine instance to request scheduling of a garbage collection process at a time when there is an open timeslot on the garbage collection schedule.57–288
Claim 12
Depends on claim 10.
12. The computer-implemented method of claim 10, wherein
- Claim 12, element e1executing the user-submitted task on the virtual machine instance reduces a likelihood that the virtual machine instance will request scheduling of a garbage collection process at a time when there are no open timeslots on the garbage collection schedule.57–311
Claim 13
Depends on claim 10.
13. The computer-implemented method of claim 10 further comprising
- Claim 13, element e1estimating an amount of garbage generated by execution of the user-submitted task.67–148
Claim 14
Depends on claim 13.
14. The computer-implemented method of claim 13, wherein
- Claim 14, element e1estimating the amount of garbage generated by execution of the user-submitted task is based at least in part on one or more previous executions of the user-submitted task.57–227
Claim 15
Depends on claim 6.
15. The computer-implemented method of claim 6 further comprising:
- Claim 15, element e1determining that an updated garbage collection schedule is needed; 67–132
- Claim 15, element e2obtaining updated historical demand data for the plurality of host computing devices; 134–218
- Claim 15, element e3determining an updated demand forecast based at least in part on the updated historical demand data; and 220–319
- Claim 15, element e4determining, based at least in part on the updated demand forecast, the updated garbage collection schedule.325–432
Claim 16
Depends on claim 15.
16. The computer-implemented method of claim 15, wherein
- Claim 16, element e1determining that the updated garbage collection schedule is needed is based at least in part on one or more of a shortage of open timeslots or approaching the end of the garbage collection schedule.57–254
Claim 17
Independent claim.
17. A non-transitory computer-readable medium including computer-executable instructions that, when executed by a processor, cause the processor to perform operations including:
- Claim 17, element e1determining, based at least in part on a demand forecast for a plurality of host computing devices in an on-demand code execution system, a garbage collection schedule, 178–345
- Claim 17, element e2wherein the garbage collection schedule comprises a plurality of timeslots, 347–421
- Claim 17, element e3wherein each of the plurality of timeslots is associated with a time, and wherein a number of timeslots associated with individual times is determined based at least in part on the demand forecast; 423–619
- Claim 17, element e4receiving a request to schedule a first garbage collection process associated with a first virtual machine instance that is hosted on a first host computing device of the plurality of host computing devices; and 621–827
- Claim 17, element e5causing at least one of the first virtual machine instance or the first host computing device to perform the first garbage collection process at a time associated with an open timeslot on the garbage collection schedule.833–1052
2 dependent claims: 18 and 19 (18, 19 on claim 17)
Claim 18
Depends on claim 17.
18. The non-transitory computer-readable medium of claim 17, wherein
- Claim 18, element e1the first garbage collection process comprises restoring a snapshot of the first virtual machine instance.69–174
Claim 19
Depends on claim 17.
19. The non-transitory computer-readable medium of claim 17, wherein
- Claim 19, element e1a first timeslot of the plurality of timeslots and a second timeslot of the plurality of timeslots are both associated with a first time.69–205
1. A system for managing garbage collection in an on-demand code execution system, the system comprising: a processor in communication with a non-transitory data store; and computer-executable instructions stored in the non-transitory data store, wherein the computer-executable instructions, when executed by the processor, configure the processor to perform operations including: obtaining historical workload metrics regarding demand for a plurality of host computing devices, the demand comprising requests to execute user-submitted tasks on an on-demand code execution system; determining, based at least in part on the historical workload metrics, a workload forecast for the plurality of host computing devices; determining, based at least in part on the workload forecast, a garbage collection schedule, wherein the garbage collection schedule comprises a plurality of timeslots, wherein each of the plurality of timeslots is associated with a time at which the workload forecast predicts that future requests to execute user-submitted tasks will consume less than a threshold amount of computing resources of the plurality of host computing devices, and wherein a number of timeslots associated with individual times is determined based at least in part on the workload forecast; receiving a request to schedule a first garbage collection process on a first virtual machine instance that is hosted on a host computing device of the plurality of host computing devices; identifying a first open timeslot on the garbage collection schedule, the first open timeslot being associated with a first time; and assigning the first open timeslot to the first virtual machine instance, wherein assigning the first open timeslot to the first virtual machine instance causes the first virtual machine instance to execute the first garbage collection process at the first time.
2. The system of claim 1, wherein the first open timeslot comprises an earliest open timeslot on the garbage collection schedule.
3. The system of claim 1, wherein the first garbage collection process comprises: identifying one or more portions of a computing resource associated with the first virtual machine instance, wherein the one or more portions of the computing resource were allocated during one or more user-submitted task executions, have not been deallocated, and are no longer in use; and deallocating the one or more portions of the computing resource.
4. The system of claim 3, wherein the computing resource associated with the first virtual machine instance comprises a computer memory.
5. The system of claim 1 comprising further computer-executable instructions stored in the non-transitory data store, wherein the further computer-executable instructions, when executed by the processor, configure the processor to perform operations including: processing a request to execute a user-submitted task on the on-demand code execution system, wherein processing the request comprises: identifying, from a plurality of virtual machine instances that are each hosted on a computing device of the plurality of host computing devices, a virtual machine instance that is not currently executing a garbage collection process; and causing execution of the user-submitted task on the virtual machine instance that is not currently executing a garbage collection process.
6. A computer-implemented method comprising: determining, based at least in part on historical workload metrics for a plurality of host computing devices that execute user-submitted tasks in an on-demand code execution system, a workload forecast; determining, based at least in part on the workload forecast, a garbage collection schedule, wherein the garbage collection schedule comprises a plurality of timeslots, wherein each of the plurality of timeslots is associated with a time, and wherein a number of timeslots associated with individual times is determined based at least in part on the workload forecast; receiving a request to schedule a first garbage collection process on a first virtual machine instance that is hosted on one of the plurality of host computing devices; identifying a first open timeslot on the garbage collection schedule; and causing the first virtual machine instance to execute the first garbage collection process at a time associated with the first open timeslot.
7. The computer-implemented method of claim 6, wherein identifying the first open timeslot on the garbage collection schedule is based at least in part on a capacity of the first virtual machine instance to defer execution of the first garbage collection process.
8. The computer-implemented method of claim 6 further comprising: identifying a peak demand time at which the workload forecast predicts that future requests to execute user-submitted tasks will consume more than a threshold amount of computing resources of the plurality of host computing devices, wherein no timeslots in the garbage collection schedule are associated with the peak demand time; selecting, from a plurality of times associated with open timeslots in the garbage collection schedule, an earlier time associated with a second open timeslot, the earlier time preceding the peak demand time; identifying, from a plurality of virtual machine instances that are each hosted on a computing device of the plurality of host computing devices, a virtual machine instance that is likely to request scheduling of a garbage collection process at or near the peak demand time; and assigning the second open timeslot to the virtual machine instance, wherein assigning the second open timeslot to the virtual machine instance causes the virtual machine instance to execute the garbage collection process at the earlier time.
9. The computer-implemented method of claim 8, wherein selecting the earlier time is based at least in part on minimizing a difference between the earlier time and the peak demand time.
10. The computer-implemented method of claim 6 further comprising: receiving a request to execute a user-submitted task on the on-demand code execution system; obtaining, for individual virtual machine instances of a plurality of virtual machine instances that are each hosted on a computing device of the plurality of host computing devices, an estimated capacity to execute user-submitted tasks without first executing a garbage collection process; selecting, based at least in part on the garbage collection schedule, the user-submitted task, and the estimated capacities of the individual virtual machine instances, a virtual machine instance to execute the user-submitted task; and executing the user-submitted task on the virtual machine instance.
11. The computer-implemented method of claim 10, wherein executing the user-submitted task on the virtual machine instance causes the virtual machine instance to request scheduling of a garbage collection process at a time when there is an open timeslot on the garbage collection schedule.
12. The computer-implemented method of claim 10, wherein executing the user-submitted task on the virtual machine instance reduces a likelihood that the virtual machine instance will request scheduling of a garbage collection process at a time when there are no open timeslots on the garbage collection schedule.
13. The computer-implemented method of claim 10 further comprising estimating an amount of garbage generated by execution of the user-submitted task.
14. The computer-implemented method of claim 13, wherein estimating the amount of garbage generated by execution of the user-submitted task is based at least in part on one or more previous executions of the user-submitted task.
15. The computer-implemented method of claim 6 further comprising: determining that an updated garbage collection schedule is needed; obtaining updated historical demand data for the plurality of host computing devices; determining an updated demand forecast based at least in part on the updated historical demand data; and determining, based at least in part on the updated demand forecast, the updated garbage collection schedule.
16. The computer-implemented method of claim 15, wherein determining that the updated garbage collection schedule is needed is based at least in part on one or more of a shortage of open timeslots or approaching the end of the garbage collection schedule.
17. A non-transitory computer-readable medium including computer-executable instructions that, when executed by a processor, cause the processor to perform operations including: determining, based at least in part on a demand forecast for a plurality of host computing devices in an on-demand code execution system, a garbage collection schedule, wherein the garbage collection schedule comprises a plurality of timeslots, wherein each of the plurality of timeslots is associated with a time, and wherein a number of timeslots associated with individual times is determined based at least in part on the demand forecast; receiving a request to schedule a first garbage collection process associated with a first virtual machine instance that is hosted on a first host computing device of the plurality of host computing devices; and causing at least one of the first virtual machine instance or the first host computing device to perform the first garbage collection process at a time associated with an open timeslot on the garbage collection schedule.
18. The non-transitory computer-readable medium of claim 17, wherein the first garbage collection process comprises restoring a snapshot of the first virtual machine instance.
19. The non-transitory computer-readable medium of claim 17, wherein a first timeslot of the plurality of timeslots and a second timeslot of the plurality of timeslots are both associated with a first time.
The text of each claim as printed, for pasting a claim word for word. The links in the tree view name the same claims and elements.
Status
active
As of 2026-11-17, the USPTO record for US 11526434 shows no unresolved maintenance-fee lapse, and the term end computed from the dates in that record is 2041-06-27 (20 years from filing, plus 733 days of patent term adjustment), a date not yet passed (data version 20261117.2).
- Basis
- term_20y · pta_days:733 (20 years from filing, plus 733 days of patent term adjustment)
- Term end
- 2041-06-27 Computed from the dates in the USPTO record
- Fee lapse
- none on record
- Reinstatement
- none on record; reinstatement_possible: false, not lapsed
- As of
- 2026-11-17
- Data version
- 20261117.2
A fact about the record with its basis and its as-of date, not legal advice.
Citations
References cited on the grant: 8 US patent documents · Cited by: 48 US patents in this data · Lists through the API: /api/v1/patent/us_patent_citation/11526434/ (needs a free key, as the links under Get this as data)
Family outside the US
Google Patents Public Datasets lists no publication outside the US in this patent's family (read 2026-10-15).
This patent's family on USPTO Global Dossier
Family data from Google Patents Public Datasets, used under CC BY 4.0.
Record JSON
{
"patent_id": "11526434",
"status": "active",
"basis": [
"term_20y",
"pta_days:733"
],
"reinstatement_possible": false,
"reinstatement_basis": "not lapsed",
"expiry_date_estimated": "2041-06-27",
"lapse_date": null,
"reinstated_date": null,
"as_of": "2026-11-17",
"data_version": "20261117.2",
"catalog_data_version": "20261117.2",
"permalink": "https://patentref.io/p/11526434?v=20261117.2",
"next_steps": [
{
"kind": "record",
"url": "https://patentref.io/p/11526434?v=20261117.2",
"audience": "human"
},
{
"kind": "patent",
"url": "https://patentref.io/api/v1/patent/11526434/",
"audience": "agent"
},
{
"kind": "fee_events",
"tool": "uspto_patent_center",
"url": "https://patentcenter.uspto.gov/applications?patentNumber=11526434",
"audience": "agent"
}
]
}
Get this as data
- Full record
/api/v1/patent/11526434/ - Status record
/api/v1/lapse/status/11526434/ - Claim tree
/api/v1/structure/claims/11526434/ - Brief
/api/v1/structure/brief/11526434/
These four links need a free key (1,000 requests a month). Opened in a browser, which sends no key, they answer 403. Get a free key on the sign-up page, then send it in the X-Api-Key header. To see the shape of an answer without a key, open Try it.