File access method, device and storage device

A file access and storage device technology, applied in the storage field, can solve the problems of complex access process and increase the burden of process page table, and achieve the effect of improving access efficiency and reducing burden

CN105830059BActive Publication Date: 2019-09-27HUAWEI TECH CO LTD
3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2019-09-27

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

A file access method, device and storage device applied to a storage device with a file system built in memory. The storage device may acquire the index node of the first target file in the metadata according to the file identifier of the first target file to be accessed. Information about the first virtual space of the first target file in the global virtual space is stored in the index node of the first target file (205). The storage device may map the first virtual space to the second virtual space of the process according to the information of the first virtual space recorded in the index node (210), and address the added file management register (220, 225). Since the base address of the page directory of the global file page table is stored in the file management register, the storage device can process the first target file according to the starting address of the first virtual space and the base address of the page directory of the global file page table. access. The method can reduce the burden of the process page table and reduce system overhead.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the field of storage technology, in particular to a file access method, device and storage device. Background technique

[0002] In the prior art, a file system is usually built on a disk. When accessing the file system, in order to improve the access speed, the file system is usually accessed in the manner of MMAP. Specifically, the file can be mapped to the virtual space of the process, and then the data is read from the hard disk into the cache, and the cache page generation mapping table entry is added to the page table of the process, so that the process can access the page of the process The table directly accesses the file.

[0003] With Phase Change Memory (Phase Change Memory, PCM), Resistive Random Access Memory (RRAM), Magnetic Random Access Memory (MRAM) and Ferroelectric Random Access Memory (FRAM) are The development of the next-generation non-volatile memory (Non-Volatile Memory, NVM) technology represented by...

Examples

Embodiment Construction

[0083] In order to enable those skilled in the art to better understand the solutions of the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only It is an embodiment of a part of the present invention, but not all embodiments.

[0084] figure 1 An application scenario diagram of a next-generation non-volatile memory (NVM) provided by an embodiment of the present invention. exist figure 1 In one application scenario, the NVM 200 is used as a memory. Such as figure 1As shown, a dynamic random access memory (Dynamic Random Access Memory, DRAM) 300 is connected to a central processing unit (CPU) 100 through a memory bus. The DRAM 300 has the advantage of fast access speed. The CPU 100 can access the DRAM 300 at high speed and perform read or write operations on any storag...