F5F Stay Refreshed Software Operating Systems SWAP partition is not always necessary on a modern Linux PC.

SWAP partition is not always necessary on a modern Linux PC.

SWAP partition is not always necessary on a modern Linux PC.

Pages (3): Previous 1 2 3 Next
B
BrizTato
Member
58
11-30-2023, 09:48 PM
#11
Discover how to set up a swap file on Ubuntu 18.04 under LVM with an encrypted filesystem.
B
BrizTato
11-30-2023, 09:48 PM #11

Discover how to set up a swap file on Ubuntu 18.04 under LVM with an encrypted filesystem.

G
GGlobato
Member
176
12-05-2023, 09:51 AM
#12
I consider myself a fairly advanced Linux user. I understand potential risks but have taken precautions to avoid issues. Restricting the number of processes, avoiding fork bombs, setting RAM limits, and adjusting the user's niceness level so root can recover if the system becomes unresponsive are all measures in place. Linux offers a wide range of capabilities—just imagine what you can achieve. You can control CPU allocation for specific programs and more.
G
GGlobato
12-05-2023, 09:51 AM #12

I consider myself a fairly advanced Linux user. I understand potential risks but have taken precautions to avoid issues. Restricting the number of processes, avoiding fork bombs, setting RAM limits, and adjusting the user's niceness level so root can recover if the system becomes unresponsive are all measures in place. Linux offers a wide range of capabilities—just imagine what you can achieve. You can control CPU allocation for specific programs and more.

C
caionm12
Junior Member
7
12-05-2023, 03:55 PM
#13
Gather everything together
C
caionm12
12-05-2023, 03:55 PM #13

Gather everything together

E
Eneruu
Member
178
12-06-2023, 12:20 AM
#14
Yeah one day I will sit and learn all this stuff. My work laptop runs linux. Linux in product a d linux in development. It's what I do at work lol, node/express app and run that in docker then deoy to aws.
E
Eneruu
12-06-2023, 12:20 AM #14

Yeah one day I will sit and learn all this stuff. My work laptop runs linux. Linux in product a d linux in development. It's what I do at work lol, node/express app and run that in docker then deoy to aws.

R
Rxnger
Member
198
12-06-2023, 12:56 AM
#15
I'm handling a containerised SSH project right now—each session needs space to work. Docker is really helping with that. Ideally, every SSH connection on the chosen port should start a fresh container. I've thought about resuming my routine.
R
Rxnger
12-06-2023, 12:56 AM #15

I'm handling a containerised SSH project right now—each session needs space to work. Docker is really helping with that. Ideally, every SSH connection on the chosen port should start a fresh container. I've thought about resuming my routine.

J
JSGaming
Member
96
12-06-2023, 02:22 AM
#16
You don't require a swap partition. Later, if needed, you can make a swap file which functions identically but isn't a partition.
J
JSGaming
12-06-2023, 02:22 AM #16

You don't require a swap partition. Later, if needed, you can make a swap file which functions identically but isn't a partition.

Q
Qemp
Member
137
12-24-2023, 10:20 AM
#17
I believe many think swapping is mainly for conserving RAM. That idea was likely valid in the past when memory was measured in smaller units, but it wasn't always the case. Even then, if things became unstable and swapping increased heavily, the system would likely be struggling and could crash soon. This assumption isn’t accurate. Swapping still helps relocate apps and their data that aren’t actively used, freeing up space for other purposes like file system buffers. In everyday use, you probably won’t notice much difference, but having swap space is beneficial. It can also improve performance in certain scenarios—especially if you run applications using a significant portion of your RAM at once. If you prefer not to rely on default settings, you can tweak swappiness in Linux to better match your needs. Remember, consider your specific requirements and allocate enough memory accordingly. Swap is generally a helpful addition, even with ample RAM; it’s just a small adjustment that can enhance efficiency in edge cases. As @jpenguin noted, having swap makes sense if you plan to use hibernation as well. See the Ubuntu FAQ for more details on why swap can be advantageous.
Q
Qemp
12-24-2023, 10:20 AM #17

