Questions tagged [memory]

Memory refers to the SDRAM (a kind of RAM) found on the Raspberry Pi.

Filter by
Sorted by
Tagged with
130
votes
5answers
167k 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?
77
votes
3answers
146k views

What is the optimum split of main versus GPU memory?

I read that it's possible to allocate either 128MB, 64MB or 32MB to the Raspberry Pi's video memory. Given that my primary use case for this machine is educational: I will be running lightweight ...
29
votes
2answers
21k views

How does memory-mapped I/O addressing work?

How does memory-mapped I/O addressing work? I'm trying to understand a sample supplied I2S: Anyone got it running?. Configuring Clocks: #define BCM2708_PERI_BASE 0x20000000 #define ...
23
votes
2answers
93k views

How to get remaining memory in SD Card?

I have 16 GB SD card where I installed Raspbian using Win32 Disk Imager. After burning the image in Windows it shows only around 40+ MB of free space. Since Raspbian image is around 2 GB where is ...
15
votes
2answers
8k views

Where is the Raspberry Pi 512 MB memory located on the board?

Is the Raspberry Pi RAM located inside the Broadcom SoC or outside of it? If it's located outside, what's the peripheral responsible for accessing this memory?
15
votes
3answers
7k views

Why do I have so many RAM disks?

I have Arch Linux running on my Raspberry Pi 2. Right after install, I ran lsblk, fdisk and df commands (unfortunately I did not save the output) but I had one disk, which is the SD card and two ...
14
votes
1answer
1k views

256 or 512 MB for a webserver

