Performance engineering

Maximum Efficiency. Minimum Unnecessary Overhead. This is how the project intends to work on performance. It is not a claim about results.

The method

  1. Measure a baseline

    Record how the system behaves now, with the hardware, version and settings written down.

  2. Find the bottleneck

    Look for the one thing that limits the result, instead of guessing.

  3. Change one thing

    A single change can be judged. Several at once cannot.

  4. Measure again

    Same test, same conditions, enough repetitions to see the spread.

  5. Keep, or undo

    A change that does not help is removed, along with its complexity.

What will be studied

Memory allocation and caching

Memory should be ready when a program needs it and returned when it does not. Caches help only while the saved time is worth the memory they hold.

Scheduling and interrupt latency

The scheduler picks what runs next. Interrupts carry news from devices. The time between an event and the response is part of the delay a player feels.

Context-switch overhead

Moving the processor from one program to another has a cost. Fewer needless switches leave more time for the game.

Safe zero-copy operations

Passing data without copying it saves work, but only where memory protection still holds. Safety decides where it can be used.

Resource management

Background work should wait while a game needs the processor, memory or storage, and should still finish.

Reproducible measurement

A result counts when somebody else can repeat it. Method, raw data and conditions belong with every number.

Why averages mislead

UnevenEven
Illustration, not a measurement. Both rows take the same total time, so their average is equal. The tall bars in the first row are the moments a player notices.

Low usage is not the goal

Low processor or memory use alone does not prove better performance. Memory that holds useful data saves time. A busy processor may be doing exactly what you asked. What counts is whether the same work is finished sooner and more steadily, with nothing lost in safety.

What a published result must include

What is not claimed

There are no frame-rate, boot-time or latency figures, and no comparison with another system. Results will appear on benchmarks.

In the Linux-based prototype

These features belong to the earlier prototype, not to the independent operating system.

Memory Guard reported memory pressure and compressed memory use. It advised and did not act on running apps. Task Manager showed live CPU, memory, memory pressure and temperatures, and said plainly when a value was unavailable.