CN107728948A - A kind of memory performance optimization method and device, computer equipment - Google Patents

A kind of memory performance optimization method and device, computer equipment Download PDF

Info

Publication number
CN107728948A
CN107728948A CN201710971316.9A CN201710971316A CN107728948A CN 107728948 A CN107728948 A CN 107728948A CN 201710971316 A CN201710971316 A CN 201710971316A CN 107728948 A CN107728948 A CN 107728948A
Authority
CN
China
Prior art keywords
memory
write
speed
data
default
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710971316.9A
Other languages
Chinese (zh)
Inventor
宋腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710971316.9A priority Critical patent/CN107728948A/en
Publication of CN107728948A publication Critical patent/CN107728948A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • 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
    • G06F3/0635Configuration or reconfiguration of storage systems by changing the path, e.g. traffic rerouting, path reconfiguration
    • 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

Abstract

The present invention provides a kind of memory performance optimization method and device, computer equipment, and this method includes:When data write memory, the presently written speed of the memory is obtained;Judge whether the presently written speed is less than predetermined threshold value;If it is, the data are write into default memory space, and return to write-in success response.The present invention, to judge it is relatively slow whether the memory writes, so as to which data first to be write to default memory space, and returns by the way of acquisition and comparing memory write data message and is successfully written response.So as to find the rule speed issue in hard disk ablation process, and optimize the write performance of hard disk, improve operating efficiency.

Description

A kind of memory performance optimization method and device, computer equipment
Technical field
The present invention relates to computer memory technical field, more particularly to a kind of memory performance optimization method and device, meter Calculate machine equipment.
Background technology
With the development of society and PC popularization, increasing digital information is generated, information content increases in explosive It is long, thus triggered the new round data technique tide centered on memory technology.Traditional information storage means can not expire The new needs of foot, the networking of storage turn into the new highlight of IT technologies.Storage performance be it is each storage manufacturer fall over each other research Emphasis, stores that the read-write I/O of product is better, and the performance of storage is better.The hard disk for storing product rear end is largely purchased from hard disk Manufacturer, the performance quality of hard disk have impact on the performance of storage product to a certain extent
The read-write I/O of storage end flow is generally server and is read out data and write-in number to the hard disk on memory According to process, a complete I/O can be understood as data cell and completes two-way mistake from server end to storage end Journey.
One complete read-write I/O stream includes:
Server end sets up mapping relations by optical fiber cable or netting twine with storage end, the meeting in the hard disk management of server It was found that storage end reflects incoming hard disk, server end will read and write I/O requests by sonet card or network interface card and be sent to memory On the sonet card or network interface card at end.
After read-write I/O data are delivered to storage end by sonet card or network interface card, thing is stored data into by storing software Manage in hard disk.Due to quickly, being passed by sonet card or network interface card, transmission read-write I/O data so reading and writing I/O since server The time that the defeated storage software to storage end is spent accounts for the time very little that whole read-write I/O is spent, due to mechanical hard disk Limitation, the time maximum time-consuming or in cache layers of the storage end read-write I/O in software is stored to physical hard disk.
When reading and writing I/O arrival bottom hard disks, the speed of data rule depends on the physical speed of hard disk.The physics of hard disk Speed is faster, and the speed of data rule is faster, and the read-write I/O performances of storage end are better.If one piece of disk in storage system Physical speed is slow, may result in data write this block disk speed it is slow, and then influence the performance of whole memory paragraph.
Therefore, the rule speed issue in hard disk ablation process how is found, and optimizes the write performance of hard disk, improves work Make efficiency, be those skilled in the art's urgent problem to be solved.
The content of the invention
In view of this, it is an object of the invention to provide a kind of memory performance optimization method and device, computer equipment, It was found that the rule speed issue in hard disk ablation process, and optimize the write performance of hard disk, improve operating efficiency.Its concrete scheme It is as follows:
In a first aspect, the present invention provides a kind of memory performance optimization method, including:
When data write memory, the presently written speed of the memory is obtained;
Judge whether the presently written speed is less than predetermined threshold value;
If it is, the data are write into default memory space, and return to write-in success response.
Preferably, described return is write after success response, in addition to:
The data are write into the memory from the default memory space.
Preferably, the default memory space, including:
The default memory space being arranged on solid state hard disc.
Preferably, the preset procedures of the default memory space, including:
The size of the default memory space is set;
The position of the default memory space is set.
Preferably, in addition to:
Record the memory numbering and corresponding writing speed.
Second aspect, the present invention provide a kind of memory performance optimization device, including:
Speed acquiring module, for when memory write data, obtaining the presently written speed of the memory;
Velocity estimated module, for judging whether the presently written speed is less than predetermined threshold value;
Default writing module, for when velocity estimated module judges that the presently written speed is less than predetermined threshold value, The data are then write into default memory space, and return to write-in success response.
Preferably, in addition to:
Data transcription module, for the data to be write into the memory from the default memory space.
Preferably, in addition to:
Size setup module, for setting the size of the default memory space;
Position setup module, for setting the position of the default memory space.
Preferably, in addition to:
Speed record module, for recording the memory numbering and corresponding writing speed.
The third aspect, the present invention provide a kind of computer equipment, including:
Memory, for storing computer program;
Processor, the step of any of the above-described kind of memory performance optimization method is realized during for performing the computer program Suddenly.
The present invention provides a kind of memory performance optimization method, including:When data write memory, the storage is obtained The presently written speed of device;Judge whether the presently written speed is less than predetermined threshold value;If it is, the data are write Default memory space, and return to write-in success response.
The present invention using acquisition and by the way of comparing memory write data message, come judge the memory whether write compared with Slowly, so as to which data first to be write to default memory space, and return and be successfully written response.So as to find falling in hard disk ablation process Disk speed issue, and optimize the write performance of hard disk, improve operating efficiency.
A kind of memory performance provided by the invention optimizes device, a kind of computer equipment also has above-mentioned beneficial effect, It will not be repeated here.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 is a kind of flow chart for memory performance optimization method that a kind of embodiment of the present invention provides;
Fig. 2 is the composition schematic diagram that a kind of memory performance that a kind of embodiment of the present invention provides optimizes device;
Fig. 3 is the expansion composition signal that a kind of memory performance that a kind of embodiment of the present invention provides optimizes device Figure.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
Fig. 1 is refer to, Fig. 1 is a kind of stream for memory performance optimization method that a kind of embodiment of the present invention provides Cheng Tu, this method include:
S11:When data write memory, the presently written speed of the memory is obtained.
In the first embodiment of the present invention, a kind of memory performance that the embodiment of the present invention is provided optimizes Method, it is necessary first to the presently written speed of the memory is obtained when data are written to memory.Write into memory During entering data, the speed of write-in data can be got, such as in Windows systems, when the multiple Large Copacities of duplication File when, system can not only provide the quantity of file, can also count the size of All Files and provide prompting, such as:It is more It can replicate and finishes for a long time, because data are got toward the speed write in memory by system.
It is worthy of note that memory is by development for many years, the presently mainly storage medium of memory, semiconductor device The memory of part and magnetic material, wherein semiconductor devices is commonly referred to as solid storage device, such as flash disk, solid state hard disc etc., The speed of storage has very big difference, and as the passage of usage time, the read or write speed of memory can also change.
S12:Judge whether the presently written speed is less than predetermined threshold value.
After the presently written speed of memory is got, it can be determined that the size of the current writing speed and predetermined threshold value Relation.Such as the hard disk that one piece of rotating speed is 5400 rpms, its usual reading speed can reach 50M/s, write 30M/s can be reached by entering speed, and at this moment can sets predetermined threshold value as 20M/s, when speed is less than this value, it is possible to recognize Determine present speed and be less than predetermined threshold value;Its usual reading speed can reach 80M/s for 7200 rpms of hard disk, Writing speed can reach 70M/s, and at this moment can sets predetermined threshold value as 40M/s, when speed is less than this value, it is possible to Assert that present speed is less than predetermined threshold value.
S13:If it is, the data are write into default memory space, and return to write-in success response.
On the basis of step S12, if it is decided that when current reading speed is less than predetermined threshold value, it is possible to assert the storage The writing speed of device is excessively slow, may influence overall system performance, it is possible to and the data that will be write are written to default memory space, Without being written in the memory, and return and write successfully accordingly to system, completed accordingly so as to which system receives write-in Afterwards, it is believed that complete write-in, do not influence the progress of system follow-up work.
Further, on the basis of above-described embodiment, can return write success response after, by the data from The default memory space writes the memory.For whole system, the data still should store memory, institute Data can be write into the system free time when.
On the basis of above-described embodiment, preferably, the default memory space can be arranged at solid On state hard disk.The storage medium of solid state hard disc is divided into two kinds, and one kind is to be used as storage medium using flash memory (FLASH chip), separately Outer one kind is that, using hard disk of the flash memory as storage medium, in general, reading speed is relative as storage medium using DRAM Mechanical hard disk is faster, it is possible to which default memory space is arranged on solid state hard disc.
It is of course also possible to set the storage region of a special similar caching in conventional hard, deposited as special Store up space, when write the conventional hard it is excessively slow when, the storage region is done into default memory space, for temporarily storage to write Data.
Further, the preset procedures of the default memory space, can include:The big of the default memory space is set It is small;The position of the default memory space is set.In actual applications, it is understood that there may be substantial amounts of memory, such as one For server, solid state hard disc, magnetic hard-disk may and be deposited, and at this moment can store sky for slow magnetic hard-disk is default Between when, this is preset into memory space can be arranged on specific one piece of solid state hard disc, can also to preset memory space it is big It is small to be adjusted.
Further, in order to record the performance of specific memory, convenient use person knows, and takes measures, can be with Record the memory numbering and corresponding writing speed.Specifically, a system file can be established and be used for special record, deposited The numbering of reservoir and corresponding writing speed, the writing speed that this method is recorded can also set memory size when Standby makes reference.
Fig. 2 is refer to, Fig. 2 is the group that a kind of memory performance that a kind of embodiment of the present invention provides optimizes device Into schematic diagram.
The present invention provides a kind of memory performance optimization device 200, including:
Speed acquiring module 201, for when memory write data, obtaining the presently written speed of the memory;
Velocity estimated module 202, for judging whether the presently written speed is less than predetermined threshold value;
Default writing module 203, for judging that the presently written speed is less than default threshold when velocity estimated module 202 During value, then the data are write into default memory space, and return to write-in success response.
Fig. 3 is refer to, Fig. 3 is that a kind of memory performance that a kind of embodiment of the present invention provides optimizes opening up for device Open up composition schematic diagram.
Preferably, memory performance optimization device 200 also includes:
Data transcription module 204, for the data to be write into the memory from the default memory space.
Preferably, memory performance optimization device 200 also includes:
Size setup module 205, for setting the size of the default memory space;
Position setup module 206, for setting the position of the default memory space.
Preferably, memory performance optimization device 200 also includes:
Speed record module 207, for recording the memory numbering and corresponding writing speed.
The present invention also provides a kind of computer equipment, including:
Memory, for storing computer program;
Processor, any memory performance in above-mentioned embodiment is realized during for performing the computer program The step of optimization method.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, article or equipment being also present.
A kind of memory performance optimization method and device provided by the present invention, computer equipment have been carried out in detail above Introduce, specific case used herein is set forth to the principle and embodiment of the present invention, the explanation of above example It is only intended to help the method and its core concept for understanding the present invention;Meanwhile for those of ordinary skill in the art, according to this The thought of invention, there will be changes in specific embodiments and applications, in summary, this specification content should It is interpreted as limitation of the present invention.

Claims (10)

  1. A kind of 1. memory performance optimization method, it is characterised in that including:
    When data write memory, the presently written speed of the memory is obtained;
    Judge whether the presently written speed is less than predetermined threshold value;
    If it is, the data are write into default memory space, and return to write-in success response.
  2. 2. according to the method for claim 1, it is characterised in that described return is write after success response, in addition to:
    The data are write into the memory from the default memory space.
  3. 3. according to the method for claim 1, it is characterised in that the default memory space, including:
    The default memory space being arranged on solid state hard disc.
  4. 4. according to the method for claim 1, it is characterised in that the preset procedures of the default memory space, including:
    The size of the default memory space is set;
    The position of the default memory space is set.
  5. 5. according to the method described in any one of Claims 1-4, it is characterised in that also include:
    Record the memory numbering and corresponding writing speed.
  6. 6. a kind of memory performance optimizes device, it is characterised in that including:
    Speed acquiring module, for when memory write data, obtaining the presently written speed of the memory;
    Velocity estimated module, for judging whether the presently written speed is less than predetermined threshold value;
    Default writing module, for when velocity estimated module judges that the presently written speed is less than predetermined threshold value, then will The default memory space of data write-in, and return to write-in success response.
  7. 7. device according to claim 6, it is characterised in that also include:
    Data transcription module, for the data to be write into the memory from the default memory space.
  8. 8. device according to claim 6, it is characterised in that also include:
    Size setup module, for setting the size of the default memory space;
    Position setup module, for setting the position of the default memory space.
  9. 9. according to the device described in any one of claim 6 to 8, it is characterised in that also include:
    Speed record module, for recording the memory numbering and corresponding writing speed.
  10. A kind of 10. computer equipment, it is characterised in that including:
    Memory, for storing computer program;
    Processor, a kind of memory performance as described in any one of claim 1 to 5 is realized during for performing the computer program The step of optimization method.
