Abstract:
A storage system includes a storage device and a managing device. The managing device receives a data write request, determines a data category of a to-be-written data page, designates different logical blocks for to-be-written data pages of different data categories, and sends a data write instruction to the storage device, where the data write instruction carries to-be-written data pages corresponding to at least one designated logical block. The storage device is configured to receive the data write instruction, and write the to-be-written data page corresponding to the at least one designated logical block to a physical block corresponding to the at least one designated logical block, where to-be-written data pages written to each physical block are corresponding to a same logical block.
Abstract:
A method and an apparatus for constructing a file system in a key-value storage system. According to the method for constructing a file system in a key-value storage system disclosed by the present invention, a directory number corresponding to a directory path of a directory at each level is acquired first; then, according to the directory number and a file stored in the directory at each level, corresponding keywords Key of the directory and the file are constructed.
Abstract:
A data operating method, device, and system are provided. The method includes: receiving an operation instruction sent by a CPU; when the operation instruction is a read instruction, reading a first data block in the block device and returning to-be-read data in the first data block to the CPU; or when the operation instruction is a write instruction, writing, into a cache, to-be-written data indicated by the write instruction, and writing, into the block device, a second data block that includes the to-be-written data. The method is used to operate data in a block device.
Abstract:
A data caching method and a computer system are provided. In the method, when a miss of an access request occurs and a cache needs to determine a to-be-replaced cache line, not only a historical access frequency of the cache line but also a type of a memory corresponding to the cache line needs to be considered. A cache line corresponding to a DRAM type may be preferably replaced, which reduces a caching amount in the cache for data stored in a DRAM and relatively increase a caching amount for data stored in an NVM., For an access request for accessing the data stored in the NVM, corresponding data can be found in the cache whenever possible, thereby reducing cases of reading data from the NVM. Thus, a delay in reading data from the NVM is reduced, and access efficiency is effectively improved.
Abstract:
The present invention provides a metadata storage system and a management method for a cluster file system. The metadata of the cluster file system is stored by using a DRAM+SSD+HDD three-tier architecture, and the metadata is written sequentially into a metadata buffer in the DRAM based on write-in time. When a metadata buffer fully written, it is written back into the SSD sequentially to form a new metadata storage unit, and corresponding metadata index information in a header structure thereof is stored into the DRAM in a form of a metadata index unit.
Abstract:
A data caching method and a computer system are provided. In the method, when a miss of an access request occurs and a cache needs to determine a to-be-replaced cache line, not only a historical access frequency of the cache line but also a type of a memory corresponding to the cache line needs to be considered. A cache line corresponding to a DRAM type may be preferably replaced, which reduces a caching amount in the cache for data stored in a DRAM and relatively increase a caching amount for data stored in an NVM. For an access request for accessing the data stored in the NVM, corresponding data can be found in the cache whenever possible, thereby reducing cases of reading data from the NVM. Thus, a delay in reading data from the NVM is reduced, and access efficiency is effectively improved.
Abstract:
A data operating method, device, and system are provided. The method includes: receiving an operation instruction sent by a CPU; when the operation instruction is a read instruction, reading a first data block in the block device and returning to-be-read data in the first data block to the CPU; or when the operation instruction is a write instruction, writing, into a cache, to-be-written data indicated by the write instruction, and writing, into the block device, a second data block that includes the to-be-written data. The method is used to operate data in a block device.
Abstract:
A memory reclamation method and apparatus are disclosed. The memory reclamation method is performed by a processor for reclaiming memory pages of a non-volatile memory (NVM) in a terminal device. In the method, the processor receives a memory reclamation request message including a reclamation identifier which is used to indicate a quantity of memory pages requested to be reclaimed. Then, the processor reclaims inactive memory pages of the NVM according to the reclamation identifier in ascending order of the write times of inactive memory pages of the NVM. According to the memory reclamation method, a page having a relatively small quantity of inactive memory page write times of the NVM is reclaimed first, and a page having a relatively large quantity of inactive memory page write times of the NVM is reclaimed later.
Abstract:
A data operating method, device, and system are provided and relate to the computer field, so as to resolve a prior-art problem of low efficiency of performing a data operation on a block device by a CPU. The method includes: receiving an operation instruction sent by a CPU; when the operation instruction is a read instruction, reading a first data block in the block device and returning to-be-read data in the first data block to the CPU; or when the operation instruction is a write instruction, writing, into a cache, to-be-written data indicated by the write instruction, and writing, into the block device, a second data block that includes the to-be-written data. The method is used to operate data in a block device.
Abstract:
A data operating method, device, and system are provided and relate to the computer field, so as to resolve a prior-art problem of low efficiency of performing a data operation on a block device by a CPU. The method includes: receiving an operation instruction sent by a CPU; when the operation instruction is a read instruction, reading a first data block in the block device and returning to-be-read data in the first data block to the CPU; or when the operation instruction is a write instruction, writing, into a cache, to-be-written data indicated by the write instruction, and writing, into the block device, a second data block that includes the to-be-written data. The method is used to operate data in a block device.