This is a 371 national phase application of PCT/JP2008/051209 filed 28 Jan. 2008, which claims priority to Japanese Patent Application No. 2007-018153 filed 29 Jan. 2007, the contents of which are incorporated herein by reference.
The present invention relates to techniques for starting up plural operating systems.
Conventionally, techniques for operating plural processors in parallel are known (see, e.g., Patent Document 1). Patent Document 1 discloses that a primary processor that manages a system as a whole reads an operating system (OS) in a primary system disc at the time of startup. In response to an operation request from the primary processor, master processors for managing individual groups are started up in parallel. Each of the master processors for the individual groups that has been started up reads an OS in a group system disc and starts up a secondary processor in the group. In this way, the individual group master processors and secondary processors are started up in parallel.
As another technology for operating plural OS's in parallel, a virtual machine system is known. In this virtual machine system, real hardware (physical resources), such as processors and memory, are virtualized and plural hardware environments (virtual machines) are generated. In each of such virtual machines, an individual OS can be run.
Patent Document 1: Japanese Laid-Open Patent Application No. 10-116262
Techniques are being developed for increasing the start-up speed of OS in multi-processor systems in which a multi-core processor having plural processor cores or plural processors are implemented.
In this respect, the aforementioned conventional technique according to Patent Document 1 is limited in increasing the start-up speed of the individual OS's of the multi-processor system because in this technique, the processors are started up sequentially from the primary processor, the master processors for the individual groups, the individual secondary processors, and so on.
On the other hand, in the aforementioned conventional virtual machine system, because a host OS has the function of centrally managing shared hardware of the system, the host OS needs to be started up before a guest OS. As a result, the system is unable to increase the start-up speed of the individual OS's in a multi-processor system. Thus, the advantage of the multi-processor system for higher processing speed cannot be fully exploited.
Thus, it is an object of the present invention to provide an operating system startup control method and an information processing apparatus by which individual OS's in a multi-processor system can be started up at increased speed.
In a first aspect of the present invention, an operating system startup control method for starting an operating system processed by each of plural processors includes continuing an operation of an initial program loader for a specific one of the plural processors among the initial program loaders that are started up upon turning on of power supply to the plural processors, while deactivating an operation of an initial program loader for another processor other than the specific processor; starting up a managing program configured to manage a hardware resource shared by the plural processors, using the initial program loader for the specific processor; and starting up an operating system corresponding to the specific processor and another operating system corresponding to the other processor using the managing program that is started up.
In a second aspect, in the above operating system startup control method according to the first aspect, when the plural processors correspond to the same operating system, the method further includes the steps of starting up the operating system corresponding to the specific processor using the initial program loader for the specific processor without starting up the managing program; and starting up the operating system corresponding to the other processor using the operating system corresponding to the specific processor.
In a third aspect, in the above operating system startup control method according to the first or the second aspect, the plural processors comprise processor cores in a multi-core processor.
In a fourth aspect, an information processing apparatus includes plural processors for each of which an initial program loader is started up upon turning on of power supply. The plural processors include a specific processor for which an operation of the initial program loader that is started up is continued; and another processor for which an operation of the initial program loader that is started up is deactivated. A managing program configured to manage a hardware resource shared by the plural processors is started up by the initial program loader for the specific processor. An operating system corresponding to the specific processor and another operating system corresponding to the other processor are started up by the managing program that is started up.
In a fifth aspect, in the information processing apparatus according to the fourth aspect, when the operating systems to which the plural processors correspond are the same, the operating system corresponding to the specific processor is started up by the initial program loader for the specific processor without starting up the managing program, and the operating system corresponding to the other processor is started up by the operating system corresponding to the specific processor.
In a sixth aspect, in the information processing apparatus according to the fourth or fifth aspect, the plural processors comprise processor cores in a multi-core processor.
In accordance with the present invention, each of plural OS's in a multi-processor system can be started up at higher speed.
In the following, preferred embodiments of the present invention are described with reference to the drawings.
As shown in
As shown in
The OS's processed by the cores 0, 1, 2, and 3 may include a realtime OS (hereafter referred to as a “RT-OS”), or a multimedia OS (“MM-OS”). The OS's processed by the individual cores may not be the same. By partitioning the multi-processor system into independently operable systems each with a processor, the multiple OS's can be operated in parallel, whereby the system can be diversified or increased in size.
The RT-OS has enhanced functions for batch processing and TSS (Time Sharing System) in order to give priority to realtime processing. In the case of a control program used in a control system ECU for vehicle control, the RT-OS is used because it is capable of processing certain processes in real time that need the realtime processing in order to ensure high levels of control response and safety. Examples of the RT-OS include OSEC and ITRON.
The MM-OS is superior to the RT-OS in handling compression/expansion processing such as an MPEG codec, user interface processes such as GUI (Graphical User Interface), and multimedia processes such as an Internet connection process including security management. In an information system ECU, an MM-OS capable of realizing required multimedia processing is used. Examples of the MM-OS are Linux (registered trademark) and QNX (registered trademark).
When power is supplied to the multi-core processor 10 from a power supply circuit (not shown), the internal cores 0, 1, 2, and 3 are also supplied with power. Of the cores 0, 1, 2, and 3 thus supplied with power, an initial program loader (IPL) of the core 0 reads an OS bridge 50 (program) stored in the ROM 30 into the RAM 20 and starts it up. The IPL is a program for executing a preparatory process for booting the OS at the booting stage, including initialization of memory.
With reference to
Each of the OS bridges operated by the individual cores then acquires a core number from a nonvolatile memory such as the ROM 30. The OS bridge then selects an OS to be started up based on a predetermined correspondence between the core number and the OS to be installed on the core, and gives control to an entry point of the selected OS. The individual cores then start a startup process for the corresponding OS's in parallel. In the process of starting up the individual OS, when accessing the hardware resources shared among the OS's, contention for hardware resources is avoided by performing an exclusive access control by the shared hardware management function of the OS bridge.
The OS bridge (0) then selects the OS-0 corresponding to the core 0 and shifts to the entry point of the OS-0, thereby starting up the OS-0. Thus, the startup process for the OS-0(0) is started by the core 0. In parallel, the OS bridge (1) similarly selects the corresponding OS-1 and shifts to the entry point of the OS-1, thus starting up the OS-1. In this way, the startup process for the OS-1(1) is started by the core 1.
Once the startup process for each OS is started, the kernel and the user interface portion are initialized, as in a conventional OS startup process. In the kernel initializing stage, initialization is performed sequentially from hardware-dependent portions to non-hardware-dependent portions. Specifically, CPU architecture-dependent portions are initialized (steps 50, 52), system dependent portions are initialized (steps 56, 58), and then non-hardware-dependent portions are initialized (steps 62, 64). In the initialization stage for the CPU architecture-dependent portions or system dependent portions, each of the OS-0(0) being started up by the core 0 and the OS-1(1) being started up by the core 1 calls the OS bridge and utilizes its shared hardware function in order to avoid hardware resource contention (steps 54, 60).
Then in the initialization stage for the user interface portions, scheduling begins (steps 66, 68), whereby the process shifts to a steady execution status (steps 70, 72) and the OS starts up services. Thus, the startup of the OS is completed.
As in the case of
The IPL(0) then acquires its core number and makes an ID determination, whereby the OS-0 corresponding to the core 0 is selected. The IPL(0) then shifts to the entry point of the OS-0 and starts up the OS-0. Thus, the startup process for the OS-0(0) is started by the core 0. The OS-0(0) operated by the core 0 acquires the core number of the dormant core 1 and performs ID determination, thereby selecting the OS-0 corresponding to the core 1 and shifting to the entry point of the OS-0, whereby the OS-0 is started up (step 88). Thus, the startup process for the OS-0(1) is started by the core 1. The process after the starting of the startup process for each of the OS's is the same as described with reference to
Thus in accordance with the foregoing embodiment, when plural processor cores are started up in parallel, the individual cores can be started up at higher speed (i.e., the booting timing of each core can be forwarded) by taking the shared hardware managing function out of the OS as an OS bridge. For example, when the core 0 operates the host OS and the other cores operate guest OS's, by separating the shared hardware managing function from the host OS where it is normally contained, the guest OS's of the other cores can be started up even before the starting up of the host OS is completed. Thus, contention for hardware resources among the individual OS's can be avoided by the OS bridge having the shared hardware managing function.
When the plural cores use the same OS, the startup speed can be made even faster because the OS of the core 0 starts up the other OS's while skipping the startup process by the OS bridge.
Although this invention has been described in detail with reference to certain embodiments, variations and modifications exist within the scope and spirit of the invention as described and defined in the following claims.
For example, although the foregoing embodiments are directed to the plural processor cores in a multi-core processor, an embodiment of the present invention may be directed to plural single-core processors. Furthermore, the number of the cores in the foregoing embodiments is merely exemplary and may be varied in other embodiments.
The present application is based on the Japanese Priority Application No. 2007-018153 filed Jan. 29, 2007, the entire contents of which are hereby incorporated by reference.
Number | Date | Country | Kind |
---|---|---|---|
2007-018153 | Jan 2007 | JP | national |
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/JP2008/051209 | 1/28/2008 | WO | 00 | 4/22/2009 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2008/093638 | 8/7/2008 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5642506 | Lee | Jun 1997 | A |
5724527 | Karnik et al. | Mar 1998 | A |
5867702 | Lee | Feb 1999 | A |
7882341 | Rothman et al. | Feb 2011 | B2 |
20030131225 | Bradley | Jul 2003 | A1 |
20050108511 | Zimmer et al. | May 2005 | A1 |
20060047939 | Devins et al. | Mar 2006 | A1 |
20060069904 | Hatakeyama | Mar 2006 | A1 |
20070033389 | Shamia et al. | Feb 2007 | A1 |
Number | Date | Country |
---|---|---|
06-149696 | May 1994 | JP |
06-295289 | Oct 1994 | JP |
07-036704 | Feb 1995 | JP |
08-006914 | Jan 1996 | JP |
10-116262 | May 1998 | JP |
2004-287618 | Oct 2004 | JP |
2006-350406 | Dec 2006 | JP |
Number | Date | Country | |
---|---|---|---|
20100049960 A1 | Feb 2010 | US |