CN106502588A - A kind of memory space management and storage device - Google Patents

A kind of memory space management and storage device Download PDF

Info

Publication number
CN106502588A
CN106502588A CN201610913544.6A CN201610913544A CN106502588A CN 106502588 A CN106502588 A CN 106502588A CN 201610913544 A CN201610913544 A CN 201610913544A CN 106502588 A CN106502588 A CN 106502588A
Authority
CN
China
Prior art keywords
data
data packets
compressed data
accessed
compressed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610913544.6A
Other languages
Chinese (zh)
Inventor
周德海
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610913544.6A priority Critical patent/CN106502588A/en
Publication of CN106502588A publication Critical patent/CN106502588A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]

Abstract

The embodiment of the invention discloses a kind of memory space management and storage device, are applied to technical field of memory, the realization of wherein method includes:Obtain the size that data are not accessed in memory space more than the first Preset Time;Whether the size for not being accessed for data described in judging exceedes predetermined threshold value;If exceeding the predetermined threshold value, it is not accessed for data and is compressed obtaining compressed data packets by described, and deletes and described be not accessed for data;If not being accessed more than compressed data packets described in the second Preset Time, judge whether the type of the data included in the compressed data packets meets preset kind;If meeting the preset kind, the compressed data packets are deleted.Implement the embodiment of the present invention, automatically memory space can be managed, improve the interactive efficiency of information.

Description

A kind of memory space management and storage device
Technical field
The present invention relates to technical field of memory, more particularly to a kind of memory space management and storage device.
Background technology
With the development of information technology, digitized life makes people have accumulated substantial amounts of significant data, and people are increasingly Need for these significant datas to carry out network backup, and back up before desired data when can easily from It is downloaded in network.The demand is based on, various cloud service providers are arisen at the historic moment, the well-known and handy cloud disk of comparison There are Baidu's Dropbox, thin cloud, 360 cloud disks etc. in service provider.To in terminal device, then user can download above-mentioned cloud disk application program Log in the application program to back up the data (such as address list, note, picture etc.) in terminal device by way of cloud storage To above network, and the data that can be backed up before downloading from network when user is needed using data in cloud disk.
At present, the memory space of cloud disk has certain restriction, with increasing for user ID data, causes user to make System is frequently encountered during being backed up with cloud disk and jumps out warning, point out the insufficient memory of user's cloud disk, at this moment Generally require user and delete the data stored in cloud disk manually, but, wasted time and energy by the way of deleting manually, reduce letter The interactive efficiency of breath.
Content of the invention
A kind of memory space management and storage device is embodiments provided, automatically memory space can be entered Row management, improves the interactive efficiency of information.
On the one hand a kind of memory space management is embodiments provided, including:
Obtain the size that data are not accessed in memory space more than the first Preset Time;
Whether the size for not being accessed for data described in judging exceedes predetermined threshold value;
If exceeding the predetermined threshold value, it is not accessed for data and is compressed obtaining compressed data packets by described, and delete Data are not accessed for except described;
If not being accessed more than compressed data packets described in the second Preset Time, judge to include in the compressed data packets The type of data whether meet preset kind;
If meeting the preset kind, the compressed data packets are deleted.
As a kind of optional embodiment, it is not accessed for data and is compressed obtaining compressed data by described described Before bag, methods described also includes:
Data are not accessed for described in detection whether in compressive state;
If the data that are not accessed for are not in compressive state, execute and described the data that are not accessed for are entered Row compression obtains compressed data packets.
As a kind of optional embodiment, the data for judging and including in the compressed data packets type whether Before meeting preset kind, methods described also includes:
Judge whether the data included in the compressed data packets are protected datas;
If not whether completely protected data, then execute the type of the data for judging and including in the compressed data packets Sufficient preset kind.
As a kind of optional embodiment, the data for judging and including in the compressed data packets type whether After meeting preset kind, and before the deletion compressed data packets, methods described also includes:
Based on default deletion condition, judge whether the data included in the compressed data packets need to delete;
If desired the class of the data that in the data that in the compressed data packets include, and the compressed data packets include is deleted Type meets the preset kind, then execute the deletion compressed data packets.
As a kind of optional embodiment, described based on default deletion condition, judge in the compressed data packets Comprising data whether need to delete after, and described delete the compressed data packets before, methods described also includes:
Judge whether the use state of the memory space meets preset rules;
If the use state of the memory space meets the type of the data included in preset rules, the compressed data packets Meet the preset kind and the data included in the compressed data packets deleted by needs, then execute the deletion compression Packet.
Used as a kind of optional embodiment, whether the use state for judging the memory space meets preset rules Including:
Judge whether the remaining space of the memory space is less than the first predetermined threshold value, judges to store in the memory space The space that takes of data whether more than the second predetermined threshold value and judge that the remaining space proportion of the memory space is The no at least one situation being less than in the 3rd predetermined threshold value.
A kind of storage device is provided in terms of the embodiment of the present invention two, including:
First acquisition unit, for obtaining the size for not being accessed for data in memory space more than the first Preset Time;
First judging unit, for judging whether the size for not being accessed for data exceedes predetermined threshold value;
Compression processing unit, for when the predetermined threshold value is exceeded, the data that are not accessed for being compressed Arrive compressed data packets;
Unit is deleted, and described data is not accessed for for deleting;
Second judging unit, for when not being accessed more than compressed data packets described in the second Preset Time, judging institute Whether the type for stating the data included in compressed data packets meets preset kind;
The deletion unit, is additionally operable to, when the preset kind is met, delete the compressed data packets.
Used as a kind of optional embodiment, the storage device also includes:
Detector unit, for detecting that the data that are not accessed for, whether in compressive state, are not accessed for described When data are not in compressive state, the driving compression processing unit execution is described to be pressed the data that are not accessed for Contracting obtains compressed data packets.
Used as a kind of optional embodiment, the storage device also includes:
3rd judging unit, for judging whether the data included in the compressed data packets are protected datas, not When being protected data, second judging unit is driven to execute the class of the data for judging and including in the compressed data packets Whether type meets preset kind.
Used as a kind of optional embodiment, the storage device also includes:
4th judging unit, for based on default deletion condition, judging that the data included in the compressed data packets are No need to delete, needing to delete the data that include in the compressed data packets, and the data included in the compressed data packets Type when meeting the preset kind, drive the deletion unit to execute and described delete the compressed data packets.
Used as a kind of optional embodiment, the storage device also includes:
5th judging unit, for judging whether the use state of the memory space meets preset rules, deposits described The use state in storage space meets the type of the data included in preset rules, the compressed data packets and meets the preset kind And when needing to delete the data included in the compressed data packets, drive the deletion unit to execute the deletion compression Packet.
As a kind of optional embodiment,
5th judging unit, specifically for judging whether the remaining space of the memory space presets threshold less than first Value, judge that whether space that the data stored in the memory space take more than the second predetermined threshold value and judges the storage Whether the remaining space proportion in space is less than at least one situation in the 3rd predetermined threshold value.
The three aspect embodiment of the present invention additionally provide a kind of storage device, including:Processor and memory:
The memory storage has executable program code;
The processor is used for calling the executable program code stored in the memory, executes the present invention and implements The method described in any one that example is provided.
The embodiment of the present invention obtains the size for not being accessed for data in memory space more than the first Preset Time first;And When the above-mentioned size for not being accessed for data exceedes predetermined threshold value, it is not accessed for data and is compressed being compressed by above-mentioned Packet, and delete above-mentioned be not accessed for data, if not being accessed more than the above-mentioned compressed data packets of the second Preset Time, When the type of the data included in above-mentioned compressed data packets meets preset kind, above-mentioned compressed data packets are deleted.Can basis Access time and data type, are managed to memory space automatically, improve the interactive efficiency of information.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, can be obtaining which according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of schematic flow sheet of memory space management disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of memory space management disclosed in the embodiment of the present invention;
Fig. 3 is a kind of structural representation of storage device disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of storage device disclosed in the embodiment of the present invention;
Fig. 5 is a kind of structural representation of storage device disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of another kind of storage device disclosed in the embodiment of the present invention.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step ground is described in detail, it is clear that described embodiment is only present invention some embodiments, rather than whole enforcement Example.Embodiment in based on the present invention, those of ordinary skill in the art are obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Term " first ", " second ", " the 3rd ", " the 4th " in description and claims of this specification and accompanying drawing with And " the 5th " etc. is for distinguishing different objects, rather than for describing particular order.Additionally, term " comprising " and " having " with And their any deformations, it is intended that cover non-exclusive including.Process, the side of series of steps or unit are for example contained Method, system, product or equipment are not limited to the step of listing or unit, but alternatively also include the step of not listing Or unit, or alternatively also include other steps intrinsic for these processes, method, product or equipment or unit.
Embodiments provide a kind of memory space management and storage device, can according to access time and Data type, is managed to memory space automatically, improves the interactive efficiency of information.It is described in detail individually below.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow sheet of memory space management disclosed in the embodiment of the present invention.Its In, the memory space management shown in Fig. 1 may comprise steps of:
101:Obtain the size that data are not accessed in memory space more than the first Preset Time;
As a kind of optional embodiment, can be exceeded by monitoring the access time determination of the data in memory space First Preset Time is not accessed for data, and then can determine the above-mentioned size for not being accessed for data, wherein, above-mentioned not by The data of access can be some file or some file.
102:Judge whether the above-mentioned size for not being accessed for data exceedes predetermined threshold value;
Wherein, predetermined threshold value can be specified by user, it is possibility to have system according to memory space total space size determine, Specifically adopt which kind of mode, the embodiment of the present invention do not make uniqueness restriction.
103:If exceeding above-mentioned predetermined threshold value, it is not accessed for data and is compressed obtaining compressed data packets by above-mentioned, And delete and above-mentioned be not accessed for data;
Wherein, when the size for not being accessed for data exceedes predetermined threshold value, the above-mentioned data that are not accessed for are pressed Contracting is processed, and after compression is completed, is deleted and is not accessed for data, such that it is able to save the memory space of storage device.
104:If not being accessed more than the above-mentioned compressed data packets of the second Preset Time, judge in above-mentioned compressed data packets Comprising the type of data whether meet preset kind;
Wherein, preset kind can be video, audio frequency, application program installation kit etc., and the embodiment of the present invention does not make uniqueness Limit.
Wherein it is possible to determine above-mentioned compression by the mark for obtaining the data included in compressed data packets or keyword The type of the data included in packet.
105:If meeting above-mentioned preset kind, above-mentioned compressed data packets are deleted.
In the method described by Fig. 1, obtain in memory space first and data are not accessed for more than the first Preset Time Size;And when the above-mentioned size for not being accessed for data exceedes predetermined threshold value, the above-mentioned data that are not accessed for are pressed Contracting obtains compressed data packets, and delete above-mentioned be not accessed for data, if not having more than the above-mentioned compressed data packets of the second Preset Time When the type for there are accessed, then to include in above-mentioned compressed data packets data meets preset kind, above-mentioned compressed data is deleted Bag.Automatically memory space can be managed according to access time and data type, improves the interactive efficiency of information.
Fig. 2 is referred to, Fig. 2 is the schematic flow sheet of another kind of memory space management disclosed in the embodiment of the present invention. As shown in Fig. 2 the method may comprise steps of:
201:Obtain the size that data are not accessed in memory space more than the first Preset Time;
202:Judge whether the above-mentioned size for not being accessed for data exceedes predetermined threshold value;
203:If exceeding above-mentioned predetermined threshold value, detect the above-mentioned data that are not accessed for whether in compressive state;
204:If the above-mentioned data that are not accessed for are not in compressive state, the above-mentioned data that are not accessed for are pressed Contracting obtains compressed data packets, and deletes and above-mentioned be not accessed for data;
205:If not being accessed more than the above-mentioned compressed data packets of the second Preset Time, judge in above-mentioned compressed data packets Comprising data whether be protected data;
As a kind of optional embodiment, can to memory space in partial data carry out write-protect, for example can be with For needing data to be protected to add identification information, if detecting the identification information, then it represents that the data are protected datas, then table Show the data unsuppressible-suppression.
206:If not protected data, then judge whether the type of the data included in above-mentioned compressed data packets meets pre- If type, based on default deletion condition, judge whether the data included in above-mentioned compressed data packets need to delete and judge Whether the use state of above-mentioned memory space meets preset rules;
Wherein, default deletion condition can preferentially delete condition and/or suggestion deletion condition, when in compressed data packets Comprising data meet preferential delete condition when think that the data should be preferentially deleted, such as form damages, cannot decode Media data, or be fitted without successfully, the application program that can not run, can first judge whether data meet and preferential delete bar Part, will meet the preferential data for deleting condition and deletes.Think that needs suggestion user deletes when data meet suggestion deletion condition By calculating the significance level grade of the data, the data, can judge whether the data are to need to advise the data that deletes.
Wherein, judge whether the use state of memory space meets preset rules and can include multiple implementations:Judge The remaining space of memory space whether less than the first predetermined threshold value, judge the space of data occupancy that stores in memory space whether It is more than the second predetermined threshold value and judges whether the remaining space proportion of memory space is less than in the 3rd predetermined threshold value extremely A kind of few situation.Wherein, above-mentioned three kinds of situations can individually be executed and can also be combined execution, can also execute simultaneously, this Inventive embodiments do not make uniqueness restriction, the first above-mentioned predetermined threshold value, and the second predetermined threshold value and the 3rd predetermined threshold value can be with Actual size of the space according to memory space is set, and can be manually entered by user and is configured, or by storage device Recommendation numerical value be configured.
As a kind of optional embodiment, gross space can also be accounted for by calculating the space used in memory space Ratio, judge whether memory space needs to clear up, or by calculate memory space in store data take space With the ratio of gross space, judge whether memory space needs to clear up, specifically adopt which kind of judgment mode, the embodiment of the present invention is not Make uniqueness restriction.
207:If the type of the data included in above-mentioned compressed data packets meets preset kind, needs deletes above-mentioned compression number Preset rules are met according to the use state of the data included in bag and above-mentioned memory space, then delete above-mentioned compressed data packets.
In the embodiment of the present invention, if the type of the data included in above-mentioned compressed data packets meets preset kind, needs and deletes The use state for removing the data and above-mentioned memory space included in above-mentioned compressed data packets meets preset rules, then delete above-mentioned Compressed data packets.For example, if the type of the data included in above-mentioned compressed data packets be medium type, in above-mentioned compressed data packets Comprising data meet preferably deletion condition and memory space needs are cleaned, then delete above-mentioned compressed data packets.
Fig. 3 is referred to, Fig. 3 is a kind of structural representation of storage device that one embodiment of the present of invention is provided.Wherein, The storage device can be Cloud Server etc..The storage device includes:
First acquisition unit 301, is not accessed for the big of data for obtaining in memory space more than the first Preset Time Little;
First judging unit 302, for judging whether the above-mentioned size for not being accessed for data exceedes predetermined threshold value;
Compression processing unit 303, for when above-mentioned predetermined threshold value is exceeded, the above-mentioned data that are not accessed for being compressed Obtain compressed data packets;
Unit 304 is deleted, and above-mentioned data is not accessed for for deleting;
Second judging unit 305, for when not being accessed more than the above-mentioned compressed data packets of the second Preset Time, judging Whether the type of the data included in above-mentioned compressed data packets meets preset kind;
Above-mentioned deletion unit 304, is additionally operable to, when above-mentioned preset kind is met, delete above-mentioned compressed data packets.
In the embodiment of the present invention, the specific implementation of each functional unit is referred to the description in embodiment of the method 1, this Inventive embodiments will not be repeated.
In the embodiment of the present invention, obtained in memory space more than the first Preset Time by first acquisition unit 301 first It is not accessed for the size of data;Judge whether the above-mentioned size for not being accessed for data exceedes by the first judging unit 302 Predetermined threshold value;By compression processing unit 303 the above-mentioned size for not being accessed for data exceed predetermined threshold value when, by above-mentioned not Be accessed for data and be compressed obtaining compressed data packets, at the same by delete unit 304 delete above-mentioned be not accessed for data, By the second judging unit 305 when not being accessed more than the above-mentioned compressed data packets of the second Preset Time, above-mentioned compression is judged Whether the type of the data included in packet meets preset kind;Above-mentioned default class is being met finally by unit 304 is deleted During type, above-mentioned compressed data packets are deleted.Automatically memory space can be managed according to access time and data type, Improve the interactive efficiency of information.
Fig. 4 is seen also, Fig. 4 is the structural representation of another kind of storage device disclosed in the embodiment of the present invention.Wherein, Storage device shown in Fig. 4 is that storage device as shown in Figure 3 is optimized and obtains, compared with the storage device shown in Fig. 3, Storage device shown in Fig. 4 also includes:
Detector unit 306, for detecting that the above-mentioned data that are not accessed for, whether in compressive state, are not accessed above-mentioned Data when being not in compressive state, drive above-mentioned compression processing unit 303 to be compressed the above-mentioned data that are not accessed for Obtain compressed data packets.
Alternatively, in the storage device shown in Fig. 4, the storage device also includes:
3rd judging unit 307, for judging whether the data included in above-mentioned compressed data packets are protected datas, When being not protected data, the type of the data for driving above-mentioned second judging unit 305 to judge to include in above-mentioned compressed data packets Whether preset kind is met.
Alternatively, in the storage device shown in Fig. 4, the storage device also includes:
4th judging unit 308, for based on default deletion condition, judging the data included in above-mentioned compressed data packets Whether need to delete, needing to delete the data that include in above-mentioned compressed data packets, and include in above-mentioned compressed data packets When the type of data meets above-mentioned preset kind, above-mentioned deletion unit 304 is driven to delete above-mentioned compressed data packets.
Alternatively, in the storage device shown in Fig. 4, the storage device also includes:
5th judging unit 309, for judging whether the use state of above-mentioned memory space meets preset rules, above-mentioned The use state of memory space meets the type of the data included in preset rules, above-mentioned compressed data packets and meets above-mentioned default class Type and when needing to delete the data included in above-mentioned compressed data packets, drives above-mentioned deletion unit 304 to delete above-mentioned compression number According to bag.
Alternatively, in the storage device shown in Fig. 4, above-mentioned 5th judging unit 309, specifically for judging above-mentioned storage The remaining space in space whether less than the first predetermined threshold value, judge the space of data occupancy that stores in above-mentioned memory space whether It is more than the second predetermined threshold value and judges the remaining space proportion of above-mentioned memory space whether less than in the 3rd predetermined threshold value At least one situation.
Fig. 5 is referred to, Fig. 5 is a kind of structural representation of storage device disclosed in the embodiment of the present invention.As shown in figure 5, The storage device includes:Processor 501 and memory 502;Wherein memory 502 can be used for the execution data of processor 501 Caching required for processing, can be also used for the result for providing the data that execution data processing is called of processor 501 and acquisition The memory space of data.
In embodiments of the present invention, processor 501 passes through to call the program code being stored in memory 502, for holding Row is following to be operated:
Obtain the size that data are not accessed in memory space more than the first Preset Time;
Judge whether the above-mentioned size for not being accessed for data exceedes predetermined threshold value;
If exceeding above-mentioned predetermined threshold value, it is not accessed for data and is compressed obtaining compressed data packets by above-mentioned, and delete Data are not accessed for except above-mentioned;
If not being accessed more than the above-mentioned compressed data packets of the second Preset Time, judge to include in above-mentioned compressed data packets The type of data whether meet preset kind;
If meeting above-mentioned preset kind, above-mentioned compressed data packets are deleted.
Used as a kind of optional embodiment, processor 501 passes through to call the program code being stored in memory 502, The above-mentioned data that are not accessed for are being compressed before obtaining compressed data packets, are being additionally operable to execute following operation:
Whether the above-mentioned data that are not accessed for of detection are in compressive state;
If the above-mentioned data that are not accessed for are not in compressive state, execute and the above-mentioned data that are not accessed for are pressed The step of contracting obtains compressed data packets.
Used as a kind of optional embodiment, processor 501 passes through to call the program code being stored in memory 502, Before whether the type of the data included in above-mentioned compressed data packets are judged meets preset kind, it is additionally operable to execute following behaviour Make:
Judge whether the data included in above-mentioned compressed data packets are protected datas;
If not protected data, then execute that to judge whether the type of the data included in above-mentioned compressed data packets meets pre- If the step of type.
Used as a kind of optional embodiment, processor 501 passes through to call the program code being stored in memory 502, After whether the type of the data included in above-mentioned compressed data packets are judged meets preset kind, and deleting above-mentioned compression Before packet, it is additionally operable to execute following operation:
Based on default deletion condition, judge whether the data included in above-mentioned compressed data packets need to delete;
If desired the data that in the data that in above-mentioned compressed data packets include, and above-mentioned compressed data packets include are deleted Type meets above-mentioned preset kind, then execute the step of deleting above-mentioned compressed data packets.
Used as a kind of optional embodiment, processor 501 passes through to call the program code being stored in memory 502, After based on default deletion condition, judging whether the data included in above-mentioned compressed data packets need to delete, and deleting Before except above-mentioned compressed data packets, it is additionally operable to execute following operation:
Judge whether the use state of above-mentioned memory space meets preset rules;
If the use state of above-mentioned memory space meets the type of the data included in preset rules, above-mentioned compressed data packets Meet above-mentioned preset kind and the data included in above-mentioned compressed data packets deleted by needs, then execute and delete above-mentioned compressed data The step of bag.
Used as a kind of optional embodiment, processor 501 passes through to call the program code being stored in memory 502, Judge whether the use state of above-mentioned memory space meets preset rules and include:
Judge whether the remaining space of above-mentioned memory space is less than the first predetermined threshold value, judges to store in above-mentioned memory space The space that takes of data whether more than the second predetermined threshold value and judge that the remaining space proportion of above-mentioned memory space is The no at least one situation being less than in the 3rd predetermined threshold value.
Fig. 6 is referred to, Fig. 6 is the structural representation of another kind of storage device disclosed in the embodiment of the present invention.Such as Fig. 6 institutes Show, for convenience of description, illustrate only the part related to the embodiment of the present invention, particular technique details is not disclosed, be refer to Present invention method part.The storage device can be Cloud Server etc., so that storage device is as Cloud Server as an example:
As shown in fig. 6, the Cloud Server can include:At least one processor 601, such as CPU, at least one network connect Mouth 602, memory 603, Database Unit 604, at least one communication bus 605.Wherein, communication bus 605 is used for realizing this Connection communication between a little components.Memory 603 can be high-speed RAM memory, or non-labile memory (non-volatile memory), for example, at least one magnetic disc store.Memory 603 optionally can also be at least one It is located remotely from the storage device of aforementioned processor 601.As shown in fig. 6, in as a kind of memory 603 of computer-readable storage medium Operating system, network communication module, Subscriber Interface Module SIM and storage space management program can be included.
In the Cloud Server shown in Fig. 6, network interface 602 is mainly used in connection user equipment and enters row data communication, and Processor 601 can be used for calling the storage space management program stored in memory 603, and execute following operation:
Obtain the size that data are not accessed in memory space more than the first Preset Time;
Judge whether the above-mentioned size for not being accessed for data exceedes predetermined threshold value;
If exceeding predetermined threshold value, it is not accessed for data and is compressed obtaining compressed data packets by above-mentioned, and delete State and be not accessed for data;
If not being accessed more than the above-mentioned compressed data packets of the second Preset Time, judge to include in the compressed data packets Whether the type of data meets preset kind;
If meeting preset kind, the compressed data packets are deleted.
It should be noted that the Cloud Server shown in Fig. 6 only denotes executes the embodiment of the present invention Component needed for disclosed memory space management, for the other assemblies embodiment of the present invention that server can possess is not made Sign, because this does not affect the realization of the embodiment of the present invention.
In previous embodiment, each step method flow process can be realized based on the structure of the Cloud Server.
In embodiment shown in aforementioned Fig. 1, Fig. 2, each step method flow process can be realized based on the structure of the Cloud Server. In embodiment shown in aforementioned Fig. 3, Fig. 4, Fig. 5, each unit function can be realized based on the structure of the Cloud Server.
It should be noted that in the embodiment of above-mentioned storage device, included unit is according to function logic Divided, but be not limited to above-mentioned division, as long as corresponding function can be realized;In addition, each functional unit Specific name also only to facilitate mutually distinguish, be not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that realizing all or part of step in above-mentioned each method embodiment The hardware that program be can be by instruct correlation is completed, and corresponding program can be stored in a kind of computer-readable recording medium In, storage medium mentioned above can be read-only storage, disk or CD etc..
The present invention preferably specific embodiment is these are only, but protection scope of the present invention is not limited thereto, any Those familiar with the art in the technical scope that the embodiment of the present invention is disclosed, replace by the change that can readily occur in Change, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be with the protection model of claim Enclose and be defined.

