Information processing device, method, storage medium and computer program product
By dynamically adjusting the limit time of the monitoring clock, the problem of long recovery processing time and prone to error execution in the prior art is solved according to the load condition of the information processing device, and a faster and more reliable recovery processing is achieved.
Patent Information
- Application Number
- CN202010103867.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-09-27
- Filing Date
- 2020-02-20
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2040-02-20
AI Technical Summary
In the prior art, when the information processing device falls into an abnormal state such as hang-up, the recovery processing time is long and it is prone to error execution, mainly due to the short limiting time of the monitoring clock, the load delay is caused.
By dynamically adjusting the limit time of the monitoring clock, the limit time is extended when the load is large, and shortened when the load is small, avoiding the error of the recovery process due to load delay.
It effectively shortens the recovery processing time when the information processing device falls into an abnormal state, reduces the possibility of error execution of recovery processing, and improves the reliability and efficiency of the system.
Smart Images

Figure CN112579010B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an information processing device, a storage medium and an information processing method. Background Art
[0002] Conventionally, there is known a monitoring clock for detecting an abnormal state such as a hang up of an information processing device. The monitoring clock counts a timer value. The configuration is as follows: if the information processing device is in a normal state, the timer value is reset before the timer value reaches a set limit value, that is, within a set limit time. If the information processing device fails to reset the timer value and the timer value reaches the limit value (that is, the limit time has passed since the last reset of the timer value), it is determined that the information processing device is in an abnormal state.
[0003] Conventionally, there has been proposed a technique for dynamically changing the time limit of a monitoring clock.
[0004] For example, Patent Document 1 discloses a monitoring clock that monitors the time interval until the timer value is cleared, and sets the maximum time interval among the monitored time intervals as the limit time. Patent Document 2 discloses a monitoring clock that sets the limit time at system startup to be longer than the limit time after startup. Patent Document 3 discloses a monitoring clock that has an integration circuit composed of a resistor and a capacitor, wherein during the startup of the motor drive system, the limit time is set to be longer by the resistor of the integration circuit, and then the limit time is shortened by reducing the resistance value of the resistor. Patent Document 4 discloses a monitoring clock that is set with different limit times for each application running on the information processing device.
[0005] Patent Document 1: Japanese Patent Application Publication No. 2002-140209
[0006] Patent Document 2: Japanese Patent Application Publication No. 2005-122424
[0007] Patent Document 3: Japanese Patent Application Publication No. 2008-262443
[0008] Patent Document 4: Japanese Patent Application Publication No. 2009-020545
[0009] In order to shorten the time from when the information processing device falls into an abnormal state such as hanging up to when the information processing device performs the recovery process, it is considered to shorten the limit time of the monitoring clock in advance. However, if the limit time is short, if a delay occurs in the reset process of the monitoring clock due to the load of the information processing device, the recovery process may be performed erroneously even if the information processing device is not actually in an abnormal state. Summary of the invention
[0010] The purpose of the present invention is to suppress the increase in time until the execution of the recovery process when a delay in the reset process of the monitoring clock due to the load of the information processing device does not occur, compared to a case where the limit time of the monitoring clock is not changed according to the load of the information processing device, and to suppress the erroneous execution of the recovery process when such a delay may occur.
[0011] Means for solving problems
[0012] The invention involved in Scheme 1 is an information processing device, characterized in that it has a processor, which executes a reset process to reset a monitoring clock. When the monitoring clock cannot be reset within a limited time, the processor executes a recovery process of its own device. When the device load of at least one of the current processing load per unit time of its own device or the processing amount of the processing request input to its own device is large, the limited time is set to a longer time compared with a case where the device load is small.
[0013] The invention involved in Scheme 2 is based on the information processing device described in Scheme 1, characterized in that the processor intermittently obtains the device load, and when the device load exceeds the first load threshold, the limit time is set to a time longer than the initial setting time, that is, an extended time.
[0014] The invention involved in Scheme 3 is based on the information processing device described in Scheme 1, characterized in that when the device load becomes smaller than the second load threshold, the processor sets the limit time to a time shorter than the extension time, and the second load threshold is smaller than the first load threshold.
[0015] The invention according to Scheme 4 is an information processing device according to Scheme 3, characterized in that when the state in which the device load is less than the second load threshold is maintained for a certain period of time, the processor sets the limit time to a time shorter than the extension time.
[0016] The invention according to Scheme 5 is an information processing device according to Scheme 2, characterized in that when the acquired multiple consecutive device loads are all below the first load threshold, the processor gradually shortens the limit time in stages toward the initial set time.
[0017] The invention involved in Scheme 6 is based on the information processing device described in Scheme 3 or Scheme 4, characterized in that when the multiple consecutive device loads obtained are all less than the second load threshold, the processor gradually shortens the limit time in stages toward the initial set time.
[0018] The invention according to Scheme 7 is an information processing device according to Scheme 2, characterized in that, within a specified time after the device itself is started, even if the device load exceeds the first load threshold, the processor maintains the limited time at the initial set time.
[0019] The invention according to claim 8 is the information processing device according to claim 7, characterized in that the prescribed time when the device itself is activated by turning on the power is longer than the prescribed time when it is activated from the power saving mode.
[0020] The invention involved in Scheme 9 is a storage medium, characterized in that it stores an information processing program, which causes a computer to perform the following processing: a reset process for resetting a monitoring clock; when the monitoring clock cannot be reset within a limited time, a recovery process of the own device is performed; when the device load of at least one of the current processing load per unit time of the own device or the processing amount of the processing request input to the own device is large, the limited time is set to a longer time compared with a case where the device load is small.
[0021] The invention involved in Scheme 10 is an information processing method, characterized in that it includes the following steps: executing a reset process to reset a monitoring clock, and when the monitoring clock cannot be reset within a limited time, executing a recovery process of the own device, and when the device load of at least one of the current processing load per unit time of the own device or the processing amount of the processing request input to the own device is large, the limited time is set to a longer time compared to a case where the device load is small.
[0022] Effects of the Invention
[0023] According to the first scheme, the ninth scheme, or the tenth scheme of the present invention, compared with the case where the limit time of the monitoring clock is not changed according to the load of the information processing device, the increase in the time until the recovery process is executed can be suppressed when a delay in the reset process of the monitoring clock due to the load of the information processing device does not occur, and the recovery process can be suppressed from being erroneously executed when the delay may occur.
[0024] According to the second aspect of the present invention, the limit time of the monitoring clock can be dynamically changed according to the device load obtained intermittently.
[0025] According to the third aspect of the present invention, it is possible to make it more difficult to shorten the limited time compared to the case where the limited time is shortened when the device load becomes equal to or less than the first load threshold.
[0026] According to the fourth aspect of the present invention, it is possible to make shortening of the limited time more difficult compared to the case where the limited time is immediately shortened when the device load becomes smaller than the second load threshold.
[0027] According to the fifth aspect of the present invention, compared with the case where the limited time is set to the initial setting time when the device load becomes equal to or less than the 1 load threshold, it is possible to suppress the limited time from being rapidly shortened.
[0028] According to the sixth aspect of the present invention, compared with the case where the limited time is set to the initial setting time when the device load becomes smaller than the second load threshold, it is possible to suppress the limited time from being rapidly shortened.
[0029] According to the seventh aspect of the present invention, within a predetermined time after the device is activated, priority can be given to the activation itself over suppressing the erroneous execution of the recovery process.
[0030] According to the eighth aspect of the present invention, the amount of processing is increased compared to when starting from the power saving mode, and the prescribed time when starting by turning on the power supply can be made longer than the prescribed time when starting from the power saving mode. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Embodiments of the present invention will be described in detail with reference to the following drawings.
[0032] Figure 1 It is a schematic diagram of the structure of the information processing device involved in this embodiment.
[0033] Figure 2 It is a graph showing the change of CPU usage over time.
[0034] Figure 3 This is a flowchart showing the processing flow of the information processing device involved in this embodiment.
[0035] [Explanation of symbols]
[0036] 10-information processing device, 12-communication interface, 14-display, 16-input interface, 18-memory, 20-printer, 22-monitoring clock, 24-processor, 26-bus, 28-reset processing unit, 30-recovery processing unit, 32-limit time setting unit. DETAILED DESCRIPTION
[0037] Figure 1 1 is a schematic diagram of the configuration of the information processing device 10 according to the present embodiment. The information processing device 10 according to the present embodiment is a printer or a multifunction peripheral having a printing function, but the information processing device 10 may be, for example, a personal computer, a server computer, or a tablet terminal.
[0038] The communication interface 12 is composed of, for example, a wired or wireless LAN adapter, etc. The communication interface 12 performs the function of communicating with other devices via a communication line such as a LAN or the Internet. For example, a job as a processing request for executing a process (for example, a printing process) by the information processing device 10 can be received from a user terminal used by a user through the communication interface 12.
[0039] The display 14 is configured to include, for example, a liquid crystal display, etc. Various screens are displayed on the display 14. For example, information related to a job being executed in the information processing device 10 is displayed on the display 14.
[0040] The input interface 16 includes, for example, a touch panel and various buttons. When the information processing device 10 is a personal computer or the like, the input interface 16 may include a mouse and a keyboard. The input interface 16 is used to input a command to the information processing device 10 from a user.
[0041] The memory 18 includes, for example, a hard disk, an SSD (Solid State Drive), an eMMC (embedded Multi Media Card), a ROM, or a RAM. The memory 18 may be provided separately from the processor 24 described later, or at least a part thereof may be provided inside the processor 24. The memory 18 stores an information processing program for operating each part of the information processing device 10.
[0042] The printer 20 is composed of, for example, a paper feed mechanism, a photosensitive drum, or an ink cartridge. The printer 20 prints image data on a recording medium according to a print job or a copy job input by a user. Figure 1 Only the printer 20 is shown in the figure, but when the information processing device 10 is a multifunction peripheral, it may include, for example, a document table, a light source, and an image sensor, and may also include a scanner that optically reads a paper document to generate image data corresponding to the paper document.
[0043] The monitoring clock 22 is composed of a counter that counts a timer value. The timer value may be, for example, a value that counts the number of clocks. The monitoring clock 22 detects situations where the information processing device 10 falls into an abnormal state such as hanging up. The monitoring clock 22 always counts the timer value during the startup of the information processing device 10. In a normal state where the information processing device 10 operates normally, basically before the timer value reaches the set limit value, a reset signal is sent from the processor 24 to the monitoring clock 22. If the monitoring clock 22 receives the reset signal, the timer value is reset (for example, restored to 0). In the case where the information processing device 10 falls into an abnormal state, if the monitoring clock 22 does not receive a reset signal from the processor 24 and the timer value reaches the limit value, the monitoring clock 22 sends a recovery processing request signal to the processor 24.
[0044] The time required for the timer value to count once is constant and known, so the time from the last reset of the timer value until it reaches the limit value can be determined based on the limit value. In this specification, the time from the last reset of the timer value until it reaches the limit value is referred to as the limit time.
[0045] The processor 24 refers to a processing device in a broad sense, and is composed of at least one of a general-purpose processing device (e.g., a CPU (Central Processing Unit), etc.) and a dedicated processing device (e.g., a GPU (Graphics Processing Unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or a programmable logic device, etc.). The processor 24 may be composed of one processing device, or may be composed of the cooperation of a plurality of processing devices existing in physically separated locations.
[0046] The communication interface 12, display 14, input interface 16, memory 18, printer 20 and monitoring clock 22 are connected to the processor 24 via a data bus 26. The processor 24 controls each component by sending and receiving data to and from the component via the data bus 26.
[0047] And, if Figure 1 As shown, the processor 24 functions as a reset processing unit 28 , a recovery processing unit 30 , and a time limit setting unit 32 .
[0048] The reset processing unit 28 sends a reset signal for resetting the timer value of the monitoring clock 22 to the monitoring clock 22. The process of sending the reset signal to the monitoring clock 22 by the reset processing unit 28 is called reset processing. As long as the processor 24 operates normally, the reset processing unit 28 will attempt to perform the reset processing within the time limit of the monitoring clock 22 from the time when the reset signal was last sent. However, due to the increase in the processing load of the processor 24, even if the processor operates normally, there is a possibility that the timing of executing the reset processing is delayed due to the processing delay of the reset processing unit 28. The time limit of the monitoring clock 22 becomes, for example, an initial time limit (for example, 3 seconds) set by the designer of the information processing device 10 immediately after the information processing device 10 is started, but the time limit can be dynamically changed by the time limit setting unit 32 described later.
[0049] The recovery processing unit 30 executes the recovery processing of the information processing device 10 when receiving the recovery processing request signal from the monitoring clock 22. As described above, when the monitoring clock 22 does not receive the reset signal from the reset processing unit 28 within the limited time, the monitoring clock 22 sends the recovery processing request signal to the processor 24. Therefore, it can be said that when the monitoring clock 22 is not reset within the limited time from the time when the timer value is reset last time, the recovery processing unit 30 executes the recovery processing of the information processing device 10. The recovery processing is a process for returning the information processing device 10 to a normal state, for example, a process for restarting the information processing device 10 including the processor 24.
[0050] The time limit setting unit 32 sets the time limit of the monitoring clock 22. Specifically, the time limit setting unit 32 sets the time limit according to the load of the information processing device 10, that is, the device load. Specifically, a threshold value related to the device load, that is, a first load threshold value, is pre-set. If the acquired device load exceeds the first load threshold value, the time limit setting unit 32 sets the time limit of the monitoring clock 22 to a time longer than the initial setting time, that is, an extended time (for example, 60 seconds).
[0051] If the device load is large, although the information processing device 10 is in a normal state, the operation of the reset processing unit 28 is delayed, and there is a case where the reset processing unit 28 cannot perform the reset processing of the monitoring clock 22 within the limited time before the change. Therefore, by extending the limited time when the device load is large, even if the operation of the reset processing unit 28 is delayed and the execution of the reset processing is delayed, it is possible to prevent the recovery processing from being erroneously executed (that is, although the information processing device 10 is actually in a normal state).
[0052] After the information processing device 10 is started, although an embodiment in which the time limit setting unit 32 determines whether the device load exceeds the first load threshold only once at a specified timing to set the time limit of the monitoring clock 22 can also be adopted, in this embodiment, the time limit setting unit 32 intermittently obtains the device load of the information processing device 10 and intermittently performs the setting of the time limit based on the obtained device load. As a result, the time limit of the monitoring clock 22 can be dynamically changed. In this embodiment, the time limit setting unit 32 sets the time limit periodically, in other words, obtains the device load of the information processing device 10 at a specified time (for example, every 1.5 seconds) to set the time limit.
[0053] The device load is the processing load per unit time of each component element of the information processing device 10 at present (i.e., when the device load is obtained by the time limit setting unit 32). The components here include not only the processor 24 that performs the reset process, but also other components. For example, it may include a communication interface 12 and a memory 18 (RAM and hard disk). As described above, this is because the processor 24 is connected to each component element through a data bus 26. If the processing load of the components other than the processor 24 increases, the load of the data bus 26 (in other words, the amount of data passing through the data bus 26) increases, and as a result, the processing of the processor 24 itself is sometimes delayed.
[0054] Furthermore, as the device load, the processing load of the job processing unit that processes the job input to the information processing device 10, such as the printer 20 and the scanner (not shown), may be included. The processor that controls the job processing unit is sometimes provided separately from the processor 24 that controls the entire information processing device 10, but in a low-end mode printer, for example, the job processing unit is sometimes controlled by the processor 24 that controls the entire information processing device 10. For example, when the processor 24 controls the mechanism part that constitutes the printer 20, if the processing load of the printer 20 is large, the processing load of the processor 24 may also become large. In particular, the control of the mechanism part of the printer 20 is directly related to the quality of the printed matter, so the control processing of the printer 20 is usually prioritized in the processor 24, and if the processing load of the printer 20 becomes large, the reset processing by the reset processing unit 28 may be delayed. Therefore, the processing load of the printer 20 may also be included as the device load.
[0055] The processing load of each component including the processor 24 is the processing load per unit time of each component. The processing load per unit time of the processor 24 can be obtained, for example, based on the CPU usage rate indicating the ratio of the processing time (non-idle time) per unit time of the processor 24. The processing load per unit time of the communication interface 12 can be obtained based on the communication volume per unit time. The processing load per unit time of the memory 18 can be obtained based on the amount of data per unit time input to the memory 18. The processing load per unit time of the printer 20 can be obtained based on the print data involved in the print job and the print data being processed by the printer 20.
[0056] Here, it is assumed that the unit time is at least shorter than the initial setting time of the monitoring clock 22 and is close to the initial setting time, such as being in the same order as the initial setting time. For example, in the present embodiment, the initial setting time is 3 seconds, so the unit time is set to 1 second. This is because, assuming that if the unit time is set to be longer than the initial setting time (for example, 10 seconds), when the limit time of the monitoring clock 22 is the initial setting time, from the perspective of the span of the unit time (10 seconds), the device load is not so large, but when the load is concentrated in the 3-second period of the unit time, etc., it is possible that the limit time cannot be extended and the recovery process is performed erroneously. If the unit time is set to be much shorter than the initial setting time (for example, 10ms), since the device load only increases during a certain unit time (10ms), the limit time is extended even though it is not necessary.
[0057] As described above, the device load includes the processing load per unit time of each component element, so the first load threshold is set for each component element. As the first load threshold for the processor 24, for example, the CPU usage is 80%, as the first load threshold for the communication interface 12, for example, the communication volume is 800Mbps, as the first load threshold for the RAM of the memory 18, for example, it is 8GB / s, as the first load threshold for the hard disk of the memory 18, for example, it is 0.8MB / s.
[0058] Furthermore, the device load may be the processing amount of the processing request input to the information processing device 10. This is because, when the processing amount requested by the processing request input to the information processing device 10 is large, if the processing involved in the processing request is executed, the processing load of the components of the information processing device 10 will inevitably increase. The processing amount of the processing request input to the information processing device 10 can also be said to be the processing load of the components of the information processing device 10 in the near future.
[0059] The processing amount as a processing request input to the information processing device 10 is, for example, the processing amount required to complete a print job input to the information processing device 10. The processing amount required to process the print job is estimated by analyzing the print job. For example, the processing amount of the print job is estimated based on the document structure, number of pages, number of colors used, etc. of the print data involved in the print job, or the type of processing required by the print job (image processing, OCR processing, object separation processing, etc.). In addition, the number of jobs input at the same time can also be used to estimate the processing amount.
[0060] At this time, the time limit setting unit 32 can calculate the processing volume of the printing job by analyzing the printing job, and then compare the calculated processing volume with the first load threshold. It can also regard the processing volume required to complete the printing job, that is, the device load, as exceeding the first load threshold when the printing job meets specified conditions (for example, the number of pages of print data is above the threshold, etc.).
[0061] The time limit setting unit 32 can use at least one of the current processing load per unit time of each component element of the information processing device 10 and the processing amount of the processing request input to the information processing device 10 as the device load. Specifically, either the current processing load per unit time of each component element of the information processing device 10 or the processing amount of the processing request input to the information processing device 10 can be used as the device load, or both can be used as the device load.
[0062] The device load of the information processing device 10 may change over time, and therefore may temporarily become greater than the first load threshold and then decrease. In this embodiment, the device load is intermittently acquired by the limit time setting unit 32, and after the device load temporarily becomes greater than the first load threshold and the limit time of the monitoring clock 22 is set to an extended time, when the device load decreases, the limit time setting unit 32 shortens the limit time of the monitoring clock 22.
[0063] Specifically, an embodiment in which the time limit setting unit 32 shortens the time limit of the monitoring clock 22 when the device load of the information processing device 10 becomes less than the first load threshold may also be adopted, but in this embodiment, the time limit setting unit 32 shortens the time limit of the monitoring clock 22 to a time shorter than the extension time when the device load of the information processing device 10 becomes less than the second load threshold, and the second load threshold is less than the first load threshold. That is, the time limit setting unit 32 does not shorten the time limit of the monitoring clock 22 when the device load of the information processing device 10 decreases from a state greater than the first load threshold to reach the first load threshold, but shortens the time limit of the monitoring clock 22 when the device load further decreases to reach the second load threshold.
[0064] As described above, the device load includes the processing load per unit time of each component element, so the second load threshold is set for each component element in the same manner as the first load threshold. As the second load threshold for the processor 24, for example, the CPU usage is 40%, as the second load threshold for the communication interface 12, for example, the communication volume is 400Mbps, as the second load threshold for the RAM of the memory 18, for example, 4GB / s, as the second load threshold for the hard disk of the memory 18, for example, 0.4MB / s.
[0065] In this way, the time limit setting unit 32 sets the limit time of the monitoring clock 22 to an extended time when the device load of the information processing device 10 exceeds the first load threshold, and shortens the limit time of the monitoring clock 22 when the device load becomes less than the second load threshold. Therefore, it can be said that the time limit setting unit 32 sets the limit time to a longer time when the device load of the information processing device 10 is large than when the device load is small.
[0066] In this embodiment, the time limit setting unit 32 does not shorten the time limit of the monitoring clock 22 to less than the initial setting time. That is, when the time limit is the initial setting time, the time limit setting unit 32 does not shorten the time limit further regardless of the device load of the information processing device 10.
[0067] There may be a case where the device load of the information processing device 10 temporarily increases (exceeds the first load threshold) and then decreases, and then increases again immediately after the device load decreases. For example, a case where the information processing device 10 processes a plurality of jobs with a relatively large amount of processing and the plurality of jobs are continuously input to the information processing device 10.
[0068] For example, it is assumed that when the first job is input to the information processing device 10 or when the information processing device 10 starts processing the first job, the device load of the information processing device 10 increases and exceeds the first load threshold. At this time, the limit time setting unit 32 sets the limit time of the monitoring clock 22 to an extended time according to the device load. It is assumed that the processing amount decreases as the first job is near completion, and the device load decreases to below the first load threshold. However, if the second job is input to the information processing device 10 immediately afterwards, the device load of the information processing device 10 increases again.
[0069] Here, if the time limit setting unit 32 shortens the time limit of the monitoring clock 22 when the processing amount of the first job decreases and the device load becomes less than the first load threshold, then when the second job is input immediately and the device load increases, there is a processing delay of the reset processing unit 28 depending on the timing of shortening the time limit and the timing of inputting the second job, and the reset processing cannot be performed within the shortened time limit, and the recovery processing may be performed erroneously. In order to reduce the possibility of erroneous recovery processing in this case, the time limit of the monitoring clock 22 is temporarily set to an extended time, and in order to make it difficult to shorten the time limit, the time limit setting unit 32 shortens the time limit of the monitoring clock 22 when the device load becomes less than the second load threshold, and the second load threshold is less than the first load threshold.
[0070] In order to make it more difficult to shorten the limit time of the monitoring clock 22, a low load maintenance time of a certain time is set in advance, and the limit time setting unit 32 can shorten the limit time of the monitoring clock 22 when the device load of the information processing device 10 is maintained in a state of less than the second load threshold for the low load maintenance time. That is, the limit time setting unit 32 does not shorten the limit time of the monitoring clock 22 when the device load of the information processing device 10 decreases from a state of being greater than the second load threshold to reaching the second load threshold, but shortens the limit time of the monitoring clock 22 when the low load maintenance time has passed while the device load is maintained at or below the second load threshold from that point in time.
[0071] As another countermeasure for reducing the possibility of erroneous execution of the recovery process when the device load of the information processing device 10 increases again after just decreasing, the following may be used, that is, after the limit time of the monitoring clock 22 is set to the extended time, when the device load of the information processing device 10 becomes less than the first load threshold, the limit time setting unit 32 does not shorten the limit time of the monitoring clock 22 to the initial setting time at one time, but shortens the limit time little by little toward the initial setting time. In other words, when the device loads at multiple time points acquired continuously in time are all less than the first load threshold, the limit time of the monitoring clock 22 may be shortened step by step toward the initial setting time.
[0072] By shortening the limit time in stages, the limit time becomes at least longer than the initial set time halfway through the staged shortening of the limit time. Therefore, compared with the case where the limit time is shortened to the initial set time at one time, the possibility of erroneously performing recovery processing when the device load increases again while the limit time is being shortened in stages can be reduced.
[0073] Furthermore, when the device load of the information processing device 10 is less than the second load threshold, the time limit setting unit 32 does not shorten the time limit of the monitoring clock 22 to the initial setting time all at once, but shortens the time limit little by little toward the initial setting time. In other words, when the device loads at multiple time points continuously acquired in time are all less than the second load threshold, the time limit setting unit 32 may shorten the time limit of the monitoring clock 22 step by step toward the initial setting time.
[0074] In this case as well, the possibility of erroneous execution of the recovery process when the device load increases again while the time limit is being shortened stepwise can be reduced compared to shortening the time limit to the initial setting time all at once.
[0075] When the user waits for the information processing device 10 to start up immediately after the information processing device 10 is started up, it is sometimes preferred to execute the recovery process more quickly and give priority to the startup itself rather than suppressing the recovery process from being executed erroneously. In response to this situation, the time limit setting unit 32 may not extend the time limit of the monitoring clock 22 immediately after the information processing device 10 is started up.
[0076] Specifically, a specified time after startup can be set in advance. When the elapsed time from the time when the information processing device 10 is started is within the specified time after startup, the time limit setting unit 32 does not extend the limit time of the monitoring clock 22 but maintains it at the initial setting time even if the device load of the information processing device 10 exceeds the first load threshold.
[0077] Thus, immediately after the information processing device 10 is started, priority is given to executing the recovery process more quickly rather than suppressing the recovery process from being erroneously executed, and when the information processing device 10 falls into an abnormal state immediately after the information processing device 10 is started, the recovery process can be quickly executed. In addition, as described above, in this embodiment, the limit time of the monitoring clock 22 can be extended by the limit time setting unit 32 according to the device load immediately after the information processing device 10 is started, so that the initial setting time can be shortened more than before. In this way, the recovery process can be executed more quickly when the information processing device 10 falls into an abnormal state immediately after the information processing device 10 is started.
[0078] The startup of the information processing device 10 includes not only the case where the information processing device 10 is started up by turning on the power from a completely off state (hereinafter referred to as a "cold start"), but also the case where the information processing device 10 is started up from a power saving mode (i.e., recovery).
[0079] Here, when the information processing device 10 is cold started, the amount of processing for the startup process is greater than when it is restored from the power saving mode. Therefore, the first specified time after startup and the second specified time after startup that is shorter than the first specified time after startup may be pre-set, and when the information processing device 10 is cold started, the time limit setting unit 32 maintains the time limit of the monitoring clock 22 at the initial setting time within the first specified time after startup that is longer than the second specified time after startup, even if the device load of the information processing device 10 exceeds the first load threshold, and when the information processing device 10 is started from the power saving mode, the time limit of the monitoring clock 22 is maintained at the initial setting time within the second specified time after startup, even if the device load of the information processing device 10 exceeds the first load threshold.
[0080] The structure of the information processing device 10 according to the present embodiment is as described above. Figure 2 A specific example of the processing performed by the time limit setting unit 32 will be described.
[0081] Figure 2 It is a graph showing the time change of CPU usage. In the following description, it is assumed that the device load of the information processing device 10 is the CPU usage, the first load threshold is 80%, the second load threshold is 40%, the initial setting time is 3 seconds, the extension time is 60 seconds, the specified time after startup is 10 seconds, and the low load maintenance time is 10 seconds. In addition, the time limit setting unit 32 obtains the CPU usage every 1.5 seconds and determines whether to set the monitoring clock 22.
[0082] First, when the information processing device 10 is started at time 0, the CPU constituting the processor 24 performs a process for starting up, so the CPU usage rate rises sharply, and at time t1, the CPU usage rate exceeds 80% of the first load threshold. Here, time t1 is a time within 10 seconds of a predetermined time after starting up from the start-up time, so even if the CPU usage rate exceeds 80% at time t1, the time limit setting unit 32 does not set the time limit of the monitoring clock 22 to the extended time, i.e., 60 seconds, but maintains it at the initial setting time, i.e., 3 seconds.
[0083] If the CPU usage rate exceeds 80% again at time t2 which is a predetermined time after the activation time, the time limit setting unit 32 sets the time limit of the monitoring clock 22 to an extended time of 60 seconds.
[0084] After that, the CPU usage rate decreases, and at time t3, the CPU usage rate becomes less than 40% which is the second load threshold. The time limit setting unit 32 does not shorten the time limit of the monitoring clock 22 at time t3, but starts monitoring whether the CPU usage rate is maintained less than 40% during the 10 seconds of low load maintenance time, taking time t3 as the starting point. At time t4 during the low load maintenance time from time t3, the CPU usage rate exceeds 40%. Therefore, the time limit setting unit 32 does not shorten the time limit of the monitoring clock 22, and ends monitoring whether the CPU usage rate is maintained less than 40%.
[0085] After that, the CPU usage rate decreases, and at time t5, the CPU usage rate becomes less than 40% again. The time limit setting unit 32 does not shorten the time limit of the monitoring clock 22 at time t5, as at time t3, but starts monitoring whether the CPU usage rate is maintained less than 40% during the 10 seconds as the low load maintenance time, starting from time t5.
[0086] During 10 seconds from time t5, the CPU usage rate is maintained below 40%, so after the low load maintenance time from time t5, that is, at time t6 10 seconds after time t5, the time limit setting unit 32 shortens the time limit of the monitoring clock 22. For example, the time limit is shortened by 10 seconds to 50 seconds. In addition, during the time after time t6, the time limit setting unit 32 monitors the CPU usage rate every 1.5 seconds, and as long as the CPU usage rate is below 40%, the time limit of the monitoring clock 22 is shortened step by step (for example, every 10 seconds) every 1.5 seconds toward the initial setting time of 3 seconds.
[0087] Below, according to Figure 3 The flowchart shown in FIG. 1 illustrates the processing flow of the information processing device 10 according to the present embodiment.
[0088] In step S10 , activation of the information processing device 10 is started.
[0089] In step S12 , the time limit setting unit 32 sets the set time of the monitoring clock 22 to the initial set time (for example, 3 seconds).
[0090] In step S14, the time limit setting unit 32 determines whether the device load of the information processing device 10 exceeds the first load threshold (for example, whether the CPU usage rate exceeds 80%). If so, the process proceeds to step S16.
[0091] In step S16, the time limit setting unit 32 determines whether the time elapsed after the information processing device 10 is started in step S10 is within a preset time after startup (e.g., within 10 seconds). If it is within the preset time after startup, the process returns to step S14, and if it has passed, the process proceeds to step S18.
[0092] In step S18, the time limit setting unit 32 sets the time limit of the monitoring clock 22 to an extended time (for example, 60 seconds), and then returns to step S14.
[0093] In step S14 , when the device load of the information processing device 10 is equal to or less than the first load threshold, the process proceeds to step S20 .
[0094] In step S20, the time limit setting unit 32 determines whether the state in which the device load of the information processing device 10 is less than the second load threshold (for example, the CPU usage rate is less than 40%) is maintained for the low load maintenance time (for example, 10 seconds). When the device load of the information processing device 10 is not less than the second load threshold or the device load temporarily becomes less than the second load threshold but does not remain less than the second load threshold during the low load maintenance time, the process returns to step S14. When the state in which the device load of the information processing device 10 is less than the second load threshold is maintained for the low load maintenance time, the process proceeds to step S22.
[0095] In step S22, it is determined whether the current limit time of the monitoring clock 22 is greater than the initial setting time. If the limit time is not greater than the initial setting time, that is, if the limit time is the initial setting time, the process returns to step S14. If the limit time is greater than the initial setting time, the process proceeds to step S24.
[0096] In step S24, the time limit setting unit 32 shortens the time limit of the monitoring clock 22. Here, the time limit setting unit 32 does not set the time limit to the initial setting time (3 seconds) all at once, but shortens it gradually. For example, the time limit setting unit 32 shortens the current time limit by 10 seconds.
[0097] In step S26, the processor 24 determines whether there is a device stop command from the user to the information processing device 10 or whether the information processing device 10 satisfies a predetermined transition condition to the power saving mode (for example, whether it has not been operated for a predetermined time). If there is no device stop command and the transition condition to the power saving mode is not satisfied, the process returns to step S14. If there is a device stop command or the transition condition to the power saving mode is satisfied, the process proceeds to step S28.
[0098] If the device stop command is input in step S26, processor 24 stops information processing device 10 in step S28. If the transition condition to the power saving mode is satisfied in step S26, processor 24 causes information processing device 10 to transition to the power saving mode in step S28.
[0099] The processing of step S14 to step S26 is repeated until the information processing device 10 stops or shifts to the power saving mode. The determination processing of step S14 is executed at a predetermined time, for example, every 1.5 seconds.
[0100] As mentioned above, although embodiment which concerns on this invention was demonstrated, this invention is not limited to the said embodiment, Unless it deviates from the meaning of this invention, various changes can be made.
[0101] The above-mentioned embodiments of the present invention are provided for the purpose of illustration and description. In addition, the embodiments of the present invention do not fully and exhaustively include the present invention, and do not limit the present invention to the disclosed methods. Obviously, various modifications and changes are self-evident to those skilled in the art to which the present invention belongs. The present embodiment is selected and described in order to most easily understand the principles of the present invention and its application. Thus, other technicians in the art can understand the present invention through various variations optimized for specific uses assumed to be various embodiments. The scope of the present invention is defined by the above claims and their equivalents.
Claims
1. An information processing device, characterized in that: A processor is provided, the processor executing: Reset processing to reset the watchdog clock, If the monitoring clock cannot be reset within the time limit, the recovery process of the own device is executed. When the device load, which is at least one of the current processing load per unit time of the own device or the processing amount of the processing request input to the own device, is large, the limit time is set to a longer time than when the device load is small, The processor intermittently obtains the device load. When the device load exceeds a first load threshold, the processor sets the limit time to a time longer than an initially set time, i.e., an extended time. When the device load becomes less than a second load threshold, the processor sets the limit time to a time shorter than the extended time. The second load threshold is less than the first load threshold.
2. The information processing device according to claim 1, characterized in that When the state in which the device load is less than the second load threshold value is maintained for a certain period of time, the processor sets the limited time to a time shorter than the extended time.
3. The information processing device according to claim 1, characterized in that When the acquired plurality of consecutive device loads are all below the first load threshold, the processor gradually shortens the limit time in stages toward the initial setting time.
4. The information processing device according to claim 1 or 2, characterized in that: When the acquired plurality of consecutive device loads are all smaller than the second load threshold, the processor gradually shortens the limit time in stages toward the initial set time.
5. The information processing device according to claim 1, characterized in that The processor maintains the limited time at the initial setting time within a predetermined time after the device itself is activated, even if the device load exceeds a first load threshold.
6. The information processing device according to claim 5, characterized in that: The predetermined time when the device is activated by turning on the power is longer than the predetermined time when the device is activated from the power saving mode. 7 . A computer program product comprising an information processing program for causing a computer to function as each unit of the information processing device according to claim 1 .
8. A storage medium, characterized in that: An information processing program is stored, and the information processing program causes the computer to execute the following processing: Reset processing to reset the watchdog clock; When the monitoring clock cannot be reset within the limited time, executing recovery processing of the own device; When the device load, which is at least one of the current processing load per unit time of the own device or the processing amount of the processing request input to the own device, is large, the limit time is set to a longer time than when the device load is small, The computer intermittently obtains the device load, and when the device load exceeds a first load threshold, the computer sets the limit time to a time longer than an initially set time, i.e., an extended time; when the device load becomes less than a second load threshold, the computer sets the limit time to a time shorter than the extended time, and the second load threshold is less than the first load threshold.
9. An information processing method, characterized in that: The steps include: Execute reset processing to reset the watchdog clock. If the monitoring clock cannot be reset within the time limit, the recovery process of the own device is executed. When the device load, which is at least one of the current processing load per unit time of the own device or the processing amount of the processing request input to the own device, is large, the limit time is set to a longer time than when the device load is small, Wherein, the information processing method further includes: intermittently obtain the device load, When the device load exceeds a first load threshold, the limit time is set to a time longer than the initial setting time, i.e., an extended time; When the device load becomes smaller than a second load threshold value, the limit time is set to a time shorter than the extension time, and the second load threshold value is smaller than the first load threshold value.
Citation Information
Patent Citations
Watch dog timer
JP2002140209A
Watchdog timer
JP2008262443A
Anomaly monitoring device for computer
JP2009020545A
Watchdog timer
JP2005122424A
Detecting problems in content distribution
US8489923B1