Rikus Zram
Rikus Zram

Mehr Arbeitsspeicher,
ohne neuen Riegel.

More memory,
without buying any.

Aktuelle Fassung: 2.32

zram einrichten und einstellen — mit Schiebereglern statt Terminal. Auch wenn dein Rechner noch gar kein zram hat. Dazu swappiness und Swap‑Dateien. Das Programm zeigt, was da ist, empfiehlt was passt, und misst nach jeder Änderung selbst nach. Kostenlos.

Current version: 2.32

Set zram up and tune it — with sliders instead of a terminal. Even if your machine has no zram at all yet. Plus swappiness and swap files. It shows what is there, recommends what fits, and verifies every change itself. Free of charge.

Kostenlos anfordern Get it free

Alle Rechte vorbehalten · Debian, Ubuntu, Mint, MX, antiX · systemd und SysVinit · Version 2.32 ansehenAll rights reserved · Debian, Ubuntu, Mint, MX, antiX · systemd and SysVinit · view v 2.32

Was ist zram überhaupt?

Stell dir deinen Arbeitsspeicher als Schreibtisch vor. Alles, woran der Rechner gerade arbeitet, liegt darauf. Wird der Tisch voll, muss etwas weichen.

Swap ist der Aktenschrank auf der Festplatte: Selten Gebrauchtes wandert hinein. Der Tisch wird frei — aber das Zurückholen dauert, denn die Platte ist viel langsamer als der Speicher.

zram ist der Vakuumbeutel: Statt etwas wegzuräumen, presst das System es auf dem Tisch selbst zusammen. Wie Winterkleidung im Vakuumbeutel — es passt viel mehr hinein, und nichts muss den Tisch verlassen. Typisch werden Daten 3‑ bis 4‑fach kleiner: 4 GB belegen am Ende etwa 1 GB.

Einstellen ließ sich das bisher nur über getippte Befehle und das Bearbeiten von Systemdateien. Rikus Zram macht daraus ein Fenster.

What is zram anyway?

Think of your RAM as a desk. Everything the computer is currently working on lies on it. When the desk fills up, something has to give way.

Swap is the filing cabinet on the disk: rarely used items move into it. The desk frees up — but fetching things back takes time, because the disk is far slower than memory.

zram is the vacuum bag: instead of moving things away, the system compresses them on the desk itself. Like winter clothes in a vacuum bag — much more fits, and nothing has to leave the desk. Typically data becomes 3–4× smaller: 4 GB ends up occupying about 1 GB.

Until now this could only be configured by typing commands and editing system files. Rikus Zram turns that into a window.

Die Zahlen verstehen

Understanding the numbers

Fünf Fragen, die fast jeder stellt — hier in Alltagssprache beantwortet.

Five questions almost everyone asks — answered in plain language.

„htop, free und fastfetch zeigen mehr Auslagerung, als ich eingestellt habe“

Beide Zahlen stimmen — die Programme zählen nur anders zusammen.

Für Linux ist alles „Auslagerung“ (englisch swap), was Daten aus dem Arbeitsspeicher aufnehmen kann. zram gehört dazu, und die Swap-Datei auf der Platte auch. htop, free und fastfetch nennen deshalb die Summe aus beidem — eine einzige Zahl.

Beispiel: 15,4 GB zram (im Arbeitsspeicher) + 2 GB Swap-Datei (auf der Platte) = 17,4 GB. Genau das steht dann in fastfetch.

Rikus Zram zeigt dir die beiden Zahlen stattdessen getrennt, weil sie ganz Verschiedenes bedeuten: zram liegt im Arbeitsspeicher und ist schnell, die Datei liegt auf der Platte und ist langsam.

Die große Zahl ist also kein Grund zur Sorge. Sie sagt nur: So viel könnte der Rechner insgesamt auslagern. Nicht: So viel liegt schon irgendwo herum.

“htop, free and fastfetch show more swap than I set up”

Both numbers are right — the tools simply group them differently.

To Linux, anything that can take data out of RAM counts as swap. That includes zram, and it includes the swap file on the disk. So htop, free and fastfetch report the sum of the two — a single figure.

Example: 15.4 GB of zram (inside RAM) + 2 GB swap file (on disk) = 17.4 GB. That is exactly what fastfetch then shows.

