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 [memory]

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

1
vote
2answers
50 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 ...
0
votes
1answer
126 views

memory exhausted: can not allocate memory error in raspberry pi

I am trying to turn my raspberry to a PiCroft. For that I need to use these commands: cd ~/ git clone https://github.com/MycroftAI/mycroft-core.git cd mycroft-core bash dev_setup.sh I did nothing ...
2
votes
1answer
34 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 ...
0
votes
0answers
27 views

All 110GB of MicroSD card used after fresh raspbian install

I'm running into some weird issues on my Raspberry PI. After flashing raspbian stretch light image using Etcher i noticed some weird behaviour. After running sudo df -BG i ran into this: Filesystem ...
3
votes
1answer
3k 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 ...
0
votes
2answers
1k views

How do I set the default maximum Java heap size? [closed]

I want to set the default Java heap size to 1024m without needing to specify the -Xmx option every time I run a jar file. Tried adding export JAVA_OPTIONS=-Xmx1024m to .bashrc file but it didn't ...
0
votes
1answer
223 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 ...
0
votes
1answer
32 views

Will linking the clock file to an in-memory file lower the wear on the SD card?

I use systemd-timesyncd, which writes a status (probably) to a file at every synchronization. As the Arch documentation mentions, The service writes to a local file /var/lib/systemd/clock with ...
1
vote
0answers
441 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
1answer
83 views

Turn Raspberry Pi off but keep the RAM powered?

Is it possible to turn almost everything on a Raspberry Pi off (CPU GPU etc), except for the ram? Basically putting the Pi in a low power state but preserving whatever it was doing at the moment on ...
3
votes
1answer
3k 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 ...
1
vote
1answer
448 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,...
1
vote
3answers
163 views

Hardware and OS Options for Quick Dev/Test Cycles on the Model A

I have a Rasperry Pi 1 Model A. I want to use it on a hobby project that will require me to have lots of dev/test cycles where I: Write some code in a higher-level language (Scala; but could be ...
0
votes
1answer
490 views

Kernel panic - not syncing : out of memory and no killable processes when booting after setting GPU memory to 256 MB in raspi-config

I tried booting in recovery mode (holding down shift from a USB keyboard attached to the Pi2) and still can't boot to fix. Any solutions? Thanks
2
votes
0answers
198 views

How to force GPU memory to 0 on a headless server [duplicate]

Is there any way to force the shared memory to 0? I'm running Jessie on a pi3 (and a pi2 and a few zero-w's) as a headless server and only ever access it via SSH or a WebUI for certain services. I ...
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 ...
1
vote
0answers
261 views

How can I set video memory to max when using vc4-kms-v3d?

According to Anholt, the creator of the opensource kernel device tree overlay at Broadcom, the maximum is 256M. How do I set this? gpu_mem=256 in /boot/config.txt is not the correct why I think. ...
7
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 ...
3
votes
1answer
479 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 ...
1
vote
1answer
93 views

How to partition 32G SD card with 6 sda# drives to max memory usage - Raspberry / Ubuntu

I am only a beginner at Linux-OS's so take this into consideration when you answer this question. I have noticed that my 32G SD card is partitioned into two sda# drives but I need to max out this ...
1
vote
0answers
57 views

Result of a C++ bit shifting operation

This is related to a previous post, viz., C++ cout output on RPi 3B This code snippet, #define GPIO_SET *(gpio.addr + 7) struct bcm2835_peripheral { unsigned long addr_p; int mem_fd; ...
3
votes
1answer
573 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 ...
-1
votes
1answer
435 views

Transferring 16gb microSD to 64gb

I made a backup of the 16gb microSD card (installed with NOOBS) for a Raspberry Pi 3 and saved it to my Mac using: sudo dd if=/dev/disk2 of=~/Desktop/raspberrypi.dmg Then, I took a 64gb microSD card,...
14
votes
3answers
7k 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 ...
0
votes
1answer
852 views

regarding how to measure memory usage on raspberry pi for a specific program [closed]

I am beginner and I am looking for some help for measuring how much memory a specific program is taking to complete its execution? Is there any article or built in functions I need to start with.
0
votes
1answer
756 views

EEPROM Raspberry pi HAT read

I'm currently designing a Raspberry pi HAT. A HAT need to have an eeprom memory on it with several information. This memory is read at boot time of the Raspberry pi. My question is the following: ...
2
votes
1answer
61 views

Are Rpi1B 256MB / Rpi1B512 interchangeable using *the same* SD/card (Raspbian)?

My web"nozing" told me that the two (the Rpi1B 256 and 512) variants are virtually the same hardware spec-wise (with the exception of the amount of RAM ofc. and maybe the SMT/cirquit layout). Could I ...
-2
votes
1answer
17k views

Raspberry PI 3 Increase Gpu Memory to 944 [closed]

I use Raspberry PI 3 and wnat to get more GPU memory to work. I overclock my PI to get more performance because I use it for home Apache/PHP/MySQL server, Access Point and somethimes play music and ...
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-...
0
votes
2answers
188 views

Can I have one raspberry pi access the memory of another pi?

Long story short, I am building a sensor that uses 2 pi's and each of them have a camera attached to it. I would like 1 pi to record and store the video and the other pi to access that video to ...
3
votes
1answer
103 views

Arguments for execl compiling with gcc [closed]

I have a weird problem with a Raspberry Pi 2 (model b). I'm compiling the following program in GCC in Raspbian Jessie (Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/...
1
vote
0answers
646 views

Remote restart after -bash: fork: Cannot allocate memory

I am running Raspbian on a Raspberry Pi which is located in a remote location. I use Putty to connect to it via SSH. I can connect fine but when I try to run any command I get the following: -bash:...
1
vote
1answer
380 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.
12
votes
3answers
5k 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 ...
2
votes
1answer
310 views

What does libcofi do?

This answer rather vaguely states "libcofi-rpi.so is a hack to speed up certain memory operations." Apart from the fact that the file is called libcofi_rpi.so on my machine, what exactly is libcofi ? ...
0
votes
0answers
526 views

Direct memory access GPIO address manipulation

So we have a structure that is composed of pointers to the already mapped memory area. struct bcm2835_peripheral { int mem_fd;// "/dev/mem"s file descriptor void *map; //pointer to mapped ...
6
votes
3answers
3k views

Raspberry pi class 4 vs raspbery 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
3answers
970 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 ...
4
votes
1answer
3k 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 ...
2
votes
1answer
8k 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 ...
1
vote
1answer
280 views

Minimum gpu_mem on π2

The documentation claims, 16 MiB is the lower limit for the gpu memory size. When I set it to less than 32 MiB, start.elf won't run successfully. Everything I get is a repetitive four times blinking ...
2
votes
0answers
272 views

Segmentation fault caused by libmysqlclient.so or libcofi_rpi.so

Was getting a segmentation fault in a program that has traditionally run fine on most flavors of linux. Running ADB revealed that this seems to be caused by libmysqlclient.so using memcpy incorrectly, ...
0
votes
2answers
3k views

Is it possible to store data in Raspberry Pi?

I'm sorry if my question is very basic for some of you. I'm developping an application which is becoming complex. Currently I'm using Arduino. The application stores some data in the Microcontroler (...
3
votes
1answer
766 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 ...
-2
votes
1answer
68 views

Raspberry Pi project with sound concatenation based on date/time and events [closed]

I'm thinking about making my first Raspberry Pi project and have some questions regarding what I will need to be able to complete this project. The end result should be a sound based machine with two ...
3
votes
1answer
65 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?
15
votes
2answers
5k 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?
2
votes
1answer
470 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
3answers
7k 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 ...
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 ...