[go: up one dir, main page]

CN106297890A - A kind of internal memory target refresh determination method for parameter and device - Google Patents

A kind of internal memory target refresh determination method for parameter and device Download PDF

Info

Publication number
CN106297890A
CN106297890A CN201610580623.XA CN201610580623A CN106297890A CN 106297890 A CN106297890 A CN 106297890A CN 201610580623 A CN201610580623 A CN 201610580623A CN 106297890 A CN106297890 A CN 106297890A
Authority
CN
China
Prior art keywords
refresh
parameter
memory
refresh parameter
internal memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610580623.XA
Other languages
Chinese (zh)
Inventor
周茂庸
刘胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
IEIT Systems Co Ltd
Original Assignee
Inspur Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201610580623.XA priority Critical patent/CN106297890A/en
Publication of CN106297890A publication Critical patent/CN106297890A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/02Detection or location of defective auxiliary circuits, e.g. defective refresh counters
    • G11C29/028Detection or location of defective auxiliary circuits, e.g. defective refresh counters with adaption or trimming of parameters
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/04Detection or location of defective memory elements, e.g. cell constructio details, timing of test signals
    • G11C29/50Marginal testing, e.g. race, voltage or current testing
    • G11C29/50012Marginal testing, e.g. race, voltage or current testing of timing

Landscapes

  • Dram (AREA)
  • For Increasing The Reliability Of Semiconductor Memories (AREA)

Abstract

The invention provides a kind of internal memory target refresh determination method for parameter and device, the method includes: S1: determine initial refresh parameter;S2: utilize initial refresh parameter internally to deposit into row refreshing;S3: judge that the internal memory after refreshing the most normally works, if normally working, then perform S4, otherwise, currently used refresh parameter is defined as target refresh parameter;S4: described initial refresh parameter is updated according to refresh granularity, and utilize the refresh parameter after renewal internally to deposit into row refreshing, and perform S3.This programme can accurately determine the refresh parameter of target memory.

Description

一种内存目标刷新参数的确定方法及装置Method and device for determining memory target refresh parameters

技术领域technical field

本发明涉及计算机技术领域,特别涉及一种内存目标刷新参数的确定方法及装置。The invention relates to the technical field of computers, in particular to a method and device for determining memory object refresh parameters.

背景技术Background technique

内存作为服务器系统的关键组成部分,其好坏直接影响服务器能否正常工作。其中,内存具有间隔性刷新的特性,以保证内存中的数据不被丢失。As a key component of the server system, the memory directly affects whether the server can work normally. Among them, the memory has the characteristics of interval refreshing to ensure that the data in the memory will not be lost.

现有技术中,可以根据经验值来设置内存的刷新参数,以利用该刷新参数中对应的刷新时间段,周期性的对内存进行刷新。In the prior art, memory refresh parameters may be set according to empirical values, so as to refresh the memory periodically using the refresh time period corresponding to the refresh parameters.

然而,若内存的实际刷新时间段远远大于经验值对应的刷新时间段,那么根据经验值设置的刷新参数会造成刷新资源的浪费;若内存的实际刷新时间段小于经验值对应的刷新时间段,那么根据经验值设置的刷新参数会造成内存数据丢失。因此,现有技术无法准确的确定内存的刷新参数。However, if the actual refresh time period of the memory is much longer than the refresh time period corresponding to the experience value, then the refresh parameters set according to the experience value will cause a waste of refresh resources; if the actual refresh time period of the memory is shorter than the refresh time period corresponding to the experience value , then the refresh parameters set according to the empirical value will cause memory data loss. Therefore, the prior art cannot accurately determine memory refresh parameters.

发明内容Contents of the invention

本发明实施例提供了一种内存目标刷新参数的确定方法及装置,以便能准确的确定内存的刷新参数。The embodiment of the present invention provides a method and device for determining memory target refresh parameters, so as to accurately determine memory refresh parameters.

第一方面,本发明实施例提供了一种内存目标刷新参数的确定方法包括:In a first aspect, an embodiment of the present invention provides a method for determining memory target refresh parameters, including:

S1:确定初始刷新参数;S1: Determine the initial refresh parameters;

S2:利用初始刷新参数对内存进行刷新;S2: Refresh the memory by using the initial refresh parameters;

S3:判断刷新后的内存是否正常工作,若正常工作,则执行S4;否则,将当前使用的刷新参数确定为目标刷新参数;S3: Determine whether the refreshed memory works normally, if it works normally, execute S4; otherwise, determine the currently used refresh parameters as the target refresh parameters;

S4:按照刷新粒度对所述初始刷新参数进行更新,并利用更新后的刷新参数对内存进行刷新,并执行S3。S4: Update the initial refresh parameters according to the refresh granularity, and use the updated refresh parameters to refresh the memory, and execute S3.

优选地,Preferably,

根据所述目标刷新参数确定内存使用时对应的刷新参数,其中,所述内存使用时对应的刷新参数小于所述目标刷新参数。A refresh parameter corresponding to memory usage is determined according to the target refresh parameter, wherein the refresh parameter corresponding to memory usage is smaller than the target refresh parameter.

优选地,Preferably,

所述利用初始刷新参数对内存进行刷新,包括:The memory is refreshed using initial refresh parameters, including:

获取启动盘;Get the boot disk;

将刷新参数的设置程序和内存测试程序拷贝到所述启动盘中;Copy the setting program and the memory test program of refreshing parameters into the boot disk;

在所述启动盘中根据所述刷新参数的设置程序设置所述初始刷新参数;Setting the initial refresh parameters in the startup disk according to the refresh parameter setting program;

根据内存测试程序读取设置的所述初始刷新参数,并根据读取的所述初始刷新参数对内存进行刷新。Reading the set initial refresh parameters according to the memory test program, and refreshing the memory according to the read initial refresh parameters.

优选地,Preferably,

所述启动盘包括:DOS(Disk Operating System,磁盘操作系统)启动盘。The boot disk includes: a DOS (Disk Operating System, Disk Operating System) boot disk.

优选地,Preferably,

所述刷新粒度包括:1ms-32ms;The refresh granularity includes: 1ms-32ms;

和/或,and / or,

所述内存包括:DRAM(Dynamic Random Access Memory,动态随机存取存储器)。The memory includes: DRAM (Dynamic Random Access Memory, dynamic random access memory).

第二方面,本发明实施例提供了一种内存目标刷新参数的确定装置,包括:In a second aspect, an embodiment of the present invention provides a device for determining memory target refresh parameters, including:

设置单元,用于设置刷新粒度,将所述刷新粒度输出给处理单元;a setting unit, configured to set the refresh granularity, and output the refresh granularity to the processing unit;

第一确定单元,用于确定初始刷新参数,将所述初始刷新参数输出给刷新单元;a first determination unit, configured to determine an initial refresh parameter, and output the initial refresh parameter to the refresh unit;

所述刷新单元,用于利用初始刷新参数对内存进行刷新;The refresh unit is configured to refresh the memory using initial refresh parameters;

判断单元,用于判断刷新后的内存是否正常工作,若正常工作,则触发处理单元执行相应操作;否则,触发第二确定单元执行相应操作;The judging unit is used to judge whether the refreshed memory works normally, and if it works normally, triggers the processing unit to perform corresponding operations; otherwise, triggers the second determining unit to perform corresponding operations;

所述第二确定单元,用于将当前使用的刷新参数确定为目标刷新参数;The second determining unit is configured to determine the currently used refresh parameter as the target refresh parameter;

所述处理单元,用于按照刷新粒度对所述初始刷新参数进行更新,并利用更新后的刷新参数对内存进行刷新,并触发所述判断单元执行相应操作。The processing unit is configured to update the initial refresh parameters according to the refresh granularity, and use the updated refresh parameters to refresh the memory, and trigger the judging unit to perform corresponding operations.

优选地,Preferably,

所述的内存目标刷新参数的确定装置,进一步包括:The device for determining the refresh parameters of the memory target further includes:

第三确定单元,用于根据所述目标刷新参数确定内存使用时对应的刷新参数,其中,所述内存使用时对应的刷新参数小于所述目标刷新参数。The third determining unit is configured to determine a refresh parameter corresponding to memory usage according to the target refresh parameter, wherein the refresh parameter corresponding to memory usage is smaller than the target refresh parameter.

优选地,Preferably,

所述刷新单元,包括:The refresh unit includes:

获取模块,用于获取启动盘;Get the module, used to get the boot disk;

拷贝模块,用于将刷新参数的设置程序和内存测试程序拷贝到所述启动盘中;A copy module, used to copy the setting program and the memory test program of the refresh parameters into the boot disk;

设置模块,用于在所述启动盘中根据所述刷新参数的设置程序设置所述初始刷新参数;A setting module, configured to set the initial refresh parameters in the startup disk according to the refresh parameter setting program;

处理模块,用于根据内存测试程序读取设置的所述初始刷新参数,并根据读取的所述初始刷新参数对内存进行刷新。The processing module is configured to read the set initial refresh parameters according to the memory test program, and refresh the memory according to the read initial refresh parameters.

优选地,Preferably,

所述启动盘包括:DOS启动盘。The startup disk includes: a DOS startup disk.

优选地,Preferably,

所述刷新粒度包括:1ms-32ms;The refresh granularity includes: 1ms-32ms;

和/或,and / or,

所述内存包括:DRAM。The memory includes: DRAM.

本发明实施例提供了一种内存目标刷新参数的确定方法及装置,通过确定初始刷新参数,并利用初始刷新参数对内存进行刷新,判断刷新后的内存是否正常工作,若正常工作,则表明当前使用的刷新参数可以满足内存的正常刷新,通过刷新粒度对该当前使用的刷新参数进行更新,以利用更新后的刷新参数对内存进行刷新,直到确定出当前使用的刷新参数使得刷新后的内存无法正常工作时,将当前使用的刷新参数确定为目标刷新参数。本方案通过该刷新粒度可以准确的确定出内存的刷新参数。Embodiments of the present invention provide a method and device for determining memory target refresh parameters. By determining the initial refresh parameters and using the initial refresh parameters to refresh the memory, it is judged whether the refreshed memory works normally. If it works normally, it indicates that the current The refresh parameters used can satisfy the normal refresh of the memory, and the currently used refresh parameters are updated through the refresh granularity to use the updated refresh parameters to refresh the memory until it is determined that the currently used refresh parameters make the refreshed memory unable to During normal operation, the currently used refresh parameters are determined as the target refresh parameters. In this solution, the refresh parameters of the memory can be accurately determined through the refresh granularity.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without creative work.

图1是本发明一个实施例提供的一种内存目标刷新参数的确定方法流程图;FIG. 1 is a flow chart of a method for determining memory target refresh parameters provided by an embodiment of the present invention;

图2是本发明一个实施例提供的另一种内存目标刷新参数的确定方法流程图;FIG. 2 is a flow chart of another method for determining memory target refresh parameters provided by an embodiment of the present invention;

图3是本发明一个实施例提供的装置所在设备的硬件架构图;FIG. 3 is a hardware architecture diagram of the device where the device provided by an embodiment of the present invention is located;

图4是本发明一个实施例提供的一种内存目标刷新参数的确定装置结构图;FIG. 4 is a structural diagram of a device for determining refresh parameters of a memory target provided by an embodiment of the present invention;

图5是本发明一个实施例提供的另一种内存目标刷新参数的确定装置结构图;FIG. 5 is a structural diagram of another device for determining refresh parameters of memory objects provided by an embodiment of the present invention;

图6是本发明一个实施例提供的另一种内存目标刷新参数的确定装置结构图;FIG. 6 is a structural diagram of another device for determining refresh parameters of memory objects provided by an embodiment of the present invention;

具体实施方式detailed description

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例,基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection of the present invention. scope.

如图1所示,本发明实施例提供了一种内存目标刷新参数的确定方法,其特征在于,预先设置刷新粒度,该方法可以包括以下步骤:As shown in Figure 1, the embodiment of the present invention provides a method for determining memory target refresh parameters, which is characterized in that the refresh granularity is preset, and the method may include the following steps:

步骤101:确定初始刷新参数;Step 101: Determine initial refresh parameters;

步骤102:利用初始刷新参数对内存进行刷新;Step 102: Refresh the memory by using the initial refresh parameters;

步骤103:判断刷新后的内存是否正常工作,若正常工作,则执行步骤104;否则,执行步骤105;Step 103: judging whether the refreshed memory works normally, if it works normally, execute step 104; otherwise, execute step 105;

步骤104:按照刷新粒度对所述初始刷新参数进行更新,并利用更新后的刷新参数对内存进行刷新,并执行步骤103。Step 104: Update the initial refresh parameters according to the refresh granularity, and use the updated refresh parameters to refresh the memory, and execute step 103.

步骤105:将当前使用的刷新参数确定为目标刷新参数;Step 105: Determine the currently used refresh parameter as the target refresh parameter;

本发明实施例提供了一种内存目标刷新参数的确定方法及装置,通过确定初始刷新参数,并利用初始刷新参数对内存进行刷新,判断刷新后的内存是否正常工作,若正常工作,则表明当前使用的刷新参数可以满足内存的正常刷新,通过刷新粒度对该当前使用的刷新参数进行更新,以利用更新后的刷新参数对内存进行刷新,直到确定出当前使用的刷新参数使得刷新后的内存无法正常工作时,将当前使用的刷新参数确定为目标刷新参数。本方案通过该刷新粒度可以准确的确定出内存的刷新参数。Embodiments of the present invention provide a method and device for determining memory target refresh parameters. By determining the initial refresh parameters and using the initial refresh parameters to refresh the memory, it is judged whether the refreshed memory works normally. If it works normally, it indicates that the current The refresh parameters used can satisfy the normal refresh of the memory, and the currently used refresh parameters are updated through the refresh granularity to use the updated refresh parameters to refresh the memory until it is determined that the currently used refresh parameters make the refreshed memory unable to During normal operation, the currently used refresh parameters are determined as the target refresh parameters. In this solution, the refresh parameters of the memory can be accurately determined through the refresh granularity.

在一种可能的实现方式中,为了更快地确定目标刷新参数,所述利用初始刷新参数对内存进行刷新,包括:In a possible implementation manner, in order to determine the target refresh parameter faster, the refreshing the memory by using the initial refresh parameter includes:

