Execution scheduling determination method and execution scheduling determination program

The execution scheduling method optimizes FPGA job processing by rescheduling and canceling jobs to improve throughput and reduce firmware setup time, addressing inefficiencies in handling multiple applications.

JP7548003B2Active Publication Date: 2024-09-10FUJITSU LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020217001
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-12-25
Publication Date
2024-09-10
Estimated Expiration
2040-12-25

AI Technical Summary

Technical Problem

FPGAs are expensive and inefficient in processing multiple applications due to the need for separate firmware setup for each application, leading to increased device usage and potential job timeouts.

Method used

An execution scheduling method that reschedules jobs if they do not meet timeout conditions, allowing for efficient processing by canceling and rearranging jobs to maximize throughput while ensuring timeout compliance.

Benefits of technology

This method enables the processing of a higher number of jobs by optimizing job execution order and reducing firmware setup time, thereby enhancing FPGA efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000017_0000
    Figure 00000017_0000
  • Figure 00000017_0001
    Figure 00000017_0001
  • Figure 00000018_0000
    Figure 00000018_0000
Patent Text Reader

Abstract

To provide an execution scheduling determination method, or the like, for processing jobs as many as possible.SOLUTION: When a running job and a job in a queue do not satisfy a set timeout condition, a CPU executes rescheduling of the jobs. The CPU calculates the number of jobs to be processed for the case of suspending the running job for rescheduling and for the case without the rescheduling. The CPU executes the rescheduling when it is determined that the number of jobs to be processed after the rescheduling is larger.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an execution scheduling determination method and an execution scheduling determination program. [Background technology]

[0002] In recent years, FPGAs (Field Programmable Gate Arrays) have become known for use in computational processing such as image processing and AI (Artificial Intelligence). FPGAs are devices that incorporate logic circuits and allow the logic circuits to be rewritten multiple times by writing firmware written in a dedicated hardware language. When a computation is interrupted, the results of the computation up to that point are discarded, meaning that the computation cannot be resumed from the middle.

[0003] Moreover, it takes time to write firmware to FPGAs. Different applications are connected to each FPGA, so that the firmware cannot be rewritten by other applications. Therefore, the number of FPGAs increases according to the type of application. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] Japanese Patent Application Publication No. 8-55036 Summary of the Invention [Problem to be solved by the invention]

[0005] However, since FPGAs are expensive devices, there is a demand to reduce the number of FPGAs. Therefore, there is a demand for FPGAs that can process multiple different applications on a single FPGA. Furthermore, even when multiple different applications are processed on a single FPGA, there is a demand for a scheduling method that can process as many jobs as possible by efficiently executing the execution requests (jobs) of each application.

[0006] According to one aspect, an object of the present invention is to provide an execution scheduling determination method and an execution scheduling determination program capable of processing as many jobs as possible. [Means for solving the problem]

[0007] In one aspect of the execution schedule determination method, when a currently running job and a queued job do not satisfy a set timeout condition, a process is executed to calculate the number of jobs that can be processed in a case where the currently running job is stopped and rescheduled, and a case where the rescheduling is not executed.Furthermore, the method executes a process to execute the rescheduling when it is determined that the number of jobs that can be processed in the case where the rescheduling is executed is greater. Effect of the Invention

[0008] On the one hand, it can handle as many jobs as possible. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 is an explanatory diagram illustrating an example of a computer according to the present embodiment. [Diagram 2] FIG. 2 is an explanatory diagram illustrating an example of a functional configuration within the CPU. [Diagram 3] FIG. 3 is an explanatory diagram showing definitions of terms used for jobs. [Figure 4] FIG. 4 is an explanatory diagram illustrating an example of the job table. [Diagram 5] FIG. 5 is an explanatory diagram illustrating an example of the application information table. [Figure 6] FIG. 6 is an explanatory diagram illustrating an example of the execution order list. [Figure 7A] FIG. 7A is an explanatory diagram showing an example of a job table and an application information table used when rescheduling is executed. [Figure 7B]FIG. 7B is an explanatory diagram showing an example of an execution order when rescheduling is executed (basic logic). [Figure 7C] FIG. 7C is an explanatory diagram showing an example of the execution order when the jobs C-1 and C-2 are judged to have timed out. [Figure 7D] FIG. 7D is an explanatory diagram showing an example of the execution order when job A-1 is stopped. [Figure 8] FIG. 8 is a flowchart showing an example of the processing operation of the CPU related to the queue management processing. [Figure 9] FIG. 9 is a flowchart showing an example of a processing operation of the CPU related to the execution process. [Figure 10] FIG. 10 is a flowchart showing an example of a processing operation of the CPU related to the queuing process. [Figure 11] FIG. 11 is a flowchart showing an example of a processing operation of the CPU related to the timeout adjustment processing. [Figure 12] FIG. 12 is a flowchart showing an example of a processing operation of the CPU relating to the limit time processing. [Figure 13] FIG. 13 is a flowchart showing an example of a processing operation of the CPU relating to the estimated end time processing. [Figure 14] FIG. 14 is a flowchart showing an example of a processing operation of the CPU related to new job input processing. [Figure 15] FIG. 15 is a block diagram illustrating an example of a computer that executes an execution scheduling determination program. [Figure 16] FIG. 16 is an explanatory diagram showing an example of a rescheduling method of the comparative example. [Figure 17] FIG. 17 is an explanatory diagram illustrating an example of an execution sequence in the comparative example. [Figure 18] FIG. 18 is an explanatory diagram showing an example of an execution order when rescheduling is executed in the comparative example. [Figure 19] FIG. 19 is an explanatory diagram illustrating an example of a problem with the execution order when rescheduling is performed in the comparative example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, examples of the execution schedule determination method and the like disclosed in the present application will be described in detail with reference to the drawings. Note that the disclosed technology is not limited to each of the examples. In addition, each of the examples shown below may be appropriately combined within a range that does not cause contradictions. Comparative Example

[0011] First, before describing the execution scheduling determination method disclosed in the present application, an example of a rescheduling method of a comparative example will be described. FIG. 16 is an explanatory diagram showing an example of a rescheduling method of a comparative example. The FPGA 203 shown in FIG. 16 makes the firmware 202 rewritable by a plurality of types of applications 201, sets up the firmware 202 for each application 201, and executes the job of the application 201 after the setup. When the FPGA 203 detects an execution request (job A-1) of the application 201A, it sets up the firmware 202A corresponding to the application 201A. After setting up the firmware 202A, the FPGA 203 executes the job A-1. Moreover, when the FPGA 203 detects an execution request (job B-1) of the application 201B, it sets up the firmware 202B corresponding to the application 201B. After setting up the firmware 202B, the FPGA 203 executes the job B-1. Furthermore, when the FPGA 203 detects an execution request (job C-1) for the application 201C, the FPGA 203 sets up the firmware 202C corresponding to the application 201C. After setting up the firmware 202C, the FPGA 203 executes the job C-1.

