A method of processing work units in a system is achieved using a throttling queue. The throttling queue assigns work units to a predetermined number of processing slots. Each slot processes an assigned work unit, sends the work units to client systems for processing, and upon finishing, works on a subsequent work unit. The predetermined number of slots, in one embodiment, may be scaled as resources are added or removed from the system. In one embodiment, the work units are network data packets.

Patent
   7086059
Priority
Jun 26 2001
Filed
Jun 26 2001
Issued
Aug 01 2006
Expiry
Jan 16 2024
Extension
934 days
Assg.orig
Entity
Large
1
9
all paid
1. A method comprising:
allocating a plurality of processing slots based on respective priorities of client computing platforms networked together, wherein allocating includes providing a higher number of the plurality of processing slots to high priority client computing platforms, and providing a lower number of the plurality of processing slots to low priority client computing platforms;
assigning work units to the plurality of processing slots, the work units having object priority levels associated with them as determined by the client computing platforms when assigning work units to the processing slots;
sending the work units to the client computing platforms for processing in accordance with the allocation of the plurality of processing slots; and
processing the work units in accordance with the associated object priority levels.
9. A system comprising:
a plurality of processing slots being allocated based on respective priorities of client computing platforms, wherein allocating includes providing a higher number of the plurality of processing slots to high priority client computing platforms, and providing a lower number of the plurality of processing slots to low priority client computing platforms;
a throttling queue to assign work units to the plurality of processing slots, the work units having object priority levels associated with them as determined by the client computing platforms when assigning work units to the processing slots;
the plurality of processing slots to send the work units to the client computing platforms for processing in accordance with the allocation of the plurality of processing slots; and
the client computing platforms to process the work units in accordance with the associated object priority levels.
6. A machine-readable medium having stored thereon data representing sets of instructions which, when executed by a machine, cause the machine to:
allocate a plurality of processing slots based on respective priorities of client computing platforms, wherein allocating includes providing a higher number of the plurality of processing slots to high priority client computing platforms, and providing a lower number of the plurality of processing slots to low priority client computing platforms;
assign work units to the plurality of processing slots, the work units having object priority levels associated with them as determined by the client computing platforms when assigning work units to the processing slots;
send the work units to the client computing platforms for processing in accordance with the allocation of the plurality of processing slots; and
process the work units in accordance with the associated object priority levels.
2. The method of claim 1, further comprising:
pushing the work units onto a client stack based on the object priority levels.
3. The method of claim 1, wherein a predetermined number of the plurality of processing slots approximately corresponds to a predetermined portion of the plurality of processing slots, and the plurality of processing slots varies based at least in part on availability of resources.
4. The method of claim 1, wherein the work units comprise network data packets.
5. The method of claim 1, further comprising re-prioritizing a first work unit in the client stack based at least in part on a second work unit being at least partially dependent upon the first work unit.
7. The machine-readable medium of claim 6, wherein sets of instructions, when executed by the machine, further cause the machine to:
push the work units onto a client stack based on the object priority levels.
8. The machine-readable medium of claim 6, wherein sets of instructions, when executed by the machine, further cause the machine to re-prioritize a first work unit in the client stack based at least in part on a second work unit being at least partially dependent upon the first work unit.
10. The system of claim 9, wherein a predetermined number of the plurality of processing slots approximately corresponds to a predetermined portion of the plurality of processing slots, and the plurality of processing slots varies based at least in part on availability of resources.
11. The system of claim 9, wherein the work units comprise network data packets.

The described invention relates to the field of processing network data. In particular, the invention relates to the management of processing resources, such as in a networked environment.

Throttling typically refers to controlling the amount of work processed in a system per some time period. For example, if data is being sent over a network, how fast that data is sent is throttled to avoid data loss or to allow other data to flow simultaneously. Throttling traditionally has been implemented by queuing up work units and processing them in the order they are received. This approach, however, doesn't reflect changes in available resources, such as where it is possible to concurrently process data, or reflect changes in priority.

FIG. 1 is a block diagram that shows an example of a throttling queue in a system.

FIG. 2 is a schematic diagram that shows an example embodiment of a throttling queue that includes processing slots.

FIG. 3 is a schematic diagram that shows an example embodiment with client stacks being employed within a throttling queue.

FIG. 4 is a flowchart that shows one embodiment of a technique to add work units or objects to a throttling queue.

FIG. 5 is a flowchart that shows one embodiment of a technique to add an object or work unit to a throttling queue where that object depends on another object already in the throttling queue.

FIG. 6 is a flowchart that shows one embodiment of a technique to remove work units or objects from a throttling queue.

A method of processing work units in a system using a throttling queue is disclosed. A throttling queue is a device that manages assignment of work units to clients, as will be described. The throttling queue may be implemented in hardware or software. In one embodiment, a throttling queue may assign work units or objects to a predetermined number of processing slots. A processing slot processes an assigned work unit in this embodiment, and upon finishing, works on another assigned work unit. The predetermined number of slots, in one embodiment, may be scaled as resources are added or removed from the system.

