CN107967224A - A kind of method of solid state hard disc improving performance uniformity - Google Patents

A kind of method of solid state hard disc improving performance uniformity Download PDF

Info

Publication number
CN107967224A
CN107967224A CN201710947542.3A CN201710947542A CN107967224A CN 107967224 A CN107967224 A CN 107967224A CN 201710947542 A CN201710947542 A CN 201710947542A CN 107967224 A CN107967224 A CN 107967224A
Authority
CN
China
Prior art keywords
order
priority
operational order
state hard
solid state
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
CN201710947542.3A
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.)
Ramaxel Technology Shenzhen Co Ltd
Original Assignee
Ramaxel Technology Shenzhen 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 Ramaxel Technology Shenzhen Co Ltd filed Critical Ramaxel Technology Shenzhen Co Ltd
Priority to CN201710947542.3A priority Critical patent/CN107967224A/en
Publication of CN107967224A publication Critical patent/CN107967224A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1689Synchronisation and timing concerns
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/08Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
    • G06F12/12Replacement control
    • G06F12/121Replacement control using replacement algorithms
    • G06F12/126Replacement control using replacement algorithms with special data handling, e.g. priority of data or instructions, handling errors or pinning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/18Handling requests for interconnection or transfer for access to memory bus based on priority control

Abstract

The invention discloses a kind of method of solid state hard disc improving performance uniformity, it is characterized in that the execution sequence of operational order is adjusted according to the priority level of operational order dynamic, when there is the other newer command of high priority, then hang up the other operational order of low priority, preferential to perform the other order of high priority, the other order of equal priority is performed according to the sequencing of order generated time;The read operation order original definition that host is issued is the first priority;The write operation order original definition that host is issued is the second priority;Read operation order, write operation order and the erasing operation order original definition that solid-state hard disk controller internal trigger is produced are third priority.The present invention is by other for the different processing priority of different operational order type sets, and for solid-state hard disk controller according to the order of priority level dispatch deal, emphasis ensures the promptness and uniformity that exterior operation responds.

Description

