<div dir="auto"><div>On large scale systems, when swap is used at all, it's for parking a library that's used once then just held in ram forever and not touched. Fair amount of startup stuff hit this but newer systemd seems more tuned to use and release by termination. But there's still some glibc bits that eventually get parked. So running swap down to tiny is usually good. For a diskless compute node, set swap to off since it's all just ram anyway.</div><div dir="auto"><br></div><div dir="auto">If a web or mail server is eating swap, that's a problem. Cgroup tuning to set limits on processes might help. Sounds crazy to run the systems only web service in a container but the ability to set hard resource limits is pretty useful.</div><div dir="auto"><br></div><div dir="auto"><BOFH>Running all processes of an irritating user in swap is a great way to lower that user's expectations of system performance. This is recommended SOP for all new users to avoid later trouble tickets.</BOFH></div><div><br></div><div data-smartmail="gmail_signature"><div dir="ltr">-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i></i>Every time you stop a school, you will have to build a jail. What you 
        gain at one end you lose at the other. It's like feeding a dog on his 
        own tail. It won't fatten the dog.<br>

        - Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br></i></i></i></i></div></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sun, Jan 4, 2026, 10:21 AM Jeff Lightner via Ale <<a href="mailto:ale@ale.org">ale@ale.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Although "swap" became a misnomer once systems moved from "swapping" to<br>
"paging" setting up swap spaces is still an important factor on high memory<br>
systems.   While it is true swap size no longer has to match physical memory<br>
size (at least on Linux) it is also true that swap should be examined and<br>
possibly adjusted as one adds physical memory.<br>
<br>
Of course newer tuning settings such as "swapiness" are also important to<br>
examine and set.   <br>
<br>
Also, creating multiple equal size swap "devices" (LVs or partitions) is<br>
important as "paging" is done in a round robin fashion if tuned properly.<br>
<br>
<br>
-----Original Message-----<br>
From: Ale <<a href="mailto:ale-bounces@ale.org" target="_blank" rel="noreferrer">ale-bounces@ale.org</a>> On Behalf Of DJPfulio--- via Ale<br>
Sent: Sunday, January 4, 2026 10:12 AM<br>
To: <a href="mailto:ale@ale.org" target="_blank" rel="noreferrer">ale@ale.org</a><br>
Cc: <a href="mailto:DJPfulio@jdpfu.com" target="_blank" rel="noreferrer">DJPfulio@jdpfu.com</a><br>
Subject: Re: [ale] to lvm or not lvm is my dillema<br>
<br>
On 1/3/26 19:13, Steve Litt via Ale wrote:<br>
>> No.   If you increase physical RAM you often want to add SWAP<br>
>> devices.<br>
<br>
I disagree.<br>
<br>
Since around 2000, the old rules of 2-3x RAM for swap just don't apply if<br>
you want a responsive server.<br>
In the days of more than 4GB of RAM, swap use has drastically changed<br>
<br>
a) from "provide virtual memory"<br>
b) to "let the admin know when slowdowns are happening so steps can be<br>
taken".<br>
<br>
I try to run my servers without needing any swap, though the kernel setup<br>
prefers _some_ swap to enable performance features.  For the last 2+<br>
decades, I've never added more than 4GB swap to any system, including<br>
desktops.  Only desktops that are hibernated could need more.  For a long<br>
time, I ran servers with ZERO swap. I'd just size the RAM for the VM to be<br>
sufficient for the workload. This worked for almost a decade, but was<br>
probably a mistake. I don't recall when, but the kernel guys enable certain<br>
performance toggles only if there's some swap, so 500M is what I started<br>
adding to servers that really don't need any, but the kernel switches<br>
require. I still try to ensure workloads fit within the RAM only and turn<br>
down swappiness to minimal levels in the tuning.<br>
<br>
I'm assuming people can buy more RAM as needed for the workload.  That's<br>
been my experience regardless of workload for multiple decades - both for<br>
servers and desktops.  Laptops aren't desktops. They have a bunch of other<br>
issues, often which cannot be solved.<br>
<br>
Has swap changed again and I missed it?  That's entirely possible.<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank" rel="noreferrer">Ale@ale.org</a><br>
<a href="https://mail.ale.org/mailman/listinfo/ale" rel="noreferrer noreferrer" target="_blank">https://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank" rel="noreferrer">Ale@ale.org</a><br>
<a href="https://mail.ale.org/mailman/listinfo/ale" rel="noreferrer noreferrer" target="_blank">https://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>