[0012] However, the FPGA 203 cannot recognize the timing at which an execution request (job) of the application 201 arrives. Fig. 17 is an explanatory diagram showing an example of an execution order in a comparative example. Here, it is assumed that, for example, jobs A-1, B-1, C-1, and A-2 are input to the FPGA 203 as execution requests for the application 201 in this order.

[0013] When job B-1 is submitted from application 201B while job A-1 is being executed, FPGA 203 accumulates an execution request for job B-1 in a queue. Furthermore, when job C-1 from application 201C and job A-2 from application 201A are submitted to FPGA 203 while job A-1 is being executed, FPGA 203 accumulates execution requests for jobs C-1 and A-2 in a queue. Then, FPGA 203 accumulates the jobs being accumulated in the queue in the order of jobs A-1→B-1→C-1→A-2, and executes the accumulated jobs sequentially.

[0014] FIG. 18 is an explanatory diagram showing an example of an execution order when rescheduling is executed in a comparative example. However, the FPGA 203 can reduce the overlapping setup time for each job by continuously executing jobs of the same type of application 201. That is, the FPGA 203 rearranges the execution order of jobs stored in the queue so that jobs of the same type of application 201 are consecutive. For example, in order to continuously execute jobs of the same type of application 201A, the FPGA 203 rearranges the execution order of the stored jobs A-1→B-1→C-1→A-2 to jobs A-1→A-2→B-1→C-1. As a result, the FPGA 203 can reduce the setup time of job A-2 and efficiently realize the jobs because the setup of job A-1 does not require the setup of job A-2.

[0015] FIG. 19 is an explanatory diagram showing an example of a problem of the execution order when rescheduling is executed in the comparative example. However, when the FPGA 203 rearranges the execution order of jobs so that the jobs of the same type of application 201 are consecutive, the execution timing of the jobs of other types of applications 201 is delayed. For example, when the FPGA 203 rearranges jobs A-1→B-1→C-1→A-2→A-3 to jobs A-1→A-2→A-3→B-1→C-1, each job has a timeout time, so there is a risk that each job will time out due to the delay in the execution timing. Moreover, when the FPGA 203 interrupts a job being executed, it discards the intermediate result of the job being executed. As a result, the execution time of the job up to that point is wasted. Therefore, there is a trade-off between improving the job throughput and ensuring the timeout time of the job.

[0016] Since the FPGA 203 cannot interrupt job processing, it may be better to reschedule the execution order even if it means canceling the currently running job, if it maximizes the number of jobs that can be processed. Moreover, since the FPGA 203 requires time to set up firmware for each application, it is desirable to schedule jobs of the same application so that they are consecutively grouped into one job group. Therefore, even if jobs of the same application are consecutively executed and other jobs are delayed, the overall number of jobs that can be processed may increase if the currently running job is cancelled and the execution order of other jobs in the job group that includes the job is postponed.

[0017] Therefore, there is a demand for the rescheduling execution method of this embodiment that increases the number of jobs per unit time as much as possible while taking into account the timeout period of each job, and improves job execution throughput by continuously executing jobs of the same type of application. EXAMPLES

[0018] FIG. 1 is an explanatory diagram showing an example of a computer 1 according to the present embodiment. The computer 1 shown in FIG. 1 includes a container 2, an FPGA 3, a CPU 4, and a memory 5. The container 2 is a virtual machine that executes a plurality of types of applications. The FPGA 3 is a device that executes jobs that are execution requests of applications in the container 2. The CPU 4 controls the entire computer 1. The memory 5 stores various information. The memory 5 includes a job table 11, an application information table 12, and an execution order list 13, which will be described later.

[0019] The CPU 4 provides a virtual machine which is an execution environment of the container 2, and sets up firmware for each application corresponding to a job submitted to the container 2 in the FPGA 3. After setting up the firmware in the FPGA 3, the CPU 4 causes the FPGA 3 to execute the submitted job. The CPU 4 also has, as functions, a queue management unit 4A and an execution unit 4B.

[0020] Fig. 2 is an explanatory diagram showing an example of a functional configuration in the CPU 4. The queue management unit 4A in the CPU 4 shown in Fig. 2 executes rescheduling of each job when it is determined that the job being executed and the queued jobs do not satisfy the set timeout condition due to a delay of the job being executed. Furthermore, the queue management unit 4A calculates the number of jobs that can be processed when the job being executed is stopped and rescheduled, and the number of jobs that can be processed when rescheduling is not executed. The execution unit 4B executes the rescheduling when it is determined that the number of jobs is greater when the job being executed is stopped and rescheduled.

[0021] The queue management unit 4A in the CPU 4 shown in FIG. 2 includes a job reception unit 21, a queuing unit 22, and a timeout adjustment unit 23. The job reception unit 21 receives jobs issued from an application in the container 2. The queuing unit 22 accumulates the jobs received by the job reception unit 21 in the execution order list 13. Furthermore, the queuing unit 22 registers job information for each received job in the job table 11. The timeout adjustment unit 23 determines whether or not the job being executed and the queued jobs have satisfied the set timeout condition due to the delay of the job being executed. When it is determined that the set timeout condition is not satisfied, the timeout adjustment unit 23 calculates the number of jobs that can be processed when the job being executed is stopped and rescheduling is performed, and the number of jobs that can be processed when rescheduling is not performed. Furthermore, the timeout adjustment unit 23 compares the number of jobs when rescheduling is performed with the number of jobs when rescheduling is not performed, and determines whether or not the number of jobs when rescheduling is performed is greater.

[0022] The execution unit 4B in the CPU 4 has a container control unit 31, an FPGA control unit 32, a time information registration unit 33, an application information calculation unit 34, a table writing unit 35, and an abort processing unit 36. The container control unit 31 controls the container 2. The FPGA control unit 32 controls the FPGA 3 using a device plug-in. The time information registration unit 33 registers job execution time information for each application. The application information calculation unit 34 calculates job execution time information for each application. The job execution time information is, for example, a job execution average time, a job execution distribution time, and a setup average time to be registered in the application information table 12. The table writing unit 35 registers the job execution time information for each application in the application information table 12. The abort processing unit 36 ​​is a processing unit that aborts a job being executed in response to a job abort request from the timeout adjustment unit 23.

[0023] Fig. 3 is an explanatory diagram showing definitions of terms used for jobs. A job for each application shown in Fig. 3 has a setup command and an execution command. The setup command is a command for setting logic corresponding to the application of the job in the firmware in FPGA 3. The execution command is a command for making FPGA 3 execute the job after the firmware is set up.

