CN106775500A - A kind of method and apparatus of hard disc of computer storage file - Google Patents

A kind of method and apparatus of hard disc of computer storage file Download PDF

Info

Publication number
CN106775500A
CN106775500A CN201710073360.8A CN201710073360A CN106775500A CN 106775500 A CN106775500 A CN 106775500A CN 201710073360 A CN201710073360 A CN 201710073360A CN 106775500 A CN106775500 A CN 106775500A
Authority
CN
China
Prior art keywords
file
volume group
hard disc
solid state
state hard
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
CN201710073360.8A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710073360.8A priority Critical patent/CN106775500A/en
Publication of CN106775500A publication Critical patent/CN106775500A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • G06F3/0611Improving I/O performance in relation to response time
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a kind of method and apparatus of hard disc of computer storage file, computer system can set up solid state hard disc volume group and storage volume group according to the volume group rule for setting, wherein, solid state hard disc volume group is only made up of solid state hard disc, to ensure the high-performance of solid state hard disc.Compared to solid state hard disc volume group, the unit memory capacity price of storage volume group is relatively low, system for computer file can be initially deposited in storage volume group, by determining the file i.e. file destination high for hard disk performance requirement from system file, can be moved or copied in solid state hard disc volume group, and the path of the solid state hard disc volume group is set to the accessed path of the file destination, the high performance requirements of such file destination are met with this, such that it is able to the service efficiency of effectively lifting solid state hard disc and mechanical hard disk.

Description