获取启动盘;Get the boot disk;

将刷新参数的设置程序和内存测试程序拷贝到所述启动盘中;Copy the setting program and the memory test program of refreshing parameters into the boot disk;

在所述启动盘中根据所述刷新参数的设置程序设置所述初始刷新参数;Setting the initial refresh parameters in the startup disk according to the refresh parameter setting program;

根据内存测试程序读取设置的所述初始刷新参数,并根据读取的所述初始刷新参数对内存进行刷新。Reading the set initial refresh parameters according to the memory test program, and refreshing the memory according to the read initial refresh parameters.

例如,制作一个DOS(Disk Operating System,磁盘操作系统)启动盘,将刷新时间设置程序refresh.exe和内存测试程序拷贝到DOS盘中,开机进入DOS盘,运行refresh.exe设置初始刷新时间32ms,运行内存测试程序对内存进行刷新。For example, make a DOS (Disk Operating System, disk operating system) boot disk, copy the refresh time setting program refresh.exe and the memory test program to the DOS disk, boot into the DOS disk, run refresh.exe to set the initial refresh time to 32ms, Run the memory test program to refresh the memory.

为使本发明的目的、技术方案和优点更加清楚,下面结合附图及具体实施例对本发明作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

如图2所示,本发明实施例提供了一种内存目标刷新参数的确定方法,该方法可以包括以下步骤:As shown in FIG. 2, an embodiment of the present invention provides a method for determining memory target refresh parameters, and the method may include the following steps:

步骤201:获取启动盘。Step 201: Obtain a startup disk.

在本实施例中,选择一个启动盘,其中,该启动盘可以为U盘、光盘、移动硬盘等。本发明实施例以DOS启动盘为例进行说明。In this embodiment, a boot disk is selected, where the boot disk may be a USB flash drive, a CD, a mobile hard disk, or the like. The embodiment of the present invention is described by taking a DOS boot disk as an example.

步骤202:将刷新参数设置程序和内存测试程序拷贝到DOS启动盘中。Step 202: Copy the refresh parameter setting program and the memory test program to the DOS boot disk.

其中,该刷新参数设置程序可以预先设计好,并为该刷新参数设置程序进行命名,例如,为refresh.exe。该内存测试程序也可以预先设计好。在获取到DOS启动盘之后,将refresh.exe和内存测试程序拷贝到DOS启动盘中。Wherein, the refresh parameter setting program may be pre-designed, and the refresh parameter setting program may be named, for example, refresh.exe. The memory test program can also be pre-designed. After obtaining the DOS boot disk, copy refresh.exe and the memory test program to the DOS boot disk.

在本发明一个实施例中,也可以直接在DOS启动盘中进行刷新参数设置程序和内存测试程序的设计。In one embodiment of the present invention, the refresh parameter setting program and the memory test program can also be designed directly in the DOS boot disk.

步骤203:确定初始刷新参数。Step 203: Determine initial refresh parameters.

在本实施例中,所测试内存为DRAM(Dynamic Random Access Memory,动态随机存取存储器)。刷新时间的间隔标准为64ms,即正常情况下要保证存储电容能保持数据64ms。当延长刷新时间时,意味着每次刷新数据的时间间隔变长,内存中一些保持数据能力较差的数据位经过更长时间的漏电可能由高电平变为低电平,导致数据发生错误。为了确定内存正常工作的刷新时间,本实施例中,选择初始刷新时间为32ms。In this embodiment, the tested memory is DRAM (Dynamic Random Access Memory, dynamic random access memory). The interval standard of the refresh time is 64ms, that is, under normal circumstances, it is necessary to ensure that the storage capacitor can hold the data for 64ms. When the refresh time is extended, it means that the time interval for each refresh of data becomes longer, and some data bits in the memory with poor data retention may leak from high level to low level after a longer period of time, resulting in data errors . In order to determine the refresh time for the normal operation of the memory, in this embodiment, the initial refresh time is selected as 32ms.

步骤204:开机进入启动盘,运行程序。Step 204: boot into the startup disk, and run the program.

在本实施例中,开机进入DOS盘,运行参数设置程序refresh.exe和内存测试程序。In this embodiment, boot into the DOS disk, run the parameter setting program refresh.exe and the memory testing program.

步骤205:利用初始刷新参数对内存进行刷新。Step 205: Refresh the memory by using the initial refresh parameters.

利用初始刷新时间,即32ms,对内存进行测试。The memory is tested using the initial refresh time, which is 32ms.

步骤206:判断刷新后的内存是否正常工作,若正常工作,则执行步骤207;否则,执行步骤208。Step 206: Judging whether the refreshed memory works normally, if it works normally, go to step 207; otherwise, go to step 208.

