Information processing system, control program and exception program

The system addresses memory corruption by allowing the second processor to reallocate memory, ensuring continuous operation by reallocating alternative memory areas when corruption occurs.

JP2024158473APending Publication Date: 2024-11-08FUJIFILM BUSINESS INNOVATION CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023073704
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-11-08

AI Technical Summary

Technical Problem

In systems with multiple processors, memory area corruption causes continuous exceptions, preventing the second processor from completing the instructed process by the first processor.

Method used

The second processor identifies corrupted memory areas, determines if the exception is recoverable, and if not, notifies the first processor to secure an alternative memory area, allowing the process to continue using the alternative area.

Benefits of technology

Ensures continuous operation by enabling the second processor to recover from memory corruption by reallocating memory, thus maintaining process execution despite memory damage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024158473000001_ABST
    Figure 2024158473000001_ABST
Patent Text Reader

Abstract

To enable one processor to continuously execute an operation instructed by the other processor even in a case in which an exception inherent to the damage of a memory region occurs.SOLUTION: According to an image formation device 1, when a CPU 12A is unable to execute an instructed process due to the damage of a designated memory region 3 utilized to execute the instructed process in accordance with a command from a CPU 11A, the CPU 12A notifies the CPU 11A of the damaged memory region. Then the CPU 11A notifies the CPU 12A of a substitute memory region 5 different from the damaged memory region and notifies again the CPU 12A of the command, and the CPU 12A executes, by utilizing the substitute memory region 5, the process instructed by the command.SELECTED DRAWING: Figure 6
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an information processing system, a control program, and an exception program. [Background technology]

[0002] Patent document 1 discloses a computer system equipped with a multi-core CPU module and in which multiple operating systems run on different core CPUs, the computer system comprising: an application running on a first operating system on a first core CPU; a memory diagnostic means running on a second operating system on the second core CPU and diagnosing memory used by the application; an abnormality notification means running on the second operating system and notifying the abnormality when an abnormality in the memory is detected by the memory diagnostic means; and a fault handling means running on the first operating system and receiving a notification from the abnormality notification means and taking action when a fault occurs.

[0003] Patent document 2 discloses a simple multiprocessor monitoring system comprising a main CPU, at least one sub-CPU, and a shared memory provided between the main CPU and each of the sub-CPUs and used in common by the main CPU and each of the sub-CPUs, wherein the shared memory has a status / command area for storing detailed operating status information of the sub-CPUs and commands from the main CPU to the sub-CPUs, and the main CPU monitors each sub-CPU by referring to the detailed operating status information stored in the status / command area of ​​the shared memory. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2010-186242 A [Patent Document 2] Japanese Patent Application Publication No. 09-114701 Summary of the Invention [Problem to be solved by the invention]

[0005] 2. Description of the Related Art There are systems that have multiple processors assigned different roles, such as a first processor issuing an instruction to execute a process and a second processor executing the process instructed by the first processor.

[0006] If the memory area associated with the instructed process is corrupted, even if the second processor attempts to retry the instructed process, an exception associated with the corruption of the memory area will occur every time, and the second processor will not be able to continue the instructed process.

[0007] The present disclosure aims to provide an information processing system, a control program, and an exception program that enable a second processor to continue to perform an instructed operation even if an exception occurs in the second processor due to corruption of a memory area while the second processor is executing processing instructed by a first processor. [Means for solving the problem]

[0008] An information processing system according to a first aspect includes a first processor and a second processor, and when the second processor is unable to execute processing instructed by an instruction from the first processor due to corruption of a memory area used by the second processor to execute processing instructed by the instruction from the first processor, the second processor notifies the first processor of the range of the corrupted memory area, the first processor notifies the second processor of an alternative memory area which is a memory area different from the range of the corrupted memory area and re-notifies the instruction to the second processor, and the second processor executes the processing instructed by the instruction using the alternative memory area.

[0009] An information processing system according to a second aspect is an information processing system according to the first aspect, in which when the second processor detects an exception that occurs when the second processor recognizes an unexpected phenomenon while loading a program corresponding to processing instructed by the first processor and executing the instructed processing, the second processor identifies the position in the program where the exception occurred and selects whether to re-execute the program from the position in the program where the exception occurred or to diagnose the corruption state of the memory area being used.

[0010] An information processing system according to a third aspect is an information processing system according to the second aspect, in which, when the second processor diagnoses that a memory area in use is corrupted in the memory area diagnosis, the second processor identifies the range of the corrupted memory area.

[0011] An information processing system according to a fourth aspect is an information processing system according to any one of the first to third aspects, wherein the first processor reserves the alternative memory area by avoiding a memory area to be used for the processing instructed by the instruction.

[0012] An information processing system according to a fifth aspect is an information processing system according to any one of the first to third aspects, in which the first processor re-notifies the second processor of the alternative memory area and then re-notifies the command.

[0013] A control program according to a sixth aspect is a program for causing a computer to, when a communication partner processor is notified of the range of a corrupted memory area detected in connection with the execution of the processing instructed by the instruction in response to an instruction notified to the communication partner processor to execute the instructed processing, notify the processor of a memory area other than the range of the memory area notified by the processor as being corrupted as an alternative memory area, and execute a process of re-notifying the processor of the instruction.

