CN104932830B - Information processing method and electronic equipment - Google Patents
Information processing method and electronic equipment Download PDFInfo
- Publication number
- CN104932830B CN104932830B CN201410099359.9A CN201410099359A CN104932830B CN 104932830 B CN104932830 B CN 104932830B CN 201410099359 A CN201410099359 A CN 201410099359A CN 104932830 B CN104932830 B CN 104932830B
- Authority
- CN
- China
- Prior art keywords
- data
- storage unit
- unit
- capacity
- storage
- 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.)
- Active
Links
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
Abstract
The invention discloses a kind of information processing method and electronic equipments;The described method includes: obtaining first triggering command;The first data are obtained by input unit, first data are stored to the first storage unit;It detects whether corresponding first capacity of first storage unit is more than first threshold, generates the first testing result, first capacity is the currently used capacity of the first storage unit;When first testing result, which characterizes first capacity, is more than the first threshold, the second data conversion storage is stored up to second storage unit;Wherein, the data of the first ratio are preset in the first data that second data are stored by second storage unit.According to the technical solution of the present invention, while reducing electronic equipment cost, the service life of electronic equipment and the read-write response performance of electronic equipment are improved.
Description
Technical field
The present invention relates to the information processing technology more particularly to a kind of information processing methods and electronic equipment.
Background technique
Nand flash memory (Flash) using three-layer unit (TLC, Trinary Level Cell) medium is made extensively
With due to cost considerations, using the solid state hard disk (SSD, Solid State Disk) of TLC medium into market, but TLC is situated between
The readwrite performance parameter and service life of matter are lower than multilevel-cell (MLC, Multi Level Cell) medium and single layer cell
(SLC, Single Level Cell) medium.
For the cost for reducing SSD, the relevant technologies use technical solution of the TLC medium as the storage medium of SSD, by part
TLC is modeled as SLC medium, and new data is all stored to SLC, this results in hot spot data that can be replaced away, needs frequently
TLC medium is written, is had a negative impact in this way to the overall performance of SSD, while also affecting the service life of SSD.
In conclusion guaranteeing the readwrite performance and service life of SSD, related skill how while reducing the cost of SSD
Art there is no effective solution.
Summary of the invention
The embodiment of the present invention provides a kind of information processing method and electronic equipment, can while reducing the cost of SSD,
Guarantee the readwrite performance and service life of SSD.
The technical solution of the embodiment of the present invention is achieved in that
The embodiment of the present invention provides a kind of information processing method, is applied in an electronic equipment, the electronic equipment includes
First storage unit, the second storage unit and input unit, wherein the readwrite performance parameter of first storage unit is high
In the readwrite performance parameter of second storage unit, second storage unit is non-volatile memory cells;The method
Include:
Obtain first triggering command;
The first data are obtained by the input unit, first data are stored to first storage unit;
Corresponding first capacity of first storage unit is detected, generates the first testing result, first capacity is institute
State the currently used capacity of the first storage unit;
When first testing result, which characterizes first capacity, is more than first threshold, the second data conversion storage is stored up to institute
State the second storage unit;Wherein, first is preset in the first data that second data are stored by second storage unit
The data of ratio.
The embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes the first storage unit, the second storage
Unit and input unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
The electronic equipment further include: acquiring unit, detection unit and control unit;Wherein,
The acquiring unit, for obtaining first triggering command;
The first data are obtained by the input unit, first data are stored to first storage unit;
The detection unit generates the first testing result for detecting corresponding first capacity of first storage unit,
First capacity is the currently used capacity of the first storage unit;
Described control unit is used for when first testing result characterizes first capacity and is more than first threshold, will
Second data conversion storage is stored up to second storage unit;Wherein, second data, second storage unit is stored
The data of the first ratio are preset in first data.
In the embodiment of the present invention, using higher first storage unit of reading performance parameter to the first data for needing to store
It is cached, and in such a way that whether detect the first storage unit is more than first threshold with capacity, it is ensured that the first storage
Unit includes idle capacity to store data to be written, and avoiding problems the feelings that frequently the second storage unit is written
Condition improves the service life of electronic equipment while reducing electronic equipment cost, and improve electronic equipment writes sound
Answer performance.
Detailed description of the invention
Fig. 1 is the implementation process schematic diagram of information processing method in the embodiment of the present invention one;
Fig. 2 is the implementation process schematic diagram of information processing method in the embodiment of the present invention two;
Fig. 3 is the implementation process schematic diagram of information processing method in the embodiment of the present invention three;
Fig. 4 is the implementation process schematic diagram of information processing method in the embodiment of the present invention four;
Fig. 5 is the implementation process schematic diagram of information processing method in the embodiment of the present invention five;
Fig. 6 is the implementation process schematic diagram of information processing method in the embodiment of the present invention six;
Fig. 7 is the implementation process schematic diagram of information processing method in the embodiment of the present invention seven;
Fig. 8 is the implementation process schematic diagram of information processing method in the embodiment of the present invention eight;
Fig. 9 is the structural schematic diagram of electronic equipment in the embodiment of the present invention nine;
Figure 10 is the structural schematic diagram of electronic equipment in the embodiment of the present invention ten.
Specific embodiment
Invention is further described in detail in the following with reference to the drawings and specific embodiments.
Embodiment one
The present embodiment records a kind of information processing method, is applied in an electronic equipment, and the electronic equipment includes first
Storage unit, the second storage unit and input unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
In practical application, first storage unit can use SLC medium, or be situated between using TLC medium is modeled as SLC
The mode of matter, second storage unit can use MLC medium or TLC medium.
As shown in Figure 1, the present embodiment record information processing method the following steps are included:
Step 101, first triggering command is obtained.
The first triggering command is used to indicate electronic equipment and receives and itself storing the first data.
Step 102, the first data are obtained by the input unit, first data is stored to first storage
Unit.
Step 103, corresponding first capacity of first storage unit is detected, the first testing result is generated.
Step 104, according to first testing result, judge whether first capacity is more than the first threshold, such as
Fruit is to then follow the steps 105;Otherwise, stopping is handled.
First capacity is capacity used in the currently stored data of the first storage unit.
Step 105, the second data conversion storage is stored up to second storage unit.
That is, first storage unit no longer stores second data, second data are described second
The data of the first ratio are preset in the first data that storage unit is stored.
In the present embodiment, the first data that needs store are carried out using reading performance parameter higher first storage unit
Caching, and in such a way that whether detect the first storage unit is more than first threshold with capacity, it is ensured that the first storage unit
Data to be written are stored including idle capacity, avoiding problems frequently the second storage unit is written,
While reducing electronic equipment cost, the service life of electronic equipment is improved, and improves the write response of electronic equipment
Energy.
Embodiment two
The present embodiment records a kind of information processing method, is applied in an electronic equipment, and the electronic equipment includes first
Storage unit, the second storage unit and input unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
In practical application, first storage unit can use SLC medium, or be situated between using TLC medium is modeled as SLC
The mode of matter, second storage unit can use MLC medium or TLC medium.
As shown in Fig. 2, the present embodiment record information processing method the following steps are included:
Step 201, first triggering command is obtained.
The first triggering command is used to indicate electronic equipment and receives and itself storing the first data.
Step 202, the first data are obtained by the input unit, first data is stored to first storage
Unit.
Step 203, corresponding first capacity of first storage unit is detected, the first testing result is generated.
Step 204, judge whether first capacity is more than the first threshold according to first testing result, if
It is to then follow the steps 205;Otherwise, stopping is handled.
First capacity is the currently used capacity of the first storage unit.
Step 205, the load of first storage unit is detected, the second testing result is generated.
The load of first storage unit refers to the capacity for the data for reading and/or being written in the unit time.
Step 206, judge whether the load of first storage unit is lower than the second threshold according to second testing result
Value, if so, thening follow the steps 207;Otherwise, stopping is handled.
Step 207, second data conversion storage is stored up to second storage unit.
Wherein, the number of the first ratio is preset in the first data that second data are stored by second storage unit
According to.
In the present embodiment, the first data that needs store are carried out using reading performance parameter higher first storage unit
Caching, and capacity and load have been used by the first storage unit of detection, it is ensured that the first storage unit includes idle capacity storage
Data to be written, and response is written in the current of electronic equipment and writes within the scope of load capacity;Avoiding problems frequently right
The case where second storage unit is written, while reducing electronic equipment cost, improve electronic equipment uses the longevity
Life, and improve the write response performance of electronic equipment.
Embodiment three
The present embodiment records a kind of information processing method, is applied in an electronic equipment, and the electronic equipment includes first
Storage unit, the second storage unit and input unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
In practical application, first storage unit can use SLC medium, or be situated between using TLC medium is modeled as SLC
The mode of matter, second storage unit can use MLC medium or TLC medium.
As shown in figure 3, the present embodiment record information processing method the following steps are included:
Step 301, first triggering command is obtained.
The first triggering command is used to indicate electronic equipment and receives and itself storing the first data.
Step 302, the first data are obtained by the input unit, first data is stored to first storage
Unit.
Step 303, it detects whether corresponding first capacity of first storage unit is more than first threshold, generates the first inspection
Survey result.
Step 304, judge whether first capacity is more than the first threshold according to first testing result, if
It is to then follow the steps 305;Otherwise, stopping is handled.
First capacity is the currently used capacity of the first storage unit.
Step 305, the load of first storage unit is detected, the second testing result is generated.
The load of first storage unit refers to the capacity for the data for reading and/or being written in the unit time.
Step 306, judge whether the load of first storage unit is lower than the second threshold according to second testing result
Value, if so, thening follow the steps 307;Otherwise, stopping is handled.
Step 307, the operating frequency of the first data of the first storage unit storage is detected.
The operating frequency characterizes the frequency that first data are written into and/or are read.
Step 308, based on detected operating frequency, second data are obtained.
Wherein, second data are the number that operating frequency is minimum in the first data of first storage unit storage
According to, and be the first data preset ratio or the data of preset capacity.
Step 309, second data conversion storage is stored up to second storage unit.
In the present embodiment, the non-hot data conversion storage in the first storage unit is stored up to the second storage unit, this is just improved
Hit rate of first storage unit to data read request makes the read-write requests of the first storage unit response hot spot data, into
One step improves the write response performance of electronic equipment.
Example IV
The present embodiment records a kind of information processing method, is applied in an electronic equipment, and the electronic equipment includes first
Storage unit, the second storage unit and input unit and output unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
In practical application, first storage unit can use SLC medium, or be situated between using TLC medium is modeled as SLC
The mode of matter, second storage unit can use MLC medium or TLC medium.
As shown in figure 4, the present embodiment record information processing method the following steps are included:
Step 401, first triggering command is obtained.
The first triggering command is used to indicate electronic equipment and receives and itself storing the first data.
Step 402, the first data are obtained by the input unit, first data is stored to first storage
Unit.
Step 403, corresponding first capacity of first storage unit is detected, the first testing result is generated.
Step 404, according to first testing result, judge whether first capacity is more than the first threshold, such as
Fruit is to then follow the steps 405;Otherwise, stopping is handled.
First capacity is the currently used capacity of the first storage unit.
Step 405, the second data conversion storage is stored up to second storage unit.
Step 406, the second triggering command is obtained, second triggering command is used to indicate the first data to be read.
Step 407, it is executed from the first data to be read described in first storage unit query if inquired
Step 409;Otherwise, step 408 and step 409 are executed.
Step 408, the first data to be read described in second storage unit query.
Step 409, the first data inquired are sent to the output unit.
In the present embodiment, due to the first storage unit storage always hot spot data, when reading data, first
In the first data that the first storage unit query is to be read, in this way, the hit rate to read requests is higher, also, pass through first
Storage unit responds read requests, and response speed, which is higher than, responds read requests by the second storage unit, improves electronic equipment
Respond the performance of read requests.
Embodiment five
The present embodiment records a kind of information processing method, is applied in an electronic equipment, and the electronic equipment includes first
Storage unit, the second storage unit, third storage unit and input unit and output unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
In practical application, first storage unit can use SLC medium, or be situated between using TLC medium is modeled as SLC
The mode of matter, second storage unit can use MLC medium or TLC medium.
As shown in figure 5, the present embodiment record information processing method the following steps are included:
Step 501, first triggering command is obtained.
The first triggering command is used to indicate electronic equipment and receives and itself storing the first data.
Step 502, the first data are obtained by the input unit, first data is stored to first storage
Unit.
Step 503, corresponding first capacity of first storage unit is detected, the first testing result is generated.
Step 504, according to first testing result, judge whether first capacity is more than the first threshold, such as
Fruit is to then follow the steps 505;Otherwise, stopping is handled.
First capacity is the currently used capacity of the first storage unit.
Step 505, the second data conversion storage is stored up to second storage unit.
Step 506, the second triggering command is obtained, second triggering command is used to indicate the first data to be read.
Step 507, it is executed from the first data to be read described in first storage unit query if inquired
Step 509;Otherwise, step 508 is executed.
Step 508, the first data to be read described in second storage unit query.
Step 509, the first data inquired are sent to the output unit.
Step 510, the operating frequency of the first data in first storage unit is detected.
Step 511, based on detected operating frequency, third data are obtained.
The third data are that the second ratio, operating frequency are preset in the first data of first storage unit storage
Highest data.
Step 512, the third data conversion storage is stored up to the third storage unit.
Wherein, second data and the occupied capacity of third data are not less than first capacity and described the
The difference of one threshold value, to ensure that the first storage unit has enough idle capacity response read-write requests, i.e. cache request is read and write
Data.
In the present embodiment, the hot spot data unloading of the first storage unit is stored up to the higher third of readwrite performance parameter and is stored
Unit, response data is read and write by way of the unit matching that the first storage unit and third store, and can further increase pair
The hit rate of reading and writing data significantly reduces the write-in number to the second storage unit, while reducing electronic equipment cost,
The service life of electronic equipment is improved, and improves the read-write response performance of electronic equipment.
Embodiment six
The present embodiment records a kind of information processing method, is applied in an electronic equipment, and the electronic equipment includes first
Storage unit, the second storage unit, third storage unit and input unit and output unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
In practical application, first storage unit can use SLC medium, or be situated between using TLC medium is modeled as SLC
The mode of matter, second storage unit can use MLC medium or TLC medium.
As shown in fig. 6, the present embodiment record information processing method the following steps are included:
Step 601, first triggering command is obtained.
The first triggering command is used to indicate electronic equipment and receives and itself storing the first data.
Step 602, the first data are obtained by the input unit, first data is stored to first storage
Unit.
Step 603, corresponding first capacity of first storage unit is detected, the first testing result is generated.
Step 604, according to first testing result, judge whether first capacity is more than the first threshold, such as
Fruit is to then follow the steps 605;Otherwise, stopping is handled.
First capacity is the currently used capacity of the first storage unit.
Step 605, the second data conversion storage is stored up to second storage unit.
Step 601 to step 605 is to respond the processing of write operation.
Step 606, the second triggering command is obtained, second triggering command is used to indicate the first data to be read.
Step 607, it is executed from the first data to be read described in first storage unit query if inquired
Step 609;Otherwise, step 608 is executed.
Step 608, the first data to be read described in second storage unit query.
Step 609, the first data inquired are sent to the output unit.
Step 606 to step 609 is to respond the processing of read operation.
Step 610, the operating frequency of the first data in first storage unit is detected.
Step 611, based on detected operating frequency, third data are obtained.
The third data are that the second ratio, operating frequency are preset in the first data of first storage unit storage
Highest data.
Step 612, the third data conversion storage is stored up to the third storage unit.
Wherein, second data and the occupied capacity of third data are not less than first capacity and described the
The difference of one threshold value.
Step 610 to step 612 can be executed in step 601 between step 609 arbitrary steps.
Step 613, corresponding second capacity of the third storage unit is detected, third testing result is generated.
Second capacity is the currently used capacity of third storage unit;
Step 614, judge whether second capacity is more than the third threshold value according to the third testing result, if
It is to then follow the steps 615;Otherwise, stopping is handled.
Step 615, the 4th data conversion storage is stored up to second storage unit.
The data of third ratio are preset in the first data that 4th data are stored by the third storage unit.
Step 613 to step 615 can be executed in step 601 between step 609 arbitrary steps.
In the present embodiment, the non-hot data conversion storage of third storage unit is stored up to readwrite performance parameter lower second and is deposited
Storage unit can further increase the hit rate to reading and writing data, significantly so as to there is vacant capacity storage hot spot data
Reduction improves the use of electronic equipment while reducing electronic equipment cost to the read-write number of the second storage unit
Service life, and improve the read-write response performance of electronic equipment.
Embodiment seven
The present embodiment records a kind of information processing method, is applied in an electronic equipment, and the electronic equipment includes first
Storage unit, the second storage unit, third storage unit and input unit and output unit;
Wherein, the readwrite performance that the readwrite performance parameter of first storage unit is higher than second storage unit is joined
Number, second storage unit are non-volatile memory cells;
In practical application, first storage unit can use SLC medium, or be situated between using TLC medium is modeled as SLC
The mode of matter, second storage unit can use MLC medium or TLC medium.
As shown in fig. 7, the present embodiment record information processing method the following steps are included:
Step 701, first triggering command is obtained.
The first triggering command is used to indicate electronic equipment and receives and itself storing the first data.
Step 702, the first data are obtained by the input unit, first data is stored to first storage
Unit.
Step 703, corresponding first capacity of first storage unit is detected, the first testing result is generated.
Step 704, according to first testing result, judge whether first capacity is more than the first threshold, such as
Fruit is to then follow the steps 705;Otherwise, stopping is handled.
First capacity is the currently used capacity of the first storage unit.
Step 705, the second data conversion storage is stored up to second storage unit.
Step 701 to step 705 is to respond the processing of write operation.
Step 706, the second triggering command is obtained, second triggering command is used to indicate the first data to be read.
Step 707, it is executed from the first data to be read described in first storage unit query if inquired
Step 710;Otherwise, step 708 is executed.
Step 708, the first data to be read described in the third storage unit query;If inquired, execute
Step 710;Otherwise, step 709 is executed.
Step 709, the first data to be read described in second storage unit query.
Step 710, the first data inquired are sent to the output unit.
Step 706 to step 710 is to respond the processing of read operation.
Step 711, the operating frequency of the first data in first storage unit is detected.
Step 712, based on detected operating frequency, third data are obtained.
The third data are that the second ratio, operating frequency are preset in the first data of first storage unit storage
Highest data.
Step 713, the third data conversion storage is stored up to the third storage unit.
Wherein, second data and the occupied capacity of third data are not less than first capacity and described the
The difference of one threshold value.
Step 711 to step 713 can be executed in step 701 between step 710 arbitrary steps.
Step 714, corresponding second capacity of the third storage unit is detected, third testing result is generated.
Second capacity is the currently used capacity of third storage unit;
Step 715, judge whether second capacity is more than the third threshold value according to the third testing result, if
It is to then follow the steps 716;Otherwise, stopping is handled.
Step 716, the 4th data conversion storage is stored up to second storage unit.
The data of third ratio are preset in the first data that 4th data are stored by the third storage unit.
Step 714 to step 716 can be executed in step 701 between step 710 arbitrary steps.
In the present embodiment, by the sequencing of the first storage unit, third storage unit, the second storage unit search to
Data are read, in this way, the hot spot data responded by higher first storage unit of readwrite performance parameter and the second storage unit
Read-write, can be improved the hit rate of reading and writing data, avoid further increasing electronic equipment to the second storage unit of frequent read-write
Read response speed.
Embodiment eight
The present embodiment be based on previous embodiment, to described in previous embodiment by the second data in the first storage unit
Unloading is stored up to second storage unit and is illustrated, as shown in figure 8, the information processing method that the present embodiment is recorded, including with
Lower step:
Step 801, the first subelement that second data are stored in second storage unit, first son are determined
Unit is the minimum unit of storing data in second storage unit.
Step 802, second data corresponding with default third capacity successively are written in identified first subelement,
Until second data write-in finishes.
Wherein, the default third capacity is less than the capacity of first subelement.
It is also just to say, is not that the first subelement is disposably stored into sky when each first subelement is written
Between write full, but the second data interlacing is stored in the first subelement, in such manner, it is possible to the write-in time of balanced each first subelement
Number avoids subelement write-in from wearing unbalanced situation, improves the service life of electronic equipment.
It need to be noted that: the description in following electronic equipment embodiment, with the above method description be it is similar, together
The beneficial effect of method describes, and does not repeat.For undisclosed technical detail in electronic equipment embodiment of the present invention, please refer to
The description of embodiment of the present invention method.
Embodiment nine
The present embodiment records a kind of electronic equipment, as shown in figure 9, the electronic equipment includes the first storage unit 91, the
Two storage units 92 and input unit 93;
Wherein, the readwrite performance parameter of first storage unit 91 is higher than the readwrite performance of second storage unit 92
Parameter, second storage unit 92 are non-volatile memory cells;
The electronic equipment further include: acquiring unit 94, detection unit 95 and control unit 96;Wherein,
Acquiring unit 94, for obtaining first triggering command;
The first data are obtained by the input unit 93, first data are stored to first storage unit
91;
Detection unit 95 generates the first testing result for detecting corresponding first capacity of first storage unit 91,
First capacity is the currently used capacity of first storage unit 91;
Control unit 96 is used for when first testing result characterizes first capacity and is more than the first threshold,
Second data conversion storage is stored up to second storage unit 92;Wherein, second data are 92 institute of the second storage unit
The data of the first ratio are preset in first data of storage.
In practical application, the acquiring unit 94, the detection unit 95, described control unit 96 can be by electronic equipments
Microprocessor realize;The input unit 93 can be realized by the input bus in electronic equipment.
Embodiment ten
The present embodiment record a kind of electronic equipment, as shown in Figure 10, the electronic equipment include the first storage unit 1001,
Second storage unit 1002 and input unit 1003;
Wherein, the readwrite performance parameter of first storage unit 1001 is higher than the read-write of the unit of second storage
Energy parameter, second storage unit 1002 are non-volatile memory cells;
The electronic equipment further include: acquiring unit 1004, detection unit 1005 and control unit 1006;Wherein,
The acquiring unit 1004, for obtaining first triggering command;
The first data are obtained by the input unit 1003, first data are stored to first storage unit
1001;
The detection unit 1005 generates first for detecting corresponding first capacity of first storage unit 1001
Testing result, first capacity are the currently used capacity of first storage unit 1001;
Described control unit 1006, for being more than first threshold when first testing result characterizes first capacity
When value, the second data conversion storage is stored up to second storage unit 1002;Wherein, second data are that second storage is single
The data of the first ratio are preset in the first data that member 1002 is stored.
Wherein, the detection unit 1005 is also used to detect the load of first storage unit 1001, generates the second inspection
Survey result;
Described control unit 1006 is also used to characterize the negative of first storage unit 1001 when second testing result
When carrying lower than the second threshold, second data conversion storage is stored up to second storage unit 1002.
Wherein, the detection unit 1005 is also used to detect the first data that first storage unit 1001 stores
Operating frequency, the operating frequency characterize the frequency that first data are written into and/or are read;
Based on detected operating frequency, second data are obtained;Wherein, second data are deposited for described first
The minimum data of operating frequency in the first data that storage unit 1001 stores.
Wherein, the electronic equipment further includes output unit 1007;
The acquiring unit 1004 is also used to obtain the second triggering command, and second triggering command, which is used to indicate, to continue
The first data taken;
Described control unit 1006 is also used to inquire first number to be read from first storage unit 1001
According to;Not when first storage unit 1001 inquires first data to be read, in second storage unit
1002 inquiry first data to be read;The first data inquired are sent to the output unit 1007.
Wherein, the electronic equipment further includes third storage unit 1008, the read-write of the third storage unit 1008
Energy parameter is higher than the readwrite performance parameter of second storage unit 1002;
The detection unit 1005 is also used to detect the operation frequency of the first data in first storage unit 1001
Rate;
Based on detected operating frequency, third data are obtained, the third data are first storage unit
The second ratio, the highest data of operating frequency are preset in first data of 1001 storages;
Described control unit 1006 is also used to store up the third data conversion storage to the third storage unit 1008;Its
In, second data and the occupied capacity of third data are not less than the difference of first capacity and the first threshold
Value.
Wherein, the detection unit 1005 is also used to detect corresponding second capacity of the third storage unit 1008, raw
At third testing result, second capacity is the currently used capacity of the third storage unit 1008;
Described control unit 1006 is also used to when the third testing result characterizes second capacity be more than the third
When threshold value, the 4th data conversion storage is stored up to second storage unit 1002, the 4th data are the third storage unit
The data of third ratio are preset in 1008 the first data stored.
Wherein, described control unit 1006 are also used to inquire described to be read in the third storage unit 1008
One data;
Not when the third storage unit 1008 inquires first data to be read, in second storage
Unit 1002 inquires the operation of first data to be read.
Wherein, described control unit 1006 are also used to determine that described second is stored in second storage unit 1002 counts
According to the first subelement, first subelement be second storage unit 1002 in storing data minimum unit;
Second data corresponding with default third capacity successively are written in identified first subelement, until described
The write-in of second data finishes;Wherein, the default third capacity is less than the capacity of first subelement.
In practical application, the acquiring unit 1004, the detection unit 1005, described control unit 1006 can be by electronics
Microprocessor in equipment is realized;The input unit 1003 can be realized by the input bus in electronic equipment;The output is single
Member 1007 can be realized by the output bus in electronic equipment.
In several embodiments provided by the present invention, it should be understood that disclosed device and method can pass through it
Its mode is realized.Apparatus embodiments described above are merely indicative, for example, the division of the unit, only
A kind of logical function partition, there may be another division manner in actual implementation, such as: multiple units or components can combine, or
It is desirably integrated into another system, or some features can be ignored or not executed.In addition, shown or discussed each composition portion
Mutual coupling or direct-coupling or communication connection is divided to can be through some interfaces, the INDIRECT COUPLING of equipment or unit
Or communication connection, it can be electrical, mechanical or other forms.
Above-mentioned unit as illustrated by the separation member, which can be or may not be, to be physically separated, aobvious as unit
The component shown can be or may not be physical unit, it can and it is in one place, it may be distributed over multiple network lists
In member;Some or all of units can be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
In addition, each functional unit in various embodiments of the present invention can be fully integrated in one processing unit, it can also
To be each unit individually as a unit, can also be integrated in one unit with two or more units;It is above-mentioned
Integrated unit both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned include: mobile electronic device, it is read-only
Memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or
The various media that can store program code such as person's CD.
If alternatively, the above-mentioned integrated unit of the present invention is realized in the form of software function module and as independent product
When selling or using, it also can store in a computer readable storage medium.Based on this understanding, the present invention is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product is stored in a storage medium, including some instructions are used so that computer equipment (can be with
It is personal computer, server or network equipment etc.) execute all or part of each embodiment the method for the present invention.
And storage medium above-mentioned includes: that mobile electronic device, ROM, RAM, magnetic or disk etc. are various can store program code
Medium.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain
Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
Claims (14)
1. a kind of information processing method is applied in an electronic equipment, the electronic equipment is deposited including the first storage unit, second
Storage unit and input unit, wherein the readwrite performance parameter of first storage unit is higher than second storage unit
Readwrite performance parameter, second storage unit are non-volatile memory cells;The described method includes:
Obtain first triggering command;
The first data are obtained by the input unit, first data are stored to first storage unit;
It detects corresponding first capacity of first storage unit, generates the first testing result, first capacity is described the
The currently used capacity of one storage unit;
When first testing result, which characterizes first capacity, is more than first threshold, the second data conversion storage is stored up to described the
Two storage units;Wherein, the first ratio is preset in the first data that second data are stored by second storage unit
Data;
It is described to store up the second data conversion storage to before second storage unit, the method also includes:
The load of first storage unit is detected, the second testing result is generated;
When second testing result characterizes the load of first storage unit lower than second threshold, by second data
Unloading is stored up to second storage unit;
Wherein, first storage unit is that the single layer cell medium to be formed is simulated by three-layer unit medium, and described second deposits
Storage unit is multilevel-cell medium or three-layer unit medium.
2. the method according to claim 1, wherein the second data transfer by the first storage unit is deposited
Before storage to second storage unit, the method also includes:
The operating frequency of the first data of the first storage unit storage is detected, the operating frequency characterizes first data
The frequency for being written into and/or being read;
Based on detected operating frequency, second data are obtained;Wherein, second data are that first storage is single
The minimum data of operating frequency in first data of member storage.
3. the method according to claim 1, wherein the electronic equipment further includes output unit;The method
Further include:
The second triggering command is obtained, second triggering command is used to indicate the first data to be read;
From the first data to be read described in first storage unit query;
Not when first storage unit query is to first data to be read, in second storage unit query
First data to be read;
The first data inquired are sent to the output unit.
4. described according to the method described in claim 3, it is characterized in that, the electronic equipment further includes third storage unit
The readwrite performance parameter of third storage unit is higher than the readwrite performance parameter of second storage unit;
Correspondingly, the method also includes:
Detect the operating frequency of the first data in first storage unit;
Based on detected operating frequency, third data are obtained, the third data are first storage unit storage
The second ratio, the highest data of operating frequency are preset in first data;
The third data conversion storage is stored up to the third storage unit;Wherein,
Second data and the occupied capacity of third data are not less than first capacity and the first threshold
Difference.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
It detects corresponding second capacity of the third storage unit, generates third testing result, second capacity is described the
The currently used capacity of three storage units;
When the third testing result, which characterizes second capacity, is more than third threshold value, the 4th data conversion storage is stored up to described the
Two storage units preset the number of third ratio in the first data that the 4th data are stored by the third storage unit
According to.
6. according to the method described in claim 5, it is characterized in that, described continue described in second storage unit query
Before the first data taken, the method also includes:
The first data to be read described in the third storage unit query;
When the third storage unit query is to first data to be read, not executing described in second storage
Unit inquires the operation of first data to be read.
7. method according to any one of claims 1 to 6, which is characterized in that include one in second storage unit
Above first subelement, first subelement are the minimum unit of storing data in second storage unit;
Correspondingly, second data conversion storage by the first storage unit is stored up to second storage unit, comprising:
Determine the first subelement that second data are stored in second storage unit, it is successively single in identified first son
Second data corresponding with default third capacity are written in member, until second data write-in finishes;Wherein, described default
Third capacity is less than the capacity of first subelement.
8. a kind of electronic equipment, the electronic equipment includes the first storage unit, the second storage unit and input unit;
Wherein, the readwrite performance parameter of first storage unit is higher than the readwrite performance parameter of second storage unit, institute
Stating the second storage unit is non-volatile memory cells;
The electronic equipment further include: acquiring unit, detection unit and control unit;Wherein,
The acquiring unit, for obtaining first triggering command;
The first data are obtained by the input unit, first data are stored to first storage unit;
The detection unit, for detecting corresponding first capacity of first storage unit, the first testing result of generation is described
First capacity is the currently used capacity of the first storage unit;
Described control unit is used for when first testing result characterizes first capacity and is more than first threshold, by second
Data conversion storage is stored up to second storage unit;Wherein, second data stored by second storage unit first
The data of the first ratio are preset in data;
The detection unit is also used to detect the load of first storage unit, generates the second testing result;
Described control unit is also used to characterize the load of first storage unit lower than the second threshold when second testing result
When value, second data conversion storage is stored up to second storage unit;
Wherein, first storage unit is that the single layer cell medium to be formed is simulated by three-layer unit medium, and described second deposits
Storage unit is multilevel-cell medium or three-layer unit medium.
9. electronic equipment according to claim 8, which is characterized in that
The detection unit is also used to detect the operating frequency of the first data of the first storage unit storage, the operation
Frequency characterizes the frequency that first data are written into and/or are read;
Based on detected operating frequency, second data are obtained;Wherein, second data are that first storage is single
The minimum data of operating frequency in first data of member storage.
10. electronic equipment according to claim 8, which is characterized in that the electronic equipment further includes output unit;
The acquiring unit, is also used to obtain the second triggering command, and second triggering command is used to indicate to be read first
Data;
Described control unit is also used to from the first data to be read described in first storage unit query;
Not when first storage unit query is to first data to be read, in second storage unit query
First data to be read;
The first data inquired are sent to the output unit.
11. electronic equipment according to claim 10, which is characterized in that the electronic equipment further includes that third storage is single
Member, the readwrite performance parameter of the third storage unit are higher than the readwrite performance parameter of second storage unit;
The detection unit is also used to detect the operating frequency of the first data in first storage unit;
Based on detected operating frequency, third data are obtained, the third data are first storage unit storage
The second ratio, the highest data of operating frequency are preset in first data;
Described control unit is also used to store up the third data conversion storage to the third storage unit;Wherein,
Second data and the occupied capacity of third data are not less than first capacity and the first threshold
Difference.
12. electronic equipment according to claim 11, which is characterized in that
The detection unit is also used to detect corresponding second capacity of the third storage unit, generates third testing result, institute
Stating the second capacity is the currently used capacity of third storage unit;
Described control unit is also used to when the third testing result characterizes second capacity and is more than third threshold value, by the
Four data conversion storages store up the first data stored to second storage unit, the 4th data by the third storage unit
In preset third ratio data.
13. electronic equipment according to claim 12, which is characterized in that
Described control unit is also used to the first data to be read described in the third storage unit query;
Not when the third storage unit query is to first data to be read, in second storage unit query
To the operation of first data to be read.
14. according to the described in any item electronic equipments of claim 8 to 13, which is characterized in that
It include more than one first subelement in second storage unit, first subelement is second storage unit
The minimum unit of middle storing data;
Described control unit is also used to determine the first subelement that second data are stored in second storage unit;
Second data corresponding with default third capacity successively are written in identified first subelement, until described second
Data write-in finishes;Wherein, the default third capacity is less than the capacity of first subelement.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410099359.9A CN104932830B (en) | 2014-03-17 | 2014-03-17 | Information processing method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410099359.9A CN104932830B (en) | 2014-03-17 | 2014-03-17 | Information processing method and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104932830A CN104932830A (en) | 2015-09-23 |
CN104932830B true CN104932830B (en) | 2019-01-15 |
Family
ID=54120011
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410099359.9A Active CN104932830B (en) | 2014-03-17 | 2014-03-17 | Information processing method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104932830B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107608625B (en) * | 2017-08-11 | 2020-09-11 | 记忆科技(深圳)有限公司 | Method for improving reading performance of fixed storage equipment |
CN111562880A (en) | 2019-02-14 | 2020-08-21 | 英韧科技(上海)有限公司 | Data storage device, system and data writing method |
CN110083095A (en) * | 2019-04-29 | 2019-08-02 | 贵州贵谷农业股份有限公司 | A kind of greenhouse control system of local update model |
CN110209357A (en) * | 2019-06-04 | 2019-09-06 | 深圳忆联信息系统有限公司 | Improve method, apparatus, computer equipment and the storage medium of the big file write performance of SSD |
CN111142807B (en) * | 2020-04-08 | 2020-06-23 | 上海飞旗网络技术股份有限公司 | Storage optimization method and device based on storage address traversal |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101777028A (en) * | 2010-01-21 | 2010-07-14 | 北京北大众志微系统科技有限责任公司 | Realization method and device of mixed secondary storage system |
CN102117248A (en) * | 2011-03-09 | 2011-07-06 | 浪潮(北京)电子信息产业有限公司 | Caching system and method for caching data in caching system |
CN103095805A (en) * | 2012-12-20 | 2013-05-08 | 江苏辰云信息科技有限公司 | Cloud storage system of data intelligent and decentralized management |
CN103400598A (en) * | 2007-08-14 | 2013-11-20 | 三星电子株式会社 | Solid state memory, computer system including same, and method of operating same |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100451976C (en) * | 2007-07-23 | 2009-01-14 | 清华大学 | Migration management based on massive data classified memory system |
-
2014
- 2014-03-17 CN CN201410099359.9A patent/CN104932830B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103400598A (en) * | 2007-08-14 | 2013-11-20 | 三星电子株式会社 | Solid state memory, computer system including same, and method of operating same |
CN101777028A (en) * | 2010-01-21 | 2010-07-14 | 北京北大众志微系统科技有限责任公司 | Realization method and device of mixed secondary storage system |
CN102117248A (en) * | 2011-03-09 | 2011-07-06 | 浪潮(北京)电子信息产业有限公司 | Caching system and method for caching data in caching system |
CN103095805A (en) * | 2012-12-20 | 2013-05-08 | 江苏辰云信息科技有限公司 | Cloud storage system of data intelligent and decentralized management |
Also Published As
Publication number | Publication date |
---|---|
CN104932830A (en) | 2015-09-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104932830B (en) | Information processing method and electronic equipment | |
US9229653B2 (en) | Write spike performance enhancement in hybrid storage systems | |
US9069474B2 (en) | Retention based defecting in a hybrid memory system | |
CN105573681A (en) | Method and system for establishing RAID in SSD | |
CN100524237C (en) | Computer hard disk data continuous time point storage and recovery method | |
KR20090017238A (en) | Solid state drive, data storing method thereof, and computing system including the same | |
CN101465164A (en) | Method, device and system for obliterating data | |
CN102646069A (en) | Method for prolonging service life of solid-state disk | |
US10365845B1 (en) | Mapped raid restripe for improved drive utilization | |
CN107122130B (en) | Data deduplication method and device | |
CN105487823A (en) | Data migration method and device | |
CN107273046B (en) | A kind of data processing method and system based on Solid-state disc array | |
US11734103B2 (en) | Behavior-driven die management on solid-state drives | |
JP2009163647A (en) | Disk array device | |
US20220035566A1 (en) | Pre-suspend before program in a non-volatile memory (nvm) | |
CN105988719B (en) | Storage device and its method for handling data | |
CN105867850A (en) | Information adjusting method and electronic equipment | |
KR102366512B1 (en) | logical block addressing range collision crawler | |
Ma et al. | Alleviating hot data write back effect for shingled magnetic recording storage systems | |
CN103631682B (en) | The implementation method of data backup and device | |
CN102867046B (en) | Database optimizing method based on solid state hard disc and system | |
CN106610788B (en) | Hard disk array control method and device | |
CN104035886B (en) | Disk remaps method, apparatus and electronic equipment | |
CN106155935A (en) | The rubbish recovering method of solid state hard disc flash memory and device | |
US11106390B1 (en) | Combining in-process reads to reduce die collisions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |