# US 2004/0073529 A1 · Startup and control of graph-based computation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0073529 A1
- Document ID: US20040073529A1
- Status: Published application
- Kind: A1
- Application number: 10/268,509
- Filed: 2002-10-10
- Published: 2004-04-15
- Earliest claimed: 2002-10-10
- Assignees: Ab Initio Software LLC
- Inventors: Craig W. Stanfill
- Web page: https://patentgrep.com/patent/US20040073529A1

## CPC

- G06F 9/50: Allocation of resources, e.g. of the central processing unit [CPU]
- G06F 9/4494: {data driven}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An approach to performing graph-based computation uses one or both of an efficient startup approach and efficient control using process pools. Efficient startup of a graph-based computation involves precomputing data representing a runtime structure of a computation graph such that an instance of the computation graph is formed using the precomputed data for the required type of graph to form the runtime data structure for the instance of the computation graph. Pools of processes that are each suitable for performing computations associated with one or more vertices of the computation graphs are formed such that at runtime, members of these pools of processes are dynamically assigned to particular vertices of instances of computation graphs when inputs are available for processing at those vertices.

## Claims

### Claim 1

A method for processing graph-based computations including:
providing one or more graph templates each associated with a different type of computation graph, each computation graph including a number of graph elements each associated with a corresponding computation;
forming one or more pools of computing resources, wherein each graph element of a computation is associated with a corresponding one of the pools of computing resources; and
processing one or more data streams, each associated with a corresponding type of computation graph, including for each of the data streams,
forming a graph instance from a graph template for the corresponding computation graph,
for each graph element of the graph instance, assigning computing resources from corresponding pools of computing resources, and
processing the data stream with the graph instance, including performing the computations corresponding to the graph elements of such graph instance using the assigned computing resources.

### Claim 2 (depends on 1)

The method of claim 1, wherein the graph elements include vertices of the computation graph.

### Claim 3 (depends on 1)

The method of claim 1, wherein the graph elements include link-s of the computation graph.

### Claim 4 (depends on 1)

The method of claim 1, wherein the computation resources include processes.

### Claim 5 (depends on 1)

The method of claim 1, wherein the computation resources include processes threads.

### Claim 6 (depends on 1)

The method of claim 1, wherein the computation resources include database connections.

### Claim 7 (depends on 1)

The method of claim 1, wherein providing the one or more graph templates includes storing the templates in volatile memory.

### Claim 8 (depends on 1)

The method of claim 1, wherein providing the one or more graph templates includes storing the templates in non-volatile memory.

### Claim 9 (depends on 1)

The method of claim 1, wherein forming the graph instance from the graph template includes forming such instance in volatile memory.

### Claim 10 (depends on 9)

The method of claim 9 wherein forming the graph instance includes allocating a portion of the memory to the graph instance and copying the graph template to such portion of the memory.

### Claim 11 (depends on 1)

The method of claim 1, wherein assigning computing resources includes assigning each of such resources dynamically for part of the computation on the data stream.

### Claim 12 (depends on 11)

The method of claim 11, wherein assigning each of the resources dynamically for processing part of the computation occurs when at least some part of all of the inputs for such part of the computation are available.

### Claim 13 (depends on 12)

The method of claim 12, wherein assigning each of the resources dynamically for processing part of the computation occurs when all of the inputs for such part of the computation are available.

### Claim 14 (depends on 11)

The method of claim 11, wherein assigning each of the resources dynamically includes deassigning the computation resource from the graph element.

### Claim 15 (depends on 1)

The method of claim 1, wherein assigning computing resources includes assigning each of such computing resources for the graph element for processing all of the data stream.

### Claim 16 (depends on 1)

The method of claim 1, further including releasing the computing resources assigned to graph elements and destroying the instance of the graph.

### Claim 17 (depends on 1)

The method of claim 1, wherein processing the one or more data streams includes concurrently processing at least two data streams each associated with a different computation graph.

### Claim 18 (depends on 17)

The method of claim 17, wherein at least one graph element of instances of each of the different computation graphs is associated with a same corresponding pool of computation resources.

### Claim 19 (depends on 18)

The method of claim 18, wherein at least one computing resource of the same corresponding pool of computation resources is assigned at different times to the at least one graph element of the instances of the different computation graphs.

### Claim 20

A computer program, stored on a computer-readable medium, for processing graph-based computations, the computer program comprising instructions for causing a computer system to:
provide one or more graph templates each associated with a different type of computation graph, each computation graph including a number of graph elements each associated with a corresponding computation;
form one or more pools of computing resources, wherein each graph element of a computation is associated with a corresponding one of the pools of computing resources; and
process one or more data streams, each associated with a corresponding type of computation graph, including for each of the data streams:
forming a graph instance from a graph template for the corresponding computation graph of computing resources,
for each graph elements of the graph instance, assigning computing resources from corresponding pools, and
processing the data stream with the graph instance, including performing the computations corresponding to the graph elements of such graph instance using the assigned computing resources.

### Claim 21

A system for processing graph-based computations including:
one or more graph templates stored in data storage each associated with a different type of graph-based computation, each template comprising a number of graph elements each associated with a corresponding computation;
means for forming one or more pools of computing resources, wherein each graph element of a graph template is associated with a corresponding one of the pools of computing resources; and
means for processing one or more data streams, each associated with a corresponding type of graph-based computation, including for each of the data streams,
forming a graph instance from a graph template associated with the corresponding type of graph-based computation, said graph instance having graph elements corresponding to the graph elements of the graph template,
for each graph element of the graph instance, assigning a computing resources from a corresponding one of the pools of computing resources, and
processing the data stream with the graph instance, including performing computations corresponding to the graph elements of such graph instance using the assigned computing resources.