CN201710971316.9A 2017-10-18 2017-10-18 A kind of memory performance optimization method and device, computer equipment Pending CN107728948A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710971316.9A CN107728948A (en) 2017-10-18 2017-10-18 A kind of memory performance optimization method and device, computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710971316.9A CN107728948A (en) 2017-10-18 2017-10-18 A kind of memory performance optimization method and device, computer equipment

Publications (1)

Publication Number Publication Date
CN107728948A true CN107728948A (en) 2018-02-23

Family

ID=61211939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710971316.9A Pending CN107728948A (en) 2017-10-18 2017-10-18 A kind of memory performance optimization method and device, computer equipment

Country Status (1)

Country Link
CN (1) CN107728948A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108508349A (en) * 2018-03-16 2018-09-07 广州视源电子科技股份有限公司 Board stored response testing method, system, storage medium and computer equipment
CN108932158A (en) * 2018-06-28 2018-12-04 郑州云海信息技术有限公司 A kind of method, apparatus and MDS server of meta data server issued transaction
CN110007878A (en) * 2019-04-17 2019-07-12 Oppo广东移动通信有限公司 Storage card processing method, storage card processing unit and mobile terminal
CN110955642A (en) * 2019-10-12 2020-04-03 平安科技(深圳)有限公司 Data acquisition optimization method, device and equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135993A (en) * 2007-09-20 2008-03-05 华为技术有限公司 Embedded system chip and data read-write processing method
CN102541458A (en) * 2010-12-17 2012-07-04 西安奇维测控科技有限公司 Method for increasing data writing speed of electronic hard disk
CN104765576A (en) * 2015-04-28 2015-07-08 广东欧珀移动通信有限公司 Data storage method and data storage device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101135993A (en) * 2007-09-20 2008-03-05 华为技术有限公司 Embedded system chip and data read-write processing method
CN102541458A (en) * 2010-12-17 2012-07-04 西安奇维测控科技有限公司 Method for increasing data writing speed of electronic hard disk
CN104765576A (en) * 2015-04-28 2015-07-08 广东欧珀移动通信有限公司 Data storage method and data storage device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李俭: "《操作系统原理与实训教程》", 31 August 2014 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108508349A (en) * 2018-03-16 2018-09-07 广州视源电子科技股份有限公司 Board stored response testing method, system, storage medium and computer equipment
CN108932158A (en) * 2018-06-28 2018-12-04 郑州云海信息技术有限公司 A kind of method, apparatus and MDS server of meta data server issued transaction
CN110007878A (en) * 2019-04-17 2019-07-12 Oppo广东移动通信有限公司 Storage card processing method, storage card processing unit and mobile terminal
CN110955642A (en) * 2019-10-12 2020-04-03 平安科技(深圳)有限公司 Data acquisition optimization method, device and equipment and readable storage medium

Similar Documents

Publication Publication Date Title
EP4068070A1 (en) Data storage method and apparatus, and storage system
US9665293B2 (en) Method for a storage device processing data and storage device
US8225029B2 (en) Data storage processing method, data searching method and devices thereof
CN107728948A (en) A kind of memory performance optimization method and device, computer equipment
CN103999058B (en) Tape drive system server
CN101981551B (en) Apparatus and method for cache utilization
US8214581B2 (en) System and method for cache synchronization
US20090157756A1 (en) File System For Storing Files In Multiple Different Data Storage Media
WO2005109169A1 (en) Method for accessing data, apparatus and recording medium for performing that method
CN104065906B (en) Video recording method and device of digital video recording equipment
CN107168651B (en) Small file aggregation storage processing method
CN104268099A (en) Management data reading and writing method and device
CN110515550B (en) Method and device for separating cold data and hot data of SATA solid state disk
WO2021073241A1 (en) Disk storage-based data reading method and device, and apparatus
CN107515827A (en) Storage method, device and the SSD of the self-defined daily records of PCIE SSD
CN102945679A (en) Video data processing method and video data read-write equipment
CN107092443B (en) Data migration method and device
CN106844491B (en) Temporary data writing and reading method and device
US9710504B2 (en) Data processing and writing method and related apparatus
WO2008136563A1 (en) Method of storing meta-data and system for storing meta-data
CN100543748C (en) A kind of method and system of utilizing file allocation table to carry out the file tracking
CN103399783A (en) Storage method and device of mirror image documents of virtual machines
WO2016029481A1 (en) Method and device for isolating disk regions
CN103176753A (en) Storage device and data management method of storage device
CN105827681A (en) Backup data transmission method under SAN (Storage Area Network)

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

RJ01 Rejection of invention patent application after publication