Method and device for determining frequency of storage device and electronic equipment
By determining the target performance requirements of the storage device and formulating the target frequency solution, dynamically adjust the frequency to achieve the linear correlation between performance and frequency, solve the low resource utilization rate and short service life caused by the frequency of the storage device in the existing technology. The problem has achieved more efficient resource utilization and longer service life.
Patent Information
- Application Number
- CN202411390732.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2044-09-30
AI Technical Summary
In the prior art, in order to obtain a good user experience, the storage device frequency is usually set to run at a high position when running different applications, but this leads to low system resource utilization and affects the service life of the storage device.
By determining the target performance requirements of the storage device of the electronic device, formulate the corresponding target frequency solution, and dynamically adjust the frequency according to the current operating state to achieve the linear correlation between performance and frequency.
The system's resource utilization rate is improved, the service life of the storage device is extended, and the frequency of the storage device is dynamically adjusted to ensure that the storage device is always running in the optimal state.
Smart Images

Figure CN119376621A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of computer storage devices, and in particular to a method and device for determining the frequency of a storage device, and an electronic device. Background Art
[0002] The frequency in computer storage devices, especially memory (RAM), is an important performance indicator that directly affects the computer's data processing speed and overall performance.
[0003] Currently, when running different applications, in order to obtain a good user experience, the storage device frequency is usually set to run at a high level, but this method has low system resource utilization and also affects the service life of the storage device. Summary of the invention
[0004] One aspect of the present disclosure provides a method for determining the frequency of a storage device, including: determining a demand for a target performance of a storage device of an electronic device, the performance of the storage device including a first performance and a second performance, and the target performance including at least one of the first performance and the second performance. According to the determined target performance, determining a target frequency scheme of the storage device corresponding to the target performance, the target frequency scheme including a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance, the first performance having a linear correlation with the frequency of the first frequency scheme, and the second performance having a linear correlation with the frequency of the second frequency scheme. According to the target frequency scheme and the current operating state of the electronic device, determining a frequency corresponding to the demand for the target performance from the target frequency scheme.
[0005] Optionally, determining the target performance requirement for the storage device of the electronic device includes: determining a currently running application. Determining the running state of at least one processing module of the electronic device. Determining the performance selection of the storage device by the user in response to a user operation. Determining the target performance requirement based on at least one of the running application, the running state, and the performance selection.
[0006] Optionally, determining the requirement for the target performance of the storage device of the electronic device includes: obtaining an application list, the application list including a first type of application and a second type of application, the first type of application having a requirement for the first performance, and the second type of application having a requirement for the second performance. Matching the currently running application with the application list to determine that the currently running application is one of the first type of application and the second type of application. In the case where the currently running application is the first type of application, determining the requirement for the target performance is the requirement for the first performance. In the case where the currently running application is the second type of application, determining the requirement for the target performance is the requirement for the second performance.
[0007] Optionally, determining the requirement for the target performance of the storage device of the electronic device includes: determining a processing module state corresponding to the currently running application, the processing module state including the processing module frequency and the processing module power consumption. The requirement for the target performance is determined according to at least one of the following: when the fluctuation amplitude of the processing module frequency within a preset time is greater than a first preset threshold, the requirement for the target performance is determined to be the requirement for the first performance. When the processing module frequency is higher than a second preset threshold within a preset time, the requirement for the target performance is determined to be the requirement for the second performance. When the processing module power consumption is higher than a third preset threshold within a preset time, the requirement for the target performance is determined to be the requirement for the second performance.
[0008] Optionally, the first performance includes a requirement for a response speed of the storage device, and the second performance includes a requirement for a read and write data bandwidth of the storage device.
[0009] Optionally, according to the determined target performance, a target frequency scheme of the storage device corresponding to the target performance is determined, including: according to the first performance, selecting a target frequency scheme from a plurality of pre-set first frequency schemes. According to the second performance, selecting a target frequency scheme from a plurality of pre-set second frequency schemes. Wherein, the first frequency scheme and the second frequency scheme are obtained by combining a plurality of target frequency values or by combining a plurality of target frequency bands. The plurality of target frequency values and the plurality of target frequency bands are determined by the following operations: the operating frequency of the storage device is divided to obtain a plurality of initial frequency bands. A frequency value is taken from each initial frequency band respectively, and the plurality of target frequency values are obtained by combining. At least some of the plurality of initial frequency bands are combined to obtain a plurality of target frequency bands.
[0010] Optionally, according to the target frequency scheme and the current operating state of the electronic device, determining the frequency corresponding to the target performance requirement from the target frequency scheme includes at least one of the following: when the target frequency scheme is the first frequency scheme, determining the current delay of the storage device. According to the current delay, determining that the frequency corresponding to the storage device is one of the multiple first target frequency values in the first frequency scheme. According to the current delay, determining that the frequency corresponding to the storage device is in a frequency band as one of the multiple first target frequency bands in the first frequency scheme. According to the current delay, adaptively determining the frequency corresponding to the storage device within the first target frequency band. When the target frequency scheme is the second frequency scheme, determining the current read and write time of the storage device. According to the current read and write time, determining that the frequency corresponding to the storage device is one of the multiple second target frequency values in the second frequency scheme. According to the current read and write time, determining that the frequency corresponding to the storage device is in a frequency band as one of the multiple second target frequency bands in the second frequency scheme. According to the current read and write time, adaptively determining the frequency corresponding to the storage device within the second target frequency band.
[0011] Optionally, in the case where the target performance is the first performance, the method further includes: determining one or more first frequency division points, the response speed of the storage device corresponding to the first frequency division point is greater than the response speed of the storage device corresponding to the frequency within the local range centered on the corresponding frequency division point. Determining a second frequency division point equal to the response speed of the storage device corresponding to the first frequency division point, the frequency corresponding to the second frequency division point is higher than the frequency corresponding to the first frequency division point. Excluding the frequency band between the first frequency division point and the second frequency division point from the target frequency scheme.
[0012] Another aspect of the present disclosure provides a frequency determination device for a storage device, comprising: a first determination module, for determining a demand for a target performance of a storage device of an electronic device, the performance of the storage device including a first performance and a second performance, and the target performance including at least one of the first performance and the second performance. A second determination module, for determining a target frequency scheme of the storage device corresponding to the target performance based on the determined target performance, the target frequency scheme including a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance, the first performance having a linear correlation with the frequency of the first frequency scheme, and the second performance having a linear correlation with the frequency of the second frequency scheme. A third determination module, for determining a frequency corresponding to the demand for the target performance from the target frequency scheme based on the target frequency scheme and the current operating state of the electronic device.
[0013] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute any one of the frequency determination methods of the storage device described above. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0015] Figure 1 A diagram schematically shows an application scenario of a frequency determination method for a storage device according to an embodiment of the present disclosure;
[0016] Figure 2 A flow chart schematically shows a method for determining a frequency of a storage device according to an embodiment of the present disclosure;
[0017] Figure 3 A flowchart of a method for determining target performance requirements according to an embodiment of the present disclosure is schematically shown;
[0018] Figure 4A flowchart of a method for determining target performance requirements according to another embodiment of the present disclosure is schematically shown;
[0019] Figure 5 A flowchart of a method for determining target performance requirements according to another embodiment of the present disclosure is schematically shown;
[0020] Figure 6 A flow chart of a method for determining a target frequency scheme according to an embodiment of the present disclosure is schematically shown;
[0021] Figure 7 A flow chart of a method for determining a frequency of a storage device according to an embodiment of the present disclosure is schematically shown;
[0022] Fig. 8A A flowchart of a method for adjusting the linear correlation between the performance and frequency of a storage device according to an embodiment of the present disclosure is schematically shown; Figure 8B A schematic diagram showing a change curve between memory latency and memory frequency according to relevant scenarios;
[0023] Fig. 9 A structural block diagram of a frequency determination device of a storage device according to an embodiment of the present disclosure is schematically shown;
[0024] Fig.10 A block diagram of an electronic device suitable for implementing a frequency determination method for a storage device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0025] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0026] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0027] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0028] Some block diagrams and / or flow charts are shown in the accompanying drawings. It should be understood that some blocks or combinations thereof in the block diagrams and / or flow charts may be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that these instructions, when executed by the processor, may create a device for implementing the functions / operations described in these block diagrams and / or flow charts.
[0029] Therefore, the technology of the present disclosure can be implemented in the form of hardware and / or software (including firmware, microcode, etc.). In addition, the technology of the present disclosure can take the form of a computer program product on a computer-readable medium storing instructions, which can be used by an instruction execution system or in combination with an instruction execution system. In the context of the present disclosure, a computer-readable medium can be any medium that can contain, store, transmit, propagate, or transmit instructions. For example, a computer-readable medium can include, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, device, or propagation medium. Specific examples of computer-readable media include: magnetic storage devices, such as magnetic tape or hard disk (HDD); optical storage devices, such as compact disk (CD-ROM); memory, such as random access memory (RAM) or flash memory; and / or wired / wireless communication links.
[0030] The embodiment of the present disclosure provides a method for determining the frequency of a storage device for adaptively adjusting the frequency of a storage device to adapt it to a currently running application. The method for determining the frequency of the storage device includes determining the demand for the target performance of the storage device of the electronic device, the performance of the storage device includes a first performance and a second performance, and the target performance includes at least one of the first performance and the second performance. According to the determined target performance, a target frequency scheme of the storage device corresponding to the target performance is determined, the target frequency scheme includes a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance, the first performance has a linear correlation with the frequency of the first frequency scheme, and the second performance has a linear correlation with the frequency of the second frequency scheme. According to the target frequency scheme and the current running state of the electronic device, a frequency corresponding to the demand for the target performance is determined from the target frequency scheme. By determining the frequency scheme of the storage device when the electronic device is in the current running state based on the demand for the target performance of the storage device, and setting a linear relationship between different performances and frequencies, the system can realize adaptive adjustment of the frequency of the storage device to meet the current performance requirements, thereby improving the resource utilization of the system. At the same time, the storage device is prevented from operating at high load for a long time, and the service life of the storage device is also extended.
[0031] Figure 1 The application scenario diagram of the frequency determination method of the storage device according to the embodiment of the present disclosure is schematically shown.
[0032] like Figure 1 As shown, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0033] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as security applications, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0034] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0035] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed or applications logged in by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device to set a frequency corresponding to the needs for the application currently run by the user.
[0036] It should be noted that the frequency determination method of the storage device provided in the embodiment of the present disclosure can generally be executed by the server 105 or by the terminal device. Accordingly, the frequency determination device of the storage device provided in the embodiment of the present disclosure can generally be set in the server 105. The frequency determination method of the storage device provided in the embodiment of the present disclosure can also be executed by a server or a server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the frequency determination device of the storage device provided in the embodiment of the present disclosure can also be set in a server or a server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.
[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0038] The following will be based on Figure 1 The scene described by Figure 2 ~Figure 8 describes in detail the frequency determination method of the storage device of the disclosed embodiment.
[0039] Figure 2 The flowchart of the frequency determination method of the storage device according to the embodiment of the present disclosure is schematically shown.
[0040] According to the embodiments of the present disclosure, Figure 2 As shown, the frequency determination method of the storage device of this embodiment includes, for example, operations S210 to S230.
[0041] In operation S210, a requirement for a target performance of a storage device of an electronic device is determined, the performance of the storage device includes a first performance and a second performance, and the target performance includes at least one of the first performance and the second performance.
[0042] First, the target performance that the storage device of the electronic device needs to achieve is clearly defined. These performances include the first performance and the second performance, and the target performance is at least one of the two. Ensure that subsequent operations can be carried out around specific requirements to avoid resource waste or insufficient performance.
[0043] For example, the performance of a storage device can be read and write speed. Read and write speed is one of the most basic performance indicators of a storage device, which directly reflects the ability of the storage device to process data. A higher read and write speed means that data can be read or written to the storage device faster, thereby improving the overall system performance.
[0044] Read and write speeds are critical for scenarios that require frequent access to large amounts of data, such as database servers and high-definition video editing. In the gaming field, fast data reading can reduce game loading time and improve game fluency.
[0045] For another example, the performance of a storage device can also be power consumption. Power consumption is the power resource consumed by a storage device during operation and is an important indicator for measuring the energy efficiency of a storage device. Lower power consumption not only helps reduce the operating cost of the device, but also reduces the impact on the environment.
[0046] For portable devices (such as laptops, tablets, etc.), power consumption is an important consideration because it directly affects the device's battery life and portability. In large-scale deployment environments such as data centers, reducing power consumption helps reduce energy consumption and operating costs.
[0047] The target performance requirement may be a high read / write speed requirement. For example, in a high-definition video editing work scenario, the storage device is required to provide a read / write speed of at least 5 GB / s to ensure that there is no lag or delay when editing large video files.
[0048] The target performance requirement can also be a low power consumption requirement. For example, for a portable notebook computer, while maintaining sufficient read and write speeds, it is hoped that the power consumption of the storage device can be controlled at a low level to extend the battery life. Specifically, it may be required that the power consumption of the storage device does not exceed X watts when running at full load (the specific value needs to be determined according to the device specifications and actual application scenarios).
[0049] The target performance requirement can also be a comprehensive performance requirement. For example, for enterprise-level servers, both high read and write speeds are required to handle a large number of concurrent requests and data transmissions, and low power consumption is required to reduce operating costs and environmental impact. Therefore, the target performance may be a comprehensive indicator that requires finding the best balance between read and write speeds and power consumption.
[0050] The types of storage devices in this embodiment include, for example, a RAM, a solid state drive (SSD), a hard disk drive (HDD), and a video memory.
[0051] In operation S220, based on the determined target performance, a target frequency scheme of the storage device corresponding to the target performance is determined, the target frequency scheme including a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance, the first performance having a linear correlation with the frequency of the first frequency scheme, and the second performance having a linear correlation with the frequency of the second frequency scheme.
[0052] Based on the determined target performance, a target frequency scheme of the storage device corresponding to the target performance is further determined. The scheme includes two parts: a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance. There is a clear linear correlation between each performance and its corresponding frequency scheme. The performance of the storage device is directly controlled by adjusting the frequency to meet different performance requirements.
[0053] For example, a higher operating frequency range may be set, such as from XX MHz to YY MHz (the specific value needs to be determined according to the specification and performance limit of the storage device).
[0054] The operating frequency of the storage device is dynamically adjusted according to the current application load and performance requirements. When high-speed data reading and writing is required, the frequency is adjusted to the upper limit of the range or close to the upper limit; when the load is low, the frequency is appropriately reduced to save energy.
[0055] It is necessary to ensure the stability and reliability of storage devices under high-frequency operation to avoid the risk of data loss or damage.
[0056] For another example, a relatively low operating frequency range that is sufficient to meet basic performance requirements may be set, such as from ZZ MHz to WW MHz (the specific value needs to be determined based on the minimum performance requirements and power consumption characteristics of the storage device).
[0057] The operating frequency of the storage device is intelligently adjusted according to the overall power consumption budget of the electronic device and the current working state. When the battery power is low or long-term operation is required, the low-frequency mode is preferred to extend the battery life.
[0058] While reducing power consumption, the read and write speed of the storage device should be kept within an acceptable range to achieve the best balance between performance and power consumption.
[0059] It should be noted that in actual applications, the operating frequency of the storage device is not set in isolation, but is closely related to the system architecture, power management, heat dissipation design, etc. of the entire electronic device. Therefore, when determining the operating frequency scheme of the storage device, it is necessary to comprehensively consider multiple factors to achieve the best balance between overall performance, power consumption and reliability.
[0060] In operation S230, a frequency corresponding to a requirement of a target performance is determined from the target frequency scheme according to the target frequency scheme and a current operating state of the electronic device.
[0061] After determining the target frequency scheme, the most suitable frequency for current needs is selected from the target frequency scheme in combination with the current operating status of the electronic device (such as load conditions, temperature, etc.). This ensures that the storage device can adapt to the real-time changes of the electronic device while maintaining efficient operation, achieving the best balance between performance and energy consumption.
[0062] The embodiments of the present disclosure systematically solve the problem of determining the frequency of the storage device. First, it clarifies the performance requirements and provides a direction for subsequent frequency adjustments; second, it formulates a corresponding frequency plan based on the performance requirements and establishes a direct connection between performance and frequency; finally, it flexibly selects the most suitable frequency in combination with the real-time operating status of the device, thereby realizing dynamic optimization of the performance of the storage device. This method not only improves the efficiency of the storage device, but also enhances its adaptability and stability.
[0063] Figure 3 The flowchart of the method for determining the requirement of target performance according to an embodiment of the present disclosure is schematically shown.
[0064] According to the embodiments of the present disclosure, Figure 3 In addition to the above references Figure 2In addition to the operations S210 to S230 described above, the method of this embodiment also includes operations S311 to S314 to determine the target performance requirements of the storage device of the electronic device. For the sake of brevity, the description of operations S210 to S230 is omitted here, and the subsequent related method embodiments are similar and will not be repeated.
[0065] This embodiment provides a method for determining the frequency of a storage device based on currently running applications, the operating status of a processing module, and user performance selection. The method aims to dynamically adjust the operating frequency of the storage device according to actual needs to optimize system performance and reduce power consumption.
[0066] In operation S311, a currently running application is determined.
[0067] The system first monitors and identifies currently running applications and analyzes the performance requirements of these applications on storage devices, such as read and write speeds, latency, etc.
[0068] For example, you can obtain a list of currently running applications through the operating system or application programming interface (API). Use application performance analysis libraries or tools to evaluate the storage performance requirements of each application.
[0069] For another example, AI chips can be used to intelligently identify the type of the current application. AI chips have powerful data processing and pattern recognition capabilities, and can accurately identify the type of the currently running application by analyzing multi-dimensional information such as the application's operating characteristics and resource usage.
[0070] In operation S312, an operating state of at least one processing module of the electronic device is determined.
[0071] Secondly, it can monitor the key indicators such as the load and temperature of the CPU, GPU and other processing modules, and analyze the impact of these indicators on the performance of the storage device.
[0072] For example, you can use system management tools or hardware monitoring software to obtain the real-time status of the processing module, and evaluate the storage performance requirements of the operating status of the processing module based on preset thresholds and rules.
[0073] In operation S313, in response to the user's operation, the user's performance selection for the storage device is determined.
[0074] In addition, a user interface (UI) or setting options may be provided to allow the user to select a performance mode (such as high performance, energy saving, etc.) of the storage device. Based on the user's selection, the operating frequency of the storage device is adjusted.
[0075] For example, add storage performance setting options in system settings or applications. Determine the user's storage performance requirements through user input or preset preference settings.
[0076] In operation S314, a target performance requirement is determined according to at least one of a running application, a running state, and a performance selection.
[0077] The target performance requirement of the storage device is determined by comprehensively considering the current running application, the operating status of the processing module and the user's performance selection. According to the target performance requirement, the appropriate storage device operating frequency is calculated and determined.
[0078] For example, a set of algorithms or strategies can be designed to convert running applications, running states, and performance options into specific performance requirement indicators. Based on the performance requirement indicators, the most appropriate frequency is selected within the operating frequency range of the storage device.
[0079] Finally, according to the determined target performance requirements, the operating frequency of the storage device is adjusted through the hardware interface or driver, and the performance after adjustment is monitored to ensure that the requirements are met and the system operates stably.
[0080] For example, use hardware control interfaces (such as BIOS settings, driver APIs, etc.) to adjust the operating frequency of storage devices. Implement performance monitoring mechanisms to promptly identify and resolve potential performance issues.
[0081] This embodiment provides a flexible and efficient method for determining the frequency of a storage device by comprehensively considering the currently running application, the operating status of the processing module and the user's performance selection. The method can dynamically adjust the operating frequency of the storage device according to actual needs, thereby reducing power consumption while ensuring system performance. By providing a user interface and setting options, users can easily adjust storage performance according to their needs and improve the user experience. In addition, the method is also scalable and customizable, and can adapt to the needs of different electronic devices and application scenarios.
[0082] Figure 4 A flowchart of a method for determining target performance requirements according to another embodiment of the present disclosure is schematically shown.
[0083] According to the embodiments of the present disclosure, Figure 4 As shown, for example, the requirement for the target performance of the storage device of the electronic device is determined through operations S4111 to S4114.
[0084] This embodiment further refines the process of determining the target performance requirements of the electronic device storage device, in particular, by distinguishing different types of running applications and their different requirements for storage performance, to accurately adjust the operating frequency of the storage device. This method aims to improve the utilization of system resources while ensuring that all types of applications can obtain the best storage performance support.
[0085] In operation S4111, an application list is acquired, where the application list includes first-type applications and second-type applications, where the first-type applications require a first performance, and the second-type applications require a second performance.
[0086] The system first maintains an application list, which records in detail various types of applications and their performance requirements for storage devices. The application list includes at least first-type applications and second-type applications, and each type of application has specific performance requirements.
[0087] The first type of application may have requirements for first performance, such as high read and write speeds and low latency; while the second type of application may focus more on second performance requirements, such as storage capacity and stability.
[0088] For example, the application list is constructed and maintained through system configuration, metadata collection during application installation, or user-defined settings. The application list can be stored in a system database or configuration file for subsequent calls.
[0089] In operation S4112, the currently running application is matched with the application list to determine whether the currently running application is one of the first type application and the second type application.
[0090] The system monitors the currently running application in real time and obtains its application ID or name.
[0091] For example, use an API or tool provided by the operating system, such as a task manager, a process monitor, etc., to monitor the currently running application.
[0092] The currently running application is matched with the application list to determine whether it belongs to the first type of application or the second type of application, and the target performance requirement of the currently running application on the storage device is determined according to the matching result.
[0093] For example, the application and the application list may be matched by string comparison, hash value matching, or database query, etc. According to the matching result, the corresponding type of performance requirement information is obtained from the application list.
[0094] In operation S4113, when the currently running application is a first type application, the requirement for the target performance is determined to be a requirement for the first performance.
[0095] In operation S4114, when the currently running application is a second type application, the requirement for the target performance is determined to be a requirement for the second performance.
[0096] According to the determined target performance requirements, formulate an operating frequency adjustment strategy for the storage device.
[0097] If the currently running application is a first type application, the operating frequency of the storage device is adjusted to meet the first performance requirements such as high read and write speeds and low latency; if it is a second type application, the frequency is adjusted to optimize the second performance requirements such as storage capacity and stability.
[0098] For example, a frequency adjustment algorithm or strategy can be designed to calculate and determine the appropriate storage device operating frequency according to different performance requirements, and the storage device operating frequency can be adjusted using a hardware control interface (such as BIOS settings, driver API, etc.).
[0099] Adjust the operating frequency of the storage device according to the established frequency adjustment strategy, and monitor the performance of the adjusted storage device to ensure that the application requirements are met and the system operates stably.
[0100] For example, implement performance monitoring mechanisms, such as using performance testing tools, system log analysis, etc., to evaluate the performance of storage devices. According to the monitoring results, adjust the frequency adjustment strategy or deal with potential performance problems in a timely manner.
[0101] This embodiment provides a more refined method for determining the frequency of a storage device by distinguishing different types of running applications and their different requirements for storage performance. The method first obtains an application list and performance requirement information, then monitors the currently running applications in real time and matches them, and finally formulates and implements a frequency adjustment strategy based on the matching results. This method can ensure that all types of applications can obtain the storage performance support that best suits their needs, thereby improving the utilization of system resources and overall performance.
[0102] Figure 5 A flowchart of a method for determining target performance requirements according to yet another embodiment of the present disclosure is schematically shown.
[0103] According to the embodiments of the present disclosure, Figure 5 As shown, for example, the requirement for the target performance of the storage device of the electronic device is determined through operations S5121 to S5125.
[0104] This embodiment further combines the status information of the processing module (such as the CPU), especially the changes in the frequency and power consumption of the processing module, to determine the target performance requirements for the storage device of the electronic device. By monitoring the frequency fluctuation and power consumption level of the processing module within a preset time, the storage performance requirements of the currently running application can be more accurately determined, thereby dynamically adjusting the operating frequency of the storage device to meet the performance requirements in different application scenarios.
[0105] In operation S5121, a processing module state corresponding to a currently running application is determined, where the processing module state includes a processing module frequency and a processing module power consumption.
[0106] Monitor the frequency and power consumption of processing modules (such as CPU) in the system in real time. Record the frequency fluctuation and power consumption data of the processing modules within a preset time.
[0107] For example, use the performance monitoring tool provided by the operating system or specialized hardware monitoring software to obtain real-time frequency and power consumption data of the processing module.
[0108] In operation S5122, the requirement of the target performance is determined according to at least one of the following.
[0109] In operation S5123, when the fluctuation amplitude of the processing module frequency within the preset time is greater than the first preset threshold, the demand for the target performance is determined to be the demand for the first performance.
[0110] In operation S5124, when the processing module frequency is higher than the second preset threshold within the preset time, the demand for the target performance is determined to be a demand for the second performance.
[0111] In operation S5125, when the power consumption of the processing module is higher than a third preset threshold within a preset time, the demand for the target performance is determined to be a demand for the second performance.
[0112] A first preset threshold, a second preset threshold and a third preset threshold are set, and these thresholds are used to judge the fluctuation amplitude, high frequency state and power consumption level of the processing module frequency respectively.
[0113] The frequency fluctuation and power consumption data of the processing module within a preset time are compared with a preset threshold to determine the performance requirement of the storage device for the currently running application.
[0114] For example, these thresholds can be preset in the system configuration, or users can be allowed to customize the settings according to actual needs. Real-time comparison and conditional judgment of data can be achieved through programming logic or algorithms.
[0115] Then, according to the result of the condition determination, the target performance requirement of the currently running application on the storage device is determined.
[0116] If the fluctuation range of the processing module frequency within the preset time is greater than the first preset threshold, the target performance requirement is determined to be the requirement for the first performance (such as stability, low latency).
[0117] If the processing module frequency is higher than the second preset threshold within the preset time, or the power consumption is higher than the third preset threshold within the preset time, the target performance requirement is determined to be the requirement for the second performance (such as high throughput, large capacity).
[0118] For example, design a logical judgment mechanism to output the corresponding performance requirement identification based on the results of conditional judgment.
[0119] Finally, the operating frequency of the storage device is adjusted according to the determined target performance requirement.
[0120] If the target performance requirement is for the first performance, the operating frequency of the storage device is lowered to reduce power consumption and interference; if the target performance requirement is for the second performance, the operating frequency of the storage device is increased to improve data transmission speed and capacity.
[0121] For example, the operating frequency of the storage device is adjusted using a hardware control interface (such as BIOS settings, driver API, etc.). During the adjustment process, the performance curve and power consumption characteristics of the storage device are considered to ensure that the adjusted frequency can meet the performance requirements while maintaining stable system operation.
[0122] The performance of the adjusted storage device and the system operation status can also be monitored. If it is found that the performance does not meet the requirements or the system is unstable, feedback and adjustments can be made based on the monitoring results.
[0123] For example, implement a performance monitoring mechanism, such as using performance testing tools, system log analysis, etc. to evaluate the performance of storage devices. Adjust the frequency adjustment strategy or deal with potential performance issues in a timely manner based on the monitoring results.
[0124] This embodiment determines the target performance requirements for the storage device of the electronic device by monitoring the frequency fluctuation and power consumption level of the processing module (such as the CPU) and combining the preset threshold and condition judgment mechanism. This method can more accurately reflect the actual requirements of the current running application for storage performance, thereby dynamically adjusting the operating frequency of the storage device to meet the performance requirements in different application scenarios.
[0125] According to an embodiment of the present disclosure, the first performance includes a requirement for a response speed of the storage device, and the second performance includes a requirement for a read and write data bandwidth of the storage device.
[0126] This embodiment classifies the performance requirements of the storage device into subdivided categories (i.e., the first performance is the response speed requirement, and the second performance is the read and write data bandwidth requirement), and proposes a more specific method for determining the frequency of the storage device. Through this method, the operating frequency of the storage device can be dynamically adjusted more accurately according to the storage performance requirements of the current application scenario to optimize the overall performance of the system.
[0127] First, identify and determine the current working scenario of the electronic device, such as video playback, game running, data backup, etc.
[0128] For example, the current working scenario may be identified through system monitoring, user input, or a predefined working mode.
[0129] Then, according to the current working scenario, the specific requirements for the first performance (response speed) and the second performance (read and write data bandwidth) of the storage device are analyzed and determined.
[0130] For example, a mapping relationship table between different working scenarios and storage performance requirements is preset, and the performance requirements in the current scenario are obtained by looking up the table.
[0131] Then monitor the current working status of the storage device in real time, including parameters such as current working frequency, response time, read and write bandwidth, etc.
[0132] For example, real-time status data of the storage device may be acquired using a system management tool or dedicated monitoring software.
[0133] Then, a suitable target operating frequency range is determined according to the analyzed storage performance requirements and the current state of the storage device.
[0134] For example, through algorithm calculation or table lookup, according to the performance requirement and the performance curve of the storage device, a frequency range that can meet the performance requirement and maintain system stability is determined.
[0135] Finally, the operating frequency of the storage device is adjusted to a specific value within the target frequency range.
[0136] For example, the operating frequency of the storage device is adjusted through system BIOS settings, a driver interface, or dedicated tool software.
[0137] After adjusting the operating frequency of the storage device, it is also possible to verify whether the performance of the adjusted storage device meets the requirements, and make necessary optimization adjustments according to the actual situation.
[0138] For example, you can use a performance testing tool to perform a performance test on a storage device, and adjust frequency settings or optimize other related configurations based on the test results.
[0139] This embodiment proposes a method for dynamically adjusting the operating frequency of a storage device by combining the current working scenario with the detailed classification of the performance requirements of the storage device (response speed and read / write data bandwidth). This method monitors the status of the storage device in real time, analyzes the performance requirements, and determines the target frequency range, thereby ultimately achieving accurate adjustment of the operating frequency of the storage device. This method can significantly improve the performance utilization of the storage device, meet the performance requirements in different application scenarios, and thus improve the overall performance of the system.
[0140] Figure 6 The flowchart of the method for determining the target frequency scheme according to the embodiment of the present disclosure is schematically shown.
[0141] According to the embodiments of the present disclosure, Figure 6As shown, for example, through operations S621 to S626, a target frequency scheme of the storage device corresponding to the target performance is determined according to the determined target performance.
[0142] In operation S621, a target frequency scheme is selected from a plurality of preset first frequency schemes according to the first performance.
[0143] In operation S622, according to the second performance, a target frequency scheme is selected from a plurality of preset second frequency schemes, wherein the first frequency scheme and the second frequency scheme are obtained by combining a plurality of target frequency values or by combining a plurality of target frequency bands.
[0144] In operation S623, a plurality of target frequency values and a plurality of target frequency bands are determined through the following operations.
[0145] In operation S624, the operating frequency of the storage device is divided to obtain a plurality of initial frequency bands.
[0146] In operation S625, a frequency value is taken from each initial frequency band and combined to obtain a plurality of target frequency values.
[0147] In operation S626, at least some of the multiple initial frequency bands are combined to obtain multiple target frequency bands.
[0148] In this embodiment, the process of determining the frequency of the storage device will be further refined, especially how to independently select the optimal frequency solution for different types of performance requirements (such as memory latency and memory bandwidth).
[0149] First, determine what type of performance requirements the storage device will be used for, that is, whether it focuses on memory latency (such as games, office, small AI models (such as model computing power less than 11 tops)) or memory bandwidth (such as NAS (Network Attached Storage), large AI models).
[0150] According to the specific requirements of the application scenario, set clear target performance parameters, such as maximum acceptable latency or minimum required bandwidth.
[0151] For applications that are sensitive to memory latency, multiple first frequency solutions are pre-designed and tested. These solutions are composed of different target frequency values or frequency bands, aiming to optimize the response speed of the storage device.
[0152] For applications with high memory bandwidth requirements, multiple second frequency solutions are also pre-designed and tested. These solutions are designed to improve data transmission efficiency and meet the needs of large data processing.
[0153] According to the set memory delay target, a frequency scheme that can meet or exceed the target is screened out from the first frequency scheme library.
[0154] If there are multiple options available, further evaluate the stability and energy efficiency of each option in actual application and select the best option.
[0155] Similarly, according to the set memory bandwidth target, a suitable solution is screened out from the second frequency solution library.
[0156] Also consider stability and energy efficiency to determine the final frequency scheme.
[0157] Apply the selected frequency solution (either the target frequency value or the frequency band combination) to the storage device. Perform performance tests on the storage device in the actual operating environment to verify whether the selected frequency solution achieves the expected performance target.
[0158] Based on the test results, the frequency scheme is fine-tuned if necessary to ensure that the storage device operates in the optimal state.
[0159] By independently designing and selecting the optimal frequency scheme for memory latency and memory bandwidth sensitive application scenarios, the flexibility and efficiency of the storage device frequency determination method are demonstrated. This method not only meets the performance requirements in different application scenarios, but also ensures the effectiveness and reliability of the frequency scheme through a pre-built frequency scheme library and a rigorous evaluation and selection process.
[0160] Figure 7 The flowchart of the method for determining the frequency of a storage device according to an embodiment of the present disclosure is schematically shown.
[0161] According to the embodiments of the present disclosure, Figure 7 As shown, for example, by operating at least one of S731 to S738, a frequency corresponding to the target performance requirement is determined from the target frequency scheme according to the target frequency scheme and the current operating state of the electronic device.
[0162] In this embodiment, the process of determining the frequency of the storage device is further refined, especially how to dynamically select the most suitable frequency or frequency band when considering the current operating state of the electronic device and the target performance requirements.
[0163] Depending on the application scenario of the storage device (such as gaming, office, NAS, AI models, etc.), determine whether it focuses on memory latency or memory bandwidth.
[0164] Based on performance requirements, a corresponding frequency solution is selected from a pre-built first frequency solution library or a pre-built second frequency solution library.
[0165] Through sensors or system monitoring tools, various operating parameters of electronic devices are obtained in real time, including but not limited to CPU usage, memory occupancy, current latency of storage devices and read and write time.
[0166] In operation S731, in a case where the target frequency scheme is a first frequency scheme, a current delay of a storage device is determined.
[0167] In operation S732 , a frequency corresponding to the storage device is determined to be one of a plurality of first target frequency values in a first frequency scheme according to the current delay.
[0168] In operation S733, according to the current delay, it is determined that the frequency band corresponding to the storage device is one of the plurality of first target frequency bands in the first frequency scheme.
[0169] In operation S734, a frequency corresponding to the storage device is adaptively determined within the first target frequency band according to the current delay.
[0170] For the first frequency scenario (memory latency sensitive), the current latency of the storage device is measured in real time.
[0171] According to a preset rule or algorithm, the current delay is compared with a plurality of first target frequency values in the first frequency scheme, and the frequency value that is closest or best matched is selected.
[0172] Alternatively, the current delay is compared with a plurality of first target frequency bands in the first frequency scheme to determine which frequency band the storage device should currently be in. Within the selected frequency band, the specific frequency is adaptively adjusted according to slight changes in the current delay to achieve optimal performance.
[0173] In operation S735 , when the target frequency scheme is the second frequency scheme, current read and write times of the storage device are determined.
[0174] In operation S736 , according to the current read and write time consumption, a frequency corresponding to the storage device is determined to be one of a plurality of second target frequency values in a second frequency scheme.
[0175] In operation S737, according to the current read and write time consumption, it is determined that the frequency band corresponding to the storage device is one of the plurality of second target frequency bands in the second frequency scheme.
[0176] In operation S738 , a frequency corresponding to the storage device is adaptively determined within the second target frequency band according to the current read and write time.
[0177] For the second frequency solution (memory bandwidth requirement), the current read and write time of the storage device is measured in real time.
[0178] Similarly, according to the current reading and writing time consumption, an optimal one is selected from a plurality of second target frequency values in the second frequency scheme.
[0179] Alternatively, the frequency band corresponding to the current read / write time consumption is determined, that is, which second target frequency band the storage device should be in. In the selected frequency band, the frequency is adaptively adjusted according to the dynamic changes in the read / write time consumption to optimize the data transmission efficiency.
[0180] Set the selected frequency or frequency band to the storage device. Verify in actual applications whether the performance of the storage device meets the requirements, including latency, bandwidth, stability, etc. Based on the verification results, adjust and optimize the frequency selection logic or frequency scheme if necessary.
[0181] In addition, no matter for the first frequency scheme or the second frequency scheme, when the current state of the electronic device changes, resulting in the originally determined frequency no longer matching the current performance requirement, a more flexible and feedback-based frequency adjustment strategy can be adopted.
[0182] For example, various operating parameters of the electronic device may continue to be monitored in real time through sensors or system monitoring tools, including but not limited to CPU usage, memory occupancy, current latency of the storage device, read and write time, and system power consumption.
[0183] Compare the current state to the previous stable state and identify any significant changes, such as increased latency, longer read and write times, or abnormal power consumption.
[0184] According to the specific situation of the state change and the target performance requirements, it is initially determined whether the frequency needs to be adjusted up (to increase performance) or down (to reduce power consumption or improve stability). Based on the above judgment, the frequency of the storage device is directly adjusted up or down by one level. The frequency adjustment range of this level can be a preset fixed value (such as an adjacent target frequency value or target frequency band), or it can be dynamically calculated based on the current state and performance requirements.
[0185] Immediately after frequency adjustment, start monitoring the application power consumption of the storage device and related components (such as CPU, memory, etc.). At the same time, verify whether the performance of the adjusted storage device meets the requirements, including latency, bandwidth, stability, etc. Compare and analyze the monitored application power consumption and performance data with the expected goals to evaluate the effect of frequency adjustment.
[0186] If the effect after adjustment does not meet expectations (for example, power consumption is too high but performance improvement is not obvious, or performance is improved but stability is reduced), the frequency is adjusted again based on the feedback results, either further increasing or decreasing it, or selecting a frequency within a different frequency band.
[0187] If the adjusted effect is good, that is, the expected balance between performance and power consumption is achieved, the current frequency setting remains unchanged.
[0188] The above adjustment and optimization process can be an iterative process, and the frequency settings are continuously fine-tuned according to actual needs and changes in system status to achieve the best balance between performance and power consumption.
[0189] By combining the current operating status of the electronic device and the target performance requirements, dynamic selection and adaptive adjustment of the storage device frequency are achieved. This method not only improves the performance adaptability of the storage device, but also ensures that the storage device always operates in the optimal state through real-time monitoring and feedback mechanisms. At the same time, through precise frequency value selection, frequency band division and adaptive adjustment strategies, the performance stability and efficiency of the storage device are further improved.
[0190] Fig. 8A The flowchart of the method for adjusting the linear correlation between the performance and frequency of a storage device according to an embodiment of the present disclosure is schematically shown. Figure 8B The diagram schematically shows a change curve between memory latency and memory frequency according to relevant scenarios.
[0191] According to the embodiments of the present disclosure, Fig. 8A As shown, for example, by operating S821 to S823, when the target performance is the first performance, the performance of the storage device is adjusted to be linearly related to the frequency.
[0192] like Figure 8B As shown, in some cases, the memory delay and memory frequency are not linearly related, and there are multiple frequencies corresponding to the same delay. For example, in the case of the same delay G2, the memory frequency can be in the first frequency range and the second frequency range respectively; in the case of the same delay G4, the memory frequency can be in the first frequency range, the second frequency range and the third frequency range respectively, which will affect the delay performance when the frequency is increased.
[0193] In this embodiment, how to adjust the operating frequency of the storage device is further refined and optimized to ensure a more ideal linear relationship between its performance and frequency.
[0194] In operation S821, one or more first frequency division points are determined, and a response speed of a storage device corresponding to the first frequency division point is greater than a response speed of a storage device corresponding to a frequency within a local range centered at the corresponding frequency division point.
[0195] First, perform a more detailed scan of the frequency range at the target performance (i.e., first performance). By fine-tuning the frequency value, more data points about the storage device's response speed are collected.
[0196] Based on the refined data points, critical points corresponding to the first performance and with significantly improved response speed, namely first frequency split points, are accurately identified. The storage device response speed at these points is significantly higher than other points within its local frequency range.
[0197] In operation S822, a second frequency division point equal to the response speed of the storage device corresponding to the first frequency division point is determined, and a frequency corresponding to the second frequency division point is higher than a frequency corresponding to the first frequency division point.
[0198] In the frequency range above the first frequency division point, a search process is initiated to find a second frequency division point with the same storage device response speed as the first frequency division point. This step requires precise matching of performance parameters to ensure that there is no significant difference in response speed between the two.
[0199] The potential second frequency division point found is subjected to multiple verification tests to ensure that it can stably maintain the same response speed as the first frequency division point under different conditions.
[0200] In operation S823, a frequency band between the first frequency division point and the second frequency division point is excluded from the target frequency scheme.
[0201] The frequency band range between the first frequency division point and the second frequency division point is clearly defined, and the frequencies within this frequency band are regarded as a non-optimized area because they do not present an ideal linear relationship.
[0202] In the final target frequency plan, this nonlinear frequency band is explicitly excluded to ensure that when the storage device operates within the remaining frequency band, its performance maintains a better linear relationship with frequency.
[0203] According to the optimized frequency scheme, adjust the frequency controller settings of the storage device to ensure that the storage device can automatically or manually switch to the optimal operating frequency range during operation. Implement a continuous performance monitoring mechanism to regularly check and adjust the frequency scheme to adapt to the performance drift that may occur in the storage device over time and under changing usage conditions.
[0204] By refining the frequency scan, accurately identifying and matching the frequency split points, eliminating nonlinear frequency bands, and implementing optimized frequency solutions, the linear relationship between storage device performance and frequency is further improved. This approach not only helps to improve the overall performance stability of the storage device, but also effectively extends its service life and reduces performance loss and potential failure risks caused by non-optimal frequency operation.
[0205] Based on the above method, the present disclosure also provides a frequency determination device for a storage device. Fig. 9 The frequency determination device of the storage device is described in detail.
[0206] Fig. 9 The structural block diagram of the frequency determination device of the storage device according to the embodiment of the present disclosure is schematically shown.
[0207] like Fig. 9 As shown, the frequency determination device 900 of the storage device of this embodiment includes, for example, a first determination module 910, a second determination module 920 and a third determination module 930. The device 900 can execute the above reference Figure 2 The method described in Figure 8 is used to achieve adaptive adjustment of the frequency of the storage device.
[0208] Specifically, the first determination module 910 is used to determine the demand for the target performance of the storage device of the electronic device, the performance of the storage device includes the first performance and the second performance, and the target performance includes at least one of the first performance and the second performance. In one embodiment, the first determination module 910 can be used to perform the operation S210 described above, which will not be repeated here.
[0209] The second determination module 920 is used to determine a target frequency scheme of the storage device corresponding to the target performance according to the determined target performance, the target frequency scheme including a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance, the first performance has a linear correlation with the frequency of the first frequency scheme, and the second performance has a linear correlation with the frequency of the second frequency scheme. In one embodiment, the second determination module 920 can be used to perform the operation S220 described above, which will not be repeated here.
[0210] The third determination module 930 is used to determine a frequency corresponding to the target performance requirement from the target frequency scheme according to the target frequency scheme and the current operating state of the electronic device. In one embodiment, the third determination module 930 can be used to perform the operation S230 described above, which will not be repeated here.
[0211] It is understandable that the first determination module 910, the second determination module 920 and the third determination module 930 can be combined in one module, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first determination module 910, the second determination module 920 and the third determination module 930 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented in hardware or firmware in any other reasonable way of integrating or packaging the circuit, or in a proper combination of software, hardware and firmware. Alternatively, at least one of the first determination module 910, the second determination module 920 and the third determination module 930 can be at least partially implemented as a computer program module, and when the program is run by a computer, the function of the corresponding module can be executed.
[0212] Fig.10 A block diagram of an electronic device suitable for implementing a frequency determination method for a storage device according to an embodiment of the present disclosure is schematically shown.
[0213] like Fig.10 As shown, the electronic device 1000 according to an embodiment of the present disclosure includes a processor 1001, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1002 or a program loaded from a storage part 1008 to a random access memory (RAM) 1003. The processor 1001 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 1001 may also include an onboard memory for caching purposes. The processor 1001 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0214] In RAM 1003, various programs and data required for the operation of electronic device 1000 are stored. Processor 1001, ROM 1002 and RAM 1003 are connected to each other via bus 1004. Processor 1001 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 1002 and / or RAM 1003. It should be noted that the program can also be stored in one or more memories other than ROM 1002 and RAM 1003. Processor 1001 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0215] According to an embodiment of the present disclosure, the electronic device 1000 may further include an input / output (I / O) interface 1005, which is also connected to the bus 1004. The electronic device 1000 may further include one or more of the following components connected to the I / O interface 1005: an input portion 1006 including a keyboard, a mouse, etc.; an output portion 1007 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk, etc.; and a communication portion 1009 including a network interface card such as a LAN card, a modem, etc. The communication portion 1009 performs communication processing via a network such as the Internet. A drive 1010 is also connected to the I / O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1010 as needed, so that a computer program read therefrom is installed into the storage portion 1008 as needed.
[0216] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0217] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 1002 and / or RAM 1003 described above and / or one or more memories other than ROM 1002 and RAM 1003.
[0218] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the method provided by the embodiment of the present disclosure.
[0219] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 1001. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0220] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 1009, and / or installed from the removable medium 1011. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0221] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 1009, and / or installed from the removable medium 1011. When the computer program is executed by the processor 1001, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0222] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0223] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0224] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0225] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for determining a frequency of a storage device, comprising: Determining a requirement for a target performance of a storage device of an electronic device, wherein the performance of the storage device includes a first performance and a second performance, and the target performance includes at least one of the first performance and the second performance; According to the determined target performance, determining a target frequency scheme of the storage device corresponding to the target performance, the target frequency scheme comprising a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance, the first performance having a linear correlation with the frequency of the first frequency scheme, and the second performance having a linear correlation with the frequency of the second frequency scheme; According to the target frequency scheme and the current operating state of the electronic device, a frequency corresponding to the target performance requirement is determined from the target frequency scheme.
2. The method according to claim 1, wherein: The determining of the target performance requirement for the storage device of the electronic device includes: Determine the currently running application; Determining an operating state of at least one processing module of the electronic device; In response to a user operation, determining a user's selection of a performance of the storage device; The target performance requirement is determined according to at least one of the running application, the running state and the performance selection.
3. The method according to claim 2, wherein: The determining of the target performance requirement for the storage device of the electronic device includes: Acquire an application list, where the application list includes a first type of application and a second type of application, where the first type of application has a requirement for the first performance, and the second type of application has a requirement for the second performance; Matching the currently running application with the application list to determine that the currently running application is one of the first type of application and the second type of application; In a case where the currently running application is the first type of application, determining the requirement for the target performance as the requirement for the first performance; In a case where the currently running application is the second type application, the requirement for the target performance is determined as the requirement for the second performance.
4. The method according to claim 2, wherein: The determining of the target performance requirement for the storage device of the electronic device includes: Determine a processing module state corresponding to the currently running application, the processing module state including a processing module frequency and a processing module power consumption; The target performance requirement is determined based on at least one of the following: When the fluctuation amplitude of the frequency of the processing module within the preset time is greater than a first preset threshold, determining the requirement of the target performance as the requirement for the first performance; When the processing module frequency is higher than a second preset threshold within the preset time, determining the requirement for the target performance as the requirement for the second performance; When the power consumption of the processing module is higher than a third preset threshold within the preset time, the requirement for the target performance is determined to be the requirement for the second performance.
5. The method according to claim 1, wherein: The first performance includes a requirement for a response speed of the storage device, and the second performance includes a requirement for a read and write data bandwidth of the storage device.
6. The method according to claim 1, wherein: The step of determining a target frequency scheme of the storage device corresponding to the target performance according to the determined target performance includes: According to the first performance, selecting the target frequency scheme from a plurality of preset first frequency schemes; According to the second performance, selecting the target frequency scheme from a plurality of preset second frequency schemes; The first frequency scheme and the second frequency scheme are obtained by combining multiple target frequency values or by combining multiple target frequency bands; The multiple target frequency values and the multiple target frequency bands are determined by the following operations: Dividing the operating frequency of the storage device to obtain a plurality of initial frequency bands; Taking a frequency value from each of the initial frequency bands respectively, and combining them to obtain the multiple target frequency values; At least some of the multiple initial frequency bands are combined to obtain the multiple target frequency bands.
7. The method according to claim 6, wherein: Determining a frequency corresponding to the target performance requirement from the target frequency scheme according to the target frequency scheme and the current operating state of the electronic device includes at least one of the following: determining a current delay of the storage device when the target frequency scheme is the first frequency scheme; determining, based on the current delay, a frequency corresponding to the storage device as one of a plurality of first target frequency values in the first frequency scheme; According to the current delay, determining that a frequency band corresponding to the storage device is one of a plurality of first target frequency bands in the first frequency scheme; Adaptively determining a frequency corresponding to the storage device within the first target frequency band according to the current delay; When the target frequency scheme is the second frequency scheme, determining the current reading and writing time consumption of the storage device; According to the current read and write time consumption, determining that the frequency corresponding to the storage device is one of a plurality of second target frequency values in the second frequency scheme; According to the current read and write time consumption, determining that a frequency band corresponding to the storage device is one of a plurality of second target frequency bands in the second frequency scheme; According to the current reading and writing time consumption, a frequency corresponding to the storage device is adaptively determined within the second target frequency band.
8. The method according to claim 5, wherein: When the target performance is the first performance, the method further includes: determining one or more first frequency division points, the response speed of the storage device corresponding to the first frequency division points being greater than the response speed of the storage device corresponding to the frequency within a local range centered at the corresponding frequency division points; Determine a second frequency division point having a response speed equal to that of the storage device corresponding to the first frequency division point, wherein the frequency corresponding to the second frequency division point is higher than the frequency corresponding to the first frequency division point; A frequency band between the first frequency division point and the second frequency division point is excluded from the target frequency scheme.
9. A frequency determination device for a storage device, comprising: A first determining module, configured to determine a requirement for a target performance of a storage device of the electronic device, wherein the performance of the storage device includes a first performance and a second performance, and the target performance includes at least one of the first performance and the second performance; a second determining module, configured to determine, according to the determined target performance, a target frequency scheme of the storage device corresponding to the target performance, the target frequency scheme comprising a first frequency scheme corresponding to the first performance and a second frequency scheme corresponding to the second performance, the first performance having a linear correlation with the frequency of the first frequency scheme, and the second performance having a linear correlation with the frequency of the second frequency scheme; The third determination module is used to determine a frequency corresponding to the target performance requirement from the target frequency scheme according to the target frequency scheme and the current operating state of the electronic device.
10. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors execute the frequency determination method of the storage device according to any one of claims 1 to 8.
Citation Information
Patent Citations
Adaptive memory system
CN114373488A
Data processing method, electronic equipment and storage medium
CN117130458A
Memory power consumption optimization method and server
CN117539340A
Memory and bus frequency scaling by detecting memory-latency-bound workloads
US20170075589A1
KR20230174749A