Method and device for document loading

A file loading and disk file technology, applied in the computer field, can solve problems such as affecting loading speed, inability to meet parallel processing, page fault interruption, etc., to achieve the effect of improving loading speed and stable and controllable memory usage

Active Publication Date: 2017-12-15
ALIBABA GRP HLDG LTD
View PDF10 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] This method has at least the following two problems that affect the loading speed: 1. The overhead of the internal implementation of the file library: in order to maintain the internal buffer and ensure the safety of concurrency, the file library (for example, glibc file) needs to perform multiple operations for each operation. Item status value update and maintenance work
[0008] This method also has the following two problems: 1. The memory usage of the process exceeds the l...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for document loading
  • Method and device for document loading

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0022] This embodiment improves the file loading method based on memory-mapped files. The file loading device actively manages the pre-reading, and notifies the operating system of the pre-reading position and data volume, so that the operating system pre-reads the data and the file loading device. Reading memory-mapped file data adapts to each other, thereby increasing the loading speed of the file.

[0023] The file loading method of this embodiment is as follows figure 1 shown, including:

[0024] Step 110, establish a memory-mapped file of the disk file, sequentially re...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a method and device for document loading. The method comprises the steps that a memory mapping document of a magnetic disk document is established by the document loading device; data is read successively from the memory mapping document, and pre-reading notices are sent to an operation system for multiple times; each time, the operation system is notified to pre-read the data at designated positions with a designated data size in the magnetic disk document to memory corresponding to the memory mapping document; and the document loading device stores the data read from the memory mapping document to a final data structure of the memory according to a storage format of the data. The document loading device comprises a data loading module, a document reading module and a memory management module. The method and device for the document loading provided by the application have the advantages that document loading speed can be increased; and a memory utilization amount during loading can be kept stable and controllable.

Description

technical field [0001] The present invention relates to the field of computers, and more specifically, to a file loading method and device. Background technique [0002] In a large-scale distributed file system, in order to meet the high-concurrency and low-latency access requirements of a large number of clients, the metadata server (Meta Server) usually stores all metadata in memory, and at the same time records the metadata operation log (operation log ) and periodically generate a metadata memory image file (checkpoint file) to achieve persistent storage of metadata. A metadata memory image file usually includes multiple data sections and a header. The data area records a large amount of metadata such as directory path tree, file table, and data copy location, and compresses large blocks of data (for example, more than 4KB) to save space; the file header records the start and end information of the data area, Compression parameters, etc. [0003] Fast loading of metad...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F17/30
CPCG06F16/172G06F16/182
Inventor 黄硕刘俊峰姚文辉朱家稷
Owner ALIBABA GRP HLDG LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products