F5F Stay Refreshed Software Operating Systems Choose the option that best fits your needs—swapping partitions or swapping files.

Choose the option that best fits your needs—swapping partitions or swapping files.

Choose the option that best fits your needs—swapping partitions or swapping files.

M
mccoop03
Posting Freak
910
08-30-2016, 05:02 AM
#1
Good evening everyone, I have a query: Should I choose Swap Partition or Swap File? For my older ThinkPad T420 running Linux with 4GB RAM, can I gain benefits from using a swap file or a swap partition? Are there significant differences between these two approaches? I’d appreciate your insights.
M
mccoop03
08-30-2016, 05:02 AM #1

Good evening everyone, I have a query: Should I choose Swap Partition or Swap File? For my older ThinkPad T420 running Linux with 4GB RAM, can I gain benefits from using a swap file or a swap partition? Are there significant differences between these two approaches? I’d appreciate your insights.

S
SultyPineapple
Junior Member
10
09-04-2016, 07:26 AM
#2
I find both haha A swap files and swap partitions useful because they offer flexibility. Swap files are convenient as they can be resized anytime, though they come with certain system constraints. Swap partitions are simpler to set up since they’re just raw partitions without extra layers. If you’re low on RAM and want to offload data to disk instead of risking shutdown, it might be wise to consider this. You should also explore zswap/zram for compressing unused memory.
S
SultyPineapple
09-04-2016, 07:26 AM #2

I find both haha A swap files and swap partitions useful because they offer flexibility. Swap files are convenient as they can be resized anytime, though they come with certain system constraints. Swap partitions are simpler to set up since they’re just raw partitions without extra layers. If you’re low on RAM and want to offload data to disk instead of risking shutdown, it might be wise to consider this. You should also explore zswap/zram for compressing unused memory.

I
Infallity
Senior Member
379
09-09-2016, 08:36 PM
#3
It's not as crucial anymore. The swap partition used to offer a performance boost, but currently it doesn't provide that benefit according to recent kernel updates. The main benefit remains the ability to resize files easily, whereas resizing partitions is more complex. A swap file is still useful, particularly when RAM is limited, as it helps move unused data out of memory, freeing up space for active processes and potentially avoiding crashes from running out of memory. However, excessive swapping can severely slow down the system, making it undesirable.
I
Infallity
09-09-2016, 08:36 PM #3

It's not as crucial anymore. The swap partition used to offer a performance boost, but currently it doesn't provide that benefit according to recent kernel updates. The main benefit remains the ability to resize files easily, whereas resizing partitions is more complex. A swap file is still useful, particularly when RAM is limited, as it helps move unused data out of memory, freeing up space for active processes and potentially avoiding crashes from running out of memory. However, excessive swapping can severely slow down the system, making it undesirable.