Rikus Zram shows the two numbers separately, because they mean very different things: zram sits in RAM and is fast, the file sits on the disk and is slow.

So the large figure is nothing to worry about. It only says: this much could be swapped out in total. Not: this much is already sitting somewhere.

„Wird jetzt alles auf die Platte geschrieben?“

Nein. Jeder Auslagerungsbereich hat eine Rangzahl, und Linux nimmt immer den mit der höchsten zuerst. Rikus Zram gibt zram die 100 und der Swap-Datei die 10.

Ausgelagert wird deshalb zuerst in den komprimierten Bereich im Arbeitsspeicher — schnell, ohne die Platte überhaupt anzufassen. Die Datei kommt erst dran, wenn Arbeitsspeicher und zram voll sind.

Im Alltag bleibt die Datei darum leer. Sie ist ein Sicherheitsnetz, kein Lagerplatz: Sie sorgt dafür, dass dir bei einem Ausreißer nicht sofort ein Programm abgeschossen wird.

“Does everything get written to the disk now?”

No. Every swap area has a priority, and Linux always uses the highest one first. Rikus Zram gives zram priority 100 and the swap file priority 10.

So swapping goes into the compressed area inside RAM first — fast, without touching the disk at all. The file is only used once RAM and zram are full.

In everyday use the file therefore stays empty. It is a safety net, not a storage place: it makes sure a runaway program does not get killed straight away.

„Im Internet steht, swappiness soll 10 sein — warum empfiehlt das Programm 150?“

Weil der Rat „10“ aus einer Zeit stammt, in der Auslagern immer hieß: auf eine langsame Festplatte schreiben. Da war Zurückhaltung richtig.

Mit zram ist es umgekehrt. Auslagern heißt jetzt: im Arbeitsspeicher zusammenpressen. Das geht schnell und tut nicht weh. Je früher der Rechner selten Gebrauchtes beiseiteschiebt, desto mehr Platz bleibt für das, woran du gerade arbeitest.

Deshalb ist hier ein hoher Wert richtig. 150 hat sich in der Praxis am besten bewährt. Der Wert allein macht nichts kaputt und lässt sich jederzeit wieder zurückstellen.

“The internet says swappiness should be 10 — why does the program recommend 150?”

Because the advice “10” comes from a time when swapping always meant writing to a slow hard disk. Holding back made sense then.

With zram it is the other way round. Swapping now means compressing inside RAM. That is fast and harmless. The sooner the machine moves rarely used things aside, the more room stays for what you are working on.

So here a high value is the right one. 150 has proven best in practice. The value on its own breaks nothing and can be moved back at any time.

„Wie groß sollte die Swap-Datei sein?“

Für den Alltag reicht eine kleine Reserve. Wer viel Arbeitsspeicher hat, kommt mit ein paar Gigabyte aus — die Datei bleibt ohnehin leer und greift nur im Notfall. Größer machen bringt nichts; es belegt nur Platz auf der Platte.

Es gibt eine Ausnahme: den Ruhezustand. Dabei muss der ganze Arbeitsspeicher auf die Platte passen — die Datei muss also mindestens so groß sein wie dein Arbeitsspeicher. Das Programm rechnet dir die nötige Größe aus und schreibt dir hin, ab wann es geht.

Auf btrfs kommt eine Besonderheit dazu: Die Datei bekommt einen eigenen abgetrennten Bereich. Sonst könnte Timeshift keine Sicherungspunkte mehr anlegen — lautlos. Das Programm legt den Bereich selbst richtig an, du musst nichts tun.

“How big should the swap file be?”

For everyday use a small reserve is enough. With plenty of RAM, a few gigabytes will do — the file stays empty anyway and only steps in when things get tight. Making it bigger gains nothing; it just occupies disk space.

There is one exception: hibernation. For that the whole of RAM has to fit onto the disk, so the file must be at least as large as your RAM. The program works out the size you need and tells you from which size it becomes possible.

On btrfs there is one more thing: the file gets its own separate subvolume. Otherwise Timeshift could no longer take snapshots — silently. The program creates that area correctly by itself; you do not have to do anything.

„Ruhezustand oder Bereitschaft — was ist der Unterschied?“

Bereitschaft ist das, was beim Zuklappen passiert: Der Rechner schläft, der Arbeitsspeicher bleibt unter Strom. Aufwachen dauert eine Sekunde — aber der Akku läuft weiter langsam leer, und ist er leer, ist alles Offene weg.

