CN107122141A - The control method and device of a kind of disk flow - Google Patents

The control method and device of a kind of disk flow Download PDF

Info

Publication number
CN107122141A
CN107122141A CN201710317995.8A CN201710317995A CN107122141A CN 107122141 A CN107122141 A CN 107122141A CN 201710317995 A CN201710317995 A CN 201710317995A CN 107122141 A CN107122141 A CN 107122141A
Authority
CN
China
Prior art keywords
address
written
information
write
disk
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
CN201710317995.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 CN201710317995.8A priority Critical patent/CN107122141A/en
Publication of CN107122141A publication Critical patent/CN107122141A/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/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • 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
    • 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/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of 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)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention provides a kind of control method of disk flow and device, wherein, this method includes:Time interval is pre-set, in addition to:When receiving the first information to be written of outside transmission, current time is determined;It is that the first information to be written distributes at least one first address in the address of external disk;Judge from current time the second information to be written of outside transmission whether is received in time interval, if it is, being that the second information to be written distributes at least one second address in the address;According at least one the second address, second disk region is determined;According at least one the first address, the first disk areas is determined;Judge that the first disk areas whether there is with second disk region to occur simultaneously, if it is, the first information to be written is write at least one first address, while the second information to be written is write at least one second address.This method can improve the write efficiency of disk.

Description