[0014] The exception program of the seventh aspect is a program for causing a computer to execute a process, when a processing instructed by a communication partner processor cannot be executed due to corruption of a memory area used to execute the processing instructed by an instruction from the processor, of notifying the processor of the range of the corrupted memory area and requesting the processor to allocate a new memory area different from the range of the corrupted memory area for the processing instructed by the processor. Effect of the Invention

[0015] According to the first, sixth, and seventh aspects, there is an effect that even if an exception due to corruption of a memory area occurs in the second processor while the second processor is executing processing instructed by the first processor, the second processor can continue to perform the instructed operation.

[0016] According to the second aspect, there is an advantage that the second processor can distinguish whether or not the exception is one that the second processor can recover from by itself.

[0017] According to the third aspect, there is an advantage that the range of the damaged memory area can be notified to the first processor.

[0018] According to the fourth aspect, there is an effect that it is possible to exclude a memory area that is likely to be used and secure an alternative memory area.

[0019] According to the fifth aspect, there is an effect that the first processor can issue a command after confirming that the second processor has secured an alternative memory area. [Brief description of the drawings]

[0020] [Figure 1] FIG. 1 illustrates an example of the configuration of an image forming apparatus. [Diagram 2] 5 is a diagram illustrating an example of data transmission and reception between a control unit and an image processing unit. FIG. [Diagram 3]FIG. 4 is a sequence diagram showing an example of a data flow between CPUs in a normal state. [Figure 4] FIG. 13 is a diagram illustrating an example of a response configuration. [Diagram 5] 13 is a flowchart showing an example of the flow of exception handling executed by an exception detection task. [Figure 6] FIG. 11 is a sequence diagram showing an example of the flow of data between CPUs when an exception that cannot be recovered from occurs. [Figure 7] 13 is a flowchart showing an example of the flow of exception handling executed by a recovery task. [Figure 8] 11 is a flowchart showing an example of the flow of exception handling executed by an exception diagnosis task. [Figure 9] FIG. 13 is a diagram illustrating an example of the configuration of a response when an exception that cannot be recovered from occurs. [Figure 10] 5 is a flowchart showing an example of the flow of a control process executed by a control unit. [Figure 11] FIG. 13 illustrates an example of allocating an alternative memory area. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0021] Hereinafter, the disclosed embodiments will be described with reference to the drawings. Note that the same components and processes are given the same reference numerals throughout the drawings, and redundant description will be omitted.

[0022] 1 is a diagram showing an example of the configuration of an image forming apparatus 1 that performs image processing instructed by a user. The image forming apparatus 1 is configured by a computer 10, for example.

[0023] The image forming apparatus 1 includes a control unit 11 that receives instructions from a user and controls the entire image forming apparatus 1 to execute the instructed processing, and an image processing unit 12 that performs image processing in accordance with the instructions from the control unit 11.

[0024] The control unit 11 includes a CPU (Central Processing Unit) 11A which is an example of a first processor, a RAM (Random Access Memory) 11B which is used as a temporary working area for the CPU 11A, and a non-volatile memory 11C which stores a control program for causing the computer 10 to function as the control unit 11. The CPU 11A, the RAM 11B, and the non-volatile memory 11C are each connected via a bus 11D.

[0025] On the other hand, the image processing unit 12 also includes a CPU 12A which is an example of a second processor, a RAM 12B which is used as a temporary working area for the CPU 12A, and a non-volatile memory 12C which stores an image processing program and an exception program which cause the computer 10 to function as the image processing unit 12. The CPU 12A, the RAM 12B, and the non-volatile memory 12C are each connected via a bus 12D.

[0026] In this way, the control unit 11 and the image processing unit 12 are assigned with dedicated processors and memories for executing the respective processes. The CPU 11A reads a control program from the non-volatile memory 11C and executes the overall control of the image forming apparatus 1 performed by the control unit 11. The CPU 12A reads an image processing program corresponding to the instructed process from the non-volatile memory 12C and executes the image processing performed by the image processing unit 12. That is, the image processing program is an example of a program corresponding to the process instructed by the CPU 11A. The non-volatile memory 12C stores a plurality of image processing programs that define the contents of the process for each process instructed by the control unit 11.

[0027] Furthermore, as will be described later, even if an exception occurs during the execution of the image processing program, the CPU 12A reads an exception program from the non-volatile memory 12C and executes exception processing to continue the processing instructed by the control unit 11. An "exception" is a notification that occurs when the CPU 12A recognizes an unexpected event, such as accessing an invalid memory address or division by "0".

[0028] Nonvolatile memory 11C and nonvolatile memory 12C are examples of storage devices that maintain stored information even if the power supplied to each memory is cut off, and may be implemented by semiconductor memories or hard disks, for example.

[0029] The computer 10 also includes a RAM 13 and an input / output interface (I / O) 14. A CPU 11A of the control unit 11, a CPU 12A of the image processing unit 12, the RAM 13, and the I / O 14 are connected to each other via a bus 15.

[0030] To the I / O 14, a communication unit 16, an input unit 17, a display unit 18, an image forming unit 19, and a scanner unit 20 are connected.

