CN107656702A - Accelerate the method and its system and electronic equipment of disk read-write - Google Patents

Accelerate the method and its system and electronic equipment of disk read-write Download PDF

Info

Publication number
CN107656702A
CN107656702A CN201710895338.1A CN201710895338A CN107656702A CN 107656702 A CN107656702 A CN 107656702A CN 201710895338 A CN201710895338 A CN 201710895338A CN 107656702 A CN107656702 A CN 107656702A
Authority
CN
China
Prior art keywords
hard disk
buffer
disk
bios
write
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.)
Granted
Application number
CN201710895338.1A
Other languages
Chinese (zh)
Other versions
CN107656702B (en
Inventor
虞周君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710895338.1A priority Critical patent/CN107656702B/en
Publication of CN107656702A publication Critical patent/CN107656702A/en
Application granted granted Critical
Publication of CN107656702B publication Critical patent/CN107656702B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • 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/0629Configuration or reconfiguration of storage systems
    • 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
    • G06F3/0656Data buffering arrangements

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)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

Present disclose provides a kind of method for accelerating disk read-write, including:Receive the input output request sent from the operating system installed in computer application layer to hard disk;The data object that input output request is asked is obtained from the buffer of hard disk, wherein, the buffer of hard disk is configured and is arranged in computer drives layer by basic input-output system BIOS, wherein, driving layer is the computer bottom for intercepting and capturing the data access request of user;And the data object based on acquisition responds to input output request.The disclosure additionally provides a kind of system and a kind of electronic equipment for accelerating disk read-write.

Description

