CN114840270A - System bus bandwidth adjusting method, computer device and computer readable storage medium - Google Patents

System bus bandwidth adjusting method, computer device and computer readable storage medium Download PDF

Info

Publication number
CN114840270A
CN114840270A CN202210503571.1A CN202210503571A CN114840270A CN 114840270 A CN114840270 A CN 114840270A CN 202210503571 A CN202210503571 A CN 202210503571A CN 114840270 A CN114840270 A CN 114840270A
Authority
CN
China
Prior art keywords
bandwidth
bus bandwidth
hardware
adjusting
system bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210503571.1A
Other languages
Chinese (zh)
Inventor
黄烁生
苏佳佳
刘弋波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN202210503571.1A priority Critical patent/CN114840270A/en
Publication of CN114840270A publication Critical patent/CN114840270A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1678Details of memory controller using bus width
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/426Internal components of the client ; Characteristics thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Bus Control (AREA)

Abstract

The invention provides a system bus bandwidth adjusting method, a computer device and a computer readable storage medium, wherein the method comprises the steps of identifying the current operation scene and confirming the application scene of the current operation environment; selecting a target strategy from a plurality of preset bus bandwidth adjustment strategies according to the application scene of the current operating environment; and sending the configuration information of the target strategy to a bus bandwidth configuration driving module, and adjusting the bus bandwidth used by at least one piece of hardware by the bus bandwidth configuration driving module according to the configuration information. The invention also provides a computer device and a computer readable storage medium for realizing the method. The invention can improve the operation efficiency of the electronic equipment in various application scenes and avoid the situation of blockage.

Description

