Method for realizing storage acceleration on android system

文档序号:7115 发布日期:2021-09-17 浏览:36次 中文

1. A method of implementing storage acceleration on an android system, comprising:

s1, combining the local flash storage and the block storage device mounted in a network mode to form a combined storage device;

s2, downloading and reading data through the combined storage device;

wherein, step S1 specifically includes:

s11, performing partition planning on the local flash memory, and presetting a partition space for later use;

s12, mounting the block storage device in a network mode;

s13, combining a partition preset by local flash storage with a block storage device mounted in a network mode, and using the combined device for user data storage of the android system;

the local flash storage and the cloud mobile phone are on the same hardware platform.

2. The method for implementing storage acceleration on an android system of claim 1, wherein step S12 further comprises performing a formatting operation on the block storage device.

3. The method for realizing storage acceleration on the android system according to claim 1, wherein S2 specifically includes the following steps:

s21, the user data storage is firstly issued to the local flash storage;

and S22, the data is transmitted to the local flash for storage and then is synchronized to the block storage device mounted in the network mode by adopting an asynchronous I/O mode.

4. The method for realizing storage acceleration on the android system according to claim 3, wherein the asynchronous I/O is that data is first flushed down to a local flash storage, and when the data storage of the local flash storage reaches a preset threshold, data is triggered to be flushed down from the local flash storage onto a block storage device mounted in a network manner; the process of writing data into the local flash storage and the process of writing data into the network mount block storage device are not performed simultaneously.

5. The method for realizing storage acceleration on the android system as claimed in claim 1, wherein when an application needs to read some data, the data is first retrieved or looked up in a local flash storage.

Background

With the continuous expansion of the application field of the cloud mobile phone, the user experience requirements on the cloud mobile phone are higher and higher, especially the storage performance requirements on the cloud mobile phone almost exceed the requirements of the entity mobile phone, and as the office, the life and even the entertainment activities of the user are more or less started to be moved from the traditional entity mobile phone to the cloud mobile phone, the data storage requirements from the aspect of aspects not only have requirements on the storage capacity space, but also are not reduced at all even in the aspects of certain game requirements such as high I/Ops, and the like, and the requirements bring heavy burden to the traditional cloud mobile phone storage scheme.

The cloud mobile phone has natural advantages for the requirement of a user on storage capacity, can be connected to an external storage pool through a network, can provide a customized configuration scheme according to the requirement of the user on storage data, and for certain application requirements requiring high I/Ops, the disadvantages of network storage are obviously shown, and how to effectively exert the advantages of traditional storage and simultaneously make up for the defects to the maximum extent, so that the advantages of storage are fully exerted by making good use of the advantages and disadvantages of the existing traditional scheme to meet the requirement of the user.

Disclosure of Invention

Aiming at the problems in the prior art, the invention provides a method for realizing storage acceleration on an android system; by combining the local flash storage and the network mounting block storage device, the data storage performance during application running is improved.

In order to achieve the purpose, the invention adopts the following specific scheme:

the invention provides a method for realizing storage acceleration on an android system, which comprises the following steps:

s1, combining the local flash storage and the block storage device mounted in a network mode to form a combined storage device; s2, downloading and reading data through the combined storage device;

further, step S1 specifically includes:

s11, performing partition planning on the local flash memory, and presetting a partition space for later use;

s12, mounting the block storage device in a network mode;

s13, combining a partition preset by local flash storage with a block storage device mounted in a network mode, and using the combined device for user data storage of the android system;

the local flash storage and the cloud mobile phone are on the same hardware platform.

Further, step S12 includes performing a formatting operation on the block storage device.

Further, S2 specifically includes the following steps:

s21, the user data storage is firstly issued to the local flash storage;

and S22, the data is transmitted to the local flash for storage and then is synchronized to the block storage device mounted in the network mode by adopting an asynchronous I/O mode.

Further, the asynchronous I/O means that data is firstly flushed down to a local flash memory, and when the data memory of the local flash memory reaches a preset threshold value, the data is triggered to be flushed down from the local flash memory to a block memory device mounted in a network mode; the process of writing data into the local flash storage and the process of writing data into the network mount block storage device are not performed simultaneously.