在本实施例中,刷新后的内存如果能正常工作,则更新刷新参数为64ms,继续对内存进行刷新,否则将当前使用的刷新参数32ms确定为目标刷新参数。In this embodiment, if the refreshed memory can work normally, update the refresh parameter to 64ms, and continue to refresh the memory; otherwise, determine the currently used refresh parameter of 32ms as the target refresh parameter.

在本实施例中,可以通过判断是否发生数据丢失来确定刷新后的内存能否正常工作,若发生了数据丢失,则表征内存无法正常工作,若未发生数据丢失,则表征内存能够正常工作。In this embodiment, whether the refreshed memory can work normally can be determined by judging whether data loss occurs. If data loss occurs, it indicates that the memory cannot work normally. If no data loss occurs, it indicates that the memory can work normally.

步骤207:按照刷新粒度对当前使用的刷新参数进行更新,并利用更新后的刷新参数对内存进行刷新,并执行步骤206。Step 207: Update the currently used refresh parameters according to the refresh granularity, and use the updated refresh parameters to refresh the memory, and execute step 206.

在本发明一个实施例中,该刷新粒度可以为1ms-32ms。In an embodiment of the present invention, the refresh granularity may be 1ms-32ms.

在本实施例中,刷新粒度设置的越小,确定出的目标刷新参数越准确,刷新粒度设置的越大,在确定出目标刷新参数时经过的刷新次数越少,所以,为了平衡目标刷新参数准确度和刷新效率,可以选择最佳的刷新粒度对应的值。例如,In this embodiment, the smaller the refresh granularity is set, the more accurate the determined target refresh parameters are, and the larger the refresh granularity is set, the fewer refresh times will pass when the target refresh parameters are determined. Therefore, in order to balance the target refresh parameters For accuracy and refresh efficiency, you can choose the value corresponding to the best refresh granularity. For example,

该刷新粒度为32ms。The refresh granularity is 32ms.

由于初始刷新时间为32ms,那么利用刷新粒度对该初始刷新时间进行更新后,得到更新后的刷新参数为64ms,即利用64ms执行步骤206。更新刷新粒度后,继续对所测试内存进行刷新,接着执行步骤206。Since the initial refresh time is 32ms, after updating the initial refresh time using the refresh granularity, the updated refresh parameter is 64ms, that is, step 206 is performed using 64ms. After updating the refresh granularity, continue to refresh the tested memory, and then execute step 206 .

步骤208:将当前使用的刷新参数确定为目标刷新参数。Step 208: Determine the refresh parameter currently used as the target refresh parameter.

当刷新后的内存无法正常工作时,此时使用的刷新时间确定为目标刷新时间。When the refreshed memory cannot work normally, the refresh time used at this time is determined as the target refresh time.

步骤209:根据所述目标刷新参数确定内存使用时对应的刷新参数,其中,所述内存使用时对应的刷新参数小于所述目标刷新参数。Step 209: Determine a refresh parameter corresponding to memory usage according to the target refresh parameter, wherein the refresh parameter corresponding to memory usage is smaller than the target refresh parameter.

比如,当确定的目标刷新参数为64ms时,为了保证目标内存能够正常工作,所述内存使用时对应的刷新参数小于所述目标刷新参数,因此,可以将内存使用时的刷新参数设置为63ms。For example, when the determined target refresh parameter is 64ms, in order to ensure that the target memory can work normally, the corresponding refresh parameter when the memory is used is smaller than the target refresh parameter, therefore, the refresh parameter when the memory is used can be set to 63ms.

如图3、图4所示,本发明实施例提供了一种内存目标刷新参数的确定装置。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。从硬件层面而言,如图3所示,为本发明实施例提供的内存目标刷新参数的确定装置所在设备的一种硬件结构图,除了图3所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的设备通常还可以包括其他硬件,如负责处理报文的转发芯片等等。以软件实现为例,如图4所示,作为一个逻辑意义上的装置,是通过其所在设备的CPU将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。本实施例提供的内存目标刷新参数的确定装置,包括:As shown in FIG. 3 and FIG. 4 , an embodiment of the present invention provides a device for determining refresh parameters of a memory target. The device embodiments can be implemented by software, or by hardware or a combination of software and hardware. From the hardware level, as shown in Figure 3, it is a hardware structure diagram of the device where the device for determining the memory target refresh parameter provided by the embodiment of the present invention is located, except for the processor, memory, network interface, and In addition to the non-volatile memory, the device where the device in the embodiment is located may generally include other hardware, such as a forwarding chip responsible for processing packets, and the like. Taking software implementation as an example, as shown in Figure 4, as a device in a logical sense, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory for operation by the CPU of the device where it is located. The device for determining memory target refresh parameters provided in this embodiment includes:

设置单元401,用于设置刷新粒度,将所述刷新粒度输出给处理单元;A setting unit 401, configured to set the refresh granularity, and output the refresh granularity to the processing unit;

第一确定单元402,用于确定初始刷新参数,将所述初始刷新参数输出给刷新单元;The first determining unit 402 is configured to determine an initial refresh parameter, and output the initial refresh parameter to the refresh unit;

