Method for controlling refresh time, control device and warehouse platform

CN115658322BActive Publication Date: 2026-08-07ZHUHAI GREE INTELLIGENT EQUIP CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHUHAI GREE INTELLIGENT EQUIP CO LTD
Filing Date
2022-11-15
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

[0005]本申请的主要目的在于提供一种刷新时间的控制方法、控制装置、计算机可读存储介质和仓储平台,以解决现有技术中现有技术中刷新时间不合适影响系统性能的问题

Benefits of technology

[0016]在本发明实施例中,上述刷新时间的控制方法中,首先,获取目标系统的多个历史刷新时间和多个历史CPU占用率,多个上述历史刷新时间均不同,上述历史刷新时间为目标系统为历史时刻下上述目标系统设置的刷新间隔时间,上述历史CPU占用率为上述目标系统以上述历史刷新时间运行时的CPU占用率;然后,根据多个上述历史刷新时间和多个上述历史CPU占用率生成刷新曲线,上述刷新曲线为上述CPU占用率随刷新时间变化的曲线;之后,根据上述刷新曲线确定优选刷新时间,上述优选刷新时间为任意一个上述刷新曲线中斜率的绝对值小于预定值的点对应的上述刷新时间;最后,控制上述目标系统以上述优选刷新时间运行。该方法通过多个历史刷新时间和多个历史CPU占用率生成刷新曲线,以找出刷新曲线中斜率为0或者无穷大的点对应的刷新时间,得到优选刷新时间,将其作为优选刷新时间,在不影响系统运行的情况下,尽量减少CPU占用,保证了系统性能的稳定性,解决了现有技术中刷新时间不合适影响系统性能的问题。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115658322B_ABST
    Figure CN115658322B_ABST
Patent Text Reader

Abstract

The application provides a refresh time control method, a control device and a warehouse platform. The method comprises the following steps: obtaining a plurality of historical refresh times and a plurality of historical CPU occupancy rates of a target system, the plurality of historical refresh times are different, the historical refresh time is a refresh interval time set by the target system for a historical moment, and the historical CPU occupancy rate is a CPU occupancy rate when the target system runs at the historical refresh time; generating a refresh curve according to the plurality of historical refresh times and the plurality of historical CPU occupancy rates, the refresh curve is a curve of the CPU occupancy rate changing with the refresh time; determining an optimal refresh time according to the refresh curve, the optimal refresh time is a refresh time corresponding to a point with an absolute value of a slope smaller than a predetermined value in any refresh curve; and controlling the target system to run at the optimal refresh time, thereby solving the problem that the refresh time is not suitable and affects the system performance in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of system refresh technology, and more specifically, to a method for controlling refresh time, a control device, a computer-readable storage medium, and a storage platform. Background Technology

[0002] Currently, the WCS system automatically runs and refreshes repeatedly using a timer. The system currently has four function entry points, with a refresh time of 200ms-500ms. Since this system needs to be deployed to the project site, the system may experience varying degrees of lag depending on the configuration of the computers on site, affecting the system's performance.

[0003] Analysis of the causes of the lag indicates a correlation with the system's automatic refresh time. A lower refresh time threshold consumes more CPU, leading to lag, unresponsive pages, and potentially overheating the CPU, shortening its lifespan and affecting the use of other software. Conversely, a high threshold can cause unresponsive programs, affecting communication with the PLC and delaying the reception of data from the scheduling system. In short, the time threshold setting directly impacts the system's performance.

[0004] The information disclosed in the background section is only intended to enhance the understanding of the background art of the art described herein. Therefore, the background art may contain information that does not constitute prior art known to those skilled in the art in this country. Summary of the Invention

[0005] The main objective of this application is to provide a refresh time control method, control device, computer-readable storage medium, and storage platform to solve the problem that inappropriate refresh time affects system performance in the prior art.

[0006] According to one aspect of the present invention, a method for controlling refresh time is provided, comprising: acquiring multiple historical refresh times and multiple historical CPU utilization rates of a target system, wherein the multiple historical refresh times are all different, the historical refresh times are refresh interval times set by the target system for the target system at historical moments, and the historical CPU utilization rates are the CPU utilization rates of the target system when running at the historical refresh times; generating a refresh curve based on the multiple historical refresh times and the multiple historical CPU utilization rates, the refresh curve being a curve of CPU utilization rate changing with refresh time; determining a preferred refresh time based on the refresh curve, the preferred refresh time being the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value; and controlling the target system to run at the preferred refresh time.

[0007] Optionally, after determining the preferred refresh time based on the refresh curve, the method further includes: a processing step: if the target system experiences a response timeout or packet loss when running at the preferred refresh time, the preferred refresh time is reduced by a first predetermined time; a detection step: controlling the target system to run at the reduced preferred refresh time, and detecting whether the target system experiences a response timeout or packet loss; repeating the processing step and the detection step at least once until the target system response does not time out and the target system does not experience packet loss, determining the current preferred refresh time as the optimal refresh time; and controlling the target system to run at the optimal refresh time.

[0008] Optionally, obtaining multiple historical refresh times and multiple historical CPU utilization rates of the target system includes: an acquisition step: when the target system runs for a predetermined time at a target historical refresh time, acquiring the historical CPU utilization rate, wherein the historical CPU utilization rate is the current CPU utilization rate, and the target historical refresh time is one of the historical refresh times; repeating the acquisition step at least once until the historical CPU utilization rates corresponding to all the historical refresh times are obtained.

[0009] Optionally, obtaining the historical CPU utilization rate includes: obtaining the CPU utilization rate once at a second predetermined time interval until a predetermined number of CPU utilization rates are obtained; calculating the average value of the predetermined number of CPU utilization rates to obtain the historical CPU utilization rate.

[0010] Optionally, determining the preferred refresh time based on the refresh curve includes: determining the refresh time corresponding to the point in the refresh curve with a slope of 0 as the preferred refresh time.

[0011] Optionally, the value of the first predetermined time is in the range of 50ms to 100ms.

[0012] Optionally, the target system is a warehouse control system, and the historical CPU utilization rate is the CPU utilization rate of the target software running the warehouse control system, wherein the target software is software that is required to meet the requirement of no timeout in response.

[0013] According to another aspect of the present invention, a refresh time control device is also provided, comprising: an acquisition unit, configured to acquire multiple historical refresh times and multiple historical CPU utilization rates of a target system, wherein the multiple historical refresh times are all different, the historical refresh times are refresh interval times set by the target system for the target system at historical times, and the historical CPU utilization rates are the CPU utilization rates of the target system when running at the historical refresh times; a generation unit, configured to generate a refresh curve based on the multiple historical refresh times and the multiple historical CPU utilization rates, the refresh curve being a curve of CPU utilization rate changing with refresh time; a determination unit, configured to determine a preferred refresh time based on the refresh curve, the preferred refresh time being the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value; and a first control unit, configured to control the target system to run at the preferred refresh time.

[0014] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein when the program is executed by a processor, the processor performs any one of the methods described.

[0015] According to another aspect of the present invention, a warehousing platform is also provided, comprising: a warehousing control system, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include methods for performing any one of the methods described.

[0016] In this embodiment of the invention, the refresh time control method first obtains multiple historical refresh times and multiple historical CPU utilization rates of the target system. Each of the historical refresh times is different; the historical refresh time is the refresh interval time set by the target system for a historical moment, and the historical CPU utilization rate is the CPU utilization rate of the target system running at the historical refresh time. Then, a refresh curve is generated based on the multiple historical refresh times and the multiple historical CPU utilization rates. The refresh curve is a curve showing the change in CPU utilization rate with refresh time. Next, an optimal refresh time is determined based on the refresh curve. The optimal refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value. Finally, the target system is controlled to run at the optimal refresh time. This method generates a refresh curve using multiple historical refresh times and multiple historical CPU utilization rates to find the refresh time corresponding to points in the refresh curve where the slope is 0 or infinite, obtaining an optimal refresh time. Using this optimal refresh time minimizes CPU utilization without affecting system operation, ensuring system performance stability and solving the problem of unsuitable refresh times affecting system performance in the prior art. Attached Figure Description

[0017] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0018] Figure 1 A flowchart of a refresh time control method according to an embodiment of this application is shown;

[0019] Figure 2 A flowchart illustrating a refresh time control method according to another embodiment of this application is shown;

[0020] Figure 3 A schematic diagram of a refresh curve according to an embodiment of this application is shown;

[0021] Figure 4 A schematic diagram of a refresh time control device according to an embodiment of this application is shown. Detailed Implementation

[0022] It should be noted that the following detailed descriptions are illustrative and intended to provide further explanation of this application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0023] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this application. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0024] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be an intermediate element present. Furthermore, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element via a third element.

[0025] As mentioned in the background section, inappropriate refresh times in the prior art affect system performance. In order to solve the above problems, a typical embodiment of this application provides a refresh time control method, control device, computer-readable storage medium, and warehousing platform.

[0026] According to an embodiment of this application, a method for controlling refresh time is provided.

[0027] Figure 1 This is a flowchart of a refresh time control method according to an embodiment of this application. For example... Figure 1 As shown, the method includes the following steps:

[0028] Step S101: Obtain multiple historical refresh times and multiple historical CPU utilization rates of the target system. The multiple historical refresh times are all different. The historical refresh time is the refresh interval time set by the target system for the historical time. The historical CPU utilization rate is the CPU utilization rate of the target system when it runs at the historical refresh time.

[0029] Optionally, the present invention does not limit the specific process of obtaining multiple historical refresh times and multiple historical CPU utilization rates of the target system, and any feasible method is within the protection scope of the present invention.

[0030] For example, in one optional implementation, step S101 includes:

[0031] Step S1011, obtaining step: under the condition that the above target system runs for a predetermined time at the target historical refresh time, obtain the above historical CPU utilization rate, the above historical CPU utilization rate is the current above CPU utilization rate, obtain the above historical CPU utilization rate, and the above target historical refresh time is one of the above historical refresh times.

[0032] Step S1012: Repeat the above acquisition steps at least once until the above historical CPU utilization corresponding to all the above historical refresh times is obtained.

[0033] In the above embodiments, such as Figure 2 As shown, the target system is a warehouse control system. The historical CPU utilization rate is the CPU utilization rate of the target software running the warehouse control system. The target software is software that is required to meet the requirement of no response timeout. Taking Visual Studio as an example, after the system has been running stably for about 5 minutes, the historical CPU utilization rate under multiple historical refresh times can be obtained by adjusting the refresh time, resulting in 6 sets of historical refresh times and historical CPU utilization rates, which are convenient for generating refresh curves later.

[0034] To improve the accuracy of CPU utilization, in one optional implementation, step S1011 includes:

[0035] Step S10111: Obtain the CPU utilization rate once at a second predetermined time interval until a predetermined number of CPU utilization rates are obtained.

[0036] Step S10112: Calculate the average value of the above-mentioned CPU utilization rate for a predetermined number of times to obtain the above-mentioned historical CPU utilization rate.

[0037] In the above embodiments, such as Figure 2 As shown, Task Manager normally refreshes once per second, recording the CPU usage data of 10 Visual Studio instances. The average value is taken as a1, which is the CPU usage corresponding to the current automatic refresh time. This avoids large errors in instantaneous CPU usage and improves the accuracy of historical CPU usage.

[0038] Step S102: Generate a refresh curve based on multiple historical refresh times and multiple historical CPU utilization rates, wherein the refresh curve is a curve showing the change of CPU utilization rate with refresh time.

[0039] Specifically, the historical refresh times mentioned above are spaced 50ms apart. A model is built with the WCS automatic refresh time as the X-axis and Visual Studio's CPU usage as the Y-axis. Based on the recorded data and corresponding coordinate values, a refresh curve is plotted, as shown below. Figure 3 As shown.

