DDR-based read / write control dynamic scheduling method, device and medium
By introducing data reading, transmission, performance analysis and dynamic scheduling modules into DDR memory, dynamic transmission compensation scheduling based on real-time updated data is realized, which solves the problem of low transmission efficiency of DDR memory and improves system performance.
Patent Information
- Application Number
- CN202410981968.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-22
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-22
AI Technical Summary
The data reading and writing operations of existing DDR memory are affected by factors such as file type, transmission method, and hardware configuration, resulting in low transmission efficiency and the lack of a dynamic transmission compensation scheduling mechanism for real-time data update.
The DDR memory file characteristic data and configuration parameter information are obtained through the data reading module, the transmission analysis module performs feasibility analysis, the performance analysis module performs comprehensive analysis, the resource scheduling module generates a transmission sequencing plan, the transmission monitoring module performs real-time monitoring, and finally the dynamic scheduling module Conduct scheduling demand analysis to implement dynamic transmission compensation scheduling of DDR memory.
It improves the data transmission efficiency of DDR memory, realizes optimized transmission of real-time updated data through dynamic scheduling mechanism, reduces delay and waiting time, and improves system performance.
Smart Images

Figure CN118519587B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of read-write control, and relates to a read-write control dynamic scheduling technology, and specifically to a read-write control dynamic scheduling method, device and medium based on DDR. Background Art
[0002] DDR memory is a common type of main memory with high-speed data reading and writing capabilities, which can meet the needs of processors and other computer components for fast data access. Dynamic scheduling is an optimization strategy for memory management. It intelligently manages the order and priority of memory access requests to minimize read and write delays and improve system performance, thereby reducing unnecessary waiting time and data transmission delays.
[0003] Under the current technical background, the data reading and writing operations of DDR memory are dependent on the pre-input read-write control algorithm. However, in the actual transmission process, due to factors such as file type, transmission mode, hardware configuration, etc., there is a situation where the transmission scheme and the data file being transmitted are poorly compatible, resulting in low transmission efficiency. Therefore, how to realize dynamic transmission compensation scheduling of DDR memory based on real-time update data is the current technical problem;
[0004] To this end, we propose a DDR-based read / write control dynamic scheduling method, device and medium. Summary of the invention
[0005] In view of the deficiencies in the prior art, the present invention aims to provide a DDR-based read / write control dynamic scheduling method, device and medium.
[0006] The technical problems to be solved by the present invention are:
[0007] How to implement dynamic transmission compensation scheduling of DDR memory based on real-time update data.
[0008] In order to achieve the above object, the present invention adopts the following technical solutions:
[0009] In the first aspect, a dynamic scheduling method for read / write control based on DDR, the specific steps of the scheduling method include:
[0010] Step S101, the data reading module obtains the file characteristic data of the data file stored in the DDR memory and sends it to the transmission analysis module through the processor. The data reading module also obtains the configuration parameter information of the DDR memory and sends it to the performance analysis module through the processor.
[0011] Step S102, the transmission analysis module performs a feasibility analysis on the data transmission process of the data file in the DDR memory, obtains the data transmission level of the data file and sends it to the resource scheduling module via the processor, and the performance analysis module performs a comprehensive analysis on the transmission performance of the DDR memory, obtains the performance scheduling level of the DDR memory and sends it to the resource scheduling module via the processor;
[0012] Step S103, the resource scheduling module schedules and controls the data transmission of the DDR memory, analyzes and generates a transmission sorting scheme and sends it to the processor, and the processor performs data transmission according to the transmission sorting scheme;
[0013] Step S104, the transmission monitoring module monitors the data transmission of the DDR memory in real time, and the transmission process data of the DDR memory obtained by monitoring is sent to the dynamic scheduling module via the processor. The dynamic scheduling module performs scheduling demand analysis on the data transmission process of the data file in the DDR memory, and obtains the scheduling demand coefficient of the DDR memory and sends it to the scheduling terminal via the processor. The scheduling terminal dynamically schedules the reading and writing behavior of the DDR memory according to the scheduling demand coefficient.
[0014] Further, the file characteristic data includes a file number, a file type, a file size, an encryption coefficient, a unit row address, and a unit column address of the data file;
[0015] The configuration parameter information includes the number of memory units of the DDR memory, a parallel task threshold and a transmission rate threshold, and the unit capacity and unit used capacity of each memory unit;
[0016] The transmission process data includes the number of parallel transmissions of the DDR memory, the real-time transmission rate, the process duration of the data file currently being transmitted, the data transmission level and file size, and the data transmission level and file size of the data file to be transmitted.
[0017] Furthermore, the analysis process of the transmission analysis module is as follows:
[0018] Obtain the file number and file type of the data file, and select the corresponding transmission coefficient according to the file type;
[0019] Obtaining the file size, encryption coefficient, unit row address and unit column address of the data file, calculating the resource occupation value of the data file, and comparing the resource occupation value of the data file with the resource occupation threshold;
[0020] If the resource occupancy value is less than or equal to the first resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the first data transmission level;
[0021] If the resource occupancy value is greater than the first resource occupancy threshold and less than or equal to the second resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the second data transmission level;
[0022] If the resource occupancy value is greater than the second resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the third data transmission level;
[0023] Among them, the values of the first resource occupancy threshold and the second resource occupancy threshold are both greater than zero, the first resource occupancy threshold is less than the second resource occupancy threshold, the memory resource occupancy of the first data transmission level is lower than the memory resource occupancy of the second data transmission level, and the memory resource occupancy of the second data transmission level is lower than the memory resource occupancy of the third data transmission level.
[0024] Furthermore, the corresponding relationship between the transmission coefficient and the file type is as follows;
[0025] If the file type of the data file is a text file, the value of the transmission coefficient is X1;
[0026] If the file type of the data file is an audio file, the value of the transmission coefficient is X2;
[0027] If the file type of the data file is a video file, the value of the transmission coefficient is X3;
[0028] If the file type of the data file is a non-readable file, the value of the transmission coefficient is X4;
[0029] Among them, X1<X2<X3<X4;
[0030] Furthermore, the analysis process of the performance analysis module is as follows:
[0031] Obtain the number of memory units, parallel task threshold and transmission rate threshold of the DDR memory, as well as the unit capacity and unit used capacity of each memory unit;
[0032] Calculate the performance scheduling value of the DDR memory, and compare the performance scheduling value of the DDR memory with the performance evaluation threshold;
[0033] If the performance scheduling value is less than or equal to the first performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the first performance scheduling level;
[0034] If the performance scheduling value is greater than the first performance evaluation threshold and less than or equal to the second performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the second performance scheduling level;
[0035] If the performance scheduling value is greater than the first performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the third performance scheduling level;
[0036] Among them, the values of the first performance evaluation threshold and the second performance evaluation threshold are both greater than zero, the first performance evaluation threshold is less than the second performance evaluation threshold, the performance margin of the first performance scheduling level is lower than the performance margin of the second performance scheduling level, and the performance margin of the second performance scheduling level is lower than the performance margin of the third performance scheduling level.
[0037] Furthermore, the scheduling control process of the resource scheduling module specifically includes:
[0038] When the DDR memory performs data reading or data writing operations, the performance scheduling level of the DDR memory is obtained, and the corresponding transmission sorting scheme is selected according to the performance scheduling level. The corresponding relationship between the transmission sorting scheme and the performance scheduling level is as follows:
[0039] If the performance scheduling level of the DDR memory is the first performance scheduling level, the transmission sorting scheme is sorted by the first data transmission level, the second data transmission level, and the third data transmission level;
[0040] If the performance scheduling level of the DDR memory is the second performance scheduling level, the transmission sorting scheme is to sort by the second data transmission level, the first data transmission level, and the third data transmission level;
[0041] If the performance scheduling level of the DDR memory is the third performance scheduling level, the transmission sorting scheme is to sort by the third data transmission level, the second data transmission level, and the first data transmission level.
[0042] Furthermore, the scheduling process of the dynamic scheduling module is as follows:
[0043] Obtain the number of parallel transfers of the DDR memory, the real-time transfer rate, the duration of the process of the data file currently being transferred, the data transfer level and the file size, and the data transfer level and the file size of the data file to be transferred;
[0044] Calculate the scheduling requirement coefficient of DDR memory.
[0045] Furthermore, the working process of the dispatching terminal is as follows:
[0046] Compare the scheduling requirement coefficient of the DDR memory with the scheduling requirement interval;
[0047] If the scheduling requirement coefficient belongs to the first scheduling requirement interval, it is determined that the current state of the DDR memory does not require additional dynamic scheduling;
[0048] If the scheduling requirement coefficient belongs to the second scheduling requirement interval, the read-write buffer and the memory controller are enabled to schedule the current data read-write behavior.
[0049] In a second aspect, a computer device is also provided, the computer device comprising:
[0050] A memory storing a computer program;
[0051] The processor is communicatively connected with the memory, and when the computer program is executed by the processor, a dynamic scheduling method for read-write control based on DDR is implemented.
[0052] In a third aspect, a computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, a dynamic scheduling method for read-write control based on DDR is implemented.
[0053] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are:
[0054] The present invention firstly obtains the file characteristic data of the data file stored in the DDR memory and the configuration parameter information of the DDR memory through the data reading module, then uses the transmission analysis module to perform a feasibility analysis on the data transmission process of the data file in the DDR memory, and then uses the performance analysis module to perform a comprehensive analysis on the transmission performance of the DDR memory, and then uses the resource scheduling module to schedule and control the data transmission of the DDR memory and generate a transmission sorting scheme, and the processor performs data transmission according to the transmission sorting scheme, and also uses the transmission monitoring module to monitor the data transmission of the DDR memory in real time, and finally uses the dynamic scheduling module to perform a scheduling demand analysis on the data transmission process of the DDR memory. The present invention realizes dynamic transmission compensation scheduling of the DDR memory based on real-time update data. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0056] Figure 1 is a flow chart of the method of the present invention;
[0057] Figure 2 is the overall system block diagram of the present invention;
[0058] Figure 3 It is a principle schematic diagram of the data reading module in the present invention;
[0059] Figure 4 It is a schematic diagram of the structure of the computer device in the present invention. DETAILED DESCRIPTION
[0060] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] Example 1: Please refer to Figure 1-3 As shown, the technical solution provided by the present invention is: a dynamic scheduling method for read-write control based on DDR, and the method steps specifically include:
[0062] Step S101, the data reading module obtains the file characteristic data of the data file stored in the DDR memory and sends it to the transmission analysis module through the processor. The data reading module also obtains the configuration parameter information of the DDR memory and sends it to the performance analysis module through the processor.
[0063] Step S102, the transmission analysis module performs a feasibility analysis on the data transmission process of the data file in the DDR memory, obtains the data transmission level of the data file and sends it to the resource scheduling module via the processor, and the performance analysis module performs a comprehensive analysis on the transmission performance of the DDR memory, obtains the performance scheduling level of the DDR memory and sends it to the resource scheduling module via the processor;
[0064] Step S103, the resource scheduling module schedules and controls the data transmission of the DDR memory, analyzes and generates a transmission sorting scheme and sends it to the processor, and the processor performs data transmission according to the transmission sorting scheme;
[0065] Step S104, the transmission monitoring module monitors the data transmission of the DDR memory in real time, and the transmission process data of the DDR memory obtained by monitoring is sent to the dynamic scheduling module via the processor. The dynamic scheduling module performs scheduling demand analysis on the data transmission process of the data file in the DDR memory, and obtains the scheduling demand coefficient of the DDR memory and sends it to the scheduling terminal via the processor. The scheduling terminal dynamically schedules the reading and writing behavior of the DDR memory according to the scheduling demand coefficient.
[0066] The method involves a processor, which is connected to a data reading module, a transmission analysis module, a performance analysis module, a resource scheduling module, a transmission monitoring module, a dynamic scheduling module and a scheduling terminal;
[0067] In this embodiment, the running carrier of the DDR memory is preferably a computer device of the user. The composition of the DDR memory includes a memory chip, a data bus, a read-write buffer and a memory controller. It can be understood that the data reading and writing principle of the DDR memory involves the cooperation between the memory controller, the data bus and the memory chip. The DDR memory realizes double data rate transmission by simultaneously transmitting data at the rising edge and the falling edge of the read-write buffer.
[0068] The data reading module is used to obtain the file characteristic data of the data file stored in the DDR memory, and send the file characteristic data of the data file to the processor, and the processor sends the file characteristic data of the data file to the transmission analysis module, and the file characteristic data includes the file number, file type, file size, encryption coefficient, unit row address and unit column address of the data file;
[0069] It should be specifically stated that, Figure 3 As shown, the storage chip of DDR memory organizes data in the form of rows and columns, and divides the storage chip into a number of memory cells, and the memory cells are distinguished by cell row addresses and cell column addresses;
[0070] Among them, the file types include video files, audio files, text files and non-readable files. The encryption coefficient reflects the encryption degree of the data file. The larger the value of the encryption coefficient, the higher the encryption degree of the data file. It is understandable that in order to ensure the data integrity of the data file during the transmission process, the data file with a higher encryption degree needs to schedule additional memory resources for encrypted transmission. For example, for an unencrypted data file, the value of the encryption coefficient is 1. When the value of the encryption coefficient is greater than 1, the data file is encrypted;
[0071] The data reading module is also used to obtain the configuration parameter information of the DDR memory and send it to the processor. The processor sends the configuration parameter information of the DDR memory to the performance analysis module. The configuration parameter information includes the number of memory cells of the DDR memory, the parallel task threshold and the transmission rate threshold, and the unit capacity and unit used capacity of each memory cell. Among them, the number of memory cells is the number of memory cells in the storage chip of the DDR memory. Due to the storage form of the storage chip, the relationship of the number of memory cells m is constructed: m=l×c, l is the number of rows of the storage chip, and c is the number of columns of the storage chip.
[0072] In this embodiment, the transmission analysis module is used to perform feasibility analysis on the data transmission process of the data file in the DDR memory. The feasibility analysis process is as follows:
[0073] Get the file number i and file type of the data file, select the corresponding transmission coefficient ti according to the file type, and the corresponding relationship between the transmission coefficient and the file type is as follows;
[0074] If the file type of the data file is a text file, the value of the transmission coefficient ti is X1;
[0075] If the file type of the data file is an audio file, the value of the transmission coefficient ti is X2;
[0076] If the file type of the data file is a video file, the value of the transmission coefficient ti is X3;
[0077] If the file type of the data file is a non-readable file, the value of the transmission coefficient ti is X4;
[0078] Among them, the values of ti are all greater than zero, X1<X2<X3<X4. It can be understood that the larger the value of the transmission coefficient is, the greater the transmission difficulty of the corresponding file type is;
[0079] Then, the file size DXi, encryption coefficient JMi, unit row address DLi and unit column address DCi of the data file are obtained, and the resource occupation value ZYi of the data file is calculated according to the formula. The specific formula is as follows:
[0080] ;
[0081] Among them, TL is the target row address of the storage chip, and TC is the target column address of the storage chip. It can be understood that the target row address and the target column address are the data entry and exit addresses of the storage chip. It should be specifically explained that the unit row address and the unit column address of the data file and the target row address and the target column address of the storage chip can be understood as the horizontal coordinate and the vertical coordinate in the coordinate system. The transmission distance of the data file in the read and write operation is obtained by calculating the distance between the coordinates;
[0082] Compare the resource usage value of the data file with the resource usage threshold;
[0083] If the resource occupancy value is less than or equal to the first resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the first data transmission level;
[0084] If the resource occupancy value is greater than the first resource occupancy threshold and less than or equal to the second resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the second data transmission level;
[0085] If the resource occupancy value is greater than the second resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the third data transmission level;
[0086] The values of the first resource occupancy threshold and the second resource occupancy threshold are both greater than zero, the first resource occupancy threshold is less than the second resource occupancy threshold, the memory resource occupancy of the first data transmission level is lower than the memory resource occupancy of the second data transmission level, and the memory resource occupancy of the second data transmission level is lower than the memory resource occupancy of the third data transmission level;
[0087] The transmission analysis module sends the data transmission level of the data file to the processor, and the processor sends the data transmission level of the data file to the resource scheduling module.
[0088] Furthermore, the performance analysis module is used to perform a comprehensive analysis on the transmission performance of the DDR memory, and the analysis process is specifically as follows:
[0089] Get the number of memory units m, the parallel task threshold BX, the transmission rate threshold LV, and the unit capacity RLr and the unit used capacity YLr of each memory unit of the DDR memory, where r is the memory unit sequence number, r is a non-zero natural number, and the upper limit value of r is the number of memory units m;
[0090] The performance scheduling value XN of the DDR memory is calculated according to the formula. The specific formula is as follows:
[0091] ;
[0092] Among them, s1 and s2 are weight coefficients with fixed values. The values of s1 and s2 are both greater than zero, s1+s2=1, s1 is the transmission performance weight, and s2 is the capacity surplus weight;
[0093] Compare the performance scheduling value of the DDR memory with the performance evaluation threshold;
[0094] If the performance scheduling value is less than or equal to the first performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the first performance scheduling level;
[0095] If the performance scheduling value is greater than the first performance evaluation threshold and less than or equal to the second performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the second performance scheduling level;
[0096] If the performance scheduling value is greater than the first performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the third performance scheduling level;
[0097] The values of the first performance evaluation threshold and the second performance evaluation threshold are both greater than zero, the first performance evaluation threshold is less than the second performance evaluation threshold, the performance margin of the first performance scheduling level is lower than the performance margin of the second performance scheduling level, and the performance margin of the second performance scheduling level is lower than the performance margin of the third performance scheduling level;
[0098] The performance analysis module sends the performance scheduling level of the DDR memory to the processor, and the processor sends the performance scheduling level of the DDR memory to the resource scheduling module.
[0099] Specifically, the resource scheduling module is used to schedule and control the data transmission of the DDR memory, and the scheduling and control process specifically includes:
[0100] When the DDR memory performs data reading or data writing operations, the performance scheduling level of the DDR memory is obtained, and the corresponding transmission sorting scheme is selected according to the performance scheduling level. The corresponding relationship between the transmission sorting scheme and the performance scheduling level is as follows:
[0101] If the performance scheduling level of the DDR memory is the first performance scheduling level, the transmission sorting scheme is sorted by the first data transmission level, the second data transmission level, and the third data transmission level;
[0102] If the performance scheduling level of the DDR memory is the second performance scheduling level, the transmission sorting scheme is to sort by the second data transmission level, the first data transmission level, and the third data transmission level;
[0103] If the performance scheduling level of the DDR memory is the third performance scheduling level, the transmission sorting scheme is to sort by the third data transmission level, the second data transmission level, and the first data transmission level;
[0104] It is understandable that when the performance scheduling level of the DDR memory is the first performance scheduling level, the performance occupation caused by transmitting the data files of the first data transmission level does not exceed the tolerance threshold of the current performance scheduling level, and the performance occupation caused by transmitting the data files of the second data transmission level and the third data transmission level exceeds the tolerance threshold of the current performance scheduling level, and additional performance scheduling is required;
[0105] The resource scheduling module sends the transmission sequencing scheme to the processor, and the processor performs data transmission according to the transmission sequencing scheme.
[0106] When actually transmitting, the transmission monitoring module is used to monitor the data transmission of the DDR memory in real time. The monitoring process is as follows:
[0107] Acquire the transmission process data of the DDR memory, the transmission process data includes the number of parallel transmissions of the DDR memory, the real-time transmission rate, the process duration, data transmission level and file size of the data file currently being transmitted, and the data transmission level and file size of the data file to be transmitted, wherein the process duration is the time consumed for data transmission of the data file currently being transmitted;
[0108] The transmission monitoring module sends the transmission process data of the DDR memory to the processor, and the processor sends the transmission process data of the DDR memory to the dynamic scheduling module.
[0109] In specific implementation, the dynamic scheduling module is used to perform scheduling demand analysis on the data transmission process of the data file in the DDR memory. The scheduling process is as follows:
[0110] Obtain the parallel transmission number BC of the DDR memory, the real-time transmission rate CV, the process duration CTi of the data file currently being transmitted, the data transmission level and file size DXi, and the data transmission level and file size DXi' of the data file to be transmitted;
[0111] The scheduling demand coefficient DD of DDR memory is calculated according to the formula. The specific formula is as follows:
[0112] ;
[0113] Among them, a1, a2, a3 and a4 are proportional coefficients of fixed values, and the values of a1, a2, a3 and a4 are all greater than zero, a1 is the parallel task coefficient, a2 is the rate maintenance coefficient, a3 is the transmission duration coefficient, a4 is the subsequent transmission volume coefficient, Ci is the additional coefficient of the data file, Ci' is the additional coefficient of the data file to be transmitted, and the value of Ci includes C1, C2 and C3. Specifically, when the data transmission level of the data file is the first data transmission level, the corresponding additional coefficient is C1, when the data transmission level of the data file is the second data transmission level, the corresponding additional coefficient is C2, and when the data transmission level of the data file is the third data transmission level, the corresponding additional coefficient is C3;
[0114] The dynamic scheduling module sends the scheduling requirement coefficient of the DDR memory to the processor, and the processor sends the scheduling requirement coefficient of the DDR memory to the scheduling terminal;
[0115] The scheduling terminal dynamically schedules the read and write behavior of the DDR memory according to the scheduling demand coefficient. The specific working process of the module is as follows:
[0116] Compare the scheduling requirement coefficient of the DDR memory with the scheduling requirement interval;
[0117] If the scheduling requirement coefficient belongs to the first scheduling requirement interval, it is determined that the current state of the DDR memory does not require additional dynamic scheduling;
[0118] If the scheduling requirement coefficient belongs to the second scheduling requirement interval, the read-write buffer and the memory controller are enabled to schedule the current data read-write behavior.
[0119] In this application, if corresponding calculation formulas appear, the above calculation formulas are all dimensionless and take their numerical calculations. The weight coefficients, proportional coefficients and other coefficients in the formulas are set to a result value obtained by quantifying each parameter. The size of the weight coefficient and the proportional coefficient can be determined as long as it does not affect the proportional relationship between the parameter and the result value.
[0120] Embodiment 2: Figure 4 The following is a schematic diagram of the physical structure of a computer device, such as Figure 4As shown, the computer device may include: a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus. The processor may call the logic instructions in the memory to execute a dynamic scheduling method for read-write control based on DDR, the method comprising: a data reading module obtains file characteristic data of a data file stored in a DDR memory and obtains configuration parameter information of the DDR memory; a transmission analysis module performs a feasibility analysis on the data transmission process of the data file in the DDR memory, and a performance analysis module performs a comprehensive analysis on the transmission performance of the DDR memory; a resource scheduling module performs scheduling control on the data transmission of the DDR memory and generates a transmission sorting scheme, and the processor performs data transmission according to the transmission sorting scheme; a transmission monitoring module performs real-time monitoring on the data transmission of the DDR memory, and a dynamic scheduling module performs scheduling demand analysis on the data transmission process of the DDR memory.
[0121] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0122] On the other hand, the present application also provides a computer program product, which includes a computer program stored on a computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the DDR-based read-write control dynamic scheduling method provided by the above methods, and the method includes: a data reading module obtains file characteristic data of a data file stored in a DDR memory and obtains configuration parameter information of the DDR memory; a transmission analysis module performs a feasibility analysis on the data transmission process of the data file in the DDR memory, and a performance analysis module performs a comprehensive analysis on the transmission performance of the DDR memory; a resource scheduling module schedules and controls the data transmission of the DDR memory and generates a transmission sorting scheme, and a processor performs data transmission according to the transmission sorting scheme; a transmission monitoring module monitors the data transmission of the DDR memory in real time, and a dynamic scheduling module performs a scheduling demand analysis on the data transmission process of the DDR memory.
[0123] On the other hand, the present application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the above-mentioned DDR-based read-write control dynamic scheduling method, the method comprising: a data reading module obtaining file characteristic data of a data file stored in a DDR memory and obtaining configuration parameter information of the DDR memory; a transmission analysis module performing a feasibility analysis on the data transmission process of the data file in the DDR memory, and a performance analysis module performing a comprehensive analysis on the transmission performance of the DDR memory; a resource scheduling module performing scheduling control on the data transmission of the DDR memory and generating a transmission sorting scheme, and the processor performing data transmission according to the transmission sorting scheme; a transmission monitoring module performing real-time monitoring on the data transmission of the DDR memory, and a dynamic scheduling module performing scheduling demand analysis on the data transmission process of the DDR memory.
[0124] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. Dynamic scheduling method of read and write control based on DDR, It is characterized in that The method comprises the following steps: Step S101, obtaining file characteristic data of a data file stored in a DDR memory and configuration parameter information of the DDR memory; The file characteristic data includes the file number, file type, file size, encryption coefficient, unit row address and unit column address of the data file; the configuration parameter information includes the number of memory units of the DDR memory, the parallel task threshold and the transmission rate threshold, and the unit capacity and unit used capacity of each memory unit; Step S102, performing a feasibility analysis on the data transmission process of the data file in the DDR memory to obtain the data transmission level of the data file, and performing a comprehensive analysis on the transmission performance of the DDR memory to obtain the performance scheduling level of the DDR memory; The analysis process of the feasibility analysis in step S102 is specifically as follows: Obtain the file number i and file type of the data file, and select the corresponding transmission coefficient ti according to the file type; Get the file size DXi, encryption coefficient JMi, unit row address DLi and unit column address DCi of the data file, according to the formula Calculate the resource occupancy value ZYi of the data file, and compare the resource occupancy value of the data file with the resource occupancy threshold; where TL is the target row address of the memory chip, and TC is the target column address of the memory chip; If the resource occupancy value is less than or equal to the first resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the first data transmission level; If the resource occupancy value is greater than the first resource occupancy threshold and less than or equal to the second resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the second data transmission level; If the resource occupancy value is greater than the second resource occupancy threshold, the data transmission level of the corresponding data file is determined to be the third data transmission level; wherein the values of the first resource occupancy threshold and the second resource occupancy threshold are both greater than zero, the first resource occupancy threshold is less than the second resource occupancy threshold, the memory resource occupancy of the first data transmission level is lower than the memory resource occupancy of the second data transmission level, and the memory resource occupancy of the second data transmission level is lower than the memory resource occupancy of the third data transmission level; The analysis process of the comprehensive analysis in step S102 is specifically as follows: Get the number of memory units m, the parallel task threshold BX, the transmission rate threshold LV, and the unit capacity RLr and the unit used capacity YLr of each memory unit of the DDR memory, where r is the memory unit sequence number, r is a non-zero natural number, and the upper limit value of r is the number of memory units m; According to the formula Calculate the performance scheduling value XN of the DDR memory, and compare the performance scheduling value of the DDR memory with the performance evaluation threshold; where s1 and s2 are weight coefficients with fixed values, the values of s1 and s2 are both greater than zero, s1+s2=1, s1 is the transmission performance weight, and s2 is the capacity surplus weight; If the performance scheduling value is less than or equal to the first performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the first performance scheduling level; If the performance scheduling value is greater than the first performance evaluation threshold and less than or equal to the second performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the second performance scheduling level; If the performance scheduling value is greater than the first performance evaluation threshold, the performance scheduling level of the corresponding DDR memory is determined to be the third performance scheduling level; wherein the values of the first performance evaluation threshold and the second performance evaluation threshold are both greater than zero, the first performance evaluation threshold is less than the second performance evaluation threshold, the performance margin of the first performance scheduling level is lower than the performance margin of the second performance scheduling level, and the performance margin of the second performance scheduling level is lower than the performance margin of the third performance scheduling level; Step S103, scheduling and controlling the data transmission of the DDR memory, obtaining a transmission sorting scheme, and performing data transmission according to the transmission sorting scheme; The process of scheduling control in step S103 specifically includes: When the DDR memory performs data reading or data writing operations, the performance scheduling level of the DDR memory is obtained, and the corresponding transmission sorting scheme is selected according to the performance scheduling level. The corresponding relationship between the transmission sorting scheme and the performance scheduling level is as follows: If the performance scheduling level of the DDR memory is the first performance scheduling level, the transmission sorting scheme is sorted by the first data transmission level, the second data transmission level, and the third data transmission level; If the performance scheduling level of the DDR memory is the second performance scheduling level, the transmission sorting scheme is to sort by the second data transmission level, the first data transmission level, and the third data transmission level; If the performance scheduling level of the DDR memory is the third performance scheduling level, the transmission sorting scheme is to sort by the third data transmission level, the second data transmission level, and the first data transmission level; Step S104, real-time monitoring of the data transmission of the DDR memory, monitoring to obtain the transmission process data of the DDR memory, performing a scheduling demand analysis on the data transmission process of the data file in the DDR memory, obtaining the scheduling demand coefficient of the DDR memory, and dynamically scheduling the reading and writing behavior of the DDR memory according to the scheduling demand coefficient; The transmission process data includes the number of parallel transmissions of the DDR memory, the real-time transmission rate, the process duration of the data file currently being transmitted, the data transmission level and file size, and the data transmission level and file size of the data file to be transmitted; The process of scheduling demand analysis in step S104 is specifically as follows: Obtain the parallel transmission number BC of the DDR memory, the real-time transmission rate CV, the process duration CTi of the data file currently being transmitted, the data transmission level and file size DXi, and the data transmission level and file size DXi' of the data file to be transmitted; The scheduling demand coefficient DD of DDR memory is calculated according to the formula. The specific formula is as follows: ; Wherein, a1, a2, a3 and a4 are fixed value proportional coefficients, the values of a1, a2, a3 and a4 are all greater than zero, a1 is the parallel task coefficient, a2 is the rate maintenance coefficient, a3 is the transmission duration coefficient, a4 is the subsequent transmission volume coefficient, Ci is the additional coefficient of the data file, and Ci' is the additional coefficient of the data file to be transmitted; The working process of dynamic scheduling in step S104 is specifically as follows: Compare the scheduling requirement coefficient of the DDR memory with the scheduling requirement interval; If the scheduling requirement coefficient belongs to the first scheduling requirement interval, it is determined that the current state of the DDR memory does not require additional dynamic scheduling; If the scheduling requirement coefficient belongs to the second scheduling requirement interval, the read-write buffer and the memory controller are enabled to schedule the current data read-write behavior.
2. The DDR-based read / write control dynamic scheduling method according to claim 1, It is characterized in that The corresponding relationship between the transmission coefficient and the file type is as follows: If the file type of the data file is a text file, the value of the transmission coefficient is X1; If the file type of the data file is an audio file, the value of the transmission coefficient is X2; If the file type of the data file is a video file, the value of the transmission coefficient is X3; If the file type of the data file is a non-readable file, the value of the transmission coefficient is X4; Among them, X1<X2<X3<X4.
3. A computer device, It is characterized in that The computer device comprises: A memory storing a computer program; A processor is communicatively connected to the memory, and when the computer program is executed by the processor, the method described in any one of claims 1-2 is implemented.
4. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method according to any one of claims 1 to 2 is implemented.
