×

Multi-level resource limits for operating system partitions

  • US 7,805,726 B1
  • Filed: 02/03/2004
  • Issued: 09/28/2010
  • Est. Priority Date: 05/09/2003
  • Status: Active Grant
First Claim
Patent Images

1. A machine-implemented method, comprising:

  • establishing, within a global operating system environment provided by an operating system, a non-global partition which serves to isolate processes running within the non-global partition from at least one other non-global partition within the global operating system environment, wherein each of the non-global partitions share an operating system kernel with the global operating system environment, and wherein each of the non-global partitions comprises a distinct file system;

    associating a first resource limit with the non-global partition, wherein the first resource limit indicates a maximum amount of a particular resource that may be allocated to the non-global partition;

    associating a second resource limit with a first group of processes within the non-global partition, wherein the second resource limit indicates a maximum amount of the particular resource that may be allocated to the first group of processes;

    associating a third resource limit with a second group of processes within the non-global partition, wherein the third resource limit indicates a maximum amount of the particular resource that may be allocated to the second group of processes;

    receiving a resource allocation request for the particular resource from a process of the first group of processes;

    determining an amount of the particular resource that may be allocated by calculating an available amount of the particular resource, wherein if the resource allocation request is less than or equal to the available amount, then the amount is set to the amount specified in the resource allocation request, wherein calculating the available amount comprises;

    calculating a first amount by subtracting a total amount of the particular resource currently in use by the non-global partition from the first resource limit;

    calculating a second amount by subtracting a total amount of the particular resource currently in use by the first group of processes from the second resource limit; and

    setting the available amount to the lower of the first amount and the second amount;

    allocating the determined amount to the process of the first group of processes.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×