Computer system and control method therefor
An embodiment is a method for controlling a computer system including a plurality of calculators and a host, each of the plurality of calculators having a trace buffer, the method including triggering by detection of a predetermined event from input data to record a detection time of the event acquired for each type of the input data in the trace buffer, determining, by the host or the calculator, the type of the input data to which the detection time of the event recorded in the trace buffer belongs, and recording, by the host or the calculator, according to a determination result, a latest detection time of the event among the detection times of the event belonging to the same type of the input data, and erases detection times of the event other than the latest detection time of the event.
1 . A computer system for processing input data, comprising:
a plurality of calculation units;
an internal communication unit connecting the plurality of calculation units for transferring data therebetween;
a host connected to the plurality of calculation units to control the plurality of calculation units, wherein
the processed data is configured to be transferred between the plurality of calculation units,
the calculation unit includes a trace buffer configured to record trace data upon detection of a predetermined event from the input data,
the trace data has a timestamp value that is the detection time of the event based on the operating frequency of the calculation unit, and
either the host or the calculation unit is configured to erase the trace data recorded in the trace buffer under a predetermined condition,
wherein a calculator of one of the plurality of calculation units is configured to process the input data and transfer the input data to a calculator of another calculation unit, the other calculation unit is configured to receive the transferred data and send a reception completion notification, and the one calculation unit is configured to receive the reception completion notification and erase the detection time of the event recorded in the trace buffer of the one calculation unit.
2 . The computer system according to claim 1 , wherein the trace data further includes a type of the input data, information indicating a location where the event is detected, information distinguishing the content of the event, or arbitrary data.
3 . The computer system according to claim 2 , wherein when a plurality of pieces of the trace data recorded in the trace buffer belong to the same type of the input data, either the host or the calculation unit is configured to retain latest trace data among the plurality of the pieces of trace data and erase the trace data other than the latest trace data.