刷新单元403,用于利用初始刷新参数对内存进行刷新;Refresh unit 403, configured to refresh the memory using initial refresh parameters;

判断单元404,用于判断刷新后的内存是否正常工作,若正常工作,则触发处理单元执行相应操作;否则,触发第二确定单元执行相应操作;A judging unit 404, configured to judge whether the refreshed memory works normally, and if it works normally, trigger the processing unit to perform corresponding operations; otherwise, trigger the second determination unit to perform corresponding operations;

第二确定单元405,用于将当前使用的刷新参数确定为目标刷新参数;The second determining unit 405 is configured to determine the currently used refresh parameter as the target refresh parameter;

处理单元406,用于按照刷新粒度对所述初始刷新参数进行更新,并利用更新后的刷新参数对内存进行刷新,并触发所述判断单元执行相应操作。The processing unit 406 is configured to update the initial refresh parameters according to the refresh granularity, use the updated refresh parameters to refresh the memory, and trigger the judging unit to perform corresponding operations.

在本发明一个实施例中,请参考图5,该内存目标刷新参数的确定装置可以进一步包括:In an embodiment of the present invention, please refer to FIG. 5, the device for determining the refresh parameters of the memory target may further include:

第三确定单元501,用于根据所述目标刷新参数确定内存使用时对应的刷新参数,其中,所述内存使用时对应的刷新参数小于所述目标刷新参数。The third determining unit 501 is configured to determine a refresh parameter corresponding to memory usage according to the target refresh parameter, wherein the refresh parameter corresponding to memory usage is smaller than the target refresh parameter.

在本发明一个实施例中,请参考图6,所述刷新单元403,可以包括:In an embodiment of the present invention, please refer to FIG. 6, the refresh unit 403 may include:

获取模块601,用于获取启动盘;An acquisition module 601, configured to acquire a boot disk;

拷贝模块602,用于将刷新参数的设置程序和内存测试程序拷贝到所述启动盘中;The copy module 602 is used to copy the setting program and the memory test program of the refresh parameters into the boot disk;

设置模块603,用于在所述启动盘中根据所述刷新参数的设置程序设置所述初始刷新参数;A setting module 603, configured to set the initial refresh parameters in the startup disk according to the refresh parameter setting program;

处理模块604,用于根据内存测试程序读取设置的所述初始刷新参数,并根据读取的所述初始刷新参数对内存进行刷新。The processing module 604 is configured to read the set initial refresh parameters according to the memory test program, and refresh the memory according to the read initial refresh parameters.

在本发明一个实施例中,该刷新粒度可以为1ms-32ms。In an embodiment of the present invention, the refresh granularity may be 1ms-32ms.

在本实施例中,刷新粒度设置的越小,确定出的目标刷新参数越准确,刷新粒度设置的越大,在确定出目标刷新参数时经过的刷新次数越少,所以,为了平衡目标刷新参数准确度和刷新效率,可以选择最佳的刷新粒度对应的值。例如,In this embodiment, the smaller the refresh granularity is set, the more accurate the determined target refresh parameters are, and the larger the refresh granularity is set, the fewer refresh times will pass when the target refresh parameters are determined. Therefore, in order to balance the target refresh parameters For accuracy and refresh efficiency, you can choose the value corresponding to the best refresh granularity. For example,

该刷新粒度为32ms。The refresh granularity is 32ms.

在本实施例中,所测试内存为DRAM。In this embodiment, the tested memory is DRAM.

在本实施例中,选择一个启动盘,其中,该启动盘可以为U盘、光盘、移动硬盘,本发明实施选择DOS启动盘。In this embodiment, a bootable disk is selected, wherein the bootable disk can be a USB flash drive, a CD, or a mobile hard disk, and a DOS bootable disk is selected for implementation of the present invention.

综上,本发明各个实施例具有如下效果:In summary, each embodiment of the present invention has the following effects:

1、本发明实施例提供了一种内存目标刷新参数的确定方法及装置,通过确定初始刷新参数,并利用初始刷新参数对内存进行刷新,判断刷新后的内存是否正常工作,若正常工作,则表明当前使用的刷新参数可以满足内存的正常刷新,通过刷新粒度对该当前使用的刷新参数进行更新,以利用更新后的刷新参数对内存进行刷新,直到确定出当前使用的刷新参数使得刷新后的内存无法正常工作时,将当前使用的刷新参数确定为目标刷新参数。本方案通过该刷新粒度可以准确的确定出内存的刷新参数。1. The embodiment of the present invention provides a method and device for determining memory target refresh parameters. By determining the initial refresh parameters and using the initial refresh parameters to refresh the memory, it is judged whether the refreshed memory works normally. If it works normally, then Indicates that the currently used refresh parameters can meet the normal refresh of the memory, and the currently used refresh parameters are updated through the refresh granularity to refresh the memory with the updated refresh parameters until the currently used refresh parameters are determined so that the refreshed When the memory fails to work normally, the currently used refresh parameters are determined as the target refresh parameters. In this solution, the refresh parameters of the memory can be accurately determined through the refresh granularity.

