# US 2022/0283877 A1 · Surrogate process creation technique for high process-per-server scenarios

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

- Number: US 2022/0283877 A1
- Document ID: US20220283877A1
- Status: Published application
- Kind: A1
- Application number: 17/190,086
- Filed: 2021-03-02
- Published: 2022-09-08
- Earliest claimed: 2021-03-02
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Joshua J. Hursey; David Solt; Austen William Lauria
- Web page: https://patentgrep.com/patent/US20220283877A1

## CPC

- G06F 9/4843: {by program, e.g. task dispatcher, supervisor, operating system}
- G06F 9/52: Program synchronisation; Mutual exclusion, e.g. by means of semaphores
- G06F 9/5066: {Algorithms for mapping a plurality of inter-dependent sub-tasks onto a plurality of physical CPUs (mappping at compile time, see G06F8/451)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for launching parallel processes on a server configured to process a number of parallel processes. A request is received from a parallel application to start a number of parallel processes. In response to this request a launcher creates a surrogate. The surrogate inherits communications channels from the launcher. The surrogate then executes activities related to the launch of the parallel processes, and then launches the parallel processes. The parallel processes are launched and the surrogate is terminated.

## Claims

### Claim 1

A method for launching parallel processes comprising:
receiving a request from a parallel application to start a number of parallel processes;
creating by a launcher a surrogate;
inheriting by the surrogate communications channels from the launcher;
executing by the surrogate activities related to launch of the number of parallel process prior to a fork call;
launching the number of parallel processes by the surrogate;
executing the parallel processes; and
terminating the surrogate.

### Claim 2 (depends on 1)

The method of claim 1 wherein a portion of the number of parallel processes are launched using the surrogate.

### Claim 3 (depends on 1)

The method of claim 1 further comprising:
creating, by the launcher, a parent process prior to creating the surrogate.

### Claim 4 (depends on 3)

The method of claim 3 further comprising:
creating, by the parent process, a communications channel for each of the parallel process.

### Claim 5 (depends on 3)

The method of claim 3 further comprising:
establishing, by the parent process, systems resources for each of the parallel processes.

### Claim 6 (depends on 5)

The method of claim 5 wherein the systems resources are those resources required prior to an execution of an exec call by each of the parallel processes.

### Claim 7 (depends on 1)

The method of claim 1 wherein launching further comprises:
allowing the number of parallel processes to proceed to an associated execute call; and
halting an execution of the associated execute call until all of the number of parallel processes have reached the associated execute call.

### Claim 8 (depends on 1)

The method of claim 1 wherein executing the number of parallel processes further comprises:
providing, by the surrogate, the launcher through a launcher-to-surrogate communications channel an indication that the number of parallel processes have been started and a per process identifier for each of the number of parallel processes.

### Claim 9 (depends on 1)

The method of claim 1 further comprising:
prior to terminating the surrogate, transferring ownership of the number of parallel processes to the launcher.

### Claim 10 (depends on 9)

The method of claim 9 wherein transferring occurs when the number of parallel processes execute.

### Claim 11 (depends on 9)

The method of claim 9 wherein transferring comprises:
providing a launcher-to-surrogate communications channel;
sending to the launcher through the launcher-to-surrogate communications channel parallel process tracking for each of the number of parallel processes; and
receiving by the surrogate from the launcher through the launcher-to-surrogate communications channel control operations for the number of parallel processes.

### Claim 12 (depends on 11)

The method of claim 11 wherein the control operations are operations that are not permitted by an operating system for indirectly connected processes.

### Claim 13

A system for launching parallel processes comprising:
a parallel application configured to request a number of parallel processes;
a server configured to process the number of parallel processes;
a launcher configured to create a surrogate, the launcher further configured to coordinate with other system services, provide runtime information to peer process, and make resource allocations to processes; and
the surrogate configured to launch the number of parallel processes without further involvement of the launcher.

### Claim 14 (depends on 13)

The system of claim 13 further comprising:
a parent process, the parent process created by the launcher prior to creation of the surrogate, the parent process configured create communications channels for each of the number of parallel processes.

### Claim 15 (depends on 14)

The system of claim 14 wherein the parent process is further configured to establish for each of the number of parallel processes any system resources required by the number of parallel process prior to a fork call for each of the number of parallel processes.

### Claim 16 (depends on 13)

The system of claim 13 further comprising:
a launcher-to-surrogate communication channel created by the launcher and configured to allow communication between the launcher and the surrogate.

### Claim 17 (depends on 13)

The system of claim 13 wherein the surrogate launches only a portion of the number of parallel processes and the launcher launches a remaining number of the number of processes.

### Claim 18 (depends on 13)

The system of claim 13 wherein the surrogate is configured to reparent the number of parallel processes to the launcher after launching the number of parallel processes.

### Claim 19 (depends on 18)

The system of claim 18 wherein the surrogate is configured to terminate following reparenting.

### Claim 20

A computer readable storage medium having computer executable instructions that when executed by at least one computer cause the computer to:
receive a request from a parallel application to start a number of parallel processes;
create by a launcher a surrogate;
inherit by the surrogate communications channels from the launcher;
execute by the surrogate activities related to launch of the number of parallel process prior to a fork call;
launch the number of parallel processes by the surrogate;
execute the parallel processes; and
terminate the surrogate.
