Cross multi-host CPU, GPU computing resource hardware state perception collection and reporting mechanism
By unifying batch collection across reset transaction keys and hardware trigger paths, the problem of inconsistent state collection caused by different reset domains and clock domains of counters in multi-host clusters is solved. This enables accurate state monitoring across host CPUs, GPUs, and interconnect switches, ensuring the integrity and consistency of state frames.
Patent Information
- Application Number
- CN202611364061.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-27
AI Technical Summary
In multi-host clusters, the counters of CPUs, GPUs and interconnect switches across hosts are difficult to synchronize due to different reset domains and clock domains. Software polling cannot accurately determine the resource status of GPUs being idle and CPUs being queued or congested. Furthermore, existing methods may cause counter wraparound, erroneous mutations and duplicate measurements, resulting in inaccurate status monitoring.
A unified batch collection method is adopted across reset transaction keys and hardware trigger paths. Idempotent results are latched and cached through atomic counter groups. Time intervals and lineages are reported with each fragment to ensure the integrity and consistency of status frames. Hardware-level status frame publishing is performed using trigger start time, snapshot time, and trigger sequence number as indexes.
It enables the acquisition of heterogeneous counters across hosts using the same hardware boundary, reducing incremental ambiguity and timeout fragmentation issues, ensuring the accuracy and consistency of the global state, and reducing the burden on the management network and processor.
Smart Images

Figure CN123178071A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of hardware consistency snapshot acquisition and status reporting technology across host CPUs, GPUs and interconnect resources, specifically to a hardware status awareness acquisition and reporting mechanism across multi-host CPU and GPU computing resources. Background Technology
[0002] In a multi-host cluster, the CPU, GPU, memory controller, and interconnect switch have different counters, sampling clocks, and reset behaviors. The status obtained by software polling corresponds to different points in time, making it difficult to determine whether GPU idleness is in the same resource state as CPU queuing or path congestion.
[0003] Full high-frequency reporting consumes management network and processor resources, while simple differential may lose counter wraparound, erroneous mutations, and cross-device causal order; multiple agents repeatedly measuring the same two ends of the link will also result in duplicate weighting.
[0004] Common resource monitoring involves each host periodically reading CPU and GPU counters and then asynchronously reporting the data. The sampling time, counter wrap-around, device reset, and cross-host control path latency are not uniformly represented, and the summary frame may mistakenly identify different time states as the same snapshot.
[0005] Different host, CPU, GPU, and interconnect counters reside in different reset and clock domains, and read semantics include normal snapshots, read clears, and finite-width accumulations. Simultaneous polling on the software side alone cannot prove that samples originate from the same acquisition boundary; repeated triggering may also cause secondary sampling and incremental loss.
[0006] This invention unifies batch data collection across reset transaction keys and hardware trigger paths, with endpoints latching and caching idempotent results by atomic counter groups. Time intervals, counting semantics, and lineage are reported with each fragment, and the aggregation end does not wait for indefinitely delayed data but instead publishes versioned status frames that can distinguish gaps.
[0007] A snapshot is not simply a patchwork of the most recent readings from each collector. After the period is triggered, each collector atomically latches its local fragment and returns the time interval, freshness interval, and source period. During the normalization phase, the original counter semantics are preserved, lineage rules suppress derived duplication, and the publisher explicitly marks complete state frames or partial state frames with missing fragments. Summary of the Invention
[0008] This invention solves the problems of cross-host heterogeneous counters being unable to collect data at the same hardware boundary, read and clear data, or multiple wraparounds causing incremental ambiguity, as well as timeout fragmentation making the global state undeterminable.
[0009] The cross-host hardware state processing from period triggering, atomic acquisition to state frame publication includes the following steps: S101 (broadcast snapshot period triggering), S102 (verification triggering and cross-clock cache), S103 (latch atomic state fragments), S104 (calculate time and freshness intervals), S105 (normalize heterogeneous counting semantics), S106 (lineage deduplication and causal compression), S107 (converge confirmation bitmap), and S108 (publish state frame and register late fragments).
[0010] This invention unfolds according to period triggering, endpoint latching, time interval, count normalization, lineage deduplication, and frame publishing. The trigger key, idempotency rules, and quality status are fully preserved as follows.
[0011] The cluster trigger obtains the 32-bit trigger start period from the cross-reset reserved register and increments the 32-bit snapshot period to generate a 256-bit trigger word containing the two periods, a 32-bit target acquisition bitmap, a trigger transmission count, a maximum response boundary, a trigger sequence number, a source clock domain identifier, a fragmentation control field, and a cyclic redundancy check value. The trigger word is then sent via a hardware control path consisting of a hardware trigger endpoint, a reserved management virtual channel, and an acquisition endpoint.
[0012] The combination of the trigger start time, snapshot time, and trigger sequence number is used as the trigger transaction key, and the combination of the trigger transaction key and the trigger shard sequence number is used as the trigger shard key.
[0013] Each acquisition endpoint performs cyclic redundancy check and half-quantum program number continuity check on the trigger word, and writes the trigger words that pass the check into the asynchronous FIFO.
[0014] Retransmission of the same trigger shard key and content summary continues the original collection transaction if it has not been latched. If it has been latched, only the cached confirmation and shard are retransmitted without resampling. If the same key has different summaries, it is set as a conflict.
[0015] Counters with the same non-destructive hardware freeze bit, the same snapshot gate, or the same mirror register commit boundary are grouped into the same atomic counter group. The original value, local receive count, local latch count, local acquisition period and quality bit reserved across reset are latched under the same local latch pulse, forming a state fragment with the resource stability identifier, trigger fragment key, local acquisition period and fragment sequence number as keys.
[0016] The sampling time interval is generated based on the trigger transmission count and propagation boundary, the jitter of the received latch, and the clock conversion error.
[0017] The counters calculate occupancy, rate, or increment based on the counter semantic table. Counters with read-to-zero side effects only obtain samples from parallel event accumulation mirrors, non-destructive shadow interfaces, or read-to-accumulate monotonic mirrors. They cannot save those whose increments are zeroed and are marked as NON_ATOMIC or UNSUPPORTED, and do not establish differential baselines.
[0018] For cumulative counters that may wrap around multiple times between adjacent samples, the increment is calculated only when the atomic latch hardware wrap-around count is reached, or when the product of the maximum increment rate and the sampling interval is less than a power of 2 (the counter bit width). Otherwise, it is set to AMBIGUOUS_WRAP.
[0019] Remove duplicates based on bloodline identification.
[0020] Aggregate the acknowledgment bitmaps indexed by the trigger transaction key and slotted by the trigger fragment sequence number. Publish a complete state frame when all trigger fragments and target atom groups are closed and the quality is valid within the maximum response boundary; otherwise, publish a partial state frame with gaps. Late fragments are registered as subsequent versions of the same trigger transaction key.
[0021] Furthermore, the 256-bit trigger word includes a 32-bit trigger start-up period, a 32-bit snapshot period, a 32-bit target acquisition bitmap, a 48-bit trigger transmission count, a 32-bit maximum response boundary, a 16-bit trigger sequence number, an 8-bit source clock domain identifier, an 8-bit fragmentation control field, a 16-bit payload length, and a 32-bit cyclic redundancy check value. The high 4 bits of the fragmentation control field represent the total number of trigger fragments minus one, and the low 4 bits represent the trigger fragment sequence number. Each bit in the bitmap corresponds to the target acquisition number obtained by multiplying the trigger fragment sequence number by 32 and adding the bit index. The same trigger transaction key can cover up to 16 trigger fragments. When multicast capability is not available, the same trigger fragment key is used to fan out one by one.
[0022] Furthermore, the asynchronous FIFO of each acquisition endpoint uses binary write pointers and read pointers to locate entries. After converting the binary pointers into Gray code, they are passed to the clock domain of the opposite side through two-level synchronization registers. The trigger word data is only written as a complete FIFO entry after the cyclic redundancy check passes. Local latch requests use request-acknowledge toggles to enter the clock domain of each counter from the clock domain of the acquisition endpoint.
[0023] Furthermore, the CPU collector will group the reference cycle and non-pause cycle counters latched by the same PMU freeze bit into CPU atomic groups; the GPU collector will group the GPU busy cycle, video memory read byte, and video memory write byte counters submitted by the same device snapshot gate into GPU atomic groups; the interconnect collector will group the transmit flit, receive flit, retry count, and credit occupancy counters sampled by the same port shadow latch pulse into interconnect atomic groups; counters that do not have the aforementioned freeze bit, snapshot gate, or shadow pulse will be reported as non-atomic fragments and will not be included in the complete status frame confirmation bitmap.
[0024] Furthermore, the sampling time interval is Tsample=[Tsend+dmin-εclock, Tsend+dmax+Jrx+Jlatch+εclock], where Tsend is the reference time for triggering the transmission count conversion, dmin and dmax are the minimum and maximum propagation bounds of the corresponding hardware control path, Jrx is the maximum jitter of the trigger word parsed at the acquisition endpoint, Jlatch is the maximum jitter of the atom group being armed to the latch, and εclock is the conversion error bound between the reference time and the local count.
[0025] Furthermore, when the acquisition endpoint detects a trigger sequence number gap, a failed cyclic redundancy check, or an asynchronous FIFO overflow, it sets the corresponding trigger fragment key to MISSING_TRIGGER and returns a negative acknowledgment containing the trigger fragment key before the maximum response boundary. The cluster trigger can retransmit using the same trigger fragment key and content digest within the original response boundary. The acquisition endpoint queries the received, armed, latched, packaged, or acknowledged status based on the trigger fragment key without repeated latching. Repeated triggering only returns the original acknowledgment or cached fragment. When the same trigger fragment key has a different digest, it is set to TRIGGER_CONFLICT. If it is still missing after the boundary is reached, a partial status frame is published without reading the status of the previous trigger transaction key to complete it.
[0026] Corresponding to the aforementioned method, this invention also discloses a hardware system for acquiring and reporting the status of CPU and GPU resources across multiple hosts. The system is characterized by comprising a cluster trigger with a reset-reserved startup period register, a hardware control path, acquisition endpoints and hardware acquisition units respectively located on each host CPU, GPU, and interconnect device, an asynchronous FIFO, a trigger idempotent directory, an atom group controller, a non-destructive mirror register group, a hardware wraparound counter, a reset-reserved local acquisition period register, a fragment packer, a status frame aggregation buffer with the trigger transaction key as the first-level index and the trigger fragment sequence number as the second-level index, an acknowledgment bitmap, a counter semantic conversion unit, a lineage deduplication unit, and a frame publisher. The cluster trigger increments the startup period each time it starts; if a cold start cannot restore the reserved value, the configuration controller writes the unused startup period. The trigger idempotent directory prevents the same trigger fragment key from being repeatedly latched. The frame publisher marks a complete status frame only when all trigger fragments, the acknowledgment bitmap, and the atom group quality bits are satisfied.
[0027] Furthermore, the read pointer and write pointer of the asynchronous FIFO are synchronized across clock domains using Gray code and through two levels of synchronization registers. The atom group controller uses request-acknowledge toggles to send latch requests to the counter clock domain and sets the valid atom group of the state fragment to the set after all target clock domains return acknowledgments.
[0028] Furthermore, the status frame aggregation buffer uses the trigger transaction key composed of the trigger start time, snapshot time, and trigger sequence number as the first-level index and the trigger fragment sequence number as the second-level index to store the total number of trigger fragments, the target collector bitmap of each fragment, the acknowledgment bitmap, the sampling time interval, the semantic version, the quality bits, and the gap list. Before publishing, it checks that the acknowledgment bitmap is a subset of the corresponding target collector bitmap. The gap list is generated by intersecting the bitwise inversion results of the target collector bitmap and the acknowledgment bitmap. Bits in the acknowledgment bitmap that are not part of the target set are marked as UNEXPECTED_ACK. The complete frame is only allowed to be marked after all trigger fragments are closed. Late fragments are only appended with the new frame version without overwriting the published version.
[0029] Furthermore, for an n-bit cumulative cyclic counter, when the counter semantic conversion unit remains unchanged during the local acquisition period and the hardware wrap-around count and the original value are latched on the same boundary, the increment is calculated by multiplying the wrap-around count difference by 2^n and then adding the current value minus the previous value; when no wrap-around count is provided, the calculation is performed only once if the maximum increment rate given in the semantic table multiplied by the sampling interval is less than 2^n, otherwise AMBIGUOUS_WRAP is output and no increment or rate is output; when the local acquisition period or device startup period changes, the previous value is discarded and a new baseline is established; when reading the zero counter, only the non-destructive image or the monotonic image accumulated after reading is used, and UNSUPPORTED is output when the increment cannot be guaranteed to be complete; the lineage deduplication unit retains the main source, the check source, and the difference, and when the error boundary is exceeded, the two sources are reported as conflict pairs simultaneously.
[0030] The triggering transaction key is unique across resets, and the endpoints reuse the cache for repeated fragments without resampling; the atomic counter group forms samples under the same latch pulse, which can reduce the false snapshots spliced across clock domains.
[0031] Reading zeros, wraparounds, and unsupported states will not be interpreted as valid increments; within the cutoff boundary, complete or partial frames are published by bitmap, late data is retained for subsequent versions, and the scheduling side can identify gaps. Attached Figure Description
[0032] Figure 1 A flowchart for collecting and reporting the status of CPU and GPU computing resources across multiple hosts.
[0033] Figure 2 This is a functional structure diagram of a hardware status perception, acquisition, and reporting system.
[0034] Figure labeling: Snapshot trigger endpoint 110, CPU atom group collector 210, GPU atom group collector 220, interconnect count collector 230, asynchronous fragment buffer 310, time and count semantic normalizer 410, lineage deduplication and acknowledgment bitmap aggregator 510, status frame publishing and late arrival register 610. Detailed Implementation
[0035] The following describes the trigger word, asynchronous FIFO, atomic counter group, time interval, and sink slot. The acquisition end is responsible for raw latching and counting semantics, while the sink end only combines frames according to the transaction key, fragment key, and quality status.
[0036] Cluster triggers can be configured on the CXL Switch management port, DPU, or independently managed FPGA. A hardware control path consists of trigger endpoints, reserved management virtual channels in PCIe or CXL.io, vendor-defined message routes, and acquisition endpoints for each host and interconnected device. The hardware control path reserves independent credits for trigger messages; data channel congestion must not consume these reserved credits.
[0037] Bits 255 to 224 of the 256-bit trigger word represent the 32-bit trigger start-up period, bits 223 to 192 represent the 32-bit snapshot period, bits 191 to 160 represent the 32-bit target acquisition bitmap, bits 159 to 112 represent the 48-bit trigger transmit count, bits 111 to 80 represent the 32-bit maximum response boundary, bits 79 to 64 represent the 16-bit trigger sequence number, bits 63 to 56 represent the 8-bit source clock domain identifier, bits 55 to 48 represent the 8-bit fragmentation control field, bits 47 to 32 represent the 16-bit payload length, and bits 31 to 0 represent the 32-bit cyclic redundancy check value. The maximum response boundary represents the relative duration measured on the same reference time base as the trigger transmit count, counted modulo-based, and compared only within a window less than half the range of the 48-bit count.
[0038] Bits 7 to 4 of the fragment control field store the total number of triggered fragments minus one, and bits 3 to 0 store the trigger fragment sequence number. Bit b in the target bitmap corresponds to the global collector number 32 × fragment_index + b. The trigger start time, snapshot time, and trigger sequence number constitute the trigger transaction key. Adding the trigger fragment sequence number constitutes the trigger fragment key. One trigger transaction key covers one to sixteen fragments and up to 512 collectors. When there are more than 512 targets, a new trigger sequence number is used to establish another trigger transaction. The two transactions are not merged into a complete frame. When the hardware path has no multicast capability, the same trigger fragment key and content digest are used to fan out one by one. The aggregation end must receive all fragments indicated by fragment_count before it is considered closed.
[0039] The acquisition endpoint first checks the trigger word length, CRC, and trigger sequence number in the control path clock domain, and then writes the complete 256-bit trigger word as an asynchronous FIFO entry. The FIFO write pointer and read pointer each use binary form to locate the memory in their respective clock domains. Before cross-domain transfer, they are converted to Gray code and synchronized to the opposite clock domain via two-stage synchronization registers.
[0040] The local control states are IDLE, VALIDATE, ARM, LATCH, PACK, and ACK. VALIDATE checks the snapshot period and trigger sequence number; ARM toggles the request bit to each atomic group clock domain; LATCH waits for the target clock domain to latch the original count value at the latchable boundary and toggles the acknowledgment bit; PACK assembles the latched value, receive count, latch count, local acquisition period, and quality bit into a fragment; ACK returns the snapshot period and fragment sequence number.
[0041] CPU atom groups contain only counters that can be frozen or latched by the same PMU or snapshot control bits, such as reference cycles and non-pause cycles. GPU atom groups contain only busy cycles, memory read bytes, and memory write bytes submitted by the same device snapshot gate. Interconnect atom groups contain only transmit flits, receive flits, retries, and credit occupancy sampled by the same port shadow pulse. Counters with different latch boundaries must not be forcibly merged into the same atom group to form a complete frame.
[0042] Counters with read-to-zero side effects must not be read directly from the reporting path. Devices can accumulate events simultaneously to a non-zeroing parallel mirror using a non-destructive hardware shadow interface, or accumulate read values to a monotonically expanding mirror after controlled read-to-zeroing; the mirror value, read transaction number, and overflow bit are latched at the same snapshot boundary. Devices that cannot prove the integrity of the increment during zeroing or do not provide a freeze interface use NON_ATOMIC or UNSUPPORTED fragmentation, do not establish a differential baseline, and do not set the corresponding complete frame acknowledgment bit.
[0043] Each hardware control path stores the minimum propagation bound dmin, maximum propagation bound dmax, parsing jitter bound Jrx, atomic group latch jitter bound Jlatch, and clock conversion error bound εclock in its configuration register. For Tsend obtained from trigger transmit count conversion, the segmented sampling interval is calculated as [Tsend + dmin - εclock, Tsend + dmax + Jrx + Jlatch + εclock]. When the sampling intervals of two segments do not intersect, the window ratio is not calculated based on either.
[0044] The counter semantic table is indexed by device type, device version, and counter identifier. Entries include unit, bit width, cumulative or instantaneous type, read side effects, reset condition, maximum increment rate, whether hardware wraparound counting is provided, differential time unit, and conversion rule version. When wraparound counting is provided, multiple wraparound increments are calculated using the wraparound count difference and the n-bit original value. When not provided, at most one wraparound is allowed only if the product of the maximum increment rate and the adjacent sampling interval is strictly less than 2^n; otherwise, AMBIGUOUS_WRAP is set, and no increment or rate is output. A new baseline is established when the local acquisition period or device startup period changes.
[0045] Trigger sequence numbers are compared using a window of less than 16 bits. If trigger sequence numbers are discontinuous, there is a CRC error, a FIFO overflow, or a local reset occurs between reception and latching, the acquisition endpoint sets the trigger fragmentation key to MISSING_TRIGGER or RESET_CROSSED. Cluster triggers only retransmit within the original maximum response boundary using the same trigger fragmentation key and digest; the endpoint's idempotent directory stores the RECEIVED, ARMED, LATCHED, PACKED, and ACKED states, and duplicate messages do not re-flip the latch request. Different digests for the same trigger fragmentation key are set to TRIGGER_CONFLICT. After the boundary is reached, a gap is generated according to target_bitmap∧¬ack_bitmap, and ack_bitmap∧¬target_bitmap is reported as a protocol error.
[0046] A state fragment must include at least the resource stability identifier, trigger start time, snapshot time, trigger sequence number, trigger fragment sequence number and total number, local device start time, local acquisition time, atomic group identifier, receive count, latch count, original value, hardware wraparound count, counter bit width, semantic version, sampling time interval, quality bits, and fragment CRC. The trigger transaction key only indicates that each trigger fragment belongs to the same trigger transaction; it does not indicate that the local clock value or sampling time is exactly the same.
[0047] The conditions for publishing a complete status frame are: all trigger fragments indicated by fragment_count have arrived; the acknowledgment bitmap of each fragment is a subset of and equal to the target bitmap; all fragments included in the complete frame have the same trigger start time, snapshot time, and trigger sequence number; the valid bits of each target atom group are set; and there are no CRC errors, RESET_CROSSED, NON_ATOMIC, UNSUPPORTED, AMBIGUOUS_WRAP, or UNEXPECTED_ACK quality bits. If any of these conditions are not met but the response boundary has been reached, a partial status frame is published, indicating a gap.
[0048] Lineage identifiers are generated from physical counter identifiers or endpoint pairs at both ends of the link. Lineage configuration specifies a primary source and a check source for each physical quantity. After deduplication, the primary source value, the original check source value, and the difference are retained. When the difference exceeds the error limit in the semantic table, both values are retained as conflicting pairs, without averaging or arbitrarily selecting one.
[0049] Valid fragments arriving after the response boundary are appended and registered with the same triggering transaction key, corresponding trigger fragment sequence number, and new frame version number. The frame digest is calculated from the previously published frame digest, triggering transaction key, frame version number, acknowledgment bitmap, and change digest. Late fragments do not silently overwrite parts of already published frames. When a controlled device is reset, new trigger entries are first closed, fragments from the old local acquisition period are emptied or invalidated, and then the local device startup period and acquisition period reserved across resets are incremented. After a sudden reset, the reserved registers are restored and incremented. If they cannot be restored, the configuration controller allocates unused device startup periods. No increments are calculated before the new period establishes a baseline.
[0050] Figure 1 The snapshot triggers a fan-out to the CPU, GPU, and interconnect endpoints, which, after asynchronous caching, atomic latching, time and count normalization, lineage deduplication, and acknowledgment bitmap convergence, forms a complete or partial frame. Figure 2 It shows the connections between the trigger endpoint, multiple collectors, asynchronous boundaries, normalizers, aggregators, and version registers.
[0051] See Figure 1 When the same triggering transaction key arrives simultaneously at the CPU, GPU, and interconnect endpoints, each endpoint forms an atomic fragment in its local clock domain. After being asynchronously buffered, the fragments are used to unify computation time and counting semantics, and the confirmation bitmap determines whether to release a complete or partial version at the response boundary. Late fragments only form subsequent versions.
[0052] This embodiment uses cross-host hardware state fragmentation and frame version records as the common record carrier for the processing chain. Snapshot period, trigger sequence number, and fragment sequence number are used to lock the input attribution; trigger sending interval, endpoint receiving interval, atomic latch interval, and convergence response boundary define the applicable scope of each result; records are appended, and the active version is only updated after the content, evidence citation, and parent version summary have all passed verification. Version conflicts, late records, or unknown fields are registered separately and are not concatenated with data from other periods.
[0053] The process then proceeds to step S101, where the system triggers the broadcast snapshot period. The cluster trigger generates a trigger word containing the startup period, snapshot period, target bitmap, response boundary, trigger sequence number, and checksum, which is then sent via a reserved management virtual channel. The output is only available for the next step if the "snapshot period monotonically increasing" condition is true in the current period; otherwise, the active version remains unchanged.
[0054] In step S102, the system completes the verification trigger and cross-clock buffer. The endpoint verification trigger word and fragment sequence number are then written to the asynchronous FIFO; retransmissions with the same fragment key and digest reuse the original result, while those with the same key but different digests are marked as conflicting. The judgment of "reading the zero counter and writing it to the mirror register first" is limited to the frozen snapshot, and unknown operands are not padded with default values.
[0055] Step S103 involves latching atomic state fragments. Counters with common freeze bits, snapshot gates, or mirror submission boundaries are grouped into atomic groups, and the original value, local count, local period, and quality bit are acquired using the same pulse. Before publishing the results of this stage, it is also necessary to verify "incremental baseline failure after reset"; if it cannot be proven from the current snapshot, the result remains in a pending verification state and points to the most recent stable version.
[0056] After proceeding to step S104, the system completes the calculation of time and freshness intervals. Sampling intervals are generated based on trigger transmission counts, propagation boundaries, latch jitter, and clock conversion errors; fragments with excessively wide intervals are marked as asynchronous. In this stage, "unknown device versions only report raw values" is used as a substantive threshold; if the threshold is not met, only conflict items, scope of impact, and evidence gaps are registered.
[0057] Step S105 is used for normalized heterogeneous counting semantics. Occupancy, rate, or increment is calculated according to the versioned semantic table; the zeroing counter is read using mirroring, and the cumulative counter is incremented only when the number of wraparounds can be determined. The output is available for the next step to read only if "the gap is released without waiting for missing fragments after the response boundary is reached" is true in the current period; otherwise, the active version remains unchanged.
[0058] After completing the previous stage, step S106 performs deduplication of lineage and causal compression. Deduplication is performed based on the acquisition source and fragmentation key, while temperature or error mutations, resets, and queue state transitions are forcibly retained, and conflict measurements at both ends of the link are retained simultaneously.
[0059] Then proceed to step S107, where the system completes the aggregation confirmation bitmap. The target endpoint and atomic group confirmation bits are aggregated using the triggering transaction key and fragment sequence number, and closed and missing items are determined when the response boundary is reached.
[0060] In step S108, the system publishes a status frame and registers late fragments. A complete frame is published if the transaction is closed and of good quality; otherwise, a partial frame distinguishing between zero values and missing values is published. Late fragments are registered as new versions of the same transaction key.
[0061] The above steps form a dependency chain based on the parent version digest and the input digest. When underlying evidence is revoked, the version becomes invalid, or the input digest changes, only the results that hit the dependency index are recalculated; confirmed records unrelated to invalid inputs remain unchanged. If any release threshold is not met, a complete or partial hardware status frame is not submitted for release; instead, the reason for failure, affected objects, re-evidence entry point, and safe recovery point are preserved. The final record also provides the applicable period, evidence path, and unresolved boundaries.
[0062] Furthermore, the snapshot trigger message includes the monotonic period, the target collector set, and the maximum response boundary, with each collector recording the trigger reception and latching local counts.
[0063] Furthermore, the counter with read-to-zero side effect is latched through a mirror register, incrementing the local acquisition period and marking the baseline failure when the device is reset.
[0064] Furthermore, the sampling time interval is determined based on the upper and lower bounds of the control path propagation and the maximum jitter received by the collector from the latch.
[0065] Furthermore, the heterogeneous counter is normalized based on the unit, bit width, read side effects, and reset conditions in the device version semantic table, and only the original value is reported for unknown versions.
[0066] Furthermore, the lineage deduplication process retains the primary source and verification differences for repeated measurements of the same physical counter or link endpoint, and retains conflict pairs when the differences exceed the limits.
[0067] Furthermore, when a fragment within the response boundary is incomplete, a partial status frame with an acknowledgment bitmap and gaps is published, and the late fragment forms a new registration version for the same snapshot period.
[0068] The method organizes step inputs and state changes around hardware state fragmentation and avoids mixing of old and new records through processing periods. Specific processing includes: a cluster trigger broadcasts a monotonic snapshot period; each hardware collector latches resource states, local times, and quality flags according to atomic counter groups, and forms sampling time intervals based on upper and lower bounds of the control path; then, wrapback, reset, and unit conversion are processed according to a versioned semantic table; and complete or partial state frames containing confirmation bitmaps and gaps are generated through lineage deduplication and causal compression. The state "Confirmed" corresponds to the existence of direct technical observations or mutually independent indirect observations with consistent input summaries; the state "Unknown" indicates that the evidence gap has not been eliminated, but is not equivalent to the condition not being met.
[0069] The entry point obtains the monotonic snapshot period, CPU and GPU atomic counter sets, interconnect port and path counts, as well as local latch time and quality flags. Interface requests carry object stability identifiers, expected versions, calling permissions, and idempotent keys, while responses carry actual versions, collection time intervals, quality flags, and content summaries. Data from caches, mirrors, or inferences are stored from their direct sources; unobtainable fields use explicit unknown values, and missing items are stored with explicit unknown markers, without using default zero values or old values to fill in the gaps.
[0070] The calculation parameters, thresholds, and weights are fixed simultaneously according to the hardware status and segmentation version. The threshold can be determined by the allowable range of the equipment specifications, the quantile of the on-site calibration sample, the upper limit of the historical normal window fluctuation, and the task latency budget or risk budget; the parameters are not changed within the same processing period. When the sample is insufficient or the denominator is zero, the calculation result is marked as uncalculated, and this item is not replaced by a fixed value with no source.
[0071] Each entry in the status catalog stores at least the object or stream identifier, current period, candidate period, input summary, processing status, start sequence number, acknowledgment boundary, error flag, and an index corresponding to the hardware status fragment. The catalog uses a double buffer of the current table and candidate tables; the calculation of candidate periods does not modify the current table; after all commit conditions are met, the visible table is switched through a single-cycle selection bit, and the old table is recycled after the relevant in-transit transactions are cleared.
[0072] For instances where the data collector does not respond, counter wrap-around and reset are difficult to distinguish, and there are repeated endpoint measurement conflicts, the abnormal unit records the first trigger period, input period, affected entries, and last acknowledgment boundary. Transactions that can be selectively replayed retain the original transaction identifier and add a replay bit; transactions whose side effects cannot be confirmed must not be processed as ordinary unsent transactions.
[0073] After generating candidates, results that violate hard constraints are first excluded, and then the remaining results are sorted: The first layer establishes a feasible set of hard constraints based on the snapshot period being monotonically increasing, the read-to-zero counter being written to the mirror register first, and the incremental baseline failing after reset; the second layer sorts only within the feasible set based on risk, latency, resource consumption, or evidence completeness. If there are no executable candidates, conflicting constraints are listed in the results, and the safety boundary does not change due to sorting requirements.
[0074] Before committing, the response boundary and confirmation bitmap, as well as the current hardware status fragment header version, are reread and compared with the input digest saved during the preparation phase. Committing is allowed if the digests match; if the digest changes but does not affect the current dependency branch, confirmed output is reused; if a digest change hits a dependency index, only the affected branch is recalculated, and unaffected branches are not rolled back entirely.
[0075] The final late-registered version is published through the results interface, which simultaneously returns the status, applicable period, input summary, evidence path, and unresolved boundaries. The caller can only perform subsequent irreversible actions when the status is confirmed and the applicable period is still valid; candidate, unknown, and contradictory results are only used for diagnosis, supplementary evidence, or manual review.
[0076] The global resource status frame is a structured record that runs through the processing chain of this invention, and includes at least the snapshot period, resource stability identifier, indicator semantics, original value, normalized value, counter bit width, sampling time interval, source, lineage identifier, freshness, quality status, change summary, and fragment confirmation bitmap. The same snapshot period indicates that all collectors respond to the same trigger event, and the local clock values are not required to be identical; the sampling time interval is determined by the upper and lower bounds of the latch and the clock error.
[0077] Hardware status awareness includes capacity, occupancy, queues, frequency, power consumption, temperature, errors, and link credit, without directly inferring business causes.
[0078] The lineage identifier describes which physical counter or link endpoint generates the metric, and when two sources measure the same fact, the primary source and the check difference are retained.
[0079] Each host has a CPU collector and a GPU collector, and the Switch or DPU has an interconnect collector. Cluster triggers publish snapshot periods. The collectors support hardware latches, local clock markers, sequence numbers, and buffers; the aggregator receives state fragments.
[0080] In step S101, the cluster trigger generates a trigger word containing the startup period, snapshot period, target bitmap, response boundary, trigger sequence number and check value, and sends it through the reserved management virtual channel.
[0081] In step S102, the endpoint verifies the trigger word and fragment number and then writes them into the asynchronous FIFO; retransmissions with the same fragment key and digest reuse the original result, while retransmissions with the same key but different digests are marked as conflicting.
[0082] In step S103, counters with common freeze bits, snapshot gates, or mirror submission boundaries are grouped into an atom group, and the original value, local count, local period, and quality bit are acquired with the same pulse.
[0083] In step S104, a sampling interval is generated based on the trigger transmission count, propagation boundary, latch jitter, and clock conversion error; segments with excessively wide intervals are marked as asynchronous.
[0084] In step S105, occupancy, rate, or increment is calculated according to the versioned semantic table; the zeroing counter is read using a mirror image, and the cumulative counter is incremented only when the number of wraparounds can be determined.
[0085] In step S106, duplicates are removed according to the acquisition source and fragmentation key, and temperature or error mutations, resets and queue state transitions are forcibly retained. Conflict measurements at both ends of the link are retained simultaneously.
[0086] In step S107, the target endpoint and atomic group confirmation bit are aggregated using the trigger transaction key and fragment sequence number, and closed items and missing items are determined when the response boundary is reached.
[0087] In step S108, a complete frame is published if the closure is valid and the quality is good; otherwise, a partial frame that can distinguish between zero values and missing values is published. Late fragments are registered as new versions of the same transaction key.
[0088] Tsample=[Tsend+dmin, Tsend+dmax+Jlocal]
[0089] In the formula, Tsend is the reference time for trigger transmission, dmin and dmax are the control path propagation boundaries, Jlocal is the maximum jitter of the collector from receiving the trigger to the latch counter group; the interval is used to determine whether cross-device states can be combined.
[0090] The counter semantic table is indexed by device type, firmware version, and counter identifier, and includes units, bit width, read side effects, reset conditions, and normalization formulas. Counters of unknown versions only report the raw value.
[0091] The status frame digest chain is calculated from the previous published frame digest, the current period, the fragment bitmap, and the change digest. It can detect lost frames or out-of-order frames, but it does not replace the integrity verification of each fragment.
[0092] Example 2 uses two hosts, four GPUs, and the interconnecting switch connecting them as an example. The counters of the hosts, GPUs, and switch are located in different clock domains, and some counters are cleared after being read, making it impossible to obtain the same observation window by polling them sequentially through the management software.
[0093] The snapshot trigger message includes the monotonic snapshot period, the target collector bitmap, the trigger transmission count, the maximum response boundary, and an integrity check. Each collector receives the message, records its local receive count, and simultaneously samples a group of counter atoms at the next allowed latch boundary.
[0094] The status fragment includes a resource stability flag, snapshot period, local acquisition period, latch count, original value, count bit width, unit, read side effects, reset flag, quality bits, and fragment sequence number. Counters with read-to-clear side effects are first latched into the image register, then uploaded for image reading, without directly changing the counter under test.
[0095] The sampling time interval is calculated from the control path propagation limits. If the triggering time interval is Ts, the maximum jitter received by the collector and latched is J, and the return path limit is R, then the aggregation end uses these boundaries to determine the upper and lower limits of the actual sampling of the slices; the synchronization ratio must not be calculated for slices with non-overlapping intervals.
[0096] Counter normalization first reads the semantic table corresponding to the device version. For an n-bit cyclic counter, if the current value is less than the previous value and the local acquisition period has not changed, it is calculated as 2^n wraparound; if the local reset period changes, a new baseline is established, and the smaller value after reset is not considered as wraparound. Unknown versions only publish the original value and the unknown flag.
[0097] Two endpoints on the same physical link may report transmit and receive volumes separately, or they may be repeatedly collected by multiple software interfaces. The lineage table uses physical counters or endpoint pairs as keys to determine the primary source and retains the verification difference of the other source; when the difference exceeds the protocol's allowed range, conflict pairs are published, and averaging is not mandatory.
[0098] Causal compression only removes intermediate stable frames that can be reconstructed from the preceding and following states, while retaining state transitions, resets, error bit changes, and quality degradation. The compressed digest still references the original fragment sequence number, allowing upper-layer scheduling to retrieve the uncompressed state when needed.
[0099] For example, during snapshot period E, the target bitmap contains eight collectors, seven of which return within the response boundary. The system issues a partial status frame, explicitly stating that a GPU slice and its time interval are missing, and does not use the previous GPU utilization. After the late slice arrives, it forms registered version 2 of E, while the original version 1 continues to be traceable.
[0100] Full status frames are suitable for scheduling that requires comparison of resources within the same window; partial status frames can only be used in monitoring scenarios where gaps are explicitly allowed. When a caller requests a full frame but the bitmap is not closed, the publishing module returns a waiting or unavailable status and does not rename the partial frame to a full frame.
[0101] The hardware interface employs an active-ready handshake, maintaining the fragment data, period, and sequence number unchanged during backpressure. Cross-clock domain transfers utilize an asynchronous FIFO and add parity or CRC checks to the fragments; a reset first closes the new snapshot entry, then drains or invalidates fragments from the old local acquisition period.
[0102] Data records are based on hardware status fragments. Each record contains at least a resource identifier, original count, bit width, reset flag, quality bits, acknowledgment bitmap, and gap list. Business identity and database auto-incrementing primary key are stored separately. Business identity is determined by the snapshot period, local acquisition period, and fragment sequence number, while the auto-incrementing primary key is only used for physical location. Updates use append-only versions; the previous version records its termination reason and remains readable, thus enabling differentiation between object changes, repeated acquisitions, and reprocessing of the same object.
[0103] Hardware state fragmentation uses a defined set of states, including broadcast triggered, locally latched, fragment valid, semantically unknown, merging in progress, complete frame, partial frame, and late retransmission. Each transition is triggered by a specific event, and the transition record contains the states before and after the transition, the trigger field, and the rejection reason. The recovery procedure only replays confirmed transitions and does not infer intermediate states from the final field values; this allows for different handling of execution interruptions, late messages, and partial successes.
[0104] For the publication of complete or partial hardware status frames, the system first generates a preparation record containing the expected write set and compensation entry, and then calls the execution interface. Commit is only confirmed when the object identities of the execution receipt, independent observation, and preparation record match. If the interface times out and the external state is unclear, it is marked as an unclear commit, and the external observation is read first; actions with side effects are not immediately repeated.
[0105] Concurrent processing is bounded by an idempotent index, which is a normalized encoding of the snapshot period, local acquisition period, and fragment sequence number, along with a hash of the action number. When the same index is reached again, if the input digest is the same, the already confirmed output reference is returned; if the digests are different, an idempotent conflict is registered and overwriting is rejected. During multi-processor contention, a unique writer is determined through conditional write or comparison exchange, and the processor that does not obtain the write right becomes the result reader.
[0106] All time-related fields are registered in intervals, which cover the time intervals for trigger transmission, collector reception, atomic latching, and aggregation reception. Two intervals are only allowed to be used in the same calculation if they still intersect after considering clock errors and the source period has not been reset. When the interval uncertainty exceeds the rule's allowable value, the system expands the set of records to be supplemented instead of shortening the interval; late records are written to their original period without modifying the currently published conclusion.
[0107] System configuration items include response boundaries, clock propagation limits, counter semantic version, compression window, and retransmission deadline. Parameter values are derived from device specifications, offline calibration, or prior stable operating samples. At the start of processing, the parameter value, unit, source summary, and applicable objects are written to a read-only parameter snapshot. Specific values can be changed during implementation, but parameter items corresponding to security commits, version consistency, or integrity checks must not be deleted.
[0108] The recovery process is executed according to the following technical boundaries: the baseline across reset periods is invalidated and a new snapshot is triggered, without using historical fragments to fill the current gap. Each rollback request has an independent action number, and upon successful execution, a recovery observation and a post-recovery summary are appended; if a step fails to recover, subsequent compensation dependent on that step is discontinued, on-site evidence is preserved, and the object is placed in an isolated state to prevent null values from masquerading as recovery completion.
[0109] The processing can be deployed across cluster triggers, CPU / GPU / interconnect collectors, mirror registers, aggregators, and frame publishers. Control messages are structured messages with length and version numbers; the receiver checks each required field, enumeration range, and checksum. Older versions of the receiver can ignore unknown optional fields, but must reject processing and return its supported mode version when encountering unknown required fields.
[0110] Under conditions of multiple host clock skews, counter wraparound, GPU reset, read clearing, and interconnect fragmentation delays, the device of this invention was compared with software polling, synchronous triggering only, and the device of this invention. The sampling time interval width, error increment count, repeated endpoint weighting, complete frame confirmation accuracy, partial frame gap representation, and number of bytes reported per unit time were examined.
[0111] After the process is interrupted and restarted, the recovery process first reads the most recent complete checkpoint, then scans the subsequent preparation and confirmation records. Only hardware state fragments that are fully verified and confirmed are entered into the active index; objects with only preparation records are determined to be continued, compensated, or isolated based on external observations. The scan results are written to the new recovery period without altering the sequence numbers before the interruption, thus preserving the causal boundaries required for incident analysis.
[0112] When resource identifiers, raw counts, bit widths, reset flags, quality bits, acknowledgment bitmaps, and gap lists are provided by different interfaces, the adaptation layer simultaneously registers and saves the original and normalized values, units, source versions, and conversion rules. Fields that fail to normalize remain unknown with a reason code and are not converted to zero. If multiple sources provide conflicting results for the same field, a hardware state fragment candidate set is formed according to the pre-configured evidence level, and the step using that field determines whether to supplement the data or stop the submission.
[0113] When hardware state fragmentation candidate results have the same priority, the processor sequentially checks the hard constraint satisfaction, evidence completeness, recovery cost, and stability flag. The last item is only used to obtain a definite order and does not change the technical feasibility. Each component used for sorting retains its original value, so that the same selection is obtained when replaying under the same input, and it can explain which constraint among response boundaries, clock propagation limits, counter semantic version, compression window, and retransmission period is excluded from the candidate.
[0114] When writing records to persistent storage, the resource identifier, raw count, bit width, reset flag, quality bits, acknowledgment bitmap, and gap list are first arranged by field number, with units specified for all values. Enumerated values are written to the mode version, and then the content digest is calculated. Strings only undergo protocol-defined whitespace and encoding normalization; resource names are not fuzzy merged. In this way, fragments with the same hardware state can obtain the same digest on different processing nodes, and two objects with only the same display name will not be mistaken for the same object.
[0115] When generating a record version, let the normalized business key be K, the processing period be E, the input digest be D, and the parameter snapshot digest be P. Then, the version identifier can be H(K∥E∥D∥P), where H is the collision-resistant hash function selected by the system, and the connector includes the field length. K corresponds to the snapshot period, the local acquisition period, and the fragment number. In addition to comparing the version identifier, the reading end also compares E and the mode version item by item to prevent accidental digest reuse under different encoding rules.
[0116] Input quality is represented using multiple components, not compressed into a single score; instead, it includes at least four components: source authenticity, temporal integrity, field integrity, and cross-consistency. Steps using a specific field declare the required components and minimum levels; low-quality flags for unused fields do not block irrelevant branches. When performing partial updates to hardware state slices, only outputs dependent on the changed components are recalculated; other confirmed outputs retain the original evidence references without copying the original content.
[0117] When an input field is incomplete, the system first determines whether the gap is relevant based on the read set of subsequent actions. If the missing field is not in the read set, processing can continue, but the gap flag is retained in the output. If the field is involved in the release decision for a complete or partial hardware status frame, the branch is stopped and a supplementary acquisition request is generated. The supplementary acquisition result must include the original snapshot period, local acquisition period, fragment sequence number, and new source summary. After confirmation, only branches waiting for that field are awakened to avoid unconditionally rerunning the entire process.
[0118] A transaction directory is established around hardware state fragments, with separate numbering for preparation, external calls, observation confirmations, and compensation records. A preparation entry must at least store the calling interface, target object, expected write set, pre-execution summary, requested idempotent key, and timeout. Confirmation entries store the receipt summary and independent observations. When a receipt is lost but observations show the target state has changed, the directory confirms it as executed and continues the confirmation phase, rather than calling the interface again. If the observation is also uncertain, the commit remains unclear, and the recovery procedure handles it, without directly resending the complete or partial hardware state frame.
[0119] The concurrent queue is sharded based on business objects. Only one writer is allowed at any given time for the same snapshot period, local collection period, and shard sequence number. Different objects can be written concurrently. When the queue reaches its capacity limit, the entry point prioritizes retaining confirmation messages, rollback messages, and evidence re-collection results. Ordinary duplicate samples can be merged into a single record with a count. Merging only applies to samples that have not yet been consumed and have the same pattern version, and cannot cross the time boundaries of the trigger sending, collector receiving, atomic latching, and aggregation receiving time intervals.
[0120] Injection conditions used to verify recovery capabilities include message duplication, message out-of-order delivery, processor restart after preparation, execution interface timeout, mode version switching, and one source distortion. An input snapshot is saved before each injection, and after injection, it is checked for erroneous commits, unfounded state transitions, or unassociated orphan records. For baselines that have been invalidated across reset periods, a new snapshot is triggered. Without using historical fragments to fill the current gap, the process is interrupted again during compensation to verify that the recovery procedure can continue from the confirmation point of the compensation action itself, without re-executing already completed reverse actions.
[0121] Rule boundaries are verified using three types of objects: a baseline object with complete evidence, an object located exactly at the rule boundary, and an object missing only one key field. Boundary values are taken as the lower and upper bounds of the allowed values and their adjacent representable values; overflow, wraparound, and reset are also tested for count or fixed-point fields. The results are not only compared for final success or failure, but also for the hardware state fragmentation status, rejection reasons, and evidence references to ensure they match expectations item by item.
[0122] Interfaces involving external action permissions use the least privilege credential. The credential itself is not written to the hardware state fragment; only an irreversible credential reference summary, permission scope, and audit number are recorded. When the executing entity is not authorized to publish a complete or partial hardware state frame, the process terminates during the preparation phase, preventing permission errors from being misjudged as target object failures. Audit logs and business logs are associated with the same object key and processing period, but access is controlled separately. When exporting implementation data, a stable anonymous identifier replaces the real asset identifier.
[0123] Once the number of hardware state fragment versions reaches the retention limit, consecutive versions that have been closed and exceeded the audit period can be compressed into checkpoints. Checkpoints retain the beginning and end states, the summary chain for each state transition, parameter versions, and the location of external evidence; the original large fields are transferred to content-addressable storage. Records still in states of unclear submission, pending verification, or quarantine must not be compressed; versions with snapshot dates, local acquisition dates, and fragment sequence number references must not be deleted until the last reference expires.
[0124] The complete processing chain can be reproduced sequentially as follows: The entry components in the cluster trigger, CPU / GPU / interconnect collector, mirror register, aggregator, and frame publisher receive objects and establish input snapshots indexed by snapshot period, local acquisition period, and shard sequence number; the rule executor loads the read-only parameter snapshot and generates candidate results; the state controller selects confirmation, re-acquisition, or isolation based on the current state and submission threshold; the confirmation result, along with evidence citations, is published to the next step. If a version change occurs midway, the current candidate is retained as the replaced record, and the new version continues from the first affected step without overwriting the old conclusion.
[0125] The method is not limited to a specific message bus, relational database, or processor brand. As long as the alternative implementation can maintain a stable association between the snapshot period, local acquisition period, and fragment sequence number; the period boundaries of the time intervals for triggering transmission, collector reception, atomic latching, and aggregation reception; the atomic visibility of state transitions; and the ability to invalidate baselines across reset periods and re-trigger snapshots, without requiring historical fragments to fill the current gap in the recovery order, it can be implemented using shared memory, persistent queues, on-chip directories, or distributed logs. If the alternative implementation eliminates any of the above boundaries, equivalent consistency checks and evidence preservation mechanisms must be added; equivalence cannot be considered solely based on identical interface names.
[0126] Example 3 illustrates the input, state changes, and anomaly handling in a multi-host GPU cluster that requires the same observation window for utilization, memory bandwidth, and link congestion status, where one GPU is reset and one interconnect endpoint is late, and it is necessary to avoid using the failed baseline and promptly publish some frames.
[0127] Take, for example, two hosts, each containing a CPU and a GPU, accessing a pooled memory resource domain through the same CXL Switch.
[0128] Step 1: Trigger broadcast snapshot period e, latch state of four host collectors and Switch collector.
[0129] Step 2: A GPU collector is reset before latching, and the fragments are marked with the new local period and the baseline is invalidated.
[0130] Step 3: The aggregator calculates the sampling interval based on the propagation boundary, finds that the GPU slice interval is too wide, and marks it as asynchronous.
[0131] Step 4: CPU cumulative cycle, GPU busy cycle, and Switch credit are normalized according to the semantic table. Resetting the GPU does not calculate negative increments.
[0132] Step 5: The Switch link credit and the derived bandwidth of the two host proxies share the same lineage, retaining the main source of the Switch and recording the endpoint difference.
[0133] Step 6: When the response boundary is reached, publish a partial frame with a GPU gap, and append a new version of the same period after the late valid fragment arrives.
[0134] The following describes the boundary states and the corresponding recovery process.
[0135] (1) When the collector does not respond, confirm that the bitmap retains a gap and do not fill it with zero values.
[0136] (2) When the device is reset or the semantic version of the counter is unknown, only the original value and the baseline failure status are published.
[0137] (3) When the measurement difference between the two ends of the link exceeds the error limit, the duplicates are not removed and are reported as conflict pairs at the same time.
[0138] (4) When controlling the path partition, each partition uses a local period with a domain identifier, so that the local period is not mistaken for the same snapshot of the whole domain after recovery.
[0139] (1) Triggers can be Switch broadcast, DPU doorbell, PCIe message or synchronous GPIO.
[0140] (2) Status fragmentation can be reported via shared memory, DMA ring or management network.
[0141] (3) Compression can be achieved by state transition coding, interval summaries or incremental coding with mandatory retention points.
[0142] A hardware system for collecting and reporting the status of CPU and GPU resources across multiple hosts, corresponding to the above method, can be implemented in a modular manner.
[0143] 110 is the snapshot trigger endpoint, used to generate and broadcast trigger words with transaction keys.
[0144] 210 is a CPU atom group collector used to latch CPU counters and mass status.
[0145] 220 is a GPU atom group collector used to latch GPU counters and reset periods.
[0146] The 230 is an interconnect counting collector used to latch port, path, and queue counts.
[0147] 310 is an asynchronous fragment buffer used for verification, deduplication, and cross-clock transfer of fragments.
[0148] 410 is a time and count semantic normalizer used to calculate sampling intervals and versioning metrics.
[0149] 510 is a lineage deduplication and confirmation bitmap convergent, used to compress fragments and determine closures and gaps.
[0150] 610 is a status frame publisher and late arrival register, used to publish complete or partial frames and save subsequent versions.
[0151] Triggers provide a common snapshot period, collectors latch hardware atom groups; time interval modules do not forge global single points, normalization and lineage modules retain original evidence, and aggregators use bitmaps to distinguish complete and partial states and maintain versions.
[0152] The hardware structure is divided into a trigger domain, local clock domains for each acquisition terminal, and a convergence and distribution domain. The asynchronous FIFO clearly isolates the clock boundaries.
[0153] The acquisition ring buffer is indexed by snapshot period and overwrite protection is set, and unacknowledged fragments can still be retransmitted after timeout.
[0154] The indicator semantic table and transformation rules have signed versions, and consumers can use them to restore the normalization process by referencing the state frame.
[0155] Injection issues include cross-host clock skew, trigger jitter, counter wraparound, GPU reset, fragment loss, late arrival, and reading conflicts at both ends of the link.
[0156] (1) Time interval coverage: Whether the actual latching time falls within the calculation interval;
[0157] (2) Correctness of rewinding and reset identification;
[0158] (3) Repeated measurement inhibition quantity: the number of repeated indicators of the same physical fact;
[0159] (4) Forced point retention rate: Whether errors, resets and state transitions have not been compressed and lost;
[0160] (5) Gap visibility: Whether missing and zero values are clearly distinguished in some frames.
[0161] The system implementation layer comprises cluster triggers, CPU / GPU / interconnect acquisition units, mirror registers, aggregators, and frame publishers working together. Control logic is segmented according to snapshot period, local acquisition period, and segment sequence number, indexing hardware state segments and writing the time intervals, parameter versions, and processing results of trigger transmission, acquisition unit reception, atomic latching, and aggregation reception into the same record chain. Software instructions are stored in non-transitory computer-readable storage media; processing requiring programmable logic can be executed by FPGAs, programmable switching devices, or embedded controllers. Data is exchanged between hardware and software through interfaces with version and integrity verification.
[0162] Figure 2 In the snapshot trigger endpoint 110, a fan-out connection is established between the CPU atom group collector 210, the GPU atom group collector 220, and the interconnect counter collector 230; the asynchronous fragment buffer 310 spans the endpoint clock domain; the time and count semantic normalizer 410 sends the results to the lineage deduplication and confirmation bitmap aggregator 510; and the status frame publisher and late arrival register 610 manages the frame version.
[0163] The snapshot period triggering module 110 is used to generate monotonic snapshot periods from cluster triggers and broadcast them to each host CPU, GPU and interconnect collector via hardware control path.
[0164] The atomic fragment latch module 210 is used by each collector to assign counters with the same hardware latch boundary or mirror register to the same atomic group and latch the resource status, local time and quality flag, forming a state fragment with resource stability flag.
[0165] The sampling time interval module 410 is used to calculate the sampling time interval and freshness of each state segment based on the time limits of trigger transmission, collector reception, latching and aggregation reception.
[0166] The counter normalization module 410 is used to calculate the occupancy, rate, or increment based on the counter semantics, bit width, reset period, and sampling interval, and retains the original value and conversion rule version.
[0167] The lineage deduplication and aggregation module 510 is used to identify duplicate measurements based on the physical counter and link endpoint lineage, retain the value of the primary source and record the verification difference, and then generate a compressed summary according to the state change and causal sequence.
[0168] The complete or partial frame publishing module 610 is used to aggregate the confirmation bitmaps of each fragment and publish the complete status frame within the response boundary.
[0169] The electronic device includes a processor, memory, a communication interface, and a bus. The memory stores the program implementing the above steps, as well as hardware state fragments. When the processor executes the program, it first reads the valid version according to the snapshot period, local acquisition period, and fragment sequence number, and then completes calculations, verification, and status submission based on response boundaries, clock propagation limits, counter semantic versions, compression windows, and retransmission deadlines. The communication interface is used to connect to the execution unit described in the embodiment; late or duplicate messages received by the interface are still processed according to the object period and idempotent key.
[0170] The number of collectors, trigger link width, or counter type can be expanded, but cross-reset transaction keys, endpoint idempotent latches, semantic quality states, and versioned frame publishing relationships with cutoff boundaries should be maintained.
Claims
1. A method for collecting and reporting the status of CPU and GPU resources across multiple hosts, characterized in that, include: Step S101: Generate a trigger word containing the startup period, snapshot period, target bitmap, response boundary, trigger sequence number, and check value; Step S102: Collect the endpoint verification trigger word and fragment sequence number and buffer them across clocks using an asynchronous FIFO. Perform a digest consistency check on retransmissions with the same key. Step S103: Latch the atomic state fragments of the same pulse at the common freeze bit, snapshot gate, or mirror submission boundary. Step S104: Form a sampling interval based on the transmission count, propagation boundary, latch jitter, and clock error. Step S105: Calculate the occupancy, rate, or increment according to versioned counting semantics, and read the zeroing counter using a non-destructive mirror. Step S106: Deduplicate by lineage and retain mutations, resets, and state transitions. Step S107: Converge the confirmation bitmap using the transaction key and fragment sequence number. Step S108: Publish a complete frame if the response boundary is closed; otherwise, publish a partial frame with gaps and register late fragments as new versions.
2. The segmented data acquisition and reporting method as described in claim 1, characterized in that, The 256-bit trigger word includes a 32-bit trigger start-up period, a 32-bit snapshot period, a 32-bit target collector bitmap, a 48-bit trigger transmission count, a 32-bit maximum response boundary, a 16-bit trigger sequence number, an 8-bit source clock domain identifier, an 8-bit fragmentation control field, a 16-bit payload length, and a 32-bit cyclic redundancy check value. The high 4 bits of the fragmentation control field represent the total number of trigger fragments minus one, and the low 4 bits represent the trigger fragment sequence number. Each bit in the bitmap corresponds to the target collector number obtained by multiplying the trigger fragment sequence number by 32 and adding the bit index. The same trigger transaction key can cover up to 16 trigger fragments. When multicast capability is not available, the same trigger fragment key is used to fan out one by one.
3. The segmented data acquisition and reporting method as described in claim 1, characterized in that, Each acquisition endpoint's asynchronous FIFO uses binary write pointers and read pointers to locate entries. After converting the binary pointers to Gray code, they are passed to the clock domain on the other side through two-level synchronization registers. The trigger word data is only written as a complete FIFO entry after the cyclic redundancy check passes. Local latch requests use request-acknowledge toggles to enter the clock domain of each counter from the acquisition endpoint clock domain.
4. The segmented data acquisition and reporting method as described in claim 1, characterized in that, The CPU collector will group the reference cycle and non-pause cycle counters latched by the same PMU freeze bit into CPU atomic groups; the GPU collector will group the GPU busy cycle, video memory read byte, and video memory write byte counters submitted by the same device snapshot gate into GPU atomic groups; the interconnect collector will group the transmit flit, receive flit, retry count, and credit occupancy counters sampled by the same port shadow latch pulse into interconnect atomic groups; counters that do not have the aforementioned freeze bit, snapshot gate, or shadow pulse will be reported as non-atomic fragments and will not be included in the complete status frame confirmation bitmap.
5. The segmented data acquisition and reporting method as described in claim 1, characterized in that, The sampling time interval is Tsample=[Tsend+dmin-εclock, Tsend+dmax+Jrx+Jlatch+εclock], where Tsend is the reference time for triggering the transmission count conversion, dmin and dmax are the minimum and maximum propagation bounds of the corresponding hardware control path, Jrx is the maximum jitter of the trigger word parsed at the acquisition endpoint, Jlatch is the maximum jitter of the atom group being armed to the latch, and εclock is the conversion error bound between the reference time and the local count.
6. The segmented data acquisition and reporting method as described in claim 1, characterized in that, When the acquisition endpoint detects a trigger sequence number gap, cyclic redundancy check failure, or asynchronous FIFO overflow, it sets the corresponding trigger fragment key to MISSING_TRIGGER and returns a negative acknowledgment containing the trigger fragment key before the maximum response boundary. The cluster trigger can retransmit using the same trigger fragment key and content digest within the original response boundary. The acquisition endpoint queries the received, armed, latched, packaged, or acknowledged status based on the trigger fragment key without repeated latching. Repeated triggering only returns the original acknowledgment or cached fragment. When different digests are obtained for the same trigger shard key, the value is set to TRIGGER_CONFLICT. If the state is still missing after the boundary is reached, a partial state frame is published, and the state of the previous trigger transaction key is not read to complete the state frame.
7. A hardware system for acquiring and reporting the status of CPU and GPU resources across multiple hosts, characterized in that, The system includes a cluster trigger with a reset-reserved start-time register, a hardware control path, acquisition endpoints and hardware acquisition units located on each host CPU, GPU, and interconnect device, an asynchronous FIFO, a trigger idempotent directory, an atom group controller, a non-destructive mirror register group, a hardware wraparound counter, a reset-reserved local acquisition time register, a fragment packer, a status frame aggregation buffer with the trigger transaction key as the first-level index and the trigger fragment sequence number as the second-level index, an acknowledgment bitmap, a counter semantic conversion unit, a lineage deduplication unit, and a frame publisher. The cluster trigger increments the start-time period each time it starts; if a cold start cannot restore the reserved value, the configuration controller writes the unused start-time period. The trigger idempotent directory prevents the same trigger fragment key from being repeatedly latched. The frame publisher marks a complete status frame only when all trigger fragments, the acknowledgment bitmap, and the atom group quality bits are satisfied.
8. The hardware system as described in claim 7, characterized in that, The read and write pointers of the asynchronous FIFO are synchronized across clock domains using Gray code and through two levels of synchronization registers. The atom group controller uses request-acknowledge toggles to send latch requests to the counter clock domain and sets the valid atom group of the state fragment to the set after all target clock domains return acknowledgments.
9. The hardware system as described in claim 7, characterized in that, The status frame aggregation buffer uses the trigger transaction key composed of the trigger start time, snapshot time, and trigger sequence number as the first-level index and the trigger fragment sequence number as the second-level index to store the total number of trigger fragments, the target collector bitmap of each fragment, the acknowledgment bitmap, the sampling time interval, the semantic version, the quality bits, and the gap list. Before publishing, it checks that the acknowledgment bitmap is a subset of the corresponding target collector bitmap. The gap list is generated by intersecting the bitwise inverse of the target collector bitmap and the acknowledgment bitmap. Bits in the acknowledgment bitmap that are not part of the target set are marked as UNEXPECTED_ACK. The complete frame is only allowed to be marked after all trigger fragments are closed. Late fragments are only appended with the new frame version without overwriting the published version.
10. The hardware system as described in claim 7, characterized in that, For an n-bit cumulative cyclic counter, if the counter semantic conversion unit remains unchanged during the local acquisition period and the hardware wrap-around count and the original value are latched on the same boundary, the increment is calculated by multiplying the wrap-around count difference by 2^n and then adding the current value minus the previous value. If no wrap-around count is provided, the calculation is performed only once if the maximum increment rate given in the semantic table multiplied by the sampling interval is less than 2^n. Otherwise, AMBIGUOUS_WRAP is output and no increment or rate is output. When the local acquisition period or the device startup period changes, the previous value is discarded and a new baseline is established. The read zeroing counter only uses the non-destructive image or the monotonic image accumulated after reading, which cannot guarantee that UNSUPPORTED will be output when the increment is complete; the lineage deduplication unit retains the main source, the check source and the difference, and reports the two sources as a conflict pair when the error exceeds the limit.