I'm planning to buy a Raspberry Pi, a colleague of mine has a 256 MB left. But I don't know if 256 MB of memory can for fill the things I want to run. I want to run an Apache web server (or some ...
14
votes
4answers
3k views

Is it possible to control a SRAM module via the GPIO pins?

I would like to attach a SRAM module to the RasPi. My idea is to store sensitive (encrypted) data on the SD card but keep the key on a SRAM module. It would have its own backup battery (or ...
13
votes
2answers
19k 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 ...
13
votes
2answers
24k views

Is it possible to install a larger RAM chip on the Raspberry Pi?

Can I upgrade the Raspbery Pi's RAM from 512 MB to 1 GB or 2 GB? I can't build a cpp-netlib in GCC 4.6 or 4.8 because the build consumes all 512 MB. I realize I can cross-compile, but I'm wondering ...
12
votes
3answers
10k views

Raspberry Pi 3 has less than 1GB memory available at OS level

I don't know if it is a critical issue or not. But, I need to get rid of the question marks in my mind. I recently purchased a Raspberry Pi 3 board and while I was playing with it, I realized that ...
11
votes
7answers
45k views

Resize file system on OpenELEC

I was trying to perform an update and an error told me that I hadn't enough free space. So I connected to my Raspberry through SSH to ask for disk usage with: df -h And I obtained the following ...
11
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 ...
9
votes
2answers
4k views

How do I set the memory split for 512MB model?

I have just received the 512MB model. However, there are no options for memory split. I'm running the latest and greatest 2012-09-18-wheezy-raspbian.img. See the video question (30 sec): http://www....
8
votes
2answers
2k views

Is it a good idea to mount /var in memory?

Re this answer: https://raspberrypi.stackexchange.com/a/867/339 It is suggested that /var be mounted in memory, so to avoid causing your root partition to fill accidentally. I've got a couple of ...
7
votes
3answers
19k views

How to prevent Raspberry Pi memory allocation failure?

I have installed a Terraria server on my Raspberry Pi (Version B Revision 2) yesterday. I followed this tutorial on Reddit. I used the latest version of Raspbian provided by NOOBS: I just ...
7
votes
1answer
8k views

how to know if my Raspberrypi's Ram size is 265MB or 512MB

I've just bought a new raspberry pi as a 512Mb Ram but this website is saying that if my chip contains 2G so it is 265 Ram which is my case my chip number is k4p2g324ed-agc1 , so if you are sure ...
6
votes
1answer
1k views

Extra 16M memory on Pi2/Pi3

My 1 GiB RAM Pi shows this: >vcgencmd get_mem gpu gpu=128M >vcgencmd get_mem arm arm=880M The former is specified in /boot/config.txt, but the total here is only 1008 MiB. What happened to ...
5
votes
2answers
10k views

How the usage of ZRam module in Raspberry Pi Kernel improves performance?

zRam increases performance by avoiding paging on disk and instead uses a compressed block device in RAM in which paging takes place until it is necessary to use the swap space on the hard disk drive ...
5
votes
3answers
12k views

Required SD card capacity

I understand that Raspberry Pi boots from an SD card. What is the minimum amount of memory required by Raspberry Pi to run smoothly?
5
votes
2answers
3k views

Can Compute Modules provide clustering and high availability?

I am very interested in Compute Modules, but have a few concerns: The main press release (linked above) for Compute Modules states that these systems are "primarily designed for those who are going ...
5
votes
2answers
1k views

Set RAM split based on HDMI status on boot

For the most part, I run my Raspberry Pi headless (which requires very little VRAM). However, I occasionally plug in a monitor (usually after I mess up my SSH configuration). Is there a way to have ...
5
votes
1answer
1k views

How can I install keybase (and dependencies) without running out of memory?

I have a Raspberry Pi 3 running the most recent Raspbian distro. I've installed the most recent go, from the prebuilt package and have it on my path: $ go version go version go1.9 linux/arm However,...
5
votes
3answers
8k views

New PI 2 B+ unusably slow, CPU and RAM not being used?

Just setup a new R Pi 2B+, using raspbian on a 16gb sd card, ethernet, USB mouse/keyboard and HDMI out. Finding it extremely slow - the UI is reasonably responsive however installing monodevelop took ...
5
votes
1answer
1k views

How to achieve gpu_mem=8?

I see some people claiming (see links) they have a memory splitting of gpu_mem=8, but I always thought 16/496 is the minimum split? Here is an answer on this very page: https://raspberrypi....
4
votes
3answers
4k views

Raspberry pi class 4 vs Raspberry pi 2 class 10

I currently have the previous raspberry pi class 4 card. I'm considering getting the new raspberry pi model 2 class 10 card. Is there a speed difference between the two cards?
4
votes
1answer
10k 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 ...
4
votes
1answer
7k views

Unable to set GPU memory split on Raspberry Pi Zero W

I have looked everywhere (both on and off StackExchange) for this but cannot get an answer: I have a Raspberry Pi Zero W, which has 512MB of RAM total. I am running it headless, so I want to ...
3
votes
3answers
17k views

How to check what process is slowing down my RPi

I have a PHP scraper that is running on my RPi. I noticed that since I have installed some additional software to the RPi the scraper takes 3/4 times longer to finish it's task than before. I wonder ...
3
votes
3answers
4k views

When does the OS kill an application?

I have an application which polls a bunch of servers every few minutes. To do this, it spawns one thread per server to poll (15 servers) and writes back the data to an object, however sometimes the ...
3
votes
1answer
2k views

Available memory on Raspberry Pi 2 (missing 240 MB)

I just installed Raspbian (2015-01-31) on my brand new Raspberry Pi 2 with 1GB memory. But I'm puzzled when I run top I only get: KiB Mem: 762384 total. I've tried to set gpu_mem=16 in config.txt ...
3
votes
1answer
135 views

Raspberry pi memory

When you use a Raspberry Pi, the OS runs off of an SD card. Is anything being saved on the actual raspberry pi hardware when you remove the card? Said differently, say I create a password on a my RP ...
3
votes
3answers
5k views

Raspberry Pi with flash memory?

Basically, I am looking for some form of non-volatile memory – which is not an SD card. Orange Pi and others have it, but I can’t find a suitable Raspberry Pi. Did I miss one? Are there any rumours ...
3
votes
3answers
1k views

Is 8gb enough to support Ubuntu MATE without storage issues?

After becoming familiar with Rasbian and Terminal, I decided to try something new with ubuntu MATE. Aside from the microSD card that the Raspberry pi came with, which I want to keep the Rasbian ...
3
votes
1answer
66 views

Is there any way to limit data usage to xMB in sd card? [closed]

I am using an 8gb card but want to limit usage to 4gb, meaning I want to delete old files which cross the 4gb mark. Is there any way of achieving this?
3
votes
1answer
767 views

Unable to enable unlock 512MB RAM of Model B

I want to set RAM to 384MB. I've tried several things to try and get the RAM above the 184MB shown below by running free -h total used free shared buffers cached ...
3
votes
1answer
114 views

Accessing GPU memory content

I'm currently working with advanced picamera parameters. A new functionnality to come is the "lens shading correction", a RGGB array that modify the image generated by the camera in order to ...
3
votes
1answer
4k views

Can't install O/S from NOOBS

Preformatted 8GB micro SD card opens screen to install Raspbian, data partition, or boot from Scratch, but says I have 0 MB of 2762 MB needed, and offers no options to proceed. Where do I go from ...
3
votes
1answer
852 views

Would booting off of a USB hard drive increase the responsiveness of my Raspberry Pi 2?

I love the Raspberry Pi as a computing platform but sometimes I cannot stand the sluggish performance of the device. Occasionally when I'm browsing the internet or even trying to open the regular ...
3
votes
1answer
1k views

bad_alloc error

I get this error, when I login via SSH, to my pi, but it appears to be fully functioning. error pid:15354, boost::interprocess::bad_alloc 1) Is it to do with a memory problem? 2) Should I be ...
3
votes
1answer
460 views