System bus bandwidth adjusting method, computer device and computer readable storage medium
Technical Field
The invention relates to the technical field of performance improvement of electronic equipment, in particular to a system bus bandwidth adjusting method, a computer device for realizing the method and a computer readable storage medium.
Background
The existing intelligent electronic equipment mostly uses an android operating system or an IOS operating system, along with more and more application programs running by the electronic equipment and more hardware resources used during the running of the application programs, the situations of blocking, unsmooth and the like are inevitable during the running of the electronic equipment, even the situation of operating system breakdown occurs, and very bad experience is brought to a user.
Therefore, in the development of an operating system, optimization of application scenario performance is important. The performance optimization of an application scene can be simply divided into two aspects of software performance optimization and hardware performance optimization, aiming at the optimization of hardware performance, most of the existing processing modes are optimized on the computing capability of a CPU or a GPU, or the size of an operating memory, the operating frequency of a DDR memory and the like are concerned, existing developers usually only know that the higher the operating frequency is, the better the operating frequency is, but do not understand how the operating frequency of the memory affects the performance of a system, and do not know that the bandwidth of the memory can become the bottleneck of the performance under a certain scene. For example, any hardware device (including CPU, GPU, DE, VE, etc.) in the electronic device system accessing the memory to generate read/write operations to the memory occupies a certain DDR bandwidth. If in a certain application scenario, due to the fact that multiple hardware devices access or store simultaneously, DDR memory bandwidth competition occurs, the critical hardware devices in the scenario cannot acquire enough DDR memory bandwidth, and thus the problem of poor scenario performance is caused, for example, the problems of frame loss and blockage, unsmooth application interface operation and the like easily occur in a video playing scenario.
In order to solve the problem of operating jamming of the electronic device, the operating frequency of the DDR memory is usually increased, and although this processing method is relatively simple and effective, the following disadvantages exist: firstly, improving the frequency of the DDR memory easily causes the unstable operation of the DDR memory, and the risk of system halt exists; secondly, increasing the DDR frequency of the memory brings extra power consumption waste; thirdly, the problem of intrinsic solution is not solved, and the problem of operating the electronic device to be stuck is usually caused by memory bandwidth preemption, so that the access and storage performance of the key hardware device is limited, and the problem is not solved directly by increasing the frequency of the DDR memory, but the problem is solved from the side, and the solution effect on the problem of operating the electronic device to be stuck is not ideal.
The Chinese patent application CN103929567A discloses a power consumption processing method for dynamically adjusting the frequency of a DDR memory, which mainly aims at a scene of playing a video, analyzes the playing state of a current film source and judges whether the video playing state changes or not after acquiring the playing state of the current film source, transmits film source information when determining that the video playing state changes, acquires audio and video synchronization information, analyzes whether audio and video are synchronous or not, adjusts the frequency of the DDR memory to a first frequency when determining that the audio and video are asynchronous, and adjusts the frequency of the DDR memory to a second frequency according to the resolution when determining that the audio and video are synchronous.
However, the method can only improve the performance of the application scene according to the memory bandwidth requirement of the device in a specific scene, and cannot solve the problem of unsmooth operation for the application scenes other than the video playing scene. Moreover, the method actually avoids the stuck problem by adjusting the frequency of the DDR memory, and the system stuck problem cannot be solved essentially.
Disclosure of Invention
The first objective of the present invention is to provide a method for adjusting the bandwidth of a system bus, which can effectively improve the operational smoothness of an electronic device.
The second objective of the present invention is to provide a computer device for implementing the above method for adjusting the bandwidth of the system bus.
A third object of the present invention is to provide a computer readable storage medium for implementing the above system bus bandwidth adjusting method.
In order to achieve the first purpose of the invention, the method for adjusting the bandwidth of the system bus comprises the steps of identifying the current operation scene and confirming the application scene of the current operation environment; selecting a target strategy from a plurality of preset bus bandwidth adjustment strategies according to the application scene of the current operating environment; and sending the configuration information of the target strategy to a bus bandwidth configuration driving module, and adjusting the bus bandwidth used by at least one piece of hardware by the bus bandwidth configuration driving module according to the configuration information.
According to the scheme, different bus bandwidth configuration strategies are adopted for different hardware devices aiming at different application programs, so that the key hardware devices can obtain higher bus bandwidth, the bus bandwidth of non-key hardware devices is less, the key hardware devices can rapidly access and store data, the response efficiency of the specific application program under an application scene is improved, the operating system operation jam condition is reduced, and the user embodiment is improved.
Preferably, the adjustment of the bus bandwidth used by the hardware includes at least one of: regulating the access priority of the hardware equipment, setting a high-speed access channel for the hardware equipment, and limiting the access bandwidth of the hardware equipment.
Therefore, the bus bandwidth of the hardware equipment is adjusted in various modes, so that the bus bandwidth of different hardware equipment is flexibly adjusted, the adjustment strategy of the bus agent is flexible, and the response speed of the application program can be effectively improved.
Further, the adjusting of the bus bandwidth used by the hardware comprises: identifying key hardware devices in a current application scenario, wherein the adjustment for the key hardware devices comprises: and improving the access priority of the key hardware equipment and/or setting a high-speed access channel for the key hardware equipment.
Therefore, for the key hardware equipment in the current application scene, the access priority of the key hardware equipment is improved, and the high-speed access channel is set, so that the key hardware equipment can obtain the optimal bandwidth resource, and the data processing efficiency of the key hardware equipment is higher.
Optionally, the adjusting the bus bandwidth used by the hardware includes: identifying non-critical hardware devices in a current application scenario, wherein the adjusting for the non-critical hardware devices comprises: reducing the memory access priority of the non-critical hardware device and/or limiting the memory access bandwidth of the non-critical hardware device.
Therefore, the memory access priority of the non-key hardware equipment is reduced, even the memory access bandwidth is limited, so that the non-key hardware equipment and the key hardware equipment are prevented from occupying bandwidth resources, and the key hardware equipment can be ensured to obtain better resource guarantee.
Further, the method for identifying the current operation scene and confirming the application scene of the current operation environment comprises the following steps: and acquiring the name of the currently started application program, and determining the application scene of the current operating environment according to the name of the currently started application program.
Therefore, by presetting application scenes corresponding to a plurality of application programs, the application program corresponding to the current operating environment can be quickly determined through the currently operating application program, and then the strategy for adjusting the bus bandwidth can be quickly determined.
Further, the determining the application scenario of the current running environment according to the name of the currently started application program includes: and inquiring an application scene corresponding to the currently started application program from a preset table.
Due to the table look-up mode, the determination of the current application scene can be quickly realized, and the adjustment strategy for determining the bus bandwidth is further saved.
Further, the sending the configuration information of the target policy to the bus bandwidth configuration driver module includes: and sending the number of the target strategy to the power management hardware abstraction layer process through a cross-process communication mechanism.
The method comprises the following steps that after a power management hardware abstraction layer process receives a number of a target strategy, a device driver is called to send a bandwidth adjustment strategy configuration command to a kernel driver.
Therefore, the configuration information of the target strategy is sent and processed through the existing mechanism of the operating system, and the device driver is called to send the bandwidth adjustment strategy configuration command to the kernel driver, so that the bandwidth adjustment strategy configuration command can be efficiently transmitted to each hardware device, and the bus bandwidth adjustment efficiency of each hardware device is further improved.
In order to achieve the second objective mentioned above, the present invention provides a computer apparatus including a processor and a memory, wherein the memory stores a computer program, and the computer program implements the steps of the system bus bandwidth adjusting method when executed by the processor.
To achieve the third objective, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the system bus bandwidth adjusting method.
Drawings
Fig. 1 is a technical block diagram of an embodiment of a method for adjusting the bandwidth of a system bus according to the present invention.
Fig. 2 is a flow chart of an embodiment of the method for adjusting the bandwidth of the system bus according to the present invention.
Fig. 3 is a flowchart of application scenario identification and bandwidth adjustment policy selection in the embodiment of the system bus bandwidth adjustment method of the present invention.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
The system bus bandwidth adjusting method is applied to the intelligent electronic device, preferably, the intelligent electronic device runs an android operating system and is provided with a plurality of hardware devices, such as a CPU (central processing unit), a GPU (graphic processing unit) and the like. Preferably, the intelligent electronic device is provided with a processor and a memory, the memory stores a computer program, and the processor implements the system bus bandwidth adjusting method by executing the computer program.
The embodiment of the system bus bandwidth adjusting method comprises the following steps:
the main idea of the invention is to dynamically adjust the configuration of the bus bandwidth of the system according to different application scenarios, specifically, adjust the bus bandwidth of the DDR memory obtained by each hardware device, for example, adjust the access priority, set a high-speed access channel or perform bandwidth limitation for different hardware devices, so as to improve the access capability of the key hardware device and accelerate the processing speed of the application program on the memory data, thereby solving the performance problem caused by the limited access bandwidth of the key hardware device in the current application scenario, and thus improving the application performance. The invention can adjust the corresponding bus bandwidth configuration strategy aiming at various different scenes such as the starting speed of the system, video playing, office software operation, photographing and video recording, performance running and the like so as to meet the performance requirements under different application scenes.
Referring to fig. 1, the electronic device to which the present embodiment is applied has a plurality of hardware devices, such as a central processing unit CPU, an image processor GPU, a display device DE, a video decoder VE, and the like. In addition, the software part of the electronic device is divided into an application layer and a kernel driving layer, wherein the application layer part is used for identifying an application scene, selecting a proper bus bandwidth adjustment strategy through an arbitration mechanism and distributing the bus bandwidth adjustment strategy to the kernel driving layer, and after the kernel driving layer receives the strategy indication of the bus bandwidth, the kernel driving layer immediately configures the bus bandwidth of the hardware so as to improve the memory access capability of the corresponding hardware device, improve the processing speed of the application on the memory data and finally achieve the effect of improving the application performance.
Specifically, the application layer identifies a current application scenario by acquiring a currently running application program, then determines a bus bandwidth policy according to the current application scenario, that is, performs bus bandwidth adjustment policy arbitration, sends an arbitration result to the drive layer, and performs bus bandwidth configuration drive by the drive layer. Therefore, the memory access capacity of the key hardware equipment can be improved by configuring the bus bandwidth of different hardware equipment under different application scenes, and the performance of the application scenes is further improved.
Referring to fig. 2, step S1 is first executed to identify a current application scenario. For example, when a user operates and starts a certain application program, information of the currently running application program, such as a name of the application program, is acquired by using a window management property (Android windows manager) property of an Android operating system, and then a current application scene is determined according to the currently running application program. Preferably, a plurality of application scenes can be preset, such as a system start scene, a video playing scene, a performance testing scene, an office operation scene, a photo and video scene, and the like.
Then, step S2 is executed to determine an adjustment policy for the bus bandwidth in the current application scenario according to the current application scenario. In this embodiment, a corresponding bus bandwidth configuration policy is set for each scene, so that it is ensured that the key hardware device in each application scene can obtain sufficient bus bandwidth, thereby improving the performance of the application scene.
In this embodiment, for different hardware devices, the policies that may be adopted include adjusting the access priority of the hardware device, setting a high-speed access channel for the hardware device, and limiting the access bandwidth of the hardware device. In the arbitration mechanism for internal bandwidth allocation of the DDR memory, the higher the access priority of the hardware device is, the higher the chance of obtaining the response of the DDR memory is, the higher the success probability of competing the bandwidth with other hardware devices is, so that the delay of accessing the DDR memory by the hardware device is shortened, and the speed of accessing the data of the DDR memory by the hardware device is increased. The high-speed memory access channel is a shortest path channel for accessing the DDR memory by the hardware equipment through the bus, and opening the channel for the hardware equipment can furthest shorten the delay of the memory access of the hardware equipment to the DDR memory and increase the probability of successful preemption of the bus bandwidth by the hardware equipment. If the memory access bandwidth of a certain hardware device is limited, the hardware device is in a disadvantage when preempting the bus bandwidth with other hardware devices.
In this embodiment, for each application scenario, it is necessary to determine a critical hardware device and a non-critical hardware device in the application scenario, for example, for the critical hardware device, a policy that may be adopted includes: the memory access priority of the key hardware equipment is improved, a high-speed memory access channel is set for the key hardware equipment, and aiming at non-key hardware equipment, the adopted strategies comprise: the memory access priority of the non-critical hardware equipment is reduced, and the memory access bandwidth of the non-critical hardware equipment is limited.
Therefore, different strategies are adopted for different hardware devices, and the purpose is to ensure that the key hardware devices can obtain more bus bandwidth resources and ensure the data processing capacity of the key hardware devices. In order to avoid that non-critical hardware devices and critical hardware devices preempt hardware resources, especially bus bandwidth resources, the problem can be solved by limiting the memory access bandwidth of the non-critical hardware devices.
The following describes the bus bandwidth configuration strategy in several exemplary application scenarios.
For an application scene of system starting, the system starting speed needs to be improved mainly, and the computing power of the CPU is an important factor influencing the system starting speed, so that the memory access capability of the CPU needs to be optimized as much as possible in the system starting stage. Therefore, in an application scenario of system startup, it is necessary to improve the memory access priority of the CPU and set the CPU as a high-speed memory access channel.
For an application scene of video playing, because in the video playing, if the video decoder VE does not obtain enough DDR bandwidth at a certain time, the situations of blocking and frame loss may occur, and therefore, in the application scene of video playing, the video decoder VE is a key hardware device, and therefore, the access priority of the video decoder VE needs to be improved or configured as a high-speed access channel to optimize the fluency of video playing.
For an application scenario of performance testing, for example, when a geekbench program is run to perform run-out testing, the first influencing element is the computing power of the CPU, so that the CPU is a key hardware device, and other hardware devices are non-key hardware devices, and at this time, the memory access priority of the CPU needs to be improved and set as a high-speed memory access channel. For another example, for a tai chi program, the key factor is the performance of the video processor GPU, which needs to be set as a key hardware device.
For an application scenario of office software operation, for example, a currently running application program is WPS, and since the WPS needs huge CPU computing power when sliding, a CPU is a key hardware device, other hardware devices are non-key hardware devices, and corresponding strategies are to improve the CPU access priority and set the CPU access priority as a high-speed access channel so as to improve the WPS operation fluency.
For the application scene of the picture and video, because the key hardware equipment in the picture and video application scene is the encoder, the access priority of the CSI/ISP is improved to solve the problem of frame loss, and meanwhile, the bandwidth access of other non-key hardware equipment can be properly limited, for example, the limitation of the bandwidth access of a GPU is set.
For an application scenario with the problem of screen splash, in a complex UI operation or a dual display scenario, if the display device DE cannot acquire the DDR bus bandwidth in time, a screen splash phenomenon may occur, and at this time, it is necessary to fully guarantee the bandwidth acquisition of the display device DE, so the display device DE needs to be set as a critical hardware device, for example, the display device DE is set with the highest priority, and a high-speed access channel is set for the display device DE, and meanwhile, bandwidth access of other non-critical hardware devices is further limited, for example, limitation of the bandwidth access of the GPU is set.
Preferably, the multiple bandwidth adjustment policies may be preset, and after the current application scenario is determined, a corresponding adjustment policy may be selected from the multiple adjustment policies as a target policy according to the current application scenario.
After determining the bus bandwidth adjustment policy in the current application scenario, step S3 is executed, and the driver module of the driver layer adjusts the bus bandwidth of each hardware device according to the determined target policy. Then, step S4 is executed to set the bus bandwidth of each hardware device, i.e., to adjust the bandwidth of each hardware device according to the above adjustment policy.
The application scenario identification and bandwidth adjustment policy selection process is described below in conjunction with fig. 3. Step S11 is executed first, and an instruction of the user to start the application is received, so that the corresponding application is started. Then, step S12 is executed, and the window management property (Android windows manager) of the Android operating system is applied to obtain information of the currently running application program, such as the name of the application program, so as to obtain the package name of the currently running application program, that is, step S13 is executed. It is understood that step S12 is to detect the package name of the application program.
Preferably, a table is preset, where the table records names of a plurality of application programs and application scenes corresponding to the application programs, for example, an application scene corresponding to a certain video playing application program is a video playing application program, and an application scene corresponding to a shooting application program is a shooting and recording application scene.
After the step S13 is executed, step S14 is executed to determine the application scenario corresponding to the application program by means of table lookup according to the obtained name of the application program, and thereby select an adjustment policy of the bus bandwidth. For example, a plurality of adjustment strategies are set in advance, and a matching one of the plurality of strategies is selected in step S14. For example, each adjustment policy has its own corresponding number, and the number of the target policy is sent to a power management Hardware Abstraction Layer (HAL) process by using the HIDL cross-process communication mechanism.
Finally, step S15 is executed, and after the power management hardware abstraction layer process receives the number of the target policy, the power management hardware abstraction layer process immediately calls a device driver (ioctl) to send a bandwidth adjustment policy configuration command to the kernel driver, and performs configuration of the bus bandwidth.
Therefore, in the embodiment, by setting corresponding bus bandwidth adjustment strategies in different application scenes and performing different configurations on different hardware, bandwidth resources obtained by key hardware equipment can be improved, so that the performance of the application scenes in the current operating environment is improved, and the occurrence of system jamming is reduced.
The embodiment of the computer device comprises:
the computer device of this embodiment is an intelligent electronic device running with an operating system, and the computer device is provided with a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, the steps of the system bus bandwidth adjusting method are implemented.
For example, a computer program may be partitioned into one or more modules that are stored in a memory and executed by a processor to implement the modules of the present invention. One or more of the modules may be a series of computer program instruction segments capable of performing certain functions, which are used to describe the execution of the computer program in the terminal device.
The Processor may be a Central Processing Unit (CPU), or may be other general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, a discrete hardware component, or the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the terminal device and connecting the various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the terminal device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Computer-readable storage medium embodiments:
the computer program stored in the computer device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium and used by a processor to implement the steps of the method for adjusting the bandwidth of the system bus.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
Finally, it should be emphasized that the present invention is not limited to the above-described embodiments, for example, the change of the set application scenario type, or the change of the bandwidth adjustment policy for each hardware device in various application scenarios, and these changes should also be included in the protection scope of the present invention claims.

