CN103324576A - Memory space changing method and electronic equipment - Google Patents
Memory space changing method and electronic equipment Download PDFInfo
- Publication number
- CN103324576A CN103324576A CN2012100809407A CN201210080940A CN103324576A CN 103324576 A CN103324576 A CN 103324576A CN 2012100809407 A CN2012100809407 A CN 2012100809407A CN 201210080940 A CN201210080940 A CN 201210080940A CN 103324576 A CN103324576 A CN 103324576A
- Authority
- CN
- China
- Prior art keywords
- subregion
- memory space
- residual memory
- space
- storage space
- 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
Links
Images
Landscapes
- Memory System (AREA)
Abstract
The invention discloses a memory space changing method and electronic equipment. The method is applied to the electronic equipment with a plurality of partitions, and each partition has at least one adjacent partition. The method comprises the steps as follows: acquiring the information of residual memory spaces of all the partitions of the electronic equipment; judging whether a first partition exists or not, and acquiring a first judgment result, wherein the first partition is the partition of which the residual memory space is smaller than a first preset threshold; among the rest partitions, determining the partition with the maximum residual memory space as a second partition when the first judgment result shows that the first partition exists; determining a to-be-merged memory space in the second partition, wherein the to-be-merged memory space is part or all of the residual memory space of the second partition; merging the to-be-merged memory space into the first partition. On account of the adoption of the method or the electronic equipment provided by the invention, the function of automatic memory space regulation can be realized.
Description
Technical field
The present invention relates to field of data storage, particularly relate to a kind of storage space change method and electronic equipment.
Background technology
Along with the high speed development of infotech, the data volume that electronic equipment need to be stored is also increasing.Present most of user's fdisk dividing mode is: divide less space as the space of system partitioning (for example C dish), divide larger space as nonsystematic subregion (for example D dish, E dish).
But the current overwhelming majority downloads software can be arranged on system partitioning with the default storage address of downloaded resources.When the residual memory space of system partitioning is not enough, will affect the travelling speed of electronic equipment.
Summary of the invention
The purpose of this invention is to provide a kind of storage space change method and electronic equipment, can change the storage space of electronic equipment, when the remaining space of system partitioning during less than predetermined threshold value, the space of other subregions can be merged to system partitioning, resolution system divides degradation problem under the electronic equipment travelling speed that the Division deficiency causes.
For achieving the above object, the invention provides following scheme:
A kind of storage space change method is applied to have the electronic equipment of a plurality of subregions, and each described subregion has a subregion adjacent with self at least,
Described method comprises:
Obtain the residual memory space information of all subregions of described electronic equipment;
Judge whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
When described the first judged result shows existence the first subregion, determine the second subregion of residual memory space maximum in other subregions except the first subregion;
From the second subregion, determine to merge storage space, the residual memory space that described merging storage space is described the second subregion some or all of;
Described merging storage space is incorporated into described the first subregion.
Optionally, also comprise: when described the first judged result shows existence the first subregion, further judge in described the first subregion whether comprise system partitioning, obtain the second judged result;
When described the second judged result shows when not comprising system partitioning in described the first subregion, cancel follow-up storage space change operation.
Optionally, described the second subregion of determining residual memory space maximum in other subregions except the first subregion comprises:
The traversal residual memory space is greater than the subregion of the first predetermined threshold value;
Determine the subregion of residual memory space maximum;
The described storage space that determine to merge from described the second subregion comprises:
From the remaining space of described subregion, choose the space of preset ratio as merging storage space.
Optionally, described the second subregion of determining residual memory space maximum in other subregions except the first subregion comprises:
Search residual memory space greater than the subregion of the second predetermined threshold value;
When residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value, describedly from described the second subregion, determine to merge storage space, comprising:
From the subregion of each residual memory space greater than the second predetermined threshold value, choose the space of preset ratio as merging storage space.
Optionally, the described storage space that determine to merge from the second subregion comprises:
Judge that the residual memory space of described the second subregion whether greater than the 3rd predetermined threshold value, obtains the 3rd judged result;
When described the 3rd judged result represents described residual memory space from described the second subregion greater than the 3rd predetermined threshold value, from the second subregion, choose the residual memory space of described the 3rd predetermined threshold value size as described merging storage space.
A kind of electronic equipment, described electronic equipment has a plurality of subregions, and each described subregion has a subregion adjacent with self at least, and described electronic equipment comprises:
The residual memory space acquiring unit is for the residual memory space information of all subregions that obtain described electronic equipment;
The first judging unit, being used for judging whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
The second subregion determining unit is used for determining the second subregion of residual memory space maximum in other subregions except the first subregion when described the first judged result shows existence the first subregion;
Merge the storage space determining unit, be used for determining to merge storage space from the second subregion, the residual memory space that described merging storage space is described the second subregion some or all of;
Merge cells is used for described merging storage space is incorporated into described the first subregion.
Optionally, also comprise:
The second judging unit is used for further judging in described the first subregion whether comprise system partitioning when described the first judged result shows existence the first subregion, obtains the second judged result;
Change operation cancellation unit is used for when described the second judged result shows that described the first subregion does not comprise system partitioning, cancels follow-up storage space change operation.
Optionally, described the second subregion determining unit comprises:
The traversal subelement is used for the traversal residual memory space greater than the subregion of the first predetermined threshold value;
Maximum subregion is determined subelement, is used for determining the subregion of residual memory space maximum;
Described merging storage space determining unit comprises:
First determines subelement, is used for choosing the space of preset ratio as merging storage space from the remaining space of described subregion.
Optionally, described the second subregion determining unit comprises:
Search subelement, be used for searching residual memory space greater than the subregion of the second predetermined threshold value;
Described merging storage space determining unit comprises:
Second determines subelement, is used for from the subregion of each residual memory space greater than the second predetermined threshold value, choosing the space of preset ratio as the merging storage space when residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value.
Optionally, described merging storage space determining unit comprises:
The 3rd judgment sub-unit, whether the residual memory space that is used for judging described the second subregion obtains three judged result greater than the 3rd predetermined threshold value;
The 3rd determines subelement, be used for when described the 3rd judged result represents described residual memory space from described the second subregion greater than the 3rd predetermined threshold value, from the second subregion, choosing the residual memory space of described the 3rd predetermined threshold value size as described merging storage space.
According to specific embodiment provided by the invention, the invention discloses following technique effect:
Storage space change method of the present invention and electronic equipment, by judging whether to exist residual memory space less than the first subregion of predetermined threshold value, the remaining space of other subregions is incorporated into described the first subregion, can realize the automatic regulation function of storage space, the space that is about to the more subregion of remaining space is incorporated into the subregion of residual memory space deficiency, when the subregion of residual memory space deficiency is system partitioning, can resolution system divide degradation problem under the electronic equipment travelling speed that the Division deficiency causes.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use among the embodiment, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the process flow diagram of storage space change embodiment of the method 1 of the present invention;
Fig. 2 is the process flow diagram of storage space change embodiment of the method 2 of the present invention;
Fig. 3 is the process flow diagram of storage space change embodiment of the method 3 of the present invention;
Fig. 4 is the process flow diagram of storage space change embodiment of the method 4 of the present invention;
Fig. 5 is the structural drawing of electronic equipment embodiment 1 of the present invention;
Fig. 6 is the structural drawing of electronic equipment embodiment 2 of the present invention;
Fig. 7 is the structural drawing of electronic equipment embodiment 3 of the present invention;
Fig. 8 is the structural drawing of electronic equipment embodiment 4 of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Storage space change method of the present invention is applied to have the electronic equipment of a plurality of subregions, and each described subregion has a subregion adjacent with self at least.
Concrete, described electronic equipment can be desktop computer, notebook computer, smart mobile phone etc.Take desktop computer as example, a plurality of subregions can be the subregions of difference called after C, D, E, F, and four subregions are according to necessarily arranged sequentially.Wherein, adjacent with the C district is the D district, and adjacent with the D district is C district and E district, and the rest may be inferred.
Fig. 1 is the process flow diagram of storage space change embodiment of the method 1 of the present invention.As shown in Figure 1, the method comprises:
Step 101: the residual memory space information of obtaining all subregions of described electronic equipment;
Step 102: judge whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
The first predetermined threshold value can be set flexibly according to actual conditions.Suppose that the first predetermined threshold value is 500Mb, residual memory space is exactly the first subregion less than the subregion of 500Mb so.Described the first subregion may be system partitioning, may not be system partitioning also.Described the first subregion can have a plurality of.
Step 103: when described the first judged result shows existence the first subregion, determine the second subregion of residual memory space maximum in other subregions except the first subregion;
Can obtain the residual memory space information of other subregions by the mode of other subregions of traversal, then the size of each residual memory space be compared, obtain the subregion of residual memory space maximum as second subregion.The second subregion can be the subregion adjacent with the first subregion, also can be and the non-conterminous subregion of the first subregion.
Step 104: from the second subregion, determine to merge storage space, the residual memory space that described merging storage space is described the second subregion some or all of;
Can from the second subregion, divide the space of fixed size as merging storage space, also can be according to preset ratio, the space that division meets the preset ratio size in the residual memory space from the second subregion is as merging storage space, and perhaps the whole remaining spaces with the second subregion are defined as merging storage space.
Step 105: described merging storage space is incorporated into described the first subregion.
After the merging, the storage space of the first subregion will increase, and the storage space of the second subregion will reduce.
In the present embodiment, by judging whether to exist residual memory space less than the first subregion of predetermined threshold value, the remaining space of other subregions is incorporated into described the first subregion, can realize the automatic regulation function of storage space, the space that is about to the more subregion of remaining space is incorporated into the subregion of residual memory space deficiency, when the subregion of residual memory space deficiency is system partitioning, can resolution system divide degradation problem under the electronic equipment travelling speed that the Division deficiency causes.
Fig. 2 is the process flow diagram of storage space change embodiment of the method 2 of the present invention.As shown in Figure 2, the method comprises:
Step 201: the residual memory space information of obtaining all subregions of described electronic equipment;
Step 202: judge whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
Step 203: when described the first judged result shows existence the first subregion, judge in described the first subregion whether comprise system partitioning, obtain the second judged result;
Step 204: when described the second judged result shows when not comprising system partitioning in described the first subregion, cancel follow-up storage space change operation;
Step 205: when described the second judged result shows when comprising system partitioning in described the first subregion, the traversal residual memory space is greater than the subregion of the first predetermined threshold value;
Step 206: the subregion of determining the residual memory space maximum;
Step 207: from the remaining space of described subregion, choose the space of preset ratio as merging storage space;
For example, preset ratio can be 50%.The remaining space of supposing described subregion is 2G, so just can choose the space of 1G size as merging storage space.
Step 208: described merging storage space is incorporated into described the first subregion.
In the present embodiment, only have when described the second judged result to show when comprising system partitioning in described the first subregion, just carry out the operation of change storage space.And can determine to merge storage space according to preset ratio.
Fig. 3 is the process flow diagram of storage space change embodiment of the method 3 of the present invention.As shown in Figure 3, the method comprises:
Step 301: the residual memory space information of obtaining all subregions of described electronic equipment;
Step 302: judge whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
Step 303: when described the first judged result shows existence the first subregion, judge in described the first subregion whether comprise system partitioning, obtain the second judged result;
Step 304: when described the second judged result shows when not comprising system partitioning in described the first subregion, cancel follow-up storage space change operation;
Step 305: search residual memory space greater than the subregion of the second predetermined threshold value when comprising system partitioning in described the first subregion when described the second judged result shows;
The second predetermined threshold value is a boundary.When the residual memory space of certain subregion during greater than the second predetermined threshold value, represent that this subregion has many residual memory spaces and can be allocated to the first subregion; When the residual memory space of certain subregion during less than the second predetermined threshold value, represent that the residual memory space of this subregion is less, be not enough to be allocated to the first subregion.
Step 306: when residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value, from the subregion of each residual memory space greater than the second predetermined threshold value, choose the space of preset ratio as merging storage space;
For example, the residual memory space of D, two subregions of E is respectively 2G and 4G all greater than the second predetermined threshold value, just can altogether select so the merging storage space of 3G according to preset ratio (for example 50%).
Step 307: described merging storage space is incorporated into described the first subregion.
In the present embodiment, when residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value, can from the subregion of each residual memory space greater than the second predetermined threshold value, choose the space of preset ratio as merging storage space, utilize to a greater degree the storage space of electronic equipment.
Fig. 4 is the process flow diagram of storage space change embodiment of the method 4 of the present invention.As shown in Figure 4, the method comprises:
Step 401: the residual memory space information of obtaining all subregions of described electronic equipment;
Step 402: judge whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
Step 403: when described the first judged result shows existence the first subregion, judge in described the first subregion whether comprise system partitioning, obtain the second judged result;
Step 404: when described the second judged result shows when not comprising system partitioning in described the first subregion, cancel follow-up storage space change operation;
Step 405: when described the second judged result shows when comprising system partitioning in described the first subregion, determine the second subregion of residual memory space maximum in other subregions except the first subregion;
Step 406: judge that the residual memory space of described the second subregion whether greater than the 3rd predetermined threshold value, obtains the 3rd judged result;
The 3rd predetermined threshold value can represent that system default is allocated to the residual memory space size of the first subregion.Step 406 is exactly to judge whether the residual memory space size of the second subregion is enough to mark off the merging storage space of the 3rd predetermined threshold value.
Step 407: when described the 3rd judged result represents described residual memory space from described the second subregion greater than the 3rd predetermined threshold value, from the second subregion, choose the residual memory space of described the 3rd predetermined threshold value size as described merging storage space;
Step 408: described merging storage space is incorporated into described the first subregion.
The difference of the present embodiment and previous embodiment is, no longer determine to merge the size of storage space according to preset ratio, but the residual memory space that directly selects the 3rd predetermined threshold value size from the residual memory space of the second subregion is incorporated into the first subregion as merging storage space.
The invention also discloses a kind of electronic equipment.Described electronic equipment has a plurality of subregions, and each described subregion has a subregion adjacent with self at least.
Concrete, described electronic equipment can be desktop computer, notebook computer, smart mobile phone etc.Take desktop computer as example, a plurality of subregions can be the subregions of difference called after C, D, E, F, and four subregions are according to necessarily arranged sequentially.Wherein, adjacent with the C district is the D district, and adjacent with the D district is C district and E district, and the rest may be inferred.
Fig. 5 is the structural drawing of electronic equipment embodiment 1 of the present invention.As shown in Figure 5, described electronic equipment comprises:
Residual memory space acquiring unit 501 is for the residual memory space information of all subregions that obtain described electronic equipment;
The first judging unit 502, being used for judging whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
The second subregion determining unit 503 is used for determining the second subregion of residual memory space maximum in other subregions except the first subregion when described the first judged result shows existence the first subregion;
Merge storage space determining unit 504, be used for determining to merge storage space from the second subregion, the residual memory space that described merging storage space is described the second subregion some or all of;
Merge cells 505 is used for described merging storage space is incorporated into described the first subregion.
In the present embodiment, by judging whether to exist residual memory space less than the first subregion of predetermined threshold value, the remaining space of other subregions is incorporated into described the first subregion, can realize the automatic regulation function of storage space, the space that is about to the more subregion of remaining space is incorporated into the subregion of residual memory space deficiency, when the subregion of residual memory space deficiency is system partitioning, can resolution system divide degradation problem under the electronic equipment travelling speed that the Division deficiency causes.
Fig. 6 is the structural drawing of electronic equipment embodiment 2 of the present invention.As shown in Figure 6, described electronic equipment comprises:
Residual memory space acquiring unit 501 is for the residual memory space information of all subregions that obtain described electronic equipment;
The first judging unit 502, being used for judging whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
The second judging unit 601 is used for further judging in described the first subregion whether comprise system partitioning when described the first judged result shows existence the first subregion, obtains the second judged result;
Change operation cancellation unit 602 is used for when described the second judged result shows that described the first subregion does not comprise system partitioning, cancels follow-up storage space change operation.
Maximum subregion is determined subelement 5032, is used for determining the subregion of residual memory space maximum;
Described traversal subelement 5031 and maximum subregion determine that subelement 5032 can be contained in described the second subregion determining unit 503.
First determines subelement 5041, is used for choosing the space of preset ratio as merging storage space from the remaining space of described subregion.
Described first determines subelement 5041, can be contained in the described merging storage space determining unit 504.
Merge cells 505 is used for described merging storage space is incorporated into described the first subregion.
In the present embodiment, only have when described the second judged result to show when comprising system partitioning in described the first subregion, just carry out the operation of change storage space.And can determine to merge storage space according to preset ratio.
Fig. 7 is the structural drawing of electronic equipment embodiment 3 of the present invention.As shown in Figure 7, described electronic equipment comprises:
Residual memory space acquiring unit 501 is for the residual memory space information of all subregions that obtain described electronic equipment;
The first judging unit 502, being used for judging whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
The second judging unit 601 is used for further judging in described the first subregion whether comprise system partitioning when described the first judged result shows existence the first subregion, obtains the second judged result;
Change operation cancellation unit 602 is used for when described the second judged result shows that described the first subregion does not comprise system partitioning, cancels follow-up storage space change operation.
The described subelement 5033 of searching can be contained in described the second subregion determining unit 503.
Second determines subelement 5042, is used for from the subregion of each residual memory space greater than the second predetermined threshold value, choosing the space of preset ratio as the merging storage space when residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value.
Described second determines subelement 5042, can be contained in the described merging storage space determining unit 504.
Merge cells 505 is used for described merging storage space is incorporated into described the first subregion.
In the present embodiment, when residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value, can from the subregion of each residual memory space greater than the second predetermined threshold value, choose the space of preset ratio as merging storage space, utilize to a greater degree the storage space of electronic equipment.
Fig. 8 is the structural drawing of electronic equipment embodiment 4 of the present invention.As shown in Figure 8, described electronic equipment comprises:
Residual memory space acquiring unit 501 is for the residual memory space information of all subregions that obtain described electronic equipment;
The first judging unit 502, being used for judging whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
The second judging unit 601 is used for further judging in described the first subregion whether comprise system partitioning when described the first judged result shows existence the first subregion, obtains the second judged result;
Change operation cancellation unit 602 is used for when described the second judged result shows that described the first subregion does not comprise system partitioning, cancels follow-up storage space change operation.
The second subregion determining unit 503 is used for determining the second subregion of residual memory space maximum in other subregions except the first subregion when described the first judged result shows existence the first subregion;
The 3rd judgment sub-unit 5043, whether the residual memory space that is used for judging described the second subregion obtains three judged result greater than the 3rd predetermined threshold value;
The 3rd determines subelement 5044, be used for when described the 3rd judged result represents described residual memory space from described the second subregion greater than the 3rd predetermined threshold value, from the second subregion, choosing the residual memory space of described the 3rd predetermined threshold value size as described merging storage space.
Described the 3rd judgment sub-unit 5043 and the 3rd is determined subelement 5044, can be contained in the described merging storage space determining unit 504.
Merge cells 505 is used for described merging storage space is incorporated into described the first subregion.
The difference of the present embodiment and previous embodiment is, no longer determine to merge the size of storage space according to preset ratio, but the residual memory space that directly selects the 3rd predetermined threshold value size from the residual memory space of the second subregion is incorporated into the first subregion as merging storage space.
At last, also need to prove, in this article, relational terms such as the first and second grades only is used for an entity or operation are separated with another entity or operational zone, and not necessarily requires or hint and have the relation of any this reality or sequentially between these entities or the operation.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby not only comprise those key elements so that comprise process, method, article or the equipment of a series of key elements, but also comprise other key elements of clearly not listing, or also be included as the intrinsic key element of this process, method, article or equipment.In the situation that not more restrictions, the key element that is limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware, but the former is better embodiment in a lot of situation.Based on such understanding, technical scheme of the present invention is to can embodying with the form of software product in whole or in part that background technology contributes, this computer software product can be stored in the storage medium, such as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
Each embodiment adopts the mode of going forward one by one to describe in this instructions, and what each embodiment stressed is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed electronic equipment of embodiment, because it is corresponding with the disclosed method of embodiment, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
Used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications.In sum, this description should not be construed as limitation of the present invention.
Claims (10)
1. a storage space change method is characterized in that, is applied to have the electronic equipment of a plurality of subregions, and each described subregion has a subregion adjacent with self at least,
Described method comprises:
Obtain the residual memory space information of all subregions of described electronic equipment;
Judge whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
When described the first judged result shows existence the first subregion, determine the second subregion of residual memory space maximum in other subregions except the first subregion;
From the second subregion, determine to merge storage space, the residual memory space that described merging storage space is described the second subregion some or all of;
Described merging storage space is incorporated into described the first subregion.
2. method according to claim 1 is characterized in that, also comprises: when described the first judged result shows existence the first subregion, further judge in described the first subregion whether comprise system partitioning, obtain the second judged result;
When described the second judged result shows when not comprising system partitioning in described the first subregion, cancel follow-up storage space change operation.
3. method according to claim 1 is characterized in that, described the second subregion of determining residual memory space maximum in other subregions except the first subregion comprises:
The traversal residual memory space is greater than the subregion of the first predetermined threshold value;
Determine the subregion of residual memory space maximum;
The described storage space that determine to merge from described the second subregion comprises:
From the remaining space of described subregion, choose the space of preset ratio as merging storage space.
4. method according to claim 1 is characterized in that, described the second subregion of determining residual memory space maximum in other subregions except the first subregion comprises:
Search residual memory space greater than the subregion of the second predetermined threshold value;
When residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value, describedly from described the second subregion, determine to merge storage space, comprising:
From the subregion of each residual memory space greater than the second predetermined threshold value, choose the space of preset ratio as merging storage space.
5. method according to claim 1 is characterized in that, the described storage space that determine to merge from the second subregion comprises:
Judge that the residual memory space of described the second subregion whether greater than the 3rd predetermined threshold value, obtains the 3rd judged result;
When described the 3rd judged result represents described residual memory space from described the second subregion greater than the 3rd predetermined threshold value, from the second subregion, choose the residual memory space of described the 3rd predetermined threshold value size as described merging storage space.
6. an electronic equipment is characterized in that, described electronic equipment has a plurality of subregions, and each described subregion has a subregion adjacent with self at least, and described electronic equipment comprises:
The residual memory space acquiring unit is for the residual memory space information of all subregions that obtain described electronic equipment;
The first judging unit, being used for judging whether to exist the first subregion, described the first subregion is that residual memory space obtains the first judged result less than the subregion of the first predetermined threshold value in described a plurality of subregion;
The second subregion determining unit is used for determining the second subregion of residual memory space maximum in other subregions except the first subregion when described the first judged result shows existence the first subregion;
Merge the storage space determining unit, be used for determining to merge storage space from the second subregion, the residual memory space that described merging storage space is described the second subregion some or all of;
Merge cells is used for described merging storage space is incorporated into described the first subregion.
7. electronic equipment according to claim 6 is characterized in that, also comprises:
The second judging unit is used for further judging in described the first subregion whether comprise system partitioning when described the first judged result shows existence the first subregion, obtains the second judged result;
Change operation cancellation unit is used for when described the second judged result shows that described the first subregion does not comprise system partitioning, cancels follow-up storage space change operation.
8. electronic equipment according to claim 6 is characterized in that, described the second subregion determining unit comprises:
The traversal subelement is used for the traversal residual memory space greater than the subregion of the first predetermined threshold value;
Maximum subregion is determined subelement, is used for determining the subregion of residual memory space maximum;
Described merging storage space determining unit comprises:
First determines subelement, is used for choosing the space of preset ratio as merging storage space from the remaining space of described subregion.
9. electronic equipment according to claim 6 is characterized in that, described the second subregion determining unit comprises:
Search subelement, be used for searching residual memory space greater than the subregion of the second predetermined threshold value;
Described merging storage space determining unit comprises:
Second determines subelement, is used for from the subregion of each residual memory space greater than the second predetermined threshold value, choosing the space of preset ratio as the merging storage space when residual memory space when being a plurality of greater than the subregion of the second predetermined threshold value.
10. electronic equipment according to claim 6 is characterized in that, described merging storage space determining unit comprises:
The 3rd judgment sub-unit, whether the residual memory space that is used for judging described the second subregion obtains three judged result greater than the 3rd predetermined threshold value;
The 3rd determines subelement, be used for when described the 3rd judged result represents described residual memory space from described the second subregion greater than the 3rd predetermined threshold value, from the second subregion, choosing the residual memory space of described the 3rd predetermined threshold value size as described merging storage space.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100809407A CN103324576A (en) | 2012-03-23 | 2012-03-23 | Memory space changing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2012100809407A CN103324576A (en) | 2012-03-23 | 2012-03-23 | Memory space changing method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103324576A true CN103324576A (en) | 2013-09-25 |
Family
ID=49193335
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2012100809407A Pending CN103324576A (en) | 2012-03-23 | 2012-03-23 | Memory space changing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103324576A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077234A (en) * | 2014-07-10 | 2014-10-01 | 三星电子(中国)研发中心 | Method and device for subarea dynamic adjustment of embedded system |
WO2016123888A1 (en) * | 2015-02-02 | 2016-08-11 | 宇龙计算机通信科技(深圳)有限公司 | Memory space scheduling method and multi-system terminal |
CN105988869A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Method for transferring application program, and terminal |
CN106293527A (en) * | 2016-08-05 | 2017-01-04 | 成都佳荣科技有限公司 | Data-storage system |
CN107239412A (en) * | 2017-06-19 | 2017-10-10 | 杭州宏杉科技股份有限公司 | Memory space collocation method, method for writing data and storage device based on Thin LUN |
CN109408222A (en) * | 2017-08-18 | 2019-03-01 | 深圳天珑无线科技有限公司 | Intelligent terminal and its space management, the device with store function |
CN110991880A (en) * | 2019-12-03 | 2020-04-10 | 任杉元 | Household power auditing system and method based on big data |
CN111858048A (en) * | 2020-07-17 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Method and equipment for adjusting storage space |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6185666B1 (en) * | 1999-09-11 | 2001-02-06 | Powerquest Corporation | Merging computer partitions |
CN1932779A (en) * | 2006-09-20 | 2007-03-21 | 华为技术有限公司 | Method and apparatus for updating data |
CN101515254A (en) * | 2008-02-18 | 2009-08-26 | 鸿富锦精密工业(深圳)有限公司 | System and method for managing storage space |
CN101546274A (en) * | 2008-03-27 | 2009-09-30 | 英业达股份有限公司 | Dynamically adjusting partition |
-
2012
- 2012-03-23 CN CN2012100809407A patent/CN103324576A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6185666B1 (en) * | 1999-09-11 | 2001-02-06 | Powerquest Corporation | Merging computer partitions |
CN1932779A (en) * | 2006-09-20 | 2007-03-21 | 华为技术有限公司 | Method and apparatus for updating data |
CN101515254A (en) * | 2008-02-18 | 2009-08-26 | 鸿富锦精密工业(深圳)有限公司 | System and method for managing storage space |
CN101546274A (en) * | 2008-03-27 | 2009-09-30 | 英业达股份有限公司 | Dynamically adjusting partition |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104077234A (en) * | 2014-07-10 | 2014-10-01 | 三星电子(中国)研发中心 | Method and device for subarea dynamic adjustment of embedded system |
CN104077234B (en) * | 2014-07-10 | 2017-03-08 | 三星电子(中国)研发中心 | A kind of dynamic adjusting method of embedded system subregion and device |
WO2016123888A1 (en) * | 2015-02-02 | 2016-08-11 | 宇龙计算机通信科技(深圳)有限公司 | Memory space scheduling method and multi-system terminal |
CN105988869A (en) * | 2015-02-12 | 2016-10-05 | 广东欧珀移动通信有限公司 | Method for transferring application program, and terminal |
CN105988869B (en) * | 2015-02-12 | 2019-06-11 | Oppo广东移动通信有限公司 | A kind of method and terminal shifting application program |
CN106293527A (en) * | 2016-08-05 | 2017-01-04 | 成都佳荣科技有限公司 | Data-storage system |
CN107239412A (en) * | 2017-06-19 | 2017-10-10 | 杭州宏杉科技股份有限公司 | Memory space collocation method, method for writing data and storage device based on Thin LUN |
CN107239412B (en) * | 2017-06-19 | 2020-07-07 | 杭州宏杉科技股份有限公司 | Storage space configuration method based on Thin-LUN, data writing method and storage equipment |
CN109408222A (en) * | 2017-08-18 | 2019-03-01 | 深圳天珑无线科技有限公司 | Intelligent terminal and its space management, the device with store function |
CN110991880A (en) * | 2019-12-03 | 2020-04-10 | 任杉元 | Household power auditing system and method based on big data |
CN111858048A (en) * | 2020-07-17 | 2020-10-30 | 苏州浪潮智能科技有限公司 | Method and equipment for adjusting storage space |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103324576A (en) | Memory space changing method and electronic equipment | |
CN105760184B (en) | A kind of method and apparatus of charging assembly | |
CN105550345A (en) | File operation method and apparatus | |
CN112395293B (en) | Database and table dividing method, database and table dividing device, database and table dividing equipment and storage medium | |
CN105426223A (en) | Application loading method and device | |
CN110297810B (en) | Stream data processing method and device and electronic equipment | |
CN104424240A (en) | Multi-table correlation method and system, main service node and computing node | |
CN106547870A (en) | Point table method and device of data base | |
CN103425435A (en) | Disk storage method and disk storage system | |
CN105447030A (en) | Index processing method and equipment | |
CN103605484A (en) | Data storage method and storage server | |
CN104679391A (en) | Icon display method and device of smart watch | |
CN103164492A (en) | File copying method between electronic devices and electronic devices | |
CN105243006A (en) | Flow layer setting method and apparatus based on flow experiment and flow experiment implementing method and apparatus | |
CN106796588B (en) | The update method and equipment of concordance list | |
CN103235682B (en) | A kind of method and device showing menu | |
CN105653317A (en) | Application downloading and installing method and terminal device | |
CN104536820A (en) | Method and device for operating multiple systems and terminal | |
CN107111549B (en) | File system management method and device | |
CN105094858A (en) | List control loading method and apparatus | |
CN103699552A (en) | Method and device for managing computer files, and equipment | |
CN104035665B (en) | A kind of method and apparatus that desktop icons are carried out with colors countenance | |
CN105163338B (en) | The group management method of a kind of playback equipment and terminal | |
CN106777285A (en) | The method and apparatus of label clustering | |
CN110765073A (en) | File management method, medium, device and apparatus for distributed storage system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20130925 |