Questions tagged [swap-space]

Is a disk partition or file used to temporarily store the inactive contents of memory (RAM).

Storing inactive bits of memory to disk frees up memory resources for higher priority tasks.

While swap space can improve performance in most systems this is not likely to be the case with regards to the Pi, because of the slow response times (compared to RAM) of the SD Card or an external hard drive. In addition enabling swap on an SD Card could lead to premature failure of the SD Card.

Common questions

How do I create a swap partition?

37 questions
2
votes
2 answers

Swap Memory Usage

After running the command top on Raspbian, I get the following result: KiB Mem : 948956 total, 249788 free, 549408 used, 149760 buff/cache KiB Swap: 102396 total, 3836 free, 98560 used. 309492 avail Mem Why is my device…
1
vote
1 answer

Why is my Raspberry Pi not using swap space?

I have a Raspberry Pi 3 and I created a swap space with reference to this tutorial, How to set up swap space?. However, even when my memory is almost fully used, none of my swap memory is used.
Pravin
  • 113
  • 5
0
votes
1 answer

Raspberry Pi 4 Swap file

I'm using a Raspberry Pi 4 with 4GB and one with 8GB for docker/ pi-hole. Currently I use the default settings for the swap file and know with the older Raspberry Pi modells with less RAM, the suggestion was to change the swap file to a HDD. I have…
Chris
  • 1
  • 1
0
votes
0 answers

flash drive as swap is not used

I'v added a flash drive as swap and formated it with code 82 (Swap). Additionally, I've added the uuid (out of blkid) to /etc/fstab. After reboot I see that no swap is being used. What's wrong? pi@raspberrypi:/mnt/usbstick $ lsblk NAME …
amw
  • 173
  • 7