I believe many think swapping is mainly for conserving RAM. That idea was likely valid in the past when memory was measured in smaller units, but it wasn't always the case. Even then, if things became unstable and swapping increased heavily, the system would likely be struggling and could crash soon. This assumption isn’t accurate. Swapping still helps relocate apps and their data that aren’t actively used, freeing up space for other purposes like file system buffers. In everyday use, you probably won’t notice much difference, but having swap space is beneficial. It can also improve performance in certain scenarios—especially if you run applications using a significant portion of your RAM at once. If you prefer not to rely on default settings, you can tweak swappiness in Linux to better match your needs. Remember, consider your specific requirements and allocate enough memory accordingly. Swap is generally a helpful addition, even with ample RAM; it’s just a small adjustment that can enhance efficiency in edge cases. As @jpenguin noted, having swap makes sense if you plan to use hibernation as well. See the Ubuntu FAQ for more details on why swap can be advantageous.

D
dopehead56
Junior Member
29
12-31-2023, 12:43 PM
#18
My hands-on experience with swapping on both Windows and Linux shows a drastic drop in performance compared to simply running out of RAM. When memory runs low and swap is inactive, the OOM killer quickly terminates processes using the most memory available until your programs fit back into the limited space. This usually happens instantly, freeing the system with minimal delay, though you’ll likely lose whatever was in progress. With swap enabled, the system becomes unresponsive every time it needs to use it, often requiring a hard reboot once free space appears. On Windows, this can lead to complete freezing and frequent hard restarts, whereas on Linux, I sometimes have to disable swap entirely to avoid such issues. The trade-off between speed and stability is clear in my usage.
D
dopehead56
12-31-2023, 12:43 PM #18

My hands-on experience with swapping on both Windows and Linux shows a drastic drop in performance compared to simply running out of RAM. When memory runs low and swap is inactive, the OOM killer quickly terminates processes using the most memory available until your programs fit back into the limited space. This usually happens instantly, freeing the system with minimal delay, though you’ll likely lose whatever was in progress. With swap enabled, the system becomes unresponsive every time it needs to use it, often requiring a hard reboot once free space appears. On Windows, this can lead to complete freezing and frequent hard restarts, whereas on Linux, I sometimes have to disable swap entirely to avoid such issues. The trade-off between speed and stability is clear in my usage.

K
Koollojoe
Posting Freak
830
01-04-2024, 11:24 AM
#19
This situation has been discussed frequently online. It's happened to me too, though it was about a decade ago on Linux. I seem to rely on more reliable programs now—they tend to have fewer memory issues. The most recent crash due to a leak occurred roughly 8 to 10 years prior, while I was playing Blobwars: Metal Blob Solid. It had a problematic bug (incompatibility with certain libraries) that led to a significant memory leak—about 500MB in just 10 seconds. At the time, I likely had around 1GB of RAM.
K
Koollojoe
01-04-2024, 11:24 AM #19

This situation has been discussed frequently online. It's happened to me too, though it was about a decade ago on Linux. I seem to rely on more reliable programs now—they tend to have fewer memory issues. The most recent crash due to a leak occurred roughly 8 to 10 years prior, while I was playing Blobwars: Metal Blob Solid. It had a problematic bug (incompatibility with certain libraries) that led to a significant memory leak—about 500MB in just 10 seconds. At the time, I likely had around 1GB of RAM.

T
Tjeard_
Member
179
01-04-2024, 01:18 PM
#20
It was a programming error I caused myself. Once I built a linked list that never ended and consumed memory rapidly. Back then, I thought I had enough space in my RAM for the bake process.
T
Tjeard_
01-04-2024, 01:18 PM #20

It was a programming error I caused myself. Once I built a linked list that never ended and consumed memory rapidly. Back then, I thought I had enough space in my RAM for the bake process.

Pages (3): Previous 1 2 3 Next