Claims (12)

1. a kind of memory space management, it is characterised in that include:
Obtain the size that data are not accessed in memory space more than the first Preset Time;
Whether the size for not being accessed for data described in judging exceedes predetermined threshold value;
If exceeding the predetermined threshold value, it is not accessed for data and is compressed obtaining compressed data packets by described, and delete institute State and be not accessed for data;
If not being accessed more than compressed data packets described in the second Preset Time, the number included in the compressed data packets is judged According to type whether meet preset kind;
If meeting the preset kind, the compressed data packets are deleted.
2. method according to claim 1, it is characterised in that be not accessed for data and be compressed obtaining by described described Before compressed data packets, methods described also includes:
Data are not accessed for described in detection whether in compressive state;
If the data that are not accessed for are not in compressive state, execute and described the data that are not accessed for are pressed Contracting obtains compressed data packets.
3. method according to claim 1, it is characterised in that in the data for judging and including in the compressed data packets Before whether type meets preset kind, methods described also includes:
Judge whether the data included in the compressed data packets are protected datas;
If not protected data, then execute the data for judging and including in the compressed data packets type whether meet pre- If type.
4. method according to claim 3, it is characterised in that in the data for judging and including in the compressed data packets After whether type meets preset kind, and before the deletion compressed data packets, methods described also includes:
Based on default deletion condition, judge whether the data included in the compressed data packets need to delete;
If desired the type for deleting the data included in the data included in the compressed data packets, and the compressed data packets is full The foot preset kind, then execute the deletion compressed data packets.
5. method according to claim 4, it is characterised in that described based on default deletion condition, judge the compression After whether the data included in packet need to delete, and before the deletion compressed data packets, methods described Also include:
Judge whether the use state of the memory space meets preset rules;
If the type that the use state of the memory space meets the data included in preset rules, the compressed data packets meets The preset kind and need to delete the data included in the compressed data packets, then execute and described delete the compressed data Bag.
6. method according to claim 5, it is characterised in that whether the use state for judging the memory space meets Preset rules include:
Judge whether the remaining space of the memory space is less than the first predetermined threshold value, judges the number of storage in the memory space Whether more than the second predetermined threshold value and judge whether the remaining space proportion of the memory space is little according to the space for taking At least one situation in the 3rd predetermined threshold value.
7. a kind of storage device, it is characterised in that include:
First acquisition unit, for obtaining the size for not being accessed for data in memory space more than the first Preset Time;
First judging unit, for judging whether the size for not being accessed for data exceedes predetermined threshold value;
Compression processing unit, for when the predetermined threshold value is exceeded, not being accessed for data and being compressed being pressed by described Contracting packet;
Unit is deleted, and described data is not accessed for for deleting;
Second judging unit, for when not being accessed more than compressed data packets described in the second Preset Time, judging the pressure Whether the type of the data included in contracting packet meets preset kind;
The deletion unit, is additionally operable to, when the preset kind is met, delete the compressed data packets.
8. storage device according to claim 7, it is characterised in that the storage device also includes:
Detector unit, for detecting that the data that are not accessed for, whether in compressive state, are not accessed for data described When being not in compressive state, the driving compression processing unit execution is described to be compressed the data that are not accessed for Arrive compressed data packets.
9. storage device according to claim 7, it is characterised in that the storage device also includes:
3rd judging unit, for judging whether the data included in the compressed data packets are protected datas, be not by During protection data, the type for driving second judging unit to execute the data for judging and including in the compressed data packets is No meet preset kind.
10. storage device according to claim 9, it is characterised in that the storage device also includes:
4th judging unit, for based on default deletion condition, judging whether the data included in the compressed data packets need Delete, needing to delete the data that include in the compressed data packets, and the class of the data included in the compressed data packets When type meets the preset kind, the deletion unit is driven to execute the deletion compressed data packets.
11. storage devices according to claim 10, it is characterised in that the storage device also includes:
5th judging unit, for judging whether the use state of the memory space meets preset rules, empty in the storage Between use state meet the data included in preset rules, the compressed data packets type meet the preset kind and When needing to delete the data included in the compressed data packets, the deletion unit is driven to execute the deletion compressed data Bag.
12. according to claim 11 storage device, it is characterised in that
5th judging unit, specifically for judge the remaining space of the memory space whether less than the first predetermined threshold value, Judge whether the space that the data stored in the memory space take is more than the second predetermined threshold value and judges that the storage is empty Between remaining space proportion whether less than at least one situation in the 3rd predetermined threshold value.
CN201610913544.6A 2016-10-19 2016-10-19 A kind of memory space management and storage device Pending CN106502588A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610913544.6A CN106502588A (en) 2016-10-19 2016-10-19 A kind of memory space management and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610913544.6A CN106502588A (en) 2016-10-19 2016-10-19 A kind of memory space management and storage device

Publications (1)

Publication Number Publication Date
CN106502588A true CN106502588A (en) 2017-03-15

Family

ID=58318024

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610913544.6A Pending CN106502588A (en) 2016-10-19 2016-10-19 A kind of memory space management and storage device

Country Status (1)

Country Link
CN (1) CN106502588A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108063818A (en) * 2017-12-18 2018-05-22 深圳市中科明望通信软件有限公司 Data download method, device, terminal and computer readable storage medium
CN113346909A (en) * 2021-05-11 2021-09-03 清华大学 Data compression method and device
CN115904235A (en) * 2022-11-11 2023-04-04 深圳市数存科技有限公司 Data life cycle management method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370212A (en) * 2008-09-22 2009-02-18 深圳华为通信技术有限公司 Data processing method and apparatus
US20130173559A1 (en) * 2011-12-30 2013-07-04 Chi Mei Communication Systems, Inc. Electronic device, storage medium, and method for recovering deleted files of the electronic device
CN103218224A (en) * 2013-03-29 2013-07-24 东莞宇龙通信科技有限公司 Method and terminal for improving utilization ratio of memory space
CN104572113A (en) * 2015-01-21 2015-04-29 深圳市中兴移动通信有限公司 Automatic storage space arranging method and mobile terminal
CN105025166A (en) * 2015-07-09 2015-11-04 深圳市金立通信设备有限公司 File processing method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101370212A (en) * 2008-09-22 2009-02-18 深圳华为通信技术有限公司 Data processing method and apparatus
US20130173559A1 (en) * 2011-12-30 2013-07-04 Chi Mei Communication Systems, Inc. Electronic device, storage medium, and method for recovering deleted files of the electronic device
CN103218224A (en) * 2013-03-29 2013-07-24 东莞宇龙通信科技有限公司 Method and terminal for improving utilization ratio of memory space
CN104572113A (en) * 2015-01-21 2015-04-29 深圳市中兴移动通信有限公司 Automatic storage space arranging method and mobile terminal
CN105025166A (en) * 2015-07-09 2015-11-04 深圳市金立通信设备有限公司 File processing method and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108063818A (en) * 2017-12-18 2018-05-22 深圳市中科明望通信软件有限公司 Data download method, device, terminal and computer readable storage medium
CN113346909A (en) * 2021-05-11 2021-09-03 清华大学 Data compression method and device
CN115904235A (en) * 2022-11-11 2023-04-04 深圳市数存科技有限公司 Data life cycle management method and device

Similar Documents

Publication Publication Date Title
CN104156414B (en) A kind of method for cleaning of garbage files, device and terminal
CN103699396A (en) Information feedback method and terminal device
US8732199B2 (en) System, method, and computer readable media for identifying a user-initiated log file record in a log file
CN106502588A (en) A kind of memory space management and storage device
CN103092687B (en) A kind of application program management apparatus and method
CN105893278A (en) System cache garbage cleaning method and device and terminal equipment
CN108038130A (en) Automatic cleaning method, device, equipment and the storage medium of fictitious users
CN104331376B (en) The method for cleaning and device of the installation kit stored in mobile terminal
CN109614045B (en) Metadata dropping method and device and related equipment
CN113051147A (en) Database cluster monitoring method, device, system and equipment
CN112712702B (en) Illegal event duplicate removal method and device, electronic equipment and machine-readable storage medium
CN106844655A (en) Information processing method, device and computer equipment
WO2021017899A1 (en) Method for efficiently cleaning equipment files and device
CN111221890B (en) Automatic monitoring and early warning method and device for universal index class
CN111046068B (en) Method and device for displaying alarm generation process
CN107800607A (en) A kind of method and device for clearing up mailbox data
CN110781166B (en) Data management method and device in storage system
CN109213447A (en) A kind of SAN storage volume carry, discharging method and system
CN108959614A (en) A kind of snapshot management method, system, device, equipment and readable storage medium storing program for executing
CN107357686A (en) A kind of daily record delet method and device
CN104951920A (en) Device and method for service interface processing
CN107231284A (en) The sending method and terminal device of a kind of message
CN110399132A (en) Maintaining method, device, computer equipment and the storage medium of item code
CN116185785A (en) Early warning method and device for file abnormal change
CN113783766B (en) Data processing method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315