[0040] Step S103: Determine the preferred refresh time based on the refresh curve. The preferred refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value.

[0041] To further improve the stability of system performance, in an optional implementation, step S103 includes:

[0042] Step S1031: The refresh time corresponding to the point with a slope of 0 in the refresh curve is determined as the preferred refresh time.

[0043] In the above embodiments, such as Figure 3 As shown, observing the refresh curve reveals an exponential distribution. The CPU utilization gradually decreases with increasing refresh time, but flattens out from 300ms to 500ms. The curve indicates that point J (550ms) corresponds to the lowest CPU utilization of 13.2%. Therefore, the minimum CPU utilization threshold for the current computer configuration is 550ms. The point on the refresh curve where the slope is 0, and the point where the CPU utilization changes from decreasing to increasing, is the optimal refresh time, further improving system performance stability.

[0044] Step S104: Control the target system to run at the preferred refresh time.

[0045] To further improve the stability of system performance, in an optional implementation, after determining the preferred refresh time based on the refresh curve, the method further includes:

[0046] Step S105 is used to perform the following processing steps: when the target system is running at the preferred refresh time, if the target system response timeout or packet loss occurs, the preferred refresh time is reduced by a first predetermined time.

[0047] Step S106 is used to perform the detection step: control the target system to run with the reduced preferred refresh time, and detect whether the target system response timeout or packet loss occurs.

[0048] Step S107 is used to repeat the above processing steps and the above detection steps at least once in sequence until the target system response does not time out and the target system does not lose packets, and determine the current preferred refresh time as the optimal refresh time.

[0049] Step S108 is used to control the target system to run at the optimal refresh time.

[0050] In the above embodiments, such as Figure 2As shown, because the automatic refresh rate of the system is too slow, it may cause problems such as untimely response and packet loss. Therefore, the lowest value cannot be used as the optimal time threshold. The time value needs to be incorporated into the system to test and observe whether it is suitable for the actual system operation, whether the time interval of system data feedback is appropriate, and whether the feedback received from the scheduling system is timely. If the above problems occur, according to the curve, the automatic refresh time can be reduced by 100ms and the system can be tested again until the optimal time threshold that does not affect system response and has the lowest CPU utilization is determined. Since this computer configuration is acceptable, the time threshold can be optimized to 350ms according to the curve to ensure that problems such as untimely response and packet loss do not occur.

[0051] Preferably, the value range of the first predetermined time is 50ms to 100ms. Selecting an appropriate first predetermined time can improve efficiency while minimizing the CPU time occupied without affecting the system's performance.

[0052] In the aforementioned refresh time control method, firstly, multiple historical refresh times and multiple historical CPU utilization rates of the target system are obtained. These historical refresh times are all different, representing the refresh interval set by the target system at a given historical moment. The historical CPU utilization rates represent the CPU utilization rates of the target system running at the aforementioned historical refresh times. Then, a refresh curve is generated based on these historical refresh times and CPU utilization rates. This refresh curve represents the change in CPU utilization rate with refresh time. Next, an optimal refresh time is determined based on the refresh curve. This optimal refresh time is the refresh time corresponding to any point on the refresh curve where the absolute value of the slope is less than a predetermined value. Finally, the target system is controlled to run at the optimal refresh time. This method generates refresh curves using multiple historical refresh times and CPU utilization rates to find the refresh time corresponding to points on the refresh curve with a slope of 0 or infinity, obtaining the optimal refresh time. Using this optimal refresh time minimizes CPU utilization without affecting system operation, ensuring system performance stability and solving the problem of unsuitable refresh times affecting system performance in existing technologies.

[0053] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.

[0054] This application also provides a refresh time control device. It should be noted that the refresh time control device of this application can be used to execute the refresh time control method provided in this application. The refresh time control device provided in this application is described below.

[0055] Figure 4 This is a schematic diagram of a refresh time control device according to an embodiment of this application. Figure 4 As shown, the device includes:

[0056] The acquisition unit 10 is used to acquire multiple historical refresh times and multiple historical CPU utilization rates of the target system. The multiple historical refresh times are all different. The historical refresh time is the refresh interval time set by the target system for the target system at the historical time. The historical CPU utilization rate is the CPU utilization rate of the target system when it runs at the historical refresh time.

[0057] Optionally, the present invention does not limit the specific process of obtaining multiple historical refresh times and multiple historical CPU utilization rates of the target system, and any feasible method is within the protection scope of the present invention.

[0058] For example, in one optional implementation, the acquisition unit includes:

[0059] The acquisition module is used to perform the acquisition steps: when the target system runs for a predetermined time at the target historical refresh time, the historical CPU utilization rate is acquired, the historical CPU utilization rate is the current CPU utilization rate, and the target historical refresh time is one of the historical refresh times.

[0060] The repeat module is used to repeat the above acquisition steps at least once until the above historical CPU utilization corresponding to all the above historical refresh times is obtained.

[0061] In the above embodiments, such as Figure 2 As shown, the target system is a warehouse control system. The historical CPU utilization rate is the CPU utilization rate of the target software running the warehouse control system. The target software is software that is required to meet the requirement of no response timeout. Taking Visual Studio as an example, after the system has been running stably for about 5 minutes, the historical CPU utilization rate under multiple historical refresh times can be obtained by adjusting the refresh time, resulting in 6 sets of historical refresh times and historical CPU utilization rates, which are convenient for generating refresh curves later.

[0062] To improve the accuracy of CPU utilization, in one optional implementation, the acquisition module includes:

[0063] The acquisition submodule is used to acquire the CPU utilization rate once at a second predetermined time interval until a predetermined number of CPU utilization rates are obtained.

[0064] The calculation submodule is used to calculate the average of the above-mentioned CPU utilization rates for a predetermined number of times, so as to obtain the above-mentioned historical CPU utilization rates.

[0065] In the above embodiments, such as Figure 2 As shown, Task Manager normally refreshes once per second, recording the CPU usage data of 10 Visual Studio instances. The average value is taken as a1, which is the CPU usage corresponding to the current automatic refresh time. This avoids large errors in instantaneous CPU usage and improves the accuracy of historical CPU usage.

[0066] The generation unit 20 is used to generate a refresh curve based on a plurality of the above-mentioned historical refresh times and a plurality of the above-mentioned historical CPU utilization rates, wherein the refresh curve is a curve of the CPU utilization rate changing with the refresh time.

[0067] Specifically, the historical refresh times mentioned above are spaced 50ms apart. A model is built with the WCS automatic refresh time as the X-axis and Visual Studio's CPU usage as the Y-axis. Based on the recorded data and corresponding coordinate values, a refresh curve is plotted, as shown below. Figure 3 As shown.

[0068] The determining unit 30 is used to determine a preferred refresh time based on the refresh curve, wherein the preferred refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value.

[0069] To further improve the stability of system performance, in one optional implementation, the determining unit includes:

[0070] The determination module is used to determine the refresh time corresponding to the point in the refresh curve where the slope is equal to 0 as the preferred refresh time.

[0071] In the above embodiments, such as Figure 3 As shown, observing the refresh curve reveals an exponential distribution. The CPU utilization gradually decreases with increasing refresh time, but flattens out from 300ms to 500ms. The curve indicates that point J (550ms) corresponds to the lowest CPU utilization of 13.2%. Therefore, the minimum CPU utilization threshold for the current computer configuration is 550ms. The point on the refresh curve where the slope is 0, and the point where the CPU utilization changes from decreasing to increasing, is the optimal refresh time, further improving system performance stability.

[0072] The first control unit 40 is used to control the target system to operate at the preferred refresh time.

[0073] To further improve the stability of system performance, in an optional embodiment, the above-mentioned device further includes:

[0074] The processing unit is used to perform the following processing steps: after determining the preferred refresh time according to the refresh curve, when the target system is running at the preferred refresh time and the target system experiences a response timeout or packet loss, the preferred refresh time is reduced by a first predetermined time.

[0075] The detection unit is used to perform the detection steps: control the target system to run at the reduced preferred refresh time, and detect whether the target system response timeout or packet loss occurs.

[0076] The repeating unit is used to repeat the above processing steps and the above detection steps at least once in sequence until the target system response does not time out and the target system does not lose packets, and to determine the current preferred refresh time as the optimal refresh time.

[0077] The second control unit is used to control the target system to operate at the optimal refresh time.

[0078] In the above embodiments, such as Figure 2 As shown, because the automatic refresh rate of the system is too slow, it may cause problems such as untimely response and packet loss. Therefore, the lowest value cannot be used as the optimal time threshold. The time value needs to be incorporated into the system to test and observe whether it is suitable for the actual system operation, whether the time interval of system data feedback is appropriate, and whether the feedback received from the scheduling system is timely. If the above problems occur, according to the curve, the automatic refresh time can be reduced by 100ms and the system can be tested again until the optimal time threshold that does not affect system response and has the lowest CPU utilization is determined. Since this computer configuration is acceptable, the time threshold can be optimized to 350ms according to the curve to ensure that problems such as untimely response and packet loss do not occur.

[0079] Preferably, the value range of the first predetermined time is 50ms to 100ms. Selecting an appropriate first predetermined time can improve efficiency while minimizing the CPU time occupied without affecting the system's performance.

[0080] In the aforementioned refresh time control device, the acquisition unit acquires multiple historical refresh times and multiple historical CPU utilization rates of the target system. Each of the historical refresh times is different, representing the refresh interval set by the target system for a given historical moment. The historical CPU utilization rate represents the CPU utilization rate of the target system running at the historical refresh times. The generation unit generates a refresh curve based on the multiple historical refresh times and CPU utilization rates. The refresh curve is a curve showing the change in CPU utilization rate with refresh time. The determination unit determines an optimal refresh time based on the refresh curve. The optimal refresh time is the refresh time corresponding to any point on the refresh curve where the absolute value of the slope is less than a predetermined value. The first control unit controls the target system to run at the optimal refresh time. This device generates refresh curves using multiple historical refresh times and multiple historical CPU utilization rates to find the refresh time corresponding to points on the refresh curve with a slope of 0 or infinity, obtaining an optimal refresh time. Using this optimal refresh time minimizes CPU utilization without affecting system operation, ensuring system performance stability and solving the problem of unsuitable refresh times affecting system performance in existing technologies.

[0081] This application also provides a warehousing platform, including: a warehousing control system, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include methods for performing any of the above-described methods.

[0082] The aforementioned warehousing platform includes a warehousing control system. This warehousing platform generates a refresh curve by using multiple historical refresh times and multiple historical CPU utilization rates to find the refresh time corresponding to the point in the refresh curve with a slope of 0 or infinity. The optimal refresh time is obtained and used as the optimal refresh time. Without affecting the system operation, the CPU utilization is minimized, ensuring the stability of the system performance and solving the problem of unsuitable refresh time affecting system performance in the prior art.

[0083] The aforementioned refresh time control device includes a processor and a memory. The aforementioned acquisition unit, generation unit, determination unit, and first control unit are all stored in the memory as program units, and the processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0084] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the performance issues caused by inappropriate refresh times in existing technologies.

[0085] The memory may include non-permanent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.

[0086] This invention provides a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the above-described method.

[0087] This invention provides a processor for running a program, wherein the program executes the method described above during runtime.

[0088] This invention provides a device including a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:

[0089] Step S101: Obtain multiple historical refresh times and multiple historical CPU utilization rates of the target system. The multiple historical refresh times are all different. The historical refresh time is the refresh interval time set by the target system for the historical time. The historical CPU utilization rate is the CPU utilization rate of the target system when it runs at the historical refresh time.

