Background technology
Comprise that disposal system reads by the needed data of os starting the time and the log-on data that in volatile storage system, spend and carries out the needed time of operating system user interface original state from nonvolatile memory the start-up time of operating system in volatile storage system.Wherein, volatile storage system comprises the disk of personal computer, the flash memory of portable electric appts (Flash) or SD card (Secure Digital Memory Card) etc.Current main quick turn-on technology is to utilize method or the dormancy of optimizing startup flow process to start to save the time of second portion, and there is a big chunk on time to spend in first, is difficult to be optimized.
In current most of electronic product scheme, disposal system is as CPU(Central Processing Unit, central processing unit) utilize general-purpose storage access interface (Storage Access Interface, NandFlash Interface for example, referred to as NFI) remove to access a unique nonvolatile memory chip, by command interface, to storage chip, send its data of command request and prepare in the cache memory of chip internal, by data-interface from nonvolatile memory chip read data.As shown in Figure 1, once the flow process (take Flash as example) of typical os starting comprises:
Step 101: send reading order by CPU and require read data.
Step 102: data-moving is arrived in the high-speed cache (cache) of Flash IC inside by Flash IC.
Step 103: inquire about Flash IC state by CPU.Comprising reading the register of Flash IC or sending querying command, if having data in the cache of Flash IC inside, perform step 104.
Step 104: copy the data in cache to internal memory.
The required cost of step 102 chronic, and the time of the required cost of step 104 is very short, the most of the time all consumes at Flash IC innerly, and this time, CPU was in idle condition.Therefore the time that shortens the required cost of step 102 is the technical matters of paying close attention to and being difficult to resolve most most in current quick turn-on field.
Utility model content
The technical matters that the utility model solves is, a kind of electronic equipment is provided, and shortened the needed information of os starting and from memory device, read out the spent time, greatly improved the speed of electronic equipment start.
For solving the problems of the technologies described above, the utility model embodiment provides a kind of electronic equipment, comprise disposal system, Nonvolatile memory system and volatile storage system, Nonvolatile memory system comprises at least two read-write controllers and at least one data storage area, and the os starting data of electronic equipment are cut into and correspond respectively at least two log-on data pieces of read-write controller and be stored in data storage area; Disposal system sends the read command to read-write controller, and to control, read-write controller is parallel reads the data in corresponding log-on data piece, and the data conversion storage that disposal system further reads read-write controller is to volatile storage system.
Wherein, Nonvolatile memory system further comprises at least two cache memories that correspond respectively to read-write controller, read-write controller is stored to the data that read in corresponding cache memory, disposal system further by the data conversion storage of storing in cache memory to volatile storage system.
Wherein, disposal system comprises that is processed a core, process core with polling mode by the data conversion storage of storing at least two cache memories to volatile storage system.
Wherein, disposal system comprises processes cores corresponding at least two of read-write controller, process core and send reading order to corresponding read-write controller, and by the data conversion storage of storing at least two cache memories to volatile storage system.
Wherein, at least two processing core set are formed in same processing unit or are arranged at different processing units.
Wherein, process core at least two and comprise at least one main processing core, whether the data that main processing core further scans in volatile storage system meet os starting requirement, and when meeting, start the operating system.
Wherein, the quantity of data storage area is corresponding with the quantity of read-write controller, and the log-on data piece of corresponding read-write controller is stored in each data storage area.
Wherein, Nonvolatile memory system comprises a plurality of separate nonvolatile memories, and each storer comprises a read-write controller and corresponding cache memory and data storage area.
For solving the problems of the technologies described above, the utility model embodiment also provides a kind of electronic equipment, comprise disposal system, volatile memory and at least two nonvolatile memories, each nonvolatile memory comprises read-write controller and data storage area, and the os starting data of electronic equipment are cut into quantity at least two the log-on data pieces corresponding with nonvolatile memory and are stored in the data storage area of corresponding nonvolatile memory; Disposal system sends the read command to the read-write controller of each nonvolatile memory, and to control, read-write controller is parallel reads the data in corresponding log-on data piece, and the data conversion storage that disposal system further reads read-write controller is to volatile memory.
Wherein, each nonvolatile memory further comprises cache memory, each read-write controller is stored to the data that read in corresponding cache memory, disposal system further by the data conversion storage of storing in cache memory to volatile memory.
Wherein, disposal system comprises that is processed a core, process core with polling mode by the data conversion storage of storing at least two cache memories to volatile storage system.
Wherein, disposal system comprises that quantity corresponding with read-write controller at least two processes cores, process core and send reading order to corresponding read-write controller, and by the data conversion storage of storing at least two cache memories to volatile storage system.
Wherein, at least two processing core set are formed in same processing unit or are arranged at different processing units.
Wherein, process core at least two and comprise at least one main processing core, whether the data that main processing core further scans in volatile storage system meet os starting requirement, and when meeting, start the operating system.
Pass through such scheme, the beneficial effects of the utility model are: by least two read-write controllers and at least one data storage area are set in Nonvolatile memory system, and the os starting data of electronic equipment are cut into and correspond respectively at least two log-on data pieces of read-write controller and be stored in data storage area, disposal system control read-write controller walks abreast and reads the data in corresponding log-on data piece, can shorten the needed information of os starting and from memory device, read out the spent time, greatly improved the speed of electronic equipment start.
Embodiment
Fig. 2 is the structural representation of the electronic equipment of the utility model the first embodiment.As shown in Figure 2, the electronic equipment of the present embodiment comprises Nonvolatile memory system 10, disposal system 11 and volatile storage system 12.Wherein, as shown in Figure 3, Nonvolatile memory system 10 comprises at least two read-write controllers 101,102 and at least one data storage area 103.The os starting data of electronic equipment are cut into and correspond respectively at least two log-on data pieces of read-write controller 101,102 and be stored in data storage area 103.Disposal system 11 sends the read command to read-write controller 101,102, and to control, read-write controller 101,102 is parallel reads the data in corresponding log-on data piece.Nonvolatile memory system 10 further comprises at least two cache104, the 105(cache memory that corresponds respectively to read-write controller 101,102), read-write controller 101,102 is stored to the data that read in corresponding cache104,105, disposal system 11 further by cache104,105 storage data conversion storage to volatile storage system 12.In other embodiment of the present utility model, Nonvolatile memory system 10 can comprise a plurality of data storage areas 103, and the quantity of data storage area 103 is corresponding with the quantity of read-write controller, each data storage area 103 storage is the log-on data piece of corresponding read-write controller 101,102 respectively.It should be noted that, Nonvolatile memory system 10 can be Nand Flash, also can be other memory devices, as eMMC(Embedded Multi Media Card, embedded multimedia card), USB(Universal Serial BUS, USB (universal serial bus)) storer, network memory, or the combination of multiple distinct device.
Os starting data can be divided into the essential data of os starting (boot image) and can wait until the data (data image) that load again after os starting.In the present embodiment, os starting data can be boot image wherein, can be also whole os starting data.
In the present embodiment, disposal system 11 comprises that is processed a core, process core with polling mode by the data conversion storage of storage at least two cache104,105 to volatile storage system 12.In other embodiment of the present utility model, disposal system 11 comprises at least two processing cores corresponding to read-write controller 101,102, be integrated in same processing unit or be arranged at different processing units, disposal system 11 is a plurality of core processing units or a multi-core processing unit.Certainly, in other embodiments, disposal system 11 also can be the synthesis of core processing unit and multi-core processing unit, or the combination of the CPU of a plurality of different frameworks.Process core and send reading orders to corresponding read-write controller 101,102, and by the data conversion storage of storage at least two cache104,105 to volatile storage system 12.Process core for these at least two and comprise at least one main processing core, whether the data that main processing core further scans in volatile storage system 12 meet os starting requirement, and when meeting, start the operating system.
In the present embodiment, as shown in Figure 4, the programming flow process of the os starting data of electronic equipment comprises the following steps:
Step S201: the os starting data that obtain a electronic equipment.These os starting data can be the original log-on datas of operating system obtaining by compiling system, or the memory mirror obtaining by operating system dormancy, or optimize boot image later.
Step S202: os starting data are cut into many parts.The os starting size of data of assumption of complete is XMB(megabyte), total total C1, C2, these read-write controllers independently of Cn, os starting data comprise log-on data piece S1, log-on data piece S2 and log-on data piece Sn, and os starting data are according to binary(scale-of-two) order cut.First determine the reading speed of each read-write controller to every log-on data piece, suppose that read-write controller C1 is Y1MB/S(megabyte per second to the reading speed of log-on data piece S1), read-write controller C2 is Y2MB/S to the reading speed of log-on data piece S2, read-write controller Cn is Yn MB/S to the reading speed of log-on data piece Sn, the size of log-on data piece S1 should be X*Y1/ (Y1+Y2+Yn) MB so, the size of log-on data piece S2 should be X*Y2/ (Y1+Y2+Yn) MB, and the size of log-on data piece S3 should be X*Y3/ (Y1+Y2+Yn) MB.So, can make full use of resource to reach the fastest toggle speed.
Step S203: each read-write controller writes different data storage area 103 by every part of os starting data respectively.
As shown in Figure 5, carry out following steps during the os starting of electronic equipment:
Step S301: disposal system 11 sends reading order and requires read data to read-write controller.
Step S302: read-write controller is also about to data-moving in cache.
Step S303: whether disposal system 11 inquiry cache data are ready to.If so, perform step S304; If not, repeated execution of steps S303.
Step S304: copy the data in cache to internal memory.
Step S305: confirm whether the log-on data in data storage area all runs through.If so, perform step S306; If not, perform step S301.
Step S306: check that whether whole os starting data are complete.If data integrity, performs step S307; If data are imperfect, return to step S301 and again attempt reading.In other embodiment of the present utility model, also can directly exit quick turn-on flow process, enter normal boot-strap flow process and go to read the original not log-on data through cutting, finally jump to S307.
Step S307: the initial start position that jumps to operating system is carried out startup.
In the present embodiment, at least two read-write controllers 101,102 and at least one data storage area 103 are set in Nonvolatile memory system 10, and the os starting data of electronic equipment are cut into and correspond respectively at least two log-on data pieces of read-write controller 101,102 and be stored in data storage area 103.Disposal system 11 control read-write controllers 101,102 walk abreast and read the data in corresponding log-on data piece, can shorten the needed information of os starting and from memory device, read out the spent time, have greatly improved the speed of start.
Fig. 6 is the structural representation of the electronic equipment of the utility model the second embodiment.As shown in Figure 6, the electronic equipment of the present embodiment comprises disposal system 21, volatile memory 22 and at least two nonvolatile memories 20,23.Each nonvolatile memory 20,23 comprises read-write controller 201,231, data storage area 203,233 and cache202,232.The os starting data of electronic equipment are cut into quantity at least two the log-on data pieces corresponding with nonvolatile memory quantity, and are stored in respectively the data storage area 203,233 of corresponding nonvolatile memory 20,23.Disposal system 21 sends the read command to the read-write controller 201,231 of each nonvolatile memory 20,23, and to control, read-write controller 201,231 is parallel reads the data in corresponding data storage area 203,233.Each read-write controller 201,231 is stored to the data that read in corresponding cache202,232.Disposal system 21 further reads to read-write controller 201,231 data conversion storage in cache202,232 to volatile memory 22.
In the present embodiment, disposal system 21 comprises that is processed a core, process core with polling mode by the data conversion storage of storage at least two cache202,232 to volatile storage system.In other embodiment of the present utility model, disposal system 21 comprises at least two processing cores that quantity is corresponding with read-write controller 201,231, is integrated in same processing unit or is arranged at different processing units.Process core and send reading orders to corresponding read-write controller 201,231, and by the data conversion storage of storage at least two cache202,232 to volatile storage system.And, process core for these at least two and comprise at least one main processing core, whether the data that main processing core further scans in volatile storage system meet os starting requirement, and when meeting, start the operating system.
In the present embodiment, electronic equipment comprises at least two nonvolatile memories 20,23, and each nonvolatile memory comprises respectively read-write controller, data storage area and cache.Os starting data are cut into quantity at least two the log-on data pieces corresponding with nonvolatile memory and are stored in the data storage area of corresponding nonvolatile memory, disposal system 21 sends the read command to the read-write controller 201,231 of each nonvolatile memory 20,23, with control read-write controller 201,231, walk abreast and read the data in corresponding data storage area 203,233, thereby shortened the needed information of os starting, from memory device, read out the spent time, greatly improved the speed of electronic equipment start.
In sum, the utility model arranges at least two read-write controllers and at least one data storage area in Nonvolatile memory system, the os starting data of electronic equipment are cut into at least two log-on data pieces that correspond respectively to read-write controller and are stored in data storage area, disposal system control read-write controller walks abreast and reads the data in corresponding log-on data piece, can shorten the needed information of os starting and from memory device, read out the spent time, greatly improve the speed of electronic equipment start.
The foregoing is only embodiment of the present utility model; not thereby limit the scope of the claims of the present utility model; every equivalent structure or conversion of equivalent flow process that utilizes the utility model instructions and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present utility model.