×

System and method for performance tuning of garbage collection algorithms

  • US 10,430,332 B2
  • Filed: 03/25/2014
  • Issued: 10/01/2019
  • Est. Priority Date: 03/25/2013
  • Status: Active Grant
First Claim
Patent Images

1. A garbage collection simulation model executed on a computer system having heap memory and a central processing unit (CPU), wherein the garbage collection simulation module performs an automated process comprising:

  • generating a plurality of transaction requests by the garbage collection simulation model, each of the plurality of transaction requests including randomly generated parameters representing a randomly generated transaction request inter-arrival time, a randomly generated transaction request execution time, and a randomly generated transaction request memory allocation amount;

    allocating portions of the heap memory for use in an active request queue of the garbage collection simulation model to maintain one or more active transaction requests while the active transaction requests are awaiting processing by the CPU module,wherein, for each of the plurality of transaction requests, the garbage collection simulation model applies the transaction request to the active request queue if an amount of available heap memory is greater than the transaction request memory allocation amount;

    in response to the garbage collection simulation model determining that the amount of available heap memory is less than the transaction request memory allocation amount, the garbage collection simulation model initiating a garbage collection routine that interrupts processing of the active transaction requests for a duration of the garbage collection routine, records a time to complete the garbage collection routine, and adds the time to complete the garbage collection routine to the randomly generated transaction request execution times for each of the active transaction requests in the active request queue to create modified transaction request execution times; and

    tracking, by the garbage collection simulation model, an average of the modified transaction request execution times to process the plurality of transaction requests in the heap memory, wherein the average of the transaction request execution times evaluates a performance of the garbage collection routine, wherein the garbage collection routine is tuned based upon the average of the modified transaction request execution times tracked by the garbage collection simulation module to thereby improve the performance of the garbage collection routine.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×