CN114003295B - Method, system and device for setting memory parameters - Google Patents
Method, system and device for setting memory parameters Download PDFInfo
- Publication number
- CN114003295B CN114003295B CN202111204510.7A CN202111204510A CN114003295B CN 114003295 B CN114003295 B CN 114003295B CN 202111204510 A CN202111204510 A CN 202111204510A CN 114003295 B CN114003295 B CN 114003295B
- Authority
- CN
- China
- Prior art keywords
- memory
- parameter
- parameter setting
- strategy
- preset
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 74
- 230000006978 adaptation Effects 0.000 claims description 25
- 238000011084 recovery Methods 0.000 claims description 11
- 238000004590 computer program Methods 0.000 claims description 6
- 238000010200 validation analysis Methods 0.000 claims description 3
- 230000003044 adaptive effect Effects 0.000 abstract description 8
- 230000009286 beneficial effect Effects 0.000 abstract description 6
- 239000003990 capacitor Substances 0.000 description 8
- 239000002245 particle Substances 0.000 description 7
- 238000010586 diagram Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
- G06F9/5016—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method, a system and a device for setting memory parameters, wherein in the current starting stage of the system, a preset initialization parameter value of a memory is stored in a system parameter structure; determining a target parameter setting strategy which is matched with the total error times in the last operation process of the memory system according to a preset error times and parameter setting strategy matching relation; updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy; and acquiring updated memory parameter values from the system parameter structure, and writing the updated memory parameter values into a register used for storing memory parameters in the system so as to enable the parameter setting of the memory to be effective. Therefore, the application configures the respective adaptive parameter setting strategies for different error times so as to select the adaptive parameter setting strategies to set the memory parameters according to the total error times in the last operation process of the memory system when the system is started, thereby being beneficial to improving the error condition of the memory.
Description
Technical Field
The present application relates to the field of servers, and in particular, to a method, a system, and an apparatus for setting memory parameters.
Background
The failure of the components of the server is mainly concentrated in the memory, and data shows that 59% of the failure rate of the whole machine of the server is from the memory. As the memory speed is faster and faster, the memory particles are made smaller and smaller, the capacity of the capacitor in the memory particles to store charges is smaller, the influence on the memory particles is deepened gradually, the memory failure reasons are more complex, the memory failure reasons are mainly concentrated on environmental signal noise, memory body problems, parameter setting, slot contact problems and the like, when serious failure problems occur in the memory, the system is easy to restart or downtime, and the important concern for operation and maintenance is gradually brought about.
The memory particles comprise a plurality of capacitors, the appearance of the charge quantity of the capacitors is a value stored in the memory particles, if the capacitors are not timely charged within a certain time range, the charges in the capacitors can leak, and at the moment, the stored data can not be correctly judged to be 0 or 1, so that the memory failure occurs. At present, reasonable memory parameters are required to be set so that the capacitor can maintain charge to ensure the correctness of data, and the technical means adopted generally are as follows: the initialization parameter value of the memory is preset according to experience, so that the memory parameter is set to be the preset initialization parameter value when the system is started. However, when there are more memory errors, if the memory parameters are still set by using the preset initialization parameter values at the next start of the system, the error condition of the memory cannot be improved.
Therefore, how to provide a solution to improve the error condition of the memory is a problem that a person skilled in the art needs to solve.
Disclosure of Invention
The application aims to provide a method, a system and a device for setting memory parameters, which are used for configuring respective adaptive parameter setting strategies for different error times so as to select the adaptive parameter setting strategies to set the memory parameters according to the total error times in the last operation process of the memory system when the system is started, thereby being beneficial to improving the error condition of the memory.
In order to solve the above technical problems, the present application provides a method for setting memory parameters, including:
in the system starting stage, storing a preset initialization parameter value of a memory into a system parameter structure;
determining a target parameter setting strategy which is matched with the total error times in the last running process of the memory system according to a preset error times and parameter setting strategy matching relation;
updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy;
and acquiring an updated memory parameter value from the system parameter structure, and writing the updated memory parameter value into a register used for storing memory parameters in the system so as to enable the parameter setting of the memory to be effective.
Optionally, the preset process of the adapting relation between the error times and the parameter setting policy includes:
a first parameter setting strategy is configured for a preset first error frequency range; the first parameter setting strategy is used for setting parameters of the memory according to user-defined memory parameter values.
Optionally, the preset process of the adapting relationship between the error times and the parameter setting policy further includes:
configuring a second parameter setting strategy for a preset second error frequency range; the second parameter setting strategy is used for increasing the preset initialization parameter value of the memory and setting the parameters of the memory according to the increased memory parameter value; the first error count range is greater than the second error count range.
Optionally, the preset process of the adapting relationship between the error times and the parameter setting policy further includes:
a third parameter setting strategy is configured for a preset third error frequency range; the third parameter setting strategy is used for reserving preset initialization parameter values of the memory; the second error count range is greater than the third error count range.
Optionally, before determining the target parameter setting policy adapted to the total number of errors in the last running process of the memory according to the preset matching relationship between the number of errors and the parameter setting policy, the method for setting the memory parameter further includes:
judging whether a memory strategy option on a BIOS interface of the system is selected;
if yes, determining a target parameter setting strategy matched with the target strategy option currently selected on the BIOS interface according to the preset strategy option and parameter setting strategy matching relation, and entering a step of updating the memory parameter value stored in the system parameter structure according to the target parameter setting strategy;
if not, the method enters a step of determining a target parameter setting strategy which is matched with the total error times in the last running process of the system according to the preset error times and parameter setting strategy matching relation.
Optionally, the memory policy options include a custom option, an open option, and a close option;
the presetting process of the policy option and parameter setting policy adaptation relation comprises the following steps:
configuring a first parameter setting strategy for the custom option; the first parameter setting strategy is used for setting the parameters of the memory according to the user-defined memory parameter values;
configuring a second parameter setting strategy for the opening option; the second parameter setting strategy is used for increasing the preset initialization parameter value of the memory and setting the parameters of the memory according to the increased memory parameter value;
configuring a third parameter setting strategy for the closing option; the third parameter setting strategy is used for reserving preset initialization parameter values of the memory.
Optionally, the parameters of the memory include refresh rate, write recovery delay, precharge time, and row refresh period;
the preset initialization parameter value of the memory is increased, which comprises the following steps:
determining a target increase ratio corresponding to a target parameter according to a corresponding relation between a preset parameter and the increase ratio, and increasing the target parameter according to the target increase ratio; wherein the target parameter is any one of the refresh rate, the write recovery delay, the precharge time, and the row refresh period.
Optionally, the parameters of the memory further include a power saving selection parameter;
the second parameter setting policy is further for setting the power saving selection parameter to power saving off;
the third parameter setting policy is further configured to set the power saving selection parameter to turn on energy saving.
In order to solve the technical problem, the present application further provides a system for setting memory parameters, including:
the storing module is used for storing the preset initialization parameter value of the memory into the system parameter structure in the system starting stage;
the determining module is used for determining a target parameter setting strategy which is matched with the total error times in the last running process of the memory system according to the preset error times and parameter setting strategy adaptation relation;
the updating module is used for updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy;
and the validation module is used for acquiring the updated memory parameter value from the system parameter structure, and writing the updated memory parameter value into a register used for storing the memory parameter in the system so as to validate the parameter setting of the memory.
In order to solve the technical problem, the present application further provides a device for setting memory parameters, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any memory parameter setting method when executing the computer program.
The application provides a method for setting memory parameters, which comprises the steps of storing preset initialization parameter values of a memory into a system parameter structure in the starting stage of a system; determining a target parameter setting strategy which is matched with the total error times in the last operation process of the memory system according to a preset error times and parameter setting strategy matching relation; updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy; and acquiring updated memory parameter values from the system parameter structure, and writing the updated memory parameter values into a register used for storing memory parameters in the system so as to enable the parameter setting of the memory to be effective. Therefore, the application configures the respective adaptive parameter setting strategies for different error times so as to select the adaptive parameter setting strategies to set the memory parameters according to the total error times in the last operation process of the memory system when the system is started, thereby being beneficial to improving the error condition of the memory.
The application also provides a system and a device for setting the memory parameters, which have the same beneficial effects as the setting method.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required in the prior art and the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for setting memory parameters according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a memory parameter setting system according to an embodiment of the present application.
Detailed Description
The core of the application is to provide a method, a system and a device for setting memory parameters, wherein the method, the system and the device are used for configuring respectively adapted parameter setting strategies for different error times so as to select the adapted parameter setting strategies to set the memory parameters according to the total error times in the last operation process of the memory system when the system is started up, thereby being beneficial to improving the error condition of the memory.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Referring to fig. 1, fig. 1 is a flowchart of a method for setting a memory parameter according to an embodiment of the application.
The method for setting the memory parameter is applied to a server system comprising a memory, and comprises the following steps:
step S1: and in the system starting stage, storing the preset initialization parameter value of the memory into a system parameter structure.
Specifically, the application presets the initialization parameter value of the memory. And in the system starting stage, acquiring a preset initialization parameter value of the memory, and then storing the preset initialization parameter value of the memory into a system parameter structure.
Step S2: and determining a target parameter setting strategy which is matched with the total error times in the last operation process of the internal memory system according to the preset error times and parameter setting strategy matching relation.
Specifically, the application presets the adaptation relation between the error times and the parameter setting strategies, namely, the parameter setting strategies which are respectively adapted are configured for different error times, so as to determine the target parameter setting strategy which is adapted to the total error times (which can be obtained by reporting errors according to the statistical memory ECC (Error Correcting Code, error checking and correcting)) in the last operation process of the system according to the preset adaptation relation between the error times and the parameter setting strategies in the current starting stage of the system.
Step S3: and updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy.
Specifically, after the target parameter setting strategy is determined, the memory parameter values stored in the system parameter structure are updated according to the target parameter setting strategy, and it can be understood that the updated memory parameter values in the system parameter structure can further ensure that the capacitance in the memory particles maintains the charge, so that the correctness of the memory storage data is ensured.
Step S4: and acquiring updated memory parameter values from the system parameter structure, and writing the updated memory parameter values into a register used for storing memory parameters in the system so as to enable the parameter setting of the memory to be effective.
Specifically, after the memory parameter value stored in the system parameter structure is updated, the updated memory parameter value is acquired from the system parameter structure, and then the updated memory parameter value is written into a register used for storing the memory parameter in the system, so that the parameter setting of the memory is enabled to be effective, and the occurrence of memory errors caused by insufficient charge of the internal capacitor of the memory is reduced.
The application provides a method for setting memory parameters, which comprises the steps of storing preset initialization parameter values of a memory into a system parameter structure in the starting stage of a system; determining a target parameter setting strategy which is matched with the total error times in the last operation process of the memory system according to a preset error times and parameter setting strategy matching relation; updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy; and acquiring updated memory parameter values from the system parameter structure, and writing the updated memory parameter values into a register used for storing memory parameters in the system so as to enable the parameter setting of the memory to be effective. Therefore, the application configures the respective adaptive parameter setting strategies for different error times so as to select the adaptive parameter setting strategies to set the memory parameters according to the total error times in the last operation process of the memory system when the system is started, thereby being beneficial to improving the error condition of the memory.
Based on the above embodiments:
as an optional embodiment, the preset process of the adapting relation between the error times and the parameter setting policy includes:
a first parameter setting strategy is configured for a preset first error frequency range; the first parameter setting strategy is used for setting the parameters of the memory according to the user-defined memory parameter values.
Specifically, the first adaptation condition of the adaptation relationship between the error times and the parameter setting policy of the present application is: presetting a first error frequency range, and configuring a first parameter setting strategy for the preset first error frequency range, wherein the parameter setting principle of the first parameter setting strategy is as follows: setting the parameters of the memory according to the user-defined memory parameter values, namely, the user can set the memory parameter values according to the actual application scene by himself, and taking the memory parameter values set by the user as the parameter values actually set by the memory.
As an optional embodiment, the preset process of the adapting relation between the error times and the parameter setting policy further includes:
configuring a second parameter setting strategy for a preset second error frequency range; the second parameter setting strategy is used for increasing the preset initialization parameter value of the memory and setting the parameters of the memory according to the increased memory parameter value; the first error count range is greater than the second error count range.
Further, the second adaptation condition of the adaptation relationship between the error times and the parameter setting policy of the present application is: presetting a second error frequency range, and configuring a second parameter setting strategy for the preset second error frequency range, wherein the parameter setting principle of the second parameter setting strategy is as follows: the preset initialization parameter value of the memory is increased, and the parameters of the memory are set according to the increased memory parameter value (because the increased memory parameter value can ensure that the capacitance in the memory particle maintains the charge more than the preset initialization parameter value of the memory).
As an optional embodiment, the preset process of the adapting relation between the error times and the parameter setting policy further includes:
a third parameter setting strategy is configured for a preset third error frequency range; the third parameter setting strategy is used for reserving preset initialization parameter values of the memory; the second error count range is greater than the third error count range.
Further, the third adaptation condition of the adaptation relationship between the error times and the parameter setting policy of the present application is: presetting a third error frequency range, and configuring a third parameter setting strategy for the preset third error frequency range, wherein the parameter setting principle of the third parameter setting strategy is as follows: the preset initialization parameter value of the memory is reserved, that is, the parameters of the memory are still set according to the preset initialization parameter value of the memory (which indicates that the memory error is not much, and the preset initialization parameter value of the memory still can meet the requirement).
It should be noted that, the first error frequency range > the second error frequency range > the third error frequency range, and the effectiveness of the parameter setting policy for improving the memory error condition is as follows: the first parameter setting policy > the second parameter setting policy > the third parameter setting policy. It can be appreciated that the more memory errors, the more efficient parameter setting strategy is needed to reduce the occurrence of memory errors due to insufficient charge of the internal capacitor.
As an optional embodiment, before determining the target parameter setting policy adapted to the total number of errors in the previous running process of the memory system according to the preset matching relationship between the number of errors and the parameter setting policy, the memory parameter setting method further includes:
judging whether a memory strategy option on a BIOS interface of the system is selected;
if yes, determining a target parameter setting strategy matched with the currently selected target strategy option on the BIOS interface according to the preset strategy option and parameter setting strategy matching relation so as to enter the step of updating the memory parameter value stored in the system parameter structure according to the target parameter setting strategy;
if not, the method enters a step of determining a target parameter setting strategy which is matched with the total error times in the last operation process of the internal memory system according to the preset error times and parameter setting strategy adaptation relation.
Furthermore, the application also presets the adapting relation between the strategy options and the parameter setting strategies, namely, the parameter setting strategies which are respectively adapted are configured for different memory strategy options on the BIOS (Basic Input Output System ) interface of the system. The present application provides two ways of determining the target parameter setting policy: 1) Determining according to a preset strategy option and parameter setting strategy adaptation relation; 2) And determining according to the preset error times and parameter setting strategy adaptation relation. The application preferably selects a first mode for determining the target parameter setting strategy:
judging whether a memory strategy option on a BIOS interface of the system is selected; if the target parameter setting strategy is selected, the step of determining the target parameter setting strategy matched with the total error times in the last operation process of the internal memory system according to the preset error times and parameter setting strategy matching relation is not carried out, but the target parameter setting strategy matched with the currently selected target strategy option on the BIOS interface is determined according to the preset strategy option and parameter setting strategy matching relation, and then the internal memory parameter value stored in the system parameter structure is updated according to the target parameter setting strategy matched with the target strategy option. If not, entering a step of determining a target parameter setting strategy which is matched with the total error times in the last operation process of the system according to the preset error times and parameter setting strategy adaptation relation so as to update the memory parameter value stored in the system parameter structure according to the target parameter setting strategy which is matched with the total error times.
As an optional embodiment, the memory policy options include a custom option, an on option, and an off option;
the presetting process of the policy option and parameter setting policy adaptation relation comprises the following steps:
configuring a first parameter setting strategy for the custom option; the first parameter setting strategy is used for setting the parameters of the memory according to the user-defined memory parameter values;
configuring a second parameter setting strategy for the opening option; the second parameter setting strategy is used for increasing the preset initialization parameter value of the memory and setting the parameters of the memory according to the increased memory parameter value;
configuring a third parameter setting strategy for the closing option; the third parameter setting strategy is used for reserving preset initialization parameter values of the memory.
Specifically, the memory policy options of the present application include a custom option, an open option, and a close option, and a user can select according to an application scenario. When the user selects the custom option, the memory parameter option is displayed on the BIOS interface of the system, the user can set the memory parameter value according to the application scene, and since the memory parameter value cannot greatly affect the performance, the maximum value and the minimum value of each memory parameter need to be limited, so that the user selects the parameter value from the maximum value and the minimum value of each memory parameter (the limited parameter adjustment range can be set based on the memory bank parameter percentage of the current server, and the width adjustment parameter proportion range is 100% -130%). Judging whether a memory strategy option on a BIOS interface of the system is selected or not in the system starting stage; if the custom option is selected, the memory parameter values stored in the system parameter structure are updated according to the memory parameter values custom by the user.
When the user selects the on option, the memory parameter options on the BIOS interface of the system are hidden. Judging whether a memory strategy option on a BIOS interface of the system is selected or not in the system starting stage; if the opening option is selected, the preset initialization parameter value of the memory is increased, and the memory parameter value stored in the system parameter structure is updated according to the increased memory parameter value.
When the user selects the shutdown option, the memory parameter options on the BIOS interface of the system are hidden. Judging whether a memory strategy option on a BIOS interface of the system is selected or not in the system starting stage; if the close option is selected, the memory parameter values stored in the system parameter structure are retained.
As an alternative embodiment, the parameters of the memory include refresh rate, write recovery delay, precharge time, and row refresh period;
the preset initialization parameter value of the memory is increased, which comprises the following steps:
determining a target increase ratio corresponding to the target parameter according to the corresponding relation between the preset parameter and the increase ratio, and increasing the target parameter according to the target increase ratio; the target parameter is any one of refresh rate, write recovery delay, precharge time, and row refresh period.
Specifically, the parameters of the memory of the present application include refresh rate, tWR (Write Recovery Time, write recovery delay), tRP (Precharge command Period, precharge time), tRFC (Row Refresh Cycle Time, row refresh period). The application presets the corresponding relation between the parameter and the increasing ratio, namely the increasing ratio corresponding to different parameter configurations of the memory, and the second parameter setting strategy is specifically used for determining the target increasing ratio corresponding to the target parameter (one of refresh rate, write recovery delay, precharge time and row refresh period) according to the corresponding relation between the preset parameter and the increasing ratio, and increasing the target parameter according to the target increasing ratio.
As an optional embodiment, the parameters of the memory further include a power saving selection parameter;
the second parameter setting policy is further for setting the power saving selection parameter to power saving off;
the third parameter setting strategy is also used to set the power saving selection parameter to turn on power saving.
Further, the parameters of the memory of the present application further include a power energy saving selection parameter, which is either an on energy saving or an off energy saving, and is determined according to the selection condition of the memory policy option on the BIOS interface of the system, specifically, when the user selects the custom option, the BIOS interface of the system displays a power energy saving option, and the user can select to turn on energy saving or turn off energy saving by himself; when the user selects the opening option, setting the power supply energy saving selection parameter to be energy saving closing; when the user selects the off option, the power saving selection parameter is set to turn on the power saving. It should be noted that, turning off the energy saving can reduce the power state switching, so as to reduce the data loss caused by the power state switching.
In addition, the process of obtaining the updated memory parameter value from the system parameter structure and writing the updated memory parameter value into a register for storing the memory parameter in the system to validate the parameter setting of the memory includes: the refresh rate, write recovery delay, precharge time, row refresh period and power saving selection parameters of the updated memory are obtained from the system parameter structure, and the refresh rate, write recovery delay, precharge time and row refresh period of the memory are written into a register of a memory controller of a system CPU (central processing unit), and simultaneously the power saving selection parameters are written into a power module register of the system CPU, so that the parameter setting of the memory is effective.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a memory parameter setting system according to an embodiment of the application.
The memory parameter setting system comprises:
the storing module 1 is used for storing the preset initialization parameter value of the memory into the system parameter structure in the system starting stage;
the determining module 2 is used for determining a target parameter setting strategy which is matched with the total error times in the last operation process of the internal memory system according to the preset error times and parameter setting strategy adaptation relation;
the updating module 3 is used for updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy;
and the validation module 4 is used for acquiring the updated memory parameter value from the system parameter structure, and writing the updated memory parameter value into a register used for storing the memory parameter in the system so as to validate the parameter setting of the memory.
The description of the parameter setting system provided by the present application refers to the embodiment of the parameter setting method, and the disclosure is not repeated here.
The application also provides a device for setting the memory parameters, which comprises:
a memory for storing a computer program;
and the processor is used for realizing the steps of any memory parameter setting method when executing the computer program.
The description of the parameter setting device provided by the present application refers to the embodiment of the parameter setting method, and the disclosure is not repeated here.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (7)
1. The method for setting the memory parameter is characterized by comprising the following steps:
in the system starting stage, storing a preset initialization parameter value of a memory into a system parameter structure;
determining a target parameter setting strategy which is matched with the total error times in the last running process of the memory system according to a preset error times and parameter setting strategy matching relation;
updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy;
acquiring updated memory parameter values from the system parameter structure, and writing the updated memory parameter values into a register used for storing memory parameters in the system so as to enable the parameter setting of the memory to be effective;
the preset process of the adaptation relation between the error times and the parameter setting strategy comprises the following steps:
a first parameter setting strategy is configured for a preset first error frequency range; the first parameter setting strategy is used for setting the parameters of the memory according to the user-defined memory parameter values;
correspondingly, the preset process of the adaptation relation between the error times and the parameter setting strategy further comprises the following steps:
configuring a second parameter setting strategy for a preset second error frequency range; the second parameter setting strategy is used for increasing the preset initialization parameter value of the memory and setting the parameters of the memory according to the increased memory parameter value; the first error frequency range is larger than the second error frequency range;
correspondingly, the preset process of the adaptation relation between the error times and the parameter setting strategy further comprises the following steps:
a third parameter setting strategy is configured for a preset third error frequency range; the third parameter setting strategy is used for reserving preset initialization parameter values of the memory; the second error count range is greater than the third error count range.
2. The method for setting memory parameters according to claim 1, wherein before determining a target parameter setting policy adapted to a total number of errors in a last operation of the memory according to a preset error number and parameter setting policy adaptation relationship, the method for setting memory parameters further comprises:
judging whether a memory strategy option on a BIOS interface of the system is selected;
if yes, determining a target parameter setting strategy matched with the target strategy option currently selected on the BIOS interface according to the preset strategy option and parameter setting strategy matching relation, and entering a step of updating the memory parameter value stored in the system parameter structure according to the target parameter setting strategy;
if not, the method enters a step of determining a target parameter setting strategy which is matched with the total error times in the last running process of the system according to the preset error times and parameter setting strategy matching relation.
3. The method of claim 2, wherein the memory policy options include a custom option, an on option, and an off option;
the presetting process of the policy option and parameter setting policy adaptation relation comprises the following steps:
configuring a first parameter setting strategy for the custom option; the first parameter setting strategy is used for setting the parameters of the memory according to the user-defined memory parameter values;
configuring a second parameter setting strategy for the opening option; the second parameter setting strategy is used for increasing the preset initialization parameter value of the memory and setting the parameters of the memory according to the increased memory parameter value;
configuring a third parameter setting strategy for the closing option; the third parameter setting strategy is used for reserving preset initialization parameter values of the memory.
4. The method for setting memory parameters according to claim 3, wherein the memory parameters include refresh rate, write recovery delay, precharge time, and row refresh period;
the preset initialization parameter value of the memory is increased, which comprises the following steps:
determining a target increase ratio corresponding to a target parameter according to a corresponding relation between a preset parameter and the increase ratio, and increasing the target parameter according to the target increase ratio; wherein the target parameter is any one of the refresh rate, the write recovery delay, the precharge time, and the row refresh period.
5. The method for setting memory parameters according to claim 4, wherein the memory parameters further comprise power saving selection parameters;
the second parameter setting policy is further for setting the power saving selection parameter to power saving off;
the third parameter setting policy is further configured to set the power saving selection parameter to turn on energy saving.
6. A system for setting memory parameters, comprising:
the storing module is used for storing the preset initialization parameter value of the memory into the system parameter structure in the system starting stage;
the determining module is used for determining a target parameter setting strategy which is matched with the total error times in the last running process of the memory system according to the preset error times and parameter setting strategy adaptation relation;
the updating module is used for updating the memory parameter values stored in the system parameter structure according to the target parameter setting strategy;
the validation module is used for acquiring updated memory parameter values from the system parameter structure, and writing the updated memory parameter values into a register used for storing memory parameters in the system so as to validate the parameter setting of the memory;
the preset process of the adaptation relation between the error times and the parameter setting strategy comprises the following steps:
a first parameter setting strategy is configured for a preset first error frequency range; the first parameter setting strategy is used for setting the parameters of the memory according to the user-defined memory parameter values;
correspondingly, the preset process of the adaptation relation between the error times and the parameter setting strategy further comprises the following steps:
configuring a second parameter setting strategy for a preset second error frequency range; the second parameter setting strategy is used for increasing the preset initialization parameter value of the memory and setting the parameters of the memory according to the increased memory parameter value; the first error frequency range is larger than the second error frequency range;
correspondingly, the preset process of the adaptation relation between the error times and the parameter setting strategy further comprises the following steps:
a third parameter setting strategy is configured for a preset third error frequency range; the third parameter setting strategy is used for reserving preset initialization parameter values of the memory; the second error count range is greater than the third error count range.
7. A memory parameter setting device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for setting memory parameters according to any of claims 1-5 when executing said computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111204510.7A CN114003295B (en) | 2021-10-15 | 2021-10-15 | Method, system and device for setting memory parameters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111204510.7A CN114003295B (en) | 2021-10-15 | 2021-10-15 | Method, system and device for setting memory parameters |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114003295A CN114003295A (en) | 2022-02-01 |
CN114003295B true CN114003295B (en) | 2023-08-25 |
Family
ID=79923086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111204510.7A Active CN114003295B (en) | 2021-10-15 | 2021-10-15 | Method, system and device for setting memory parameters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114003295B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114675892B (en) * | 2022-04-12 | 2024-09-17 | 杭州雾联科技有限公司 | Display parameter setting method, device, equipment and storage medium |
CN117827294B (en) * | 2024-02-29 | 2024-05-24 | 苏州元脑智能科技有限公司 | Memory starting processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106250261A (en) * | 2016-07-21 | 2016-12-21 | 浪潮电子信息产业股份有限公司 | A kind of determination method and device of memory parameters |
CN107357598A (en) * | 2016-05-09 | 2017-11-17 | 中兴通讯股份有限公司 | One parameter configuration method and device |
WO2018023881A1 (en) * | 2016-08-03 | 2018-02-08 | 中兴通讯股份有限公司 | Parameter adjustment method and device, and computer storage medium |
CN111143104A (en) * | 2019-12-29 | 2020-05-12 | 苏州浪潮智能科技有限公司 | Memory exception processing method and system, electronic device and storage medium |
CN113010217A (en) * | 2021-03-18 | 2021-06-22 | 山东英信计算机技术有限公司 | BIOS parameter setting method and device, electronic equipment and storage medium |
-
2021
- 2021-10-15 CN CN202111204510.7A patent/CN114003295B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107357598A (en) * | 2016-05-09 | 2017-11-17 | 中兴通讯股份有限公司 | One parameter configuration method and device |
CN106250261A (en) * | 2016-07-21 | 2016-12-21 | 浪潮电子信息产业股份有限公司 | A kind of determination method and device of memory parameters |
WO2018023881A1 (en) * | 2016-08-03 | 2018-02-08 | 中兴通讯股份有限公司 | Parameter adjustment method and device, and computer storage medium |
CN111143104A (en) * | 2019-12-29 | 2020-05-12 | 苏州浪潮智能科技有限公司 | Memory exception processing method and system, electronic device and storage medium |
CN113010217A (en) * | 2021-03-18 | 2021-06-22 | 山东英信计算机技术有限公司 | BIOS parameter setting method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114003295A (en) | 2022-02-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114003295B (en) | Method, system and device for setting memory parameters | |
US10102886B2 (en) | Techniques for probabilistic dynamic random access memory row repair | |
US9645829B2 (en) | Techniques to communicate with a controller for a non-volatile dual in-line memory module | |
TWI643200B (en) | Controller-based memory scrub for drams with internal error-correcting code (ecc) bits contemporaneously during auto refresh or by using masked write commands | |
US9690505B2 (en) | Refresh row address | |
US8832530B2 (en) | Techniques associated with a read and write window budget for a two level memory system | |
EP3262508B1 (en) | Patrol scrub periods based on power status | |
CN108984219A (en) | Memory parameter configuration method and electronic equipment | |
CN106557436A (en) | The memory compression function enabled method of terminal and device | |
CN108762989B (en) | Data storage method, device and equipment of solid state disk and readable storage medium | |
CN102959488B (en) | For controlling the method and system of supply voltage | |
US9529536B2 (en) | Semiconductor memory device, memory system including the same, and operating method thereof | |
US8930318B1 (en) | Systems and methods for handling interruptions while updating of an electronic device | |
CN106775490A (en) | A kind of kernel log storage method and device based on nonvolatile memory | |
CN110364202A (en) | Memory device | |
CN105653332B (en) | A kind of MCU system and method for burn-recording for correcting OTP burning problem | |
CN108595286A (en) | A kind of method and solid state disk promoting reliability of flash memory | |
CN108804025A (en) | A kind of method and solid state disk for reducing flash memory and being detained mistake | |
CN111813455A (en) | Low-power-consumption realization method and device of solid state disk, computer equipment and storage medium | |
US7844773B2 (en) | Refresh circuit and refresh method in semiconductor memory device | |
US9405720B2 (en) | Managing wait states for memory access | |
US11894042B2 (en) | Method for refreshing row hammer, circuit for refreshing row hammer and semiconductor memory | |
CN113010236B (en) | Program execution method, device, equipment and storage medium | |
US20140095825A1 (en) | Semiconductor device and operating method thereof | |
CN102968175A (en) | Method, device, controller and system for controlling memory |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |