Linux Format

Answers

Q Early swap usage

I’m using Kubuntu 19.10 and noticed that swap was used very early after starting the desktop, even if there’s still RAM available (4GB RAM, KDE Plasma desktop). How can I troubleshoot what’s causing this early use of swap? isn’t swap supposed to be used only if RAM is full? Can I do something about it?

Leon Butcher

A This is not a problem to be solved, it is the system working as it should. Memory management in Linux is both advanced and mature – years have gone into optimising it. Data is moved from memory to swap because it is unlikely to be needed but has to remain available in memory in some form. For example, code used when starting up system services may not need to be accessed once those services are running, so it can be safely paged to swap.

Linux will try to use all the memory available to it. RAM not occupied with code or data will be used for filesystem caching to speed up disk usage. So swapping out unneeded data can make your system faster. It is also worth bearing in mind that if RAM does become short and the system needs to swap out

You’re reading a preview, subscribe to read more.

More from Linux Format

Linux Format1 min read
Kaki Pi
Another Pi-like SBPC appears! From Yuridenk-Shokai in Japan, this packs a Renesas RZ/V2H Coretex-A55/R8/M33 MPU with 80 TOPS of AI. It’s aimed at robotics and has four CSI video inputs along with a PCIe 3 connection. Find out more in Japanese: www.ka
Linux Format11 min readInternet & Web
Ultra-smooth Home Game Streaming
Credit: https://moonlight-stream.org, https://github.com/LizardByte Michael Reed is a consummate Linux professional who has been moonlighting for us so that he can live in the sunshine. (are we actually paying for these gags?–Ed) You can install the
Linux Format1 min read
Nvidia Moves To Block ZLUDA
As more and more applications rely on the combination of Nvidia and CUDA, it was inevitable that third-parties would try to build on their success. There’s already examples of this, such as ZLUDA, a drop-in replacement for CUDA. The implications of

Related Books & Audiobooks