Questions tagged [swap-space]
Is a disk partition or file used to temporarily store the inactive contents of memory (RAM).
37 questions
1 vote
1 answer
45 views
Permanently change swap memory size with zram generator on Raspberri Pi 5
I have a Rasperri Pi 5 and I need to increase swap memory to 4GB to self-host PhotoPrism, as explained in their guide. Details about my operating system: PRETTY_NAME="Debian GNU/Linux 13 (trixie)&...
1 vote
1 answer
921 views
Raspberry Pi Zero 2 W: Swap File on the USB won't stay in use after reboot
With this fresh install of Pi Zero 2W, after any reboot, if you check for a swap on the Raspberry Pi Zero 2 W, it has none To prevent unnecessary IO (and to extend life), instead of making a swap ...
0 votes
0 answers
512 views
How do I completely get rid of dphys-swapfile on buster 64-bit?
I created a new SD card image with Raspberry Pi OS Lite, Buster, 2023-05-03 and loaded it into my unit. After configuring everything and rebooting, I see: [Failed] Failed to start dphys-swapfile - ...
0 votes
1 answer
3k views
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 ...
-1 votes
1 answer
283 views
swap file falls off after reboot when move to USB flash
I trying move swap file to USB flash from SD card it work fine but after rebooting swap file falls off, command free -m show swap is 0 I move swap file to USB flash dphys-swapfile swapoff dphys-...
0 votes
0 answers
112 views
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@...
0 votes
3 answers
628 views
No enough space , I cant even open the Raspberry?
Please help me, my Pi has no space , I tried to delete a lot of packages , but it remain the same , I tried these commands : sudo apt autoremove sudo apt autoclean sudo apt-get autoclean sudo apt-get ...
0 votes
0 answers
334 views
How do you encrypt SWAP on Raspberry Pi OS?
I followed the instructions at Transparent Encryption For a User's Home Folder to encrypt my home folder. It all worked except the last command: sudo ecryptfs-setup-swap returned: Unknown device &...
4 votes
1 answer
664 views
What's your experience in improving memory management (Swap on NVMe/SSD, zram, zswap)?
I've got an NVMe SSD attached (via USB 3 port) to my Raspberry Pi and wonder what's the best (and still relatively easy) way to configure it for memory demanding applications (like Geth), assuming ...
0 votes
2 answers
5k views
Low RAM, High Swap Usage?
Based on the screenshot, is this normal? In a couple of days, it will increase to 100MB of swap used (default is 100MB), but with low ram. I am running Pi-hole, PiVPN, log2ram, and No-IP.
5 votes
1 answer
12k views
What problem does dphys-swapfile solve?
I have a RaspberryPi 3B rev 1.2. It has 1 GB of RAM. When I run my C++ compiler at -j 2 or above I catch intermittent Out Of Memory (OOM) kills. Sometimes the compiler is killed, other times other ...
0 votes
1 answer
330 views
Root directory using all space?
I'm not sure why but I have no space available on the SDCard, I'm using a light version of Rasbian without any UI, and I have two file downloading on transmission (docker) which is suppose to be on ...
1 vote
1 answer
22k views
Error reading lock file /etc/.rc.local.swp: Not enough data read
I was able to access rc.local just a little bit ago and now it wont let me. I cant even delete the swp file due to permission issues. Im not sure where to go from here, the error i get when opening ...
2 votes
1 answer
226 views
Swapfile on another machine
I have read in many places that increasing your swap file size, or making a big swap partition; can boost the memory of your system as temporary files can go there instead of in RAM. However, on ...
0 votes
1 answer
603 views
Strange performance problems
I've been trying out a raspi 3 as a desktop recently, and have run into strange performance problems, particularly when using chrome. setup: raspberry pi 3 running raspbian stretch 2.5A power supply "...