发明名称 |
READ-WRITE CONTROL METHOD FOR MEMORY, AND CORRESPONDING MEMORY AND SERVER |
摘要 |
Described are a read-write control method for memory, and a corresponding memory and server. The method comprises: dividing a storage resource of the memory by taking a block as a unit; to write data, combining the data to be written into a data block, writing the data block in a free segment of the memory, and recording an identifier and a corresponding index of the data, the index of the written data is an offset indicating a memory location of the data in the memory; to read data, reading the data from the offset of the memory according to an identifier and a index of the data to be read. When read-write control is performed on the memory, the number of the times that the I/O operation is performed on the memory is reduced during data writing, thereby improving the efficiency of the write operation on the memory. |
申请公布号 |
US2014359233(A1) |
申请公布日期 |
2014.12.04 |
申请号 |
US201414463071 |
申请日期 |
2014.08.19 |
申请人 |
TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED |
发明人 |
XU Jianfeng;Wu Yue;Zhong Chaoyu;Xie Ming;Li Wenzheng |
分类号 |
G06F12/02 |
主分类号 |
G06F12/02 |
代理机构 |
|
代理人 |
|
主权项 |
1. A read-write control method for memory, comprising:
dividing a storage resource of the memory by taking a block as a unit; to write data, combining the data to be written into a data block, writing the data block in a free segment of the memory, and recording an identifier and a corresponding index of the data, the index of the data is an offset indicating a memory location of the data in the memory; to read data, reading the data from the offset indicating a memory location of the data in the memory according to an identifier and a index of the data to be read. |
地址 |
Shenzhen CN |