CN110716833A - Method for measuring NAND FLASH write volume caused by single entry of SSD into PS4 state - Google Patents

Method for measuring NAND FLASH write volume caused by single entry of SSD into PS4 state Download PDF

Info

Publication number
CN110716833A
CN110716833A CN201910933626.0A CN201910933626A CN110716833A CN 110716833 A CN110716833 A CN 110716833A CN 201910933626 A CN201910933626 A CN 201910933626A CN 110716833 A CN110716833 A CN 110716833A
Authority
CN
China
Prior art keywords
notebook computer
ssd
state
nand flash
write
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.)
Granted
Application number
CN201910933626.0A
Other languages
Chinese (zh)
Other versions
CN110716833B (en
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.)
Dongguan Memory Storage Technology Co Ltd
Original Assignee
Dongguan Memory Storage Technology 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 Dongguan Memory Storage Technology Co Ltd filed Critical Dongguan Memory Storage Technology Co Ltd
Priority to CN201910933626.0A priority Critical patent/CN110716833B/en
Publication of CN110716833A publication Critical patent/CN110716833A/en
Application granted granted Critical
Publication of CN110716833B publication Critical patent/CN110716833B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method for measuring NAND FLASH write quantity caused when an SSD enters a PS4 state once, which comprises the following steps: step S1, connecting the SSD to be tested with the notebook computer; step S2, the battery capacity of the notebook computer is fully charged by adopting AC power supply; step S3, reading the number of times the PS4 state of the SSD has been entered at this time and the write amount of NAND FLASH with a data reading tool; step S4, disconnecting the AC power supply of the notebook computer; step S5, supplying power to the notebook computer by adopting DC, and enabling the notebook computer to be in an idle state until the electric quantity is exhausted; step S6, reconnecting the AC power supply to the notebook computer to start up; step S7, reading the number of times the SSD has entered the PS4 state and the write amount of NAND FLASH at this time again with the data reading tool; step S8, dividing the difference between the NAND FLASH writing amounts obtained in steps S3 and S7 by the difference between the number of times of entering the PS4 state twice, to obtain the NAND FLASH writing amount introduced when the SSD enters the PS4 state once.

Description