The control method and device of a kind of disk flow
Technical field
The present invention relates to field of computer technology, the control method and device of more particularly to a kind of disk flow.
Background technology
In recent years, with the development of big data, requirement of the people to disk performance gradually strengthens.Certain in disk space In the case of, the writing speed for how improving disk is people's concern always.
In the prior art, for the information to be written received, information write-in disk is typically written into immediately.When one section , it is necessary to according to the time received, successively write each information to be written when receiving multiple information to be written in the time Disk.
But, due to the difference of different information storage addresses to be written, magnetic head needs to move back and forth in disk, increases magnetic The disk tracking time is longer, causes the write efficiency of disk relatively low.
The content of the invention
The embodiments of the invention provide a kind of control method of disk flow and device, it is possible to increase the write-in effect of disk Rate.
In a first aspect, the embodiments of the invention provide a kind of control method of disk flow, pre-setting time interval, also Including:
When receiving the first information to be written of outside transmission, current time is determined;
It is that the described first information to be written distributes at least one first address in the address of external disk;
Judge from the current time the second letter to be written of outside transmission whether is received in the time interval Breath, if it is, being that the described second information to be written distributes at least one second address in the address;According to it is described at least One the second address, determines second disk region;According at least one described first address, the first disk areas is determined;Judge First disk areas whether there is with the second disk region occurs simultaneously, if it is, the described first information to be written is write Enter at least one described first address, while the described second information to be written is write at least one described second address.
Preferably,
Further comprise:
The write sequence of each address is determined, the address includes:Cylinder number, head number and sector number;
At least one first address described in the basis, determines the first disk areas, including:
According to cylinder number, head number and the sector number of each first address, each described first address is determined Corresponding first write sequence;
Arranged according in first address and first write sequence made number one in first write sequence In last first address, first disk areas is determined.
Preferably,
At least one second address described in the basis, determines second disk region, including:
According to each two address cylinder number, head number and the sector number, each described second address is determined Corresponding second write sequence;
Arranged according in second address and second write sequence made number one in second write sequence In last second address, the second disk region is determined.
Preferably,
It is described that described first information to be written is write at least one described first address, while to be written by described second At least one described second address of information write-in, including:
According to first write sequence and second write sequence, by described in the described first information write-in to be written extremely Few first address, while the described second information to be written is write at least one described second address.
Preferably,
Further comprise:
When first disk areas and the second disk region, which are not present, occurs simultaneously, by the described first information to be written At least one described first address of write-in;By described second at least one described second address of information write-in to be written.
Second aspect, the embodiments of the invention provide a kind of control device of disk flow, in addition to:
Setting unit, for setting interval,
Determining unit, for when receiving the first information to be written of outside transmission, determining current time;
Allocation unit, the described first letter to be written in the address of external disk, being the determining unit reception Breath distributes at least one first address;
Processing unit, for judging from the current time that the determining unit is determined, the setting unit is set The time interval in whether receive the second information to be written of outside transmission, if it is, being described in the address Second information to be written distributes at least one second address;According at least one described second address, second disk region is determined; At least one first address according to allocation unit distribution, determines the first disk areas;Judge first disk Region whether there is with the second disk region occurs simultaneously, if it is, by least one described in the described first information write-in to be written Individual first address, while the described second information to be written is write at least one described second address.
Preferably,
Determining unit, is further used for determining the write sequence of each address, the address includes:Cylinder Number, head number and sector number;
The processing unit, for cylinder number, the magnetic of each first address determined according to the determining unit No.1 and sector number, determines corresponding first write sequence in each described first address;According in first write sequence First address made number one and first address rolled into last place in first write sequence, determine institute State the first disk areas.
Preferably,
The processing unit, for according to each two address cylinder number, head number and the sector number, it is determined that often Corresponding second write sequence in one second address;According to described second made number one in second write sequence Second address rolled into last place in address and second write sequence, determines the second disk region.
Preferably,
The processing unit, for according to first write sequence and second write sequence, described first to be treated Write at least one described first address of information write-in, at the same will described in the described second information write-in to be written at least one second Address.
Preferably,
The processing unit, is further used for occuring simultaneously when first disk areas is not present with the second disk region When, the described first information to be written is write at least one described first address;Described second information write-in to be written is described At least one second address.
The embodiments of the invention provide a kind of control method of disk flow and device, wherein, when between the default time Every it is interior receive first information and the second information to be written to be written when, can be the first information to be written and the second letter to be written Breath distribution storage needed for the first address and the second address, and by the first address and the second address judge the first disk areas and Second disk region, when the first disk areas and second disk region, which exist, occurs simultaneously, illustrates the first address with the presence or absence of occuring simultaneously It is close with two address position, now, write sequence that should be according to the first address and the second address in disk, by first Information to be written and the second information to be written write the relevant position of disk, and the first information to be written is write again with prior art Write the second information to be written relative, this method can realize that the first information to be written and the alternating of the second information to be written are write Enter.Avoid magnetic head from moving back and forth in disk, improve the write efficiency of disk.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis These accompanying drawings obtain other accompanying drawings.
Fig. 1 is a kind of control method flow chart for disk flow that one embodiment of the invention is provided;
Fig. 2 is a kind of control method flow chart for disk flow that another embodiment of the present invention is provided;
Fig. 3 is a kind of control device structural representation for disk flow that one embodiment of the invention is provided.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is A part of embodiment of the present invention, rather than whole embodiments, based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained on the premise of creative work is not made, belongs to the scope of protection of the invention.
As shown in figure 1, the embodiments of the invention provide a kind of control method of disk flow, this method can include following Step:
Step 101:Set interval;
Step 102:When receiving the first information to be written of outside transmission, current time is determined;
Step 103:It is that the first information to be written distributes at least one first address in the address of external disk;
Step 104:Judge from current time the second letter to be written of outside transmission whether is received in time interval Breath, if it is, performing step 105;
Step 105:In the address, it is that the second information to be written distributes at least one second address;
Step 106:According at least one the second address, second disk region is determined;According at least one the first address, really Fixed first disk areas;
Step 107:Judge that the first disk areas whether there is with second disk region to occur simultaneously, if it is, performing step 108;
Step 108:First information to be written is write at least one first address, while the second information to be written is write At least one second address.
In the embodiment shown in fig. 1, treat when receiving the first information to be written and second in default time interval Can be the first address and the second ground needed for the first information to be written and the second information distribution storage to be written when writing information Location, and judge that the first disk areas whether there is common factor with second disk region by the first address and the second address, when first When disk areas has common factor with second disk region, illustrate the close with two address position of the first address, now, Ying Gen According to the write sequence of the first address and the second address in disk, the first information to be written and the second information to be written are write into magnetic The relevant position of disk, writes the first information to be written with prior art and writes that the second information to be written is relative again, this method can To realize being alternately written into for the first information to be written and the second information to be written.Avoid magnetic head from moving back and forth in disk, improve magnetic The write efficiency of disk.
In one embodiment of the invention, in order to determine write the first information to be written when, magnetic head is on disk Moving region, this method also includes:The write sequence of each address is determined, address includes:Cylinder number, head number and sector Number;
According at least one the first address, the first disk areas is determined, including:
According to the cylinder number, head number and sector number of each the first address, each first address corresponding is determined One write sequence;
According to what is rolled into last place in the first address and the first write sequence made number one in the first write sequence First address, determines the first disk areas.
In practical application scene, storage location can be determined by cylinder number, head number, sector number.System is by file When storing on disk, carried out in the way of cylinder, head, sector, i.e., be at first the 1st magnetic track the first magnetic head under (namely First magnetic track of the 1st card) all sectors, be next magnetic head of same cylinder then, just promoted after a cylinder storage is full To next cylinder, until file content is all write disk.
For example, the corresponding cylinder numbers of first address A, B, C, head number and sector number are respectively 111,115,118, then first The address for the disk that disk areas includes be 111,112 ... 117,118.
In one embodiment of the invention, in order to determine write the second information to be written when, magnetic head is on disk Moving region, according at least one the second address, determines second disk region, including:
According to each two address cylinder number, head number and sector number, each second address corresponding is determined Two write sequences;
According to what is rolled into last place in the second address and the second write sequence made number one in the second write sequence Second address, determines second disk region.
Second disk region is identical with the determination method of the first disk areas, and the present embodiment is repeated no more.
In one embodiment of the invention, for the execution sequence according to the first address and the second address in disk, First information to be written and the second information to be written are respectively written into the first address and the second address, the first information to be written is write Enter at least one first address, while the second information to be written is write at least one second address, including:
According to the first write sequence and the second write sequence, the first information to be written is write at least one first address, The second information to be written is write at least one second address simultaneously.
For example, the corresponding cylinder numbers of first address A, B, C, head number and sector number are respectively 111,115,118, the second ground The corresponding cylinder number of location D, E, head number and sector number are respectively 112,113, then the write sequence of disk be A, D, E, B, C, i.e., First information to be written and the second information to be written are alternately written disk.
In one embodiment of the invention, when the first disk areas and second disk region, which are not present, occurs simultaneously, according to The sequencing of the time received, at least one first address is write by the first information to be written;By the second information to be written Write at least one second address.
For example, the corresponding cylinder numbers of first address A, B, C, head number and sector number are respectively 111,115,118, the second ground The corresponding cylinder number of location D, E, head number and sector number are respectively 120,125, then the write sequence of disk be A, B, C, D, E, i.e., The first information to be written is first write, then writes the second information to be written.
As shown in Fig. 2 the embodiment of the present invention into disk exemplified by writing M, N, the control method to disk flow is carried out Explain, this method comprises the following steps:
Step 201:Set interval.
Set interval as 1s.
Step 202:When receiving the first information M to be written of outside transmission, current time is determined.
The first information M to be written that reception system is sent, it is 10 to determine current time:00:00.
It should be noted that in synchronization, can receive the multiple first information to be written of outside transmission, each the The processing method of one information to be written is identical, in the present embodiment, is carried out only by taking the processing of first information to be written as an example Explanation.
Step 203:It is that the first information M to be written distributes at least one first address in the address of external disk.
The quantity of first address of distribution is determined according to the first information M to be written size.
For example, distributing three first addresses A, B, C for the first information to be written.
Step 204:Judge from current time the second information to be written of outside transmission whether is received in time interval N, if it is, performing step 205, otherwise, performs step 206.
10:00:The second information N to be written of outside transmission is received in 01, step 205 is performed.
In synchronization, be likely to be received the multiple second information to be written, each the second information to be written it is treated Cheng Xiangtong, the present embodiment is only illustrated by taking second information to be written as an example.
Step 205:In the address, it is that the second information N to be written distributes at least one second address, performs step 207.
Two the second address Ds, E are distributed for the second information N to be written.
Step 206:First information M to be written is write at least one first address, and terminates current process.
If being not received by the second information N to be written, the first information to be written is write into first address A, B, C.
Step 207:The write sequence of each address is determined, address includes:Cylinder number, head number and sector number.
Determine the execution sequence of the address of each in disk.In practical application scene, cylinder number, magnetic head can be passed through Number, sector number determines storage location.When system stores file onto disk, carried out in the way of cylinder, head, sector, i.e., Be at first the 1st magnetic track the first magnetic head under (namely the first magnetic track of the 1st card) all sectors, be same cylinder then Next magnetic head, next cylinder is just advanced to after the storage of cylinder is full, until the whole write-in disks of file content.
Step 208:According to each two address cylinder number, head number and sector number, each second address is determined Corresponding second write sequence.
For example, the corresponding cylinder number of the second address D, E, head number and sector number are respectively 112,113, corresponding second writes It is respectively 112,113 to enter order.
Step 209:Come most according in the second address and the second write sequence made number one in the second write sequence Second address of latter position, determines second disk region.
The address for determining the disk that second disk region includes is 112,113.
Step 210:According to the cylinder number, head number and sector number of each the first address, each first address is determined Corresponding first write sequence.
The corresponding cylinder numbers of first address A, B, C, head number and sector number are respectively 111,115,118, and the first write-in is suitable Sequence is 111,115,118.
Step 211:Come most according in the first address and the first write sequence made number one in the first write sequence First address of latter position, determines the first disk areas.
The address for the disk that first disk areas includes is 111,112 ... 118.
Step 212:Judge that the first disk areas whether there is with second disk region to occur simultaneously, if it is, performing step 213, otherwise, perform step 214.
First disk areas exists with second disk region occurs simultaneously, i.e., publicly-owned address 112,113, so performing step 213.
Step 213:According to the first write sequence and the second write sequence, the first information M to be written is write at least one First address, while the second information N to be written is write at least one second address.
Write sequence is that the information to be written of A, D, E, B, C, i.e., first and the second information to be written are alternately written disk.The The writing mode of one information to be written is random writing, and the writing mode of the second information to be written is to be sequentially written in.
Step 214:First information M to be written is write at least one first address, by the second information N to be written write to Few second address.
When the first disk areas and second disk region, which are not present, occurs simultaneously, enter according to the sequencing of the time received Row write enters.
Write sequence is A, B, C, D, E, i.e., first write the first information to be written, then write the second information to be written.
As shown in figure 3, the embodiments of the invention provide a kind of control device of disk flow, including:
Setting unit 301, for setting interval,
Determining unit 302, for when receiving the first information to be written of outside transmission, determining current time;
Allocation unit 303, the first information to be written in the address of external disk, being the reception of determining unit 302 Distribute at least one first address;
Processing unit 304, for judge from determining unit 302 determine current time, setting unit 301 set when Between be spaced in whether receive the second information to be written of outside transmission, if it is, being that the second information to be written is divided in the address With at least one the second address;According at least one the second address, second disk region is determined;Distributed according to allocation unit 303 At least one first address, determine the first disk areas;Judge the first disk areas with second disk region with the presence or absence of friendship Collection, if it is, the first information to be written is write at least one first address, while the second information to be written is write at least one Individual second address.
In one embodiment of the invention, determining unit 302, are further used for determining that the write-in of each address is suitable Sequence, address includes:Cylinder number, head number and sector number;
Processing unit 304, for the cylinder number according to each the first address, head number and sector number, determines each Corresponding first write sequence in first address;It is suitable according to the first address made number one in the first write sequence and the first write-in The first address rolled into last place in sequence, determines the first disk areas.
In one embodiment of the invention, processing unit 304, for according to each two address cylinder number, magnetic No.1 and sector number, determines corresponding second write sequence in each second address;First is come according in the second write sequence The second address rolled into last place in second address of position and the second write sequence, determines second disk region.
In one embodiment of the invention, processing unit 304, for suitable according to the first write sequence and the second write-in Sequence, at least one first address is write by the first information to be written, at the same by the second information to be written write at least one second Address.
In one embodiment of the invention, processing unit 304, are further used for when the first disk areas and second disk When common factor is not present in region, the first information to be written is write at least one first address;By the second information to be written write to Few second address.
The contents such as the information exchange between each unit, implementation procedure in said apparatus, due to implementing with the inventive method Example is based on same design, and particular content can be found in the narration in the inventive method embodiment, and here is omitted.
The embodiments of the invention provide a kind of computer-readable recording medium, including execute instruction, when the computing device of storage control During execute instruction, the method that storage control performs any of the above-described embodiment.
The embodiments of the invention provide a kind of storage control, including:Processor, memory and bus;
Memory is used to store execute instruction, and processor is connected with memory by bus, when storage control is run, The execute instruction of computing device memory storage, so that the method that storage control performs any of the above-described embodiment.
To sum up, each embodiment of the invention at least has the effect that:
1st, in embodiments of the present invention, when receiving the first information to be written in default time interval and second to be written Can be the first address and the second ground needed for the first information to be written and the second information distribution storage to be written when entering information Location, and judge that the first disk areas whether there is common factor with second disk region by the first address and the second address, when first When disk areas has common factor with second disk region, illustrate the close with two address position of the first address, now, Ying Gen According to the write sequence of the first address and the second address in disk, the first information to be written and the second information to be written are write into magnetic The relevant position of disk, writes the first information to be written with prior art and writes that the second information to be written is relative again, this method can To realize being alternately written into for the first information to be written and the second information to be written.Avoid magnetic head from moving back and forth in disk, improve magnetic The write efficiency of disk.
2nd, in embodiments of the present invention, cylinder number, head number and sector number that can be in address, determine writing for address Enter order, and then judge whether the first disk areas and second disk region occur simultaneously.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity Or operation makes a distinction with another entity or operation, and not necessarily require or imply exist between these entities or operation Any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant be intended to it is non- It is exclusive to include, so that process, method, article or equipment including a series of key elements not only include those key elements, But also other key elements including being not expressly set out, or also include solid by this process, method, article or equipment Some key elements.In the absence of more restrictions, the key element limited by sentence " including one ", is not arranged Except also there is other identical factor in the process including key element, method, article or equipment.
It is last it should be noted that:Presently preferred embodiments of the present invention is these are only, the technical side of the present invention is merely to illustrate Case, is not intended to limit the scope of the present invention.It is any modification for being made within the spirit and principles of the invention, equivalent Replace, improve etc., it is all contained in protection scope of the present invention.