A kind of method and apparatus of hard disc of computer storage file
Technical field
The present invention relates to field of computer technology, more particularly to a kind of method of hard disc of computer storage file and dress Put.
Background technology
With the development of information technology, the application in computer server field also becomes more and more extensive.Lead in the calculation Will be by hard disk come data storage, the mini memory card application being made up of various flash memories currently on the market is very extensive, its In there are a kind of special flash memories to employ the ide interface of standard, therefore be referred to as " solid state hard disc ", it possesses remote super machine The continuous read or write speed and random read-write speed of tool hard disk, using widely in the equipment such as computer.But largely use When solid state hard disc carries out data storage, its cost is still many times of mechanical hard disk, and the huge company of data scale cannot undertake entirely Portion uses the cost of solid state hard disc.Mechanical hard disk due to its low cost, capacity is big the features such as, still sent out in Computer Storage data Wave important function.
Reasonable employment solid state hard disc and mechanical hard disk, the characteristics of give full play to solid state hard disc and mechanical hard disk, can be effective Reduction hard disc of computer cost, and lift the performance of computer system.But in traditional approach, generally by solid state hard disc and Mechanical hard disk regards same memory as, is lumped together in logical partition, the not differentiation of essence in application method, This reduces the use value of solid state hard disc to a certain extent.
It can be seen that, how giving full play to the advantage of solid state hard disc and mechanical hard disk, lifting solid state hard disc and mechanical hard disk make It is those skilled in the art's problem demanding prompt solution with efficiency.
The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method and apparatus of hard disc of computer storage file, can fully send out The service efficiency of the characteristics of waving solid state hard disc and mechanical hard disk, lifting solid state hard disc and mechanical hard disk.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of method of hard disc of computer storage file, it is described Hard disc of computer includes solid state hard disc and mechanical hard disk, and methods described includes:
According to the volume group rule for setting, solid state hard disc volume group and storage volume group are set up, the solid state hard disc volume group is by described Solid state hard disc is constituted, and the storage volume group is used for storage system file;
Determine file destination from the system file;
The file destination is moved or copied to the solid state hard disc volume group from the storage volume group, and by the solid-state The path of hard disk volume group is set to the accessed path of the file destination.
Optionally, it is described to determine that file destination includes from the system file:
Calculate predetermined file frequency of use at the appointed time;Included in the predetermined file system file Specified file;
Judge that whether the frequency of use of the predetermined file, more than high frequency threshold value, if being more than, the predetermined file is made It is file destination.
Optionally, the predetermined file frequency of use at the appointed time that calculates includes:
The statistics number of times that the predetermined file is called at the appointed time, the frequency of use of the predetermined file is equal to institute The called number of times of predetermined file is stated divided by the stipulated time.
Optionally, it is described to determine that file destination includes from the system file:
Judge whether the predetermined file has high frequency file identification;The predetermined file be the system file in include Specified file;
If the predetermined file has the high frequency file identification, using the predetermined file as file destination.
Optionally, the file destination is moved or copied to the solid state hard disc volume from the storage volume group described Group, and the path of the solid state hard disc volume group is set to after the accessed path of the file destination, also include:
Calculate frequency of use of the file destination in Preset Time;
When the frequency of use of the file destination is less than or equal to low frequency threshold value, then by the file destination from described solid State hard disk volume group is moved back to the storage volume group, and the path of the storage volume group is set to the lookup road of the file destination Footpath.
Optionally, copying the file destination to the solid state hard disc volume group from the storage volume group, and will be described The path of solid state hard disc volume group is set to after the accessed path of the file destination, is also included:
After Preset Time is reached, judge whether the file destination has low frequency file identification;
If the file destination has the low frequency file identification, by the file destination from the solid state hard disc volume group The storage volume group is moved back to, and the path of the storage volume group is set to the accessed path of the file destination.
The embodiment of the present invention also provides a kind of device of hard disc of computer storage file, and the hard disc of computer includes solid-state Hard disk and mechanical hard disk, described device include setting up unit, determining unit, execution unit:
It is described to set up unit, it is described solid for according to the volume group rule for setting, setting up solid state hard disc volume group and storage volume group State hard disk volume group is made up of the solid state hard disc, and the storage volume group is used for storage system file;
The determining unit, for determining file destination from the system file;
The execution unit, for the file destination to be moved or copied into the solid state hard disc from the storage volume group Volume group, and the path of the solid state hard disc volume group is set to the accessed path of the file destination.
Optionally, the determining unit includes computation subunit and judgment sub-unit:
The computation subunit, for calculating predetermined file frequency of use at the appointed time;The predetermined file is The specified file included in the system file;
The judgment sub-unit, for whether judging the frequency of use of the predetermined file more than high frequency threshold value, if being more than, Then using the predetermined file as file destination.
Optionally, the computation subunit specifically for statistics at the appointed time the predetermined file it is called time Number, the frequency of use of the predetermined file is equal to the called number of times of the predetermined file divided by the stipulated time.
Optionally, the determining unit is specifically for judging whether the predetermined file has high frequency file identification;It is described Predetermined file is the specified file included in the system file;If the predetermined file has the high frequency file identification, Using the predetermined file as file destination.
Optionally, described device also includes computing unit and is moved back to unit:
The computing unit, for calculating frequency of use of the file destination in Preset Time;
When the frequency of use of the file destination is less than or equal to low frequency threshold value, then unit is moved back to described in triggering, it is described Unit is moved back to, for the file destination to be moved back into the storage volume group from the solid state hard disc volume group, and by the storage volume The path of group is set to the accessed path of the file destination.
Optionally, described device also includes judging unit and is moved back to unit:
The computing unit is triggered after Preset Time is reached, the judging unit, for judging that the file destination is It is no with low frequency file identification;
If the file destination has a low frequency file identification, triggering is described to be moved back to unit, described to be moved back to unit, use In the file destination is moved back into the storage volume group from the solid state hard disc volume group, and the path of the storage volume group is set It is the accessed path of the file destination.
By above-mentioned technical proposal as can be seen that computer system can set up solid state hard disc according to the volume group rule for setting Volume group and storage volume group, wherein, solid state hard disc volume group is only made up of solid state hard disc, to ensure the high-performance of solid state hard disc.Compare In solid state hard disc volume group, the unit memory capacity price of storage volume group is relatively low, namely the carrying cost of storage volume group is relatively low, calculates The system file of machine can be initially deposited in storage volume group, by determining file destination from system file, the class file Performance requirement to hard disk is higher, or perhaps the class file be called frequently, it is necessary to store the class file hard disk have compared with Fast processing speed, because solid state hard disc volume group has performance higher, so, can be by file destination from the storage volume group The solid state hard disc volume group is moved or copied to, and the path of the solid state hard disc volume group is set to looking into for the file destination Path is looked for, the high performance requirements of such file destination are met with this.It can be seen that, by above-mentioned technical proposal, can give full play to solid The advantage of state hard disk and mechanical hard disk, the file low for hard disk performance requirement is stored in storage volume group, for hard disk performance It is required that file high can be moved or copied in solid state hard disc volume group, so as to effectively lift solid state hard disc and mechanical hard disk Service efficiency.
Brief description of the drawings
In order to illustrate more clearly the embodiments of the present invention, the accompanying drawing to be used needed for embodiment will be done simply below Introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill people For member, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of flow chart of the method for hard disc of computer storage file provided in an embodiment of the present invention;
Fig. 2 is a kind of structural representation of the device of hard disc of computer storage file provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on this Embodiment in invention, those of ordinary skill in the art are not under the premise of creative work is made, and what is obtained is every other Embodiment, belongs to the scope of the present invention.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description The present invention is described in further detail.
Hard disk is the topmost storage device of computer, and hard disk can include mechanical hard disk and solid state hard disc.It is mechanical hard Disk capacity is big, low cost, but its performance is low, and processing speed is slow, and compared to mechanical hard disk, the performance of solid state hard disc is high, treatment speed Degree is fast, and corresponding its cost can be higher.
In actual applications, if total data is all put into solid state hard disc, cost can be caused significantly to rise.If In order to cost-effective, total data is all put into mechanical hard disk, in data call peak period, due to the treatment speed of mechanical hard disk Degree is limited, is likely encountered computing power bottleneck.Data are typically stored in the form of a file in a computer, if only relied on Supervisor judges which kind of file is stored in mechanical hard disk, and which kind of file is stored in solid state hard disc, then seeming underaction and lacks Foundation, it is impossible to play the advantage of mechanical hard disk and solid state hard disc well.
If can be according to mechanical hard disk and the respective advantage of solid state hard disc, reasonable distribution system file be in hard disc of computer Storage location, by great elevating mechanism hard disk and the service efficiency of solid state hard disc.
Therefore, the embodiment of the invention provides a kind of method and apparatus of hard disc of computer storage file, it is mainly used in Include the computer of solid state hard disc and mechanical hard disk simultaneously, computer system can set up solid according to the volume group rule for setting State hard disk volume group and storage volume group, wherein, solid state hard disc volume group is only made up of solid state hard disc, to ensure the property high of solid state hard disc Energy.Compared to solid state hard disc volume group, the unit memory capacity price of storage volume group is relatively low, namely storage volume group carrying cost compared with Low, system for computer file can be initially deposited in storage volume group.By the judgement to system file, for hard disk performance It is required that low file is still stored in storage volume group, the file high for hard disk performance requirement can be moved or copied to solid In state hard disk volume group, and the path of the solid state hard disc volume group is set to the accessed path of the file destination, is met with this The high performance requirements of such file destination, so that the effectively service efficiency of lifting solid state hard disc and mechanical hard disk.
Next, the method that a kind of hard disc of computer storage file that the embodiment of the present invention is provided is discussed in detail.Fig. 1 is A kind of flow chart of the method for hard disc of computer storage file provided in an embodiment of the present invention, the method includes:
S101:According to the volume group rule for setting, solid state hard disc volume group and storage volume group are set up.
The characteristics of in order to take into full account mechanical hard disk and solid state hard disc each, in embodiments of the present invention, can be by The mechanical hard disk and solid state hard disc that computer includes are classified, specifically, can be by setting up solid state hard disc volume group and depositing The mode for storing up volume group is classified to both hard disks.
Wherein, solid state hard disc volume group is only made up of solid state hard disc, to ensure the high-performance of solid state hard disc volume group.Storage volume group Can be used for storage system file, can be made up of mechanical hard disk, or be collectively constituted by mechanical hard disk and solid state hard disc, Compared to solid state hard disc volume group, the unit memory capacity price of storage volume group is relatively low, namely the carrying cost of storage volume group is relatively low. In embodiments of the present invention, can be by system for computer file default storage to storage volume group.
Volume group rule can be used to indicate that the foundation classified to mechanical hard disk and solid state hard disc, and the volume group rule can be with Be using single one piece of hard disk as a volume group, for example, include 2 pieces of solid state hard discs and 3 pieces of mechanical hard disks in a computer, According to volume group rule, 2 solid state hard disc volume groups and 3 storage volume groups can be set up accordingly.
The volume group rule can also be with raid-array (Redundant Array of Independent Disks, RAID) it is according to being configured, for example, can implemented using carrying high performance raid0 as volume group rule In, computer system can set up solid state hard disc volume group and storage volume group according to the raid0.Again for example, can be available to improve Property and reliability raid1 and raid5 combining form as the volume group rule.The volume group rule can also be with similar to The configuration mode of RAID is configured.
In the embodiment of the present invention, the concrete form for volume group rule is not limited, and can be dependent in practical operation Requirement selected.
S102:Determine file destination from the system file.
May there are one or more files in the system file higher to the performance requirement of hard disk, due to these texts Part is defaulted as being stored in storage volume group, and compared to solid state hard disc volume group, the processing speed of storage volume group is relatively low compared with i.e. performance slowly, So, these files can be shifted, solid state hard disc volume group can be transferred to from storage volume group, to meet these files To the performance requirement of hard disk in invoked procedure.
Before being shifted, it is necessary to first determine which file needs to be shifted from system file, in the present invention In implementation, will can need to carry out the staged files referred to as file destination.
Wherein, the determination mode of file destination can have various.A kind of mode can be with the frequency of use of file be according to According to the frequency of use of certain or some files is higher in system file, illustrates that the performance in this document invoked procedure to hard disk will Ask higher.
In actual applications, the system file number for being stored in computer is various, and many files and is not frequently used, That is the frequency of use of these files is relatively low, without being transferred in solid state hard disc volume group, so, target is being determined from system file During file, in order to lift the operating efficiency of computer system, unnecessary handling process in reduction computer system can be first right System file carries out preliminary screening.Specifically, can be using the specified corresponding file of subregion or store path as predetermined File, you can using by the specified file in system file as predetermined file, for example, can be by corresponding to certain Physical Extents File, as predetermined file, or using the file of certain logical partition as predetermined file, or is by certain storage road File corresponding to footpath is used as predetermined file.Such that it is able to determine file destination from the predetermined file, computer is reduced with this System is it is determined that handling process unnecessary during file destination.
In implementing, can be by calculating predetermined file frequency of use at the appointed time;Judge described predetermined Whether the frequency of use of file is more than high frequency threshold value, if being more than, using the predetermined file as file destination.
For example, high frequency threshold value can be used to indicate that the one of the frequency of use of the file destination being stored in storage volume group Individual higher limit, when the frequency of use of file destination is more than the high frequency threshold value, illustrates that the performance of now storage volume group cannot The file destination is met, it is necessary to file destination is transferred in solid state hard disc volume group.
Often have multiple in view of the file number included in predetermined file, in order to ensure to include in predetermined file each File under same standard, can be specified by setting in embodiments of the present invention in the frequency of use of calculation document Time, the frequency of use of each file for thus calculating is the frequency of use of the file in stipulated time section.
Wherein, the number of times that the frequency of use of file can be called by file reflects, can be pre- in implementing Each file for determining to be included in file sets corresponding counter, is called for counting the predetermined file at the appointed time Number of times, the frequency of use of the predetermined file is equal to number of times that the predetermined file is called divided by the stipulated time.
The length of the stipulated time can determine according to actual requirement, not limit herein.In view of in the different time In section, the frequency of use of file it may happen that change, so, in the present invention is implemented, the stipulated time can regard one as Individual cycle time, for example, will be set to the stipulated time 10 seconds, computer system can be every 10 seconds, to being included in predetermined file Each file carry out the calculating of first use frequency.By taking a file as an example, this document in a stipulated time has often been calculated Frequency of use after, the counter of this document can automatic clear, count file in next stipulated time again with this and adjusted Number of times.
In addition to the mode for determining file destination above by the frequency of use of calculation document, in the present invention is implemented, The form that can be identified by add file, is its addition high frequency text for example, some files can be selected by artificial mode Part is identified.Computer system can be by judging whether the predetermined file has high frequency file identification;If the predetermined file With the high frequency file identification, then using the predetermined file as file destination.
S103:The file destination is moved or copied to the solid state hard disc volume group from the storage volume group, and by institute The path for stating solid state hard disc volume group is set to the accessed path of the file destination.
File destination can be understood as the file higher to the performance requirement of hard disk, or perhaps the class file is frequent Call, it is necessary to store the hard disk of the class file with processing speed faster, compared to storage volume group, solid state hard disc volume group has Performance higher, so, file destination can be moved or copied to the solid state hard disc volume group from the storage volume group, with this Meet the high performance requirements of file destination.
By by file destination from as a example by moving to the solid state hard disc volume group from the storage volume group, the now file destination It is stored in solid state hard disc volume group, the file destination has not been included in storage volume group, due to general meeting default document in system It is stored in storage volume group, therefore, when this document is called, can be according to the path searching of the acquiescence file destination.In view of general The purpose that file destination moves in solid state hard disc volume group is that computer system can call the mesh from solid state hard disc volume group Mark file, performance requirement when file is called to hard disk is met with this.So, moved from the storage volume group by file destination Move after the solid state hard disc volume group, it is necessary to the path of solid state hard disc volume group to be set to the accessed path of the file destination, The accessed path of setting can be dependent in order to computer system call the file destination from solid state hard disc volume group.
When the memory space of storage volume group is larger, it is also possible to copy the file destination to institute from the storage volume group Solid state hard disc volume group is stated, now file destination had both been present in storage volume group, in existing in solid state hard disc volume group.Need explanation , when the file destination is included in solid state hard disc volume group, the path of the solid state hard disc volume group can be set to institute by system The accessed path of file destination is stated, now system is only processed the file destination by solid state hard disc volume group.
In embodiments of the present invention, the volume group of solid state hard disc volume group and storage volume group both types can be set up, for Each type of volume group, its number may have one or more, by taking solid state hard disc volume group as an example, when the number of the volume group is multiple Situation, when file is stored, can determine which file is stored in by pre-setting the storage rule of file In volume group, for example, file can be stored in a maximum volume group of memory capacity using the memory capacity of volume group as foundation, After volume group storage is full, then successively to the storage of other volume groups.
By above-mentioned technical proposal as can be seen that computer system can set up solid state hard disc according to the volume group rule for setting Volume group and storage volume group, wherein, solid state hard disc volume group is only made up of solid state hard disc, to ensure the high-performance of solid state hard disc.Compare In solid state hard disc volume group, the unit memory capacity price of storage volume group is relatively low, namely the carrying cost of storage volume group is relatively low, calculates The system file of machine can be initially deposited in storage volume group, by determining file destination from system file, the class file Performance requirement to hard disk is higher, or perhaps the class file be called frequently, it is necessary to store the class file hard disk have compared with Fast processing speed, because solid state hard disc volume group has performance higher, so, can be by file destination from the storage volume group The solid state hard disc volume group is moved or copied to, and the path of the solid state hard disc volume group is set to looking into for the file destination Path is looked for, the high performance requirements of such file destination are met with this.It can be seen that, by above-mentioned technical proposal, can give full play to solid The advantage of state hard disk and mechanical hard disk, the file low for hard disk performance requirement is stored in storage volume group, for hard disk performance It is required that file high can be moved or copied in solid state hard disc volume group, so as to effectively lift solid state hard disc and mechanical hard disk Service efficiency.
Change over time, the frequency of use of file is it may happen that change, solid state hard disc is stored in by file destination The purpose of volume group is the performance requirement for meeting the file destination, the use of the file destination in solid state hard disc volume group is stored in After frequency reduction to a certain extent, now, the performance of storage volume group can meet the requirement of the file destination, not have Necessity continues the file destination to be stored in the solid state hard disc volume group.
In this case, use of the file destination in Preset Time can be calculated by setting Preset Time Frequency;When the frequency of use of the file destination is less than or equal to low frequency threshold value, then by the file destination from the solid-state Hard disk volume group is moved back to the storage volume group, and the path of the storage volume group is set to the accessed path of the file destination.
Calculate frequency of use of the file destination in Preset Time with above-mentioned calculating file destination making at the appointed time It is similar to the calculation of frequency, is will not be repeated here.
Wherein, low frequency threshold value can be used to indicate that a lower limit of frequency of use of the file destination in solid state hard disc volume group Value, when the frequency of use of file destination is less than or equal to the low frequency threshold value, illustrating the performance of storage volume group can meet the mesh Mark file, therefore the file destination can be moved back into storage volume group.
It should be noted that the length of Preset Time can determine according to actual demand, wherein, the specific number of Preset Time Value can be identical with the concrete numerical value of above-mentioned stipulated time, it is also possible to different, does not limit herein.With above-mentioned stipulated time class Seemingly, the Preset Time can also regard a cycle time as, for example, Preset Time is set to 10 seconds, computer system can Every 10 seconds, the calculating of first use frequency is carried out to file destination, until the frequency of use of file destination is less than or equal to Low frequency threshold value.
With above-mentioned for file addition high frequency file identification is similar, for the file being stored in solid state hard disc volume group, also may be used It is its addition low frequency file for example, some files can be selected by artificial mode in the form of being identified by add file Mark.
After Preset Time is reached, computer system can be by judging whether the file destination has low frequency files-designated Know;
If the file destination has the low frequency file identification, by the file destination from the solid state hard disc volume group The storage volume group is moved back to, and the path of the storage volume group is set to the accessed path of the file destination.
It is different to the mode of solid state hard disc volume group from storage volume group transfer (mobile or copy) for file destination, by target The mode that file is moved back into the storage volume group from the solid state hard disc volume group is also different.
So that file destination moves to solid state hard disc volume group from storage volume group as an example, when the frequency of use of file destination is less than low Frequency threshold value, or file destination is when having low frequency file identification, then can be by the file destination from the solid state hard disc volume group Move to the storage volume group.
When file destination copies solid state hard disc volume group to from storage volume group, when the information included in file destination When changing, the file destination stored in solid state hard disc volume group can be carried out in real time more according to the change of information in file Newly, and in storage volume group the information included in the file destination for storing is still the content before being copied.Namely work as target File copy is current newest file destination to what is after solid state hard disc volume group, stored only in solid state hard disc volume group.Therefore, when The frequency of use of file destination is less than low frequency threshold value, or file destination when there is low frequency file identification, it is necessary to by the target File is moved back in storage volume group in the way of covering and writing back from the solid state hard disc volume group.
Because after file destination to be stored in solid state hard disc volume group, computer system can be by the path of solid state hard disc volume group The accessed path of the file destination is set to, therefore, after file destination is moved back into storage volume group from solid state hard disc volume group, need Path before the accessed path of the file destination is reduced to, i.e., be set to the target by the path of storage volume group again The accessed path of file.
Fig. 2 is a kind of structural representation of the device of hard disc of computer storage file provided in an embodiment of the present invention, described Device includes setting up unit 21, determining unit 22, execution unit 23:
It is described to set up unit 21, it is described for according to the volume group rule for setting, setting up solid state hard disc volume group and storage volume group Solid state hard disc volume group is made up of the solid state hard disc, and the storage volume group is used for storage system file.
The determining unit 22, for determining file destination from the system file.
The execution unit 23 is hard for the file destination to be moved or copied into the solid-state from the storage volume group Coiling group, and the path of the solid state hard disc volume group is set to the accessed path of the file destination.
Optionally, the determining unit includes computation subunit and judgment sub-unit:
The computation subunit, for calculating predetermined file frequency of use at the appointed time;The predetermined file is The specified file included in the system file;
The judgment sub-unit, for whether judging the frequency of use of the predetermined file more than high frequency threshold value, if being more than, Then using the predetermined file as file destination.
Optionally, the computation subunit specifically for statistics at the appointed time the predetermined file it is called time Number, the frequency of use of the predetermined file is equal to the called number of times of the predetermined file divided by the stipulated time.
Optionally, the determining unit is specifically for judging whether the predetermined file has high frequency file identification;It is described Predetermined file is the specified file included in the system file;If the predetermined file has the high frequency file identification, Using the predetermined file as file destination.
Optionally, described device also includes computing unit and is moved back to unit:
The computing unit, for calculating frequency of use of the file destination in Preset Time;
When the frequency of use of the file destination is less than or equal to low frequency threshold value, then unit is moved back to described in triggering, it is described Unit is moved back to, for the file destination to be moved back into the storage volume group from the solid state hard disc volume group, and by the storage volume The path of group is set to the accessed path of the file destination.
Optionally, described device also includes judging unit and is moved back to unit:
The computing unit is triggered after Preset Time is reached, the judging unit, for judging that the file destination is It is no with low frequency file identification;
If the file destination has a low frequency file identification, triggering is described to be moved back to unit, described to be moved back to unit, use In the file destination is moved back into the storage volume group from the solid state hard disc volume group, and the path of the storage volume group is set It is the accessed path of the file destination.
The explanation of feature may refer to the related description of embodiment corresponding to Fig. 1 in embodiment corresponding to Fig. 2, here no longer Repeat one by one.
A kind of method and apparatus of hard disc of computer storage file provided by the present invention is described in detail above. Each embodiment is described by the way of progressive in specification, and what each embodiment was stressed is with other embodiment not Same part, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment, due to it Correspond to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration.Should Point out, for those skilled in the art, under the premise without departing from the principles of the invention, can also be to this hair Bright to carry out some improvement and modification, these are improved and modification is also fallen into the protection domain of the claims in the present invention.
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, generally describes the composition and step of each example according to function in the above description.These Function is performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specialty Technical staff can realize described function to each specific application using distinct methods, but this realization should not Think beyond the scope of this invention.
The step of method or algorithm for being described with reference to the embodiments described herein, directly can be held with hardware, processor Capable software module, or the two combination is implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In field in known any other form of storage medium.

