METHOD AND APPARATUS FOR OPERATING SYSTEM INDEPENDENT RESOURCE ALLOCATION AND CONTROL
An apparatus and method for controlling resources in a computing system including receiving an allocation request for a resource; determining whether an allocation limit for the resource has been reached; and, restricting access to the resource upon determination that the allocation limit has been reached.
1 . A method for controlling resources in a computing system comprising:
receiving an allocation request for a resource;
determining whether an allocation limit for the resource has been reached; and,
restricting access to the resource upon determination that the allocation limit has been reached.
2 . The method of claim 1 , wherein the allocation request includes an allocation size.
3 . The method of claim 2 , wherein the allocation size includes a requested memory size.
4 . The method of claim 2 , wherein the allocation size includes a requested network transfer rate.
5 . The method of claim 2 , wherein the allocation size includes a requested data transfer rate.
6 . The method of claim 1 , wherein receiving the allocation request comprises intercepting the allocation request from an application to an operating system.
7 . The method of claim 1 , wherein determining whether the allocation limit for the resource has been reached comprises:
retrieving an allocation request size; and,
determining if a sum of the allocation request size and an allocation counter is less than the allocation limit.
8 . The method of claim 7 , wherein restricting access to the resource upon determination that the allocation limit has been reached comprises:
transferring contents from a previously allocated memory to an alternate medium; and,
releasing the previously allocated memory.
9 . The method of claim 1 , wherein determining whether the allocation limit for the resource has been reached comprises:
retrieving an allocation request size; and,
determining if the allocation request size is greater than the allocation limit.
10 . The method of claim 9 , wherein restricting access to the resource upon determination that the allocation limit has been reached comprises incrementing the allocation limit based on a predetermined period upon determining the allocation request size is greater than the allocation limit.
11 . The method of claim 9 , wherein upon determining the allocation request size is less than the allocation limit, further comprising:
allocating the resource based on the allocation request size; and,
decrementing the allocation limit by the allocation request size.
12 . A product comprising a machine-readable medium and programming embodied in the medium that, when executed by a processor, implements a method for controlling resources in a computing system comprising:
receiving an allocation request for a resource;
determining whether an allocation limit for the resource has been reached; and,
restricting access to the resource upon determination that the allocation limit has been reached.
13 . The product of claim 12 , wherein the allocation request includes an allocation size.
14 . The product of claim 13 , wherein the allocation size includes a requested memory size.
15 . The product of claim 13 , wherein the allocation size includes a requested network transfer rate.
16 . The product of claim 13 , wherein the allocation size includes a requested data transfer rate.
17 . The product of claim 12 , wherein receiving the allocation request comprises intercepting the allocation request from an application to an operating system.
18 . The product of claim 12 , wherein determining whether the allocation limit for the resource has been reached comprises:
retrieving an allocation request size; and,
determining if a sum of the allocation request size and an allocation counter is less than the allocation limit.
19 . The product of claim 7 , wherein restricting access to the resource upon determination that the allocation limit has been reached comprises:
transferring contents from a previously allocated memory to an alternate medium; and,
releasing the previously allocated memory.
20 . The product of claim 12 , wherein determining whether the allocation limit for the resource has been reached comprises:
retrieving an allocation request size; and,
determining if the allocation request size is greater than the allocation limit.
21 . The product of claim 20 , wherein restricting access to the resource upon determination that the allocation limit has been reached comprises incrementing the allocation limit based on a predetermined period upon determining the allocation request size is greater than the allocation limit.
22 . The product of claim 20 , wherein upon determining the allocation request size is less than the allocation limit, and the method further comprising:
allocating the resource based on the allocation request size; and,
decrementing the allocation limit by the allocation request size.
23 . An apparatus for controlling resources in a computing system comprising:
means for receiving an allocation request for a resource;
means for determining whether an allocation limit for the resource has been reached; and,
means for restricting access to the resource upon determination that the allocation limit has been reached.
24 . The apparatus of claim 23 , wherein the allocation request includes an allocation size.
25 . The apparatus of claim 24 , wherein the allocation size includes a requested memory size.
26 . The apparatus of claim 24 , wherein the allocation size includes a requested network transfer rate.
27 . The apparatus of claim 24 , wherein the allocation size includes a requested data transfer rate.
28 . The apparatus of claim 23 , wherein the means for receiving the allocation request comprises means for intercepting the allocation request from an application to an operating system.
29 . The apparatus of claim 23 , wherein the means for determining whether the allocation limit for the resource has been reached comprises:
means for retrieving an allocation request size; and,
means for determining if a sum of the allocation request size and an allocation counter is less than the allocation limit.
30 . The apparatus of claim 29 , wherein the means for restricting access to the resource upon determination that the allocation limit has been reached comprises:
means for transferring contents from a previously allocated memory to an alternate medium; and,
means for releasing the previously allocated memory.
31 . The apparatus of claim 23 , wherein the means for determining whether the allocation limit for the resource has been reached comprises:
means for retrieving an allocation request size; and,
means for determining if the allocation request size is greater than the allocation limit.
32 . The apparatus of claim 31 , wherein the means for restricting access to the resource upon determination that the allocation limit has been reached comprises means for incrementing the allocation limit based on a predetermined period upon determining the allocation request size is greater than the allocation limit.
33 . The apparatus of claim 31 , wherein upon determining the allocation request size is less than the allocation limit, further comprising:
means for allocating the resource based on the allocation request size; and,
means for decrementing the allocation limit by the allocation request size.