Method for measuring NAND FLASH write volume caused by single entry of SSD into PS4 state
Technical Field
The invention relates to the technical field of solid state disk storage, in particular to a method for measuring NAND FLASH write-in quantity caused when an SSD enters a PS4 state once.
Background
At present, PCIe NVMe Solid State Disk (SSD) on a notebook computer almost supports the characteristic that the SSD enters PS4 low power consumption, and when the SSD enters a PS4 State, the SSD can enable DDR and NAND FLASH to be in a power-down State. The PS4 low-power-consumption scheme has the advantages that the power consumption of the SSD in idle can be greatly reduced, so that the battery endurance of a notebook computer is enhanced; however, the disadvantage is that since DDR on SSD stores its data in nand flash before power down, NAND FLASH will bring extra write-in amount undoubtedly, resulting in loss of NAND FLASH times of programming/Erase (Program/Erase, abbreviated as P/E), thereby reducing the lifetime of SSD, if there is a serious defect in SSD firmware design, it is possible that very high extra P/E loss is caused by power down of DDR each time SSD enters PS4, thereby greatly shortening the lifetime of SSD.
Therefore, when SSD manufacturers internally test SSD products adopting the above-mentioned PS4 scheme, they usually pay attention to the extra write amount of SSD when entering PS4 once, and the measurement method is usually to use DriveMaster software of Ulink company to write test script to simulate the write amount of SSD when entering PS4 once in practical application scenarios. However, this test method has the following disadvantages:
1) the need to purchase the DriveMaster software of Ulink corporation, which undoubtedly greatly increases the development cost of SSDs;
2) for a test engineer without development experience of the DriveMaster script, a large amount of time is needed to learn the writing of the script, which is not beneficial to improving the test efficiency and timely detecting the potential design defect of the SSD;
3) when the DriveMaster software is used for testing the PS4 characteristics adopting the scheme, the testing environment is often required to be independent of the actual application scene of the SSD, so that the design defects of the SSD in the actual application environment can be difficult to expose in advance by using the DriveMaster software.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
For the above reasons, the present invention provides a method for measuring NANDFLASH write volume caused by a single entry of the SSD into the PS4 state.
Disclosure of Invention
In order to meet the above requirements, the present invention provides a method for measuring NAND FLASH write amount caused by a single entry of the SSD into the PS4 state.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for measuring NAND FLASH write volume caused by a single entry of an SSD into a PS4 state, comprising the steps of:
step S1, connecting the SSD to be tested with the notebook computer;
step S2, the battery capacity of the notebook computer is fully charged by adopting AC power supply;
step S3, reading the number of times of the PS4 state and the writing amount of NANDFLASH which have been entered by the SSD at the moment by using a data reading tool;
step S4, disconnecting the AC power supply of the notebook computer;
step S5, supplying power to the notebook computer by adopting DC without any operation on the notebook computer, and keeping the notebook computer in an idle state until the battery power of the notebook computer is exhausted;
step S6, reconnecting the notebook computer with the AC power supply to start the notebook computer;
step S7, reading the number of times the SSD has entered the PS4 state and the write amount of NAND FLASH at this time again with the data reading tool;
step S8, dividing the difference between the NAND FLASH writing amounts obtained in steps S3 and S7 by the difference between the number of times of entering the PS4 state twice, to obtain the NAND FLASH writing amount introduced when the SSD enters the PS4 state once.
The technical scheme is that the notebook computer is provided with a Windows10 operating system.
The technical scheme is that the notebook computer is a notebook computer supporting entering a PCIe link power state management L1.2 mode.
The further technical scheme is that the data reading tool is a program for reading SSD state information.
The further technical scheme is that the notebook computer runs the data reading tool to acquire the number of times that the SSD has entered the PS4 state and the write-in amount of NAND FLASH.
Compared with the prior art, the invention has the beneficial effects that: the method for measuring the NAND FLASH write-in amount caused when the SSD enters the PS4 state once is simple and efficient, additional test software does not need to be purchased, and complicated test scripts do not need to be compiled, so that the development cost and the test difficulty of the SSD product are greatly reduced; and because the SSD to be tested is in a truly applied notebook computer environment, the tested result can more truly evaluate the NANDFLASH writing amount introduced by the SSD in the single PS 4.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a flow chart illustrating a method of measuring NAND FLASH write size caused by a single entry of an SSD into the PS4 state according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of the method for measuring NAND FLASH write-in amount caused by a single SSD entering PS4 state according to the present invention for implementing measurement on an associative thinpad X1Carbon 6th notebook computer.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
Referring to the flowchart of fig. 1, a flowchart of an embodiment of a method for measuring NAND FLASH write amount caused by a single time of entering the PS4 state in the SSD is shown, which includes the following steps:
step S1, connecting the SSD to be tested with the notebook computer;
step S2, the battery capacity of the notebook computer is fully charged by adopting AC power supply;
step S3, reading the number of times of the PS4 state and the writing amount of NANDFLASH which have been entered by the SSD at the moment by using a data reading tool;
step S4, disconnecting the AC power supply of the notebook computer;
step S5, supplying power to the notebook computer by adopting DC without any operation on the notebook computer, and keeping the notebook computer in an idle state until the battery power of the notebook computer is exhausted;
step S6, reconnecting the notebook computer with the AC power supply to start the notebook computer;
step S7, reading the number of times the SSD has entered the PS4 state and the write amount of NAND FLASH at this time again with the data reading tool;
step S8, dividing the difference between the NAND FLASH writing amounts obtained in steps S3 and S7 by the difference between the number of times of entering the PS4 state twice, to obtain the NAND FLASH writing amount introduced when the SSD enters the PS4 state once.
NAND FLASH is a flash memory for solid state disk, and has the following non-volatile characteristics: after power is removed, the information in the memory is still present for data storage.
In a preferred embodiment, the notebook computer is installed with a Windows10 operating system.
In a preferred embodiment, the notebook computer is a notebook computer supporting the mode of entering PCIe link power state management L1.2. The method is only suitable for supporting the notebook computer which can enter the PCIe link power state management L1.2 mode (otherwise, the SSD cannot enter the PS4 state, and most notebook computers can enter the L1.2 mode at present), and the method is not suitable for other conditions.
In a preferred embodiment, the data reading tool is a program for reading SSD status information.
In a preferred embodiment, the notebook computer runs the data reading tool to obtain the number of times that the SSD has entered the PS4 state and the write amount of NAND FLASH.
The method for measuring NAND FLASH write-in quantity caused by the SSD entering the PS4 state once is used for measuring the associative Thinkpad X1Carbon 6th notebook computer;
hardware requirements:
the computer to be tested: associative thinpad X1Carbon 6th notebook computer
Remarking: for the computer to be tested, the method of the patent needs to select a notebook computer capable of entering a PCIe link power state management L1.2 mode, and the invention preferably selects a Thinkpad X1Carbon 6th notebook computer as the computer to be tested.
Software requirements:
operating the system: windows10 operating system
Testing software: tool (i.e. data acquisition Tool in the above method) from SSD manufacturer
Remarking: the "Tool Box Tool self-developed by SSD manufacturer" herein refers to a Tool (for example, the Tool can read SMART information, PS4 in/out times, number of bad blocks, etc. of SSD) which is self-developed by SSD manufacturer and can read various kinds of state information of SSD, and since the implementation manner or naming manner of the Tool may be different for each SSD manufacturer, the "Tool Box Tool self-developed by SSD manufacturer" described in this patent is only a general name of the Tool, and the actual Tool is not necessarily named in this manner.
The test flow is shown in fig. 2, and the flow steps are as follows:
1) directly linking the SSD to be tested to a notebook computer, and installing a Windows10 operating system;
2) fully charging the battery of the notebook computer by adopting AC power supply;
3) using Tool of Tool Box from SSD manufacturer, reading PS4 times and NAND FLASH write amount that SSD has entered,
4) pulling out an AC power supply of the notebook computer;
5) the notebook computer is powered by DC, and is not operated any more, and is kept in an idle state until the battery power of the notebook computer is exhausted;
6) connecting the AC power supply of the notebook computer again, and starting up the notebook computer;
7) reading the number of times that the SSD has entered the PS4 and the write volume of NAND FLASH at this time by using the Tool of Tool again;
8) finally, the difference between the NAND FLASH write quantities of the two times is divided by the difference between the PS4 entry times of the two times, so that the NAND FLASH write quantity introduced when the SSD enters the PS4 once can be obtained.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention. It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (5)