Further, when an application needs to read certain data, the data is first retrieved or looked up in a local flash store.

By adopting the technical scheme of the invention, the invention has the following beneficial effects:

by combining the local flash storage and the network mount block storage device, the data storage performance of the application during running is improved, when a large amount of data of the app on the mobile phone needs to be written into the storage or small I/O needs to be written with high frequency, when a user downloads a large amount of photos and video files from the network, or when a cloud mobile phone runs a large-scale mobile phone game and has a large amount of writing requirements of random I/O, the data storage performance of the relevant app is greatly improved, and therefore the use experience of the cloud mobile phone of the user is greatly improved.

Drawings

FIG. 1 is a flow chart of an embodiment of the present invention;

FIG. 2 is a schematic diagram of the components of an embodiment of the present invention.

Detailed Description

The invention is further described below with reference to the following figures and specific examples.

The present invention is specifically described with reference to fig. 1-2:

firstly, the cloud mobile phone needs to perform partition planning on local flash storage of an operated hardware platform, and a section of available partition space is preset for a subsequent method.

The cloud mobile phone mounts the large-capacity block storage device provided by cluster storage in a network mode, and carries out formatting operation on the block storage device for combined use of the devices.

A partition preset in local flash storage is combined with block storage equipment mounted on an android system in a network mode to form combined equipment, and the combined equipment is used for storing user data of the android system.

The storage of the subsequent user data is firstly issued to the local flash storage of the combination device, at this moment, the local flash storage partition is equivalent to the cache partition of the combination device, and after the data is issued to the local flash storage, asynchronous I/O (input/output) mode synchronization is carried out on the large-capacity storage device mounted in a network mode by matching with a direct-write or write-back cache strategy, so that the rapid storage operation of the data is realized, and the data writing performance is improved.

When a user application needs to read some data, the data is retrieved or searched in the cache partition at this time, and the data request of the app can be quickly responded after the data is searched, so that the quick reading operation of the data is realized, and the data reading performance is improved.

After the user logs in the application app, the data directory corresponding to the user app program points to the combined storage device, and the storage device is formed by combining the local flash and the network block storage device, so that the flexible expandability is achieved, and the performance of the storage device is almost the same as that of the entity mobile phone.

By adjusting or modifying the I/O storage strategy of the device, the harsh requirements of the application app on storage under different use requirements and scenes of a user can be effectively and flexibly met.

Asynchronous I/O refers to a synchronization strategy of data, firstly, the data in the scheme can be down-brushed to a cache partition, and when the data storage of the cache partition reaches a preset threshold value, the triggering data is down-brushed from the cache partition to a large-capacity storage device mounted in a network mode. The process of writing data to the cache partition does not occur simultaneously with the process of writing data to the network mount device, and is referred to herein as asynchronous I/O.

The strategy is that the data synchronization operation can be triggered when the size of the file stored in the flash partition reaches 30% -50% of the size of the partition, so that the problem that the size of the data exceeds the size of the flash partition is solved.

The speed of data brushing to local flash storage is obviously higher than the speed of data brushing from flash to network storage equipment, and at this time, if data congestion does occur in continuous large I/O (input/output) issuing, the system will drop the speed and the speed is recovered to the scene without flash. The special scene needs to be additionally optimized for an actual case, for example, a cache flash partition with a larger capacity is provided for the scene, and meanwhile, the back-end storage can be optimized, and a similar high-capacity cache is added for the back-end storage, so that the cache mode cannot solve all problems, and only the adaptation evaluation can be performed for a specific use scene.

The asynchronous I/O mainly aims at reducing the issuing times of I/O and converting random I/O requests into sequential I/O requests, the flash has the advantages of high randomness, high concurrency, high bandwidth and high cost, the network mounted large-capacity equipment has the advantages of large storage capacity, high processing bandwidth during sequential I/O storage and low cost, and different advantages of physical storage media are fully utilized and combined.

The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all modifications and equivalents of the present invention, which are made by the contents of the present specification and the accompanying drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种基于热数据和删除重复操作的在线扩容IO调度方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类