CN-121979455-A - Intelligent U disk capacity dynamic allocation performance optimization method capable of adapting to storage requirements
Abstract
The invention discloses a method for optimizing the capacity dynamic allocation performance of an intelligent USB flash disk with self-adaptive storage requirements, which relates to the technical field of the capacity dynamic allocation of the USB flash disk, and comprises the following steps of dividing the intelligent USB flash disk into a public area and an encryption area, and periodically collecting storage file information of the public area and the encryption area in the use process of the intelligent USB flash disk to respectively obtain public storage information data and encrypted storage information data; the method and the device are used for solving the problems that when the capacity of the intelligent USB flash disk is dynamically allocated by the existing USB flash disk capacity dynamic allocation technology, the requirement of a user on the storage capacity cannot be accurately acquired according to the historical storage condition of the intelligent USB flash disk, and the threshold value for triggering the capacity allocation is adaptively adjusted.
Inventors
- Cai Qunpeng
- GAN PEI
- GAO JIA
Assignees
- 深圳市倾慕科技有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260115
Claims (10)
- 1. The intelligent USB flash disk capacity dynamic allocation performance optimization method capable of adapting to the storage requirement is characterized by comprising the following steps of: dividing the intelligent USB flash disk into a public area and an encryption area, and periodically collecting storage file information of the public area and the encryption area in the use process of the intelligent USB flash disk to respectively obtain public storage information data and encryption storage information data; Respectively carrying out data preprocessing according to the public storage information data and the encrypted storage information data to obtain standard public storage data and standard encrypted storage data; according to the standard public storage data and the standard encryption storage data, respectively obtaining the storage requirement of the public area and the storage requirement of the encryption area, and respectively obtaining the public storage requirement and the encryption storage requirement; The capacities of the public area and the encryption area are dynamically allocated based on the public storage requirement and the encryption storage requirement.
- 2. The method for optimizing capacity dynamic allocation performance of an intelligent USB flash disk capable of adapting to storage requirements according to claim 1, wherein the method is characterized in that the intelligent USB flash disk is divided into a public area and an encryption area, and in the use process of the intelligent USB flash disk, storage file information of the public area and the encryption area is periodically collected, and public storage information data and encryption storage information data are respectively obtained, and the method comprises the following sub-steps: any one intelligent USB flash disk is recorded as a first USB flash disk, the storage space of the first USB flash disk is divided into a public area and an encryption area, and a first time period is set as t1; the file size accumulated in the public area during the first time period is recorded as a public deposit quantity, and the file size accumulated in the encrypted area during the first time period is recorded as an encrypted deposit quantity.
- 3. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk according to claim 2, wherein the method is characterized in that the intelligent usb disk is divided into a public area and an encryption area, and in the use process of the intelligent usb disk, the storage file information of the public area and the encryption area is periodically collected, and public storage information data and encrypted storage information data are respectively obtained, and further comprises the following sub-steps: In the using process of the intelligent USB flash disk, t1 is taken as a period, public storage amount and encryption storage amount of each first time period are respectively and continuously collected periodically, time periods corresponding to each first time period are recorded, corresponding dates are respectively classified according to dates, and recorded as public storage information data and encryption storage information data according to sequence.
- 4. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk according to claim 3, wherein the data preprocessing is performed according to the public storage information data and the encrypted storage information data, respectively, to obtain standard public storage data and standard encrypted storage data, further comprises the following sub-steps: intercepting the last k1 date collected parts from public storage information data and encrypted storage information data respectively, and recording the last public storage information and the last encrypted storage information respectively according to the sequence, wherein k1 is the set number; Removing the public storage amount equal to 0 in the latest public storage information to obtain the zero-removed storage information, arranging the public storage amount of the zero-removed storage information in order from small to large, marking the public storage amount as a first storage amount sequence, acquiring the value range of the first storage amount sequence, uniformly dividing the value range into k2 intervals, and marking the k2 intervals as storage amount intervals, wherein k2 is the set number.
- 5. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk according to claim 4, wherein the data preprocessing is performed according to the public storage information data and the encrypted storage information data, respectively, to obtain standard public storage data and standard encrypted storage data, further comprises the following sub-steps: according to the first stock sequence, the number of public stored amounts in each stock interval is obtained, and the stock interval with the largest number is recorded as a core stock interval; And marking the public deposit quantity greater than k3 xMA in the zero-removal storage information as the deposit quantity to be screened, wherein k3 is a set proportionality coefficient.
- 6. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk according to claim 5, wherein the data preprocessing is performed according to the public storage information data and the encrypted storage information data, respectively, to obtain standard public storage data and standard encrypted storage data, further comprises the following sub-steps: The method comprises the steps of recording any one stock to be screened as a first stock to be screened, arranging public stored amounts in zero removal storage information according to a time sequence, and recording the public stored amounts as a second stock sequence, taking k4 adjacent data before and after the first stock to be screened as a center in the second stock sequence, and counting the number AF of the stock to be screened in the k4 adjacent data, wherein k4 is the set number; If AF=0, the first quantity to be screened is marked as abnormal data, all abnormal data of the zero-removal storage information are repeatedly acquired and removed, standard data of public storage information data are obtained after the completion of the process, the standard data are marked as standard public storage data, standard data of encryption storage information data are repeatedly acquired, and the standard data are marked as standard encryption storage data.
- 7. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk with adaptive storage requirements according to claim 6, wherein the steps of obtaining the storage requirements of the public area and the storage requirements of the encryption area according to standard public storage data and standard encryption storage data, respectively, and obtaining the public storage requirements and the encryption storage requirements, respectively, include the following sub-steps: Calculating the sum of public deposit quantity of each date according to standard public storage data, and recording the sum as daily deposit quantity; removing daily deposit quantity of rest days, arranging the rest daily deposit quantity according to the sequence of the dates from far to near, and marking the rest daily deposit quantity as a daily deposit quantity sequence; the last k5 days of the daily deposit sequence were recorded as the near term and the remaining part as the long term, where k5 is the number of days set.
- 8. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk with adaptive storage requirements according to claim 7, wherein the method for respectively obtaining the storage requirements of the public area and the storage requirements of the encryption area according to standard public storage data and standard encryption storage data, and respectively obtaining the public storage requirements and the encryption storage requirements, further comprises the following sub-steps: Calculating the average value of the long-term segment, and recording the average value of the long-term segment as a long-term level BP, and recording the daily storage quantity of any one of the short-term segments as RMi, wherein i represents the position number in the short-term segment; The method comprises the steps of obtaining the sum of position serial numbers of all daily stored quantities in a recent section and recording the sum as HG, calculating (i+e0)/(HG+k5×e0) and recording the sum as the stock weight Qi of RMi, and calculating Qi×RMi and recording the sum as the weighted stock of RMi, wherein e0 is a set constant.
- 9. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk with adaptive storage requirements according to claim 8, wherein the method for respectively obtaining the storage requirements of the public area and the storage requirements of the encryption area according to standard public storage data and standard encryption storage data, and respectively obtaining the public storage requirements and the encryption storage requirements, further comprises the following sub-steps: Repeatedly calculating the weighted stock of all daily stored quantities in the recent section, calculating the sum of all weighted stock, and calculating the recent level CP; calculating min (CP/DP, DP/CP) to be used as a stability weight PQ, calculating PQ×CP+ (1-PQ) ×BP to be used as a storage requirement of a public area and marking the storage requirement as a public storage requirement GU; and repeatedly acquiring the storage requirement of the encryption area according to the standard encryption storage data, and marking the storage requirement as encryption storage requirement EU.
- 10. The method for optimizing capacity dynamic allocation performance of an intelligent usb disk according to claim 9, wherein dynamically allocating capacities of a public area and an encrypted area based on a public storage demand and an encrypted storage demand comprises the following sub-steps: Repeating the public storage requirement and the encryption storage requirement every day, and respectively marking the currently acquired public storage requirement and the encryption storage requirement as GU and EU in sequence; if GY > GU, GY-GU is marked as public distributable capacity GF, otherwise the public distributable capacity is equal to 0, if EY > EU, EY-EU is marked as encryption distributable capacity EF, otherwise the encryption distributable capacity is equal to 0; If GU is not less than GY and EU is not less than EY, the capacities of the public area and the encryption area are not dynamically allocated, if GU is less than GY and EU is less than EY, the capacity deficiency of the first USB flash disk is judged, and early warning is carried out; If the GU is smaller than GY and the EU is not smaller than EY, if EF is larger than GU, acquiring the storage capacity of the GU from EF, and distributing the storage capacity to the public area, and if EF is not larger than GU, distributing EF to the public area; If GF is larger than EU under the condition that EU is smaller than EY and GU is not smaller than GY, obtaining the storage capacity of EU size from GF and distributing the storage capacity to an encryption area; if GF is not greater than EU, distributing GF to the encryption area; If the capacity of the public area and the encryption area is dynamically allocated and GU is not less than GY and EU is not less than EY, the capacity deficiency of the first USB flash disk is judged, and early warning is carried out.
Description
Intelligent U disk capacity dynamic allocation performance optimization method capable of adapting to storage requirements Technical Field The invention relates to the technical field of dynamic allocation of USB flash disk capacity, in particular to an intelligent USB flash disk capacity dynamic allocation performance optimization method capable of adapting to storage requirements. Background The U disk capacity dynamic allocation technology is a storage management technology for automatically or semi-automatically adjusting the capacity ratio of each partition on the premise of not affecting the data integrity based on a multi-partition architecture such as a public area and an encryption area, and the core of the technology is to break the limitation of the static fixed partition of the traditional U disk and dynamically schedule storage resources. When the capacity of an intelligent USB flash disk is dynamically allocated, a fixed capacity threshold is often set for a partition, when the residual capacity of a certain partition is lower than the capacity threshold, capacity allocation is triggered, a certain capacity is allocated to the partition from the partition with more residual capacity, the fixed capacity threshold is manually set according to experience and often deviates from actual storage requirements, if the threshold is set too high, no continuous writing requirements are required for users in the partition in a short period, meaningless capacity allocation is caused, after the partition is preempted in space from other partitions, the partition is in a low-utilization state for a long time, capacity idle waste is caused, if the threshold is set too low, and the partition has large writing requirements, capacity allocation can occur when the capacity allocation is not triggered yet, but the residual capacity cannot support the embarrassment of the single writing requirements, so that file writing fails or is interrupted, the core target of the dynamic allocation guarantees the storage availability, and if the user writes at a high frequency of the partition, the fixed high threshold also causes frequent capacity allocation adjustment, the load is increased, the master control chip is triggered, the capacity allocation is usually large, the capacity allocation is preempted, the capacity is calculated, the capacity is excessively occupied, the capacity is not is required for the current demand is not is completely adjusted, the dynamic storage requirements of the intelligent USB flash disk is completely is not can be met, the current demand is met, the dynamic allocation is not is completely is met, the user needs is required for the dynamic allocation is required, and the user is required for the disk, and is subjected to be dynamically needs is subjected to dynamic allocation, and can be adjusted. Disclosure of Invention The invention aims to solve at least one of the technical problems in the prior art to a certain extent, and solves the problems that the prior U disk capacity dynamic allocation technology cannot accurately acquire the requirement of a user on the storage capacity according to the historical storage condition of the intelligent U disk and adaptively adjust the threshold value triggering capacity allocation when the capacity of the intelligent U disk is dynamically allocated by dividing the intelligent U disk into a public area and an encryption area and periodically collecting the storage file information of the public area and the encryption area in the use process of the intelligent U disk to respectively obtain public storage information data and encrypted storage information data, respectively preprocessing the data to obtain standard public storage data and standard encrypted storage data, respectively acquiring the storage requirement of the public area and the storage requirement of the encryption area to respectively obtain the public storage requirement and the encryption storage requirement of the encryption area. In order to achieve the above purpose, the present application provides a method for optimizing the capacity dynamic allocation performance of an intelligent USB flash disk capable of adapting to storage requirements, comprising the following steps: dividing the intelligent USB flash disk into a public area and an encryption area, and periodically collecting storage file information of the public area and the encryption area in the use process of the intelligent USB flash disk to respectively obtain public storage information data and encryption storage information data; Respectively carrying out data preprocessing according to the public storage information data and the encrypted storage information data to obtain standard public storage data and standard encrypted storage data; according to the standard public storage data and the standard encryption storage data, respectively obtaining the storage requirement of the public area and the storage requir