Method for supporting user level online diagnostics on Linux

Error detection/correction and fault detection/recovery – Data processing system error or fault handling – Reliability and availability

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C714S042000, C711S170000

Reexamination Certificate

active

06832333

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Technical Field
This invention relates to a module for supporting online diagnostics in a Linux operating system. More specifically, the module enables mapping of contiguous physical memory from kernel address space to a user level address space.
2. Description of the Prior Art
Conventional memory allocators return memory which is contiguous in the virtual address space but is not guaranteed to be contiguous in the physical address space. For example, the Linux operating system's user level kernel memory allocator (malloc) does not allocate memory blocks which are guaranteed to be contiguous in the physical address space. Accordingly, memory allocated using conventional mechanisms are not guaranteed to be usable for online cache testing in the Linux operating system environment.
In prior art computer systems utilizing the Unix operating system, a special memory buffer is allocated during kernel initialization to allow online processor cache testing. The memory buffer is mapped from the kernel level to the user level program. The buffer accounts for the requirement of allocating memory returns that are contiguous in both the virtual address space and the physical address space. However, the prior art memory buffer requires modification of the kernel by allocating the memory buffer during kernel initialization. In addition, the prior art memory buffer allocated at initialization remains in the system even when it is not required. Accordingly, the prior art memory buffer for the Unix operating system is static and does not allow active allocation of memory on an as needed basis.
There is therefore a need for a module that will allow user level processes to generate memory access which can be used to test the hardware caches in a Linux operating system on an as needed basis. The module must return memory to the user level which is contiguous in both the virtual and physical address spaces. Accordingly, it is desirable to provide a module that allows online testing of hardware cache without changing the kernel of the operating system.
SUMMARY OF THE INVENTION
This invention comprises a module for supporting online cache diagnostics in a Linux operating system. The module is dynamically loadable from the user space.
A first aspect of the invention is a method for supporting memory diagnostics. A module is loaded to a kernel of the operating system. A block of contiguous memory is allocated. Contiguous memory is mapped from the kernel address space to the user process address space. Control of the physical memory displacement between accesses is controlled from the user level. The memory is contiguous in both physical and virtual address spaces.
A second aspect of the invention is a computer system which includes a module adapted to be dynamically loaded to a kernel of an operating system. The module includes a manager to allocate contiguous memory. The manager maps contiguous physical memory from a kernel address space to a user process address space. The memory is contiguous in both the physical and virtual address space. A user level program controls physical memory displacement between accesses.
A third aspect of the invention is an article comprising a computer-readable signal bearing medium. In the medium, the article includes a module adapted to be dynamically loaded to a kernel of an operating system for allocating a block of contiguous memory. The module includes a manager for mapping contiguous memory from a kernel address space to a user process address space. A user level program controls physical memory displacements between accesses.
Other features and advantages of this invention will become apparent from the following detailed description of the presently preferred embodiment of the invention, taken in conjunction with the accompanying drawings.


REFERENCES:
patent: 6226725 (2001-05-01), Yarborough
patent: 6256523 (2001-07-01), Diab et al.
patent: 2002/0038437 (2002-03-01), Hogdal et al.
patent: 2003/0074604 (2003-04-01), Mathias et al.
Frey, Martin, “Linux: mapping driver memory into user space,” http://www.scs.ch/~frey/linux/memorymap.html, Jun. 10, 2001.*
“Linux: mapping driver memory into user space,” http://www.scs.ch/~frey/linux/memorymap.html, Oct. 17, 2001.
“<tt>mmap()</tt> kernel memory to user-space,” http://kernelnewbies.org/code/mmap/, Oct. 17, 2001.

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 for supporting user level online diagnostics on Linux 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 for supporting user level online diagnostics on Linux, we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Method for supporting user level online diagnostics on Linux will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3292445

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