1. A method for measuring NAND FLASH write volume resulting from a single entry of an SSD into PS4 state, comprising the steps of:
step S1, connecting the SSD to be tested with the notebook computer;
step S2, the battery capacity of the notebook computer is fully charged by adopting AC power supply;
step S3, reading the number of times the PS4 state of the SSD has been entered at this time and the write amount of NAND FLASH with a data reading tool;
step S4, disconnecting the AC power supply of the notebook computer;
step S5, supplying power to the notebook computer by adopting DC without any operation on the notebook computer, and keeping the notebook computer in an idle state until the battery power of the notebook computer is exhausted;
step S6, reconnecting the notebook computer with the AC power supply to start the notebook computer;
step S7, reading the number of times the SSD has entered the PS4 state and the writing amount of NANDFLASH again by using the data reading tool;
step S8, dividing the difference between the NAND FLASH writing amounts obtained in steps S3 and S7 by the difference between the number of times of entering the PS4 state twice, to obtain the NAND FLASH writing amount introduced when the SSD enters the PS4 state once.
2. The method of claim 1, wherein the notebook computer has a Windows10 operating system installed thereon for measuring NAND FLASH write volume caused by a single pass of SSD into PS4 state.
3. The method of claim 2, wherein the notebook computer is a notebook computer supporting entry into PCIe link power state management (L1.2) mode.
4. The method of claim 1, wherein the data reading means is a procedure for reading SSD state information, and the method comprises measuring NAND FLASH write volumes caused by a single entry of the SSD into the PS4 state.
5. The method of claim 1, wherein the notebook computer runs the data reading tool to obtain the number of times that the SSD has entered the PS4 state and the write amount of NAND FLASH.
CN201910933626.0A 2019-09-29 2019-09-29 Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state Active CN110716833B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910933626.0A CN110716833B (en) 2019-09-29 2019-09-29 Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910933626.0A CN110716833B (en) 2019-09-29 2019-09-29 Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state

Publications (2)

Publication Number Publication Date
CN110716833A true CN110716833A (en) 2020-01-21
CN110716833B CN110716833B (en) 2023-03-21

Family

ID=69211154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910933626.0A Active CN110716833B (en) 2019-09-29 2019-09-29 Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state

Country Status (1)

Country Link
CN (1) CN110716833B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181775A (en) * 2020-09-29 2021-01-05 深圳忆联信息系统有限公司 Method and device for measuring power consumption of single-disk SSD PS4, computer equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156954A1 (en) * 2005-12-29 2007-07-05 Intel Corporation Method and apparatus to maintain data integrity in disk cache memory during and after periods of cache inaccessiblity
US20150222705A1 (en) * 2012-09-06 2015-08-06 Pi-Coral, Inc. Large-scale data storage and delivery system
US20190130990A1 (en) * 2017-11-02 2019-05-02 National Tsing Hua University Method and system for testing firmware of solid-state storage device, and electronic apparatus
US20190251027A1 (en) * 2018-02-14 2019-08-15 Samsung Electronics Co., Ltd. Cost-effective solid state disk data-protection method for power outages

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070156954A1 (en) * 2005-12-29 2007-07-05 Intel Corporation Method and apparatus to maintain data integrity in disk cache memory during and after periods of cache inaccessiblity
US20150222705A1 (en) * 2012-09-06 2015-08-06 Pi-Coral, Inc. Large-scale data storage and delivery system
US20190130990A1 (en) * 2017-11-02 2019-05-02 National Tsing Hua University Method and system for testing firmware of solid-state storage device, and electronic apparatus
US20190251027A1 (en) * 2018-02-14 2019-08-15 Samsung Electronics Co., Ltd. Cost-effective solid state disk data-protection method for power outages

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李鹏等: "NAND闪存固态硬盘空间环境效应分析及测试系统设计", 《航天器环境工程》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112181775A (en) * 2020-09-29 2021-01-05 深圳忆联信息系统有限公司 Method and device for measuring power consumption of single-disk SSD PS4, computer equipment and storage medium
CN112181775B (en) * 2020-09-29 2023-02-10 深圳忆联信息系统有限公司 Method and device for measuring power consumption of single-disk SSD PS4, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110716833B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN102568522B (en) The method of testing of hard disk performance and device
CN110618892B (en) Bug positioning method and device of solid state disk, electronic equipment and medium
CN109411009B (en) Flash device erasing life test system device
US11221933B2 (en) Holdup self-tests for power loss operations on memory systems
CN110427289A (en) The method and device that automatic test SSD power down influences data consistency
CN103514958A (en) Method for detecting service life of EMMC (embedded multi-media card) chip
US20140129206A1 (en) Simulator and simulating method for flash memory background
CN102567171A (en) Method for testing blade server mainboard
KR20160007988A (en) Storage system managing run-time bad cells
US7439705B2 (en) Diagnosis method, power supply control device, electronic apparatus, battery pack and computer-readable storage medium
CN110716833B (en) Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state
CN109445691A (en) A kind of method and device improving FTL algorithm development and verification efficiency
CN110764960A (en) Solid state disk firmware testing method
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
CN116560985B (en) Chip equipment test control method, upper computer, equipment and medium
CN111028881B (en) Open Block testing device, method and system
CN110825421B (en) Firmware upgrading method, system and readable storage medium
US20110040505A1 (en) Testing System and Method for Testing Charging Circuit
CN115422091B (en) Firmware debugging method and device, electronic equipment and storage medium
CN107220153A (en) A kind of calculator memory switching card test method and device based on UEFI
CN111210863B (en) Method, device and equipment for testing embedded memory and computer storage medium
CN109144528B (en) Method and system for automatically detecting pins and identifying specific type of SPI Flash
CN102761653A (en) Method for on-line upgrading software of handheld terminal equipment
CN102402961B (en) Self-test driving circuit
CN111627491A (en) Flash memory testing module based on USB3.0 and testing method thereof

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