[0031] The communication unit 16 is connected to a communication line and has a communication protocol for transmitting and receiving data to and from an external device (not shown) connected to the same communication line. The communication unit 16 performs data communication with the external device according to instructions from the CPU 11A in the control unit 11.

[0032] The input unit 17 is a device that receives instructions from a user and notifies the CPU 11A of the control unit 11 of the received instructions, and may be, for example, a button, a touch panel, or a pointing device.

[0033] The display unit 18 is an example of a display device that displays information processed by the image forming apparatus 1, and may be, for example, a liquid crystal display or an organic EL (Electro Luminescence) display. The display unit 18 displays information according to an instruction from the CPU 11A in the control unit 11.

[0034] Image forming unit 19 is a unit that forms an image on a recording medium such as paper in accordance with instructions from CPU 12A in image processing unit 12. The image forming method in image forming unit 19 may be any method, such as an electrophotographic method, an inkjet method, or an offset printing method.

[0035] The scanner unit 20 is a unit that optically reads the contents of an original placed on, for example, a platen glass, in accordance with instructions from the CPU 12A in the image processing unit 12, and converts the read contents of the original into an image.

[0036] Each unit connected to the I / O 14 is an example, and units are connected according to the functions of the image forming apparatus 1. A unit refers to an execution unit that executes processing under the control of a processor such as CPU 11A or CPU 12A.

[0037] Next, a method of transmitting and receiving data between the control unit 11 and the image processing unit 12 in the image forming apparatus 1 having the above configuration will be described.

[0038] Fig. 2 is a diagram showing an example of data transmission and reception between the control unit 11 and the image processing unit 12. As shown in Fig. 2, the control unit 11 and the image processing unit 12 transmit and receive data via a RAM 13 which is readable and writable by the CPU 11A and the CPU 12A, respectively. Specifically, the control unit 11 and the image processing unit 12 transmit and receive data via a command area 2 which is secured in advance on the RAM 13 as an area for data transmission and reception between the control unit 11 and the image processing unit 12. In other words, the RAM 13 is an example of a shared memory which is accessible by both the CPU 11A and the CPU 12B.

[0039] When the CPU 12A receives an instruction (hereinafter, referred to as a "command") from the CPU 11A instructing the execution of some process related to image processing, the CPU 12A generates an execution task 6 and executes the instructed process through the execution task 6. Since the CPU 12A generates an execution task 6 every time it receives a command, it assigns a task ID for identifying the execution task 6 to each execution task 6.

[0040] In the RAM 12B, a memory map is set that specifies the memory area that can be used for each purpose. Therefore, when the CPU 12A executes a specified process, the CPU 12A executes the process using a specified memory area 3 that is reserved in advance in the RAM 12B to execute the specified process.

[0041] As already explained, since CPU 12A is a processor specialized for image processing, CPU 12A does not manage the memory of RAM 12B, but rather manages the memory of RAM 12B by CPU 11A notifying CPU 12A of the memory area that can be used for each purpose. That is, the memory map of RAM 12B including the designated memory area 3 is set by CPU 11A. CPU 12A executes the instructed processing according to the memory map set by CPU 11A. When execution task 6 uses the designated memory area 3, CPU 12A associates the task ID of execution task 6 with the designated memory area 3 to be used.

[0042] Furthermore, in preparation for the case where an exception is detected while the execution task 6 is executing the instructed process according to the image processing program corresponding to the instruction, the CPU 12A generates an exception detection task 7, a recovery task 8, and an exception diagnosis task 9. When an exception occurs, the process in the execution task 6 is interrupted.

[0043] The exception detection task 7 detects an exception that has occurred in the execution task 6, and identifies the execution task 6 in which the exception has occurred by referring to the task ID added to the exception. Hereinafter, the execution task 6 in which the exception has occurred is referred to as the "exception occurrence task 6A."

[0044] The recovery task 8 regenerates the exception occurrence task 6A if the exception can be prevented by regenerating the exception occurrence task 6A. The image processing program executed in the exception occurrence task 6A is re-executed by regenerating the exception occurrence task 6A. The act of removing the cause of the exception by regenerating the execution task 6 in which the exception occurred and redoing the instructed processing in this way is called "recovering from the exception." On the other hand, if the cause of the exception cannot be removed even by regenerating the exception occurrence task 6A, the cause of the exception is often due to a physical problem, for example, damage to the designated memory area 3. In this case, the recovery task 8 requests the exception diagnosis task 9 to perform a memory diagnosis of the designated memory area 3. Damage to the designated memory area 3 refers to a state in which an abnormality occurs in the range of the RAM 12B that constitutes the designated memory area 3.

[0045] The exception diagnosis task 9 diagnoses the damaged state of the specified memory area 3 in response to a request from the recovery task 8, and notifies the CPU 11A of the control unit 11 of the diagnosis result.

[0046] FIG. 3 is a sequence diagram showing an example of the flow of data between the CPU 11A and the CPU 12A when no exception occurs in the execution task 6, that is, in normal operation.

