Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A Method of Direct I/O Access to Disk Based on JVM

An access method and direct technology, applied in software simulation/interpretation/simulation, instrumentation, calculation, etc., to achieve the effect of reducing manual modification, reducing consumption, and solving performance degradation

Active Publication Date: 2020-10-02
FOCUS TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] In order to solve the limitations and deficiencies existing in the prior art, the purpose of the present invention is to provide an API layer for file manipulation functions, an adaptation layer for shielding operating system file system access differences, and support multiple types of programming languages ​​by utilizing JVM functional characteristics. The language conversion layer for conversion and the direct call I / O layer for performing disk access operations can realize any operation language that can cross the page cache of the operating system, obtain the ability to directly manipulate disk files, and fundamentally solve the problem of system downtime. The resulting data loss problem also helps to reduce the consumption of global system resources, and helps to solve the problem of I / O performance degradation of other programs caused by the operation of large files

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
  • A Method of Direct I/O Access to Disk Based on JVM
  • A Method of Direct I/O Access to Disk Based on JVM
  • A Method of Direct I/O Access to Disk Based on JVM

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the purpose, technical solution and advantages of the present invention clearer, some terms involved in a JVM-based direct disk I / O access method in the embodiment of the present invention are briefly explained below:

[0041] The file handle fd refers to the unique identifier assigned by the operating system for each file, and the file operation instruction can operate the file through the file handle;

[0042] The file offset offset refers to the starting position of the data in the operation file;

[0043] The length len refers to the number of bytes of data in the operation file;

[0044] The memory buffer buffer: when the file is read, refers to the memory area used to store the read data; when the file is written, it refers to the memory area used to store the data to be written.

[0045] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be described in detail below in conj...

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 relates to a method for disk direct I / O access based on a JVM (Java Virtual Machine). An API layer for providing a file operating function, an adaptation layer for shielding operating system file system access difference, a language transformation layer for supporting multiple programming language transformation, and a direct call I / O layer for executing disk access operation are configured, page cache supporting any operating language and capable of crossing an operating system is realized, and an ability of directly controlling a disk file is obtained. The method comprises the steps of (1) calling a file opening function of the API layer, passing a file path name in a file operating order, and returning a file handle fd; (2) calling a file reading function or a file writing function of the API layer, and providing the passed file handle fd, file offset and other parameters; (3) reading configuration information of a currently running operating system through the adaption layer, judging the type of the operating system according to the configuration information, utilizing functional characteristics of the JVM for calling a language transformation function prestored in the language transformation layer and corresponding to the operating system, and enabling the file operation order to be executed in the current operating system.

Description

technical field [0001] The invention belongs to the technical field of system file input and output, and specifically relates to a method for direct I / O access of disks based on JVM. Background technique [0002] General file read and write operations inevitably use the page cache (Page Cache) of the file system of the operating system. Page Cache has several characteristics: First, it is a global memory space at the operating system level, which is shared among all applications. Because physical memory is limited, there is resource contention. Secondly, the page cache is managed uniformly by the operating system, and applications cannot directly control and interfere with the Page Cache. In actual work, this will bring the following problems: [0003] First, the overall performance of the system is reduced when operating large files. When reading and writing large files, such as when performing operations such as reading, writing, copying, moving, and compressing large ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455
CPCG06F9/45504G06F9/45558G06F2009/45579
Inventor 陈涛褚一帆
Owner FOCUS TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products