Claims (10)

1. a kind of method of hard disc of computer storage file, the hard disc of computer includes solid state hard disc and mechanical hard disk, and it is special Levy and be, methods described includes:
According to the volume group rule for setting, solid state hard disc volume group and storage volume group are set up, the solid state hard disc volume group is by the solid-state Hard disk is constituted, and the storage volume group is used for storage system file;
Determine file destination from the system file;
The file destination is moved or copied to the solid state hard disc volume group from the storage volume group, and by the solid state hard disc The path of volume group is set to the accessed path of the file destination.
2. method according to claim 1, it is characterised in that described that file destination bag is determined from the system file Include:
Calculate predetermined file frequency of use at the appointed time;The predetermined file is specifying of including in the system file File;
Whether the frequency of use of the predetermined file is judged more than high frequency threshold value, if being more than, using the predetermined file as mesh Mark file.
3. method according to claim 2, it is characterised in that the calculating predetermined file at the appointed time use frequency Rate includes:
The statistics number of times that the predetermined file is called at the appointed time, the frequency of use of the predetermined file is equal to described pre- The called number of times of file is determined divided by the stipulated time.
4. method according to claim 1, it is characterised in that described that file destination bag is determined from the system file Include:
Judge whether the predetermined file has high frequency file identification;The predetermined file is the finger included in the system file Determine file;
If the predetermined file has the high frequency file identification, using the predetermined file as file destination.
5. the method according to claim 1-4 any one, it is characterised in that it is described by the file destination from described Storage volume group is moved or copied to the solid state hard disc volume group, and the path of the solid state hard disc volume group is set into the target After the accessed path of file, also include:
Calculate frequency of use of the file destination in Preset Time;
It is when the frequency of use of the file destination is less than or equal to low frequency threshold value, then the file destination is hard from the solid-state Coiling group is moved back to the storage volume group, and the path of the storage volume group is set to the accessed path of the file destination.
6. the method according to claim 1-4 any one, it is characterised in that by the file destination from the storage Volume group copies the solid state hard disc volume group to, and the path of the solid state hard disc volume group is set to the lookup of the file destination After path, also include:
After Preset Time is reached, judge whether the file destination has low frequency file identification;
If the file destination has the low frequency file identification, the file destination is moved back to from the solid state hard disc volume group The storage volume group, and the path of the storage volume group is set to the accessed path of the file destination.
7. a kind of device of hard disc of computer storage file, the hard disc of computer includes solid state hard disc and mechanical hard disk, and it is special Levy and be, described device includes setting up unit, determining unit, execution unit:
Described to set up unit, for according to the volume group rule for setting, setting up solid state hard disc volume group and storage volume group, the solid-state is hard Coiling group is made up of the solid state hard disc, and the storage volume group is used for storage system file;
The determining unit, for determining file destination from the system file;
The execution unit, for the file destination to be moved or copied into the solid state hard disc volume from the storage volume group Group, and the path of the solid state hard disc volume group is set to the accessed path of the file destination.
8. device according to claim 7, it is characterised in that the determining unit includes computation subunit and judges that son is single Unit:
The computation subunit, for calculating predetermined file frequency of use at the appointed time;The predetermined file is described The specified file included in system file;
The judgment sub-unit, for whether judging the frequency of use of the predetermined file more than high frequency threshold value, if being more than, will The predetermined file is used as file destination.
9. device according to claim 7, it is characterised in that the determining unit is specifically for judging the predetermined file Whether there is high frequency file identification;The predetermined file is the specified file included in the system file;If the predetermined text Part has the high frequency file identification, then using the predetermined file as file destination.
10. the device according to claim 7-9 any one, it is characterised in that described device also include computing unit and It is moved back to unit:
The computing unit, for calculating frequency of use of the file destination in Preset Time;
When the frequency of use of the file destination is less than or equal to low frequency threshold value, then unit is moved back to described in triggering, it is described to be moved back to Unit, for the file destination to be moved back into the storage volume group from the solid state hard disc volume group, and by the storage volume group Path is set to the accessed path of the file destination.
CN201710073360.8A 2017-02-10 2017-02-10 A kind of method and apparatus of hard disc of computer storage file Pending CN106775500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710073360.8A CN106775500A (en) 2017-02-10 2017-02-10 A kind of method and apparatus of hard disc of computer storage file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710073360.8A CN106775500A (en) 2017-02-10 2017-02-10 A kind of method and apparatus of hard disc of computer storage file