FIG. 1 is a block diagram that shows an example of a throttling queue 20 in a system 5. In one embodiment, the throttling queue 20 is implemented in software on a hardware platform. Clients 1013 may register with the throttling queue. Thereafter, the clients 1013 send work units to the throttling queue 20. Work units are work requests that are sent to different agents (or clients) to process. In one embodiment, a work unit may comprise a networking data packet. However, the work unit may be any request for processing of data. In one embodiment, the clients 1013 comprise separate computing platforms that are networked together.

In one embodiment, a user operating on one of the clients is able to make modifications on the other clients. During this process, a number of work units are generated by the clients and stored in the throttling queue for transmission to the intended agent (or client). The throttling queue, in this embodiment, has a predetermined number of processing slots for processing the generated work units. As the work units are processed, for example, by the work units being sent out to other clients, such as 1013, slots are freed up. Subsequent work units may now fill the freed up slots.

FIG. 2 is a schematic diagram that shows an example embodiment of a throttling queue that includes processing slots 20a20n. In one embodiment, a first allocation of processing slots 22 illustrates a first client is allotted a certain number of slots as depicted by allocation line 22a. Line 22a indicates that a first client is assigned slots 20a201. A second client is assigned slots 20m and 20n, as depicted by line 22b. Such an uneven allocation of slots is used when one client is given more priority than another client. In one embodiment, the client with the highest priority is allocated 80% of the slots, and any other clients share the remaining 20% of slots. Of course these allocations are only an example, various other percentages may be employed. Multiple priority levels and other variations may also be employed.

In a different allocation 24, each of the clients is assigned the same number of slots. For example, allocation lines 24a24d illustrate various clients assigned three corresponding processing slots. Line 24a corresponds to slots 20a20c, line 24b corresponds to slots 20d–f, and so forth.

In one embodiment, the assignment of processing slots may be based at least in part on threads of a single client. Thus, a multithreading client is able to prioritized certain threads above others.

In one embodiment, the throttling queue has a stack, i.e., a last-in first-out storage medium, for clients that have registered to use it. If a client sends the throttling queue a higher priority request, then the throttling queue “pushes” the current client request on a stack and then begins processing the new client request.

FIG. 3 is a schematic diagram that shows an example embodiment with client stacks 41a41n being employed within a throttling queue. The client stacks, may have a number of queues 42a–c, 44a–b, i.e., storage media that are typically implemented using a first-in first-out protocol, such that the respective first data items stored into the storage media are the respective first items retrieved from the storage media. The queues 42a–c, 44a–b have a number of work units represented by objects 45. The top elements of the client stacks form the primary queue 40. The client queues of the primary queue are processed by work units being allocated to slots as described with respect to FIG. 2. As the client queues 42a, 44a complete processing in the primary queue 40, other client queues 42b–c, 44b are popped off the stack to be processed.

For example, client stack 41a includes client queues 42a–c. In one embodiment, each of the client queues 42a–c has a priority associated with it. The one with the highest priority is the one that is processed first. After client queue 42a is processed, client queue 42b is processed. Subsequently, client queue 42c is processed. At the same time a separate client stack 41n is being processed, and after its client queue 44a finishes processing, then client queue 44b enters the primary queue and its work units are allocated to the processing slots.

In one embodiment, some work units may have a dependency on other work units deeper in the client stack. When this occurs, the work units deeper in the client stack are brought to the top of the stack so they can be processed, as will be explained with respect to FIG. 5.

FIG. 4 is a flowchart that shows one embodiment of a technique to add work units or objects to a throttling queue. The flow starts at block 100, at which, a new object (representing a work unit) is created that needs processing. Process flow continues at block 102, at which a determination is made whether this object has a first priority. In one embodiment, the client that created the new object dictates whether the new object should have a higher priority than other objects. If the object does not have a first priority, then process flow continues at block 104. If there are empty slots, then process flow continues at block 106 at which the object is assigned to the appropriate target client(s) for processing.

At block 102, if the new object has first priority, then process flow continues at block 108. From block 108, if there are empty slots, then the object is processed and assigned to the appropriate target client(s) for processing at block 106. From block 108, if there are no empty slots, then process flow continues at block 110, at which a change in priority is marked by creating a new primary queue and pushing the current primary queue onto the client stack. From block 110, process flow continues at block 112 at which the new object (representing a work unit) is added to the client's primary queue.

At block 104, if there are no empty slots, then process flow continues at block 112, at which the new object (representing a work unit) is added to the client's primary queue.

FIG. 5 is a flowchart that shows one embodiment of a technique to add an object or work unit to a throttling queue where that object that depends on another object already in the throttling queue. In one embodiment, block 112 of FIG. 4 comprises FIG. 5.

The flowchart starts at block 150 at which a determination is made whether the current object to be added to the throttling queue depends on other objects already in the throttling queue. If there is a potential dependency, then the flow proceeds at block 152, at which the client queues are searched for potential dependent objects. Any dependent objects found are elevated to high priority (block 154).

In one embodiment, single objects from the client queue are elevated in priority. In another embodiment, an entire client queue may be raised in priority based on a dependent object within the client queue.

