Trix (operating system)

From Wikipedia, the free encyclopedia
Jump to: navigation, search

TRIX is a research network-oriented operating system compatible with UNIX version 7. TRIX was developed in the late 1970s at MIT's Laboratory for Computer Science (LCS) by Professor Steve Ward and his research group. TRIX's kernel uses remote procedure calls (RPC). It was developed with the NuMachine.

Design and implementation[edit]

On startup, the NuMachine would load the same program on each CPU in the system, giving each running copy of the program the numeric ID of the CPU it was on. TRIX relied on this design to have the first CPU set up global data structures and then set a flag to signal that initialization was finished.[1] After that, each CPU ran a copy of the kernel, with each copy able to access global data.[1] The system also supported data private to each CPU.[1] Access to the filesystem was provided by a program in user space.[1][2]

The kernel supported unnamed threads that ran within domains.[1] A domain was the equivalent of a UNIX process without a stack pointer[2] (each thread in a domain had a stack pointer[2]). A thread could change domains,[1] and the system scheduler would migrate threads between CPUs in order to keep all processors busy.[1] Threads had access to a single kind of mutual exclusion primitive, and one of seven priorities.[1] The scheduler was designed to avoid priority inversion.[1] User space programs could create threads through a spawn system call.[1]

A garbage collector would periodically identify and free unused domains.[1]

The shared memory model used to coordinate work between the various CPUs caused memory bus contention and was known to be a source of inefficiency.[1][2] The designers were aware of designs that would have alleviated the contention.[2] Indeed, TRIX's original design used a nonblocking message passing mechanism,[2] but "this implementation was found to have deficiencies often overlooked in the literature,"[2] including poor performance.[2]

Although the TRIX operating system was first implemented on the NuMachine, this was more a result of the availability of the NuMachine at MIT than any characteristic of the architecture.[1] The system was designed to be easily portable.[2] It was implemented largely in C with little assembly code. The mutual exclusion primitive could be ported to any architecture with an atomic test and set instruction.[1]

Attempted use by the GNU Project[edit]

Richard Stallman mentions in the GNU Manifesto, that "an initial kernel exists but many more features are needed to emulate Unix."[3] He was referring to TRIX's kernel, which TRIX's authors had decided to distribute as free software.[4]

In a speech, Stallman elaborated that "The TRIX kernel runs, and it has a certain limited amount of Unix compatibility, but it needs a lot more. Currently it has a file system that uses the same structure on disk as the ancient Unix file system does. This made it easier to debug the thing, because they could set up the files with Unix, and then they could run TRIX, but that file system doesn't have any of the features that I believe are necessary."[5] The features Stallman wished to add (file versioning, undeletion, information on when and how and where the file was backed up on tape, atomic file updates) are not generally associated with UNIX, but would have made the system much easier to use.

In December 1986, TRIX's kernel was used as a base in the first attempt to create a kernel for the GNU operating system. However, the GNU developers eventually decided it was unusable as a starting point, primarily because:

  • it only ran on "an obscure, expensive 68000 box"[4] and would therefore have to be ported to other architectures before it could be used, and
  • it was decided that using the Mach microkernel as a base for a server based operating system was a better operating system design for GNU.[citation needed] This second attempt evolved into the GNU Hurd.

See also[edit]

References[edit]


  1. ^ a b c d e f g h i j k l m n "A Multiple Processor Implementation of the TRIX Operating System". Retrieved 2012-07-02. 
  2. ^ a b c d e f g h i "TRIX: A Communications Oriented Operating System". Retrieved 2012-07-02. 
  3. ^ "The GNU Manifesto". Retrieved 2010-08-05. 
  4. ^ a b "GNU's Bulletin Volume 1 No. 2". GNU's Bulletin 1 (2): 4. January 1987. Retrieved 2010-08-05. 
  5. ^ "RMS lecture at KTH". Retrieved 2014-04-10.