File management method and file system

    公开(公告)号:US10339100B2

    公开(公告)日:2019-07-02

    申请号:US15331205

    申请日:2016-10-21

    摘要: A file management method and a file system are applied to the field of data processing technologies. The file system monitors input/output (IO) access information for operating a file, then determines an IO access mode of the file, determines a corresponding file management policy according to the IO access mode, and finally, when the obtained file management policy is inconsistent with a current management manner of the file, adjusts, according to the determined file management policy, the current management manner of the file, for example, a storage medium and a file management granularity, so as to dynamically adjust the storage medium and the file management granularity of the file according to the IO access mode of the file.

    Storage space management method and apparatus

    公开(公告)号:US10261715B2

    公开(公告)日:2019-04-16

    申请号:US15625385

    申请日:2017-06-16

    IPC分类号: G06F3/06 G06F17/30

    摘要: A storage space management method and apparatus, where the method and apparatus are applied to a non-volatile memory (NVM). In a feature set that includes M image features of M idle blocks in storage space of the NVM, an idle block whose image feature is highly similar to an image feature of data to be written into the NVM is determined such that the data is written into the idle block. In this way, wear and energy consumption problems are considered during storage space allocation, and a write operation of an idle block in storage space of an NVM can consume less energy, thereby extending a life span of the NVM and reducing write operation energy consumption.

    File Access Method and Apparatus, and Storage Device

    公开(公告)号:US20170262172A1

    公开(公告)日:2017-09-14

    申请号:US15606423

    申请日:2017-05-26

    IPC分类号: G06F3/06 G06F12/02

    摘要: A file access method and apparatus, and a storage device are presented, where the file access method is applied to a storage device in which a file system is established based on a memory. The storage device obtains, according to a file identifier of a to-be-accessed first target file, an index node of the first target file in metadata, where the index node of the first target file stores information about first virtual space of the first target file in global virtual space. The storage device maps the first virtual space onto second virtual space of a process, and performs addressing on an added file management register to access the first target file according to a start address of the first virtual space and a base address of a page directory of the global file page table stored in the file management register.

    File access method and apparatus, and storage device

    公开(公告)号:US10067684B2

    公开(公告)日:2018-09-04

    申请号:US15606423

    申请日:2017-05-26

    IPC分类号: G06F3/06 G06F12/02

    摘要: A file access method and apparatus, and a storage device are presented, where the file access method is applied to a storage device in which a file system is established based on a memory. The storage device obtains, according to a file identifier of a to-be-accessed first target file, an index node of the first target file in metadata, where the index node of the first target file stores information about first virtual space of the first target file in global virtual space. The storage device maps the first virtual space onto second virtual space of a process, and performs addressing on an added file management register to access the first target file according to a start address of the first virtual space and a base address of a page directory of the global file page table stored in the file management register.

    Method and Apparatus for Detecting Transaction Conflict and Computer System

    公开(公告)号:US20170300255A1

    公开(公告)日:2017-10-19

    申请号:US15639512

    申请日:2017-06-30

    IPC分类号: G06F3/06

    摘要: A method and an apparatus for detecting a transaction conflict and a computer system are provided. The method is applied to a computer system whose memory is a non-volatile memory, where the memory includes at least two memory areas. The at least two memory areas have different detection policies. According to the method, a memory controller receives addresses in at least two operation instructions of a first transaction. Then, the memory controller executes, according to a first detection policy of a first memory area, conflict detection on at least one operation instruction that is to access the first memory area, and executes, according to a second detection policy of a second memory area, conflict detection on at least one operation instruction that is to access the second memory area, so as to obtain a conflict detection result of the first transaction.

    Write method and write apparatus for storage device

    公开(公告)号:US10789012B2

    公开(公告)日:2020-09-29

    申请号:US15873634

    申请日:2018-01-17

    摘要: A write method and a write apparatus for a storage device, where the write method includes: acquiring n numerical values that need to be written; determining n bits corresponding to the n numerical values, and information about a stuck-at fault included in the n bits; grouping the n bits into B groups of bits, so that the B groups of bits meet a grouping condition; and correspondingly writing the n numerical values according to information about a stuck-at fault included in each group of bits in the B groups of bits and a numerical value that needs to be written and that is corresponding to the information about the stuck-at fault included in each group of bits in the B groups of bits.

    File access method, system, and host

    公开(公告)号:US10372336B2

    公开(公告)日:2019-08-06

    申请号:US15582283

    申请日:2017-04-28

    摘要: A file access method, a system, and a host are provided. According to the method, after obtaining information about first virtual space of a target file, a host allocates, in local virtual address space of the host, second virtual space to the target file, where the first virtual space is space allocated in global virtual address space by a management node in a distributed storage system to the target file. The host converts, according to a correspondence between the first virtual space and the second virtual space, a second access request of accessing the second virtual space into a first access request, where an address of the first virtual space in the first access request includes device information of a first storage node. Then, the host sends the first access request to a network device to route the first access request to the first storage node.

    File access method and apparatus, and storage system

    公开(公告)号:US10157143B2

    公开(公告)日:2018-12-18

    申请号:US15445542

    申请日:2017-02-28

    发明人: Jun Xu Guanyu Zhu Qun Yu

    摘要: A file access method and apparatus, and a storage system are provided. After receiving a file access request including a file identifier, first physical address space is accessed according to first virtual address space and a first mapping relationship between the first virtual address space and the first physical address space storing a file system. After obtaining, from the first physical address space, an index node of an object file indicated by the file identifier, a file page table is obtained according to information included in the index node, where the file page table records second physical address space of the object file. Then, second virtual address space is allocated to the object file. After establishing a second mapping relationship between the second physical address space and the second virtual address space, the object file in the second physical address space is accessed according to the second virtual address space.

    FILE ACCESS METHOD AND APPARATUS, AND STORAGE SYSTEM

    公开(公告)号:US20170168953A1

    公开(公告)日:2017-06-15

    申请号:US15445542

    申请日:2017-02-28

    发明人: Jun Xu Guanyu Zhu Qun Yu

    IPC分类号: G06F12/1009

    摘要: A file access method and apparatus, and a storage system are provided. After receiving a file access request including a file identifier, first physical address space is accessed according to first virtual address space and a first mapping relationship between the first virtual address space and the first physical address space storing a file system. After obtaining, from the first physical address space, an index node of an object file indicated by the file identifier, a file page table is obtained according to information included in the index node, where the file page table records second physical address space of the object file. Then, second virtual address space is allocated to the object file. After establishing a second mapping relationship between the second physical address space and the second virtual address space, the object file in the second physical address space is accessed according to the second virtual address space.