Claims (10)

1. A method for adjusting a system bus bandwidth, comprising:
identifying the current operation scene, and confirming the application scene of the current operation environment;
selecting a target strategy from a plurality of preset bus bandwidth adjustment strategies according to the application scene of the current operating environment;
and sending the configuration information of the target strategy to a bus bandwidth configuration driving module, wherein the bus bandwidth configuration driving module adjusts the bus bandwidth used by at least one piece of hardware according to the configuration information.
2. The method of claim 1, wherein the system bus bandwidth is adjusted by:
adjusting the bus bandwidth used by the hardware includes at least one of: regulating the access priority of the hardware equipment, setting a high-speed access channel for the hardware equipment, and limiting the access bandwidth of the hardware equipment.
3. The method of claim 2, wherein the step of adjusting the bandwidth of the system bus comprises:
adjusting the bus bandwidth used by the hardware includes:
identifying key hardware devices in a current application scenario, the adjusting for the key hardware devices comprising: and promoting the memory access priority of the key hardware equipment and/or setting a high-speed memory access channel for the key hardware equipment.
4. The method of claim 2, wherein the step of adjusting the bandwidth of the system bus comprises:
adjusting the bus bandwidth used by the hardware includes:
identifying non-critical hardware devices in a current application scenario, the adjusting for the non-critical hardware devices comprising: reducing the memory access priority of the non-critical hardware equipment and/or limiting the memory access bandwidth of the non-critical hardware equipment.
5. The system bus bandwidth adjustment method according to any one of claims 1 to 4, wherein:
identifying the current operation scene, and confirming the application scene of the current operation environment comprises the following steps:
and acquiring the name of the currently started application program, and determining the application scene of the current operating environment according to the name of the currently started application program.
6. The method of claim 5, wherein the step of adjusting the bandwidth of the system bus comprises:
determining the application scene of the current operating environment according to the name of the currently started application program comprises the following steps: and inquiring an application scene corresponding to the currently started application program from a preset table.
7. The system bus bandwidth adjustment method according to any one of claims 1 to 4, wherein:
sending the configuration information of the target policy to a bus bandwidth configuration driver module includes: and sending the number of the target strategy to a power management hardware abstraction layer process through a cross-process communication mechanism.
8. The method of claim 7, wherein the step of adjusting the bandwidth of the system bus comprises:
and after the power management hardware abstraction layer process receives the number of the target strategy, calling a device driver to send a bandwidth adjustment strategy configuration command to the kernel driver.
9. Computer arrangement, characterized in that it comprises a processor and a memory, said memory storing a computer program that, when executed by the processor, carries out the steps of the system bus bandwidth adjustment method according to any one of claims 1 to 8.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implementing the steps of the system bus bandwidth adjustment method as claimed in any one of claims 1 to 8.
CN202210503571.1A 2022-05-09 2022-05-09 System bus bandwidth adjusting method, computer device and computer readable storage medium Pending CN114840270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210503571.1A CN114840270A (en) 2022-05-09 2022-05-09 System bus bandwidth adjusting method, computer device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210503571.1A CN114840270A (en) 2022-05-09 2022-05-09 System bus bandwidth adjusting method, computer device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114840270A true CN114840270A (en) 2022-08-02

