Questions tagged [swap-space]

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

0
votes
1answer
346 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
1answer
53 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
1answer
68 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 ...
0
votes
1answer
90 views

Can't reclaim freed disk space

How to reclaim freed disk space after Telegraf filled all swap on Raspberry Pi Zero running Raspbian 9 Stretch? /var/swap grew to 14GB, so I disabled swap with dphys-swapfile and deleted the swap ...
1
vote
1answer
225 views

How to compile project on Raspberry Pi, even when g++'s virtual memory exhausted despide big SWAP?

I want to build Iroha hyperledger on Raspberry Pi 3. So I've downloaded code and all dependencies and compiler gcc-8.2 (downloaded precompiled from here), then configured without tests: cmake -...
1
vote
2answers
327 views

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, ...
3
votes
1answer
7k views

How to permanently disable swap on Raspbian Stretch Lite

I'm at my wit's end; it seems there's no way to tell Raspbian Stretch Lite to permanently disable swap space. Now, it's a bit of an edge case, wanting to keep swap turned off (in this case it's for a ...
1
vote
1answer
1k views

Rasbperry Pi 3 and swap space - swap or no swap?

I have read a few replies on stackexchange that using swap is actually bad on a pi since the HDD is on SD card. By default Raspbian comes with 100MB swap enabled. Should I disable swap altogether? ...
0
votes
1answer
271 views

Creating Swapfiles

I have a Pi3 hooked up with a WDLabs PiDrive I have Raspbian Lite installed on the drive and in trying to run some docker images simultaneously some of the images processes are being "killed" with a ...
1
vote
1answer
598 views

Zram appears not to be working

I use very little of my Raspberry Pi 2B's CPU, but I frequently need more memory. In order to free up memory on my Pi running Ubuntu MATE, I set up Zram by installing zram-config. I was pleasantly ...
0
votes
0answers
186 views

Raspberry pi creating swap before HDD is mounted

I'm currently running Plex on a Raspberry pi 3 (Jessie, debian 8.0 32bit / Linux 4.9.35-v7+). Lately I've noticed that Plex seems to be causing a great deal of Swap usage (possibly during ...
1
vote
0answers
240 views

Avoid frezing/optimize Raspberry Pi 3 is under heavy load

I am trying to run some prediction on pictures with Keras with pre-trained model vgg16. Here is my code: from keras.applications import VGG16 from PIL import Image from keras.applications ...
3
votes
1answer
7k views

More Memory on Raspberry Pi

So I was wondering if there was any way to allow more ram to a program on a Raspberry Pi 3. I have a process which takes 76,7% of the memory (it's a tomcat server) and need another one like this to ...
0
votes
1answer
39 views

How to free space on the rpi if wolfram etc has already been removed?

I already removed wolfram alpha and all the default games that were installed on my rpi.However I still have almost no space left: As you can see those are the most voluminous programs on my systems ...
1
vote
0answers
2k views

Traditional swap file rather than dphys-swapfile?

I have a RPI-3 with the ARMv8 Broadcom SoC. I needed to create a swap file because I was running out of memory on occasion. I used a traditional swap file in a separate partition because the dphys-...
1
vote
1answer
626 views

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.
1
vote
1answer
4k views

/var/swap file abnormally large

I ran this command because my Raspberry Pi's SD card is full: sudo find /var -type f -a -printf '%s %p\n'| sort -nr | head -10 The output: 104857600 /var/swap 46641296 /var/lib/apt/lists/...
0
votes
1answer
587 views

When booting with rootfs on NFS, where is the best place to put swap file?

I have 6 raspberry pi (model B) units on my home network and, following a tutorial (here: http://youresuchageek.blogspot.com.au/2013/01/raspberrypi-root-over-nfs-share.html?m=1), have configured them ...
1
vote
1answer
178 views

Is swapping to the network a good idea?

I figured out how make the Raspberry Pi swap to a network storage device. Basically, I create and mount a disk image on the network storage and then create and use a swapfile on that disk image: ...
6
votes
2answers
475 views

Why has Raspbian enabled swap by default if that is bad?

I always read that swap on a Pi should be disabled because enabling it lowers SD card lifetime and is very slow anyways (no performance gain with swap). So I disabled it. But is there a good reason ...
3
votes
2answers
4k views

Why I can't copy my Linux image to another SD card?

I have 2 SD cards (8 GB) I wrote my Wheezy image into one SD card (using Win32DiskImager) and I expanded the the disk space of the image on that card. then I used (Win32DiskImager) to read the Image ...
3
votes
2answers
2k views

How do I setup swap on Raspbmc?

I have an external hard drive that has a 1GB swap partition. To use this, I log into my raspbmc via ssh and sudo swapon /dev/sda2 Is there a way to automate this? I would like to check for the ...
2
votes
1answer
363 views

Wifi stopped working after installing bluetooth drivers

Yesterday I had my WiFi adapter working. I took the Raspi home and installed drivers and manager for my Bluetooth adapter. Now, today, WiFi will not work. lsusb returns the device, but it will not ...
9
votes
1answer
2k views

Is it safe to remove the xserver?

I do not use a digital monitor and no TV either with my Raspberry Pi. I would like to remove unnecessary packages to save disk space and memory consumption. I would like to preserve the possibility of ...
111
votes
5answers
129k views

How to set up swap space?

Raspberry Pi has only 256 MB of RAM, so I would like to use swap space (either on SD card or attached USB storage). How do I set it up?