Method and apparatus for timing duration of initialization...

Electrical computers and digital processing systems: support – Clock – pulse – or timing signal generation or analysis – Counting – scheduling – or event timing

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C713S002000, C714S036000, C710S010000

Reexamination Certificate

active

06530031

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Technical Field
The present invention relates generally to an improved data processing system and in particular to a method and an apparatus for improving boot ROM and operating system initialization. Still more particularly, the present invention provides a method to accurately measure time durations for tasks during system initialization.
2. Description of the Related Art
An operating system (OS) is essential for any general-purpose computer. The OS provides the fundamental layer of software between the user or application program and the computer hardware. Some of the services provided by a typical operating system are program execution, input/output (I/O) operations, file-system manipulation, communication, error detection, resource allocation, accounting, and protection. A typical OS may be command-line oriented (e.g., AIX, Advanced Interactive Executive) or windows-oriented (e.g., OS/2).
Loading and running the operating system is accomplished by using a bootstrap program. Normally, starting the OS is a two step process. There is a “simple” boot program that is usually stored in the system ROM (Read Only Memory). This program needs no initialization. The job of the ROM boot program is to initialize registers in the CPU (Central Processing Unit), initialize device controllers, such as for the system disk and memory, and initialize memory contents. The ROM boot program can read and write to memory and can load from a boot block oh the system disk. This boot block contains a more complex boot program that actually loads the operating system itself.
An operating system (OS) is a large, complex program that provides a wide variety of services. The entire OS need not be resident in memory at all times. However there is a small kernel that is always resident in main memory. The kernel does not run as a thread (a stream of execution) and so it cannot be pre-empted. The kernel cannot be paged out to disk, that is, it cannot be removed from memory and written to the swap space on a disk. The kernel contains the most frequently used functions in the operating system, including thread scheduling, process switching, exception and interrupt handling, and multiprocessor synchronization.
The job of the “complex” boot program loaded from the boot block on the system disk is to locate the operating system kernel, load the kernel into memory, and then transfer instruction control to the initial address in the kernel. The operating system itself goes through initialization, as users can observe by periodic status messages appearing on the screen. Depending on the size of the operating system and complexity of the computer system, this process can take tens of seconds, minutes, or even tens of minutes. In order to improve this initialization process, it would be advantageous to have precise timing measurements for each of the tasks in the initialization process.
Typically the initialization routines for each of the processes or devices have not been written with “instrumentation” code that allows timing of the code itself. Instrumenting each piece of code would be time consuming and dangerous if, as a result, the code does not function properly. In the past, “ad hoc” techniques have been used to provide timings for each of the initialization steps. A pencil, paper, and stopwatch does not provide accurate readings, particularly on a modern system with the CPU clock speed in the hundreds of millions of instructions per second. Although initialization can be laborious, many steps occur too quickly to allow for hand measurements. Capturing screen images or other initialization indications internally during initialization is not feasible since access to system resources for storage may not be available yet. Externally videotaping the screen is possible, but this is a cumbersome process and readings may not be any more accurate than the stopwatch method.
Therefore, it would be advantageous to have a method and apparatus to perform the system initialization timing measurements in an unobtrusive, accurate, and automated manner.
SUMMARY OF THE INVENTION
The present invention discloses a method and apparatus to provide accurate and automated timing of firmware routines, such as initialization tasks at boot time. Since each task sends a progress indicator code to a display buffer when it starts to run, by saving processor time stamps at the time these codes change, it is possible to calculate and store the time duration for each routine. In the case of system initialization, these time durations can be an indication of problems if they are much longer than normal or an indication of excessive, inefficient, or ineffective processing that might be speeded up in order to reduce the total boot time.


REFERENCES:
patent: 4951681 (1990-08-01), Mortara
patent: 6016466 (2000-01-01), Guinther et al.
patent: 6058475 (2000-05-01), McDonald et al.
patent: 6122663 (2000-09-01), Lin et al.

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Method and apparatus for timing duration of initialization... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Method and apparatus for timing duration of initialization..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method and apparatus for timing duration of initialization... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3010379

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.