A kind of method of solid state hard disc improving performance uniformity
Technical field
The present invention relates to solid state hard disc control technology, more particularly to a kind of method of solid state hard disc improving performance uniformity.
Background technology
Fig. 1 is typical NAND compositions structure diagram;NAND is made of multiple pieces of Block, and each Block is again by multiple Page Page compositions.DIE is the unit of the supported independent concurrent operations of the NAND FLASH;The list that block Block can be wiped independently Member, has to wipe whole Block after data write-in of each physical location in it before write next time, just writable new Data;Page Page be read-write unit, that is, into FLASH write or read data must using page as operating unit into OK.
Since the principle of NAND determines, there are following characteristic and limitation:Typically, a Block erasing needs 10 Several milliseconds;Write a Block data and take around several milliseconds;And the data for reading a Block only need tens Microsecond;Further, in the same time, single DIE can only perform a type of operation.
With the extensive use of consumer field SSD, since the random access performance of SSD is high, low in energy consumption, environmental stability The features such as strong, SSD is also gradually introducing in enterprise-level.
More paid close attention to unlike peak performance from consumer SSD, enterprise-level is more concerned with the uniformity of performance, and typical case is as read to prolong Maximum is in 500us, and write delay maximum is in 10ms.
Due to the characteristic of NAND, erase and program operations need to expend longer time, such as erasing needs 15ms, programs Need 2-4ms etc..During this period, when there are read-write requests, life can be added because other time-consuming longer operations trigger obstruction Make operating lag.
Fig. 2 is that host request postpones to respond by the schematic diagram of internal operation obstruction, host request by inside operation obstruction Scene:
When host initiates reading and writing request, positive inside SSD to perform time-consuming longer erasing operation, at this moment reading and writing request needs Reading and writing request could be responded by being deferred to Block erasings, therefore there are larger delay.
When host initiates read request, time-consuming longer write operation is carrying out inside SSD, at this moment read operation has to prolong Late write operation completes that read request could be responded, therefore there are larger delay.
The content of the invention
For disadvantages described above, the present invention seeks to how preferential according to the difference of reading and writing and the erasing of host, reasonable definition Rank, lifts the uniformity of the external performance of solid state hard disc.
A kind of method of solid state hard disc improving performance uniformity is proposed in order to solve the problem above present invention, its feature exists The operational order for operating NAND is subjected to priority level definition in solid-state hard disk controller, and according to the priority level of operational order Dynamic adjusts the execution sequence of operational order, when there is the other newer command of high priority, then hangs up the other operation life of low priority Order, preferential to perform the other order of high priority, the other order of equal priority is performed according to the sequencing of order generated time; The read operation order original definition that host is issued is the first priority;The write operation order original definition that host is issued is the Two priority;At the beginning of read operation order, write operation order and erasing operation order that solid-state hard disk controller internal trigger is produced Beginning is defined as third priority.
The method of the solid state hard disc improving performance uniformity, it is characterised in that be additionally provided with solid-state hard disk controller excellent First level adjusts module, and the priority adjustment module records the generated time of all operational orders being not carried out, and inspects periodically each The stand-by period of a operational order being not carried out, exceedes time valve set in advance when the stand-by period for the operational order being not carried out During value, by the corresponding operational order being not carried out obtain priority carry it is one level higher.
The method of the solid state hard disc improving performance uniformity, it is characterised in that be ready to carry out the second priority or Increase relevance detection is needed before the operational order of one priority, the operation that the relevance detection is currently not carried out by retrieval is ordered Queue is made, the operational order of same address information is checked for according to the address information of operational order, and if so, into One step compares the order generated time of the operational order of same address information, if the generation for the operational order being currently ready to carry out Time earlier than the order generated time of the operational order of the same address information in the operational order queue being not carried out, then continues to hold The operational order being ready to carry out before the trade;If the generated time for the operational order being currently ready to carry out is later than in the behaviour being not carried out Make the order generated time of the operational order of the same address information in command queue;Then first carry out the operational order team being not carried out The operational order of same address information in row, after perform the operational order being currently ready to carry out again.
The method of the solid state hard disc improving performance uniformity, it is characterised in that 3 are created in solid-state hard disk controller A queue, is respectively the first priority query, the second priority query and third priority queue;By respectively by different priorities Operational order by order generated time order perform enqueue operations.
The method of the solid state hard disc improving performance uniformity, it is characterised in that be handed down to the life of solid state hard disc in host Making increases command prioritization definition in the information carried, default setting is low priority, when the controller of solid state hard disc receives The command determination command prioritization that host issues not Wei low priority level when, then will determine according to the priority level inside solid state hard disc Adopted dispatch deal;It is if host assert that operational order needs high priority, the order in the information for ordering carrying is preferential Level is defined as high priority, when the controller of solid state hard disc receives the command determination command prioritization that host issues Wei low height During priority level, then on the basis of the priority level definition inside according to solid state hard disc is other to order setting initial priority Raise a priority level.
The present invention passes through the length of the processing time according to different operating order and the order initiator of generation operational order To the sensitiveness of operational order response time, other for the different processing priority of different operational order type sets, solid-state is hard For disk controller according to the order of priority level dispatch deal, emphasis ensures the promptness and uniformity that exterior operation responds.
Brief description of the drawings
Fig. 1 is typical NAND compositions structure diagram;
Fig. 2 is host request by the schematic diagram of internal operation obstruction;
Fig. 3 is the classification schematic diagram for introducing priority management;
Fig. 4 is that the order after introducing priority management issues schematic diagram;
Fig. 5 is the effect diagram for eliminating obstruction.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment, belongs to the scope of protection of the invention.
Fig. 3 is the classification schematic diagram for introducing priority management;It is carrying out taking for a long time to eliminate to run into during read command Order and the influence of operating lag is read caused by blocking.3 queues are created in solid-state hard disk controller, are respectively first excellent First level queue, the second priority query and third priority queue;The operational order of different priorities will be given birth to by order respectively Enqueue operations are performed into time sequencing.The SSD of operation requests inside to(for) serial input are classified, and are put into different priorities Queue in:The operating lag of Host host read operation orders requires highest, so being placed on the first priority;Host hosts write behaviour The operating lag requirement for making to order is taken second place, therefore is placed on the second priority;Writing, wiping, reading to be set inside other operations such as SSD For the relatively low request of priority, therefore third priority has been placed on it.Because the operation operating lag of external host directly represent The performance of solid state hard disc, therefore must preferentially ensure the execution of the operational order of outside on the whole, reduce its operating lag.It will hold The less order of row time loss is given priority in arranging for, and can reduce the operating lag of solid state hard disc on the whole;Operation for inside, greatly Be due to solid inner hard disk in order to lift the operation that the service life of solid state hard disc, space availability ratio etc. are actively initiated, such as in order to The operation such as equilibrium, garbage reclamation is write in guarantee, which is sightless for host, therefore there are larger delay to host There is no influence, thus such order operator precedence level can be put into it is minimum.
When solid-state hard disk controller issues operational order to NAND, preferentially ensured according to the priority of operational order and issue height Priority command;Increase the correlation for checking and wiping, write, reading at the same time, avoid the occurrence of the operation for violating NAND characteristics, hair before such as wiping Rise and write;Initiate to read before data write-in.Low Priority Queuing is asked to carry out overtime scheduling, solid-state hard disk controller is equipped with preferential Level adjustment module, priority adjustment module record generated times of all operational orders being not carried out, inspect periodically and each do not hold The stand-by period of capable operational order, when the stand-by period for the operational order being not carried out exceeding time threshold set in advance, By the corresponding operational order being not carried out obtain priority carry it is one level higher, prevent always by high-priority task surmount and no To execution.
Fig. 4 is that the order after introducing priority management issues schematic diagram, and NAND controller receives the operation requests issued, will Determine whether host initiation according to operation requests, whether be internal generation, and difference is further distributed according to request type In the request queue of priority, the order in request queue that NAND controller will be distributed preferentially in current high priority is arrived NAND ends.Check whether NAND ends are idle, the newer command issued is directly performed if idle, if there is the behaviour being carrying out Make, then judge that not whether the command prioritization that NAND ends are carrying out is less than newer command, if being not less than newer command, NAND ends Continue to execute, newer command waits until that NAND ends the current command performs again after the completion of performing;Held if below judging that NAND rectifies Whether capable order can be interrupted, if can interrupt, the order that NAND ends are carrying out is hung up, and first carries out newer command.
Fig. 5 is the effect diagram for eliminating obstruction, introduces priority definition, and suitable according to the execution of priority scheduling order Sequence.NAND ends are carrying out time-consuming longer block erasing order or as when host initiates to read such as when host initiates reading and writing request When NAND ends be carrying out time-consuming longer write order, since host has come request of the newer command for higher level, basis Dispatching principle hangs up the current command at NAND ends, then performs new request, can be after after high priority requests are finished The continuous operation (write, wipe) being previously interrupted.By the strategy, the delay of effective guarantee host side readwrite performance is controllable, and then Improve consistency of performance.
The above disclosed interest field for being only an embodiment of the present invention, sheet cannot being limited with this certainly, One of ordinary skill in the art will appreciate that realize all or part of flow of above-described embodiment, and according to the claims in the present invention institute The equivalent variations of work, still fall within the scope that the present invention is covered.

Claims (5)

  1. A kind of 1. method of solid state hard disc improving performance uniformity, it is characterised in that solid-state hard disk controller will operate the behaviour of NAND Make order and carry out priority level definition, and the execution sequence of operational order is adjusted according to the priority level dynamic of operational order, when There is the other newer command of high priority, then hang up the other operational order of low priority, it is preferential to perform the other order of high priority, phase The other order of same priority is performed according to the sequencing of order generated time;The read operation order original definition that host is issued For the first priority;The write operation order original definition that host is issued is the second priority;Inside solid-state hard disk controller Read operation order, write operation order and the erasing operation order original definition that triggering produces are third priority.
  2. 2. the method for solid state hard disc improving performance uniformity according to claim 1, it is characterised in that solid state hard disc controls Priority adjustment module is additionally provided with device, when the priority adjustment module records the generation of all operational orders being not carried out Between, the stand-by period of each operational order being not carried out is inspected periodically, is exceeded in advance when the stand-by period for the operational order being not carried out During the time threshold first set, the priority of the corresponding operational order being not carried out is carried one level higher.
  3. 3. the method for solid state hard disc improving performance uniformity according to claim 2, it is characterised in that be ready to carry out Increase relevance detection is needed before the operational order of two priority or the first priority, the relevance detection is current not by retrieval The operational order queue of execution, the operational order of same address information is checked for according to the address information of operational order, And if so, further compare the order generated time of the operational order of same address information, if the behaviour being currently ready to carry out Order of the generated time for making to order earlier than the operational order of the same address information in the operational order queue being not carried out generates Time, then continue to execute the operational order being currently ready to carry out;If evening generated time for the operational order being currently ready to carry out In the order generated time of the operational order of the same address information in the operational order queue being not carried out;Then first carry out and do not hold The operational order of same address information in capable operational order queue, after perform the operational order being currently ready to carry out again.
  4. 4. the method for solid state hard disc improving performance uniformity according to claim 3, it is characterised in that in solid state hard disc control 3 queues are created in device processed, are respectively the first priority query, the second priority query and third priority queue;Will be respectively The operational order of different priorities is performed into enqueue operations by order generated time order.
  5. 5. the method for solid state hard disc improving performance uniformity according to any one of claims 1 to 4, it is characterised in that Increasing command prioritization definition in the information that the order that host is handed down to solid state hard disc carries, default setting is low priority, when The controller of solid state hard disc receive command determination command prioritization that host issues not Wei low priority level when, then will be according to solid The priority level of state hard drive internal defines dispatch deal;If host assert that operational order needs high priority, it will order Command prioritization in the information of carrying is defined as high priority, when the controller of solid state hard disc receives the order that host issues When judging command prioritization not for low high priority, then the priority level definition inside according to solid state hard disc sets the order Determine to raise a priority level on the basis of initial priority is other.
CN201710947542.3A 2017-10-12 2017-10-12 A kind of method of solid state hard disc improving performance uniformity Pending CN107967224A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710947542.3A CN107967224A (en) 2017-10-12 2017-10-12 A kind of method of solid state hard disc improving performance uniformity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710947542.3A CN107967224A (en) 2017-10-12 2017-10-12 A kind of method of solid state hard disc improving performance uniformity

Publications (1)

Publication Number Publication Date
CN107967224A true CN107967224A (en) 2018-04-27

Family

ID=61996726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710947542.3A Pending CN107967224A (en) 2017-10-12 2017-10-12 A kind of method of solid state hard disc improving performance uniformity

Country Status (1)

Country Link
CN (1) CN107967224A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885261A (en) * 2019-02-27 2019-06-14 苏州浪潮智能科技有限公司 A method of improving performance of storage system
CN110362275A (en) * 2019-07-10 2019-10-22 深圳大普微电子科技有限公司 Promote the method and solid state hard disk of solid state hard disk service quality
CN112631891A (en) * 2021-01-05 2021-04-09 网易(杭州)网络有限公司 Performance analysis method and device, electronic equipment and storage medium
CN113778317A (en) * 2020-06-10 2021-12-10 慧荣科技股份有限公司 Computer readable storage medium, method and device for scheduling host commands
CN113778821A (en) * 2021-07-30 2021-12-10 联芸科技(杭州)有限公司 Solid state disk and medium access management method thereof
CN114047875A (en) * 2021-10-25 2022-02-15 深圳市硅格半导体有限公司 Command scheduling method, device, equipment and computer program product
CN115840542A (en) * 2023-02-24 2023-03-24 浪潮电子信息产业股份有限公司 Hard disk request processing method, system, storage medium and electronic equipment
CN116302105A (en) * 2023-03-17 2023-06-23 平头哥(上海)半导体技术有限公司 Access instruction scheduling method, system, hard disk, controller, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203894753U (en) * 2014-05-14 2014-10-22 上海磊华船舶工程有限公司 Marine solid-state drive
CN105867844A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Command control method and storage equipment
CN106445418A (en) * 2016-09-27 2017-02-22 郑州云海信息技术有限公司 Method and device for self-adaptingread-write services in solid state disk
CN106681661A (en) * 2016-12-23 2017-05-17 郑州云海信息技术有限公司 Read-write scheduling method and device in solid state disk
CN107092445A (en) * 2017-05-31 2017-08-25 郑州云海信息技术有限公司 A kind of multichannel SSD solid-state disks I O scheduling method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203894753U (en) * 2014-05-14 2014-10-22 上海磊华船舶工程有限公司 Marine solid-state drive
CN105867844A (en) * 2016-03-28 2016-08-17 联想(北京)有限公司 Command control method and storage equipment
CN106445418A (en) * 2016-09-27 2017-02-22 郑州云海信息技术有限公司 Method and device for self-adaptingread-write services in solid state disk
CN106681661A (en) * 2016-12-23 2017-05-17 郑州云海信息技术有限公司 Read-write scheduling method and device in solid state disk
CN107092445A (en) * 2017-05-31 2017-08-25 郑州云海信息技术有限公司 A kind of multichannel SSD solid-state disks I O scheduling method and device

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109885261A (en) * 2019-02-27 2019-06-14 苏州浪潮智能科技有限公司 A method of improving performance of storage system
CN109885261B (en) * 2019-02-27 2022-08-05 苏州浪潮智能科技有限公司 Method for improving performance of storage system
CN110362275A (en) * 2019-07-10 2019-10-22 深圳大普微电子科技有限公司 Promote the method and solid state hard disk of solid state hard disk service quality
US11886743B2 (en) 2019-07-10 2024-01-30 Shenzhen Dapu Microelectronics Co., Ltd. Method for enhancing quality of service of solid-state drive and solid-state drive
CN113778317A (en) * 2020-06-10 2021-12-10 慧荣科技股份有限公司 Computer readable storage medium, method and device for scheduling host commands
CN112631891A (en) * 2021-01-05 2021-04-09 网易(杭州)网络有限公司 Performance analysis method and device, electronic equipment and storage medium
CN113778821A (en) * 2021-07-30 2021-12-10 联芸科技(杭州)有限公司 Solid state disk and medium access management method thereof
CN114047875A (en) * 2021-10-25 2022-02-15 深圳市硅格半导体有限公司 Command scheduling method, device, equipment and computer program product
CN114047875B (en) * 2021-10-25 2024-04-19 深圳市硅格半导体有限公司 Command scheduling method, device, equipment and computer program product
CN115840542A (en) * 2023-02-24 2023-03-24 浪潮电子信息产业股份有限公司 Hard disk request processing method, system, storage medium and electronic equipment
CN116302105A (en) * 2023-03-17 2023-06-23 平头哥(上海)半导体技术有限公司 Access instruction scheduling method, system, hard disk, controller, storage medium and program product
CN116302105B (en) * 2023-03-17 2024-03-12 平头哥(上海)半导体技术有限公司 Access instruction scheduling method, system, hard disk, controller, storage medium and program product

Similar Documents

Publication Publication Date Title
CN107967224A (en) A kind of method of solid state hard disc improving performance uniformity
CN105867844A (en) Command control method and storage equipment
US8341374B2 (en) Solid state drive and related method of scheduling operations
US9727248B2 (en) Dynamic IO operation timeout assignment for a solid state drive
US8793427B2 (en) Remote memory for virtual machines
US10089266B2 (en) Power saving feature for storage subsystems
US10416864B2 (en) Method and apparatus for optimizing operating environment of a user terminal through multiple user interfaces
JP6111575B2 (en) Storage device, internal processing control method, and internal processing control program
CN103809917A (en) Method of scheduling tasks for memories and memory system thereof
KR20190027677A (en) Storage device and controllers included in the storage device
JP2013541765A5 (en)
EP2784683B1 (en) Storage control program, storage control method, storage system and hierarchy control apparatus thereof
TWI533146B (en) Virtual resource adjusting method, device and computer readable storage medium for storing thereof
EP3537281B1 (en) Storage controller and io request processing method
JP2010532061A5 (en)
US11010094B2 (en) Task management method and host for electronic storage device
CN108762665B (en) Method and device for controlling reading and writing of storage device
KR20200090957A (en) Memory bandwidth scheduling based on lower service quality
CN107919143B (en) Solid-state storage device and temperature control method thereof
US20190369904A1 (en) Apparatus, method for storage access management, and non-transitory computer-readable storage medium for storing program
CN114902193B (en) System and method for scheduling flash operations
CN107885667B (en) Method and apparatus for reducing read command processing delay
CN115840542B (en) Method and system for processing request of hard disk, storage medium and electronic equipment
US20160018994A1 (en) Memory system and method
CN112204514A (en) Techniques for preserving life expectancy of non-volatile memory

Legal Events

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

Application publication date: 20180427

RJ01 Rejection of invention patent application after publication