2、在本发明实施例中,通过刷新参数对内存进行测试,不但可以更快地确定目标内存的刷新参数,还可以筛选出故障内存和一些有风险的内存,有效的保障筛选后的内存在客户端稳定正常的工作,可以提高内存的稳定性和可靠性。2. In the embodiment of the present invention, the memory is tested by refreshing parameters, not only can the refresh parameters of the target memory be determined more quickly, but also faulty memory and some risky memory can be screened out, effectively ensuring the existence of the screened memory The client works stably and normally, which can improve the stability and reliability of the memory.

上述装置内的各单元之间的信息交互、执行过程等内容,由于与本发明方法实施例基于同一构思,具体内容可参见本发明方法实施例中的叙述,此处不再赘述。The information exchange and execution process among the units in the above-mentioned device are based on the same concept as the method embodiment of the present invention, and the specific content can refer to the description in the method embodiment of the present invention, and will not be repeated here.

需要说明的是,在本文中,诸如第一和第二之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个······”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同因素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is a relationship between these entities or operations. There is no such actual relationship or sequence. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of or also include elements inherent in such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional same elements in the process, method, article or apparatus comprising said element.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储在计算机可读取的存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质中。Those of ordinary skill in the art can understand that all or part of the steps to realize the above method embodiments can be completed by program instructions related hardware, and the aforementioned programs can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后需要说明的是:以上所述仅为本发明的较佳实施例,仅用于说明本发明的技术方案,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所做的任何修改、等同替换、改进等,均包含在本发明的保护范围内。Finally, it should be noted that the above descriptions are only preferred embodiments of the present invention, and are only used to illustrate the technical solution of the present invention, and are not used to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present invention are included in the protection scope of the present invention.

Claims (10)

1. an internal memory target refresh determination method for parameter, it is characterised in that pre-setting refresh granularity, the method includes:
S1: determine initial refresh parameter;
S2: utilize initial refresh parameter internally to deposit into row refreshing;
S3: judging that the internal memory after refreshing the most normally works, if normally working, then performing S4;Otherwise, by currently used refreshing Parameter determination is target refresh parameter;
S4: described initial refresh parameter is updated according to refresh granularity, and utilize the refresh parameter after renewal internally to deposit into Row refreshes, and performs S3.
Method the most according to claim 1, it is characterised in that farther include: according to described target refresh parameter determination The refresh parameter that internal memory is corresponding when using, wherein, the refresh parameter that described internal memory is corresponding when using is joined less than described target refresh Number.
Method the most according to claim 1, it is characterised in that the initial refresh parameter of described utilization internally deposits into row refreshing, Including:
Obtain boot disk;
By in the program that arranges of refresh parameter and MEMTEST procedural copy to described boot disk;
In described boot disk, the program that arranges according to described refresh parameter arranges described initial refresh parameter;
The described initial refresh parameter arranged is read according to MEMTEST program, and according to the described initial refresh parameter pair read Internal memory refreshes.
Method the most according to claim 3, it is characterised in that
Described boot disk includes: disc operating system DOS boot disk.
5. according to described method arbitrary in claim 1-4, it is characterised in that
Described refresh granularity includes: 1ms-32ms;
And/or,
Described internal memory includes: dynamic random access memory DRAM.
6. the determination device of an internal memory target refresh parameter, it is characterised in that including:
Unit is set, is used for arranging refresh granularity, described refresh granularity is exported to processing unit;
First determines unit, is used for determining initial refresh parameter, exports described initial refresh parameter to refresh unit;
Described refresh unit, is used for utilizing initial refresh parameter internally to deposit into row refreshing;
Judging unit, for judging that the internal memory after refreshing the most normally works, if normally working, then triggers processing unit and performs phase Should operate;Otherwise, trigger second and determine that unit performs corresponding operating;
Described second determines unit, for currently used refresh parameter is defined as target refresh parameter;
Described processing unit, for being updated described initial refresh parameter according to refresh granularity, and utilizes the brush after renewal New parameter internally deposits into row refreshing, and triggers described judging unit execution corresponding operating.
The determination device of internal memory target refresh parameter the most according to claim 6, it is characterised in that farther include:
3rd determines unit, refresh parameter corresponding in time using according to described target refresh parameter determination internal memory, wherein, and institute State refresh parameter corresponding when internal memory uses less than described target refresh parameter.
The determination device of internal memory target refresh parameter the most according to claim 6, it is characterised in that described refresh unit, Including:
Acquisition module, is used for obtaining boot disk;
Copy module, for by the program that arranges of refresh parameter and MEMTEST procedural copy to described boot disk;
Module is set, arranges for the program that arranges according to described refresh parameter in described boot disk and described initial refresh ginseng Number;
Processing module, for reading the described initial refresh parameter arranged, and according to described in reading according to MEMTEST program Initial refresh parameter internally deposits into row refreshing.
The determination device of internal memory target refresh parameter the most according to claim 8, it is characterised in that
Described boot disk includes: disc operating system DOS boot disk.
10. according to the determination device of described internal memory target refresh parameter arbitrary in claim 6-9, it is characterised in that
Described refresh granularity includes: 1ms-32ms;
And/or,
Described internal memory includes: dynamic random access memory DRAM.
CN201610580623.XA 2016-07-21 2016-07-21 A kind of internal memory target refresh determination method for parameter and device Pending CN106297890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610580623.XA CN106297890A (en) 2016-07-21 2016-07-21 A kind of internal memory target refresh determination method for parameter and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610580623.XA CN106297890A (en) 2016-07-21 2016-07-21 A kind of internal memory target refresh determination method for parameter and device