[0024] The submission time is the time when the job receiving unit 21 in the CPU 4 accepts a job from an application in the container 2. The timeout time corresponds to the time obtained by adding the timeout time (timeout condition) of the job from the time of job submission, and is the timeout time of the job. The timeout condition is the timeout time set for each job from job submission to job completion. The setup time is the time required from the start of setup to the completion of setup for the firmware of the application corresponding to the job. The job execution time corresponds to the time obtained by adding the setup time for each job and the processing time of the job's execution command, and is the time required from the start of job setup to the completion of the execution command. The limit time is the scheduled job start time at the limit at which the job can be executed, which is the timeout time of the job minus the average job execution time.

[0025] FIG. 4 is an explanatory diagram showing an example of the job table 11. The job table 111 shown in FIG. 4 manages job information for each job identification information 11A that identifies a job. The job information has application identification information 11B, a submission time 11C, a timeout condition 11D, a job start time 11E, a timeout time 11F, and a limit time 11G. The application identification information 11B is information for identifying an application that executes a job. The submission time 11C is the time when the job is submitted. The timeout condition 11D is a condition for determining that the timeout of the job is satisfied, for example, a timeout time. The job start time 11E is the time when the job is started. The timeout time 11F is the time obtained by adding the timeout time of the timeout condition from the submission time of the job. The limit time 11G corresponds to the time obtained by subtracting the average job execution time from the timeout time of the job, and is the scheduled job start time at the limit at which the job can be executed.

[0026] FIG. 5 is an explanatory diagram showing an example of the application information table 12. The application information table 12 shown in FIG. 5 is a table for managing job execution time information for each application identification information 12A. The job execution time information has a job execution average time 12B, a job execution distribution time 12C, and a setup average time 12D. The job execution average time 12B is a cumulative average time of the job execution time for each application. The job execution distribution time 12C is a distribution time equivalent to one standard deviation required for processing a job execution command for each application. The setup average time 12D is a cumulative average time of the job setup time for each application.

[0027] Fig. 6 is an explanatory diagram showing an example of the execution order list 13. The execution order list 13 shown in Fig. 6 is a list for managing the execution order of jobs. The execution order list 13 shown in Fig. 6 manages the execution order of jobs A-1 → A-2 → B-1 → B-2 → C-1 → C-2 in this order.

[0028] Next, the operation of the computer 1 of this embodiment will be described. The job receiving unit 21 in the computer 1 receives jobs from the application in the container 2. The queuing unit 22 registers job information related to the received jobs in the job table 11. The queuing unit 22 sequentially accumulates the jobs in the execution order list 13 in the order of reception. Next, the timeout adjustment unit 23 extracts the limit time and timeout time for each job from the job information in the job table 11. The timeout adjustment unit 23 sorts the execution order of the jobs in the execution order list 13 based on the extracted limit time, timeout time, and current time for each job so that the timeout condition of each job is satisfied and the number of jobs is increased. The timeout adjustment unit 23 compares the number of jobs when rescheduling is performed to cancel the job being executed with the number of jobs when rescheduling is performed. Furthermore, when the number of jobs when rescheduling is performed to cancel the job being executed is greater, the timeout adjustment unit 23 notifies the cancel processing unit 36 ​​of a cancel request to cancel the job being executed. When the abort processing unit 36 ​​detects an abort request, it sets the abort of the job being executed to the FPGA control unit 32. The FPGA control unit 32 causes the FPGA 3 to execute each job based on the execution order in the execution order list 13.

[0029] 7A is an explanatory diagram showing an example of the job table 11 and the application information table 12 used when executing rescheduling. It is assumed that the CPU 4 has registered the application information table 12 in advance.

[0030] The application information table 12 shown in FIG. 7A manages the job execution average time 12B, the job execution distribution time 12C, and the setup average time 12D for each application identification information 12A. The CPU 4 can also calculate the execution command average time of the execution command based on (job execution average time-setup average time) for each application identification information. For application A, the job execution average time 12B is set to 10 seconds, the job execution distribution time 12C to 2 seconds, the setup average time 12D to 8 seconds, and the execution command average time to 2 seconds. For application B, the job execution average time 12B is set to 2 seconds, the job execution distribution time 12C to 1 second, the setup average time 12D to 1 second, and the execution command average time to 1 second. For application C, the job execution average time 12B is set to 3 seconds, the job execution distribution time 12C to 1 second, the setup average time 12D to 2 seconds, and the execution command average time to 1 second.

[0031] For example, it is assumed that the CPU 4 accepts job submission from the container 2 in the order of jobs A-1→B-1→C-1→A-2→B-2→C-2. The CPU 4 registers application identification information 11B, submission time 11C, timeout condition 11D, job start time 11E, timeout time 11F, and limit time 11G as job information for each job identification information 11A in the job table 11. Note that the timeout condition differs for each job.

[0032] For example, when focusing on job A-1, job A-1 registers application A as application identification information 11B, 14:18:00 as input time 11C, and 30 seconds as timeout condition 11D in job table 11. Also, 14:18:01 as job start time 11E and 14:18:30 (= input time 14:18:00 + timeout condition 30 seconds) as timeout time 11F in job table 11. 14:18:20 (= timeout time 14:18:30 - average job execution time 10 seconds) is registered in job table 11 as limit time 11G.

[0033] Also, for example, when focusing on job B-1, job B-1 registers application B as application identification information 11B, 14:18:02 as input time 11C, and 15 seconds as timeout condition 11D in job table 11. As job start time 11E, "-" is registered in the job table 11 as before execution, and as timeout time 11F, 14:18:17 (= input time 14:18:02 + timeout condition 15 seconds) is registered in job table 11. As limit time 11G, 14:18:15 (= timeout time 14:18:17 - average job execution time 2 seconds) is registered in job table 11.

[0034] Furthermore, for example, when job C-2 is considered, application C is registered as application identification information 11B, 14:18:11 seconds as input time 11C, and 12 seconds as timeout condition 11D in job table 11. "-" is registered as job start time 11E before execution, and 14:18:23 seconds (= input time 14:18:11 seconds + timeout condition 12 seconds) is registered as timeout time 11F in job table 11. 14:18:20 seconds (= timeout time 14:18:23 seconds - average job execution time 3 seconds) is registered as limit time 11G in job table 11.

[0035] FIG. 7B is an explanatory diagram showing an example of the execution order when rescheduling is executed (basic logic). The CPU 4 executes rescheduling to rearrange the execution order of jobs A-1→B-1→C-1→A-2→B-2→C-2 to the execution order of jobs A-1→A-2→B-1→B-2→C-1→C-2, based on the basic logic in which the input order is earlier and the same application is consecutive. The job execution time of jobs A-1 and A-2 is 12 seconds, which is the average setup time of job A-1 (8 seconds) + the average execution command time of job A-1 (2 seconds) + the average execution command time of job A-2 (2 seconds). The job execution time of jobs B-1 and B-2 is 3 seconds, which is the average setup time of job B-1 (1 second) + the average execution command time of job B-1 (1 second) + the average execution command time of job B-2 (1 second). The job execution time for jobs C-1 and C-2 is 3 seconds, calculated by adding the average setup time for job C-1 (2 seconds) + the average execution command time for job C-1 (1 second) + the average execution command time for job C-2 (1 second).

[0036] First, the basic logic for determining the timeout condition will be explained. The scheduled job end time of job A-1 is (job start time 14:18:01 + average job execution time 10 seconds) = 14:18:11. The timeout adjustment unit 23 can determine that the timeout condition for job A-1 is met because the scheduled job end time of job A-1 is before the timeout time of job A-1 (14:18:30).

[0037] The scheduled job end time of job A-1 is the job start time of job A-2. The timeout adjustment unit 23 determines that the job start time of job A-2, 14:18:11, is earlier than the limit time of job A-2, 14:18:21. The scheduled job end time of job A-2 is (job start time 14:18:11 + average execution command time 2 seconds) = 14:18:13. The timeout adjustment unit 23 can determine that the timeout condition of job A-2 is satisfied because the scheduled job end time of job A-2 is before the timeout time of job A-2 (14:18:31). As a result, the timeout adjustment unit 23 can determine that the execution order of jobs A-1 → A-2 satisfies the timeout condition.

[0038] Furthermore, the scheduled job end time of job A-2 is the job start time of job B-1. The timeout adjustment unit 23 determines that the job start time of job B-1, 14:18:13, is earlier than the limit time of job B-1, 14:18:15. The scheduled job end time of job B-1 is (job start time 14:18:13 + average job execution time 2 seconds) = 14:18:15. The timeout adjustment unit 23 determines that the timeout condition of job B-1 is satisfied because the scheduled job end time of job B-1 is before the timeout time of job B-1 (14:18:17). As a result, the timeout adjustment unit 23 determines that the execution order of jobs A-1 → A-2 → B-1 satisfies the timeout condition.

[0039] Furthermore, the scheduled job end time of job B-1 becomes the job start time of job B-2. The timeout adjustment unit 23 determines that the job start time of job B-2, 14:18:15, is earlier than the limit time of job B-2, 14:18:17. The scheduled job end time of job B-2 is (job start time 14:18:15 + average execution command time 1 second) = 14:18:16. The timeout adjustment unit 23 determines that the timeout condition of job B-2 is satisfied because the scheduled job end time of job B-2 is before the timeout time of job B-2 (14:18:19). As a result, the timeout adjustment unit 23 determines that the execution order of jobs A-1 → A-2 → B-1 → B-2 satisfies the timeout condition.

[0040] Furthermore, the scheduled job end time of job B-2 is the job start time of job C-1. The timeout adjustment unit 23 determines that the job start time of job C-1, 14:18:16, is earlier than the limit time of job C-1, 14:18:17. The scheduled job end time of job C-1 is (job start time 14:18:16 + average job execution time 3 seconds) = 14:18:19. The timeout adjustment unit 23 determines that the timeout condition of job C-1 is satisfied because the scheduled job end time of job C-1 is before the timeout time of job C-1 (14:18:20). As a result, the timeout adjustment unit 23 determines that the execution order of jobs A-1 → A-2 → B-1 → B-2 → C-1 satisfies the timeout condition.

[0041] Furthermore, the scheduled job end time of job C-2 becomes the job start time of job C-2. The timeout adjustment unit 23 determines that the job start time of job C-2, 14:18:19, is earlier than the limit time of job C-2, 14:18:20. The scheduled job end time of job C-2 is (job start time 14:18:19 + average execution command time 1 second) = 14:18:20. The timeout adjustment unit 23 determines that the timeout condition of job C-2 is satisfied because the scheduled job end time of job C-2 is before the timeout time of job C-2 (14:18:23). As a result, the timeout adjustment unit 23 updates the execution order list 13 to the execution order of jobs A-1 → A-2 → B-1 → B-2 → C-1 → C-2, which satisfies the timeout condition.

[0042] 7C is an explanatory diagram showing an example of the execution order when jobs C-1 and C-2 are judged to have timed out. When job A-1 is being executed in the execution order of jobs A-1 → A-2 → B-1 → B-2 → C-1 → C-2, the CPU 4 assumes that the job execution time of job A-1 is extended by one standard deviation if the job execution time of job A-1 does not end within the average job execution time. Note that one standard deviation is different for each application and is, for example, the job execution distribution time. The CPU 4 calculates the number of jobs that can be processed when rescheduling is performed to continue the execution of job A-1.

[0043] The contents of the calculation logic will be described below. For example, the scheduled job end time of job A-1 is (job start time 14:18:01 + job execution average time 10 seconds + job execution distribution time 2 seconds) = 14:18:13. The timeout adjustment unit 23 can determine that the timeout condition of job A-1 is satisfied because the scheduled job end time of job A-1 is before the timeout time of job A-1 (14:18:30).

[0044] The scheduled job end time of job A-1 is the job start time of job A-2. The timeout adjustment unit 23 determines that the job start time of job A-2, 14:18:13, is earlier than the limit time of job A-2, 14:18:23. The scheduled job end time of job A-2 is (job start time 14:18:13 + average execution command time 2 seconds) = 14:18:15. The timeout adjustment unit 23 can determine that the timeout condition of job A-2 is met because the scheduled job end time of job A-2 is before the timeout time of job A-2 (14:18:31). As a result, the timeout adjustment unit 23 can determine that the execution order of jobs A-1 → A-2 meets the timeout condition.

[0045] Furthermore, the scheduled job end time of job A-2 becomes the job start time of job B-1. The timeout adjustment unit 23 determines that the job start time of job B-1, 14:18:15, is the same as the limit time of job B-1, 14:18:15. The scheduled job end time of job B-1 is (job start time 14:18:15 + average job execution time 2 seconds) = 14:18:17. The timeout adjustment unit 23 can determine that the timeout condition of job B-1 is satisfied because the scheduled job end time of job B-1 is before the timeout time of job B-1 (14:18:17). As a result, the timeout adjustment unit 23 can determine that the execution order of jobs A-1 → A-2 → B-1 satisfies the timeout condition.

