ArticleslgStudy

computer science

MOSIX

MOSIX is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand MOSIX rather than just read about it. In short: MOSIX is a proprietary distributed operating system. Although early versions were based on older UNIX systems, since 1999 it focuses on Linux clusters and grids.

Key takeaways

  • MOSIX belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect MOSIX to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of MOSIX from memory before moving on to harder problems.

Reference excerpt

MOSIX is a proprietary distributed operating system. Although early versions were based on older UNIX systems, since 1999 it focuses on Linux clusters and grids. In a MOSIX cluster/grid there is no need to modify or to link applications with any library, to copy files or login to remote nodes, or even to assign processes to different nodes – it is all done automatically, like in an SMP.

History MOSIX has been researched and developed since 1977 at The Hebrew University of Jerusalem by the research team of Prof. Amnon Barak. So far, ten major versions have been developed. The first version, called MOS, for Multicomputer OS, (1981–83) was based on Bell Lab's Seventh Edition Unix and ran on a cluster of PDP-11 computers. Later versions were based on Unix System V Release 2 (1987–89) and ran on a cluster of VAX and NS32332-based computers, followed by a BSD/OS-derived version (1991–93) for a cluster of 486/Pentium computers. Since 1999 MOSIX is tuned to Linux for x86 platforms.

MOSIX2 The second version of MOSIX, called MOSIX2, compatible with Linux-2.6 and 3.0 kernels. MOSIX2 is implemented as an OS virtualization layer that provides users and applications with a single system image with the Linux run-time environment. It allows applications to run in remote nodes as if they run locally. Users run their regular (sequential and parallel) applications while MOSIX transparently and automatically seeks resources and migrates processes among nodes to improve the overall performance. MOSIX2 can manage a cluster and a multicluster (grid) as well as workstations and other shared resources. Flexible management of a grid allows owners of clusters to share their computational resources, while still preserving their autonomy over their own clusters and their ability to disconnect their nodes from the grid at any time, without disrupting already running programs. A MOSIX grid can extend indefinitely as long as there is trust between its cluster owners. This must include guarantees that guest applications will not be modified while running in remote clusters and that no hostile computers can be connected to the local network. Nowadays these requirements are standard within clusters and organizational grids. MOSIX2 can run in native mode or in a virtual machine (VM). In native mode, performance is better, but it requires modifications to the base Linux kernel, whereas a VM can run on top of any unmodified operating system that supports virtualization, including Microsoft Windows, Linux and Mac OS X. MOSIX2 is most suitable for running compute intensive applications with low to moderate amount of input/output (I/O). Tests of MOSIX2 show that the performance of several such applications over a 1 Gbit/s campus grid is nearly identical to that of a single cluster.

Main features Provides aspects of a single-system image: Users can login on any node and do not need to know where their programs run. No need to modify or link applications with special libraries. No need to copy files to remote nodes. Automatic resource discovery and workload distribution by process migration: Load-balancing. Migrating processes from slower to faster nodes and from nodes that run out of free memory. Migratable sockets for direct communication between migrated processes. Secure run time environment (sandbox) for guest processes. Live queuing – queued jobs preserve their full generic Linux environment. Batch jobs. Checkpoint and recovery. Tools: automatic installation and configuration scripts, on-line monitors.

MOSIX for HPC MOSIX is most suitable for running HPC applications with low to moderate amount of I/O. Tests of MOSIX show that the performance of several such applications over a 1 Gbit/s campus grid is nearly identical to that of a single cluster. It is particularly suitable for:

Efficient utilization of grid-wide resources, by automatic resource discovery and load-balancing. Running applications with unpredictable resource requirements or run times. Running long processes, which are automatically sent to grid nodes and are migrated back when these nodes are disconnected from the grid. Combining nodes of different speeds, by migrating processes among nodes based on their respective speeds, current load, and available memory. A few examples:

Scientific applications – genomic, protein sequences, molecular dynamics, quantum dynamics, nano-technology and other parallel HPC applications. Engineering applications – CFD, weather forecasting, crash simulations, oil industry, ASIC design, pharmaceutical and other HPC applications.

MOSIX4 MOSIX4 was released in July 2014. As of version 4, MOSIX doesn't require kernel patching.

openMosix After MOSIX became proprietary software in late 2001, Moshe Bar forked the last free version and started the openMosix project on February 10, 2002. On July 15, 2007, Bar decided to end the openMosix project effective March 1, 2008, claiming that "the increasing power and availability of low cost multi-core processors is rapidly making single-system image (SSI) clustering less of a factor in computing". These plans were reconfirmed in March 2008. The LinuxPMI project is continuing development of the former openMosix code.

Further reading

MOSIX4 A. Barak and A. Shiloh. The MOSIX Cluster Management System for Distributed Computing on Linux Clusters and Multi-Cluster private Clouds white paper, 2016. A. Barak and A. Shiloh. MOSIX Administrator's, User's and Programmer's Guides and Manuals. Revised for MOSIX-4.3, 2015.

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with MOSIX

Start with the simplest possible case. Write down what MOSIX claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to MOSIX before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about MOSIX ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of MOSIX

In research
MOSIX appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses MOSIX in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
MOSIX is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cluster computing, Distributed operating systems, Grid computing, so understanding it makes those chapters shorter.
In everyday life
Look for MOSIX outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “MOSIX” →

How to study MOSIX in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what MOSIX means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain MOSIX out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is MOSIX in simple terms?

MOSIX is a proprietary distributed operating system. Although early versions were based on older UNIX systems, since 1999 it focuses on Linux clusters and grids.

Why does MOSIX matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study MOSIX?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on MOSIX.

Tags

  • Cluster computing
  • Distributed operating systems
  • Grid computing
  • Internet Protocol based network software
  • Parallel computing

Keep exploring