CN113238647A - Energy-saving time-sharing control method for storage - Google Patents
Energy-saving time-sharing control method for storage Download PDFInfo
- Publication number
- CN113238647A CN113238647A CN202110598396.4A CN202110598396A CN113238647A CN 113238647 A CN113238647 A CN 113238647A CN 202110598396 A CN202110598396 A CN 202110598396A CN 113238647 A CN113238647 A CN 113238647A
- Authority
- CN
- China
- Prior art keywords
- disk
- data
- ssd
- storage
- energy
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000012546 transfer Methods 0.000 claims abstract description 13
- 230000005611 electricity Effects 0.000 claims abstract description 8
- 238000001514 detection method Methods 0.000 claims description 13
- 239000007787 solid Substances 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000005265 energy consumption Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004134 energy conservation Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013403 standard screening design Methods 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/325—Power saving in peripheral device
- G06F1/3268—Power saving in hard disk drive
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3293—Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/061—Improving I/O performance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/0647—Migration mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
- G06F3/0674—Disk device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Power Sources (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The invention discloses an energy-saving time-sharing control method for storage, which comprises the following steps: firstly, controlling the writing of data through an algorithm; when data is written, the data is directly written into an SSD disk; detecting that the storage space of the SSD disk is full, and transferring the data content to the HDD disk by the SSD disk; if the storage space of the SSD is detected to be not full, continuing to wait for data to be written; detecting that the SSD disk transfers data to the HDD disk if in a valley period (low electricity charge); detecting if the data is in a peak period (high electricity charge), directly writing the data into an SSD disk; and after the data transfer is finished, stopping or reducing the operation state of the HDD disk. According to the energy-saving time-sharing control method for storage, the content in the SSD is transferred to the HDD during the peak-valley period of power consumption and when the power fee is low, meanwhile, the advantages of the HDD and the SSD are combined, the policy of the state during the peak-valley period of power consumption is responded, the power cost of a user is reduced, and the energy-saving effect is achieved.
Description
Technical Field
The invention relates to the technical field of data storage, in particular to an energy-saving time-sharing control method for storage.
Background
In the era of high-speed development of the internet, the information output speed is increased by exponential multiplying power, the corresponding storage requirements are more and more increased, the existing storage Hard disks are divided into two types, namely a Hard Disk Drive (HDD) and a fixed Hard Disk Drive (SSD), and the HDD generally has large storage capacity, is low in unit capacity price, but is high in power consumption and low in read-write speed; compared to HDDs, SSDs have low power consumption and fast read and write rates, but have lower capacity and higher price per unit capacity.
In the background of the prior art, one or two parallel modes are mostly selected for writing data, and in the actual working process, the power consumption at different time intervals is different, and the data writing is performed by adopting different modes at different time intervals of the power consumption, so that not only can the energy consumption be increased, but also the waste of hard disk data is caused, and therefore, an energy-saving time-sharing control method for storage is provided so as to solve the problems provided in the prior art.
Disclosure of Invention
The invention aims to provide an energy-saving time-sharing control method for storage, which aims to solve the problems that in the prior art, in the actual working process, the power consumption at different time intervals is different, and data writing is carried out in different modes at different time intervals, so that the energy consumption is increased and the hard disk data is wasted.
In order to achieve the purpose, the invention provides the following technical scheme: a power-saving time-sharing control method for storage, the storage control method comprising the steps of:
the method comprises the following steps: firstly, controlling the writing of data through an algorithm;
step two: when data is written, the data is directly written into an SSD (solid state disk);
step three: detecting whether the storage space of the SSD is full;
step four: in the third step, if the storage space of the SSD disk is full, the SSD disk transfers certain spatial data content to an HDD disk (mechanical hard disk);
step five: if the SSD disk storage space is not full in the step three, continuing to wait for data writing;
step six: detecting the peak and valley of the power consumption by detecting a time-sharing power rate system in a timing manner;
step seven: detecting in step six that if the data is in a valley period (low electricity charge), transferring the data of the SSD disk to the HDD disk;
step eight: if the detection in the sixth step is in a peak period (high electric charge), the data is directly written into the SSD disc;
step nine: after the data transfer in the step seven is finished, stopping or reducing the running state of the HDD disk;
step ten: and repeating the second step to the ninth step.
Preferably, the capacities (Tb) of the SSD disk (solid state disk) and the HDD disk (mechanical hard disk) are in accordance with 5: the ratio of 200.
Preferably, in the seventh step, when the power consumption peak and valley occur, the SSD disk data is migrated to the HDD disk by the time-sharing control algorithm.
Preferably, in the step eight, during the peak period of power consumption, data is written into the SSD disk, and the mechanical hard disk is in a sleep state or a low-speed operation state at this time.
Preferably, in the third step, the storage space of the SSD disk is dynamically detected in a full load state based on the memory space detection unit.
Preferably, the data transfer priority detected by the SSD disk full load state in the fourth step is higher than the data transfer priority detected by the power state in the seventh step.
Compared with the prior art, the invention has the beneficial effects that: according to the energy-saving time-sharing control method for storage, the content in the SSD is transferred to the HDD during the peak-valley period of power consumption and when the power fee is low, meanwhile, the advantages of the HDD and the SSD are combined, the policy of the state during the peak-valley period of power consumption is responded, the power cost of a user is reduced, and the energy-saving effect is achieved;
1. according to the scheme, the storage condition of the SSD can be detected in real time by dynamically detecting the full-load state of the space of the SSD, so that the data can be transferred in time, and the data cannot be written in;
2. in the scheme, the data migration of the SSD is carried out by using the electric quantity, so that the energy consumption in the peak period of power utilization can be reduced, and meanwhile, when the data do not move forwards, the HDD disk keeps dormant or runs at a low speed, thereby being beneficial to reducing the power cost and ensuring energy conservation.
Drawings
FIG. 1 is a flow chart of the data storage control operation of the present invention.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
Referring to fig. 1, the present invention provides a technical solution: a power-saving time-sharing control method for storage, wherein storage control is operated by the steps of:
1. firstly, controlling the writing of data through an algorithm;
2. when data are written, the data are directly written into an SSD (solid state disk) through algorithm control;
3. detecting the full load state of the SSD disk storage space through a memory space detection unit;
4. if the detection result of the storage space of the SSD disk is full, transferring the internal data of the SSD disk to a certain space data content to an HDD disk (mechanical hard disk);
if the detection result of the storage space of the SSD disk is not full, continuing to wait for the write algorithm to control the data to be written into the SSD disk;
5. detecting the peak and valley of the power consumption by detecting a time-sharing power rate system in a timing manner;
6. if the electricity consumption detection structure is in a low valley period (low electricity charge), transferring certain spatial data content of the internal data of the SSD disk to the HDD disk;
if the electricity consumption detection structure is in a peak period (high electricity charge), continuing to wait for the writing algorithm to control the data to be written into the SSD disk, and meanwhile, enabling the HDD disk to be in a dormant state or a low-speed running state;
7. repeatedly carrying out the steps to ensure the operation of the storage writing system;
the data transfer priority of the SSD disk full load state detection is higher than the data transfer priority of the electric quantity state detection in step seven, that is, when the SSD disk data is detected to be full load state, the data transfer is directly performed, so that the SDD disk can be ensured to continuously and stably perform data writing, and data omission is avoided, which is the whole working process of the energy-saving time-sharing control method for storage.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules 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 application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and all the changes or substitutions should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (6)
1. An energy-saving time-sharing control method for storage is characterized in that: the storage control method comprises the following steps:
the method comprises the following steps: firstly, controlling the writing of data through an algorithm;
step two: when data is written, the data is directly written into an SSD (solid state disk);
step three: detecting whether the storage space of the SSD is full;
step four: in the third step, if the storage space of the SSD disk is full, the SSD disk transfers certain spatial data content to an HDD disk (mechanical hard disk);
step five: if the SSD disk storage space is not full in the step three, continuing to wait for data writing;
step six: detecting the peak and valley of the power consumption by detecting a time-sharing power rate system in a timing manner;
step seven: detecting in step six that if the data is in a valley period (low electricity charge), transferring the data of the SSD disk to the HDD disk;
step eight: if the detection in the sixth step is in a peak period (high electric charge), the data is directly written into the SSD disc;
step nine: after the data transfer in the step seven is finished, stopping or reducing the running state of the HDD disk;
step ten: and repeating the second step to the ninth step.
2. The energy-saving time-sharing control method for storage according to claim 1, characterized in that: the capacity (Tb) of the SSD disk (solid state disk) and the HDD disk (mechanical hard disk) is as follows 5: the ratio of 200.
3. The energy-saving time-sharing control method for storage according to claim 1, characterized in that: and seventhly, when the power utilization peak valley occurs, migrating the SSD disk data to the HDD disk through the operation of the time-sharing control algorithm.
4. The energy-saving time-sharing control method for storage according to claim 1, characterized in that: and in the eighth step, during the peak period of power utilization, data is written into the SSD, and the mechanical hard disk is in a dormant state or a low-speed running state at the same time.
5. The energy-saving time-sharing control method for storage according to claim 1, characterized in that: and in the third step, the storage space of the SSD is dynamically detected in a full-load state based on the memory space detection unit.
6. The energy-saving time-sharing control method for storage according to claim 1, characterized in that: and in the fourth step, the data transfer priority of the SSD disk full load state detection is higher than the data transfer priority of the SSD disk full load state detection in the seventh step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110598396.4A CN113238647A (en) | 2021-05-31 | 2021-05-31 | Energy-saving time-sharing control method for storage |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110598396.4A CN113238647A (en) | 2021-05-31 | 2021-05-31 | Energy-saving time-sharing control method for storage |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113238647A true CN113238647A (en) | 2021-08-10 |
Family
ID=77135811
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110598396.4A Pending CN113238647A (en) | 2021-05-31 | 2021-05-31 | Energy-saving time-sharing control method for storage |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113238647A (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662459A (en) * | 2012-04-22 | 2012-09-12 | 复旦大学 | Method for reducing energy consumption of server by using mixed storage of solid-state drive and mechanical hard disk |
CN103186350A (en) * | 2011-12-31 | 2013-07-03 | 北京快网科技有限公司 | Hybrid storage system and hot spot data block migration method |
CN104102454A (en) * | 2013-04-07 | 2014-10-15 | 杭州信核数据科技有限公司 | Method for automatically realizing hierarchical storage and system for managing hierarchical storage |
CN104698309A (en) * | 2014-12-26 | 2015-06-10 | 深圳市兰丁科技有限公司 | Method and system for acquiring power consumption information |
CN107315540A (en) * | 2017-06-13 | 2017-11-03 | 深圳神州数码云科数据技术有限公司 | A kind of AUTOMATIC ZONING storage method and system |
CN110515549A (en) * | 2019-08-16 | 2019-11-29 | 浪潮电子信息产业股份有限公司 | A kind of data migration method and device |
CN111352590A (en) * | 2020-02-26 | 2020-06-30 | 上海霄云信息科技有限公司 | File storage method and equipment |
-
2021
- 2021-05-31 CN CN202110598396.4A patent/CN113238647A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103186350A (en) * | 2011-12-31 | 2013-07-03 | 北京快网科技有限公司 | Hybrid storage system and hot spot data block migration method |
CN102662459A (en) * | 2012-04-22 | 2012-09-12 | 复旦大学 | Method for reducing energy consumption of server by using mixed storage of solid-state drive and mechanical hard disk |
CN104102454A (en) * | 2013-04-07 | 2014-10-15 | 杭州信核数据科技有限公司 | Method for automatically realizing hierarchical storage and system for managing hierarchical storage |
CN104698309A (en) * | 2014-12-26 | 2015-06-10 | 深圳市兰丁科技有限公司 | Method and system for acquiring power consumption information |
CN107315540A (en) * | 2017-06-13 | 2017-11-03 | 深圳神州数码云科数据技术有限公司 | A kind of AUTOMATIC ZONING storage method and system |
CN110515549A (en) * | 2019-08-16 | 2019-11-29 | 浪潮电子信息产业股份有限公司 | A kind of data migration method and device |
CN111352590A (en) * | 2020-02-26 | 2020-06-30 | 上海霄云信息科技有限公司 | File storage method and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Kaushik et al. | Evaluation and analysis of greenhdfs: A self-adaptive, energy-conserving variant of the hadoop distributed file system | |
Bostoen et al. | Power-reduction techniques for data-center storage systems | |
Douglis et al. | Thwarting the Power-Hungry Disk. | |
CN100541410C (en) | Disk drive system | |
Freitas et al. | Storage-class memory: The next storage system technology | |
CN111367469B (en) | Method and system for migrating layered storage data | |
CN103229136B (en) | Disk array brush method and disk array brush device | |
CN101446857B (en) | Method for energy saving of hard disks and device thereof | |
US20090240881A1 (en) | System and Method for Information Handling System Operation With Different Types of Permanent Storage Devices | |
US20150095671A1 (en) | Method and apparatus for managing power of a storage system | |
CN104731515B (en) | Control the method and apparatus of storage device group of planes abrasion equilibrium | |
CN110515549B (en) | Data migration method and device | |
CN103514084A (en) | Test method for reflecting hard-disk read-write energy efficiency of computer equipment | |
Llopis et al. | Survey of energy-efficient and power-proportional storage systems | |
JP2003108317A (en) | Storage system | |
CN103914325A (en) | Shutdown method, booting method, shutdown system and booting system for Linux system on basis of hybrid memories | |
CN1177279C (en) | DRAM data maintaining method and relative device | |
CN103927215A (en) | kvm virtual machine scheduling optimization method and system based on memory disk and SSD disk | |
Chen et al. | CacheRAID: An efficient adaptive write cache policy to conserve RAID disk array energy | |
CN113238647A (en) | Energy-saving time-sharing control method for storage | |
Otoo et al. | Dynamic data reorganization for energy savings in disk storage systems | |
CN103176813A (en) | Method for dormancy mechanism and computer system thereof | |
Bisson et al. | Reducing energy consumption using a non-volatile storage cache | |
Chen et al. | An energy-efficient and reliable storage mechanism for data-intensive academic archive systems | |
Zhan et al. | Vehicle data management with specific wear-levelling and fault tolerance for hybrid DRAM-NVM 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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 276000 3 / F, Yimeng cloud Valley incubator, 200m west of the intersection of Hefei Road and Volvo Road, Linyi Economic and Technological Development Zone, Linyi City, Shandong Province Applicant after: Shandong Zhongke Haoliang Basic Software Technology Co.,Ltd. Address before: 276000 3 / F, Yimeng cloud Valley incubator, 200m west of the intersection of Hefei Road and Volvo Road, Linyi Economic and Technological Development Zone, Linyi City, Shandong Province Applicant before: Shandong Zhongke Haoliang Technology Co.,Ltd. |