As an example, a client may send work units to multiple computing platforms as a result of interactions with a first web page. When the client switches to a second web page, this second web page may be set up to modify a single target computing platform. In such a case, the client signals the throttling queue to re-prioritize work units already in the client stacks directed to the target computing platform.

FIG. 6 is a flowchart that shows one embodiment of a technique to remove objects or work units from a throttling queue. The process flow starts at block 200, at which any of the client objects finishes processing. The process flow continues at block 202, at which a determination is made whether there are any objects in any primary queues. If there are objects in any of the primary queues, then process flow continues at block 204, at which a next object is processed. In one embodiment, either a fair distribution method or a prioritized distribution method is employed, as was illustrated with respect to FIG. 2.

If, at block 202, there are no objects in any of the primary queues, then process flow continues at block 210, at which the throttling queue waits for a new object to be added.

The above throttling queue may be employed in a variety of different systems. In one embodiment, multiple clients are coupled together via a network, and the clients are able to modify other clients on the network. In one embodiment, a client may generate thousands of messages, e.g., packet data, to send out to the other computing platforms on the network. However due to limited bandwidth of the network, it may take a while to communicate all the messages (work units) to the other clients. The method described herein allows the client to work on subsequently received tasks by prioritizing the newer tasks with higher priority. The older tasks either continue to operate with a lower priority by being allocated to fewer slots or the older tasks may wait on a client stack until the current tasks are completed. The various implementations may be based on different priority levels of the system.

In one embodiment, for example, the throttling queue may regulate processing requests for a browser. For example, if a client using a browser is receiving data from a first web page, and the client changes to a second web page, the client will generate new work units based on receiving data from the second web page. Assume the work units associated with the second web page have a higher priority. In this embodiment, these will be processed first. The work units associated with the first web page are then placed in a client stack of the throttling queue and will either continue processing in the background (e.g., at a lower priority) or wait on the client stack until the work units associated with the second web page complete.

Thus, a method of processing work units in a system using a throttling queue is disclosed. However, the specific embodiments and methods described herein are merely illustrative. Numerous modifications in form and detail may be made without departing from the scope of the invention as claimed below. The invention is limited only by the scope of the appended claims.

King, David A., Remer, Eric B.

Patent Priority Assignee Title
7925805, Jan 29 2008 Hewlett Packard Enterprise Development LP Critical resource management
Patent Priority Assignee Title
5339425, Dec 11 1990 Fisher Controls International, Inc. Operating system for a process controller
5515379, Oct 18 1993 Motorola Mobility LLC Time slot allocation method
5987492, Oct 31 1997 Oracle America, Inc Method and apparatus for processor sharing
6108347, Feb 26 1997 RPX Corporation Non-polled dynamic slot time allocation protocol
6243391, Feb 26 1997 RPX Corporation Non-polled dynamic slot time allocation protocol
6366761, Oct 06 1998 HANGER SOLUTIONS, LLC Priority-based bandwidth allocation and bandwidth-on-demand in a low-earth-orbit satellite data communication network
6560628, Apr 27 1998 HANGER SOLUTIONS, LLC Apparatus, method, and recording medium for scheduling execution using time slot data
6594263, Jul 06 1995 Telefonaktiebolaget LM Ericsson ATM throttling
6633897, Jun 30 1995 GOOGLE LLC Method and system for scheduling threads within a multiprocessor data processing system using an affinity scheduler
////
Executed onAssignorAssigneeConveyanceFrameReelDoc
Jun 26 2001Intel Corporation(assignment on the face of the patent)
Sep 17 2001REMER, ERIC B Intel CorporationASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0122510610 pdf
Sep 17 2001KING, DAVID A Intel CorporationASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0122510610 pdf
Feb 04 2016Intel CorporationBEIJING XIAOMI MOBILE SOFTWARE CO , LTD ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS 0377330440 pdf
Date Maintenance Fee Events
Jan 29 2010M1551: Payment of Maintenance Fee, 4th Year, Large Entity.
Jan 02 2014M1552: Payment of Maintenance Fee, 8th Year, Large Entity.
Feb 02 2018M1553: Payment of Maintenance Fee, 12th Year, Large Entity.
Feb 02 2018M1556: 11.5 yr surcharge- late pmt w/in 6 mo, Large Entity.


Date Maintenance Schedule
Aug 01 20094 years fee payment window open
Feb 01 20106 months grace period start (w surcharge)
Aug 01 2010patent expiry (for year 4)
Aug 01 20122 years to revive unintentionally abandoned end. (for year 4)
Aug 01 20138 years fee payment window open
Feb 01 20146 months grace period start (w surcharge)
Aug 01 2014patent expiry (for year 8)
Aug 01 20162 years to revive unintentionally abandoned end. (for year 8)
Aug 01 201712 years fee payment window open
Feb 01 20186 months grace period start (w surcharge)
Aug 01 2018patent expiry (for year 12)
Aug 01 20202 years to revive unintentionally abandoned end. (for year 12)