Largest micro sd card

What is the largest micro sd card that the Raspberry Pi 3 can handle? I have a 64 gb card that works flawlessly, but would like to try something larger.
2
votes
1answer
808 views

C++ cout output on RPi 3B

I have these lines in a C++ program on a RPi 3B: struct bcm2835_peripheral { unsigned long addr_p; int mem_fd; void *map; volatile unsigned int *addr; }; struct bcm2835_peripheral ...
2
votes
2answers
5k views

How is memory split by CMA?

The post at http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=19334&p=218282&hilit=cma#p217665 mentions that:- gpu_mem_512=316 cma_lwm=16 cma_hwm=32 In the above ARM has 96M always. ...
2
votes
2answers
5k views

How can I increase the size of the ram disk

In Debian Wheezy If I make a ram disk with mke2fs -m 0 /dev/ram0 mount /dev/ram0 /mnt/ramdisk I get a ram disk 3.9M in size. I could really do with 16M, is there a way of making the ram disk bigger?
2
votes
1answer
3k views

Memory display on Raspberry Pi running raspbmc

After lying around few months, finally I setup my Pi with raspbmc. But after starting up and when I went to see Systeminfo, it's showing 122MB max memory. Did I receive model A, which is with a lower ...
2
votes
2answers
268 views

What is the memory in the DS3232 RTC for?

I'm looking for an RTC to use with my Pi and came across the Maxim DS3231M. I also saw a similar model on Maxim's website, the DS3232M, which comes with 236 bytes of SRAM. The DS3231 seems to be a ...
2
votes
1answer
1k views

Memory Limit of Python3 in Raspberry 3

We are running an python application which needs ~2400MB (on Windows). Our Raspberry Pi 3 has a 4GB swap and runs on 164MB RAM idle. So from our point of view python should be able to use 4GB on the ...
2
votes
1answer
13k views

Freeing up cache when memory is low

I have my raspberry pi A+ in my embeeded project and every byte of memory is important when I've only got 128 MB to my CPU (I need 128 MB for the GPU because I use the camera module). Unfortunently ...
2
votes
2answers
340 views

Does my RPi uses video RAM for tunneling X over ssh?

I use my Pi in headless mode, and I like to use X over SSH occasionally to run graphics only apps like the Pi store, and a few of my programs. I'd like to increase my RAM by decreasing GPU RAM, in ...
2
votes
1answer
359 views

How to write protect in DS2431 Maxim EEPROM using Raspberry Pi

I have connected my circuit as mentioned in the below link: Writing/Reading an EEPROM chip using 1-wire bus I am able to read and write through commands mentioned in the link. I would like to know ...