Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [swap-space]

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

1
vote
1answer
60 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
71 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
4k 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
790 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
242 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
480 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
138 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
205 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
5k 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
37 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
1k 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
509 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
3k 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
567 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
175 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
457 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 ...
105
votes
5answers
121k 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?