[0047] The CPU 11A writes a command for instructing execution of a process received from a user to the command area 2 of the RAM 13 (see sequence F1 in FIG. 3). At this point, since the process instructed by the command has not yet been completed, the CPU 11A sets the command status, which indicates the execution status of the process instructed by the command, to "waiting for response."

[0048] The CPU 12A refers to the command written in the command area 2 of the RAM 13 to determine the process to be executed (see sequence F2 in FIG. 3).

[0049] After executing the instructed process, the CPU 12A writes the response with the exception identifier added to the command area 2 of the RAM 13 (see sequence F3 in FIG. 3). The exception identifier is an identifier that indicates whether the image processing unit 12 normally executes the process instructed by the command. If the image processing unit 12 normally executes the process instructed by the command, the exception identifier is set to "0", and if an exception occurs and the process is interrupted, the exception identifier is set to "1". Even if an exception occurs in the execution task 6, if the instructed process can be normally executed by regenerating the execution task 6, the exception identifier is set to "0". Note that the value of the exception identifier is just an example, and any value may be set as long as the CPU 11A can recognize whether an exception has occurred in the image processing unit 12.

[0050] The CPU 11A refers to the response written in the command area 2 of the RAM 13 to grasp the execution status of the processing in the image processing unit 12 in response to the command (see sequence F4 in FIG. 3). If the instructed processing is completed normally, the CPU 11A sets the command status to "Complete." If an exception occurs in the image processing unit 12, the CPU 11A changes the designated memory area 3 so that the instructed processing is continued by the image processing unit 12.

[0051] Fig. 4 is a diagram showing an example of the structure of a response. The response shown in Fig. 4 includes a return and an exception identifier. The return is an identifier indicating that the response has been normally transmitted from the CPU 12A to the CPU 11A via the RAM 13. If the response has been normally transmitted, for example, "1" is set in the return, and if the response has not been normally transmitted, for example, "0" is set in the return.

[0052] Next, a detailed description will be given of the processing executed by the control unit 11 and the image processing unit 12 when an exception occurs in the execution task 6 of the image processing unit 12.

[0053] 5 is a flowchart showing an example of the flow of exception handling executed by the exception detection task 7 when an exception occurs in processing being executed by the execution task 6. The CPU 12A of the image processing unit 12 reads the exception program stored in the non-volatile memory 12C and executes the exception handling.

[0054] FIG. 6 is a sequence diagram showing an example of the flow of data between the CPU 11A and the CPU 12A when an unrecoverable exception occurs in the execution task 6. In FIG.

[0055] As an example, it is assumed that CPU 11A of control unit 11 has notified CPU 12A of image processing unit 12 of a command to perform copy processing (see sequences F1 and F2 in FIG. 6). Copy processing is processing in which the contents of an original are optically read by scanner unit 20, the contents of the original are converted into an image, and the image of the original is formed on a recording medium by image forming unit 19. In this case, execution task 6 executes the copy processing according to an image processing program that defines the copy processing.

[0056] When an exception occurs in the execution task 6 that executes the copy process, an exception interrupt occurs due to an interrupt function provided in the CPU 12A, and an exception occurrence notification is sent to the exception detection task 7.

[0057] In step S10 of FIG. 5, the exception detection task 7 refers to the task ID of the exceptional task 6A added to the exception occurrence notification, and identifies the exceptional task 6A from among the execution tasks 6 being executed.

[0058] The exception occurrence notification also includes at least one of the program name of the image processing program in which the exception occurred, the name of the function in the image processing program in which the exception occurred, and the line number of the image processing program at the position where the exception occurred. Therefore, in step S20, the exception detection task 7 refers to the exception occurrence notification to identify the program name of the image processing program corresponding to the copy process in which the exception occurred, and also identifies the position in the image processing program corresponding to the copy process where the exception occurred, using at least one of the function name and line number.

[0059] In step S30, the exception detection task 7 sends an exception detection notification to the recovery task 8, which includes the task ID of the exception occurrence task 6A identified in step S10, and the program name of the image processing program in which the exception has occurred and the location of the image processing program in which the exception has occurred, both identified in step S20. This ends the exception processing shown in Fig. 5, which is executed by the exception detection task 7.

[0060] FIG. 7 is a flowchart showing an example of the flow of exception handling executed by the recovery task 8 when an exception detection notification is received from the exception detection task 7.

[0061] In step S50, the recovery task 8 diagnoses whether the exception that occurred is a recoverable exception by using the program name of the image processing program where the exception occurred and the position of the image processing program where the exception occurred, which are added to the exception detection notification. Specifically, the recovery task 8 diagnoses whether the exception that occurred is a recoverable exception by referring to exception history information that associates the program name of the image processing program where the exception occurred, the position where the exception occurred in the image processing program represented by the program name, and a recovery record that records whether the exception was recovered by regeneration of the exception occurrence task 6A. That is, every time an exception occurs, the recovery task 8 records the recovery status of the exception in the exception history information stored in the non-volatile memory 12C, and diagnoses whether the newly occurred exception is a recoverable exception by referring to the recovery status of the past exception.