Claims (10)

1. a kind of control method of disk flow, it is characterised in that pre-set time interval, in addition to:
When receiving the first information to be written of outside transmission, current time is determined;
It is that the described first information to be written distributes at least one first address in the address of external disk;
Judge from the current time the second information to be written of outside transmission whether is received in the time interval, such as It is that the described second information to be written distributes at least one second address in the address that fruit, which is,;According to it is described at least one Double-address, determines second disk region;According at least one described first address, the first disk areas is determined;Judge described One disk areas whether there is with the second disk region occurs simultaneously, if it is, the described first information to be written is write described At least one first address, while the described second information to be written is write at least one described second address.
2. according to the method described in claim 1, it is characterised in that further comprise:
The write sequence of each address is determined, the address includes:Cylinder number, head number and sector number;
At least one first address described in the basis, determines the first disk areas, including:
According to cylinder number, head number and the sector number of each first address, each described first address correspondence is determined The first write sequence;
Come most according in first address and first write sequence made number one in first write sequence First address of latter position, determines first disk areas.
3. method according to claim 2, it is characterised in that
At least one second address described in the basis, determines second disk region, including:
According to each two address cylinder number, head number and the sector number, each described second address correspondence is determined The second write sequence;
Come most according in second address and second write sequence made number one in second write sequence Second address of latter position, determines the second disk region.
4. method according to claim 3, it is characterised in that
It is described that described first information to be written is write at least one described first address, while by the described second information to be written At least one described second address of write-in, including:
According to first write sequence and second write sequence, by least one described in the described first information write-in to be written Individual first address, while the described second information to be written is write at least one described second address.
5. according to the method described in claim 1, it is characterised in that further comprise:
When first disk areas and the second disk region, which are not present, occurs simultaneously, the described first information to be written is write At least one described first address;By described second at least one described second address of information write-in to be written.
6. a kind of control device of disk flow, it is characterised in that also include:
Setting unit, for setting interval,
Determining unit, for when receiving the first information to be written of outside transmission, determining current time;
Allocation unit, in the address of external disk, being that the described first information to be written that the determining unit is received is divided With at least one the first address;
Processing unit, for judging from the current time that the determining unit is determined, the institute that the setting unit is set The second information to be written that outside transmission whether is received in time interval is stated, if it is, being described second in the address Information to be written distributes at least one second address;According at least one described second address, second disk region is determined;According to At least one described first address of the allocation unit distribution, determines the first disk areas;Judge first disk areas With the second disk region with the presence or absence of occuring simultaneously, if it is, will described in the described first information to be written write-in at least one the One address, while the described second information to be written is write at least one described second address.
7. device according to claim 6, it is characterised in that
Determining unit, is further used for determining the write sequence of each address, the address includes:Cylinder number, magnetic No.1 and sector number;
The processing unit, for cylinder number, head number and the sector number according to each first address, determines each Corresponding first write sequence in first address;According to first address made number one in first write sequence First address with being rolled into last place in first write sequence, determines first disk areas.
8. device according to claim 7, it is characterised in that
The processing unit, for according to each two address cylinder number, head number and the sector number, determining each Corresponding second write sequence in second address;According to second address made number one in second write sequence Second address with being rolled into last place in second write sequence, determines the second disk region.
9. device according to claim 8, it is characterised in that
The processing unit, it is to be written by described first for according to first write sequence and second write sequence At least one described first address of information write-in, while the described second information to be written is write at least one described second ground Location.
10. device according to claim 6, it is characterised in that
The processing unit, is further used for when first disk areas and the second disk region are not present and occured simultaneously, By described first at least one described first address of information write-in to be written;By described in the described second information to be written write-in at least One the second address.
CN201710317995.8A 2017-05-08 2017-05-08 The control method and device of a kind of disk flow Pending CN107122141A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710317995.8A CN107122141A (en) 2017-05-08 2017-05-08 The control method and device of a kind of disk flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710317995.8A CN107122141A (en) 2017-05-08 2017-05-08 The control method and device of a kind of disk flow

