CN106354601A - Storage space management method and device for data partition - Google Patents

Storage space management method and device for data partition Download PDF

Info

Publication number
CN106354601A
CN106354601A CN201610665783.4A CN201610665783A CN106354601A CN 106354601 A CN106354601 A CN 106354601A CN 201610665783 A CN201610665783 A CN 201610665783A CN 106354601 A CN106354601 A CN 106354601A
Authority
CN
China
Prior art keywords
memory space
threshold value
predetermined threshold
data
data partition
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
CN201610665783.4A
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.)
Shenzhen TCL New Technology Co Ltd
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201610665783.4A priority Critical patent/CN106354601A/en
Priority to PCT/CN2016/112266 priority patent/WO2018028121A1/en
Publication of CN106354601A publication Critical patent/CN106354601A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3034Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a storage system, e.g. DASD based or network based
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/0223User address space allocation, e.g. contiguous or non contiguous base addressing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a storage space management method for a data partition. The method includes the steps that remaining storage space of the data partition is detected at first preset frequency; when it is detected that the remaining storage space is smaller than a first preset threshold value, remaining storage space in the data partition is detected at second preset frequency, wherein the second preset frequency is larger than the first preset frequency; when it is detected that the remaining storage space is smaller than a second preset threshold value, warning information indicating that the storage space is full and an application data management interface are displayed, a user performs data eliminating based on the application data management interface to release the storage space, wherein the second preset threshold value is smaller than the first preset threshold value. The invention further provides a storage space management device for the data partition. The situation that the storage space of the data partition is insufficient is found in time, and the situation that an application cannot run normally due to the fact that the storage space is rapidly changed from insufficient to full up is avoided.

Description

The memory space management of data partition and device
Technical field
The present invention relates to technical field of data storage, more particularly, to a kind of memory space management of data partition and dress Put.
Background technology
The subregion of android equipment includes system partitioning, data partition.Data partition be used for storing all types of user data with Application program, is that user can read and write.Wipe this subregion, be equal to factory reset, that is, Android system State after state during one-shot, or last installation official or third party rom.Generally require to data partition Set capacity limit, and prevent hacker from illegally writing data to data partition, or prevent establishment illegal file from data is divided Area carries out malicious sabotage.
Because the data of operating Android system major part user operation all can be given tacit consent to is saved in data partition, such as The files such as the picture video that data cached, the application that the application data of newly downloaded installation, application run is downloaded, make data partition hold Easily it is filled and lead to Android system abnormal.Each application can have the measure of detection data subregion free space, but greatly In most cases application simply detected the free space of data partition before being downloaded task, can't download The detection of interval in journey.When multiple application downloading data simultaneously, they detect that data free space is all enough before downloading , but it is possible that multiple application simultaneously download when, the problem of data partition " being filled up ".
Android system generally uses dsms (device storage monitor service) service and carrys out monitoring system The state of internal storage space, if the residual memory space of equipment be less than some threshold values (acquiescence is the 10% of memory space, This value can be arranged) when will send the not enough warning of remaining space to user, allow user discharge some spaces.Below with number As a example subregion, illustratively this flow process:
Dsms detected the size of data partition remaining space every 1 minute, when data partition free space is less than valve During value (between the 10% of subregion total size to 500m), can automatically carry out once the operation of clear caching;Calculate again after removing caching The free space of data partition, if being also less than threshold values, can send a warning notice to informing, and sending Action_device_storage_low broadcasts.User can open application manager, manually each application data is carried out clearly Divided by reaching the purpose increasing data partition free space, apply simultaneously and itself can also monitor action_device_ Storage_low broadcasts and to do some special process, and for example, email application can stop current receipts when receiving this broadcast Send out the operation of mail.Dsms service detection is full to space, can send the full broadcast in space;Remaining space is detected big In threshold values, and sent that memory space is low or the prompting of insufficient space before, and can cancel and above-mentioned point out and send action_ Device_storage_ok broadcasts.If the data volume downloaded in this minute very big it is possible to the full broadcast in space also Do not send, data partition has just been expired, lead to application cannot normally run.
Content of the invention
The present invention provides a kind of memory space management of data partition and device it is intended to find data partition in time Memory space inadequate, prevention occur memory space quickly from deficiency to full up and lead to apply situation about cannot normally run.
For achieving the above object, the present invention provides a kind of memory space management of data partition, this data partition Memory space management includes:
Residual memory space according to the first predeterminated frequency detection data subregion;
When described residual memory space is detected less than the first predetermined threshold value, divide according to the second predeterminated frequency detection data Residual memory space in area, wherein, described second predeterminated frequency is more than described first predeterminated frequency;
When described residual memory space is detected less than the second predetermined threshold value, the full warning message of display memory space And application data administration interface, so that user carries out data dump to discharge storage sky based on described application data administration interface Between, wherein, described second predetermined threshold value is less than described first predetermined threshold value.
Alternatively, the memory space management of described data partition also includes:
When described residual memory space is detected less than the second predetermined threshold value, the value of setting preset attribute, will be described The residual memory space of data partition is labeled as less than the second predetermined threshold value;
Call every time write function to described data partition write data before, institute is judged according to the value of described preset attribute Whether the residual memory space stating data partition is less than the second predetermined threshold value;
If residual memory space is less than the second predetermined threshold value, send the abnormal information of read-write to application layer;
If residual memory space is more than or equal to described second predetermined threshold value, calls and write function to described data partition Write data.
Alternatively, the memory space management of described data partition also includes:
When described residual memory space amount is detected less than the first predetermined threshold value, the warning letter of display memory space inadequate Breath and application data administration interface, so that user carries out data dump to discharge storage based on described application data administration interface Space.
Alternatively, the memory space management of described data partition also includes:
When described residual memory space is detected less than the second predetermined threshold value, judge whether system is currently in and complete to open Dynamic state;
If system is currently at the state completing to start, the value of execution setting preset attribute, by described data partition Residual memory space be labeled as the step less than the second predetermined threshold value.
Alternatively, after the described step according to residual memory space in the second predeterminated frequency detection data subregion, described The memory space management of data partition also includes:
When described residual memory space is detected more than or equal to the second predetermined threshold value, described preset attribute is set Value, the amount of storage of described data partition is labeled as more than or equal to described second predetermined threshold value.
Additionally, for achieving the above object, the present invention also provides a kind of storage space management device of data partition, this data The storage space management device of subregion includes:
Zoning monitoring module, for the residual memory space according to the first predeterminated frequency detection data subregion;
And, when described residual memory space is detected less than the first predetermined threshold value, detect according to the second predeterminated frequency Residual memory space in data partition, wherein, described second predeterminated frequency is more than described first predeterminated frequency;
Nformation alert module, for when described residual memory space is detected less than the second predetermined threshold value, display stores The full warning message in space, wherein, described second predetermined threshold value is less than described first predetermined threshold value;
Interface display module, for when described residual memory space is detected less than the second predetermined threshold value, display is applied Data management interface, so that user carries out data dump to discharge memory space based on described application data administration interface.
Alternatively, the storage space management device of described data partition also includes:
System property module, for when described residual memory space is detected less than the second predetermined threshold value, setting is default The value of attribute, the residual memory space of described data partition is labeled as less than the second predetermined threshold value;
Data read-write module, for call every time write function to described data partition write data before, according to described The value of preset attribute judges whether the residual memory space of described data partition is less than the second predetermined threshold value;And, if residue is deposited Storage space is less than the second predetermined threshold value, then send the abnormal information of read-write to application layer;If residual memory space be more than or Person is equal to described second predetermined threshold value, then call and write function to described data partition write data.
Alternatively, described information reminding module is additionally operable to: presets less than first when described residual memory space amount is detected During threshold value, the warning message of display memory space inadequate;
Described interface display module is additionally operable to: when described residual memory space amount is detected less than the first predetermined threshold value, Display application data administration interface, so that user carries out data dump to discharge storage sky based on described application data administration interface Between.
Alternatively, the storage space management device of described data partition also includes:
Condition judgment module, for when described residual memory space is detected less than the second predetermined threshold value, judging system Currently whether it is in the state completing to start;
Described system property module is additionally operable to: if system is currently at the state completing to start, setting preset attribute Value, the residual memory space of described data partition is labeled as less than the second predetermined threshold value.
Alternatively, described system property module is additionally operable to: is more than or equal to the when described residual memory space is detected The value of described preset attribute, during two predetermined threshold value, is set, the amount of storage of described data partition is labeled as being more than or equal to Described second predetermined threshold value.
The memory space management of data partition proposed by the present invention and device, in the mistake writing data to data partition Cheng Zhong, according to the residual memory space of certain frequency detecting data partition, pre- less than first when residual memory space is detected If during threshold value, the frequency of residual memory space in increase detection data subregion, the frequency of optimizing detection residual memory space size, Find the not enough situation of subregion residual memory space early, when residual memory space is detected less than the second predetermined threshold value, say The residual memory space of bright now data partition seldom, if there being a certain amount of data write again, may result in data Subregion is fully written, and then has influence on the normal operation of application, therefore, is less than the second predetermined threshold value residual memory space is detected When, that is, give a warning information, shows application data administration interface simultaneously, so that user is entered based on described application data administration interface Row data dump to discharge memory space, can prevent to occur memory space quickly from deficiency to full up and lead to the application cannot be just Situation about often running.
Brief description
Fig. 1 is the flow chart of the memory space management first embodiment of data partition of the present invention;
Fig. 2 is the flow chart of the memory space management second embodiment of data partition of the present invention;
Fig. 3 is the high-level schematic functional block diagram of the storage space management device first embodiment of data partition of the present invention;
Fig. 4 is the high-level schematic functional block diagram of the storage space management device second embodiment of data partition of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the storage space management device 3rd embodiment of data partition of the present invention.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
It should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The present invention provides a kind of memory space management of data partition.With reference to shown in Fig. 1, it is data partition of the present invention Memory space management first embodiment flow chart.
In the present embodiment, the memory space management of this data partition includes:
Step s10, according to the residual memory space of the first predeterminated frequency detection data subregion;
Step s20, when described residual memory space is detected less than the first predetermined threshold value, examines according to the second predeterminated frequency Survey residual memory space in data partition, wherein, described second predeterminated frequency is more than described first predeterminated frequency;
The method that the present embodiment proposes is applied to and has the mobile terminals such as mobile phone, the panel computer of intelligent operating system, with Under so that the mobile phone of android operating system is installed as a example illustrate.Each step in the method that this embodiment proposes can To be realized by different functional modules.
Various applications are provided with mobile phone, these apply in running it may appear that to data partition, i.e. handss The memory space of machine, the situation of write data, such as download pictures, download file etc..
Periodically the size of the residual memory space of data partition is detected, for example, it is possible to according to the first default frequency Rate is detected, when detect residual memory space be less than the first predetermined threshold value when it is believed that current residual memory space Deficiency, now, the module for detecting residual memory space amount can send action_device_storage_low broadcast, To inform other functional modules, current memory space is not enough, in order to prevent, during write data, sky occurs Between completely led to application run error, accelerate residual memory space detection, that is, according to the second predeterminated frequency to data partition Residual memory space is detected.
Generally, the size of the first predetermined threshold value can be arranged according to the total size of the data partition of mobile phone, example As, could be arranged to data partition total size 10% to 500m between;First predeterminated frequency can be every 40 seconds to 1 minute Once, the second predeterminated frequency is less than the first predeterminated frequency for detection, for example, it may be every 10-30 second is detected once.
Step s30, when described residual memory space is detected less than the second predetermined threshold value, display memory space is full Warning message and application data administration interface, so that user carries out data dump to release based on described application data administration interface Put memory space, wherein, described second predetermined threshold value is less than described first predetermined threshold value.
When residual memory space is detected less than the second predetermined threshold value according to the second predeterminated frequency, display memory space is Full warning message, and application data administration interface, user can be based on this data management interface of this application, removes application number According to, to discharge memory space, in prior art, in informing transmission information warning, user is not easy it is noted that the present embodiment carries The mode going out, with respect to existing advice method, can make user intuitively see the full warning in space, and rapidly right Application data is cleared up it is not necessary to user goes turn-on data management application more manually, carries out the cleaning of data in time.
Now, wide for detecting the module transmission action_device_storage_not_full of residual memory space amount Broadcast, to inform other functional modules, current memory space is full.
In the present embodiment, the second predetermined threshold value is less than the first predetermined threshold value, and alternatively, the second predetermined threshold value is preset for first The 1/4 of threshold value.
Further, as a kind of embodiment, when residual memory space is not enough, send the warning of memory space inadequate Information and application data administration interface, now although residual memory space still has surplus, but are as writing the carrying out of data, Surplus can be less and less, is cleared up to allow users to early application data, to discharge memory space, is detecting When residual memory space is less than the first predetermined threshold value, show warning message and the application data management field of memory space inadequate Face, so that user carries out data scrubbing to discharge memory space based on described application data administration interface.
The memory space management of the data partition that the present embodiment proposes, in the process writing data to data partition In, according to the residual memory space of certain frequency detecting data partition, preset less than first when residual memory space is detected During threshold value, the frequency of residual memory space in increase detection data subregion, the frequency of optimizing detection residual memory space size, and The early situation finding that subregion residual memory space is not enough, when residual memory space is detected less than the second predetermined threshold value, explanation Now the residual memory space of data partition seldom, if there being a certain amount of data write again, may result in data and dividing Area is fully written, and then has influence on the normal operation of application, therefore, is less than the second predetermined threshold value residual memory space is detected When, that is, give a warning information, shows application data administration interface simultaneously, so that user is entered based on described application data administration interface Row data dump to discharge memory space, can prevent to occur memory space quickly from deficiency to full up and lead to the application cannot be just Situation about often running.
The second embodiment of the memory space management of data partition of the present invention is proposed based on first embodiment.Reference picture Shown in 2, in the present embodiment, after step s10, the memory space management of this data partition also includes:
Step s40, when described residual memory space is detected less than the second predetermined threshold value, the value of setting preset attribute, So that the residual memory space of described data partition to be labeled as less than the second predetermined threshold value;
Step s50, call every time write function to described data partition write data before, according to described preset attribute Value judges whether the residual memory space of described data partition is less than the second predetermined threshold value;
Step s60, if residual memory space is less than the second predetermined threshold value, sends the abnormal prompting letter of read-write to application layer Breath;
Step s70, if residual memory space is more than or equal to described second predetermined threshold value, calls and writes function to described Data partition writes data.
A preset attribute and one is provided to be used for arranging the module of the value of this preset attribute in the method for the present embodiment, optional Ground, this preset attribute is sys.device.storage.low, and its default value is false, little when residual memory space is detected When the second predetermined threshold value, the value of sys.device.storage.low is set to true, that is, current memory space is not enough.
Further, after due to the cleaning of user's application data, memory space is released, therefore, described surplus when detecting The value of described preset attribute, when remaining memory space is more than or equal to the second predetermined threshold value, is set, by described data partition Amount of storage is labeled as more than or equal to described second predetermined threshold value.That is, detect residual memory space be more than or When person is equal to the second predetermined threshold value, the value of sys.device.storage.low is set to false, that is, current residual storage is empty Between sufficient.
Due to most android application written documents be all by fileoutputstream, The java io class such as outputstreamwriter, filewriter is realizing, and these classes are eventually called The write function of iobridge.java, for writing the data read-write module of data in for data partition, every Before secondary call function posix.write is write during data toward subregion, increase the value to above-mentioned preset attribute and judge, default according to this Whether the value of attribute is less than the second predetermined threshold value come the residual memory space to judge current data partition.If The value of sys.device.storage.low is true, then send read-write extremely to application layer, if The value of sys.device.storage.low is false, then call function posix.write continues executing with write operation.For setting The module of value putting this preset attribute, after setting property, can be shared to shared drive, therefore, comes for data read-write module Say, judge whether data partition free space calculates than direct less than the second predetermined threshold value using the mode obtaining preset attribute value For the free space of data partition, drastically increase efficiency.
Proposed based on first embodiment or second embodiment data partition of the present invention memory space management the Three embodiments.In the present embodiment, when residual memory space is detected less than the second predetermined threshold value, judge whether system is in Complete starting state;If system is currently at the state completing to start, the value of execution setting preset attribute, by described data The residual memory space of subregion is labeled as the step less than the second predetermined threshold value.
In the present embodiment, the value by arranging system property sys.boot_completed represents whether system has opened Move and complete, if it is confirmed that system is the running status after the completion of starting, then preset attribute is set Sys.device.storage.low is true, otherwise is then set to false.
Because mobile phone, because of reasons such as the settings applied, the feelings that system restarts during writing data Condition, and the value arranging preset attribute then needs to complete in system start-up, and when normally running, can be configured, therefore, In this embodiment, before setting system property, either the value of sys.device.storage.low is set to true, also It is that the value of sys.device.storage.low is set to false, all can obtain system property sys.boot_ before this The value of completed, completes the running status after starting to judge whether system is currently at.It is to start in confirmation system After the completion of running status when, then preset attribute sys.device.storage.low is configured.
The present invention also proposes a kind of storage space management device of data partition.
With reference to shown in Fig. 3, it is that the functional module of the storage space management device first embodiment of data partition of the present invention is shown It is intended to.
In this embodiment, the storage space management device of this data partition includes:
Zoning monitoring module 10, for the residual memory space according to the first predeterminated frequency detection data subregion;
And, when described residual memory space is detected less than the first predetermined threshold value, detect according to the second predeterminated frequency Residual memory space in data partition, wherein, described second predeterminated frequency is more than described first predeterminated frequency;
The device that the present embodiment proposes can be to have the mobile terminals such as mobile phone, the panel computer of intelligent operating system, with Under so that the mobile phone of android operating system is installed as a example illustrate.Each work(that the device that this embodiment proposes is comprised Can module be used for executing different functions.
Various applications are provided with mobile phone, these apply in running it may appear that to data partition, i.e. handss The memory space of machine, the situation of write data, such as download pictures, download file etc..Zoning monitoring module 10 periodically logarithm Size according to the residual memory space of subregion is detected, for example, it is possible to be detected according to the first predeterminated frequency, when detecting Residual memory space is less than during the first predetermined threshold value it is believed that current residual memory space is not enough, now, zoning monitoring mould Block 10 can send action_device_storage_low broadcast, to inform other functional modules, current memory space Not enough, in order to prevent occurring space completely to lead to application to run error during write data, accelerate remaining storage The detection in space, detects to the residual memory space of data partition according to the second predeterminated frequency.
Generally, the size of the first predetermined threshold value can be arranged according to the total size of the data partition of mobile phone, example As, could be arranged to data partition total size 10% to 500m between;First predeterminated frequency can be every 40 seconds to 1 minute Once, the second predeterminated frequency is less than the first predeterminated frequency for detection, for example, it may be every 10-30 second is detected once.
Nformation alert module 20, for when described residual memory space is detected less than the second predetermined threshold value, display is deposited The full warning message in storage space, wherein, described second predetermined threshold value is less than described first predetermined threshold value;
Interface display module 30, for when described residual memory space is detected less than the second predetermined threshold value, display should Use data management interface, so that user carries out data dump to discharge memory space based on described application data administration interface.
When residual memory space is detected less than the second predetermined threshold value according to the second predeterminated frequency, nformation alert module 20 The full warning message of display memory space, interface display module 30 shows application data administration interface, and user can be based on should Apply this data management interface, remove application data, to discharge memory space, in prior art, send warning letter in informing Breath, user is not easy it is noted that the mode of the present embodiment proposition, with respect to existing advice method, can make user intuitively see To the warning that space is full, and rapidly application data is cleared up it is not necessary to user goes turn-on data to manage again manually Application, carries out the cleaning of data in time.
Now, zoning monitoring module 10 sends action_device_storage_not_full broadcast, to inform other Functional module, current memory space is full.
In the present embodiment, the second predetermined threshold value is less than the first predetermined threshold value, and alternatively, the second predetermined threshold value is preset for first The 1/4 of threshold value.
Further, as a kind of embodiment, nformation alert module 20, when residual memory space is not enough, sends storage The warning message of insufficient space, interface display module 30 show application data administration interface, now although residual memory space still There is surplus, but be as writing the carrying out of data, surplus can be less and less, carry out to allow users to early application data Cleaning, to discharge memory space, when residual memory space is detected less than the first predetermined threshold value, display memory space inadequate Warning message and application data administration interface, so that user carries out data scrubbing to release based on described application data administration interface Put memory space.
The storage space management device of the data partition that the present embodiment proposes, in the process writing data to data partition In, according to the residual memory space of certain frequency detecting data partition, preset less than first when residual memory space is detected During threshold value, the frequency of residual memory space in increase detection data subregion, the frequency of optimizing detection residual memory space size, and The early situation finding that subregion residual memory space is not enough, when residual memory space is detected less than the second predetermined threshold value, explanation Now the residual memory space of data partition seldom, if there being a certain amount of data write again, may result in data and dividing Area is fully written, and then has influence on the normal operation of application, therefore, is less than the second predetermined threshold value residual memory space is detected When, that is, give a warning information, shows application data administration interface simultaneously, so that user is entered based on described application data administration interface Row data dump to discharge memory space, can prevent to occur memory space quickly from deficiency to full up and lead to the application cannot be just Situation about often running.
The second embodiment of the storage space management device of data partition of the present invention is proposed based on first embodiment.Reference picture Shown in 4, in the present embodiment, the storage space management device of this data partition also includes:
System property module 40, for when described residual memory space is detected less than the second predetermined threshold value, setting is pre- If the value of attribute, the residual memory space of described data partition is labeled as less than the second predetermined threshold value;
Data read-write module 50, for call every time write function to described data partition write data before, according to institute The value stating preset attribute judges whether the residual memory space of described data partition is less than the second predetermined threshold value;
Data read-write module 50 is additionally operable to: if residual memory space is less than the second predetermined threshold value, sends to application layer and reads Write abnormal information;And, if residual memory space is more than or equal to described second predetermined threshold value, calls and write function Write data to described data partition.
The present embodiment provides a preset attribute, and alternatively, this preset attribute is sys.device.storage.low, and it is write from memory Recognizing value is false, when residual memory space is detected less than the second predetermined threshold value, by sys.device.storage.low's Value is set to true, and that is, current memory space is not enough.
Further, after due to the cleaning of user's application data, memory space is released, therefore, described surplus when detecting When remaining memory space is more than or equal to the second predetermined threshold value, system property module 40 arranges the value of described preset attribute, will The amount of storage of described data partition is labeled as more than or equal to described second predetermined threshold value.That is, residue is being detected When memory space is more than or equal to the second predetermined threshold value, system property module 40 is by the value of sys.device.storage.low It is set to false, that is, current residual storage space is sufficient.
Because most android application written documents is all by fileoutputstream, output The java io class such as streamwriter, filewriter is realizing, and these classes eventually call iobr idge.java Write function, before data read-write module 50 is when each call function posix.write writes data toward subregion, increase right The value of above-mentioned preset attribute judges, the value according to this preset attribute come judge current data partition residual memory space whether Less than the second predetermined threshold value.If the value of sys.device.storage.low is true, data read-write module 50 is to application layer Send read-write abnormal, if the value of sys.device.storage.low is false, data read-write module 50 call function Posix.write continues executing with write operation.System property module 40, after setting property, can be shared to shared drive, therefore, For data read-write module 50, judge data partition free space whether less than the using the mode obtaining preset attribute value For two predetermined threshold value are than the directly free space of calculating data partition, drastically increase efficiency.
Proposed based on first embodiment or second embodiment data partition of the present invention storage space management device the Three embodiments.With reference to shown in Fig. 5, in the present embodiment, the storage space management device of this data partition also includes:
Condition judgment module 60, for when described residual memory space is detected less than the second predetermined threshold value, judging system Whether system is currently in the state completing to start;
System property module 40 is additionally operable to: if system is currently at the state completing to start, the value of preset attribute is set, So that the residual memory space of described data partition to be labeled as less than the second predetermined threshold value.
In the present embodiment, the value by arranging system property sys.boot_completed represents whether system has opened Move and complete, if it is confirmed that system is the running status after the completion of starting, then system property module 40 setting preset attribute Sys.device.storage.low is true, otherwise is then set to false.
Because mobile phone, because of reasons such as the settings applied, the feelings that system restarts during writing data Condition, and the value arranging preset attribute then needs to complete in system start-up, and when normally running, can be configured, therefore, In this embodiment, before setting system property, either the value of sys.device.storage.low is set to true, also It is that the value of sys.device.storage.low is set to false, condition judgment module 60 all can obtain system before this The value of attribute sys.boot_completed, completes the running status after starting to judge whether system is currently at.True When recognizing the running status that system is after the completion of starting, system property module 40 is again to preset attribute Sys.device.storage.low is configured.
These are only the preferred embodiments of the present invention, not thereby limit the present invention the scope of the claims, every using this Equivalent structure or equivalent flow conversion that bright description and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of memory space management of data partition is it is characterised in that the storage space management side of described data partition Method includes:
Residual memory space according to the first predeterminated frequency detection data subregion;
When described residual memory space is detected less than the first predetermined threshold value, according in the second predeterminated frequency detection data subregion Residual memory space, wherein, described second predeterminated frequency is more than described first predeterminated frequency;
When described residual memory space is detected and being less than the second predetermined threshold value, the display full warning message of memory space and Application data administration interface, so that user carries out data dump to discharge memory space based on described application data administration interface, Wherein, described second predetermined threshold value is less than described first predetermined threshold value.
2. the memory space management of data partition according to claim 1 is it is characterised in that described data partition Memory space management also includes:
When described residual memory space is detected less than the second predetermined threshold value, the value of setting preset attribute, by described data The residual memory space of subregion is labeled as less than the second predetermined threshold value;
Call every time write function to described data partition write data before, described number is judged according to the value of described preset attribute Whether the residual memory space according to subregion is less than the second predetermined threshold value;
If residual memory space is less than the second predetermined threshold value, send the abnormal information of read-write to application layer;
If residual memory space is more than or equal to described second predetermined threshold value, calls and write function and write to described data partition Data.
3. the memory space management of data partition according to claim 1 and 2 is it is characterised in that described data is divided The memory space management in area also includes:
When detect described residual memory space amount be less than the first predetermined threshold value when, display memory space inadequate warning message with And application data administration interface, so that user carries out data dump to discharge storage sky based on described application data administration interface Between.
4. the memory space management of data partition according to claim 2 is it is characterised in that described data partition Memory space management also includes:
When described residual memory space is detected less than the second predetermined threshold value, judge whether system is currently in and complete startup State;
If system is currently at the state completing to start, the value of execution setting preset attribute, remaining described data partition Balance storage free token is less than the step of the second predetermined threshold value.
5. the memory space management of data partition according to claim 2 is it is characterised in that described pre- according to second If after the step of residual memory space in frequency detecting data partition, the memory space management of described data partition also wraps Include:
The value of described preset attribute, when described residual memory space is detected more than or equal to the second predetermined threshold value, is set, So that the amount of storage of described data partition to be labeled as more than or equal to described second predetermined threshold value.
6. a kind of storage space management device of data partition is it is characterised in that the storage space management of described data partition fills Put including:
Zoning monitoring module, for the residual memory space according to the first predeterminated frequency detection data subregion;
And, when described residual memory space is detected less than the first predetermined threshold value, according to the second predeterminated frequency detection data Residual memory space in subregion, wherein, described second predeterminated frequency is more than described first predeterminated frequency;
Nformation alert module, for when described residual memory space is detected less than the second predetermined threshold value, showing memory space Full warning message, wherein, described second predetermined threshold value is less than described first predetermined threshold value;
Interface display module, for when described residual memory space is detected less than the second predetermined threshold value, showing application data Administration interface, so that user carries out data dump to discharge memory space based on described application data administration interface.
7. the storage space management device of data partition according to claim 6 is it is characterised in that described data partition Storage space management device also includes:
System property module, for when described residual memory space is detected less than the second predetermined threshold value, arranging preset attribute Value, the residual memory space of described data partition is labeled as less than the second predetermined threshold value;
Data read-write module, for call every time write function to described data partition write data before, according to described default The value of attribute judges whether the residual memory space of described data partition is less than the second predetermined threshold value;And, if remaining storage is empty Between be less than the second predetermined threshold value, then send the abnormal information of read-write to application layer;If residual memory space is more than or waits In described second predetermined threshold value, then call and write function to described data partition write data.
8. the storage space management device of the data partition according to claim 6 or 7 is it is characterised in that described information carries Show that module is additionally operable to: when described residual memory space amount is detected less than the first predetermined threshold value, display memory space inadequate Warning message;
Described interface display module is additionally operable to: when described residual memory space amount is detected less than the first predetermined threshold value, display Application data administration interface, so that user carries out data dump to discharge memory space based on described application data administration interface.
9. the storage space management device of data partition according to claim 7 is it is characterised in that described data partition Storage space management device also includes:
Condition judgment module, for when described residual memory space is detected less than the second predetermined threshold value, judging that system is current Whether it is in the state completing to start;
Described system property module is additionally operable to: if system is currently at the state completing to start, the value of preset attribute is set, with The residual memory space of described data partition is labeled as less than the second predetermined threshold value.
10. the storage space management device of data partition according to claim 7 is it is characterised in that described system property Module is additionally operable to: when described residual memory space is detected more than or equal to the second predetermined threshold value, arranges described default genus The value of property, the amount of storage of described data partition is labeled as more than or equal to described second predetermined threshold value.
CN201610665783.4A 2016-08-12 2016-08-12 Storage space management method and device for data partition Pending CN106354601A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610665783.4A CN106354601A (en) 2016-08-12 2016-08-12 Storage space management method and device for data partition
PCT/CN2016/112266 WO2018028121A1 (en) 2016-08-12 2016-12-27 Method and device for managing storage space of data partition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610665783.4A CN106354601A (en) 2016-08-12 2016-08-12 Storage space management method and device for data partition

Publications (1)

Publication Number Publication Date
CN106354601A true CN106354601A (en) 2017-01-25

Family

ID=57843908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610665783.4A Pending CN106354601A (en) 2016-08-12 2016-08-12 Storage space management method and device for data partition

Country Status (2)

Country Link
CN (1) CN106354601A (en)
WO (1) WO2018028121A1 (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951195A (en) * 2017-04-07 2017-07-14 上海联影医疗科技有限公司 The processing method and medical image system of the memory capacity of medical image system
CN107182151A (en) * 2017-07-25 2017-09-19 安徽荣旭信息科技有限公司 A kind of power plant lamp control system with speech recognition
CN107948671A (en) * 2017-11-23 2018-04-20 莫宝兰 A kind of streaming media control device and method
CN108121783A (en) * 2017-12-19 2018-06-05 深圳创维数字技术有限公司 A kind of automatic cleaning method, device, computer and storage medium for storing data
CN108282690A (en) * 2018-01-26 2018-07-13 广东欧珀移动通信有限公司 A kind of Internet video method for down loading, device and computer readable storage medium
CN108959597A (en) * 2018-07-12 2018-12-07 深圳Tcl新技术有限公司 User's space guard method, device, equipment and display terminal storage medium
CN109710489A (en) * 2018-12-17 2019-05-03 北京无线电计量测试研究所 A kind of system and method for real-time monitoring computer memory space state
CN111970678A (en) * 2020-08-06 2020-11-20 Oppo(重庆)智能科技有限公司 Method and device for grabbing air interface data packet, electronic equipment and storage medium
CN112182652A (en) * 2020-09-27 2021-01-05 广州朗国电子科技有限公司 Method and device for protecting data partition from being fully written, storage medium and terminal equipment
CN113296681A (en) * 2020-02-24 2021-08-24 合肥杰发科技有限公司 Management method of storage space, terminal and device with storage function

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447207A (en) * 2008-12-30 2009-06-03 深圳华为通信技术有限公司 Media recording method and device thereof
US20130326146A1 (en) * 2012-05-30 2013-12-05 Toshiba Solutions Corporation Information processing apparatus, memory apparatus, and data management method
CN103577348A (en) * 2013-10-09 2014-02-12 广东欧珀移动通信有限公司 Method and mobile device for automatically counting application cache size and reminding user
CN104035769A (en) * 2014-05-30 2014-09-10 北京金山安全软件有限公司 Processing method and device for space shortage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850487A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Information display method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447207A (en) * 2008-12-30 2009-06-03 深圳华为通信技术有限公司 Media recording method and device thereof
US20130326146A1 (en) * 2012-05-30 2013-12-05 Toshiba Solutions Corporation Information processing apparatus, memory apparatus, and data management method
CN103577348A (en) * 2013-10-09 2014-02-12 广东欧珀移动通信有限公司 Method and mobile device for automatically counting application cache size and reminding user
CN104035769A (en) * 2014-05-30 2014-09-10 北京金山安全软件有限公司 Processing method and device for space shortage

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106951195A (en) * 2017-04-07 2017-07-14 上海联影医疗科技有限公司 The processing method and medical image system of the memory capacity of medical image system
CN107182151A (en) * 2017-07-25 2017-09-19 安徽荣旭信息科技有限公司 A kind of power plant lamp control system with speech recognition
CN107948671A (en) * 2017-11-23 2018-04-20 莫宝兰 A kind of streaming media control device and method
CN108121783A (en) * 2017-12-19 2018-06-05 深圳创维数字技术有限公司 A kind of automatic cleaning method, device, computer and storage medium for storing data
CN108282690A (en) * 2018-01-26 2018-07-13 广东欧珀移动通信有限公司 A kind of Internet video method for down loading, device and computer readable storage medium
CN108959597A (en) * 2018-07-12 2018-12-07 深圳Tcl新技术有限公司 User's space guard method, device, equipment and display terminal storage medium
CN109710489A (en) * 2018-12-17 2019-05-03 北京无线电计量测试研究所 A kind of system and method for real-time monitoring computer memory space state
CN113296681A (en) * 2020-02-24 2021-08-24 合肥杰发科技有限公司 Management method of storage space, terminal and device with storage function
CN111970678A (en) * 2020-08-06 2020-11-20 Oppo(重庆)智能科技有限公司 Method and device for grabbing air interface data packet, electronic equipment and storage medium
CN111970678B (en) * 2020-08-06 2023-04-28 Oppo(重庆)智能科技有限公司 Method and device for capturing air interface data packet, electronic equipment and storage medium
CN112182652A (en) * 2020-09-27 2021-01-05 广州朗国电子科技有限公司 Method and device for protecting data partition from being fully written, storage medium and terminal equipment
CN112182652B (en) * 2020-09-27 2021-10-08 广州朗国电子科技有限公司 Method and device for protecting data partition from being fully written, storage medium and terminal equipment

Also Published As

Publication number Publication date
WO2018028121A1 (en) 2018-02-15

Similar Documents

Publication Publication Date Title
CN106354601A (en) Storage space management method and device for data partition
CN109726072B (en) WebLogic server monitoring and alarming method, device and system and computer storage medium
CN106095551B (en) Method and device for displaying media files
US20070005926A1 (en) Method for managing a memory in mobile terminal
CN104133709B (en) The upgrade method and device of embedded system
US20100277326A1 (en) Method and system for monitoring portable communication devices
CN103164229A (en) Method and device for clearing progresses of mobile terminal
CN104994080B (en) Information processing method and system and electronic equipment
US20100223668A1 (en) Apparatus and method for managing terminal users
CN106708616A (en) Process control method and process control device
CN108804207A (en) A kind of process management-control method based on android system
CN106663164A (en) System and method for improved security for a processor in a portable computing device (pcd)
CN106844026A (en) A kind of method and system for clearing up terminal device process
CN115185777A (en) Abnormity detection method and device, readable storage medium and electronic equipment
CN105743981B (en) Monitoring method, monitoring terminal and monitoring system
CN111625383A (en) Process abnormal event processing method and device, electronic equipment and storage medium
CN110445932B (en) Abnormal card dropping processing method and device, storage medium and terminal
CN110321224B (en) Terminal memory cleaning method and device and computer readable storage medium
CN106557404B (en) Application control method and mobile terminal
CN106843636A (en) A kind of quick method and mobile device for checking notice
CN106022103A (en) Method and apparatus for preventing application from being started through pushing platform component
CN104036188A (en) Android malicious program detection method, device and equipment
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
CN106941569B (en) Display data processing method and device
CN113412480B (en) Mounting processing method, mounting processing device, electronic equipment and computer readable 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: 20170125