Ruhezustand schreibt den ganzen Arbeitsspeicher in die Swap-Datei und schaltet den Rechner ganz aus — kein Strom. Beim Einschalten ist alles wieder offen, als wärst du nie weg gewesen. Dafür dauert das Hoch- und Runterfahren länger.

Damit das geht, braucht es zwei Dinge: eine ausreichend große Swap-Datei und einen Eintrag in der Startkonfiguration, der dem System sagt, wo es beim Einschalten nachsehen soll. Rikus Zram richtet beides mit einem Haken ein — und nimmt mit „Rückgängig“ alles wieder heraus.

Auf Ubuntu und Linux Mint kommt hinzu, dass der Ruhezustand ab Werk gesperrt ist. Auch diese Sperre hebt das Programm auf — und setzt sie beim Zurücknehmen wieder wie ab Werk.

“Hibernate or standby — what is the difference?”

Standby is what happens when you close the lid: the machine sleeps, RAM stays powered. Waking takes a second — but the battery keeps draining slowly, and once it is empty everything you had open is gone.

Hibernation writes the whole of RAM into the swap file and switches the machine completely off — no power at all. When you switch it back on, everything is open again as if you had never left. In exchange, shutting down and starting up take longer.

Two things are needed for this: a large enough swap file and an entry in the boot configuration that tells the system where to look on start-up. Rikus Zram sets up both with one checkbox — and “Undo” takes all of it back out again.

On Ubuntu and Linux Mint hibernation is also blocked by default. The program lifts that block as well — and restores it to the factory state when you undo.

Das kann es — auf einen Blick

What it can do — at a glance

Arbeitsspeicher besser nutzen — mit Schiebereglern statt Terminal.

Make better use of your memory — with sliders instead of a terminal.

Die eigene Paketquelle

Our own package source

Einmal eintragen — und jede neue Fassung kommt von selbst.

Set it up once — every new version then arrives on its own.

Bisher musstest du für jede neue Fassung wieder auf diese Seite kommen und die Datei von Hand holen. Ab Fassung 1.29 geht es auch anders: Rikus Zram hat eine eigene Paketquelle. Das ist dieselbe Technik, mit der dein System auch alle anderen Programme aktuell hält. Du trägst sie einmal ein — danach erscheint jede neue Fassung ganz normal bei deinen Systemaktualisierungen, ohne dass du etwas tun musst.

Until now you had to come back to this page for every new version and fetch the file by hand. From version 1.29 there is another way: Rikus Zram has its own package source. It is the same technique your system uses to keep all other programs current. You add it once — after that every new version simply shows up with your normal system updates, with nothing left for you to do.

Schritt 1 — den Schlüssel holen. Damit erkennt dein Rechner, dass die Pakete wirklich von uns kommen und unterwegs niemand etwas verändert hat. Auf frisch installierten Rechnern fehlt oft das kleine Programm curl – der Befehl holt es gleich mit:

Step 1 — get the key. With it your computer can tell that the packages really come from us and that nobody changed anything on the way. Freshly installed computers often lack the small program curl – the command installs it first:

sudo apt update && sudo apt install -y curl && sudo install -d /etc/apt/keyrings && sudo curl -fsSL https://apt.rikus.info/rikus-apt.gpg -o /etc/apt/keyrings/rikus.gpg

Schritt 2 — die Quelle eintragen. Eine einzige Zeile, die deinem System sagt, wo es nachschauen soll:

Step 2 — add the source. One single line telling your system where to look:

echo "deb [signed-by=/etc/apt/keyrings/rikus.gpg] https://apt.rikus.info stable main" | sudo tee /etc/apt/sources.list.d/rikus.list

Schritt 3 — einspielen.

Step 3 — install.

sudo apt update && sudo apt install rikus-zram

Beim ersten Start fragt das Programm nach deinem Freischaltcode. Den bekommst du kostenlos über den Knopf oben auf dieser Seite — Name, E-Mail, Land, und der Code kommt sofort per Mail. Er wird einmal eingetippt und danach nie wieder verlangt.

On first start the program asks for your unlock code. You get it free of charge using the button at the top of this page — name, e-mail, country, and the code arrives by mail at once. You type it once and are never asked again.

Wenn du das Programm schon hast: Du musst nichts neu installieren. Trage die Quelle ein wie oben, und die neue Fassung wird dir als ganz normales Update angeboten — auch von Rikus Updateall. In derselben Quelle liegen auch Rikus Software und Rikus Updateall.

If you already have the program: nothing needs reinstalling. Add the source as shown above and the new version is offered to you as an ordinary update — including by Rikus Updateall. The same source also carries Rikus Software and Rikus Updateall.

Du willst die Quelle wieder loswerden? Zwei Zeilen, und alles ist wie vorher — das Programm selbst bleibt installiert:

Want to remove the source again? Two lines and everything is as before — the program itself stays installed:

sudo rm /etc/apt/sources.list.d/rikus.list /etc/apt/keyrings/rikus.gpg && sudo apt update

Es bricht mit einer Meldung über Abhängigkeiten ab? Das passiert auf Debian 13 und LMDE 7, wenn dort das Zusatzlager backports eingeschaltet ist und schon Pakete daraus benutzt werden, zum Beispiel für Hyprland. Dann passen zwei Bausteine nicht zusammen. So klappt es:

It stops with “unmet dependencies”? This happens on Debian 13 and LMDE 7 when the backports repository is switched on and packages from it are already in use, for example for Hyprland. Then two building blocks do not fit together. This works:

sudo apt install -t trixie-backports rikus-zram

Was es kann

What it does

✨

Richtet zram überhaupt erst ein

Sets zram up in the first place

Hat dein Rechner noch gar kein zram? Dann installiert das Programm das Nötige, stellt es ein und schaltet es dauerhaft an — auch auf Systemen ohne systemd, wo sonst gar nichts starten würde. Das kann sonst kein Programm mit Fenster.

Your machine has no zram at all? The program installs what is needed, configures it and switches it on for good — including on systems without systemd, where otherwise nothing at all would start. No other GUI does this.

🛑

Ampel statt Fachchinesisch

A traffic light, not jargon

Grün, gelb oder rot — mit einem Satz dazu, was das für deinen Rechner bedeutet. Rot heißt: weder zram noch Swap, Programme werden abgeschossen, wenn der Speicher voll ist.

Green, amber or red — with one sentence on what it means for your machine. Red means: neither zram nor swap, so programs get killed when memory runs out.

📈

Empfehlung für diesen Rechner

A recommendation for this machine

Aus RAM‑Größe, SSD oder Festplatte, Dateisystem und Ruhezustand wird berechnet, was passt — mit Begründung in normaler Sprache, nicht als Faustregel aus dem Internet.

From RAM size, SSD or spinning disk, filesystem and hibernation setup it works out what fits — with the reasoning in plain words, not a rule of thumb from the internet.

🎟️

Drei Schieberegler

Three sliders

zram‑Größe, swappiness und Swap‑Datei. Die Regler stehen auf dem, was jetzt eingestellt ist; die Empfehlung ist als Markierung sichtbar. Verschieben tust du selbst.

zram size, swappiness and swap file. Sliders sit on what is set right now; the recommendation shows as a marker on the scale. You move them yourself.

👁️

Vorschau vor jeder Änderung

Preview before every change

Erst zeigt ein Fenster in Klartext, was geschehen würde und welche Dateien vorher gesichert werden. Dann erst kommt die Passwortabfrage.

First a window lists in plain words what would happen and which files get backed up. Only then comes the password prompt.

🔄

Sicherung und Rückgängig

Backup and undo

Jede angefasste Datei wird vorher kopiert. Ein Knopf stellt den Zustand von davor wieder her.

Every file touched is copied first. One button restores the state from before.

✅

Es misst selbst nach

It verifies itself

Nach dem Übernehmen prüft das Programm eigenständig, ob die Änderung wirklich gegriffen hat — mit ✔ oder ✘ je Punkt. Kein „müsste jetzt passen“.

After applying, the program checks on its own whether the change actually took effect — with ✔ or ✘ per item. No "should be fine now".

⚙️

systemd und SysVinit

systemd and SysVinit

Es erkennt selbst, wie dein System startet, und wählt den richtigen Weg. Damit läuft es auch auf MX Linux, antiX und Devuan — wo die meisten anderen Werkzeuge aussteigen.

It detects how your system boots and picks the right path. That means it also runs on MX Linux, antiX and Devuan — where most other tools give up.

