Cross-User-Space Backup Compression for Small File I/O Overhead
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing backup methods for mobile devices suffer from slow backup speeds due to the large number of small-sized files, which generate significant I/O operations, leading to system overheads and a poor user experience.
Innovation Solution
A method that packages and compresses small-sized files into a compressed package before backing them up, reducing I/O operations and improving backup speed by minimizing overheads.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If small-sized files are backed up individually, then data backup completeness is achieved, but I/O operations increase significantly leading to slow backup speed
Solution Approach 1:
Multiple small-sized files are merged and compressed into a single compressed package before backup. This combining approach reduces the number of individual I/O operations required, thereby improving backup speed and reducing overall backup time while maintaining complete data backup.
Solution Approach 2:
Files are pre-compressed into a compressed package before the backup process begins. This preliminary compression action reduces the total volume of data to be transferred and minimizes I/O operations during the actual backup, effectively reducing backup delay and improving productivity.
2Reliability
If many small files are transferred between user spaces, then data integrity is maintained, but system overheads increase due to frequent I/O operations
Solution Approach 1:
Multiple small files are combined into a single compressed package, reducing the number of I/O operations between user spaces. This approach maintains data integrity through comprehensive backup while significantly reducing system overhead associated with frequent individual file transfers.
3Productivity
If individual small files are backed up, then complete data coverage is achieved, but backup efficiency decreases due to overhead from numerous I/O operations
Solution Approach 1:
Multiple small files are merged into a single compressed package, dramatically reducing the quantity of I/O operations required. This maintains complete data coverage while significantly improving backup efficiency by minimizing the overhead from numerous individual operations.
Solution Approach 2:
Compression is performed as a preliminary action before backup, consolidating multiple files into one package. This reduces the total number of I/O operations needed during backup, thereby improving backup efficiency while ensuring complete data coverage.
Data Source
AI summary
This application provides a backup method and an apparatus. The method includes: determining a first application that needs data backup; packaging and compressing a file whose size is less than a first threshold in a user space corresponding to the first application, to obtain a first compressed package, where the first compressed package is stored in the user space corresponding to the first application; and backing up the first compressed package from the user space corresponding to the first application to a user space corresponding to a second application. The method can reduce overheads caused by an I/O operation generated by backing up a large quantity of small-sized files between two user spaces, reduce a backup delay, and improve user experience.


