IP Library Granted Patent US 11,573,836
Granted Patent B2
US 11,573,836 · App. 17/142,770 · Granted Feb 7, 2023

Resource scheduling method and apparatus, and storage medium

Inventors: Zexiang Wang (Beijing, CN); Ziang Jia (Beijing, CN)
Assignee: Apollo Intelligent Connectivity (Beijing) Technology Co., Ltd.
G06F9/505G06F1/3206G06F9/5011G06F9/5044G06F9/5061
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,573,836
App. No.
17/142,770
Granted
Feb 7, 2023
Kind
B2
Abstract

A resource scheduling method and apparatus, an electronic device, and a storage medium are provided, which are related to the technical field of system resource scheduling. The resource scheduling method comprises: monitoring whether a current system can bear a load of a target application which has triggered and entered a high-computational-power scenario, subjecting the system to resource scheduling if the system is monitored to be unable to bear the load of the target application, and running the target application in the high-computational-power scenario based on scheduled system resources.

Claims (48)

1. A resource scheduling method, comprising:

monitoring whether a current system is able to bear a load of a target application which has triggered and entered a high-computational-power scenario, wherein in a case where the target application is about to enter the high-computational-power scenario, a coming entry into the high-computational-power scenario is broadcasted;

subjecting the system to resource scheduling in a case that the system is monitored to be unable to bear the load of the target application, wherein after the system and other running applications which have not triggered or entered the high-computational-power scenario receive the broadcast, a high-computational-power process in the target application is set to be a real-time process, and a central processing unit (CPU) in the system and/or the other running applications are subjected to resource scheduling; and

running the target application in the high-computational-power scenario based on scheduled system resources.

2. The method according to claim 1 , wherein the monitoring whether the current system is able to bear the load of the target application which has triggered and entered the high-computational-power scenario comprises:

monitoring whether the target application which has triggered and entered the high-computational-power scenario exists in the system according to running state data of applications running in the current system; and

monitoring whether the system is able to bear the load of the target application in a case that the target application exists in the system.

3. The method according to claim 2 , wherein the monitoring whether the target application which has triggered and entered the high-computational-power scenario exists in the system according to the running state data of the applications running in the current system comprises:

determining a running application as the target application in a case that the running state data of the running application is detected to meet a condition to trigger the high-computational-power scenario.

4. The method according to claim 2 , wherein the monitoring whether the system is able to bear the load of the target application comprises:

calculating a system load pressure score according to the current running state data of each running application in the system and a current idle rate of the CPU; and

determining that the system is unable to bear the load of the target application in a case that the system load pressure score is detected to be greater than a load pressure threshold value.

5. The method according to claim 1 , wherein the subjecting the CPU in the system to resource scheduling comprises:

based on a time-sharing processing mechanism of the CPU, prolonging a process handling time of the target application in the system, and shortening the process handling time of the other running applications.

6. The method according to claim 1 , wherein the subjecting the CPU in the system to resource scheduling comprises:

regulating a CPU frequency in the system to a maximum frequency.

7. The method according to claim 1 , wherein the subjecting the other running applications which have not triggered or entered the high-computational-power scenario to resource scheduling comprises:

suspending silence processes of the other running applications in the system.

8. The method according to claim 1 , wherein the system is an intelligent vehicle-mounted system, and the target application at least comprises a map navigation application and an intelligent voice application.

9. A resource scheduling apparatus, comprising:

at least one processor; and

a memory communicatively connected with the at least one processor, wherein

the memory stores instructions executable by the at least one processor, and the instruction, when executed by the at least one processor, enable the at least one processor to perform operations comprising:

monitoring whether a current system is able to bear a load of a target application which has triggered and entered a high-computational-power scenario, wherein in a case where the target application is about to enter the high-computational-power scenario, a coming entry into the high-computational-power scenario is broadcasted;

subjecting the system to resource scheduling in a case that the system is monitored to be unable to bear the load of the target application, wherein after the system and other running applications which have not triggered or entered the high-computational-power scenario receive the broadcast, a high-computational-power process in the target application is set to be a real-time process, and a central processing unit (CPU) in the system and/or the other running applications are subjected to resource scheduling; and

running the target application in the high-computational-power scenario based on scheduled system resources.

10. The apparatus according to claim 9 , wherein the monitoring whether the current system is able to bear the load of the target application which has triggered and entered the high-computational-power scenario comprises:

monitoring whether the target application which has triggered and entered the high-computational-power scenario exists in the system according to running state data of applications running in the current system; and

monitoring whether the system is able to bear the load of the target application in a case that the target application exists in the system.

11. The apparatus according to claim 10 , wherein the monitoring whether the target application which has triggered and entered the high-computational-power scenario exists in the system according to the running state data of the applications running in the current system comprises:

determining a running application as the target application in a case that the running state data of the running application is detected to meet a condition to trigger the high-computational-power scenario.

12. The apparatus according to claim 10 , wherein the monitoring whether the system is able to bear the load of the target application comprises:

calculating a system load pressure score according to the current running state data of each running application in the system and a current idle rate of the CPU; and

determining that the system is unable to bear the load of the target application in a case that the system load pressure score is detected to be greater than a load pressure threshold value.

13. The apparatus according to claim 9 , wherein the subjecting the CPU in the system to resource scheduling comprises:

based on a time-sharing processing mechanism of the CPU, prolonging a process handling time of the target application in the system, and shortening the process handling time of the other running applications.

14. The apparatus according to claim 9 , wherein the subjecting the CPU in the system to resource scheduling comprises:

regulating a CPU frequency in the system to a maximum frequency.

15. The apparatus according to claim 9 , wherein the subjecting the other running applications which have not triggered or entered the high-computational-power scenario to resource scheduling comprises:

suspending silence processes of the other running applications in the system.

16. The apparatus according to claim 9 , wherein the system is an intelligent vehicle-mounted system, and the target application at least comprises a map navigation application and an intelligent voice application.

17. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions cause a computer to perform operations comprising:

monitoring whether a current system is able to bear a load of a target application which has triggered and entered a high-computational-power scenario, wherein in a case where the target application is about to enter the high-computational-power scenario, a coming entry into the high-computational-power scenario is broadcasted;

subjecting the system to resource scheduling in a case that the system is monitored to be unable to bear the load of the target application, wherein after the system and other running applications which have not triggered or entered the high-computational-power scenario receive the broadcast, a high-computational-power process in the target application is set to be a real-time process, and a central processing unit (CPU) in the system and/or the other running applications are subjected to resource scheduling; and

running the target application in the high-computational-power scenario based on scheduled system resources.

18. The storage medium according to claim 17 , wherein the monitoring whether the current system is able to bear the load of the target application which has triggered and entered the high-computational-power scenario comprises:

monitoring whether the target application which has triggered and entered the high-computational-power scenario exists in the system according to running state data of applications running in the current system; and

monitoring whether the system is able to bear the load of the target application in a case that the target application exists in the system.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 13, 2021
From: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
To: APOLLO INTELLIGENT CONNECTIVITY (BEIJING) TECHNOLOGY CO., LTD.
Reel/Frame 057789/0357 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 7, 2021
From: WANG, ZEXIANG; JIA, ZIANG
To: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
Reel/Frame 054849/0828 →
Priority Claims (1)
CN 202010470780.1 · May 28, 2020 · national
Continuity (1)
Related Publication 20210373952A1 · Dec 2, 2021
Cited By (1)
US 12,526,334