Accelerate the method and its system and electronic equipment of disk read-write
Technical field
A kind of this disclosure relates to method and its system and electronic equipment for accelerating disk read-write.
Background technology
Mechanical hard disk (i.e. common hard disc) is the key factor for influenceing contemporary computer complete machine performance, but because mechanical hard disk has Standby capacity is big, the advantage such as cheap, thus can not also referred to as consolidate disk (Solid State completely by solid state hard disc at present Drive, referred to as SSD) substitution.But it is directed to hard disk drive (Hard Disk Drive, referred to as HDD, such as computer hard disc C Disk, D disks are that disk partition belongs to HDD) read or write speed for, mechanical hard disk is strictly restrict the development of contemporary computer one Bottleneck.
At present, provided in correlation technique a kind of by being answered in operating system (Operating System, referred to as OS) Cache is realized with layer to realize the technical scheme for the read-write for accelerating HDD or SSD, during the embodiment of the present disclosure is realized, hair A person of good sense has found that aforementioned related art at least has following defect:Once user resets OS, accelerate the function of HDD or SSD read-write It will be deteriorated.
The content of the invention
An aspect of this disclosure provides a kind of method for accelerating disk read-write, including:Receive by installed in computer The input output request that the operating system of application layer is sent to hard disk;Above-mentioned input and output are obtained from the buffer of above-mentioned hard disk The asked data object of request, wherein, the buffer of above-mentioned hard disk is configured and pacified by basic input-output system BIOS In computer drives layer, wherein, above-mentioned driving layer is the computer bottom for intercepting and capturing the data access request of user;With And above-mentioned input output request is responded based on the data object of acquisition.
Alternatively, the method for above-mentioned acceleration disk read-write also includes:The buffer of above-mentioned hard disk is configured by above-mentioned BIOS Size.
Alternatively, the method for above-mentioned acceleration disk read-write also includes:Internal memory or solid disk SSD are configured by above-mentioned BIOS For the buffer of above-mentioned hard disk.
Alternatively, the method for above-mentioned acceleration disk read-write also includes:By memory configurations it is above-mentioned hard disk by above-mentioned BIOS Buffer, and solid disk SSD is configured to the buffer of above-mentioned internal memory;Or above-mentioned solid disk SSD is configured by above-mentioned BIOS For the buffer of above-mentioned hard disk, and the buffer by above-mentioned memory configurations for above-mentioned solid disk SSD.
Alternatively, above-mentioned hard disk includes:Hard disk drive HDD and solid disk SSD.
Another aspect of the disclosure additionally provides a kind of system for accelerating disk read-write, including:Receiving module, for connecing Receive the input output request sent from the operating system installed in computer application layer to hard disk;Acquisition module, for from above-mentioned The data object that above-mentioned input output request is asked is obtained in the buffer of hard disk, wherein, the buffer of above-mentioned hard disk is logical Basic input-output system BIOS is crossed to configure and be arranged in computer drives layer, wherein, above-mentioned driving layer is to be used to intercept and capture to use The computer bottom of the data access request at family;And respond module, for defeated to above-mentioned input based on the data object of acquisition Go out request to be responded.
Alternatively, the system of above-mentioned acceleration disk read-write also includes:First configuration module, for being configured by above-mentioned BIOS The size of the buffer of above-mentioned hard disk.
Alternatively, the system of above-mentioned acceleration disk read-write also includes:Second configuration module, in being incited somebody to action by above-mentioned BIOS Deposit or consolidate the buffer that disk SSD is configured to above-mentioned hard disk.
Alternatively, the system of above-mentioned acceleration disk read-write also includes:3rd configuration module, in being incited somebody to action by above-mentioned BIOS The buffer for being configured to above-mentioned hard disk is deposited, and solid disk SSD is configured to the buffer of above-mentioned internal memory;Or the 4th configuration module, It is above-mentioned solid for above-mentioned solid disk SSD to be configured to the buffer of above-mentioned hard disk by above-mentioned BIOS, and by above-mentioned memory configurations Disk SSD buffer.
Another aspect of the disclosure additionally provides a kind of electronic equipment, including:Hard disk, for data storage;Buffer, The data stored with caching in above-mentioned hard disk;Basic input-output system BIOS, for configuring the above-mentioned buffer of above-mentioned hard disk And be installed in computer drives layer, wherein, above-mentioned driving layer is the calculating for intercepting and capturing the data access request of user Machine bottom;And processor, for receiving the input sent from the operating system installed in computer application layer to above-mentioned hard disk Output request;The data object that above-mentioned input output request is asked is obtained from the above-mentioned buffer of above-mentioned hard disk;And base Above-mentioned input output request is responded in the data object of acquisition.
Brief description of the drawings
In order to be more fully understood from the disclosure and its advantage, referring now to the following description with reference to accompanying drawing, wherein:
Fig. 1 diagrammatically illustrates the method and its system that are adapted for carrying out accelerating disk read-write according to the embodiment of the present disclosure Application scenarios;
Fig. 2 diagrammatically illustrates the flow chart of the method for the acceleration disk read-write according to the embodiment of the present disclosure;
Fig. 3 A diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to the embodiment of the present disclosure;
Fig. 3 B diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to another embodiment of the disclosure;
Fig. 3 C diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to another embodiment of the disclosure;
Fig. 3 D diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to another embodiment of the disclosure;
Fig. 3 E diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to another embodiment of the disclosure;
Fig. 4 diagrammatically illustrates the block diagram of the system of the acceleration disk read-write according to the embodiment of the present disclosure;
Fig. 5 A diagrammatically illustrate the block diagram of the system of the acceleration disk read-write according to another embodiment of the disclosure;
Fig. 5 B diagrammatically illustrate the block diagram of the system of the acceleration disk read-write according to another embodiment of the disclosure;
Fig. 5 C diagrammatically illustrate the block diagram of the system of the acceleration disk read-write according to another embodiment of the disclosure;
Fig. 6 diagrammatically illustrates the block diagram of the electronic equipment according to the embodiment of the present disclosure;And
Fig. 7 diagrammatically illustrates the computer system of the method for the achievable acceleration disk read-write according to the embodiment of the present disclosure Block diagram.
Embodiment
Hereinafter, it will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are simply exemplary , and it is not intended to limit the scope of the present disclosure.In addition, in the following description, the description to known features and technology is eliminated, with Avoid unnecessarily obscuring the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.Use herein Term " comprising ", "comprising" etc. indicate the presence of the feature, step, operation and/or part, but it is not excluded that in the presence of Or addition one or more other features, step, operation or parts.
All terms (including technology and scientific terminology) as used herein have what those skilled in the art were generally understood Implication, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Implication, without should by idealization or it is excessively mechanical in a manner of explain.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart Frame or its combination can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer, The processor of special-purpose computer or other programmable data processing units, so as to which these instructions can be with when by the computing device Create the device for realizing function/operation illustrated in these block diagrams and/or flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately Outside, the technology of the disclosure can take the form of the computer program product on the computer-readable medium for being stored with instruction, should Computer program product is available for instruction execution system use or combined command execution system to use.In the context of the disclosure In, computer-readable medium can be the arbitrary medium that can include, store, transmit, propagate or transmit instruction.For example, calculate Machine computer-readable recording medium can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium. The specific example of computer-readable medium includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Embodiment of the disclosure provides a kind of method for accelerating disk read-write, including:Receive by being answered installed in computer The input output request sent with the operating system of layer to hard disk;Input output request is obtained from the buffer of the hard disk to ask The data object asked, wherein, the buffer of the hard disk is to configure and be arranged on computer by basic input-output system BIOS Drive in layer, wherein, driving layer is the computer bottom for intercepting and capturing the data access request of user;And the number based on acquisition Input output request is responded according to object.
Fig. 1 diagrammatically illustrate according to the embodiment of the present disclosure be adapted for carrying out accelerate disk read-write method and its system, And the application scenarios of electronic equipment.
As shown in figure 1, in the application scenarios 100, hard disk, solid disk SSD, internal memory, buffer are included in server 101 (not shown), can be provided with various operating systems on terminal device 102, for example, Windows operating system and/or (SuSE) Linux OS etc., but not limited to this.In use, user can pass through operating system read/write hard disk according to individual demand In data.Can be that hard disk configuration is corresponding slow therefore because the read or write speed of the read/write data directly from hard disk is slower Storage is to improve the reading and writing data speed of hard disk.Specifically, internal memory and/or solid disk SSD can be configured to the buffer of hard disk.
With reference to Fig. 1 application scenarios, described with reference to figure 2, Fig. 3 A~3E according to disclosure illustrative embodiments Acceleration disk read-write method.It should be noted that above-mentioned application scenarios be for only for ease of understand the disclosure spirit and Principle and show, embodiment of the present disclosure is unrestricted in this regard.On the contrary, embodiment of the present disclosure can be applied In applicable any application scenarios.
Fig. 2 diagrammatically illustrates the flow chart of the method for the acceleration disk read-write according to the embodiment of the present disclosure.
As shown in Fig. 2 the method for the acceleration disk read-write can include operation S201~S203, wherein:
In operation S201, receiving the input and output sent from the operating system installed in computer application layer to hard disk please Ask.
In the embodiment originally opened, aforesaid operations system can be the various operating systems of computer system, including but not It is limited to Windows operating system, (SuSE) Linux OS etc., above-mentioned hard disk can include but is not limited to HDD and solid disk SSD etc..Its In, operating system and hard disk may be mounted in computer.Specifically, operating system may be mounted at computer application layer.
In accordance with an embodiment of the present disclosure, user can send request by operating system to hard disk, and the request can include Input output request, wherein, input output request can include read operation request and write operation requests, and read operation request can be used Read operation is performed to hard disk in request, to read the related data wherein stored, write operation requests can be used for request to hard disk Write operation is performed, the related data of outside is write into hard disk.
In operation S202, the data object that input output request is asked is obtained from the buffer of hard disk, wherein, hard disk Buffer be by basic input output system (Basic Input/Output System, referred to as BIOS) configure and pacify In computer drives layer, wherein, driving layer is the computer bottom for intercepting and capturing the data access request of user.
In the embodiment originally opened, the related data that the buffer of hard disk is used in storage hard disk (can be partial data Or total data, can specifically be determined according to the size of the spatial cache of buffer), the buffer can by but it is unlimited Realized in configuration internal memory and/or solid disk SSD.Specifically, can be in computer bottom (also known as driving layer) by BIOS Buffer corresponding to hard disk configuration.
It should be noted that in accordance with an embodiment of the present disclosure, the implementation of buffer can include it is a variety of, such as, side Formula 1, internal memory or SDD individually can be configured to buffer;Mode 2, internal memory and SDD can be configured to buffer simultaneously; Mode 3, can first by memory configurations be hard disk buffer, then by SDD configure internal memory buffer;Mode 4, can first by SDD is configured to the buffer of hard disk, then the buffer by memory configurations SDD.Certainly, in addition there are other implementations, It will not enumerate herein.
Because the memory space of buffer is general all very limited, in order to extend its memory space, thus can preferably adopt Buffer is realized with mode 3 and mode 4.Specifically, the either buffer of hard disk, or the buffer of the buffer, all It can be configured and realized by BIOS, and be installed in computer drives layer.
In accordance with an embodiment of the present disclosure, input output request can be one kind or several in the data access request of user Kind, after user sends input output request by operating system to hard disk, the input output request is cut by the driving layer of computer Obtain.Now, buffer has been installed within computer drives layer, and therefore, the input output request intercepted and captured by driving layer can be to The buffer of hard disk, and/or buffer request write-in data or requests data reading corresponding to the buffer of hard disk.
In the embodiment originally opened, it can detect whether in advance as buffer corresponding to the buffer configuration of hard disk.If Also without buffer corresponding to the buffer configuration for hard disk, then determine whether input output request for which kind of operation.If should Input output request is read operation, then processor finds the data that above-mentioned input output request is asked from the buffer of hard disk Object, if being stored with the data object in the buffer of hard disk, processor will obtain data object;If in the buffer of hard disk not The data object is stored, processor will be found from hard disk and obtain the data object, meanwhile, by data object storage to firmly In the buffer of disk.If the input output request is write operation, the data object that input output request is asked writes firmly In disk, and by data object storage into the buffer of hard disk.If being buffer corresponding to the buffer configuration of hard disk, Then determine whether input output request for which kind of operation.If the input output request is read operation, it is defeated to obtain above-mentioned input Three kinds of modes can at least be included by going out the asked data object of request:Mode one, obtained from the buffer of hard disk;Mode Two, the acquisition in buffer corresponding to the buffer from hard disk;Mode three, is obtained from hard disk.In accordance with an embodiment of the present disclosure, Processor can prioritizing selection mode one or mode two obtain above-mentioned data object, still, if the buffer of hard disk and hard disk Above-mentioned data object is not stored in buffer corresponding to buffer, then further selection mode three is obtained above-mentioned number by processor According to object, meanwhile, the data object is stored in buffer corresponding to the buffer of hard disk and/or the buffer of hard disk.Accordingly , if input output request is write operation, operating method is similar to above, will not be repeated here.
In operation S203, the data object based on acquisition responds to input output request.
In the embodiment originally opened, it can obtain above-mentioned input output request to be asked to respond above-mentioned input output request Data object.
Compared with correlation technique by the configuration of the buffer of hard disk and installed in application layer, by embodiment of the disclosure, The buffer of hard disk is configured and is arranged in driving layer, you can the caching of hard disk is destroyed during avoiding user's repacking operation system Device, while again without in running background related software, so as to save system resource.
Below with reference to Fig. 3 A~Fig. 3 E, the method shown in Fig. 2 is described further in conjunction with specific embodiments.
As one kind, alternatively embodiment, the method for above-mentioned acceleration disk read-write can also include:It is hard by BIOS configurations The size of the buffer of disk.
Fig. 3 A diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to the embodiment of the present disclosure.
Fig. 3 B diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to another embodiment of the disclosure.
As shown in Figure 3 A and Figure 3 B, in embodiment of the disclosure, BIOS can not only configure the class of the buffer of hard disk Type, the size of the buffer of hard disk can also be configured.Wherein, the size of the buffer of hard disk is the buffer memory space of hard disk Size.
As shown in Figure 3A, for the ease of operation, when reality is implemented, buffer configuration interface can be set in front end, is used for The configuration parameter of user's input is received, and is used to show corresponding configuration result after configuration is complete.
By embodiment of the disclosure, whether server master board performance is may decide that because whether advanced BIOS management functions are It is superior, therefore BIOS can be set to improve the speed of service of system, while BIOS allocating cache devices are utilized, in any case, The read/write speed of hard disk can be accelerated.
As one kind, alternatively embodiment, the method for above-mentioned acceleration disk read-write can also include:By BIOS by internal memory Or solid disk SSD is configured to the buffer of hard disk.
In embodiment of the disclosure, the implementation of buffer can include it is a variety of, such as, mode 1, BIOS can be single Internal memory or SDD are solely configured to the buffer of hard disk.Specifically, BIOS can be real by registration table or device description file The configuration of existing buffer.Further, BIOS first firmware layer by registration table either device description file by internal memory or Gu disk SSD is configured to the buffer of hardware, then the buffer configured is arranged in computer drives layer.Wherein, the note Volume table is used for the configuration for describing operating system and other applications, and the device description file is used to describe hardware device.
As shown in Figure 3 B, device description file L1 is used for the ardware feature for describing internal memory, and device description file L2 is used to retouch State solid disk SSD ardware feature.The memory configurations by device description file L2 can be buffer in firmware layer by BIOS, and The buffer configured is arranged in computer drives layer.In accordance with an embodiment of the present disclosure, unified Extensible Firmware Interface (Unified Extensible Firmware Interface, referred to as UEFI) and BIOS can be advanced by Windows Configuration and power interface (Advanced Configuration and Power Interface, ACPI can be referred to as) Windows platform binary form (Windows Platform Binary Table, can be referred to as WPBT) is realized automatic to OS The function of calling, so as to realizing driving layer hard disk/drive (DISK/Volume, drive refer to the subregion of hard disk, such as C disks) The buffer that input and output filter drive program (I/O Filter driver) passes through hard disk (can be memory registers (memory cache)) reach the purpose for accelerating disk read-write.Wherein, UEFI is used for operating system automatically from the operation of pretrigger Environment, it is loaded into a kind of operating system.
Pass through embodiment of the disclosure so that the buffer is arranged on by the type and realization for configuring the buffer of hard disk The means of driving layer have more diversity, meanwhile, realized by system firmware layer and the buffer of hard disk is installed in driving layer, and configured The size of the buffer of hard disk, realizing also can primary support and complete free mesh for users to use even if user's refitting system , improve the competitiveness of product.
As one kind, alternatively embodiment, the method for above-mentioned acceleration disk read-write can also include:By BIOS by internal memory The buffer of hard disk is configured to, and solid disk SSD is configured to the buffer of internal memory;Or solid disk SSD is configured to by BIOS The buffer of hard disk, and the buffer by memory configurations for solid disk SSD.
In embodiment of the disclosure, due to the limited storage space of the buffer of hard disk, when the data stored in hard disk , it is necessary to be to be cached corresponding to the buffer configuration of hard disk when the excessive buffer for causing hard disk can not carry so many data Device, the data stored in hard disk are stored in buffer corresponding to the buffer of hard disk and the buffer of hard disk respectively to realize In.
In accordance with an embodiment of the present disclosure, if buffers of the BIOS by memory configurations for hard disk, solid disk SSD can be configured For the buffer of the internal memory;Can be the solid disk by memory configurations if solid disk SSD is configured to the buffer of hard disk by BIOS SSD buffer.Wherein, BIOS can be that internal memory and solid disk SSD configure the size of corresponding memory space and be arranged on them Computer drives layer.
By embodiment of the disclosure, for buffer corresponding to the buffer configuration of hard disk, can prevent in the slow of hard disk During storage memory space inadequate, the buffer of hard disk is extended to meet the needs of big data amount of storage.
As a kind of alternatively embodiment, above-mentioned hard disk can include hard disk drive HDD and solid disk SSD.
Fig. 3 C diagrammatically illustrate the schematic diagram of the method for the acceleration disk read-write according to another embodiment of the disclosure.
Fig. 3 D diagrammatically illustrate the flow chart of the method for the acceleration disk read-write according to another embodiment of the disclosure.
As shown in Figure 3 C, wherein:
In operation S301, judge whether data object is stored in the buffer of hard disk.
In operation S302, data object is obtained from the buffer of hard disk.
In operation S303, the response to input output request is completed.
In operation S304, it is read operation request or write operation requests to judge input output request.
In operation S305, data object is read from disk or drive.
In operation S306, data object is stored into the buffer of hard disk.
In embodiment of the disclosure, sending input and output to hard disk from the operating system installed in computer application layer please After asking, judge whether the data object that the input output request is asked is stored in the buffer of hardware, if so, then from hardware Buffer in obtain data object, be then based on obtain data object input output request is responded.If the input Output asks asked data object not to be stored in the buffer of hardware, then continues to judge that the input output request is to read Operation or write operation.If the input output request is read operation, it (can be hard disk to specify fdisk from the first of hard disk Or drive) in read data object, and by the data object storage into the buffer of hard disk;If the input output request is Write operation, then the data object is write into hard disk second is specified in fdisk (can be hard disk or drive), and will be write Enter second and specify the data object cache of fdisk in the buffer of hard disk.In operating system input and output are sent to hard disk After request, operating system can provide a series of service, specifically as shown in Figure 3 D.
Fig. 3 E diagrammatically illustrate the establishment file according to the embodiment of the present disclosure and the flow chart of execution read/write operation.
Fig. 3 E left-halfs are illustrated document creation flow with a specific implementation, specific as follows:
Create a file, such as can be " Hello.txt " file, wherein, create " Hello.txt " file need from NtCreateFile functions are called in Windows, file system is then called by I/O managers.Specifically to incite somebody to action Where is " Hello.txt " document creation, can pass sequentially through the driving volume device object of layer, partition management driver and hard Disk management device stack, in the present embodiment, can be by " Hello.txt " file by " Hello.txt " document creation in a hard disk Create in C disks.In addition it is also necessary to the storage of " Hello.txt " file is arrived in cache manager (i.e. the buffer of hard disk), specifically Ground, " Hello.txt " file for being stored on hard disk can be passed sequentially through to disk management device stack, partition management driving journey Sequence, volume device object, file system, realize the storage of " Hello.txt " file into cache manager.
Fig. 3 E right half parts are illustrated file read/write operating process with a specific implementation, specific as follows:
With reference to above-described embodiment, read/write " Hello.txt " file, NtReadFile/ can be called from Windows NtWritedFile functions, I/O managers, file system are then passed sequentially through, found from cache manager " Hello.txt " File, and read operation or word operation are performed to this document.If " Hello.txt " file is not stored in cache management, need Read operation is performed to hard disk or writes behaviour further by rolling up device object, partition management driver, hard disk management device stack Make, then again store the content read in " Hello.txt " file stored from hard disk or the content of write-in to caching Manager, concrete operations path is as described above, will not be repeated here.
Fig. 4 diagrammatically illustrates the block diagram of the system of the acceleration disk read-write according to the embodiment of the present disclosure.
In this embodiment, the system 400 of the acceleration disk read-write can include receiving module 410, the and of acquisition module 420 Respond module 430.As shown in figure 4, wherein:
Receiving module 410 is used to receive the input and output sent from the operating system installed in computer application layer to hard disk Request.
Acquisition module 420 is used to obtain the data object that input output request is asked from the buffer of hard disk, wherein, The buffer of hard disk is configured and is arranged in computer drives layer by basic input-output system BIOS, wherein, drive layer It is the computer bottom for intercepting and capturing the data access request of user.
Respond module 430 responds for the data object based on acquisition to input output request.
Compared with correlation technique by the configuration of the buffer of hard disk and installed in application layer, by embodiment of the disclosure, The buffer of hard disk is configured and is arranged in driving layer, you can the caching of hard disk is destroyed during avoiding user's repacking operation system Device, while again without in running background related software, so as to save system resource.
Fig. 5 A diagrammatically illustrate the block diagram of the system of the acceleration disk read-write according to another embodiment of the disclosure.
In this embodiment, the system 400 of the acceleration disk read-write is except that can include above with reference to the corresponding of Fig. 4 descriptions Outside module, the first configuration module 510 can also be included.For description for purpose of brevity, omit here to corresponding module in Fig. 4 Description.
As shown in Figure 5A, the system 400 of the acceleration disk read-write can also include the first configuration module 510.Wherein:
First configuration module 510 is used for the size that the buffer of hard disk is configured by BIOS.
By embodiment of the disclosure, whether server master board performance is may decide that because whether advanced BIOS management functions are It is superior, therefore BIOS can be set to improve the speed of service of system, while BIOS allocating cache devices are utilized, in any case, The read/write speed of hard disk can be accelerated.
Fig. 5 B diagrammatically illustrate the block diagram of the system of the acceleration disk read-write according to another embodiment of the disclosure.
In this embodiment, the system 400 of the acceleration disk read-write is except that can include describing above with reference to Fig. 4 and Fig. 5 A Corresponding module outside, the second configuration module 610 can also be included.For description for purpose of brevity, omit here to Fig. 4 and figure The description of corresponding module in 5A.
As shown in Figure 5 B, the system 400 of the acceleration disk read-write can also include the second configuration module 610.Wherein:
Second configuration module 610 is used for the buffer that internal memory or solid disk SSD are configured to hard disk by BIOS.
Pass through embodiment of the disclosure so that the buffer is arranged on by the type and realization for configuring the buffer of hard disk The means of driving layer have more diversity, meanwhile, realized by system firmware layer and the buffer of hard disk is installed in driving layer, and configured The size of the buffer of hard disk, realizing also can primary support and complete free mesh for users to use even if user's refitting system , improve the competitiveness of product.
Fig. 5 C diagrammatically illustrate the block diagram of the system of the acceleration disk read-write according to another embodiment of the disclosure.
In this embodiment, the system 400 of the acceleration disk read-write is except that can include describing above with reference to Fig. 4 and Fig. 5 A Corresponding module outside, the 3rd configuration module 710 and the 4th configuration module 720 can also be included.For description for purpose of brevity, Here the description to corresponding module in Fig. 4 and Fig. 5 A is omitted.
As shown in Figure 5 C, the system 400 of the acceleration disk read-write can also include the 3rd configuration module 710 and the 4th configuration Module 720.Wherein:
3rd configuration module 710 is used to be the buffer of hard disk by memory configurations by BIOS, and solid disk SSD is configured to The buffer of internal memory;Or
4th configuration module 720 is used for the buffer that solid disk SSD is configured to hard disk by BIOS, and is by memory configurations Gu disk SSD buffer.
By embodiment of the disclosure, for buffer corresponding to the buffer configuration of hard disk, can prevent in the slow of hard disk During storage memory space inadequate, the buffer of hard disk is extended to meet the needs of big data amount of storage.
As a kind of alternatively embodiment, above-mentioned hard disk includes hard disk drive HDD and solid disk SSD.
Fig. 6 diagrammatically illustrates the block diagram of the electronic equipment according to the embodiment of the present disclosure.
In this embodiment, the electronic equipment 500 can include hard disk 810, buffer 820, basic input output system BIOS 830 and processor 840.As shown in fig. 6, wherein:
Hard disk 810 is used for data storage.
Buffer 820 is used to cache the data stored in hard disk.
Basic input-output system BIOS 830 is used to configure the buffer of hard disk and is installed in computer drives layer In, wherein, driving layer is the computer bottom for intercepting and capturing the data access request of user.
Processor 840 is used for the input and output that reception is sent from the operating system installed in computer application layer to hard disk please Ask;The data object that input output request is asked is obtained from the buffer of hard disk;And the data object pair based on acquisition Input output request is responded.
Compared with correlation technique by the configuration of the buffer of hard disk and installed in application layer, by embodiment of the disclosure, The buffer of hard disk is configured and is arranged in driving layer, you can the caching of hard disk is destroyed during avoiding user's repacking operation system Device, while again without in running background related software, so as to save system resource.
It is understood that receiving module 410, acquisition module 420, respond module 430, the first configuration module 510, second Configuration module 610, the 3rd configuration module 710 and the 4th configuration module 720 may be incorporated in a module and realize, Huo Zheqi In any one module can be split into multiple modules.Or at least portion of one or more of these modules module Divide function to be combined with least part function phase of other modules, and realized in a module.It can also be appreciated that Hard disk 810, buffer 820, basic input-output system BIOS 830 and processor 840 may be incorporated in real in a module Now, or any one module therein can be split into multiple modules.Or one or more of these modules module At least part function can be combined with least part function phase of other modules, and realized in a module.According to this hair Bright embodiment, receiving module 410, acquisition module 420, respond module 430, the first configuration module 510, the second configuration module 610th, the 3rd configuration module 710, the 4th configuration module 720, hard disk 810, buffer 820, basic input-output system BIOS 830 and processor 840 at least one can at least be implemented partly as hardware circuit, such as field programmable gate array (FPGA), programmable logic array (PLA), on-chip system, the system on substrate, the system in encapsulation, application specific integrated circuit (ASIC), or can to carry out the hardware such as any other rational method that is integrated or encapsulating or firmware to circuit to realize, or Realized with software, the appropriately combined of hardware and firmware three kinds of implementations.Or receiving module 410, acquisition module 420, Respond module 430, the first configuration module 510, the second configuration module 610, the 3rd configuration module 710, the 4th configuration module 720, At least one in hard disk 810, buffer 820, basic input-output system BIOS 830 and processor 840 can be at least by portion Divide ground to be embodied as computer program module, when the program is run by computer, the function of corresponding module can be performed.
Fig. 7 diagrammatically illustrates the computer system of the method for the achievable acceleration disk read-write according to the embodiment of the present disclosure Block diagram.
As shown in fig. 7, computer system 600 includes processor 840 and memory 910.The computer system 600 can be held The method that row describes above with reference to Fig. 2, Fig. 3 A~Fig. 3 E.
Specifically, processor 840 can for example include receiving module 410, acquisition module 420, respond module 430, general Microprocessor, instruction set processor and/or related chip group and/or special microprocessor are (for example, application specific integrated circuit (ASIC)), etc..Processor 840 can also include being used for the onboard storage device for caching purposes.Processor 840 can be used for Perform the single treatment list of the different actions with reference to figure 2, Fig. 3 A~Fig. 3 E method flow according to the embodiment of the present disclosure described First or multiple processing units.
Readable storage medium storing program for executing 910, such as can be any Jie that can include, store, transmit, propagate or transmit instruction Matter.For example, readable storage medium storing program for executing 910 can include but is not limited to electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device Part or propagation medium.The specific example of readable storage medium storing program for executing 910 includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light is deposited Storage device, such as CD (CD-ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication chain Road.
Readable storage medium storing program for executing 910 can include computer program 911, and the computer program 911 can include code/calculating Machine executable instruction, it by processor 840 when being performed so that processor 840 is performed for example above in conjunction with Fig. 2, Fig. 3 A~Fig. 3 E Described method flow and its any deformation.
Computer program 911 can be configured with such as computer program code including computer program module.Example Such as, in the exemplary embodiment, the code in computer program 911 can include one or more program modules, such as including mould Block 911A, module 911B ....It should be noted that the dividing mode and number of module are not fixed, those skilled in the art It can be combined according to actual conditions using suitable program module or program module, when these program modules are combined by processor 840 when performing so that processor 840 can perform for example above in conjunction with the method flow described by Fig. 2, Fig. 3 A~Fig. 3 E and its Any deformation.
It will be understood by those skilled in the art that the feature described in each embodiment and/or claim of the disclosure can To carry out multiple combinations or/or combination, even if such combination or combination are not expressly recited in the disclosure.Especially, exist In the case of not departing from disclosure spirit or teaching, the feature described in each embodiment and/or claim of the disclosure can To carry out multiple combinations and/or combination.All these combinations and/or combination each fall within the scope of the present disclosure.
Although the disclosure, art technology has shown and described in the certain exemplary embodiments with reference to the disclosure Personnel it should be understood that without departing substantially from appended claims and its equivalent restriction spirit and scope of the present disclosure in the case of, A variety of changes in form and details can be carried out to the disclosure.Therefore, the scope of the present disclosure should not necessarily be limited by above-described embodiment, But not only should be determined by appended claims, also it is defined by the equivalent of appended claims.

Claims (10)

1. a kind of method for accelerating disk read-write, including:
Receive the input output request sent from the operating system installed in computer application layer to hard disk;
The data object that the input output request is asked is obtained from the buffer of the hard disk, wherein, the hard disk Buffer is configured and is arranged in computer drives layer by basic input-output system BIOS, wherein, the driving layer is For the computer bottom for the data access request for intercepting and capturing user;And
The input output request is responded based on the data object of acquisition.
2. according to the method for claim 1, wherein, methods described also includes:
The size of the buffer of the hard disk is configured by the BIOS.
3. method according to claim 1 or 2, wherein, methods described also includes:
Internal memory or solid disk SSD are configured to the buffer of the hard disk by the BIOS.
4. method according to claim 1 or 2, wherein, methods described also includes:
Memory configurations are the buffer of the hard disk by the BIOS, and solid disk SSD is configured to the caching of the internal memory Device;Or
The solid disk SSD is configured to the buffer of the hard disk by the BIOS, and is described solid by the memory configurations Disk SSD buffer.
5. according to the method for claim 1, wherein, the hard disk includes hard disk drive HDD and solid disk SSD.
6. a kind of system for accelerating disk read-write, including:
Receiving module, for receiving the input output request sent from the operating system installed in computer application layer to hard disk;
Acquisition module, the data object asked for obtaining the input output request from the buffer of the hard disk, its In, the buffer of the hard disk is configured and is arranged in computer drives layer by basic input-output system BIOS, wherein, The driving layer is the computer bottom for intercepting and capturing the data access request of user;And
Respond module, for being responded based on the data object of acquisition to the input output request.
7. system according to claim 6, wherein, the system also includes:
First configuration module, the size of the buffer for configuring the hard disk by the BIOS.
8. the system according to claim 6 or 7, wherein, the system also includes:
Second configuration module, for internal memory or solid disk SSD to be configured to the buffer of the hard disk by the BIOS.
9. the system according to claim 6 or 7, wherein, the system also includes:
3rd configuration module, for being configured by the BIOS by the buffer that memory configurations are the hard disk, and by solid disk SSD For the buffer of the internal memory;Or
4th configuration module, for the solid disk SSD to be configured to the buffer of the hard disk by the BIOS, and by described in Memory configurations are the buffer of the solid disk SSD.
10. a kind of electronic equipment, including:
Hard disk, for data storage;
Buffer, for caching the data stored in the hard disk;
Basic input-output system BIOS, for configuring the buffer of the hard disk and being installed in computer drives layer In, wherein, the driving layer is the computer bottom for intercepting and capturing the data access request of user;And
Processor, it is used for:
Receive the input output request sent from the operating system installed in computer application layer to the hard disk;
The data object that the input output request is asked is obtained from the buffer of the hard disk;And
The input output request is responded based on the data object of acquisition.
CN201710895338.1A 2017-09-27 2017-09-27 Method and system for accelerating hard disk read-write and electronic equipment Active CN107656702B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710895338.1A CN107656702B (en) 2017-09-27 2017-09-27 Method and system for accelerating hard disk read-write and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710895338.1A CN107656702B (en) 2017-09-27 2017-09-27 Method and system for accelerating hard disk read-write and electronic equipment

Publications (2)

Publication Number Publication Date
CN107656702A true CN107656702A (en) 2018-02-02
CN107656702B CN107656702B (en) 2020-11-20

Family

ID=61116634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710895338.1A Active CN107656702B (en) 2017-09-27 2017-09-27 Method and system for accelerating hard disk read-write and electronic equipment

Country Status (1)

Country Link
CN (1) CN107656702B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845768A (en) * 2018-06-19 2018-11-20 郑州云海信息技术有限公司 A kind of date storage method, device, equipment and storage medium
CN108984126A (en) * 2018-07-17 2018-12-11 郑州云海信息技术有限公司 A kind of method for reading data, system, device and computer readable storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655130A (en) * 2004-02-13 2005-08-17 联想(北京)有限公司 Method for acquisition of data in hard disk
CN101901273A (en) * 2010-08-13 2010-12-01 优视科技有限公司 Memory disk-based high-performance storage method and device
CN102043593A (en) * 2010-12-17 2011-05-04 天津曙光计算机产业有限公司 Region-based management method for external cache of disk
CN102375700A (en) * 2010-08-26 2012-03-14 湖北盛天网络技术有限公司 Method for directly updating hard drive data
CN102541458A (en) * 2010-12-17 2012-07-04 西安奇维测控科技有限公司 Method for increasing data writing speed of electronic hard disk
CN103744611A (en) * 2013-12-17 2014-04-23 记忆科技(深圳)有限公司 Computer system based on solid state disc as cache and cache accelerating method
CN105138292A (en) * 2015-09-07 2015-12-09 四川神琥科技有限公司 Disk data reading method
CN105630700A (en) * 2015-04-29 2016-06-01 上海磁宇信息科技有限公司 Storage system with second-level cache structure and reading/writing method
CN105912687A (en) * 2016-04-19 2016-08-31 江苏物联网研究发展中心 Mass distributed database memory cell

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655130A (en) * 2004-02-13 2005-08-17 联想(北京)有限公司 Method for acquisition of data in hard disk
CN101901273A (en) * 2010-08-13 2010-12-01 优视科技有限公司 Memory disk-based high-performance storage method and device
CN102375700A (en) * 2010-08-26 2012-03-14 湖北盛天网络技术有限公司 Method for directly updating hard drive data
CN102043593A (en) * 2010-12-17 2011-05-04 天津曙光计算机产业有限公司 Region-based management method for external cache of disk
CN102541458A (en) * 2010-12-17 2012-07-04 西安奇维测控科技有限公司 Method for increasing data writing speed of electronic hard disk
CN103744611A (en) * 2013-12-17 2014-04-23 记忆科技(深圳)有限公司 Computer system based on solid state disc as cache and cache accelerating method
CN105630700A (en) * 2015-04-29 2016-06-01 上海磁宇信息科技有限公司 Storage system with second-level cache structure and reading/writing method
CN105138292A (en) * 2015-09-07 2015-12-09 四川神琥科技有限公司 Disk data reading method
CN105912687A (en) * 2016-04-19 2016-08-31 江苏物联网研究发展中心 Mass distributed database memory cell

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
谭林: "《最新BIOS完全设置手册》", 30 November 1999 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845768A (en) * 2018-06-19 2018-11-20 郑州云海信息技术有限公司 A kind of date storage method, device, equipment and storage medium
CN108984126A (en) * 2018-07-17 2018-12-11 郑州云海信息技术有限公司 A kind of method for reading data, system, device and computer readable storage medium

Also Published As

Publication number Publication date
CN107656702B (en) 2020-11-20

Similar Documents

Publication Publication Date Title
US8429374B2 (en) System and method for read-while-write with NAND memory device
US10678437B2 (en) Method and device for managing input/output (I/O) of storage device
CN104516678B (en) Method and apparatus for data storage
CN110716845B (en) Log information reading method of Android system
US10013214B2 (en) Adaptive caching and dynamic delay scheduling for in-memory data analytics
US20150378639A1 (en) Inter-processor memory
US9514072B1 (en) Management of allocation for alias devices
US9772881B2 (en) Hardware resource allocation for applications
CN115408108A (en) I/O unloading method, device, system and storage medium in cloud environment
CN114691300A (en) Hot migration method of virtual machine instance
WO2020244243A1 (en) Method and device for dividing a plurality of storage devices into device groups
CN107656702A (en) Accelerate the method and its system and electronic equipment of disk read-write
CN110489425A (en) A kind of data access method, device, equipment and storage medium
CN105868121A (en) Information processing method and electronic equipment
US9244693B2 (en) System and method for booting multiple servers from snapshots of an operating system installation image while reducing access to unmodified portions of the installation image and reducing latencies between server ports
US20190369907A1 (en) Data writing device and method
US9965407B2 (en) Task management
CN103399949B (en) A kind of database storage block state control method and device
CN108717402B (en) Memory for reconfigurable processing system and reconfigurable processing system
US9336166B1 (en) Burst buffer appliance with operating system bypass functionality to facilitate remote direct memory access
US10496318B1 (en) System and method for capacity management in multi-tiered storage
CN112445413A (en) Data storage method and device and related equipment
US9286230B1 (en) Sparse volume management cache mechanism system and method
US11704211B1 (en) Error avoidance in memory device
CN115242807B (en) Data access method in 5G communication system and related equipment

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
GR01 Patent grant
GR01 Patent grant