[0046] Furthermore, the scheduled job end time of job B-1 becomes the job start time of job B-2. The timeout adjustment unit 23 determines that the job start time of job B-2, 14:18:17, is the same as the limit time of job B-2, 14:18:17. The scheduled job end time of job B-2 is (job start time 14:18:17 + average execution command time 1 second) = 14:18:18. The timeout adjustment unit 23 determines that the timeout condition of job B-2 is satisfied because the scheduled job end time of job B-2 is before the timeout time of job B-2 (14:18:19). As a result, the timeout adjustment unit 23 determines that the execution order of jobs A-1 → A-2 → B-1 → B-2 satisfies the timeout condition.

[0047] Furthermore, the scheduled job end time of job B-2 becomes the job start time of job C-1. The timeout adjustment unit 23 determines that the job start time of job C-1, 14:18:18, is later than the limit time of job C-1, 14:18:17. The scheduled job end time of job C-1 is (job start time 14:18:18 + average job execution time 3 seconds) = 14:18:21. The timeout adjustment unit 23 determines that the scheduled job end time of job C-1 exceeds the timeout time of job C-1 (14:18:20), and therefore the timeout condition of job C-1 is not satisfied. As a result, the execution order of jobs A-1 → A-2 → B-1 → B-2 → C-1 is not established. Therefore, since jobs C-1 and C-2 do not satisfy the timeout condition, the timeout adjustment unit 23 can determine that the execution order of jobs A-1 → A-2 → B-1 → B-2 satisfies the timeout condition. Therefore, the number of jobs that can be processed in the job execution order if the currently executed jobs are continued will be "4".

[0048] 7D is an explanatory diagram showing an example of the execution order when job A-1 is canceled. When job A-1 is being executed in the execution order of jobs A-1 → A-2 → B-1 → B-2 → C-1 → C-2, CPU4 assumes that the job execution time of job A-1 is extended by one standard deviation if the job execution time of job A-1 does not end within the average job execution time. CPU4 calculates the number of jobs that can be processed when rescheduling is performed to cancel the currently executing job A-1.

[0049] When the CPU 4 cancels the execution of job A-1 in the execution order of jobs A-1 → B-1 → C-1 → A-2 → B-2 → C-2, it rearranges the execution order of the basic logic in which the input order is earlier and the same application is consecutive. The CPU 4 calculates the number of jobs that can be processed when rescheduling is performed to rearrange the execution order of the basic logic to B-1 → B-2 → C-1 → C-2 → A-2.

[0050] The contents of the calculation logic will be described. The job end time of job A-1 is determined by canceling job A-1 within the average job execution time and being at the latest (job start time 14:18:01 + average job execution time 10 seconds) = 14:18:11. The job end time of job A-1 becomes the job start time of job B-1. The timeout adjustment unit 23 determines that the job start time of job B-1, 14:18:11, is earlier than the limit time of job B-1, 14:18:15. The scheduled job end time of job B-1 becomes (job start time 14:18:11 + average job execution time 2 seconds) = 14:18:13. The timeout adjustment unit 23 determines that the scheduled job end time of job B-1 is before the timeout time of job B-1 (14:18:17), and therefore the timeout condition of job B-1 is satisfied.

[0051] Furthermore, the scheduled job end time of job B-1 becomes the job start time of job B-2. The timeout adjustment unit 23 determines that the job start time of job B-2, 14:18:13, is earlier than the limit time of job B-2, 14:18:17. The scheduled job end time of job B-2 is (job start time 14:18:13 + average execution command time 1 second) = 14:18:14. The timeout adjustment unit 23 determines that the timeout condition of job B-2 is satisfied because the scheduled job end time of job B-2 is before the timeout time of job B-2 (14:18:19). As a result, it can be determined that the execution order of jobs B-1 → B-2 satisfies the timeout condition.

[0052] Furthermore, the scheduled job end time of job B-2 becomes the job start time of job C-1. The timeout adjustment unit 23 determines that the job start time of job C-1, 14:18:14, is earlier than the limit time of job C-1, 14:18:17. The scheduled job end time of job C-1 is (job start time 14:18:14 + average job execution time 3 seconds) = 14:18:17. The timeout adjustment unit 23 determines that the timeout condition of job C-1 is satisfied because the scheduled job end time of job C-1 is before the timeout time of job C-1 (14:18:20). As a result, it can be determined that the execution order of jobs B-1 → B-2 → C-1 satisfies the timeout condition.

[0053] Furthermore, the scheduled job end time of job C-1 becomes the job start time of job C-2. The timeout adjustment unit 23 determines that the job start time of job C-2, 14:18:17, is earlier than the limit time of job C-2, 14:18:20. The scheduled job end time of job C-2 is (job start time 14:18:17 + average execution command time 1 second) = 14:18:18. The timeout adjustment unit 23 determines that the timeout condition of job C-2 is satisfied because the scheduled job end time of job C-2 is before the timeout time of job C-2 (14:18:23). As a result, it can be determined that the execution order of jobs B-1 → B-2 → C-1 → C-2 satisfies the timeout condition.

[0054] Furthermore, the scheduled job end time of job C-2 is the job start time of job A-2. The timeout adjustment unit 23 determines that the job start time of job A-2, 14:18:18, is earlier than the limit time of job A-2, 14:18:21. The scheduled job end time of job A-2 is (job start time 14:18:18 + average job execution time 10 seconds) = 14:18:28. The timeout adjustment unit 23 determines that the timeout condition of job A-2 is satisfied because the scheduled job end time of job A-2 is before the timeout time of job A-2 (14:18:31). As a result, the timeout adjustment unit 23 determines that the execution order of jobs B-1 → B-2 → C-1 → C-2 → A-2, which satisfies the timeout condition, satisfies the timeout condition. Therefore, the number of jobs that can be processed in the job execution order when the job being executed is canceled is "5".

[0055] CPU4 compares the number of jobs that can be processed "5" when rescheduling is performed to stop the currently running job A-1 with the number of jobs that can be processed "4" when the currently running job A-1 is continued (without rescheduling). Based on the comparison result, CPU4 determines that the number of jobs is greater when rescheduling is performed to stop the currently running job A-1, and therefore updates the execution order in execution order list 13 to the order when rescheduling is performed to stop the currently running job A-1.

[0056] Fig. 8 is a flowchart showing an example of the processing operation of the CPU 4 related to the queue management process. The queue management unit 4A in the CPU 4 shown in Fig. 8 executes event standby to monitor the occurrence of an event (step S11). Incidentally, the occurring event in step S11 is, for example, the input of a job, the reaching of the limit time of the job, and the exceeding of the scheduled end time of the job.

[0057] The queue management unit 4A judges whether the occurring event is a job input (step S12). If the occurring event is a job input (step S12: Yes), the job reception unit 21 in the queue management unit 4A receives the input job (step S13). The queuing unit 22 in the queue management unit 4A executes the queuing process shown in FIG. 10 for the received input job (step S14).

[0058] After executing the queuing process, the timeout adjustment unit 23 in the queue management unit 4A executes the timeout adjustment process shown in Fig. 11 (step S15). Furthermore, the timeout adjustment unit 23 checks the shortest limit time by referring to the limit time 11G of each job in the job table 11 (step S16), and proceeds to step S11 to monitor the occurring event. Furthermore, if the occurring event is not job input (step S12: No), the timeout adjustment unit 23 determines that the limit time of the job has been reached or the scheduled end time of the job has been exceeded, and executes the timeout adjustment process shown in Fig. 11.

[0059] Fig. 9 is a flow chart showing an example of the processing operation of the CPU 4 related to the execution process. The execution unit 4B in the CPU 4 shown in Fig. 9 executes event standby to monitor the occurrence of an event (step S21). The occurring event in step S21 is, for example, a request to stop a job, the end of execution of a job, the input of a job, etc.

[0060] The abort processing unit 36 ​​in the execution unit 4B judges whether an abort request is detected during the event waiting (step S21). If an abort request is not detected (step S22: No), the execution unit 4B judges that the job execution is completed or that the job is submitted, and updates and registers the application information table 12 and the job table 11 (step S23).

[0061] For example, when the execution unit 4B detects an execution end as an occurring event, it deletes the job information of the corresponding job in the job table 11. The execution unit 4B calculates the job execution average time 12B, job execution distribution time 12C, and setup average time 12D of the application corresponding to the corresponding job based on the job execution time, execution command time, and setup time of the job whose execution has ended. The execution unit 4B updates the calculated job execution average time 12B, job execution distribution time 12C, and setup average time 12D of the application in the job table 11. Furthermore, when the execution unit 4B detects a job submission as an occurring event, it registers the job information of the corresponding job in the job table 11 to register the submission of the corresponding job.

[0062] After updating and registering the application information table 12 and the job table 11 in step S23, the execution unit 4B determines the next job to be executed in the execution order list 13 (step S24). Furthermore, the FPGA control unit 32 in the execution unit 4B executes the determined job on the firmware in the FPGA 3 (step S25), and proceeds to step S21 to monitor the occurring event.

[0063] Furthermore, when the abort processing unit 36 ​​in the execution unit 4B detects an abort request (step S22: Yes), it aborts the job (step S26). Furthermore, the execution unit 4B proceeds to step S23 to update and register the information associated with the abortion of the job in the application information table 12 or the job table 11.

[0064] When the CPU 4 that executes the execution process detects the request to stop, it stops the job that is being executed. As a result, the job that is being executed can be stopped midway.

[0065] FIG. 10 is a flowchart showing an example of the processing operation of the CPU 4 related to the queuing process. In FIG. 10, the queuing unit 22 in the CPU 4 registers job information of a job in the job table 11 (step S31). The queuing unit 22 acquires application identification information of each job in the job table 11 (step S32). The queuing unit 22 sorts the execution order of accumulated jobs in the execution order list 13 by basic logic so that jobs of the same application identification information 11B in the job table 11 are consecutive (step S33). The basic logic is the logic shown in FIG. 7B, which rearranges the execution order of jobs according to the input order while avoiding overlapping of setup times of the same application. The queuing unit 22 updates the execution order list 13 with the execution order after sorting by the basic logic (step S34), and ends the processing operation shown in FIG. 10.

[0066] The CPU 4, which executes the queuing process, rearranges the execution order of the jobs stored in the order of submission using basic logic so that jobs of the same application are consecutive. As a result, it is possible to reduce the setup time that is duplicated within the same application, thereby improving the execution efficiency of each job.

[0067] Fig. 11 is a flow chart showing an example of the processing operation of the CPU 4 related to the timeout adjustment process. In Fig. 11, the timeout adjustment unit 23 in the CPU 4 acquires job information for each job from the job table 11 (step S41). From the acquired job information, the timeout adjustment unit 23 calculates the limit time 11G for each job based on the input time 11C and the timeout condition 11D for each job (step S42). The timeout adjustment unit 23 calculates the timeout time 11F for each job based on (the input time 11C+the timeout condition 11D) for each job. Furthermore, the timeout adjustment unit 23 calculates the limit time 11G for each job based on (the timeout time 11F-the average job execution time of the corresponding application) for each job.

[0068] After calculating the limit time 11G for each job, the timeout adjustment unit 23 compares the limit time 11G with the job start time for each job (step S43). The job start time is calculated by rearranging the execution order of the prioritized jobs in the order of earliest submission, based on basic logic that prioritizes jobs in the same application when there are jobs for the same application among multiple applications. The timeout adjustment unit 23 determines whether there is a job whose limit time is earlier than the job start time (step S44).

[0069] If there is a job whose limit time is earlier than the job start time (step S44: Yes), the timeout adjustment unit 23 determines whether there is a job whose job start time has reached the limit time (step S45). If there is a job whose job start time has reached the limit time (step S45: Yes), the timeout adjustment unit 23 executes the limit time process shown in Fig. 12 (step S46). Then, the timeout adjustment unit 23 updates the execution order list 13 (step S50) and ends the processing operation shown in Fig. 11.

[0070] If there is no job whose job start time has reached the limit time (step S45: No), the timeout adjustment unit 23 determines whether the current time exceeds the scheduled end time of the job being executed (step S47). If the current time exceeds the scheduled end time of the job being executed (step S47: Yes), the timeout adjustment unit 23 executes the scheduled end time process shown in Fig. 13 (step S48) and proceeds to step S50.

[0071] 14 (step S49), and proceeds to step S50. If there is no job whose limit time is earlier than the job start time (step S44: No), the timeout adjustment unit 23 proceeds to step S50 to update the execution order list 13.

[0072] The CPU 4, which executes the timeout adjustment process, can execute limit time processing when there is a job whose limit time is earlier than the job start time and there is a job whose job start time has reached the limit time. The CPU 4 can execute scheduled end time processing when there is no job whose job start time has reached the limit time and the current time has exceeded the scheduled end time of the job being executed. Furthermore, the CPU 4 can execute new job submission processing when there is no job whose job start time has reached the limit time and the current time has not exceeded the scheduled end time of the job being executed.

[0073] FIG. 12 is a flowchart showing an example of the processing operation of the CPU 4 related to the limit time processing. In FIG. 12, the timeout adjustment unit 23 in the CPU 4 starts the limit time processing when there is a job whose job start time has reached the limit time in step S45 shown in FIG. 11. When the timeout adjustment unit 23 detects a job whose job start time has reached the limit time (step S51), it calculates the number of jobs when the job whose job start time has reached the limit time is executed with priority and the number of jobs when the job whose job whose limit time has reached is stopped (step S52). Note that the case where the job whose limit time has been stopped corresponds to the case where the job whose limit time has been stopped and rescheduling is performed. The case where the job whose limit time has been executed with priority corresponds to the case where rescheduling is performed to continue the job whose limit time has been reached.

[0074] The timeout adjustment unit 23 compares the number of jobs when the jobs are executed with priority and the number of jobs when the execution is canceled, and determines whether the number of jobs when the jobs are executed with priority is greater (step S53). If the number of jobs when the jobs are executed with priority is greater (step S53: Yes), the timeout adjustment unit 23 sorts the job execution order so that the job that has reached the limit time is executed with priority (step S54), and ends the processing operation shown in Fig. 12. The execution order list 13 is updated with the execution order after sorting in step S50 shown in Fig. 11.

[0075] If the number of jobs in the case of priority execution is not greater (step S53: No), the timeout adjustment unit 23 executes job refusal to reject the job that has reached the limit time (step S55), and ends the processing operation shown in Fig. 12. In step S50 shown in Fig. 11, the execution order list 13 is updated with the execution order after the job refusal.

[0076] When the CPU 4 that executes the limit time processing detects a job that has reached the limit time, it compares the number of jobs that will be executed with priority when the job that has reached the limit time is executed with the number of jobs that will be canceled when the job that has reached the limit time is executed. Furthermore, based on the comparison result, if the number of jobs that will be executed with priority when the job that has reached the limit time is greater, the CPU 4 reschedules the execution order to execute the job that has reached the limit time with priority. As a result, it is possible to process as many jobs as possible while executing the job that has reached the limit time with priority.

[0077] Based on the comparison result, if the number of jobs that would be preferentially executed for the job that has reached its limit time is not greater, the CPU 4 rejects the job that has reached its limit time. As a result, it is possible to process as many jobs as possible while rejecting the job that has reached its limit time.

[0078] FIG. 13 is a flowchart showing an example of the processing operation of the CPU 4 related to the scheduled end time processing. In FIG. 13, the timeout adjustment unit 23 in the CPU 4 starts the scheduled end time processing when the current time exceeds the scheduled end time of the job in progress in step S47 shown in FIG. 11. The timeout adjustment unit 23 assumes that the job in progress is extended by one standard deviation, and calculates the number of jobs when the job in progress is stopped and the number of jobs when the job in progress is continued (step S61). The case where the job in progress is stopped corresponds to the case where the job in progress is stopped and rescheduled, and the case where the job in progress is continued corresponds to the case where rescheduling is performed to continue the job in progress. The timeout adjustment unit 23 compares the number of jobs when the job in progress is stopped and the number of jobs when the job in progress is continued, and judges whether the number of jobs when the job in progress is stopped is greater (step S62).

[0079] If the number of jobs is greater if the active jobs are canceled (step S62: Yes), the timeout adjustment unit 23 sends a request to cancel the active jobs to the cancellation processing unit 36 ​​in the execution unit 4B (step S63), and ends the processing operation shown in Fig. 13. The execution order list 13 is updated to the execution order in which the active jobs were canceled in step S50 shown in Fig. 11.

[0080] Furthermore, if the number of jobs would not be greater if the active job were stopped (step S62: No), the timeout adjustment unit 23 continues the active job (step S64) and ends the processing operation shown in Fig. 13. In step S50 shown in Fig. 11, the execution order list 13 is updated to the execution order in which the active jobs were continued.

[0081] The CPU 4, which executes the estimated end time process, assumes that the running job will be extended by one standard deviation and compares the number of jobs when the running job is stopped with the number of jobs when the running job is continued. If the comparison result shows that the number of jobs when the running job is stopped is greater, the CPU 4 transmits a stop request to stop the running job to the stop processing unit 36. As a result, by stopping the running job, it is possible to process as many jobs as possible.

[0082] Based on the comparison result, if the number of jobs that would be processed if the currently running job were stopped is not large, the CPU 4 continues the currently running job. As a result, as many jobs as possible can be processed while continuing the currently running job.

[0083] FIG. 14 is a flowchart showing an example of the processing operation of the CPU 4 related to the new job input process. In FIG. 14, the timeout adjustment unit 23 in the CPU 4 starts the new job input process when the scheduled end time of the job being executed has not passed in step S47 shown in FIG. 11. The timeout adjustment unit 23 calculates the number of jobs in the execution order including the new job and the number of jobs in the execution order not including the new job (step S71). The execution order including the new job corresponds to a case where the execution order including the new job is rescheduled, and the execution order not including the new job corresponds to a case where the execution order not including the new job is rescheduled. The timeout adjustment unit 23 determines whether the number of jobs in the execution order including the new job is greater (step S72).

[0084] If the number of jobs in the execution order including the new job is greater (step S72: Yes), the timeout adjustment unit 23 sorts the execution order so that the new job can be executed (step S73), and ends the processing operation shown in Fig. 14. In step S50 shown in Fig. 11, the execution order list 13 is updated with the sorted execution order.

[0085] Furthermore, if the number of jobs in the execution order including the new job is not greater (step S72: No), the timeout adjustment unit 23 executes job rejection of the new job (step S74) and ends the processing operation shown in Fig. 14. In step S50 shown in Fig. 11, the execution order list 13 is updated with the execution order after the job rejection.

[0086] The CPU 4, which executes the new job submission process, compares the number of jobs in the execution order that includes the new job with the number of jobs in the execution order that does not include the new job. Furthermore, based on the comparison result, if the number of jobs in the execution order that includes the new job is greater, the CPU 4 sorts the execution order so that the new job can be executed. As a result, it is possible to process as many jobs as possible while executing the new job.

[0087] Based on the comparison result, if the number of jobs in the execution order including the new job is not greater, the CPU 4 rejects the new job. As a result, it is possible to process as many jobs as possible while rejecting new jobs.

[0088] In this embodiment, the CPU 4 calculates the number of jobs that can be processed when rescheduling is not performed and when the currently running jobs are stopped. If it is determined that the number of jobs that can be processed when rescheduling is performed is greater, the CPU 4 performs the rescheduling. As a result, it becomes possible to perform scheduling that can process as many jobs as possible, including stopping currently running jobs.