[0062] For example, assume that an exception previously occurred at the same position in the same image processing program as the image processing program in which the new exception occurred, and that information indicating that the exception was recovered by regenerating the exception-occurring task 6A is recorded in the exception history information. In this case, the recovery task 8 diagnoses that the exception that occurred is a recoverable exception. On the other hand, if information having the same program name and position as the program name and position of the image processing program in which the exception occurred is not recorded in the exception history information, the recovery task 8 diagnoses that the exception that occurred is not a recoverable exception.

[0063] The diagnosis result of whether the exception that has occurred is a recoverable exception is not only affected by the recovery status of the exception that has occurred in the past. For example, the recovery task 8 may diagnose whether the exception that has occurred is a recoverable exception by referring to the exception recovery information that specifies the combination of the program name of the image processing program that is recoverable even if the exception occurs and the location of the image processing program represented by the program name. Even if the exception that has occurred is not recorded as a recoverable exception in the exception history information, if it is recorded as a recoverable exception in the exception recovery information, the recovery task 8 diagnoses that the exception that has occurred is a recoverable exception. The exception recovery information may be stored in the non-volatile memory 12C in advance by the manufacturer of the image forming apparatus 1 at the time of shipping the image forming apparatus 1 from the factory.

[0064] In step S60, the recovery task 8 determines whether or not the exception that occurred is a recoverable exception, using the diagnosis result obtained in step S50. If the exception that occurred is not a recoverable exception, the process proceeds to step S70.

[0065] In this case, since corruption of the designated memory area 3 used by the exception occurrence task 6A is considered to be the cause of the exception, the recovery task 8 notifies the exception diagnosis task 9 of a diagnosis request requesting diagnosis of the corrupted state of the designated memory area 3 used by the exception occurrence task 6A. In this case, the recovery task 8 adds the task ID of the exception occurrence task 6A to the diagnosis request. With the above, the exception handling shown in FIG. 7 executed by the recovery task 8 is completed.

[0066] On the other hand, if it is determined in step S60 that the exception that has occurred can be recovered from, the process proceeds to step S80.

[0067] In step S80, the recovery task 8 deletes the exception occurrence task 6A, and then regenerates the execution task 6 that executes the copy process, and ends the exception processing shown in Fig. 7 executed by the recovery task 8. As a result, the regenerated execution task 6 continues to execute the copy process without generating an exception.

[0068] FIG. 8 is a flowchart showing an example of the flow of exception handling executed by the exception diagnosis task 9 when a diagnosis request is received from the recovery task 8.

[0069] In step S100, the exception diagnosis task 9 refers to the task ID added to the diagnosis request and identifies the specified memory area 3 used by the exception occurrence task 6A.

[0070] In step S110, the exception diagnosis task 9 performs memory diagnosis on the designated memory area 3 identified in step S100. Specifically, the exception diagnosis task 9 writes a predetermined value to the entire area of ​​the designated memory area 3, and then reads the value from the entire area of ​​the designated memory area 3. If the read value is the same as the written value, the write destination memory is diagnosed as normal. On the other hand, if the read value is different from the written value, the write destination memory is diagnosed as damaged. Therefore, the exception diagnosis task 9 identifies the range of the designated memory area 3 in which the read value is different from the written value as the range of the memory area where the memory is damaged. The range of the memory area where the memory is damaged is called the "damaged memory area." The damaged memory area is represented by a memory address.

[0071] The exception diagnosis task 9 may perform a process of writing and reading a predetermined value multiple times throughout the specified memory area 3, and diagnose the memory as corrupted if the read value differs from the written value even once.

[0072] In step S120, the exception diagnosis task 9 notifies the recovery task 8 of the diagnosis result of the designated memory area 3 used by the exception occurrence task 6A. The diagnosis result includes the presence or absence of corruption in the designated memory area 3 used by the exception occurrence task 6A, and, if the designated memory area 3 is corrupted, the memory address indicating the corrupted memory area. With the above, the exception handling shown in FIG. 8 executed by the exception diagnosis task 9 is completed.

[0073] The recovery task 8, which has received the diagnosis result from the exception diagnosis task 9, adds the diagnosis result to a response to a command from the control unit 11 and notifies the CPU 11A of the control unit 11 (see sequences F3 and F4 in FIG. 6).

[0074] The recovery task 8 may calculate the memory capacity of each damaged memory area notified by the exception diagnosis task 9, and when the ratio of the total memory capacity of each damaged memory area to the total memory capacity of the RAM 12B is equal to or greater than a predetermined ratio, may notify the control unit 11 that an abnormality is found in the RAM 12B, separately from the response. Also, the recovery task 8 may notify the control unit 11 that an abnormality is found in the RAM 12B, separately from the response, when the total memory capacity of each damaged memory area is equal to or greater than a predetermined memory capacity. The control unit 11 that has received the occurrence of an abnormality in the RAM 12B from the recovery task 8 controls the display unit 18 to display a warning to prompt the replacement of the RAM 12B. Furthermore, the control unit 11 may control the communication unit 16 to request the replacement of the RAM 12B via a communication line to an external device installed in a company that maintains the image forming apparatus 1.

[0075] Fig. 9 is a diagram showing an example of a response to be notified to the CPU 11 when an exception occurs that cannot be recovered from only by the processing in the image processing unit 12. As shown in Fig. 9, the exception identifier of the response in this case is set to "1", which indicates that an exception has occurred and the copy process has been interrupted, and the diagnosis result generated by the exception diagnosis task 9 is added.

