CN102855198B - The controller of memory storage and method for optimizing resources - Google Patents

The controller of memory storage and method for optimizing resources Download PDF

Info

Publication number
CN102855198B
CN102855198B CN201210280000.2A CN201210280000A CN102855198B CN 102855198 B CN102855198 B CN 102855198B CN 201210280000 A CN201210280000 A CN 201210280000A CN 102855198 B CN102855198 B CN 102855198B
Authority
CN
China
Prior art keywords
memory storage
parameter
business
interval
resource
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.)
Expired - Fee Related
Application number
CN201210280000.2A
Other languages
Chinese (zh)
Other versions
CN102855198A (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.)
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 CN201210280000.2A priority Critical patent/CN102855198B/en
Publication of CN102855198A publication Critical patent/CN102855198A/en
Application granted granted Critical
Publication of CN102855198B publication Critical patent/CN102855198B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The present invention is applicable to the resource optimization technical field of memory storage, provide a kind of method for optimizing resources of memory storage, described method comprises: the IO pause command that Receiving Host application sends, and described IO pause command carries business hours interval parameter and resource reclaim intensive parameter; Corresponding Resource reclaiming is performed according to described business hours interval parameter and resource reclaim intensive parameter.The present invention also provides a kind of controller realizing the memory storage of said method accordingly.Whereby, the present invention is by directly issuing IO pause command to memory device in the interval of the service pause of noncontinuity business by upper layer application, memory device can start resource optimization process according to command information, so that after the IO EOT end of timeout, when business restarts, storage system resource reaches the configuration more optimized, and effectively promotes the readwrite performance of memory storage.

Description