[0090] Step S102: Generate a refresh curve based on multiple historical refresh times and multiple historical CPU utilization rates, wherein the refresh curve is a curve showing the change of CPU utilization rate with refresh time.

[0091] Step S103: Determine the preferred refresh time based on the refresh curve. The preferred refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value.

[0092] Step S104: Control the target system to run at the preferred refresh time.

[0093] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0094] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:

[0095] Step S101: Obtain multiple historical refresh times and multiple historical CPU utilization rates of the target system. The multiple historical refresh times are all different. The historical refresh time is the refresh interval time set by the target system for the historical time. The historical CPU utilization rate is the CPU utilization rate of the target system when it runs at the historical refresh time.

[0096] Step S102: Generate a refresh curve based on multiple historical refresh times and multiple historical CPU utilization rates, wherein the refresh curve is a curve showing the change of CPU utilization rate with refresh time.

[0097] Step S103: Determine the preferred refresh time based on the refresh curve. The preferred refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value.

[0098] Step S104: Control the target system to run at the preferred refresh time.

[0099] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0100] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units described above can be a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.

[0101] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0102] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0103] If the aforementioned integrated units are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a computer-readable storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned computer-readable storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0104] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0105] 1) In the refresh time control method of this application, firstly, multiple historical refresh times and multiple historical CPU utilization rates of the target system are obtained. Each of the multiple historical refresh times is different. The historical refresh time is the refresh interval time set by the target system for a historical moment, and the historical CPU utilization rate is the CPU utilization rate of the target system running at the historical refresh time. Then, a refresh curve is generated based on the multiple historical refresh times and multiple historical CPU utilization rates. The refresh curve is a curve showing the change of CPU utilization rate with refresh time. Next, an optimal refresh time is determined based on the refresh curve. The optimal refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value. Finally, the target system is controlled to run at the optimal refresh time. This method generates a refresh curve using multiple historical refresh times and multiple historical CPU utilization rates to find the refresh time corresponding to points in the refresh curve where the slope is 0 or infinite, obtaining an optimal refresh time. Using this optimal refresh time minimizes CPU utilization without affecting system operation, ensuring system performance stability and solving the problem of unsuitable refresh times affecting system performance in existing technologies.

[0106] 2) In the refresh time control device of this application, the acquisition unit acquires multiple historical refresh times and multiple historical CPU utilization rates of the target system. Each of the multiple historical refresh times is different. The historical refresh time is the refresh interval time set by the target system for a historical moment, and the historical CPU utilization rate is the CPU utilization rate of the target system running at the historical refresh time. The generation unit generates a refresh curve based on the multiple historical refresh times and multiple historical CPU utilization rates. The refresh curve is a curve showing the change of CPU utilization rate with refresh time. The determination unit determines a preferred refresh time based on the refresh curve. The preferred refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value. The first control unit controls the target system to run at the preferred refresh time. This device generates a refresh curve using multiple historical refresh times and multiple historical CPU utilization rates to find the refresh time corresponding to a point in the refresh curve where the slope is 0 or infinite, obtaining a preferred refresh time. Using this preferred refresh time minimizes CPU utilization without affecting system operation, ensuring system performance stability and solving the problem of unsuitable refresh times affecting system performance in the prior art.

[0107] 3) The warehousing platform of this application includes a warehousing control system. The warehousing platform generates a refresh curve by using multiple historical refresh times and multiple historical CPU utilization rates to find the refresh time corresponding to the point in the refresh curve with a slope of 0 or infinity, and obtains the optimal refresh time. This optimal refresh time is used as the optimal refresh time to minimize CPU utilization without affecting system operation, thereby ensuring the stability of system performance and solving the problem of unsuitable refresh time affecting system performance in the prior art.