[0089] The CPU 4 calculates the number of jobs that can be processed when rescheduling is performed to prioritize execution of a job whose job start time has reached the limit time at which the timeout condition can be satisfied, and when rescheduling is performed to cancel the job whose limit time has been reached. Furthermore, when it is determined that the number of jobs is greater when rescheduling is performed to prioritize execution of a job whose limit time has been reached, the CPU 4 performs the rescheduling to prioritize execution of the job whose limit time has been reached. As a result, it becomes possible to perform scheduling that can process as many jobs as possible, including priority execution of a job whose limit time has been reached.

[0090] The CPU 4 calculates the number of jobs that can be processed when rescheduling the execution order including the new job and when not performing rescheduling. If it is determined that the number of jobs that can be processed when rescheduling the execution order including the new job is greater, the CPU 4 performs rescheduling of the execution order including the new job. As a result, when a new job is submitted, it becomes possible to perform scheduling that can process as many jobs as possible, including the new job.

[0091] In this embodiment, basically, jobs of the same application are consecutive, and the jobs are rearranged so that the timeout condition is satisfied, and if necessary, the job being executed is stopped. In addition, the execution time of a job varies depending on the data being handled, and such a case can be fully handled.

[0092] In the above embodiment, an example was given of calculating a different average job execution time, job execution distribution time, and average setup time for each application, but if the job execution time and setup time for each application are fixed, they may be set in advance or can be changed as appropriate.

[0093] In the above embodiment, the case where it is determined in step S45 whether there is a job whose job start time has reached the limit time or not has been exemplified, but instead of the process of step S45, a process of determining whether there is a job whose job end time has reached the timeout time or not may be executed. In this case, the number of jobs in the case where the job whose timeout time has been reached is executed with priority is compared with the number of jobs in the case where the job whose timeout time has been reached is aborted. If the number of jobs in the case where the job whose timeout time has been reached is executed with priority is large, the jobs whose timeout time has been executed with priority are sorted in the execution order in which the job whose timeout time has been reached is executed with priority. Also, if the number of jobs in the case where the job whose timeout time has been reached is executed with priority is not large, the job whose timeout time has been reached may be rejected.

[0094] Furthermore, each component of each unit shown in the figure does not necessarily have to be physically configured as shown in the figure. In other words, the specific form of distribution and integration of each unit is not limited to that shown in the figure, and all or part of them can be functionally or physically distributed and integrated in any unit depending on various loads, usage conditions, etc.

[0095] Furthermore, the various processing functions performed by each device may be executed in whole or in part on a CPU (Central Processing Unit), a DSP (Digital Signal Processor), an FPGA (Field Programmable Gate Array), etc. Also, the various processing functions may be executed in whole or in part on a program that is analyzed and executed by a CPU, etc., or on hardware using wired logic.

[0096] The area for storing various information may be configured, for example, with a ROM (Read Only Memory), a RAM (Random Access Memory) such as an SDRAM (Synchronous Dynamic Random Access Memory), an MRAM (Magnetoresistive Random Access Memory), or an NVRAM (Non-Volatile Random Access Memory).

[0097] The various processes described in this embodiment can be realized by executing a prepared program on a processor such as a CPU in a computer. Therefore, an example of a computer that executes a program having the same functions as those in the above embodiment will be described below. Figure 15 is a block diagram showing an example of a computer 100 that executes an execution schedule determination program.

[0098] 15 includes an operation unit 101, a display unit 102, a communication unit 103, an FPGA 104, a ROM 105, a RAM 106, and a CPU 107. The CPU 107 causes the FPGA 104 to execute a job.

[0099] An execution scheduling determination program that performs the same functions as those of the above embodiment is prestored in the ROM 105. The ROM 105 stores a queue management program 105A and an execution program 105B as the execution scheduling determination program. The execution scheduling determination program may be recorded in a computer-readable recording medium, not in the ROM 105, but in a drive (not shown). The recording medium may be, for example, a portable recording medium such as a CD-ROM, a DVD disk, or a USB memory, or a semiconductor memory such as a flash memory.

[0100] Then, the CPU 107 reads the queue management program 105A from the ROM 105, and functions as a queue management process 106A on the RAM 106. Furthermore, the CPU 107 reads the execution program 105B from the ROM 105, and functions as an execution process 106B on the RAM 106.

[0101] CPU 107 executes rescheduling of each job when the currently running job and the queued job do not satisfy the set timeout condition. CPU 107 calculates the number of jobs that can be processed when the currently running job is stopped and the rescheduling is executed, and when the rescheduling is not executed. CPU 107 executes the rescheduling when it is determined that the number of jobs that can be processed when the rescheduling is executed is greater. As a result, as many jobs as possible can be processed. [Explanation of symbols]

[0102] 1. Computer 2. Container 3. FPGAs 4 CPU 4A Queue Management Unit 4B Executive Department 23 Timeout Adjustment Unit 36 Cancellation Processing Unit

Claims

1. When the currently running job and the queued job do not satisfy the set timeout condition, the number of jobs that can be processed is calculated in a case where the currently running job is stopped and rescheduled, and in a case where the rescheduling is not performed; When it is determined that the number of jobs that can be processed when the rescheduling is performed is greater, the rescheduling is performed.

2. A method for determining execution scheduling, comprising the steps of: executing a process by a computer;

2. Calculating the number of jobs that can be processed when rescheduling is performed to preferentially execute a job whose job start time has reached a limit time that satisfies a timeout condition, and when rescheduling is performed to cancel the job whose job start time has reached the limit time; When it is determined that the number of jobs that can be processed when the rescheduling is performed to preferentially execute the job that has reached the limit time is greater than the number of jobs that can be processed when the rescheduling is performed to cancel the job that has reached the limit time, the rescheduling is performed to preferentially execute the job that has reached the limit time.

2. The execution scheduling determination method according to claim 1, further comprising the step of: executing a process.

3. Calculating the number of jobs that can be processed when rescheduling the execution order including the new job and when not performing the rescheduling; When it is determined that the number of jobs that can be processed when the rescheduling of the execution order including the new job is performed is greater than the number of jobs when the rescheduling is not performed, the rescheduling of the execution order including the new job is performed.

3. The execution scheduling determination method according to claim 1, further comprising the step of: executing a process.

4. Calculate the number of jobs that can be processed when the currently running job and the queued job do not satisfy the set timeout condition, in a case where the currently running job is stopped and rescheduled, and in a case where the rescheduling is not performed; When it is determined that the number of jobs that can be processed when the rescheduling is performed is greater, the rescheduling is performed. An execution scheduling decision program that causes a computer to execute a process.

Citation Information

Patent Citations

  • Task scheduling method

    JP1996055036A

  • Batch processor and program

    JP2006065566A

  • Prediction program, prediction device, and prediction method

    JP2012252422A

  • Job management system and job control method

    JP2015530656A

  • Information processing system

    JP2020047137A