Method and device for taking internal storage as disk read-write

An implementation method and technology of virtual memory disk, applied in the field of data information processing, can solve problems such as slow reading and writing speed, and achieve the effect of fast access speed and high reading and writing efficiency

Inactive Publication Date: 2016-12-14
TVMINING BEIJING MEDIA TECH
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a method and device for realizing reading and writing of memory as a disk, which is used to solve the technical problem of slow reading and writing speed in the prior art when files stored on the hard disk are often accessed

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 taking internal storage as disk read-write
  • Method and device for taking internal storage as disk read-write
  • Method and device for taking internal storage as disk read-write

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] Considering the bottleneck problem of the read / write speed of the hard disk in the prior art, in the process of solving this problem in the embodiment of the present invention, it is assumed that if the files are stored in the memory, then when using these files, there is no need to frequently access the hard disk up. You can also store images such as website images or downloadable files in RAMDISK, which can greatly improve the read and write speed.

[0041] Based on the above factors, an embodiment of the present invention provides a method for implementing memory as a disk for reading and writing. This method is suitable for deployment on devices with storage capabilities, such as computers, mobile phones, and servers. Such as figure 1 As shown, the method includes:

[0042] 101. Obtain the address and naming rules of the virtual memory disk RAMDISK;

[0043] Wherein, this step can be divided into two parts: checking the memory address and checking the memory nami...

Embodiment 2

[0055] The embodiment of the present invention specifically takes the terminal as an example, and provides a method for realizing reading and writing of memory as a disk, such as figure 2 As shown, the method includes:

[0056] 201. Obtain the address and naming rules of the virtual memory disk RAMDISK;

[0057] Wherein, this step can be divided into two parts: checking the memory address and checking the memory naming rules.

[0058] For example: to view the system memory address, execute: dmesg|grep RAMDISK;

[0059] To view the system naming rules for RAMDISK, execute: ls -l / dev / ram*

[0060] 202. Create a RAMDISK as a disk for reading and writing according to the address and naming rules, and modify the capacity of the RAMDISK to a preset file storage capacity.

[0061] Wherein, in this embodiment, the preset file storage capacity is 2G.

[0062] For example: the system default RAMDISK size is 16MB. Modify the size of RAMDISK so that more files can be stored.

[00...

Embodiment 3

[0074] In order to facilitate the implementation of the methods in the first and second embodiments above, the embodiment of the present invention continues to provide a device for reading and writing the memory as a disk, such as image 3 shown, including:

[0075] Obtaining module 31, used to obtain the address and naming rules of the virtual memory disk RAMDISK;

[0076] Creating module 32, for creating described as disk read-write RAMDISK according to described address and naming rule;

[0077] Mounting module 33, used to set up a file system, and mount the RAMDISK created on the file system;

[0078] The memory fetching module 34 is configured to save the received file in the created RAMDISK, and read and write the file by accessing the created RAMDISK.

[0079] Optionally, the device also includes:

[0080] A modifying module, configured to modify the created capacity of the RAMDISK to a preset file storage capacity according to the address and naming rules.

[0081]...

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 discloses a method and a device for taking internal storage as disk read-write and relates to the technical field of data information processing. The technical problem of the prior art that the read-write speed is low when the documents stored in the hard disk are frequently accessed is solved. The method comprises the following steps: acquiring an address and a naming rule of virtual RAM DISK; creating RAM DISK as disk read-write according to the address and naming rule; establishing a document system and installing the created RAM DISK on the document system; storing the received document into the created RAM DISK and reading and writing the document by accessing the created RAM DISK.

Description

technical field [0001] The invention relates to the technical field of data information processing, in particular to a method and device for realizing reading and writing of a memory as a disk. Background technique [0002] As the most important data storage device and data exchange medium in the computer, the speed of the hard disk transfer rate directly affects the operating speed of the system. Different types of hard drives often have very different transfer rates. Now there are mainly three mainstream hard disks: according to different interfaces, they can be divided into parallel ATA hard disks (ie IDE hard disks), SCSI hard disks and Serial ATA hard disks. [0003] Although with the improvement of the hard disk interface, the read and write speed of the hard disk is also increasing, but the internal data transfer rate is the data transfer speed between the magnetic head and the hard disk cache, which can be said to be the key to the overall performance of the hard di...

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 Applications(China)
IPC IPC(8): G06F3/06
CPCG06F3/0611G06F3/0662G06F3/0673
Inventor 张新亮
Owner TVMINING BEIJING MEDIA TECH
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