Publications (1)

Publication Number Publication Date
CN106297890A true CN106297890A (en) 2017-01-04

Family

ID=57652074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610580623.XA Pending CN106297890A (en) 2016-07-21 2016-07-21 A kind of internal memory target refresh determination method for parameter and device

Country Status (1)

Country Link
CN (1) CN106297890A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080025105A1 (en) * 2006-07-27 2008-01-31 Hynix Semiconductor Inc. Nonvolatile ferroelectric memory device and refresh method thereof
CN102272849A (en) * 2008-12-30 2011-12-07 美光科技公司 Variable memory refresh devices and methods
CN102456394A (en) * 2010-10-20 2012-05-16 三星电子株式会社 Memory circuits, systems, and modules for performing DRAM refresh operations and methods of operating the same
CN102800353A (en) * 2011-05-25 2012-11-28 三星电子株式会社 Method of refreshing a memory device, refresh address generator and memory device
CN105280215A (en) * 2014-06-09 2016-01-27 华为技术有限公司 Refreshing method for dynamic random access memory (DRAM), equipment and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080025105A1 (en) * 2006-07-27 2008-01-31 Hynix Semiconductor Inc. Nonvolatile ferroelectric memory device and refresh method thereof
CN102272849A (en) * 2008-12-30 2011-12-07 美光科技公司 Variable memory refresh devices and methods
CN102456394A (en) * 2010-10-20 2012-05-16 三星电子株式会社 Memory circuits, systems, and modules for performing DRAM refresh operations and methods of operating the same
CN102800353A (en) * 2011-05-25 2012-11-28 三星电子株式会社 Method of refreshing a memory device, refresh address generator and memory device
CN105280215A (en) * 2014-06-09 2016-01-27 华为技术有限公司 Refreshing method for dynamic random access memory (DRAM), equipment and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MTZHOU: "DDR内存时序指南", 《HTTP://BLOG.CSDN.NET/ZHOYIXING/ARTICLE/DETAILS/8854961》 *

Similar Documents

Publication Publication Date Title
CN110992992B (en) A hard disk testing method, device and storage medium
US10204698B2 (en) Method to dynamically inject errors in a repairable memory on silicon and a method to validate built-in-self-repair logic
US8862953B2 (en) Memory testing with selective use of an error correction code decoder
WO2019001334A1 (en) Stack overflow processing method and device
CN107076797B (en) Testing semiconductor memory power consumption based on executed access commands
CN112068852B (en) Method, system, equipment and medium for installing open-source software based on domestic server
CN107678972B (en) Test case evaluation method and related device
US9870314B1 (en) Update testing by build introspection
CN110569152A (en) solid state disk performance test method and device
US11808806B2 (en) Allocation of test resources to perform a test of memory components
JP2018536230A (en) Cache access
CN111625407B (en) SSD performance test method and related components
CN114297630A (en) Malicious data detection method, device, storage medium and processor
US20170249996A1 (en) Opportunistic memory tuning for dynamic workloads
CN106297890A (en) A kind of internal memory target refresh determination method for parameter and device
CN111381881A (en) AHB (advanced high-performance bus) interface-based low-power-consumption instruction caching method and device
CN110471828B (en) An operating system testing method, device and equipment thereof
CN117827554A (en) Test method, test device, computer equipment and storage medium
CN106250261A (en) A kind of determination method and device of memory parameters
CN115713962A (en) Memory test method, system and computer readable storage medium
CN114817046A (en) Pressure testing method, device and system for block chain network
CN114691496A (en) Unit testing method, apparatus, computing equipment and medium
CN114090357A (en) A hard disk performance testing method, device, electronic device and storage medium
CN107766216A (en) It is a kind of to be used to obtain the method and apparatus using execution information
CN106815136B (en) Unit testing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170104

RJ01 Rejection of invention patent application after publication