[0076] Even if an exception occurs, if the copy process ends normally by regenerating the execution task 6, the recovery task 8 treats it as if no exception occurred. In this case, the recovery task 8 sets the return to "1" and notifies the CPU 11A of the control unit 11 of a response (see FIG. 4) in which the exception identifier is set to "0."

[0077] 10 is a flowchart showing an example of the flow of control processing executed by the control unit 11 when a response including information that the designated memory area 3 is corrupted is received as a diagnostic result. The CPU 11A of the control unit 11 reads a control program stored in the non-volatile memory 11C and executes the control processing.

[0078] In step S200, the control unit 11 secures a new designated memory area 3 that does not include a damaged memory area, that is, an alternative memory area 5, from the RAM 12B.

[0079] In this case, the control unit 11 secures the alternative memory area 5, avoiding the memory area used for the process instructed by the command. For example, the image processing unit 12 receives an image of an original scanned by the scanner unit 20, and stores it in the scanner memory area 22A secured in advance in the RAM 12B. The image processing unit 12 also converts an image to be transferred to the image forming unit 19 into a raster format or vector format, using the image formation memory area 22B secured in advance in the RAM 12B, and forms the image on a recording medium. Therefore, when the control unit 11 instructs the image processing unit 12 to execute a copy process, it secures the alternative memory area 5, avoiding the scanner memory area 22A and the image formation memory area 22B used in the copy process.

[0080] Fig. 11 is a diagram showing an example of securing the alternative memory area 5 by the control unit 11. As shown in Fig. 11, the control unit 11 secures the alternative memory area 5 from the RAM 12B, avoiding, for example, the designated memory area 3 including the damaged memory area, the scanner memory area 22A, and the image formation memory area 22B.

[0081] In step S210 in FIG. 10, the control unit 11 writes the memory address of the alternative memory area 5 secured in step S200 into the command area 2 of the RAM 13 (see sequence F5 in FIG. 6), and notifies the CPU 12A (see sequence F6 in FIG. 6).

[0082] The CPU 12A of the image processing unit 12, which has been notified of the memory address of the alternative memory area 5 from the control unit 11, allocates the alternative memory area 5 to be used for copy processing in the specified range of the RAM 12B. The CPU 12A writes a response to the allocation of the alternative memory area 5 in the command area 2 of the RAM 13 (see sequence F7 in FIG. 6), and notifies the CPU 11A (see sequence F8 in FIG. 6).

[0083] Therefore, in step S220, the control unit 11 determines whether or not a response to the notification of the alternative memory area 5 has been received from the image processing unit 12.

[0084] If a response has not yet been received, the control unit 11 repeatedly executes the determination process of step S220 and waits until a response is received from the image processing unit 12. If a response has been received, the process proceeds to step S230.

[0085] In step S230, the control unit 11 determines whether the exception identifier of the received response is "0." If the exception identifier of the received response is not "0," this means that for some reason, the alternative memory area 5 was not allocated to the RAM 12B in the image processing unit 12. Therefore, the process proceeds to step S200, and the control unit 11 secures a new alternative memory area 5.

[0086] On the other hand, if the exception identifier of the received response is "0", this means that the allocation of the alternative memory area 5 to the RAM 12B in the image processing unit 12 has been performed normally, and the process proceeds to step S240.

[0087] In step S240, the control unit 11 writes the same command as the command represented by sequence F1 in FIG. 6, i.e., a command instructing to execute a copy process, into the command area 2 of the RAM 13 (see sequence F9 in FIG. 6), and notifies the CPU 12A again (see sequence F10 in FIG. 6).

[0088] The CPU 12A of the image processing unit 12, which has been re-notified of the command to execute the copy process from the control unit 11, re-executes the copy process through the execution task 6. The CPU 12A writes a response to the copy process in the command area 2 of the RAM 13 (see sequence F11 in FIG. 6), and notifies the CPU 11A (see sequence F12 in FIG. 6).

[0089] Therefore, in step S250, the control unit 11 determines whether or not a response has been received from the image processing unit 12 in response to the re-notification of the command.

[0090] If a response has not yet been received, the control unit 11 repeatedly executes the determination process of step S250 and waits until a response is received from the image processing unit 12. If a response has been received, the process proceeds to step S260.

[0091] In step S260, the control unit 11 determines whether the exception identifier of the received response is "0". If the exception identifier of the received response is not "0", an exception has occurred again during the execution of the copy process. Therefore, the process proceeds to step S200, and the control unit 11 secures a new alternative memory area 5.

[0092] On the other hand, if the exception identifier of the received response is "0", this means that the copy process was performed normally in the image processing unit 12, and the process proceeds to step S270.

[0093] In step S270, the control unit 11 changes the command status, which was set to "waiting for response" in response to the notification of the command to the image processing unit 12, to "completed," and ends the control process shown in FIG.

[0094] In the control process shown in FIG. 10, as an example, notification of the alternative memory area 5 to the image processing unit 12 and re-notification of the command are performed separately, but the alternative memory area 5 may be notified to the image processing unit 12 together with the command.

[0095] Thus, according to the image forming apparatus 1 of the present disclosure, when an exception occurs while the image processing unit 12 is executing a process instructed by the control unit 11, the image processing unit 12 determines whether the exception is recoverable or not. If the exception is recoverable, the image processing unit 12 regenerates the execution task 6 and continues the process instructed by the control unit 11. On the other hand, when an exception occurs that cannot be recovered by the process of the image processing unit 12 alone, the image processing unit 12 identifies a damaged memory area from the designated memory area 3 and notifies the control unit 11. As a result, the alternative memory area 5 is notified by the control unit 11, so that even if an exception occurs due to damage to the designated memory area 3, the image processing unit 12 continues the process instructed by the control unit 11 using the alternative memory area 5.

[0096] The image forming device 1, whose functions are realized by a plurality of processors, is an example of an information processing system according to the present embodiment. The information processing system is a device having a plurality of processors to which different roles are assigned, such as CPU 11A instructing the execution of a process and CPU 12A executing the process instructed by CPU 11A. Therefore, the exception processing shown in Fig. 5, Fig. 7, and Fig. 8, and the control processing shown in Fig. 10 are applied to CPU 11A and CPU 12A constituting an information processing system different from image forming device 1.

[0097] Furthermore, the CPU 11A and the CPU 12A of the information processing system do not necessarily need to be in the same housing, and may be separated into different housings. In this case, the CPU 11A and the CPU 12A may be connected by a communication line such as a LAN (Local Area Network), Bluetooth (registered trademark), or Wi-Fi (registered trademark) instead of the bus 15.

[0098] Although one form of the image forming apparatus 1 according to the present disclosure has been described above using the embodiment, the disclosed form of the image forming apparatus 1 is merely an example, and the form of the image forming apparatus 1 is not limited to the scope described in the embodiment. Various changes or improvements can be made to the embodiment without departing from the gist of the present disclosure, and forms with such changes or improvements are also included in the technical scope of the disclosure.

[0099] In the embodiment, an example has been described in which exception handling and control processing are implemented by software. However, the same processes as those in the exception handling flowcharts shown in Figures 5, 7, and 8 and the control processing flowchart shown in Figure 10 may be implemented by hardware. In this case, the processing speed can be increased compared to when each process is implemented by software.

[0100] In the above embodiment, the term "processor" refers to a processor in a broad sense, including general-purpose processors (e.g., CPU11A and CPU12A) and dedicated processors (e.g., GPU: Graphics Processing Unit, ASIC: Application Specific Integrated Circuit, FPGA: Field Programmable Gate Array, programmable logic device, etc.).

[0101] Furthermore, the operations of the processor in the above embodiment may not only be performed by one processor, but may be performed by multiple processors located at physically separate locations working together. The order of the operations of the processor is not limited to the order described in the above embodiment, and may be changed as appropriate. The "information processing system" in the present embodiment has been described as being composed of a single device, the image forming device 1, as an example, but may also be composed of multiple devices.

[0102] In the above embodiment, an example has been described in which the control program is stored in the nonvolatile memory 11C and the exception program is stored in the nonvolatile memory 12C. However, the storage destinations of the control program and the exception program are not limited to the nonvolatile memory 11C and the nonvolatile memory 12C. The control program and the exception program of the present disclosure can also be provided in a form recorded in a storage medium readable by the computer 10. For example, the control program and the exception program may be provided in a form recorded in an optical disk such as a CD-ROM (Compact Disk Read Only Memory), a DVD-ROM (Digital Versatile Disk Read Only Memory), and a Blu-ray disk. The control program and the exception program may also be provided in a form recorded in a portable semiconductor memory such as a Universal Serial Bus (USB) memory and a memory card. The nonvolatile memory 11C, the nonvolatile memory 12C, the CD-ROM, the DVD-ROM, the Blu-ray disk, the USB, and the memory card are examples of non-transitory storage media.

[0103] Furthermore, the image forming apparatus 1, which is an example of an information processing system, may download a control program and an exception program from an external device connected to a communication line via the communication unit 16, and store the downloaded control program and exception program in a storage device. In this case, the CPU 11A of the image forming apparatus 1 reads the control program downloaded from the external device and performs control processing, and the CPU 12A of the image forming apparatus 1 reads the exception program downloaded from the external device and performs exception processing.

[0104] The following are notes related to this embodiment.

[0105] (((1))) A first processor and a second processor are included, When the second processor is unable to execute the process instructed by the first processor due to corruption of a memory area used for executing the process instructed by an instruction from the first processor, the second processor notifies the first processor of a range of the corrupted memory area; the first processor notifies the second processor of an alternative memory area, which is a memory area different from a range of the corrupted memory area, and re-notifies the second processor of the instruction; The second processor executes the process instructed by the instruction using the alternative memory area. Information processing system.

[0106] (((2))) the second processor, when detecting an exception that occurs when the second processor recognizes an unexpected phenomenon while reading a program corresponding to a process instructed by the first processor and executing the instructed process, identifies a position in the program where the exception occurred; Select whether to re-execute the program from the program position where the exception occurred, or to diagnose the corrupted state of the memory area used. An information processing system according to (((1))).

[0107] (((3))) When the second processor diagnoses that the memory area being used is corrupted in the memory area diagnosis, the second processor identifies the range of the corrupted memory area. The information processing system according to (((2))).

[0108] (((4))) When the total memory capacity of each of the corrupted memory areas is equal to or greater than a predetermined memory capacity, or when the ratio of the total memory capacity of each of the corrupted memory areas to the total memory capacity of the memory including each of the corrupted memory areas is equal to or greater than a predetermined ratio, the second processor notifies the first processor that an abnormality has been found in the memory including the corrupted memory areas. 13. An information processing system according to any one of ((1))) to (((3))).

[0109] (((5))) The first processor reserves the alternative memory area by avoiding a memory area to be used for the process specified by the instruction. 13. An information processing system according to any one of ((1))) to (((4))).

[0110] (((6))) The first processor notifies the second processor of the alternative memory area and then re-notifies the second processor of the instruction. 13. The information processing system according to claim 12, wherein the first and second information processing systems are connected to a first and second input terminal.

[0111] (((7))) On the computer, In response to an instruction sent to a processor of a communication partner to execute a specified process, the processor notifies the range of a corrupted memory area detected during the execution of the process specified by the instruction, a memory area different from the range of the memory area notified by the processor as being corrupted, as an alternative memory area, to the processor, and a process of re-notifying the processor of the instruction Control program.

[0112] (((8))) On the computer, When a memory area used for executing a process instructed by an instruction from a processor of a communication partner is corrupted and the process instructed by the processor cannot be executed, the range of the corrupted memory area is notified to the processor, and a process is executed to request the processor to allocate a new memory area different from the range of the corrupted memory area for the process instructed by the processor. Exception program.

[0113] According to (((1))), (((7))), and (((8))), even if an exception caused by corruption of a memory area occurs in the second processor while the second processor is executing processing instructed by the first processor, the second processor can continue to perform the instructed operation.

[0114] According to (((2))), there is an advantage that the second processor can distinguish whether or not the exception is one that the second processor can recover from by itself.

[0115] According to (((3))), it is possible to notify the first processor of the range of the corrupted memory area.

[0116] According to (((4))), the second processor can notify the first processor of the timing of memory exchange.

[0117] According to (((5))), it is possible to avoid memory areas that may be used and to secure alternative memory areas.

[0118] According to (((6))), the first processor can issue a command after confirming that the second processor has secured an alternative memory area. [Explanation of symbols]

[0119] 1. Image forming device 2 Command Area 3. Specified memory area 5 Alternate Memory Area 6 Execution Task 6A Exceptional Task 7 Exception detection task 8 Recovery Tasks 9 Exception Diagnosis Tasks 10. Computers 11 Control section 11A (Control unit) CPU 11B (control) RAM 11C (Control) Non-volatile memory 11D (Control) Bus 12 Image processing section 12A (Image processing unit) CPU 12B (image processing) RAM 12C Non-volatile Memory 12D (Image Processing) Bus 15 Bus 16 Communication Unit 17 Input Unit 18 Display unit 19 Image forming unit 20 Scanner unit 22A Scanner memory area 22B Image formation memory area F1~F12 sequence

Claims

1. A first processor and a second processor are included, When the second processor is unable to execute the process instructed by the first processor due to corruption of a memory area used for executing the process instructed by an instruction from the first processor, the second processor notifies the first processor of a range of the corrupted memory area; the first processor notifies the second processor of an alternative memory area, which is a memory area different from a range of the corrupted memory area, and re-notifies the second processor of the instruction; The second processor executes the process instructed by the instruction using the alternative memory area. Information processing system.

2. the second processor, when detecting an exception that occurs when the second processor recognizes an unexpected phenomenon while reading a program corresponding to a process instructed by the first processor and executing the instructed process, identifies a position in the program where the exception occurred; Select whether to re-execute the program from the point in the program where the exception occurred, or to diagnose the corrupted state of the memory area being used. The information processing system according to claim 1 .

3. When the second processor diagnoses that the memory area being used is corrupted in the memory area diagnosis, the second processor identifies the range of the corrupted memory area. The information processing system according to claim 2 .

4. The first processor reserves the alternative memory area by avoiding a memory area to be used for the process specified by the instruction.

4. The information processing system according to claim 1.

5. The first processor notifies the second processor of the alternative memory area and then re-notifies the second processor of the instruction.

4. The information processing system according to claim 1.

6. On the computer, In response to an instruction sent to a processor of a communication partner to execute a specified process, the processor notifies the range of a corrupted memory area detected during the execution of the process specified by the instruction, a memory area different from the range of the memory area notified by the processor as being corrupted, as an alternative memory area, to the processor, and a process of re-notifying the processor of the instruction Control program.

7. On the computer, When a memory area used for executing a process instructed by an instruction from a processor of a communication partner is corrupted and the process instructed by the processor cannot be executed, the range of the corrupted memory area is notified to the processor, and a process is executed to request the processor to allocate a new memory area different from the range of the corrupted memory area for the process instructed by the processor. Exception program.

Citation Information

Patent Citations

  • Simple multiprocessor monitoring system

    JP1997114701A

  • Computer system

    JP2010186242A