CN101546274A - Dynamically adjusting partition - Google Patents
Dynamically adjusting partition Download PDFInfo
- Publication number
- CN101546274A CN101546274A CN200810088339A CN200810088339A CN101546274A CN 101546274 A CN101546274 A CN 101546274A CN 200810088339 A CN200810088339 A CN 200810088339A CN 200810088339 A CN200810088339 A CN 200810088339A CN 101546274 A CN101546274 A CN 101546274A
- Authority
- CN
- China
- Prior art keywords
- subregion
- space
- remaining space
- dynamic adjustment
- 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
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a method for dynamically adjusting a partition. The method comprises the following steps: monitoring whether the surplus space of a first partition of a nonvolatile storage device stays in an insufficient state; and additionally, executing an expansion program when the surplus space of the first partition stays in the insufficient state. The expansion program comprises a second partition for selecting the nonvolatile storage device and expands the space of the first partition by using the space of the second partition. Accordingly, the method can effectively use the space of the nonvolatile storage device.
Description
Technical field
The present invention relates to a kind of dynamic adjustment partitioned method, particularly a kind of dynamic adjustment partitioned method of Nonvolatile memory devices.
Background technology
In recent years, the shared space of Various types of data is more and more big, so the user also often faces the problem of the insufficient space of subregion in the hard disk.In general, when the user ran into the problem of partition space deficiency, traditional practice had following several:
Partial data in the practice one deletion subregion:
Though the practice one can effectively solve the problem of insufficient space, user regular meeting deletes significant data because of human negligence misses, and therefore loses more than gain on the contrary for the user.In addition, if when the data that user mistake is deleted are system data, also may cause system damage.
The practice two is burned onto the partial data of subregion in the CD, and the partial data in the deletion subregion:
Though the practice two can be improved the problem of deleting the nonsystematic data in the practice one by mistake, when still the data of deleting as if user's mistake are system data, still may cause system damage.In addition, in CD, when the data in the needs use CD, the user must spend quite a lot of time to remove to seek CD, and is quite inconvenient with data backup.
The practice three moves to another subregion with the partial data in the subregion:
Though the practice three can solve the problem that mistake is deleted data, but the practice three has another shortcoming, just can't move system data or resident program.If the user moves to another subregion with system data or resident program, can change the path of system data or resident program, and then the running of image system and resident program.
The partial data of four pairs of subregions of the practice compresses:
Though the practice four can solve the problem that mistake is deleted data, four spaces that can disengage of the practice are quite limited.In addition, when need use the data of compression, also must decompress to the data of compressing earlier, quite expend time in.
Summary of the invention
The purpose of this invention is to provide a kind of dynamic adjustment subregion, can effectively utilize the space of Nonvolatile memory devices.
The invention provides a kind of dynamic adjustment partitioned method, be applicable to Nonvolatile memory devices.Dynamically adjust partitioned method and comprise whether the remaining space of first subregion of monitoring Nonvolatile memory devices is in not enough state.In addition, when the remaining space of first subregion is in not enough state, then carry out expanding program.This expanding program comprises second subregion of selecting Nonvolatile memory devices, and utilizes the space of second subregion to expand the space of first subregion.
In one embodiment of this invention, the not enough state remaining space that comprises first subregion less than the shared ratio of the remaining space of the preset data amount or first subregion less than the preset ratio value.In another embodiment, expanding program comprises more whether prompting expands the space of first subregion, uses decision and whether interrupts expanding program.
In one embodiment of this invention, whether expanding program comprises more whether the remaining space of checking second subregion is in sufficient state, use decision and utilize the space of second subregion to expand the space of first subregion.In another embodiment, the sufficient state remaining space that comprises second subregion greater than the shared ratio of the remaining space of the preset data amount or second subregion greater than the preset ratio value.
In the present invention, whether the remaining space of first subregion of monitoring Nonvolatile memory devices is in not enough state.In addition, when the remaining space of first subregion is in not enough state, then carry out expanding program.This expanding program comprises second subregion of selecting Nonvolatile memory devices, and utilizes the space of second subregion to expand the space of first subregion.Thus, can effectively utilize the space of Nonvolatile memory devices.
Description of drawings
Fig. 1 is a kind of dynamic adjustment partitioned method process flow diagram of the first embodiment of the present invention.
Fig. 2 is a kind of dynamic adjustment partitioned method process flow diagram of the second embodiment of the present invention.
Fig. 3 is a kind of dynamic adjustment partitioned method process flow diagram of the third embodiment of the present invention.
Fig. 4 is a kind of dynamic adjustment partitioned method process flow diagram of the fourth embodiment of the present invention.
Embodiment
When running into the problem of partition space deficiency, if adopt traditional improvement method, may derive the data mistake delete, use inconvenience, program can't normal operation, usefulness is not good ... etc. problem, detailed problem can not repeat them here with reference to prior art is described.In view of this, embodiments of the invention provide a kind of dynamic adjustment partitioned method.Whether the remaining space (or claiming free space) that can monitor first subregion of Nonvolatile memory devices is in not enough state.If the remaining space of first subregion is in not enough state and second subregion still has unnecessary remaining space, then can utilize the space of second subregion to expand the space of first subregion.Thus, do not need to the data in the subregion delete, move, numerous and diverse step such as compression, also can effectively solve the problem of partition space deficiency.In other words, the dynamic adjustment partitioned method that embodiments of the invention proposed can effectively be utilized the space of each subregion.Elaborate embodiments of the invention below with reference to the accompanying drawings, accompanying drawing is for example understood example embodiment of the present invention, wherein same the or similar step of same numeral indication.
First embodiment
Fig. 1 is a kind of dynamic adjustment partitioned method process flow diagram of the first embodiment of the present invention.Please refer to Fig. 1, in the present embodiment, Nonvolatile memory devices is that example describes with the hard disk, but the present invention is not as limit.In other embodiments, Nonvolatile memory devices can also be silicon disk machine module, flash memory or carry-on dish ... etc.In addition, present embodiment hypothesis hard disk partition has first subregion and second subregion, and it has the space of 40G respectively.In addition, suppose that again first subregion has used the space of 38G, so it only there is the remaining space of 2G.Second subregion has used the space of 10G, so it still has the remaining space of 30G.
At first can be by step S101, whether the remaining space of first subregion of monitoring Nonvolatile memory devices is in not enough state.Above-mentioned not enough state for example can be that the remaining space of first subregion is less than the first preset data amount.In the present embodiment, the first preset data amount then is that example describes with 4G.That is to say, in step S101, whether can see through the free space of system monitoring first subregion less than 4G.Can know that from above-mentioned hypothesis the remaining space of knowing first subregion is 2G, therefore it represent the remaining space deficiency of first subregion less than the 4G of the first preset data amount, can carry out the problem that expanding program solves the first partition space deficiency.On the other hand, in step S101,, therefore can check termly whether the remaining space of first subregion is in not enough state if the remaining space of first subregion represents the remaining space of first subregion still quite abundant greater than 4G.Be further described at expanding program with next.
In the present embodiment, expanding program has comprised step S102, S103.At first, can select second subregion (step S102) of hard disk.Then, utilize the space of second subregion to expand the space (step S103) of first subregion.For instance, the disk partition tools that can utilize the system that need not reinstall to cut apart again hard disk, for example Partition Magic software is used the space of redistributing first subregion and second subregion.In the present embodiment, because second subregion still has the remaining space of 30G, therefore the remaining space of second subregion can be distributed a part of first subregion of giving.
More particularly, can be with the 10G of second subregion whole and to first subregion.Thus, first subregion then has the space of 50G, and it still has the remaining space of 12G, and second subregion then has the space of 30G, and it still has the remaining space of 20G.What deserves to be mentioned is, Partition Magic software to hard disk cut apart, format subregion again, duplicate subregion, mobile subregion ... when waiting action, can't cause hard disc data to lose.That is to say, present embodiment is by redistributing the space of two subregions, not only can solve the problem of remaining space deficiency, and do not have a problem that conventional practice is derived, for example the data mistake CD deleting, back up is lost, the path of program is changed and can't normal operation, numerous and diverse compression/decompression step and cause usefulness not good ... etc. problem.From above-mentioned, can know and find out that dynamic adjustment partitioned method that present embodiment provides can improve the medium-term and long-term problem that exists of conventional art really.
Please continue with reference to Fig. 1, in the present embodiment, whether the remaining space of first subregion of step S101 monitoring Nonvolatile memory devices is in not enough state, though wherein above-mentioned not enough state is that example describes with the remaining space of first subregion less than the first preset data amount, the present invention is not as limit.In other embodiments, have the knack of art technology person and also can adopt other judgment mode according to its demand, for instance, the shared ratio of the remaining space that above-mentioned not enough state also can first subregion is less than the first preset ratio value.More particularly, suppose the space of the total 40G of first subregion, and it has used the space of 38G, so it only there is the remaining space of 2G.In addition, suppose that again the first preset ratio value is 0.15.Because the shared ratio of remaining space of first subregion is (2 ÷ 40)=0.05, less than first preset ratio value 0.15, so the remaining space of decidable first subregion is in not enough state.
What deserves to be mentioned is, though dynamic adjustment partitioned method has been depicted a possible kenel in the foregoing description, usually know that the knowledgeable should know but have in the affiliated technical field, each manufacturer is all different for the step design of dynamic adjustment partitioned method, and therefore application of the present invention is when being not restricted to the possible kenel of this kind.In other words, so long as the remaining space of first subregion of monitoring Nonvolatile memory devices, when the remaining space of first subregion is in not enough state, then utilize the space of second subregion to expand the space of first subregion, be to have met spiritual place of the present invention just.Below know that the knowledgeable can further understand spirit of the present invention for several embodiment usually so that this area has again, and implement the present invention.
Second embodiment
In first embodiment, though expanding program is that example describes with step S102, S103, the present invention is not as limit.Have the knack of the step that art technology person also can change expanding program according to its demand.For instance, Fig. 2 is a kind of dynamic adjustment partitioned method process flow diagram of the second embodiment of the present invention.Please merge with reference to Fig. 1 and Fig. 2, the difference of Fig. 2 and Fig. 1 is that the expanding program of Fig. 2 more comprises step S201, and whether prompting expands the space of first subregion.
More particularly, in step S101, when finding that first subregion is in not enough state, but execution in step S201, whether will expand by the system prompt user, so the user can decide the space that whether will expand first subregion in its sole discretion according to its demand the space of first subregion.If user decision will be expanded the space of first subregion, can see through input media, for example keyboard or mouse are assigned the order that continues the execution expanding program, use to make system can continue execution in step S102 and S103.Otherwise, if the user determines temporarily not expand the space of first subregion, also can see through input media, for example keyboard or mouse are assigned the order that continues to interrupt expanding program, use making system break expanding program (S202).
The benefit of this practice is, can determine whether that first subregion and second subregion are carried out the space to be redistributed according to user's wish.More particularly,, then do not need to utilize the space of second subregion to expand the space of first subregion for this reason, use making dynamic adjustment partitioned method more press close to people's sexual demand if first subregion only is the problem of thick forest insufficient space temporarily.
The 3rd embodiment
Give one example, Fig. 3 is a kind of dynamic adjustment partitioned method process flow diagram of the third embodiment of the present invention again.Please merge with reference to Fig. 1 and Fig. 3, the difference of Fig. 3 and Fig. 1 is the expanding program of Fig. 3 comprises more whether the remaining space of checking second subregion is in sufficient state (step S301).
More particularly, after second subregion (step S102) of selecting Nonvolatile memory devices, but whether execution in step S301 is in sufficient state by the remaining space of systems inspection second subregion.Above-mentioned sufficient state for example can be that the remaining space of second subregion is greater than the second preset data amount.In the present embodiment, the second preset data amount then is that example describes with 4G.That is to say, in step S301 since the free space of second subregion be 30G greater than the second preset data amount 4G, execution in step S103 therefore can continue.In another embodiment, if the free space of second subregion is less than 4G, but execution in step S202 then interrupts expanding program.The benefit of this practice is, the remaining space that can avoid second subregion is not enough and can't be in order to expand the space of first subregion.
On the other hand, have the knack of art technology person and also can plan the space that to distribute to first subregion according to the remaining space of second subregion.After not making the second subregion allocation space give first subregion, cause the second partition space deficiency on the contrary, therefore can calculate the maximum space S3 that second subregion can be distributed to first subregion according to the remaining space S1 and the second preset data amount S2 of second subregion.Can calculate the maximum space S3 that second subregion can be distributed to first subregion according to following formula () for instance:
S1-S2=S3... formula ()
By above-mentioned formula () as can be known, the maximum space that second subregion can be distributed to first subregion in the present embodiment is 30G-4G=26G.Thus, when execution in step S103, not only can solve the problem of the first partition space deficiency, nor can cause second subregion also to be absorbed in the awkward situation of insufficient space.
Please continue with reference to Fig. 3, in the present embodiment, step S301 checks whether the remaining space of second subregion is in sufficient state, though wherein above-mentioned sufficient state is that example describes with the remaining space of second subregion greater than the second preset data amount, the present invention is not as limit.In other embodiments, have the knack of art technology person and also can adopt other judgment mode according to its demand, the shared ratio of the remaining space that above-mentioned for instance sufficient state also can second subregion is greater than the second preset ratio value.More particularly, suppose the space of the total 40G of second subregion, and it has used the space of 10G, so it still there is the remaining space of 30G.In addition, suppose that again the second preset ratio value is 0.15.Because the shared ratio of remaining space of second subregion is (30 ÷ 40)=0.75, greater than second preset ratio value 0.15, so the remaining space of decidable second subregion is in sufficient state.
The 4th embodiment
Though hard disk is that example describes with first subregion and second subregion only among above-mentioned all embodiment, spirit in fact of the present invention also can be applied to most subregions.For example, Fig. 4 is a kind of dynamic adjustment partitioned method process flow diagram of the fourth embodiment of the present invention.Please merge with reference to Fig. 3 and Fig. 4, the difference of Fig. 4 and Fig. 3 is, the expanding program of Fig. 4 comprises more whether the remaining space of checking the 3rd subregion is in sufficient state (step S302) and utilizes the space of the 3rd subregion to expand the space (step S303) of first subregion.
Present embodiment hypothesis hard disk partition has first subregion, second subregion and the 3rd subregion, and it has the space of 30G, 25G and 25G respectively.In addition, suppose that again first subregion has used the space of 28G, so it only there is the remaining space of 2G.Second subregion has used the space of 24G, so it still has the remaining space of 1G.The 3rd subregion has used the space of 5G, so it still has the remaining space of 20G.
Wherein step numbers person same as the previously described embodiments can be with reference to the embodiment of the foregoing description, do not repeat them here, it should be noted that in step S301, if find that the insufficient space of second subregion can be in order to expand the space of first subregion, then can continue and check other subregion, for example can check whether the 3rd subregion has enough spaces to use for first subregion and expand (step S302).Because the 3rd subregion still has the remaining space of 20G, shows that the remaining space of the 3rd subregion is in sufficient state, therefore can utilize the space of the 3rd subregion to expand the space (step S303) of first subregion.The embodiment of step S302 can be with reference to the step S301 of the 3rd embodiment, and the embodiment of step S303 can then repeat no more at this with reference to the step S103 of the 3rd embodiment in addition.By that analogy, as long as in hard disk, there is any one subregion to have sufficient space, then it can be used for expanding the space of first subregion.
In sum, the invention provides dynamic adjustment partitioned method.The remaining space of first subregion by the monitoring Nonvolatile memory devices.When the remaining space of first subregion is in not enough state, then utilizes the space of second subregion to expand the space of first subregion, so can effectively utilize the space of Nonvolatile memory devices.Moreover, embodiments of the invention have following advantage at least:
1. dynamically adjust the space of each subregion according to the remaining space of each subregion, therefore can improve the problem of subregion remaining space deficiency.
2. do not have the problem that conventional practice is derived, for example the data mistakes CD deleting, back up is lost, the path of program is changed and can't normal operation, numerous and diverse compression/decompression step and cause usefulness not good ... etc. problem.
3. can make the remaining space of each subregion maintain sufficient state, use the elevator system performance.
4. can effectively utilize the space of each subregion.
5. can interrupt expanding program according to user's wish, use people's sexual demand.
More than disclosed only be several specific embodiment of the present invention, but the present invention is not limited thereto, any those skilled in the art can think variation, all should drop in protection scope of the present invention.
Claims (5)
1, a kind of dynamic adjustment partitioned method is applicable to a Nonvolatile memory devices, it is characterized in that, comprising:
Whether the remaining space of monitoring one first subregion of this Nonvolatile memory devices is in a not enough state; And
When the remaining space of this first subregion is in this deficiency state, then carry out an expanding program, wherein this expanding program comprises;
Select one second subregion of this Nonvolatile memory devices; And
Utilize the space of this second subregion to expand the space of this first subregion.
2, dynamic adjustment partitioned method as claimed in claim 1 is characterized in that, the remaining space that wherein should the deficiency state comprises this first subregion less than the shared ratio of the remaining space of a preset data amount or this first subregion less than a preset ratio value.
3. dynamic adjustment partitioned method as claimed in claim 1, wherein this expanding program also comprises:
Whether whether the remaining space of checking this second subregion is in a sufficient state, use decision and utilize the space of this second subregion to expand the space of this first subregion.
4, dynamic adjustment partitioned method as claimed in claim 3 is characterized in that, the remaining space that wherein should the abundance state comprises this second subregion greater than the shared ratio of the remaining space of a preset data amount or this second subregion greater than a preset ratio value.
5. dynamic adjustment partitioned method as claimed in claim 1, wherein this expanding program also comprises:
Whether prompting expands the space of this first subregion, uses decision and whether interrupts this expanding program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810088339A CN101546274A (en) | 2008-03-27 | 2008-03-27 | Dynamically adjusting partition |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN200810088339A CN101546274A (en) | 2008-03-27 | 2008-03-27 | Dynamically adjusting partition |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101546274A true CN101546274A (en) | 2009-09-30 |
Family
ID=41193422
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810088339A Pending CN101546274A (en) | 2008-03-27 | 2008-03-27 | Dynamically adjusting partition |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101546274A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253895A (en) * | 2011-06-15 | 2011-11-23 | 成都易我科技开发有限责任公司 | Method for intelligently and automatically adjusting storage equipment partition in computer system |
CN103197940A (en) * | 2012-01-09 | 2013-07-10 | 三星电子株式会社 | Apparatus and method for partitioning memory area for application preloading in a wireless terminal |
CN103324576A (en) * | 2012-03-23 | 2013-09-25 | 联想(北京)有限公司 | Memory space changing method and electronic equipment |
CN103581214A (en) * | 2012-07-20 | 2014-02-12 | 中国电信股份有限公司 | Cloud drive capacity expansion method and cloud drive capacity expansion device |
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 |
CN111221475A (en) * | 2020-01-04 | 2020-06-02 | 苏州浪潮智能科技有限公司 | Storage space management method, device, equipment and readable medium |
-
2008
- 2008-03-27 CN CN200810088339A patent/CN101546274A/en active Pending
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102253895A (en) * | 2011-06-15 | 2011-11-23 | 成都易我科技开发有限责任公司 | Method for intelligently and automatically adjusting storage equipment partition in computer system |
CN102253895B (en) * | 2011-06-15 | 2013-09-04 | 成都易我科技开发有限责任公司 | Method for intelligently and automatically adjusting storage equipment partition in computer system |
CN103197940A (en) * | 2012-01-09 | 2013-07-10 | 三星电子株式会社 | Apparatus and method for partitioning memory area for application preloading in a wireless terminal |
CN103324576A (en) * | 2012-03-23 | 2013-09-25 | 联想(北京)有限公司 | Memory space changing method and electronic equipment |
CN103581214A (en) * | 2012-07-20 | 2014-02-12 | 中国电信股份有限公司 | Cloud drive capacity expansion method and cloud drive capacity expansion device |
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 |
CN111221475A (en) * | 2020-01-04 | 2020-06-02 | 苏州浪潮智能科技有限公司 | Storage space management method, device, equipment and readable medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101546274A (en) | Dynamically adjusting partition | |
CN102831173A (en) | Memory expanding method, device and terminal based on Android system | |
CN105335100A (en) | Method and device for processing data, and flash memory device | |
KR101938501B1 (en) | Dynamic load-based merging | |
US20100058007A1 (en) | Information processing apparatus and memory management method | |
US20020103997A1 (en) | System and method for delivering component instrumentation in a computer system | |
US8862560B1 (en) | Compression system pause and auto-resume | |
US8151079B2 (en) | Computer system, storage area allocation method, and management computer | |
CN105874428A (en) | Technologies for operating system transitions in multiple-operating-system environments | |
US20060218387A1 (en) | System and method for backup and recovery of data stored in a hard disk of a computer | |
WO2014188528A1 (en) | Memory device, computer system, and memory device control method | |
CN110583018B (en) | System and method for intelligent data/frame compression in a system-on-chip | |
US20150293700A1 (en) | Control apparatus and control method | |
US20120324199A1 (en) | Memory management method, computer system and program | |
WO2013186828A1 (en) | Computer system and control method | |
WO2017222739A1 (en) | Selective flash memory compression/decompression using a storage usage collar | |
JP5198018B2 (en) | Storage subsystem and storage control method | |
JP4813975B2 (en) | Method of changing configuration of non-shared database system, management server, and non-shared database system | |
KR20210049602A (en) | A computing device and a method for operating the computing device | |
JPH09244818A (en) | Power saving computer | |
US10162636B2 (en) | Control apparatus, integrated circuit and management method for stack | |
KR20140147596A (en) | Method for storing image signal | |
JP5287414B2 (en) | Storage system, storage power consumption reduction method, program | |
JP6035905B2 (en) | Storage system and storage system control method | |
JP6942977B2 (en) | File distribution storage device, program, file distribution management method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20090930 |