Family

ID=82569677

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210503571.1A Pending CN114840270A (en) 2022-05-09 2022-05-09 System bus bandwidth adjusting method, computer device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114840270A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378762A (en) * 2022-10-25 2022-11-22 芯动微电子科技(珠海)有限公司 Dynamic scheduling method and device for bus transmission performance
CN117319214A (en) * 2023-11-30 2023-12-29 北京象帝先计算技术有限公司 PCIE transmission bandwidth processing method, PCIE terminal equipment and electronic equipment

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN107426432A (en) * 2017-07-31 2017-12-01 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107479970A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107515787A (en) * 2017-08-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107547745A (en) * 2017-08-31 2018-01-05 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107577537A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Resource allocation method and Related product
US20190034234A1 (en) * 2017-07-31 2019-01-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method For Resource Allocation And Terminal Device
CN112083957A (en) * 2020-09-18 2020-12-15 海光信息技术股份有限公司 Bandwidth control device, multithread controller system and memory access bandwidth control method
CN113505084A (en) * 2021-06-24 2021-10-15 中国科学院计算技术研究所 Memory resource dynamic regulation and control method and system based on memory access and performance modeling

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106095592A (en) * 2016-05-31 2016-11-09 广东欧珀移动通信有限公司 A kind of prospect application scenarios synchronous method and device, system
CN107426432A (en) * 2017-07-31 2017-12-01 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107479970A (en) * 2017-07-31 2017-12-15 广东欧珀移动通信有限公司 Resource allocation method and Related product
US20190034234A1 (en) * 2017-07-31 2019-01-31 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Method For Resource Allocation And Terminal Device
CN107515787A (en) * 2017-08-31 2017-12-26 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107547745A (en) * 2017-08-31 2018-01-05 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN107577537A (en) * 2017-09-06 2018-01-12 广东欧珀移动通信有限公司 Resource allocation method and Related product
CN112083957A (en) * 2020-09-18 2020-12-15 海光信息技术股份有限公司 Bandwidth control device, multithread controller system and memory access bandwidth control method
CN113505084A (en) * 2021-06-24 2021-10-15 中国科学院计算技术研究所 Memory resource dynamic regulation and control method and system based on memory access and performance modeling

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
雷蕾 等: "《轨道交通宽带移动通信网络》", 30 April 2018, 北京交通大学出版社, pages: 78 - 83 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115378762A (en) * 2022-10-25 2022-11-22 芯动微电子科技(珠海)有限公司 Dynamic scheduling method and device for bus transmission performance
CN117319214A (en) * 2023-11-30 2023-12-29 北京象帝先计算技术有限公司 PCIE transmission bandwidth processing method, PCIE terminal equipment and electronic equipment
CN117319214B (en) * 2023-11-30 2024-04-16 北京象帝先计算技术有限公司 PCIE transmission bandwidth processing method, PCIE terminal equipment and electronic equipment