Publications (1)

Publication Number Publication Date
CN106775500A true CN106775500A (en) 2017-05-31

Family

ID=58955816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710073360.8A Pending CN106775500A (en) 2017-02-10 2017-02-10 A kind of method and apparatus of hard disc of computer storage file

Country Status (1)

Country Link
CN (1) CN106775500A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968818A (en) * 2017-11-17 2018-04-27 北京联想超融合科技有限公司 Storage method, device and the server cluster of data
CN112905547A (en) * 2021-03-25 2021-06-04 深圳潮数软件科技有限公司 Large file de-duplication and re-orientation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858746A (en) * 2005-05-04 2006-11-08 三星电子株式会社 Apparatus and method for storing and managing additional data in file system
CN102203749A (en) * 2010-12-31 2011-09-28 华为技术有限公司 Writing method and device of solid state driver under multi-level cache
CN104679661A (en) * 2013-11-27 2015-06-03 阿里巴巴集团控股有限公司 Hybrid memory control method and hybrid memory system
CN106101271A (en) * 2016-08-08 2016-11-09 北京小米移动软件有限公司 Optimize the method and device of memory space

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1858746A (en) * 2005-05-04 2006-11-08 三星电子株式会社 Apparatus and method for storing and managing additional data in file system
CN102203749A (en) * 2010-12-31 2011-09-28 华为技术有限公司 Writing method and device of solid state driver under multi-level cache
CN104679661A (en) * 2013-11-27 2015-06-03 阿里巴巴集团控股有限公司 Hybrid memory control method and hybrid memory system
CN106101271A (en) * 2016-08-08 2016-11-09 北京小米移动软件有限公司 Optimize the method and device of memory space

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
倪志莲: "《单片机应用技术第3版》", 30 April 2014 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968818A (en) * 2017-11-17 2018-04-27 北京联想超融合科技有限公司 Storage method, device and the server cluster of data
CN107968818B (en) * 2017-11-17 2021-06-04 北京联想超融合科技有限公司 Data storage method and device and server cluster
CN112905547A (en) * 2021-03-25 2021-06-04 深圳潮数软件科技有限公司 Large file de-duplication and re-orientation method

