CN103455284A - Method and device for reading and writing data - Google Patents
Method and device for reading and writing data Download PDFInfo
- Publication number
- CN103455284A CN103455284A CN2013104263302A CN201310426330A CN103455284A CN 103455284 A CN103455284 A CN 103455284A CN 2013104263302 A CN2013104263302 A CN 2013104263302A CN 201310426330 A CN201310426330 A CN 201310426330A CN 103455284 A CN103455284 A CN 103455284A
- Authority
- CN
- China
- Prior art keywords
- data
- speed memory
- read
- identification
- speed
- 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
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method and a device for reading and writing data and aims to solve the problem that cluster file systems are low in data reading and writing speed in the prior art. The method includes that when reading data, an output node finds data from a high-speed storage, the data are read if being found, and the data are read and stored in the high-speed storage from a low-speed storage or other nodes if not being found; when writing data, if the node which the data need to be written in is the output node, the output node writes the data in the high-speed storage, and stores the data in the low-speed storage from the high-speed storage when data quantity of the data stored in the high-speed storage is larger than a set threshold value. In the method, the high-speed storage is higher than the low-speed storage in reading and writing speed, so that when reading the data, the output node can directly read the data from the high-speed storage, and data reading speed can be effectively increased; when writing the data, the output node writes the data in the high-speed storage, so that data writing speed can be effectively increased.
Description
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method read and write data and device.
Background technology
In recent years, along with the informationalized fast development of every profession and trade, need the data volume of the data of storage to increase sharply, the large extendible cluster file system of capacity arises at the historic moment.
Cluster file system comprises a plurality of nodes, these nodes are divided into output node and memory node, and the access interface that output node can provide the user to access cluster file system also can be used for storing data, memory node, only for storing data, can not directly be accessed by the user.
By output node, the user can have access to any node in cluster file system, as, can pass through output node, read the data of storing in any node in cluster file system, also can be to any node data writing in cluster file system.
But, in the prior art, each node in cluster file system all adopts such as the low-speed memories such as disk storage data, therefore, when the user reads the data in certain node in cluster file system, or in certain node during data writing, can be because the read or write speed such as low-speed memories such as disks causes the read or write speed of data lower slowly.
Summary of the invention
The embodiment of the present invention provides a kind of method read and write data and device, in order to solve the lower problem of reading and writing data speed of cluster file system in prior art.
The method of a kind of read data that the embodiment of the present invention provides comprises:
Output node receives the read request that access means is sent, and determines the Data Identification carried in described read request; And
Search definite data corresponding to described Data Identification in local high-speed memory;
If find, from described high-speed memory, read the data that described Data Identification is corresponding and return to described access means;
If do not find, from local low-speed memory or other nodes, read the data that described Data Identification is corresponding and return to described access means, and the data that read are deposited in described high-speed memory;
Wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory.
A kind of method of writing data that the embodiment of the present invention provides comprises:
Output node receives the write request that access means is sent, and determines the node identification of the node of the data writing of wanting carried in described write request;
When node identification that definite node identification is described output node, the data of carrying in described write request are written in local high-speed memory, and whether the data volume that judges current storage data in described high-speed memory is greater than setting threshold, if, deposit the data of storing in described high-speed memory in local low-speed memory, otherwise, wait for while to the data volume of storage data in described high-speed memory, being greater than setting threshold, deposit the data of storing in described high-speed memory in local low-speed memory, wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory,
When definite node identification is not the node identification of described output node, to definite node identification, corresponding node forwards described write request.
The device of a kind of read data that the embodiment of the present invention provides comprises:
Receiver module, the read request of sending for receiving access means, determine the Data Identification carried in described read request;
Search module, for the high-speed memory local, search data corresponding to described Data Identification that described receiver module is determined;
Read module, for described while searching module searches to data corresponding to described Data Identification, read the data that described Data Identification is corresponding and return to described access means, in the described module of searching while not finding data corresponding to described Data Identification, read the data that described Data Identification is corresponding and return to described access means from local low-speed memory or other nodes, and the data that read are deposited in described high-speed memory, wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory.
A kind of device of writing data that the embodiment of the present invention provides comprises:
Receiver module, the write request of sending for receiving access means, determine the node identification of the node of the data writing of wanting carried in described write request;
Writing module, during for the node identification when the definite node identification of described receiver module is described device, the data of carrying in described write request are written in local high-speed memory, and whether the data volume that judges current storage data in described high-speed memory is greater than setting threshold, if, deposit the data of storing in described high-speed memory in local low-speed memory, otherwise, wait for while to the data volume of storage data in described high-speed memory, being greater than setting threshold, deposit the data of storing in described high-speed memory in local low-speed memory, wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory,
Forwarding module, for when the definite node identification of described receiver module is not the node identification of described device, to definite node identification, corresponding node forwards described write request.
The embodiment of the present invention provides a kind of method read and write data and device, the method is when read data, output node is searched data from high-speed memory, if find reading out data, if do not find from low-speed memory or other nodes in reading out data storing high-speed storer, when writing data, if the node that data will write is this output node, output node writes data in high-speed memory, and in high-speed memory the data volume of storage data while being greater than setting threshold, deposit the data in high-speed memory in low-speed memory, if the node that data will write is not this output node, to other nodes, forward write request.Due to the read or write speed of said method high speed storer higher than low-speed memory, the direct reading out data from high-speed memory of output node when read data, therefore can effectively improve the speed of read data, when writing data, output node first writes data in high-speed memory, deposit data in low-speed memory again when the data volume of storage data is greater than setting threshold in high-speed memory, can effectively reduce to the number of times of low-speed memory data writing, thereby can effectively improve the speed of writing data.
The accompanying drawing explanation
The process of the read data that Fig. 1 provides for the embodiment of the present invention;
The process of writing data that Fig. 2 provides for the embodiment of the present invention;
The apparatus structure schematic diagram of the read data that Fig. 3 provides for the embodiment of the present invention;
The apparatus structure schematic diagram of writing data that Fig. 4 provides for the embodiment of the present invention.
Embodiment
In order to improve the speed read and write data, increase high-speed memory in the embodiment of the present invention in output node, its read or write speed is higher than low-speed memory, when read data, output node is searched data from high-speed memory, if find reading out data, if do not find from low-speed memory or other nodes in reading out data storing high-speed storer, when writing data, if the node that data will write is this output node, output node writes data in high-speed memory, and in high-speed memory the data volume of storage data while being greater than setting threshold, deposit the data in high-speed memory in low-speed memory, can effectively improve the speed read and write data.
Below in conjunction with Figure of description, the embodiment of the present invention is described in detail.
The process of the read data that Fig. 1 provides for the embodiment of the present invention specifically comprises the following steps:
S101: output node receives the read request that access means is sent, and determines the Data Identification carried in this read request.
In embodiments of the present invention, output node in cluster file system is when receiving the read request that access means sends, determine the Data Identification carried in this read request received, the corresponding data of the Data Identification carried in this read request are the data that access means will be obtained.Wherein, the access means described in the embodiment of the present invention can be user terminal, can be also other nodes in cluster file system.
S102: search definite data corresponding to this Data Identification in local high-speed memory.
In embodiments of the present invention, output node, except having low-speed memory, also has high-speed memory, and the read or write speed of high-speed memory is higher than low-speed memory.Low-speed memory can be traditional disk.And consider in the practical application scene, buffer memory has advantages of that capacity is large, power down obliterated data not, therefore, in the embodiment of the present invention, can adopt buffer memory to realize the high-speed memory in output node.Obviously, the read or write speed of buffer memory is higher than disk.
After output node has determined by step S101 the Data Identification carried in the read request received, in local high-speed memory, search definite data corresponding to this Data Identification.
S103: judge whether to find the data that this Data Identification is corresponding, if, perform step S104, otherwise execution step S105.
S104: read data backward reference equipment that this Data Identification is corresponding from high-speed memory.
While finding data corresponding to this definite Data Identification in local high-speed memory when output node, from high-speed memory, read the data that this Data Identification is corresponding, and the data that read are returned to access means.
Due to the read or write speed of high-speed memory, higher than low-speed memory, therefore, when finding the data that will read in high-speed memory, direct reading out data from high-speed memory, can effectively improve the speed of read data.
S105: read data backward reference equipment that this Data Identification is corresponding from local low-speed memory or other nodes, and the data that read are deposited in high-speed memory.
While not finding data corresponding to this definite Data Identification in local high-speed memory when output node, can from local low-speed memory or other nodes, read the data that this Data Identification is corresponding, and the data that read are returned to access means, then the data that read are deposited in high-speed memory.
After depositing in high-speed memory by the data that read, if follow-up, there is again other access means will read these data, in the high-speed memory due to output node now, these data have been stored, therefore can directly from high-speed memory, read these data, without reading this data again from local low-speed memory or other nodes, thereby can effectively improve the speed of read data.
Concrete, in above-mentioned steps S105, while not finding data corresponding to this Data Identification in local high-speed memory when output node, the method that reads the data that this Data Identification is corresponding from local low-speed memory or other nodes can be: judge in local low-speed memory whether stored data corresponding to this Data Identification, if, from local low-speed memory, read the data that this Data Identification is corresponding, otherwise, determine other nodes stored the data that this Data Identification is corresponding, and read the data that this Data Identification is corresponding from these other nodes of determining.
Further, by said method, can be found out, high-speed memory in output node is except the data of preserving this output node and self storing, also to preserve the data that in cluster file system, other nodes are stored, and consider that the storage space of high-speed memory is limited after all, therefore, in embodiments of the present invention, can only store the more data of reading times in the high-speed memory of output node, that is, only store hot spot data.
Concrete, in the step S105 shown in Fig. 1, while not finding data corresponding to this Data Identification in local high-speed memory when output node, read the data that this Data Identification is corresponding from local low-speed memory or other nodes after, before in these data that will read deposit high-speed memory in, reading times that also will this Data Identification of current record is corresponding adds 1, and whether the reading times that judgement adds after 1 is greater than set point number, if, these data that will read deposit in high-speed memory, otherwise, these data that read wouldn't be deposited in high-speed memory.Be also, the reading times of the data that output node is corresponding to each Data Identification (comprising the data of storing in other nodes of the data of output node self storage and cluster file system) is monitored, record corresponding data and identify corresponding reading times, when the reading times corresponding to certain Data Identification of record is greater than set point number, using this Data Identification, corresponding data deposit in local high-speed memory as hot spot data, follow-up, while reading this hot spot data, can directly from high-speed memory, read.Wherein, above-mentioned set point number can be set as required, for example is set as 50.
Certainly, for the data that deposit in high-speed memory, output node can also continue the reading times of these data is monitored, if the reading times of these data in setting-up time length is less than set point number, these data is deleted from high-speed memory.
In addition, in the output node in cluster file system, increase high-speed memory, also can also increase high-speed memory to other nodes (as memory node) in cluster file system, and adopt said method to carry out read data, can further improve the speed of read data.Difference is that, if increase high-speed memory in memory node, the high-speed memory increased in memory node can not stored the data of storing in other nodes, and only stores the data that this memory node self is stored.
The method of the above read data provided for the embodiment of the present invention, the following describes the method for writing data that the embodiment of the present invention provides, as shown in Figure 2.
Fig. 2 is the process of writing data that the embodiment of the present invention provides, and specifically comprises the following steps:
S201: output node receives the write request that access means is sent, and determines the node identification of the node of the data writing of wanting carried in this write request.
In embodiments of the present invention, output node in cluster file system is when receiving the write request that access means sends, determine the node identification carried in this read request received, the node identification carried in this write request is node identification corresponding to node that access means is wanted data writing.For example,, if access means will, to this output node data writing, send the write request of the node identification that carries this output node to output node.Certainly, also carry the data that access means will write in this write request.
In addition, the access means described in the embodiment of the present invention can be user terminal, can be also other nodes in cluster file system.
S202: whether this node identification that judgement is determined is the node identification of output node self, if, perform step S203, otherwise execution step S207.
S203: the data of carrying in this write request are written in local high-speed memory.
In embodiments of the present invention, output node, except having low-speed memory, also has high-speed memory, and the read or write speed of high-speed memory is higher than low-speed memory.Low-speed memory can be traditional disk.And consider in the practical application scene, buffer memory has advantages of that capacity is large, power down obliterated data not, therefore, in the embodiment of the present invention, can adopt buffer memory to realize the high-speed memory in output node.Obviously, the read or write speed of buffer memory is higher than disk.
After output node has determined by step S201 the node identification carried in the write request received, if determine that by step S202 the node identification carried in this write request is the node identification of this output node self, illustrate that it is this output node that access means is wanted the node of data writing, so output node first is written to the data of carrying in this write request in local high-speed memory.
, therefore, data are first write to store through cache and can improve access means and data are write to the speed of this output node higher than low-speed memory due to the read or write speed of high-speed memory.
S204: whether the data volume that judges current storage data in high-speed memory is greater than setting threshold, if, perform step S205, otherwise, execution step S206.
In embodiments of the present invention, because the data that are written to output node finally still will write in low-speed memory, and the read or write speed of low-speed memory is slower, if all directly the data in high-speed memory are written in low-speed memory after data writing in high-speed memory at every turn, not only writing speed is slower, and low-speed memory also needs to start frequently, can reduce the life-span of low-speed memory, therefore, after in the embodiment of the present invention, output node is written in high-speed memory by the data of carrying in write request, whether the data volume that judges storage data in current high-speed memory is greater than setting threshold, if be greater than, all data of storing in high-speed memory are write in the low-speed memory of this output node this locality, otherwise, the data of storing in high-speed memory wouldn't be deposited in to local low-speed memory, wait for while to the data volume of storage data in the high speed storer, being greater than setting threshold, deposit the data of storing in high-speed memory in local low-speed memory again.
Wherein, above-mentioned setting threshold can be set as required, for example is set as 50M.
S205: deposit the data of storing in high-speed memory in local low-speed memory.
S206: the data of storing in high-speed memory wouldn't be deposited in to local low-speed memory, return to step S201.
S207: to node corresponding to this node identification of determining, forward this write request.
If output node determines that by step S202 the node identification carried in this write request is not the node identification of this output node self, illustrate that it is not this output node that access means is wanted the node of data writing, so output node is transmitted to this write request node corresponding to node identification carried in this write request.
By said method, when data writing, can effectively reduce to the number of times of low-speed memory data writing without starting frequently low-speed memory, not only can improve the writing speed of data, also can extend the life-span of low-speed memory.
In addition, in the output node in cluster file system, increase high-speed memory, also can also increase high-speed memory to other nodes (as memory node) in cluster file system, and adopt said method to be write data, can further improve the speed of writing data.
Further, use can combine the method for read data as shown in Figure 1 and the method for writing data as shown in Figure 2 in the embodiment of the present invention, when in conjunction with above-mentioned read data with while writing the method for data, the storage space of the high-speed memory of output node can be divided into to two parts.A part is used for: when the data reading method adopted as shown in Figure 1, and the data that the Data Identification carried in the storage read request is corresponding (can be the data of this output node self storage, can be also the data of other node storages).Another part is used for: when the data writing method adopted as shown in Figure 2, storing received to write request in the data of carrying.
The above method of writing data provided for the embodiment of the present invention.
Invention thinking based on same, the embodiment of the present invention also provides a kind of device of read data and writes the device of data, as shown in Figure 3 and Figure 4.
The apparatus structure schematic diagram of the read data that Fig. 3 provides for the embodiment of the present invention specifically comprises:
Read module 303, for in the described module 302 of searching while finding data corresponding to described Data Identification, read the data that described Data Identification is corresponding and return to described access means, in the described module 302 of searching while not finding data corresponding to described Data Identification, read the data that described Data Identification is corresponding and return to described access means from local low-speed memory or other nodes, and the data that read are deposited in described high-speed memory, wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory.
Described read module 303 specifically for, judge in local low-speed memory and whether store the data that described Data Identification is corresponding; If from described low-speed memory, read the data that described Data Identification is corresponding; Otherwise, determine other nodes of storing the data that described Data Identification is corresponding, read the data that described Data Identification is corresponding from described other nodes of determining.
Described read module 303 also for, before the data by reading deposit in described high-speed memory, the reading times that the described Data Identification of current record is corresponding adds 1, determines that the reading times add after 1 is greater than set point number.
The device of concrete above-mentioned read data as shown in Figure 3 can be arranged in output node.
Fig. 4 is the apparatus structure schematic diagram of writing data that the embodiment of the present invention provides, and specifically comprises:
The concrete above-mentioned device of writing data as shown in Figure 4 can be arranged in output node.
The embodiment of the present invention provides a kind of method read and write data and device, the method is when read data, output node is searched data from high-speed memory, if find reading out data, if do not find from low-speed memory or other nodes in reading out data storing high-speed storer, when writing data, if the node that data will write is this output node, output node writes data in high-speed memory, and in high-speed memory the data volume of storage data while being greater than setting threshold, deposit the data in high-speed memory in low-speed memory, if the node that data will write is not this output node, to other nodes, forward write request.Due to the read or write speed of said method high speed storer higher than low-speed memory, the direct reading out data from high-speed memory of output node when read data, therefore can effectively improve the speed of read data, when writing data, output node first writes data in high-speed memory, deposit data in low-speed memory again when the data volume of storage data is greater than setting threshold in high-speed memory, can effectively reduce to the number of times of low-speed memory data writing, thereby can effectively improve the speed of writing data.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, implement software example or in conjunction with the form of the embodiment of software and hardware aspect fully.And the application can adopt the form that wherein includes the upper computer program of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) of computer usable program code one or more.
In a typical configuration, computing equipment comprises one or more processors (CPU), input/output interface, network interface and internal memory.
Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as ROM (read-only memory) (ROM) or flash memory (flash RAM).Internal memory is the example of computer-readable medium.
Computer-readable medium comprises that permanent and impermanency, removable and non-removable media can realize the information storage by any method or technology.Information can be module or other data of computer-readable instruction, data structure, program.The example of the storage medium of computing machine comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic RAM (DRAM), the random access memory of other types (RAM), ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc ROM (read-only memory) (CD-ROM), digital versatile disc (DVD) or other optical memory, magnetic holder formula tape, the storage of tape magnetic rigid disk or other magnetic storage apparatus or any other non-transmission medium, can be used for the information that storage can be accessed by computing equipment.According to defining herein, computer-readable medium does not comprise non-temporary computer readable media (transitory media), as data-signal and the carrier wave of modulation.
The application describes with reference to process flow diagram and/or the block scheme of method, equipment (system) and computer program according to the embodiment of the present application.Should understand can be in computer program instructions realization flow figure and/or block scheme each flow process and/or the flow process in square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out by the processor of computing machine or other programmable data processing device produce for realizing the device in the function of flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame appointments.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, make the instruction be stored in this computer-readable memory produce the manufacture that comprises command device, this command device is realized the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
These computer program instructions also can be loaded on computing machine or other programmable data processing device, make and carry out the sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out on computing machine or other programmable devices is provided for realizing the step of the function of appointment in flow process of process flow diagram or a plurality of flow process and/or square frame of block scheme or a plurality of square frame.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to all changes and the modification that are interpreted as comprising preferred embodiment and fall into the application's scope.
Obviously, those skilled in the art can carry out various changes and modification and not break away from the spirit and scope of the embodiment of the present application the embodiment of the present application.Like this, if within these of the embodiment of the present application are revised and modification belongs to the scope of the application's claim and equivalent technologies thereof, the application also is intended to comprise these changes and modification interior.
Claims (10)
1. the method for a read data, is characterized in that, comprising:
Output node receives the read request that access means is sent, and determines the Data Identification carried in described read request; And
Search definite data corresponding to described Data Identification in local high-speed memory;
If find, from described high-speed memory, read the data that described Data Identification is corresponding and return to described access means;
If do not find, from local low-speed memory or other nodes, read the data that described Data Identification is corresponding and return to described access means, and the data that read are deposited in described high-speed memory;
Wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory.
2. the method for claim 1, is characterized in that, described high-speed memory comprises buffer memory;
Described low-speed memory comprises disk.
3. the method for claim 1, is characterized in that, from local low-speed memory or other nodes, reads the data that described Data Identification is corresponding, specifically comprises:
Judge in local low-speed memory and whether store the data that described Data Identification is corresponding;
If from described low-speed memory, read the data that described Data Identification is corresponding;
Otherwise, determine other nodes of storing the data that described Data Identification is corresponding, read the data that described Data Identification is corresponding from described other nodes of determining.
4. described method as arbitrary as claim 1~3, is characterized in that, before depositing in described high-speed memory by the data that read, described method also comprises:
The reading times that the described Data Identification of current record is corresponding adds 1;
Determine that the reading times added after 1 is greater than set point number.
5. a method of writing data, is characterized in that, comprising:
Output node receives the write request that access means is sent, and determines the node identification of the node of the data writing of wanting carried in described write request;
When node identification that definite node identification is described output node, the data of carrying in described write request are written in local high-speed memory, and whether the data volume that judges current storage data in described high-speed memory is greater than setting threshold, if, deposit the data of storing in described high-speed memory in local low-speed memory, otherwise, wait for while to the data volume of storage data in described high-speed memory, being greater than setting threshold, deposit the data of storing in described high-speed memory in local low-speed memory;
When definite node identification is not the node identification of described output node, to definite node identification, corresponding node forwards described write request;
Wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory.
6. method as claimed in claim 5, is characterized in that, described high-speed memory comprises buffer memory;
Described low-speed memory comprises disk.
7. the device of a read data, is characterized in that, comprising:
Receiver module, the read request of sending for receiving access means, determine the Data Identification carried in described read request;
Search module, for the high-speed memory local, search data corresponding to described Data Identification that described receiver module is determined;
Read module, for described while searching module searches to data corresponding to described Data Identification, read the data that described Data Identification is corresponding and return to described access means, in the described module of searching while not finding data corresponding to described Data Identification, read the data that described Data Identification is corresponding and return to described access means from local low-speed memory or other nodes, and the data that read are deposited in described high-speed memory, wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory.
8. device as claimed in claim 7, is characterized in that, described read module specifically for, judge in local low-speed memory and whether store the data that described Data Identification is corresponding; If from described low-speed memory, read the data that described Data Identification is corresponding; Otherwise, determine other nodes of storing the data that described Data Identification is corresponding, read the data that described Data Identification is corresponding from described other nodes of determining.
9. install as claimed in claim 7 or 8, it is characterized in that, described read module also for, before the data by reading deposit in described high-speed memory, the reading times that the described Data Identification of current record is corresponding adds 1, determines that the reading times added after 1 is greater than set point number.
10. a device of writing data, is characterized in that, comprising:
Receiver module, the write request of sending for receiving access means, determine the node identification of the node of the data writing of wanting carried in described write request;
Writing module, during for the node identification when the definite node identification of described receiver module is described device, the data of carrying in described write request are written in local high-speed memory, and whether the data volume that judges current storage data in described high-speed memory is greater than setting threshold, if, deposit the data of storing in described high-speed memory in local low-speed memory, otherwise, wait for while to the data volume of current storage data in described high-speed memory, being greater than setting threshold, deposit the data of storing in described high-speed memory in local low-speed memory, wherein, the read or write speed of described high-speed memory is higher than the read or write speed of described low-speed memory,
Forwarding module, for when the definite node identification of described receiver module is not the node identification of described device, to definite node identification, corresponding node forwards described write request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013104263302A CN103455284A (en) | 2013-09-18 | 2013-09-18 | Method and device for reading and writing data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2013104263302A CN103455284A (en) | 2013-09-18 | 2013-09-18 | Method and device for reading and writing data |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103455284A true CN103455284A (en) | 2013-12-18 |
Family
ID=49737708
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2013104263302A Pending CN103455284A (en) | 2013-09-18 | 2013-09-18 | Method and device for reading and writing data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103455284A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015145454A1 (en) * | 2014-03-28 | 2015-10-01 | Hewlett-Packard Development Company, L.P. | Data file hoarding |
CN105786918A (en) * | 2014-12-26 | 2016-07-20 | 亿阳信通股份有限公司 | Data loading storage space-based data query method and device |
CN107943422A (en) * | 2017-12-07 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of high speed storing media data management method, system and device |
CN108052296A (en) * | 2017-12-30 | 2018-05-18 | 惠龙易通国际物流股份有限公司 | A kind of method for reading data, equipment and computer storage media |
CN110543382A (en) * | 2019-09-03 | 2019-12-06 | 上海联影医疗科技有限公司 | method and system for storing scanning data of medical imaging equipment |
CN111767153A (en) * | 2020-06-05 | 2020-10-13 | 维沃移动通信有限公司 | Resource access method and device and electronic equipment |
CN113626487A (en) * | 2021-07-28 | 2021-11-09 | 广州市挖米科技有限责任公司 | SAAS-based high-speed electrocardiogram data transmission and display method and device |
-
2013
- 2013-09-18 CN CN2013104263302A patent/CN103455284A/en active Pending
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015145454A1 (en) * | 2014-03-28 | 2015-10-01 | Hewlett-Packard Development Company, L.P. | Data file hoarding |
CN105786918A (en) * | 2014-12-26 | 2016-07-20 | 亿阳信通股份有限公司 | Data loading storage space-based data query method and device |
CN107943422A (en) * | 2017-12-07 | 2018-04-20 | 郑州云海信息技术有限公司 | A kind of high speed storing media data management method, system and device |
CN108052296A (en) * | 2017-12-30 | 2018-05-18 | 惠龙易通国际物流股份有限公司 | A kind of method for reading data, equipment and computer storage media |
CN110543382A (en) * | 2019-09-03 | 2019-12-06 | 上海联影医疗科技有限公司 | method and system for storing scanning data of medical imaging equipment |
CN110543382B (en) * | 2019-09-03 | 2022-09-20 | 上海联影医疗科技股份有限公司 | Method and system for storing scanning data of medical imaging equipment |
US11755225B2 (en) | 2019-09-03 | 2023-09-12 | Shanghai United Imaging Healthcare Co., Ltd | Systems and methods for data storage |
CN111767153A (en) * | 2020-06-05 | 2020-10-13 | 维沃移动通信有限公司 | Resource access method and device and electronic equipment |
CN111767153B (en) * | 2020-06-05 | 2024-04-30 | 维沃移动通信有限公司 | Resource access method and device and electronic equipment |
CN113626487A (en) * | 2021-07-28 | 2021-11-09 | 广州市挖米科技有限责任公司 | SAAS-based high-speed electrocardiogram data transmission and display method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103455284A (en) | Method and device for reading and writing data | |
CN110149803B (en) | Data storage method, system and terminal equipment | |
US9021189B2 (en) | System and method for performing efficient processing of data stored in a storage node | |
US20150032937A1 (en) | System and method for performing efficient searches and queries in a storage node | |
US20150113230A1 (en) | Directory storage method and query method, and node controller | |
US20170262372A1 (en) | Cache Memory System and Method for Accessing Cache Line | |
CN110555001B (en) | Data processing method, device, terminal and medium | |
KR102569545B1 (en) | Key-value storage device and method of operating the key-value storage device | |
CN107329704B (en) | Cache mirroring method and controller | |
US9009392B2 (en) | Leveraging a hybrid infrastructure for dynamic memory allocation and persistent file storage | |
CN105094686A (en) | Data caching method, cache and computer system | |
JP2015512098A (en) | Data migration for composite non-volatile storage | |
CN104360825B (en) | One kind mixing memory system and its management method | |
CN104092670A (en) | Method for utilizing network cache server to process files and device for processing cache files | |
CN115794669A (en) | Method, device and related equipment for expanding memory | |
CN103914483A (en) | File storage method and device and file reading method and device | |
CN104615594A (en) | Data updating method and device | |
KR101226600B1 (en) | Memory System And Memory Mapping Method thereof | |
CN102737068A (en) | Method and equipment for performing cache management on retrieval data | |
CN103970678B (en) | Catalogue designing method and device | |
CN105917303A (en) | Controller, method for identifying data block stability and storage system | |
CN103778120A (en) | Global file identification generation method, generation device and corresponding distributed file system | |
US20150052327A1 (en) | Dynamic memory relocation | |
US11327939B2 (en) | Method and device for indexing dirty data in storage system page | |
WO2025021210A1 (en) | Memory page management method, system and apparatus, device, and computer non-volatile readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20131218 |
|
WD01 | Invention patent application deemed withdrawn after publication |