CN110716833B - Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state - Google Patents
Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state Download PDFInfo
- Publication number
- CN110716833B CN110716833B CN201910933626.0A CN201910933626A CN110716833B CN 110716833 B CN110716833 B CN 110716833B CN 201910933626 A CN201910933626 A CN 201910933626A CN 110716833 B CN110716833 B CN 110716833B
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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/2221—Detection 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- 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)
- 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-in quantity caused when an SSD enters a PS4 state once, which comprises the following steps: step S1, connecting an SSD to be tested with a notebook computer; s2, using AC power supply to fully charge the battery of the notebook computer; s3, reading the number of times of the PS4 state entered by the SSD at the moment and the write-in amount of the NAND FLASH by using a data reading tool; s4, disconnecting the AC power supply of the notebook computer; s5, supplying power to the notebook computer by adopting DC (direct current), and enabling the notebook computer to be in an idle state until the electric quantity is exhausted; s6, reconnecting the notebook computer with an AC power supply to start up; step S7, reading the number of times that the SSD enters the PS4 state and the writing amount of the NAND FLASH again by using the data reading tool; and step S8, dividing the difference between the NAND FLASH write quantities obtained in the steps S3 and S7 by the difference between the times of entering the PS4 state twice to obtain the NAND FLASH write quantity introduced when the SSD enters the PS4 state once.
Description
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 the PS4 low power consumption State, and when the SSD enters the PS4 State, the SSD can enable the DDR and the NAND FLASH to be in the power-down State. The adoption of the PS4 low-power-consumption scheme has the advantages that the power consumption of the SSD in idle can be greatly reduced, thereby being beneficial to enhancing the battery endurance of a notebook computer; however, the DDR on the SSD stores its data in the NAND FLASH before power down, which undoubtedly brings extra write-in amount for the NAND FLASH, resulting in loss of programming/erasing (Program/Erase, abbreviated as P/E) times of the NAND FLASH, thereby reducing the lifetime of the SSD, and if there is a serious defect in the SSD firmware design, it is possible to cause very high extra P/E loss due to power down of the DDR each time the SSD enters PS4, thereby greatly shortening the lifetime of the SSD.
Therefore, when an SSD product adopting the above-mentioned PS4 scheme is internally tested by an SSD manufacturer, extra write amount carried by the SSD when entering the PS4 once is usually concerned, and the measurement method is usually to write a test script by using DriveMaster software of Ulink company to simulate the write amount of the SSD when entering the PS4 once in an actual application scenario. 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 script writing, which is not beneficial to improving the test efficiency and timely testing the potential design defects 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 reasons, the invention provides a method for measuring the write quantity of NAND FLASH caused by single entry of SSD into PS4 state.
Disclosure of Invention
In order to meet the above requirements, the present invention aims to provide a method for measuring the amount of NAND FLASH write caused when an SSD enters the PS4 state once.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for measuring the amount of NAND FLASH write caused by a single entry of an SSD into the PS4 state, comprising the steps of:
step S1, connecting an SSD to be tested with a notebook computer;
s2, using AC power supply to fully charge the battery of the notebook computer;
s3, reading the number of times of the PS4 state entered by the SSD at the moment and the write-in amount of the NAND FLASH by using a data reading tool;
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 enabling the notebook computer to be in an idle state until the battery power of the notebook computer is exhausted;
s6, reconnecting the notebook computer with an AC power supply to start the notebook computer;
step S7, reading the number of times that the SSD enters the PS4 state and the writing amount of the NAND FLASH again by using the data reading tool;
and step S8, dividing the difference between the NAND FLASH write quantities obtained in the steps S3 and S7 by the difference between the times of entering the PS4 state twice to obtain the NAND FLASH write quantity 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 the NAND FLASH.
Compared with the prior art, the invention has the beneficial effects that: by adopting the method for measuring the writing amount of the NAND FLASH caused when the SSD enters the PS4 state once, no additional test software needs to be purchased, no complex test script needs to be compiled, the method is simple and efficient, and 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 NAND FLASH write-in quantity of the SSD introduced in the single PS4 access.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a flowchart illustrating a method for measuring the NAND FLASH write amount caused by a single entry of an SSD into the PS4 state according to an embodiment of the present invention;
fig. 2 is a specific flowchart illustrating the method for measuring the NAND FLASH write amount caused by the SSD entering the PS4 state once according to the present invention, for measuring the associated Thinkpad 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.
Fig. 1 is a flowchart illustrating a method for measuring the NAND FLASH write amount caused by the SSD entering the PS4 state once according to an embodiment of the present invention, which includes the following steps:
step S1, connecting an SSD to be tested with a notebook computer;
s2, using AC power supply to fully charge the battery of the notebook computer;
s3, reading the number of times of the PS4 state entered by the SSD at the moment and the write-in amount of the NAND FLASH by using a data reading tool;
s4, disconnecting the AC power supply of the notebook computer;
s5, supplying power to the notebook computer by adopting DC (direct current), and not performing any operation on the notebook computer to enable the notebook computer to be in an idle state until the battery power of the notebook computer is exhausted;
s6, reconnecting the notebook computer with an AC power supply to start the notebook computer;
step S7, reading the number of times that the SSD enters the PS4 state and the writing amount of the NAND FLASH again by using the data reading tool;
and step S8, dividing the difference between the NAND FLASH write quantities obtained in the steps S3 and S7 by the difference between the times of entering the PS4 state twice to obtain the NAND FLASH write quantity introduced when the SSD enters the PS4 state once.
The NAND FLASH is a FLASH memory used for the solid state disk, and has the following nonvolatile 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.
As 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 the NAND FLASH.
The method for measuring the NAND FLASH write-in quantity caused when the SSD enters the PS4 state once is used for measuring the associated Thinkpad X1Carbon 6th notebook computer;
hardware requirements:
the computer to be tested: associative thinkpa 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) capable of reading various kinds of state information of SSD, which is self-developed by SSD manufacturer, 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 the Tool of Tool Box self developed by SSD manufacturer to read the PS4 times that SSD has entered and the write quantity of NAND FLASH,
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 enters the PS4 and the writing amount of the NAND FLASH by using a Tool again;
8) Finally, the difference between the two NAND FLASH write volumes is divided by the difference between the two PS4 entry times, so as to obtain the NAND FLASH write volume introduced when the SSD enters the PS4 once.
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 technical solution. 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 the amount of NAND FLASH writes caused by a SSD entering the PS4 state a single time, comprising the steps of:
step S1, connecting an SSD to be tested with a notebook computer;
s2, using AC power supply to fully charge the battery of the notebook computer;
s3, reading the number of times of the PS4 state entered by the SSD at the moment and the write-in amount of the NAND FLASH by using a data reading tool;
s4, disconnecting an AC power supply of the notebook computer;
s5, supplying power to the notebook computer by adopting DC (direct current), and not performing any operation on the notebook computer to enable the notebook computer to be in an idle state until the battery power of the notebook computer is exhausted;
s6, reconnecting the notebook computer with an AC power supply to start the notebook computer;
step S7, reading the number of times that the SSD enters the PS4 state and the writing amount of the NAND FLASH again by using the data reading tool;
and step S8, dividing the difference between the NAND FLASH write quantities obtained in the steps S3 and S7 by the difference between the times of entering the PS4 state twice to obtain the NAND FLASH write quantity introduced when the SSD enters the PS4 state once.
2. The method of claim 1 for measuring the amount of NAND FLASH writes caused by a single entry of SSD into PS4 state, wherein the notebook computer is installed with Windows10 operating system.
3. The method of claim 2, wherein the notebook computer is a notebook computer supporting entering into PCIe link power state management L1.2 mode.
4. The method of claim 1, wherein the data reading tool is a program that reads the SSD status information.
5. The method according to 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 writing amount of the NAND FLASH.
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 CN110716833A (en) | 2020-01-21 |
CN110716833B true 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) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7627713B2 (en) * | 2005-12-29 | 2009-12-01 | Intel Corporation | Method and apparatus to maintain data integrity in disk cache memory during and after periods of cache inaccessibility |
EP2893452A4 (en) * | 2012-09-06 | 2016-06-08 | Pi Coral Inc | Large-scale data storage and delivery system |
US10504605B2 (en) * | 2017-11-02 | 2019-12-10 | National Tsing Hua University | Method and system for testing firmware of solid-state storage device, and electronic apparatus |
US10901898B2 (en) * | 2018-02-14 | 2021-01-26 | Samsung Electronics Co., Ltd. | Cost-effective solid state disk data-protection method for power outages |
-
2019
- 2019-09-29 CN CN201910933626.0A patent/CN110716833B/en active Active
Non-Patent Citations (1)
Title |
---|
NAND闪存固态硬盘空间环境效应分析及测试系统设计;李鹏等;《航天器环境工程》;20181224(第06期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN110716833A (en) | 2020-01-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 | |
TWI436369B (en) | Methods for measuring usable lifespan and replacing an in-system programming code of a memory device, and data storage system using the same | |
CN109411009B (en) | Flash device erasing life test system device | |
JP3653248B2 (en) | Leak detection and repair method by external trigger | |
US9858366B2 (en) | Simulator and simulating method for flash memory background | |
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 | |
KR20160007988A (en) | Storage system managing run-time bad cells | |
CN110716833B (en) | Method for measuring NAND FLASH write quantity caused by single entry of SSD into PS4 state | |
US20050233205A1 (en) | Diagnosis method, power supply control device, electronic apparatus, battery pack and computer-readable storage medium | |
CN108694052B (en) | Firmware upgrading method, firmware upgrading device and firmware upgrading system | |
CN110764960A (en) | Solid state disk firmware testing method | |
US20130262942A1 (en) | Flash memory lifetime evaluation method | |
CN110825421B (en) | Firmware upgrading method, system and readable storage medium | |
CN111028881B (en) | Open Block testing device, method and system | |
CN115422091B (en) | Firmware debugging method and device, electronic equipment and storage medium | |
US20110040505A1 (en) | Testing System and Method for Testing Charging Circuit | |
CN116434816A (en) | Self-checking method and device for Flash memory built in chip and computer equipment | |
CN113421605B (en) | Electric energy meter memory life test method and device | |
JP4359327B2 (en) | Semiconductor integrated circuit device, IC card and inspection device | |
CN111324554B (en) | Management method and device of flash memory data and elevator controller | |
CN109144528B (en) | Method and system for automatically detecting pins and identifying specific type of SPI Flash | |
CN106024067A (en) | EEPROM testing method | |
CN102402961B (en) | Self-test driving circuit |
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 |