CN109002401A - Magnetic disk of virtual machine reproduction process read method and device based on dynamic buffering - Google Patents
Magnetic disk of virtual machine reproduction process read method and device based on dynamic buffering Download PDFInfo
- Publication number
- CN109002401A CN109002401A CN201810419661.6A CN201810419661A CN109002401A CN 109002401 A CN109002401 A CN 109002401A CN 201810419661 A CN201810419661 A CN 201810419661A CN 109002401 A CN109002401 A CN 109002401A
- Authority
- CN
- China
- Prior art keywords
- read
- virtual machine
- magnetic disk
- buffer
- dynamic
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 64
- 230000008569 process Effects 0.000 title claims abstract description 39
- 230000003139 buffering effect Effects 0.000 title claims abstract description 35
- 239000000872 buffer Substances 0.000 claims abstract description 128
- 230000004048 modification Effects 0.000 claims abstract description 56
- 238000012986 modification Methods 0.000 claims abstract description 56
- 238000004590 computer program Methods 0.000 claims description 10
- 238000013507 mapping Methods 0.000 claims description 4
- 230000015572 biosynthetic process Effects 0.000 claims description 3
- 239000003550 marker Substances 0.000 claims description 3
- 238000011084 recovery Methods 0.000 claims description 3
- 230000003362 replicative effect Effects 0.000 claims description 3
- 238000003786 synthesis reaction Methods 0.000 claims description 3
- 230000008859 change Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000003111 delayed effect Effects 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000008439 repair process Effects 0.000 description 2
- 239000011800 void material Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0877—Cache access modes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0866—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches for peripheral storage systems, e.g. disk cache
- G06F12/0873—Mapping of cache memory to specific storage devices or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0655—Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
- G06F3/0656—Data buffering arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0662—Virtualisation aspects
- G06F3/0664—Virtualisation aspects at device level, e.g. emulation of a storage device or system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
The present disclosure discloses magnetic disk of virtual machine reproduction process read methods and device based on dynamic buffering, when being replicated to a disk that the moment is possible to be read in operation, a dynamic buffer index list is introduced to be managed one or more read-write buffer area, whether receive read operation instruction can be according to the content to be read in the read-write buffer area being modified, it is returned after reading not merged by modification data of the data of corresponding read-write buffer area and magnetic disk of virtual machine according to dynamic buffer index list according to the label modified, it is returned if not the content of then direct magnetic disk of virtual machine.The present invention can be read out disk when the disk used replicates, can be realized the read operation in data backup or other magnetic disk of virtual machine reproduction processes can keep data consistency well, and frequent read operation will not influence the service quality of virtual machine.
Description
Technical field
This disclosure relates to magnetic disk of virtual machine field operation, and in particular to the magnetic disk of virtual machine reproduction process based on dynamic buffering
Read method and device.
Background technique
Virtual machine is established on the platform of virtualization, including disk segment, in routine use or O&M, is needed
Data backup is carried out to magnetic disk of virtual machine being currently running, because virtual machine is currently running and is likely to all the time pair
Disk carries out reading data, if to carry out replicate data backup to disk, that will face data in magnetic disk in a replication process
It avoids the problem that being write the reading inconsistency for leading to data.If the magnetic disk of virtual machine that be currently running at present to one is answered
System, otherwise just virtual machine shutdown is replicated, it is switched on is read out again later;Otherwise it is exactly the institute for suspending virtual machine to disk
There is read operation, duplications is waited to allow to read again after the completion.Mesh first two method can all influence the clothes of virtual machine to varying degrees
Quality of being engaged in leads to the data inconsistency read because the operation for having reading during duplication will be avoided.
Summary of the invention
The purpose of the disclosure be in view of the deficiencies of the prior art, to one in operation the moment be possible to the disk being read
When being replicated, introduces a dynamic buffer index list and one or more read-write buffer areas are managed, according to being repaired
The label changed reads the corresponding read-write data of buffer area and not repaired for magnetic disk of virtual machine according to dynamic buffer index list
Change after data merge and return, is returned if not the content of then direct magnetic disk of virtual machine.
To achieve the goals above, the disclosure provide magnetic disk of virtual machine reproduction process read method based on dynamic buffering and
Device, wherein the described method comprises the following steps:
Step 1, it is replicated when operation starts in magnetic disk of virtual machine and establishes dynamic buffer index list in physical machine;
Step 2, judge when receiving read operation request magnetic disk of virtual machine be read in region whether there is or not modification mark;
Step 3, it directly reads magnetic disk of virtual machine if being read region and not modifying label and is read region content and return
It returns;
Step 4, the magnetic disk of virtual machine region content without modification label is read if being read region and having modification to mark simultaneously
It is returned after being merged according to the modification content that dynamic buffer index list searches read-write buffer area;
Step 5, restore normal magnetic disk of virtual machine at the end of magnetic disk of virtual machine is replicated and operated to read;
Step 6, it nullifies writing buffer and discharges the physical machine resource of writing buffer occupancy.
Further, in step 1, the dynamic buffer index list include writing buffer quantity and each buffer area
Available free storage size, the virtual machine establishes in the platform of the virtualization of physical machine, and virtual machine includes at least
One magnetic disk of virtual machine.
Further, in step 1, behaviour is write for receiving in magnetic disk of virtual machine reproduction process in the read-write buffer area
When requesting, when receiving write operation requests in magnetic disk of virtual machine reproduction process, whether inquiry dynamic buffer index list has
The writing buffer of available free memory space;If dynamic buffer index list is without writing buffer or all Write posts
The memory space in area has all been write completely, then creates a new writing buffer and update dynamic buffer index list;To void
The write-in data of quasi- machine disk are stored in writing buffer, and make an amendment label to region is write in magnetic disk of virtual machine and be not written into modification
Content;If the space for writing data to writing buffer when writing buffer is fully written, a new writing buffer and more is created
New dynamic buffer index list, the write operation requests are repaired in Business Logic, the label magnetic disk of virtual machine
The method for changing label is according to the big tick marks virtual machine magnetic of actual buffering area space hold that data are written after deposit writing buffer
The region to be written for modifying content of corresponding size in disk, the modification content are to prepare modification magnetic disk of virtual machine data or new
Increase data, from Business Logic.
Further, in step 2, the read operation request is from Business Logic.
Further, in step 4, described to read the magnetic disk of virtual machine region content without modification label and delayed according to dynamic
Rush the sub-step that area's index list searches return method after the modification content merging for reading and writing buffer area are as follows:
Step 4.1, reading disk is read the disk block content without modification label in region;
Step 4.2, the read-write buffer area according to locating for the modification content that the positioning of dynamic buffer index list is read, reads
The modification content for the read-write buffer area for taking dynamic buffer index list to navigate to;
Step 4.3, the modification content for the read-write buffer area that dynamic buffer index list navigates to is read with disk
Without the disk block content synthesis of modification label in region;
Step 4.4, generated data is returned.
The present invention also provides the magnetic disk of virtual machine reproduction process reading device based on dynamic buffering, described device includes:
Memory, processor and storage in the memory and the computer program that can run on the processor, the place
Reason device executes the computer program and operates in the unit of following device:
Buffering establishes unit, and dynamic buffer rope is established in physical machine for replicating when operation starts in magnetic disk of virtual machine
Draw catalogue;
Marker for judgment unit, for judging that magnetic disk of virtual machine is read in region that whether there is or not repair when receiving read operation request
Change label;
Direct return unit is directly reading magnetic disk of virtual machine if being read region and not modifying label for judging
It is read the return of region content;
Merge return unit, is being read if being read region and thering is modification to mark without the virtual of modification label for judging
Machine disk areas content and according to dynamic buffer index list search read-write buffer area modification content merge after return;
Read recovery unit, for magnetic disk of virtual machine replicate operate at the end of by the content of writing buffer according to label more
The new mapping area for arriving magnetic disk of virtual machine;
Buffer releasing unit, for nullify writing buffer and discharge writing buffer occupancy physical machine resource.
The disclosure has the beneficial effect that the present invention can be read out disk when the disk used is replicated, and leads to
Addition dynamic buffer index list is crossed, a dynamic buffer index list is introduced and one or more read-write buffer area is carried out
Management, and the read operation that can be realized in data backup or other magnetic disk of virtual machine reproduction processes can keep number well
According to consistency, and frequent read operation will not influence the service quality of virtual machine.
Detailed description of the invention
By the way that the embodiment in conjunction with shown by attached drawing is described in detail, above-mentioned and other features of the disclosure will
More obvious, identical reference label indicates the same or similar element in disclosure attached drawing, it should be apparent that, it is described below
Attached drawing be only some embodiments of the present disclosure, for those of ordinary skill in the art, do not making the creative labor
Under the premise of, it is also possible to obtain other drawings based on these drawings, in the accompanying drawings:
Fig. 1 show the magnetic disk of virtual machine reproduction process logic chart based on dynamic buffering of the disclosure;
Fig. 2 show the flow chart of the magnetic disk of virtual machine reproduction process read method based on dynamic buffering of the disclosure;
Fig. 3 show the magnetic disk of virtual machine reproduction process reading device figure based on dynamic buffering of the disclosure.
Specific embodiment
It is carried out below with reference to technical effect of the embodiment and attached drawing to the design of the disclosure, specific structure and generation clear
Chu, complete description, to be completely understood by the purpose, scheme and effect of the disclosure.It should be noted that the case where not conflicting
Under, the features in the embodiments and the embodiments of the present application can be combined with each other.The identical attached drawing mark used everywhere in attached drawing
Note indicates the same or similar part.
It is as shown in Figure 1 the magnetic disk of virtual machine reproduction process logic chart based on dynamic buffering of the disclosure, Fig. 2 show root
According to the flow chart of the magnetic disk of virtual machine reproduction process read method based on dynamic buffering of the disclosure, come below with reference to Fig. 1, Fig. 2
Illustrate the magnetic disk of virtual machine reproduction process read method based on dynamic buffering according to embodiment of the present disclosure.
The disclosure proposes the magnetic disk of virtual machine reproduction process read method based on dynamic buffering, specifically includes the following steps:
Step 1, it is replicated when operation starts in magnetic disk of virtual machine and establishes dynamic buffer index list in physical machine;
Step 2, judge when receiving read operation request magnetic disk of virtual machine be read in region whether there is or not modification mark;
Step 3, it directly reads magnetic disk of virtual machine if being read region and not modifying label and is read region content and return
It returns;
Step 4, the magnetic disk of virtual machine region content without modification label is read if being read region and having modification to mark simultaneously
It is returned after being merged according to the modification content that dynamic buffer index list searches read-write buffer area;
Step 5, restore normal magnetic disk of virtual machine at the end of magnetic disk of virtual machine is replicated and operated to read;
Step 6, it nullifies writing buffer and discharges the physical machine resource of writing buffer occupancy.
Further, in step 1, the dynamic buffer index list includes that the quantity of writing buffer and each read-write are delayed
The available free storage size in area is rushed, dynamic buffer index list includes one or more read-write buffer areas, receives reading
Each read-write buffer area can be successively found when operational order according to the content search dynamic buffer index list to be read to find
Corresponding modification content, the virtual machine are established in the platform of the virtualization of physical machine, and virtual machine includes at least one virtually
Machine disk.
Further, in step 1, behaviour is write for receiving in magnetic disk of virtual machine reproduction process in the read-write buffer area
When requesting, when receiving write operation requests in magnetic disk of virtual machine reproduction process, whether inquiry dynamic buffer index list has
The writing buffer of available free memory space;If dynamic buffer index list is without writing buffer or all Write posts
The memory space in area has all been write completely, then creates a new writing buffer and update dynamic buffer index list;To void
The write-in data of quasi- machine disk are stored in writing buffer, and make an amendment label to region is write in magnetic disk of virtual machine and be not written into modification
Content;If the space for writing data to writing buffer when writing buffer is fully written, a new writing buffer and more is created
New dynamic buffer index list, the write operation requests are repaired in Business Logic, the label magnetic disk of virtual machine
The method for changing label is according to the big tick marks virtual machine magnetic of actual buffering area space hold that data are written after deposit writing buffer
The region to be written for modifying content of corresponding size in disk, the modification content are to prepare modification magnetic disk of virtual machine data or new
Increase data, from Business Logic.
Further, in step 1, the writing buffer is located at memory or disk in physical machine, writing buffer
Amount of capacity is N*M, and wherein N is the positive integer that can change setting, and M is the disk block size of magnetic disk of virtual machine, such as disk block
Size is 512KB, and N is set as 1000, then the capacity of writing buffer is 512KB*1000=512000 kilobytes (kb)=500,000,000
Byte (mb).
Further, in step 2, the read operation request is to wrap from Business Logic, the Business Logic
Include some upper-layer service softwares for needing to carry out disk reading.
Further, in step 2, described to judge that magnetic disk of virtual machine is read the method marked in region whether there is or not modification and is
Judge magnetic disk of virtual machine is read whether region made modification label.
Further, in step 4, described to read the magnetic disk of virtual machine region content without modification label and delayed according to dynamic
Rush the sub-step that area's index list searches return method after the modification content merging for reading and writing buffer area are as follows:
Step 4.1, reading disk is read the disk block content without modification label in region;
Step 4.2, the read-write buffer area according to locating for the modification content that the positioning of dynamic buffer index list is read, reads
The modification content for the read-write buffer area for taking dynamic buffer index list to navigate to;
Step 4.3, the modification content for the read-write buffer area that dynamic buffer index list navigates to is read with disk
Without the disk block content synthesis of modification label in region;
Step 4.4, generated data is returned.
Further, in steps of 5, if in the case where being fully written because of the space of writing buffer and be suspended write operation,
The content of writing buffer according to the mapping area of flag update to magnetic disk of virtual machine and carries out magnetic disk of virtual machine unfinished
Write operation.
The magnetic disk of virtual machine reproduction process reading device based on dynamic buffering that embodiment of the disclosure provides, such as Fig. 3 institute
Be shown as the magnetic disk of virtual machine reproduction process reading device figure based on dynamic buffering of the disclosure, the embodiment based on dynamic buffering
Magnetic disk of virtual machine reproduction process reading device include: processor, memory and storage in the memory and can be in institute
State the computer program run on processor, such as reading program.The processor is realized when executing the computer program
State the step in each read method embodiment.
Described device includes: memory, processor and storage in the memory and can transport on the processor
Capable computer program, the processor execute the computer program and operate in the unit of following device:
Buffering establishes unit, and dynamic buffer rope is established in physical machine for replicating when operation starts in magnetic disk of virtual machine
Draw catalogue;
Marker for judgment unit, for judging that magnetic disk of virtual machine is read in region that whether there is or not repair when receiving read operation request
Change label;
Direct return unit is directly reading magnetic disk of virtual machine if being read region and not modifying label for judging
It is read the return of region content;
Merge return unit, is being read if being read region and thering is modification to mark without the virtual of modification label for judging
Machine disk areas content and according to dynamic buffer index list search read-write buffer area modification content merge after return;
Read recovery unit, for magnetic disk of virtual machine replicate operate at the end of by the content of writing buffer according to label more
The new mapping area for arriving magnetic disk of virtual machine;
Buffer releasing unit, for nullify writing buffer and discharge writing buffer occupancy physical machine resource.
The magnetic disk of virtual machine reproduction process reading device based on dynamic buffering can run on desktop PC, pen
Note sheet, palm PC and cloud server etc. calculate in equipment.The magnetic disk of virtual machine reproduction process based on dynamic buffering is read
Device is taken, the device that can be run may include, but be not limited only to, processor, memory.It will be understood by those skilled in the art that institute
The example that example is only based on the magnetic disk of virtual machine reproduction process reading device of dynamic buffering is stated, is not constituted to based on dynamic
The restriction of the magnetic disk of virtual machine reproduction process reading device of buffering may include components more more or fewer than example or group
Certain components or different components are closed, such as the magnetic disk of virtual machine reproduction process reading device based on dynamic buffering is also
It may include input-output equipment, network access equipment, bus etc..
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng the processor is in the control of the magnetic disk of virtual machine reproduction process reading device running gear based on dynamic buffering
The heart, using various interfaces and connection, entirely the magnetic disk of virtual machine reproduction process reading device based on dynamic buffering can run dress
The various pieces set.
The memory can be used for storing the computer program and/or module, and the processor is by operation or executes
Computer program in the memory and/or module are stored, and calls the data being stored in memory, described in realization
The various functions of magnetic disk of virtual machine reproduction process reading device based on dynamic buffering.The memory can mainly include storage journey
Sequence area and storage data area, wherein storing program area can the (ratio of application program needed for storage program area, at least one function
Such as sound-playing function, image player function) etc.;Storage data area, which can be stored, uses created data according to mobile phone
(such as audio data, phone directory etc.) etc..In addition, memory may include high-speed random access memory, it can also include non-
Volatile memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), safe number
Word (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or its
His volatile solid-state part.
Although the description of the disclosure is quite detailed and especially several embodiments are described, it is not
Any of these details or embodiment or any specific embodiments are intended to be limited to, but should be considered as is by reference to appended
A possibility that claim provides broad sense in view of the prior art for these claims explanation, to effectively cover the disclosure
Preset range.In addition, the disclosure is described with inventor's foreseeable embodiment above, its purpose is to be provided with
Description, and those equivalent modifications that the disclosure can be still represented to the unsubstantiality change of the disclosure still unforeseen at present.
Claims (6)
1. the magnetic disk of virtual machine reproduction process read method based on dynamic buffering, which is characterized in that the virtual machine copy diskette
When read method the following steps are included:
Step 1, it is replicated when operation starts in magnetic disk of virtual machine and establishes dynamic buffer index list in physical machine;
Step 2, judge when receiving read operation request magnetic disk of virtual machine be read in region whether there is or not modification mark;
Step 3, magnetic disk of virtual machine is directly read if being read region and not modifying label be read the return of region content;
Step 4, magnetic disk of virtual machine region content and basis without modification label are read if being read region and having modification to mark
The modification content that dynamic buffer index list searches read-write buffer area returns after merging;
Step 5, restore normal magnetic disk of virtual machine at the end of magnetic disk of virtual machine is replicated and operated to read;
Step 6, it nullifies writing buffer and discharges the physical machine resource of writing buffer occupancy.
2. the magnetic disk of virtual machine reproduction process read method according to claim 1 based on dynamic buffering, which is characterized in that
In step 1, the dynamic buffer index list includes the quantity of writing buffer and the available free storage sky of each buffer area
Between size, the virtual machine establishes in the platform of the virtualization of physical machine, and virtual machine includes at least a magnetic disk of virtual machine.
3. the magnetic disk of virtual machine reproduction process read method according to claim 1 based on fixed buffering, which is characterized in that
In step 1, when the read-write buffer area is used to receive write operation requests in magnetic disk of virtual machine reproduction process, virtual machine magnetic
When receiving write operation requests in disk reproduction process, whether inquiry dynamic buffer index list has available free memory space
Writing buffer;If dynamic buffer index list without the memory space of writing buffer or all writing buffers all
It writes completely, then create a new writing buffer and updates dynamic buffer index list;The write-in data to magnetic disk of virtual machine
Be stored in writing buffer, and to write in magnetic disk of virtual machine region make an amendment label and be not written into modification content;It writes data to
If the space of writing buffer is fully written when buffer area, creates a new writing buffer and update dynamic buffer index mesh
Record;The read-write buffer area is located at memory or disk in physical machine, and the amount of capacity for reading and writing buffer area is N*M, and wherein N is
The positive integer of setting can be changed, M is the disk block size of magnetic disk of virtual machine, and the modification is write labeled as magnetic disk of virtual machine
All disk blocks make marks in region.
4. the magnetic disk of virtual machine reproduction process read method according to claim 1 based on fixed buffering, which is characterized in that
In step 2, the read operation request is from Business Logic.
5. the magnetic disk of virtual machine reproduction process read method according to claim 1 based on fixed buffering, which is characterized in that
In step 4, described to read the magnetic disk of virtual machine region content without modification label and searched according to dynamic buffer index list
The sub-step of return method after the modification content of read-write buffer area merges are as follows:
Step 4.1, reading disk is read the disk block content without modification label in region;
Step 4.2, the read-write buffer area according to locating for the modification content that the positioning of dynamic buffer index list is read, reads dynamic
The modification content for the read-write buffer area that state buffer area index list navigates to;
Step 4.3, the modification content for the read-write buffer area that dynamic buffer index list navigates to and disk are read region
The middle disk block content synthesis without modification label;
Step 4.4, generated data is returned.
6. the magnetic disk of virtual machine reproduction process reading device based on dynamic buffering, which is characterized in that described device includes: storage
Device, processor and storage in the memory and the computer program that can run on the processor, the processor
The computer program is executed to operate in the unit of following device:
Buffering establishes unit, establishes dynamic buffer index mesh when operation starts in physical machine for replicating in magnetic disk of virtual machine
Record;
Marker for judgment unit, for judge when receiving read operation request magnetic disk of virtual machine be read in region whether there is or not modification mark
Note;
Direct return unit directly reads magnetic disk of virtual machine and is read for judging if being read region and not modifying label
Region content is taken to return;
Merge return unit, reads the virtual machine magnetic without modification label if being read region and thering is modification to mark for judging
Disk area content and according to dynamic buffer index list search read-write buffer area modification content merge after return;
Recovery unit is read, for arriving the content of writing buffer according to flag update at the end of magnetic disk of virtual machine is replicated and operated
The mapping area of magnetic disk of virtual machine;
Buffer releasing unit, for nullify writing buffer and discharge writing buffer occupancy physical machine resource.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810419661.6A CN109002401A (en) | 2018-05-04 | 2018-05-04 | Magnetic disk of virtual machine reproduction process read method and device based on dynamic buffering |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810419661.6A CN109002401A (en) | 2018-05-04 | 2018-05-04 | Magnetic disk of virtual machine reproduction process read method and device based on dynamic buffering |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109002401A true CN109002401A (en) | 2018-12-14 |
Family
ID=64573242
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810419661.6A Pending CN109002401A (en) | 2018-05-04 | 2018-05-04 | Magnetic disk of virtual machine reproduction process read method and device based on dynamic buffering |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109002401A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113867820A (en) * | 2021-09-29 | 2021-12-31 | 深圳市智微智能软件开发有限公司 | Method, device and equipment for dynamically modifying frame buffer and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103885815A (en) * | 2014-03-24 | 2014-06-25 | 北京大学 | Virtual machine dynamic caching method based on hot page migration |
CN103942161A (en) * | 2014-04-24 | 2014-07-23 | 杭州冰特科技有限公司 | Redundancy elimination system and method for read-only cache and redundancy elimination method for cache |
CN104903872A (en) * | 2012-08-31 | 2015-09-09 | 才智知识产权控股公司(2) | Systems, methods, and interfaces for adaptive persistence |
CN105224391A (en) * | 2015-10-12 | 2016-01-06 | 浪潮(北京)电子信息产业有限公司 | A kind of online backup method and system of virtual machine |
CN105373487A (en) * | 2015-12-16 | 2016-03-02 | 浪潮(北京)电子信息产业有限公司 | Defragmentation method and system for storage operation system |
US9547562B1 (en) * | 2010-08-11 | 2017-01-17 | Dell Software Inc. | Boot restore system for rapidly restoring virtual machine backups |
CN106919471A (en) * | 2015-12-25 | 2017-07-04 | 中国电信股份有限公司 | For the method and system that snapshot is set up |
CN107003893A (en) * | 2016-02-03 | 2017-08-01 | 华为技术有限公司 | Virtual machine backup method, back-up device and host |
CN107341049A (en) * | 2017-07-03 | 2017-11-10 | 飞天诚信科技股份有限公司 | The optimized treatment method and device of a kind of issued transaction |
WO2018014567A1 (en) * | 2016-07-22 | 2018-01-25 | 平安科技(深圳)有限公司 | Method for improving performance of virtual machine, and terminal, device and computer-readable storage medium |
-
2018
- 2018-05-04 CN CN201810419661.6A patent/CN109002401A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9547562B1 (en) * | 2010-08-11 | 2017-01-17 | Dell Software Inc. | Boot restore system for rapidly restoring virtual machine backups |
CN104903872A (en) * | 2012-08-31 | 2015-09-09 | 才智知识产权控股公司(2) | Systems, methods, and interfaces for adaptive persistence |
CN103885815A (en) * | 2014-03-24 | 2014-06-25 | 北京大学 | Virtual machine dynamic caching method based on hot page migration |
CN103942161A (en) * | 2014-04-24 | 2014-07-23 | 杭州冰特科技有限公司 | Redundancy elimination system and method for read-only cache and redundancy elimination method for cache |
CN105224391A (en) * | 2015-10-12 | 2016-01-06 | 浪潮(北京)电子信息产业有限公司 | A kind of online backup method and system of virtual machine |
CN105373487A (en) * | 2015-12-16 | 2016-03-02 | 浪潮(北京)电子信息产业有限公司 | Defragmentation method and system for storage operation system |
CN106919471A (en) * | 2015-12-25 | 2017-07-04 | 中国电信股份有限公司 | For the method and system that snapshot is set up |
CN107003893A (en) * | 2016-02-03 | 2017-08-01 | 华为技术有限公司 | Virtual machine backup method, back-up device and host |
WO2018014567A1 (en) * | 2016-07-22 | 2018-01-25 | 平安科技(深圳)有限公司 | Method for improving performance of virtual machine, and terminal, device and computer-readable storage medium |
CN107341049A (en) * | 2017-07-03 | 2017-11-10 | 飞天诚信科技股份有限公司 | The optimized treatment method and device of a kind of issued transaction |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113867820A (en) * | 2021-09-29 | 2021-12-31 | 深圳市智微智能软件开发有限公司 | Method, device and equipment for dynamically modifying frame buffer and storage medium |
CN113867820B (en) * | 2021-09-29 | 2024-05-28 | 深圳市智微智能软件开发有限公司 | Method, device, equipment and storage medium for dynamically modifying frame buffer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104216837A (en) | Memory system, memory access request processing method and computer system | |
CN103597440A (en) | Method for creating clone file, and file system adopting the same | |
CN103218176B (en) | Data processing method and device | |
CN103544045A (en) | HDFS-based virtual machine image storage system and construction method thereof | |
CN108664523A (en) | A kind of virtual disk files format conversion method and device | |
CN112000426B (en) | Data processing method and device | |
CN107239319A (en) | The date storage method and device of a kind of virtual machine | |
CN106326229A (en) | Method and device for file storage of embedded system | |
CN106104463A (en) | System and method for the failsafe operation of storage device | |
CN103942301B (en) | Distributed file system oriented to access and application of multiple data types | |
CN110457261A (en) | Data access method, device and server | |
CN100504800C (en) | Method for snapshot of magnetic disc | |
CN105138284A (en) | Virtual machine disk mirror image synchronization operation optimization system and method | |
CN101458655B (en) | Internal memory management method, system and internal memory control device | |
CN103729166A (en) | Method, device and system for determining thread relation of program | |
CN106775501A (en) | Elimination of Data Redundancy method and system based on nonvolatile memory equipment | |
CN108959124A (en) | Magnetic disk of virtual machine reproduction process wiring method and device based on dynamic buffering | |
CN103617135B (en) | The method and device of digital independent in a kind of storage device | |
CN109002401A (en) | Magnetic disk of virtual machine reproduction process read method and device based on dynamic buffering | |
CN101303667A (en) | Method and device for establishing magnetic disk null cluster table and seeking magnetic disk null cluster | |
CN111061652B (en) | Nonvolatile memory management method and system based on MPI-IO middleware | |
CN100369038C (en) | Method for implementing realtime database routine operation | |
US9535796B2 (en) | Method, apparatus and computer for data operation | |
CN115048046B (en) | Log file system and data management method | |
US20230409235A1 (en) | File system improvements for zoned storage device operations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181214 |
|
RJ01 | Rejection of invention patent application after publication |