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?
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 ...
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 ...
2
votes
1answer
705 views

What's the smallest amount of memory that can be allocated to GPU?

According to http://elinux.org/RPiconfig#Memory , the minimum that can be specified in /boot/config.txt is 16MB. Is there a way to shut off video completely and allocate nothing? I'm asking about ...
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 ...
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 ...
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 ...
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 ...
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?
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 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?
1
vote
1answer
110 views

Should I avoid using WP with some sort of visual composer when hosting on my Rapberry Pi 4? Is there a better and equally easy approach?

I've been told a WP-install can easily consume 2 Gigs of memory when editing in visual composers in WP. When my Pi only has 4 GB available and on top on that I'm running MariaDB (NOT Nginx), then ...
0
votes
2answers
1k views

Running x86 Windows app on a Raspberry Pi 3B

I followed this guide to install QEMU in a chroot and I'm able to execute x86 Linux binaries: https://stackoverflow.com/questions/51895452/qemu-debian-x86-on-raspberrypi Next, I tried installing WINE ...