Similar Documents

Publication Publication Date Title
CN114840270A (en) System bus bandwidth adjusting method, computer device and computer readable storage medium
US11301300B2 (en) Method for resource allocation and terminal device
WO2019109513A1 (en) Resource updating method and system, electronic device, and medium
US11196935B2 (en) Method and apparatus for accelerating AEC convergence, and terminal device
CN114584833B (en) Audio and video processing method and device and storage medium
CN110704202B (en) Multimedia recording data sharing method and terminal equipment
US11336826B2 (en) Method and apparatus having a function of constant automatic focusing when exposure changes
CN113766120B (en) Shooting mode switching method and electronic equipment
CN111343089A (en) Method and system for solving flooding problem caused by MAC address HASH conflict
CN109284142A (en) File preloads method, apparatus, electronic equipment and computer readable storage medium
EP2738712A1 (en) Embedded multimedia card partitioned storage space adjustment method and terminal
US20230067867A1 (en) Display screen controlling method and apparatus
CN113157467A (en) Multi-process data output method
US20210357252A1 (en) Application management method and apparatus, and device
CN108093258B (en) Code stream data decoding method, computer device and computer readable storage medium
WO2021077747A1 (en) Method and device for implementing application loading, computer storage medium and terminal
CN114885209A (en) Live data processing method, computing device and readable storage medium
WO2021031925A1 (en) Signal sending method and apparatus, and storage medium
EP3992770A1 (en) Message processing method and apparatus, and computer storage medium
US6763439B1 (en) Disk throttling and priority queuing for streaming I/O
CN115242970B (en) Vehicle camera data sharing system, method, electronic equipment and storage medium
CN111796901A (en) Method and device for switching shared memory area, storage medium and electronic equipment
CN111225390A (en) Network channel allocation method, mobile device and storage device
US20230088040A1 (en) Service Flow Transmission Method and Apparatus, Device, and Storage Medium
KR20150083558A (en) Method for processing data on storage device and storage device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination