Shorten the method for on time
Technical field
The present invention is about a kind of method of computer booting, particularly a kind of method that shortens the on time.
Background technology
In computer booting program in the past, mainly be to read basic output/go into system program (BIOS) earlier, to carry out the initial setting and the test of hardware, and after each nextport hardware component NextPort operates normally in confirming computing machine, just begin to read the data of relevant operating system program (OS) in the hard disk, carry out the control and the computing of each assembly in the computing machine with the load operation system.
But this known start flow process, because operating system program (OS) is to be stored among the hard disk, because the restriction of data on hard disc access speed, often make computing machine at the beginning of starting, only when loading the in-cycle work program, just expended a large amount of time, stressed today of efficient doing things, the place that this situation then often becomes the user and denounced.
In addition because under the limited case of present data on hard disc access technique, though there is the seagate at tool minicomputer system interface (SCSI) to come out, can promote the access speed of data on hard disc, but be based on consumer and user's applied mental, in order to shorten the computer booting required time, and need remove to buy a hard disk unit in addition on the computing machine of oneself, not only considering in cost and economic benefit, all be not inconsistent outside the requirement, increase the puzzlement of user on using a computer especially.
Therefore the shortening at the on time requires, if can be on the cost that does not increase the user, promptly reaches when shortening the requiring of on time, and this technology will be changed hard disk to shorten the technology of on time, favored by the user.
Summary of the invention
The object of the present invention is to provide a kind of method that shortens the on time,, reach the purpose that shortens the computer booting required time by the operation of this method.
Therefore for reaching above-mentioned purpose, method of the present invention comprises following operation workflow: when computer booting, at first must read basic output/go into system program (BIOS) and the control program of starting shooting; Control high-speed cache (Cache) read operation system preloaded image then; Then from high-speed cache (Cache) read operation system preloaded image; At last just from hard disk read operation system down-stream.
As for the start control program of control the present invention running, its method for making more comprises the following step: operating system program (OS) data that at first reads hard disk; Control high-speed cache (Cache) read operation system program (OS) then; Then recording disk sector number and correspondence obtain the operating system preloaded image; Store at last this start control program.
Describe for the summary that the present invention discloses method by the front, can solve existing problem in the background note, and expection can reach the effect that shortens the computer booting required time.
Description of drawings
Fig. 1 is a start control program establishment process flow diagram of the present invention; And
Fig. 2 is an execution start process flow diagram of the present invention.
Embodiment
A kind of method that shortens the on time, making and execution by a start control program, during the control computer start, when reading basic output/go into system program (BIOS), utilize high-speed cache (Cache) read operation system preloaded image, and in basic output/go into system program (BIOS) load with test after, again from high-speed cache (Cache) read operation system preloaded image, and behind operating system preloaded image loaded, from hard disk load operation system down-stream, to finish the method that whole operation system program (OS) loads.By the operation of this method, expection can reach the purpose that shortens the computer booting required time.
Therefore for reaching above-mentioned purpose, at first by Fig. 1 start control program establishment of the present invention process flow diagram, the establishment explanation of the control program of starting shooting; As shown in Figure 1, at first read operating system program (OS) data (step 110) of hard disk; Control high-speed cache (Cache) read operation system program (OS) (step 120) then; Then recording disk sector number and correspondence obtain operating system preloaded image (step 130); Store at last start control program (step 140).
At the beginning of the establishment of the control program of starting shooting, computing machine requires to read action for operating system program (OS) data of hard disk, and the device that reads of control is the high-speed cache (Cache) of computing machine, reads operating system program (OS) data in the hard disk by the high-speed cache (Cache) of computing machine; And write down the hard disk sector numbering at whole operation system program (OS) data place simultaneously; Follow the data quantity of the operating system program (OS) that can read according to high-speed cache (Cache), making obtains an operating system preloaded image, and together with its corresponding hard disk sector numbering, stores into one start control program.This start is after control program is compiled into, and in the time of can be in order to the in-cycle work of control subsequent calculations machine, control computer be utilized high-speed cache (Cache) read operation system preloaded image, to shorten the required time of computer booting.
After the establishment flow process of the start control program of having stated the required utilization of relevant the inventive method by Fig. 1, continue by Fig. 2 execution start of the present invention process flow diagram the operation workflow when explaining orally actual operation of the present invention.
As shown in Figure 2, at first when computer booting, read basic output/go into system program (BIOS) and start control program (step 210); Then control high-speed cache (Cache) read operation system's preloaded image (step 220); And then from high-speed cache (Cache) read operation system's preloaded image (step 230); At last just from hard disk read operation system's down-stream (step 240).
When main frame receives the signal of unlatching, control central processing unit (CPU) at first reads basic output/go into system program (BIOS), with initial setting and the test of carrying out hardware, to guarantee in the computing machine that each assembly can operate as normal, and read the start control program simultaneously, according to start control program control high-speed cache (Cache) read operation system preloaded image, load central processing unit (CPU) to prepare to export/go into system program (BIOS) substantially, execute after the initial setting and test of hardware, can read the operating system preloaded image that reads in advance from high-speed cache (Cache) earlier, and after the reading operation of complete operation system preloaded image, the operating system down-stream that does not load is as yet read in continuation from hard disk, to finish the loading work of whole operation system (OS).
Therefore for realizing the method for the shortening on time that the present invention put forward, must be in the time of computer booting, good good utilisation is execution work and access speed high-speed cache (Cache) faster not; But because the data quantity that high-speed cache (Cache) can store is limited, therefore the data of whole operation system program must be divided into operating system preloaded image and operating system down-stream two parts, and the sector number that is stored in hard disk by program is auxiliary, the data of operating system program (OS) is divided into operating system preloaded image and the two-part data quantity of operating system down-stream really, during then by start control program control start, part about the operating system preloaded image is then read by high-speed cache (Cache) in advance, then provide as for operating system down-stream part by the database of hard disk, when starting shooting thus, can pass through high-speed cache (Cache) access data characteristic faster, shorten the time of computer booting.