The controller of memory storage and method for optimizing resources
Technical field
The present invention relates to the resource optimization technical field of memory storage, particularly relate to a kind of controller and method for optimizing resources of memory storage.
Background technology
The application performance of storage system and the IO intensity received, quantity, size are closely bound up.When high strength IO accesses, As time goes on, storage system will produce resource fragmentation.Now, storage system will carry out dynamic defragmentation, to optimize resource.Ensure application performance.Such as, the performance advantage of SSD (solidstatedisk, solid state hard disc) disk is the topmost reason that it is more and more used widely in enterprises and individuals's storage market.But As time goes on the access mode write after the erasing of the uniqueness of Flash memory chip also result in, the available block wiped is fewer and feweri, and fragment gets more and more, and causes the decline of access performance.For this situation, the algorithm that a lot of SSD controller all comprises garbage reclamation carrys out the stable of guaranteed performance.But existing storage system must consider that when doing resource reclaim and arranging optimization application is to the access stored at every moment, and may affect performance generation.Therefore, when not knowing how application can access storage, storage system can limit and use optimized Resource reclaiming, guarantees the response performance when there being suddenly high strength application access.
In summary, obviously there is inconvenience and defect in actual use, so be necessary to be improved in the resource optimization technology of existing memory storage.
Summary of the invention
For above-mentioned defect, the object of the present invention is to provide a kind of controller and method for optimizing resources of memory storage, storage device resources can be made to reach the configuration more optimized, effectively promote the readwrite performance of memory storage.
To achieve these goals, the invention provides a kind of method for optimizing resources of memory storage, described method comprises:
The IO pause command that Receiving Host application sends, described IO pause command carries business hours interval parameter and resource reclaim intensive parameter;
Corresponding Resource reclaiming is performed according to described business hours interval parameter and resource reclaim intensive parameter.
According to the method for optimizing resources of memory storage of the present invention, the described step performing corresponding Resource reclaiming according to described time interval parameter and resource reclaim intensive parameter comprises: within the time that described IO suspends, perform corresponding described Resource reclaiming.
According to the method for optimizing resources of memory storage of the present invention, described method also comprises:
Record interval parameter of described business hours, if the business quiescent interval of current reception be greater than described in business quiescent interval of having recorded, then increase interval parameter of described business hours;
The business quiescent interval of having recorded described in if the business quiescent interval of current reception is less than, then reduce interval parameter of described business hours.
According to the method for optimizing resources of memory storage of the present invention, described memory storage is solid state hard disc.
According to the method for optimizing resources of memory storage of the present invention, described resource reclaim intensive parameter is garbage reclamation intensive parameter.
The present invention also provides a kind of controller of memory storage accordingly, comprising:
Receiver module, for the IO pause command that Receiving Host application sends, described IO pause command carries business hours interval parameter and resource reclaim intensive parameter;
Algorithm execution module, performs corresponding Resource reclaiming according to described business hours interval parameter and resource reclaim intensive parameter.
According to the controller of memory storage of the present invention, described algorithm execution module performs corresponding described Resource reclaiming within the time that described IO suspends.
According to the controller of memory storage of the present invention, described controller also comprises:
Logging modle, for recording interval parameter of described business hours;
Adjusting module, during the business quiescent interval of having recorded described in being greater than for business quiescent interval of current reception, increases interval parameter of described business hours; And/or the business quiescent interval of current reception be less than described in recorded the business quiescent interval time, reduce the described business hours interval parameter.
According to the controller of memory storage of the present invention, the controller of described memory storage is the controller of solid state hard disc.
According to the controller of memory storage of the present invention, described resource reclaim intensive parameter is garbage reclamation intensive parameter.
The present invention is by main frame when running noncontinuity business, and the time of having a rest betwixt directly issues IO pause command by this service application layer, makes memory storage suspend IO accessing operation.Be more preferably, the IO pause command that main frame issues comprises business hours interval parameter and resource reclaim intensive parameter, memory storage can select the Resource reclaiming more optimized to perform resource reclaim according to these parameters in the time that IO suspends, make memory storage have the configuration more optimized whereby, effectively promote the readwrite performance of memory storage.
Accompanying drawing explanation
Fig. 1 is the structural representation of the controller of the memory storage of one embodiment of the invention;
Fig. 2 is the method for optimizing resources process flow diagram of the memory storage of one embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Embodiment shown in Figure 1, the invention provides a kind of controller of memory storage, and the present embodiment take memory storage as solid state hard disc for example is illustrated.Controller 100 is solid-state hard disk controller, and it is connected with main frame 200, and this controller 100 comprises receiver module 10 and algorithm execution module 20.
In embody rule, main frame 200 is in some specific service application of operation, described specific applied business access IO has regular hour periodic law, when the IO access interval of this application, main frame 200 issues the IO pause command of application to controller 100, controller 100 receives this IO pause command by receiver module 10, it should be noted that, carries business hours interval parameter and resource reclaim intensive parameter in above-mentioned IO pause command.After controller 100 receives this order, algorithm execution module 20 performs corresponding Resource reclaiming according to the business hours interval parameter received and resource reclaim intensive parameter.Better, according to business hours interval parameter, controller 100 can know when service application can send IO again, optimal algorithm can be adopted whereby to carry out Resource recovery, and when application recovery sends IO, controller 100 will better response application.
Needs illustrate, algorithm execution module 20 performs optimized Resource reclaiming within the time that IO suspends, when application recovery IO accesses, algorithm execution module 20 performs the Resource reclaiming when application access IO, controller 100 of the present invention is made to make full use of the time interval of specific transactions whereby, select optimum Resource reclaiming, make the configuration that resource is more optimized, improve the readwrite performance of memory storage.
Preferably, controller 100 also comprises logging modle 30 and adjusting module 40.When main frame 200 first time sends IO pause command, logging modle 30 records its business hours interval parameter of carrying.When controller 100 receives the IO pause command of the business of related application again, if the business quiescent interval of current reception is greater than the business quiescent interval of having recorded, adjusting module 40 increases business hours interval parameter, the business quiescent interval of having recorded described in if the business quiescent interval of current reception is less than, then adjusting module 40 reduces business hours interval parameter, ensures the time consistency that the time out of IO and optimization algorithm perform whereby.
For garbage reclamation, existing solid-state hard disk controller is generally adopt dynamic garbage collection algorithms to reclaim bad block.Its algorithm is generally ensure basic access performance when there being lasting I/O request, and has certain discrimination standard, when adopts which kind of mode which block to carry out garbage reclamation to, after system blank page reaches certain numerical value, just no longer reclaim invalid page.In garbage reclamation application of the present invention, by the time interval of accessing at IO, directly issue garbage reclamation collating order by main frame 200, and bring the parameter of time interval and recovery intensity, controller 100 starts corresponding garbage collection algorithms according to these parameters.Make memory storage strengthen garbage reclamation dynamics in business interval whereby, ensure the postrun readwrite performance of business recovery.
See Fig. 2, the invention provides a kind of method for optimizing resources of memory storage, it can be realized by the controller of memory storage as shown in Figure 1, and memory storage is preferably solid state hard disc, and described method comprises:
Step S201, the IO pause command that the application of receiver module 10 Receiving Host 200 sends, described IO pause command carries business hours interval parameter and resource reclaim intensive parameter.Concrete, business hours interval parameter includes the time out of IO access and release time etc., and resource reclaim can be specifically the garbage reclamation to memory storage, and its intensive parameter comprises the executing garbage of needs recovery or the number of page.
Step S202, algorithm execution module 20 performs corresponding Resource reclaiming according to described business hours interval parameter and resource reclaim intensive parameter.In embody rule, controller 100 keeps a Resource reclaiming when the service application of main frame 200 continued access IO, when it receives IO pause command, then select in addition to perform the Resource reclaiming more optimized according to its time interval parameter of carrying and resource reclaim intensive parameter, greatly optimize the resource distribution of storage device whereby.
In embody rule, when main frame 200 first time sends IO pause command, controller 100 logging modle 30 records its business hours interval parameter of carrying.When controller 100 receives the IO pause command of the business of related application again, if the business quiescent interval of current reception is greater than the business quiescent interval of having recorded, controller increases business hours interval parameter by adjusting module 40, the business quiescent interval of having recorded described in if the business quiescent interval of current reception is less than, then adjusting module 40 reduces business hours interval parameter, ensures the time consistency that the time out of IO and optimization algorithm perform whereby.
In sum, the present invention is by main frame when running noncontinuity business, and the time of having a rest betwixt directly issues IO pause command by this service application layer, makes memory storage suspend IO accessing operation.Be more preferably, the IO pause command that main frame issues comprises business hours interval parameter and resource reclaim intensive parameter, memory storage can select the Resource reclaiming more optimized to perform resource reclaim according to these parameters in the time that IO suspends, make memory storage have the configuration more optimized whereby, effectively promote the readwrite performance of memory storage.
Certainly; the present invention also can have other various embodiments; when not deviating from the present invention's spirit and essence thereof; those of ordinary skill in the art are when making various corresponding change and distortion according to the present invention, but these change accordingly and are out of shape the protection domain that all should belong to the claim appended by the present invention.

Claims (8)

1. a method for optimizing resources for memory storage, is characterized in that, described method comprises:
The IO pause command that Receiving Host application sends, described IO pause command carries business hours interval parameter and resource reclaim intensive parameter;
Corresponding Resource reclaiming is performed according to described business hours interval parameter and resource reclaim intensive parameter;
Corresponding described Resource reclaiming is performed, Resource reclaiming when performing at application access IO after recovering IO within the time that described IO suspends.
2. the method for optimizing resources of memory storage according to claim 1, is characterized in that, described method also comprises:
Record interval parameter of described business hours, if the business quiescent interval of current reception be greater than described in business quiescent interval of having recorded, then increase interval parameter of described business hours;
The business quiescent interval of having recorded described in if the business quiescent interval of current reception is less than, then reduce interval parameter of described business hours.
3. the method for optimizing resources of memory storage according to claim 1, is characterized in that, described memory storage is solid state hard disc.
4. the method for optimizing resources of memory storage according to claim 1, is characterized in that, described resource reclaim intensive parameter is garbage reclamation intensive parameter.
5. a controller for memory storage, is characterized in that, comprising:
Receiver module, for the IO pause command that Receiving Host application sends, described IO pause command carries business hours interval parameter and resource reclaim intensive parameter;
Algorithm execution module, performs corresponding Resource reclaiming according to described business hours interval parameter and resource reclaim intensive parameter;
Described algorithm execution module performs corresponding described Resource reclaiming within the time that described IO suspends, Resource reclaiming when performing at application access IO after recovering IO.
6. the controller of memory storage according to claim 5, is characterized in that, described controller also comprises:
Logging modle, for recording interval parameter of described business hours;
Adjusting module, during the business quiescent interval of having recorded described in being greater than for business quiescent interval of current reception, increases interval parameter of described business hours; And/or the business quiescent interval of current reception be less than described in recorded the business quiescent interval time, reduce the described business hours interval parameter.
7. the controller of memory storage according to claim 5, is characterized in that, the controller of described memory storage is the controller of solid state hard disc.
8. the controller of memory storage according to claim 5, is characterized in that, described resource reclaim intensive parameter is garbage reclamation intensive parameter.
CN201210280000.2A 2012-08-08 2012-08-08 The controller of memory storage and method for optimizing resources Expired - Fee Related CN102855198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210280000.2A CN102855198B (en) 2012-08-08 2012-08-08 The controller of memory storage and method for optimizing resources

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210280000.2A CN102855198B (en) 2012-08-08 2012-08-08 The controller of memory storage and method for optimizing resources

Publications (2)

Publication Number Publication Date
CN102855198A CN102855198A (en) 2013-01-02
CN102855198B true CN102855198B (en) 2016-03-23

Family

ID=47401799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210280000.2A Expired - Fee Related CN102855198B (en) 2012-08-08 2012-08-08 The controller of memory storage and method for optimizing resources

Country Status (1)

Country Link
CN (1) CN102855198B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107870877B (en) * 2016-09-23 2024-04-23 伊姆西Ip控股有限责任公司 Method and system for managing data access in a storage system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281458A (en) * 2008-05-14 2008-10-08 华为技术有限公司 Apparatus, system and for recycling rubbish
CN102147767A (en) * 2011-04-26 2011-08-10 记忆科技(深圳)有限公司 Method and system for dynamically adjusting solid state disk garbage collection parameters

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8880775B2 (en) * 2008-06-20 2014-11-04 Seagate Technology Llc System and method of garbage collection in a memory device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101281458A (en) * 2008-05-14 2008-10-08 华为技术有限公司 Apparatus, system and for recycling rubbish
CN102147767A (en) * 2011-04-26 2011-08-10 记忆科技(深圳)有限公司 Method and system for dynamically adjusting solid state disk garbage collection parameters

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
A semi-preemptive garbage collector for solid state drives;Junghee Lee 等;《Performance Analysis of Systems and Software (ISPASS), 2011 IEEE International Symposium on》;20110412;全文 *

Also Published As

Publication number Publication date
CN102855198A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
US9940261B2 (en) Zoning of logical to physical data address translation tables with parallelized log list replay
EP2921963B1 (en) Memory recycling method and device
US8521949B2 (en) Data deleting method and apparatus
US9298578B2 (en) Method and apparatus for power loss recovery in a flash memory-based SSD
EP2778889B1 (en) Dynamic storage device provisioning
EP2733617A1 (en) Data buffer device, data storage system and method
TWI569139B (en) Valid data merging method, memory controller and memory storage apparatus
CN111007991B (en) Method for separating read-write requests based on NVDIMM and computer thereof
CN105573681A (en) Method and system for establishing RAID in SSD
EP3196767B1 (en) Method for writing data into flash memory device, flash memory device and storage system
CN102945207A (en) Cache management method and system for block-level data
CN108089825B (en) Storage system based on distributed cluster
CN103744611A (en) Computer system based on solid state disc as cache and cache accelerating method
CN103744798A (en) Garbage recycling method of solid state discs
CN103049224A (en) Method, device and system for importing data into physical tape
CN108874574B (en) Garbage recycling method and related device
US20120331235A1 (en) Memory management apparatus, memory management method, control program, and recording medium
CN108563586B (en) Method for separating garbage recovery data and user data in solid-state disk
CN103077118A (en) Method and system for recovering invalid data
KR101077901B1 (en) Apparatus and method for managing flash memory using log block level mapping algorithm
US10585592B2 (en) Disk area isolation method and device
CN102855198B (en) The controller of memory storage and method for optimizing resources
CN105138277A (en) Cache management method for solid-state disc array
CN103942006B (en) Double-disk data quick access method and system
WO2024130890A1 (en) Solid state drive garbage collection method, solid state drive garbage collection acceleration apparatus, and device and computer medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160323