[0108] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for controlling refresh time, characterized in that, include: Multiple historical refresh times and multiple historical CPU utilization rates of the target system are obtained. The multiple historical refresh times are all different. The historical refresh time is the refresh interval time set by the target system for the target system at a historical time. The historical CPU utilization rate is the CPU utilization rate of the target system when it runs at the historical refresh time. A refresh curve is generated based on multiple historical refresh times and multiple historical CPU utilization rates, wherein the refresh curve is a curve showing the change of CPU utilization rate with refresh time; The preferred refresh time is determined based on the refresh curve, wherein the preferred refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value; Control the target system to operate at the preferred refresh time; After determining the preferred refresh time based on the refresh curve, the method further includes: a processing step: when the target system is running at the preferred refresh time, if the target system experiences a response timeout or packet loss, the preferred refresh time is reduced by a first predetermined time. Detection steps: Control the target system to run at the reduced preferred refresh time, and detect whether the target system response timeout or packet loss occurs; repeat the processing steps and the detection steps at least once until the target system response does not time out and the target system does not experience packet loss, determine the current preferred refresh time as the optimal refresh time; control the target system to run at the optimal refresh time.

2. The method according to claim 1, characterized in that, Obtain multiple historical refresh times and multiple historical CPU utilization rates of the target system, including: Acquisition Steps: When the target system runs for a predetermined time at the target historical refresh time, the historical CPU utilization rate is obtained. The historical CPU utilization rate is the current CPU utilization rate. The target historical refresh time is one of the historical refresh times. Repeat the acquisition steps at least once until the historical CPU utilization corresponding to all the historical refresh times is obtained.

3. The method according to claim 2, characterized in that, Obtaining the historical CPU utilization includes: The CPU utilization rate is obtained once at a second predetermined time interval until a predetermined number of CPU utilization rates are obtained. The historical CPU utilization rate is obtained by calculating the average of the predetermined number of CPU utilization rates.

4. The method according to claim 1, characterized in that, Determining the preferred refresh time based on the refresh curve includes: The refresh time corresponding to the point in the refresh curve with a slope of 0 is determined as the preferred refresh time.

5. The method according to claim 1, characterized in that, The value range of the first predetermined time is 50ms to 100ms.

6. The method according to any one of claims 1 to 5, characterized in that, The target system is a warehouse control system, and the historical CPU utilization rate is the CPU utilization rate of the target software running in the warehouse control system. The target software is software that is required to meet the requirement of no timeout in response.

7. A device for controlling refresh time, characterized in that, include: The acquisition unit is used to acquire multiple historical refresh times and multiple historical CPU utilization rates of the target system. The multiple historical refresh times are all different. The historical refresh time is the refresh interval time set by the target system for the target system at a historical moment. The historical CPU utilization rate is the CPU utilization rate of the target system when it runs at the historical refresh time. A generation unit is configured to generate a refresh curve based on multiple historical refresh times and multiple historical CPU utilization rates, wherein the refresh curve is a curve of CPU utilization rate changing with refresh time; A determining unit is configured to determine a preferred refresh time based on the refresh curve, wherein the preferred refresh time is the refresh time corresponding to any point in the refresh curve where the absolute value of the slope is less than a predetermined value; A first control unit is used to control the target system to operate at the preferred refresh time; The device further includes: a processing unit, configured to perform the following processing steps: when the target system is running at the preferred refresh time, if the target system experiences a response timeout or packet loss, reduce the preferred refresh time by a first predetermined time; a detection unit, configured to perform the following detection steps: control the target system to run at the reduced preferred refresh time, and detect whether the target system experiences a response timeout or packet loss; a repeating unit, configured to repeat the processing steps and the detection steps at least once in sequence until the target system response does not time out and the target system does not experience packet loss, and determine the current preferred refresh time as the optimal refresh time; and a second control unit, configured to control the target system to run at the optimal refresh time.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein when the program is executed by a processor, the processor performs the method according to any one of claims 1 to 6.

9. A warehousing platform, characterized in that, include: A warehouse control system, comprising one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any one of claims 1 to 6.

Citation Information

Patent Citations

  • Operation control method of monitor, device, monitor and medium

    CN109935312A