Similar Documents

Publication Publication Date Title
US10915442B2 (en) Managing block arrangement of super blocks
US10739996B1 (en) Enhanced garbage collection
CN105487986B (en) Sizing a cache memory to account for total byte write requirements
KR101852668B1 (en) Address mapping
EP2983087A1 (en) Junk data recycling method and storage device
CN107209714A (en) The control method of distributed memory system and distributed memory system
CN107273053A (en) A kind of method and apparatus of digital independent
US20140095555A1 (en) File management device and method for storage system
WO2014205841A1 (en) Storage array management method and device, and controller
JP2015517697A (en) Storage system and storage control method using storage area based on secondary storage as cache area
US8380958B2 (en) Spatial extent migration for tiered storage architecture
US11436159B2 (en) Using multi-tiered cache to satisfy input/output requests
US11620218B2 (en) Using multi-tiered cache to satisfy input/output requests
US11036427B2 (en) Using content addressable memory to perform read-modify-write operations in non-volatile random access memory (NVRAM)
CN109471843A (en) A kind of metadata cache method, system and relevant apparatus
CN107291392A (en) A kind of solid state hard disc and its reading/writing method
CN110109845A (en) Data cached management method, device, computer equipment and storage medium
JP5235982B2 (en) Data placement and destaging in holographic storage
CN106775500A (en) A kind of method and apparatus of hard disc of computer storage file
KR101626218B1 (en) Block based page mapping method
CN101251789A (en) Cheap magnetic disc redundant array RAID5 roll rapid capacitance enlarging method
US9569133B2 (en) System and method for data inversion in a storage resource
CN113805812B (en) Cache management method, device, equipment and storage medium
TWI752784B (en) Unbalanced plane management method, associated data storage device and controller thereof
EP3825856B1 (en) Wear leveling and access method and device for non-volatile memory, and storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531