# US 2024/0176636 A1 · Deadlock and hang avoidance in a large distributed computer system

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

- Number: US 2024/0176636 A1
- Document ID: US20240176636A1
- Status: Published application
- Kind: A1
- Application number: 18/060,424
- Filed: 2022-11-30
- Published: 2024-05-30
- Earliest claimed: 2022-11-30
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Matthias KLEIN; Deanna Postles Dunn BERGER; Robert J. SONNELITTER, III; Kenneth Douglas KLAPPROTH; Timothy BRONSON; Gregory William ALEXANDER; Ashraf ELSHARIF
- Web page: https://patentgrep.com/patent/US20240176636A1

## CPC

- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A network of hang avoidance controllers and components which provide layer or scope based hang avoidance mechanisms in a distributed computing system is described. The detection of hang avoidance conditions and activation of the hang avoidance mechanisms are implemented on various limited scopes in the computing system, which prevent unnecessary system wide interruptions to avoid potential hangs in the system.

## Claims

### Claim 1

A method comprising:
detecting, at a first time and at a fast hang avoidance (FHA) controller, that an FHA condition for a resource request exceeds a first threshold for FHA activation on at least one FHA component in a first system scope of a plurality of system scopes;
determining a first FHA request status for the resource request and the FHA controller based on activation settings for the FHA controller, a requestor type for the resource request, and the first system scope; and
activating, based on the first FHA request status, FHA mechanisms on the at least one FHA component within the first system scope.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
detecting, at a second time, the FHA condition for the resource request exceeds a second threshold for FHA activation on a plurality of FHA components in a second system scope of the plurality of system scopes;
determining a second FHA request status for the resource request and the FHA controller based on the activation settings for the FHA controller and the second system scope; and
activating, based on the second FHA request status, FHA mechanisms on the plurality of FHA components in the second system scope.

### Claim 3 (depends on 1)

The method of claim 1, wherein activating the FHA mechanisms on the at least one FHA component in the first system scope comprises:
transmitting an FHA request to the at least one FHA component in the first system scope.

### Claim 4 (depends on 1)

The method of claim 1, wherein determining the first FHA request status comprises:
determining a capability of the FHA controller to enable FHA activation within first system scope; and
determining, based on a current state of the FHA controller and a general system state, a blocking condition for enabling FHA activation, wherein the first FHA request status comprises an enabled activation status when the capability of the FHA controller and the blocking condition both indicate FHA activation is allowed for the FHA condition at the FHA controller.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
generating an internal FHA request at the FHA controller prior to activating FHA mechanisms;
detecting, based on a current state of the FHA controller and a general system state, that an FHA activation for the FHA controller is masked; and
wherein activating FHA mechanisms comprises:
activating the internal FHA request on the FHA controller; and
suppressing activation at one or more other FHA components in the first system scope.

### Claim 6 (depends on 1)

The method of claim 1, wherein the FHA condition comprises a pending time for a resource request, and wherein the first threshold for FHA activation comprises a time threshold for the first system scope.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
detecting a completion of the resource request at the FHA controller; and
deactivating the FHA mechanisms on the at least one FHA component within the first system scope.

### Claim 8

A system comprising:
processor; and
a memory containing a program which when executed by the processor performs an operation comprising:
detecting, at a first time and at a fast hang avoidance (FHA) controller, an FHA condition for a resource request exceeds a first threshold for FHA activation on at least one FHA component in a first system scope of a plurality of system scopes;
determining a first FHA request status for the resource request and the FHA controller based on activation settings for the FHA controller, a requestor type for the resource request, and the first system scope; and
activating, based on the first FHA request status, FHA mechanisms on the at least one FHA component within the first system scope.

### Claim 9 (depends on 8)

The system of claim 8, wherein the operation further comprises:
detecting, at a second time, the FHA condition for the resource request exceeds a second threshold for FHA activation on a plurality of FHA components in a second system scope of the plurality of system scopes;
determining a second FHA request status for the resource request and the FHA controller based on the activation settings for the FHA controller and the second system scope; and
activating, based on the second FHA request status, FHA mechanisms on the plurality of FHA components in the second system scope.

### Claim 10 (depends on 8)

The system of claim 8, wherein activating the FHA mechanisms on the at least one FHA component in the first system scope comprises:
transmitting an FHA request to the at least one FHA component in the first system scope.

### Claim 11 (depends on 8)

The system of claim 8, wherein determining the first FHA request status comprises:
determining a capability of the FHA controller to enable FHA activation within first system scope; and
determining, based on a current state of the FHA controller and a general system state, a blocking condition for enabling FHA activation, wherein the first FHA request status comprises an enabled activation status when the capability of the FHA controller and the blocking condition both indicate FHA activation is allowed for the FHA condition at the FHA controller.

### Claim 12 (depends on 8)

The system of claim 8, further comprising:
generating an internal FHA request at the first FHA controller prior to activating FHA mechanisms;
detecting, based on a current state of the FHA controller and a general system state, FHA activation for the FHA controller is masked; and
wherein activating FHA mechanisms comprises:
activating the internal FHA request on the FHA controller; and
suppressing activation at one or more other FHA components in the first system scope.

### Claim 13 (depends on 8)

The system of claim 8, wherein the FHA condition comprises a pending time for a resource request, and wherein the first threshold for FHA activation comprises a time threshold for the first system scope.

### Claim 14 (depends on 8)

The system of claim 8, further comprising:
detecting a completion of the resource request at the FHA controller; and
deactivating the FHA mechanisms on the at least one FHA component within the first system scope.

### Claim 15

A method comprising:
receiving, at a fast hang avoidance (FHA) controller for a first level in a system, a resource request for a resource;
detecting, at the FHA controller, a current FHA activation status;
determining active FHA mechanisms for the resource request based on a request type for the resource request, FHA settings at the FHA controller, and the current FHA activation status; and
processing the resource request according to the active FHA mechanisms.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
receiving an FHA request from at least one external FHA controller;
determining an applicability of the FHA request to the FHA controller; and
setting the current FHA activation status as active based on the applicability of the FHA request.

### Claim 17 (depends on 16)

The method of claim 16, further comprising:
activating at least one FHA mechanisms via the FHA controller according to the FHA request wherein active FHA mechanisms comprise one or more of:
blocking, at the FHA controller, new requests from resource requestors;
altering a handling of the new requests at the FHA controller using one or more controller hang avoidance mechanisms; and
altering handling of the new requests or pending requests at the resource, wherein the resource processes the new requests according to one or more resource provider hang avoidance mechanisms.

### Claim 18 (depends on 15)

The method of claim 15, wherein determining active FHA mechanisms for the resource request comprises:
determining, from FHA settings at the FHA controller and the resource request, an FHA override setting, wherein the FHA controller processes the resource request without implementing FHA mechanisms when the FHA override setting indicates an FHA override for the resource request.

### Claim 19 (depends on 18)

The method of claim 18, wherein the FHA override setting comprises a gating condition for a resource request, wherein the resource request comprises a first level of coherency, wherein the first level of coherency is greater than a gating threshold for the resource request, and wherein the FHA controller overrides the active FHA mechanisms to allow the resource request to pass to the resource.

### Claim 20 (depends on 15)

The method of claim 15, further comprising:
receiving, from an external FHA controller, an FHA deactivation notice corresponding to active FHA mechanisms at the FHA controller;
deactivating the active FHA mechanisms at the FHA controller; and
passing new resource requests at the FHA controller to corresponding requested resources.
