Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Symmetric multiprocessor operating system for execution on non-independent lightweight thread contexts

a multi-processor operating system and lightweight technology, applied in multi-programming arrangements, program control, climate sustainability, etc., can solve the problems of low performance improvement that may be achieved through exploitation of instruction-level parallelism, low performance, and low performance of single-threaded microprocessor pipeline stages, etc., to achieve high scalable performance, low cost, and low cost

Active Publication Date: 2007-02-22
MIPS TECH INC
View PDF99 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

The present invention describes modifications to existing SMP operating systems that allow a multithreaded processor to run highly scalable, lightweight thread contexts within a multithreaded processor that would normally be unable to run an image, or instance, of the operating system, to function as a physical CPU for the purposes of resource management. The invention provides a multiprocessing system that includes a multithreading microprocessor with a plurality of thread contexts and a virtual processing element (VPE) for receiving and servicing interrupt requests. The VPE is enabled to select one of the thread contexts to execute a thread to service an active interrupt request, while the second control indicator is set to disable the VPE from servicing any other interrupt requests. The system also includes a multiprocessor operating system (OS) that schedules execution of threads on the thread contexts and masks individual ones of the interrupt requests to prevent redundancy. The invention allows an SMP operating system to run on a multithreaded processor, making it possible to exploit existing coarse-grain multithadding technology.

Problems solved by technology

However, the performance improvement that may be achieved through exploitation of instruction-level parallelism is limited.
One example of a performance-constraining issue addressed by multithreading microprocessors is the fact that accesses to memory outside the microprocessor that must be performed due to a cache miss typically have a relatively long latency.
Consequently, some or all of the pipeline stages of a single-threaded microprocessor may be idle performing no useful work for many clock cycles.
Other examples of performance-constraining issues addressed by multithreading microprocessors are pipeline stalls and their accompanying idle cycles due to a data dependence; or due to a long latency instruction such as a divide instruction, floating-point instruction, or the like; or due to a limited hardware resource conflict.
The cost of replicating the architectural state for the additional logical processor in the Xeon in terms of additional chip size and power consumption is almost 5%.
Examples of common exceptions include a page fault, a divide by zero, a faulty address generated by the program, a bus error encountered by the processor when attempting to read a memory location, or an invalid instruction exception caused by an invalid instruction opcode or invalid instruction operand.
Thus, although there is an architected means for a thread context to direct an asynchronous exception to a VPE, the thread context cannot specify to the VPE which thread context should handle the exception within the VPE in a MIPS MT ASE processor, i.e., the exception architecture does not provide an explicit way for the thread context to direct an asynchronous exception to a specific other thread context.
This is a problem, particularly with MP operating systems, such as Linux SMP, that rely on the ability of one CPU to direct an inter-processor interrupt to another CPU in response to a timer interrupt request in order to accomplish preemptive multitasked process scheduling.
However, the existing MP operating systems do not have knowledge of the MIPS MT VPE / TC hierarchy, and in particular because a MIPS MT thread context is much more lightweight than a MIPS MT VPE and does not provide all the architectural state of a VPE, the existing MP operating systems do not view a MIPS MT core having M thread contexts as an M CPU system.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Symmetric multiprocessor operating system for execution on non-independent lightweight thread contexts
  • Symmetric multiprocessor operating system for execution on non-independent lightweight thread contexts
  • Symmetric multiprocessor operating system for execution on non-independent lightweight thread contexts

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] For a better understanding of exception processing, translation lookaside buffer (TLB) operation, and floating point unit (FPU) coprocessor operation on MIPS architecture processors in general, the reader is referred to MIPS RISC Architecture, by Gerry Kane and Joe Heinrich, published by Prentice Hall, and to See MIPS Run, by Dominic Sweetman, published by Morgan Kaufman Publishers.

[0052] Embodiments of the present invention are described herein in the context of a processor core that includes the MIPS® MT Application-Specific Extension (ASE) to the MIPS32® Architecture; however, the present invention is not limited to a processor core with said architecture. Rather, the present invention may be implemented in any processor system which includes a plurality of thread contexts for concurrently executing a corresponding plurality of threads, but which does not include an interrupt input for each of the plurality of thread contexts that would allow one thread context to direct ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A multiprocessing system is disclosed. The system includes a multithreading microprocessor, including a plurality of thread contexts (TCs), each comprising a first control indicator for controlling whether the TC is exempt from servicing interrupt requests to an exception domain for the plurality of TCs, and a virtual processing element (VPE), comprising the exception domain, configured to receive the interrupt requests, wherein the interrupt requests are non-specific to the plurality of TCs, wherein the VPE is configured to select a non-exempt one of the plurality of TCs to service each of the interrupt requests, the VPE further comprising a second control indicator for controlling whether the VPE is enabled to select one of the plurality of TCs to service the interrupt requests. The system also includes a multiprocessor operating system (OS), configured to initially set the second control indicator to enable the VPE to service the interrupts, and further configured to schedule execution of threads on the plurality of TCs, wherein each of the threads is configured to individually disable itself from servicing the interrupts by setting the first control indicator, rather than by clearing the second control indicator.

Description

CROSS REFERENCE TO RELATED APPLICATION(S) [0001] This application is a continuation-in-part (CIP) of the following co-pending Non-Provisional U.S. patent applications, which are hereby incorporated by reference in their entirety for all purposes: Ser. No.(Docket No.)Filing DateTitle11 / 313,272Dec. 20, 2005SOFTWARE EMULATION(MIPS.0214-00-US)OF DIRECTEDEXCEPTIONS IN AMULTITHREADINGPROCESSOR11 / 313,296Dec. 20, 2005PREEMPTIVE(MIPS.0214-01-US)MULTITASKINGEMPLOYING SOFTWAREEMULATION OFDIRECTED EXCEPTIONSIN A MULTITHREADINGPROCESSOR[0002] Each of the two above co-pending Non-Provisional U.S. patent applications is a continuation-in-part (CIP) of the following co-pending Non-Provisional U.S. patent application, which is hereby incorporated by reference in its entirety for all purposes: Ser. No.(Docket No.)Filing DateTitle10 / 929,097Aug. 27, 2004APPARATUS,(MIPS.0194-00-US)METHOD, ANDINSTRUCTIONFOR SOFTWAREMANAGEMENTOF MULTIPLECOMPUTATIONALCONTEXTS IN AMULTITHREADEDMICROPROCESSOR[0003] Co-pend...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(United States)
IPC IPC(8): G06F9/46
CPCG06F9/3851Y02D10/24G06F9/4881G06F9/4812Y02D10/00
Inventor KISSELL, KEVIN
Owner MIPS TECH INC
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products