Publications (1)

Publication Number Publication Date
CN107122141A true CN107122141A (en) 2017-09-01

Family

ID=59726858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710317995.8A Pending CN107122141A (en) 2017-05-08 2017-05-08 The control method and device of a kind of disk flow

Country Status (1)

Country Link
CN (1) CN107122141A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241420A (en) * 2008-03-20 2008-08-13 杭州华三通信技术有限公司 Method and memory apparatus for promoting write address incontinuous data storage efficiency
CN105138281A (en) * 2015-08-05 2015-12-09 华为技术有限公司 Physical disk sharing method and apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241420A (en) * 2008-03-20 2008-08-13 杭州华三通信技术有限公司 Method and memory apparatus for promoting write address incontinuous data storage efficiency
CN105138281A (en) * 2015-08-05 2015-12-09 华为技术有限公司 Physical disk sharing method and apparatus

Similar Documents

Publication Publication Date Title
US20180232314A1 (en) Method for storing data by storage device and storage device
CN104008061B (en) Method for recovering internal storage and device
CN104808951B (en) The method and apparatus for carrying out storing control
CN104461390A (en) Method and device for writing data into imbricate magnetic recording SMR hard disk
CN107436725A (en) A kind of data are write, read method, apparatus and distributed objects storage cluster
CN104636266B (en) Cover tile magnetic recording hard disk, cover tile magnetic recording hard disk write method and the device of data
CN102831069B (en) Internal memory processing method, memory management equipment
CN103064760B (en) Backup method and backup device
CN102722340A (en) Data processing method, apparatus and system
CN106844222A (en) The method and apparatus of the data processing of solid state hard disc
CN104484132B (en) The method and device of data reduction
CN104898989B (en) A kind of Mass Data Storage Facility, method and device
CN108615077B (en) Cache optimization method and device applied to deep learning network
CN102096562A (en) Data writing method and device
CN109375868B (en) Data storage method, scheduling device, system, equipment and storage medium
CN103902471B (en) Data buffer storage treating method and apparatus
CN104077241A (en) Cache elimination algorithm switch processing method and device
CN115933994B (en) Data processing method and device, electronic equipment and storage medium
CN104899158A (en) Memory access optimization method and memory access optimization device
CN108334457B (en) IO processing method and device
CN107122141A (en) The control method and device of a kind of disk flow
CN103902232A (en) Data write-in method and device
CN110990301A (en) Sequential reading method of multi-plane storage medium and related device
CN105183375A (en) Control method and apparatus for service quality of hot spot data
CN105224261A (en) The implementation method of a kind of piece of virtual array and device

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: 20170901