💾

btrfs ohne böse Überraschung

btrfs without nasty surprises

Auf btrfs bekommt die Swap‑Datei einen eigenen Bereich. Sonst könnte Timeshift lautlos keine Sicherungspunkte mehr anlegen — man merkt es erst, wenn man sie braucht.

On btrfs the swap file gets its own subvolume. Otherwise Timeshift would silently stop making restore points — and you would only notice when you need one.

🔒

Anschauen ist gefahrlos

Looking is harmless

Messen und Empfehlen läuft ganz ohne Passwort und ohne Schreibzugriff. Swap‑Partitionen werden nie verändert — nur Dateien.

Measuring and recommending runs entirely without a password and without writing. Swap partitions are never modified — only files.

📏

Zahlen, die zu deinem System passen

Numbers that match your system

Alles wird in GiB angezeigt — so, wie Linux tatsächlich rechnet und wie es auch fastfetch, htop und free zeigen. Dazu die Gesamtsumme der Auslagerung, damit du die Zahl aus anderen Programmen hier wiederfindest.

Everything is shown in GiB — the way Linux actually counts, and what fastfetch, htop and free report too. Plus the total amount of swap, so the number you see in other tools appears here as well.

🌐

Deutsch & Englisch

German & English

Die Oberfläche passt sich automatisch deiner Systemsprache an.

The interface automatically matches your system language.

So geht's

How it works

Fünf Schritte — und du kannst jederzeit aufhören, ohne etwas verändert zu haben.

Five steps — and you can stop at any point without having changed a thing.

  1. Das .deb‑Paket herunterladen — es landet im Ordner Downloads. Dort doppelt anklicken und auf „Paket installieren“ klicken. Kein Terminal nötig.
  2. Download the .deb package — it lands in your Downloads folder. Double-click it there and choose “Install Package”. No terminal needed.
  3. Im Startmenü unter System → Rikus Zram öffnen.
  4. Open it from the menu under System → Rikus Zram.
  5. Die erste Seite zeigt deinen Ist‑Zustand. Hier wird nichts verändert — es wird nur geschaut.
  6. The first page shows your current state. Nothing is changed here — it only looks.
  7. Auf „Empfehlung ansehen“ klicken, die Erklärungen lesen und die Regler dorthin schieben, wo du sie haben willst.
  8. Click "See the recommendation", read the explanations, and move the sliders where you want them.
  9. Vorschau ansehen, übernehmen, Passwort eingeben — das Programm sichert, ändert und misst nach.
  10. Look at the preview, apply, enter your password — the program backs up, changes and verifies.

Ausführlich für Anfänger, mit jedem Fachbegriff erklärt: die ganze Anleitung. Was sich in jeder Fassung geändert hat: Änderungsprotokoll. In detail for beginners, every technical term explained: the full guide. What changed in each release: changelog.

Alle Rechte vorbehalten · von Gilbert Rikus All rights reserved · by Gilbert Rikus

Voraussetzungen: Debian, Ubuntu, Linux Mint, LMDE, MX Linux, antiX, Zorin, Pop!_OS oder ein Verwandter. Dein normales Benutzerpasswort — und auch das nur für Änderungen, nicht fürs Anschauen.

Requirements: Debian, Ubuntu, Linux Mint, LMDE, MX Linux, antiX, Zorin, Pop!_OS or a relative. Your normal user password — and that only for changes, not for looking.

Einmal anmelden — der Code kommt sofort per E-Mail.Sign up once — the code arrives by e-mail at once.

☕ Wenn es dir geholfen hat☕ If it helped you

Dieses Programm kostet nichts und wird auch nie etwas kosten. Ich baue es in meiner Freizeit. Wenn es dir Arbeit erspart hat und du magst, freue ich mich über einen Kaffee — und wenn nicht, ist das genauso in Ordnung.This program is free and always will be. I build it in my spare time. If it saved you some work and you feel like it, I would be glad about a coffee — and if not, that is just as fine.

☕ Einen Kaffee spendieren☕ Buy me a coffee

Freiwillig · über PayPal · jeder Betrag hilftEntirely voluntary · via PayPal · any amount helps

📋 Was sich geändert hat📋 What has changed·✉️ Neues per E-Mail bekommen✉️ Get news by e-mail