User avatar
rolgiati
Posts: 64
Joined: Wed Jul 18, 2012 8:20 pm

Memory split with less video memory ?

Sun Apr 07, 2013 12:10 pm

I am looking into freeing more usable memory on a Raspi 256Mb that will be used headless, and only accessed through ssh in CLI mode.

Would it be possible to change the memory split and reduce the video memory to 12 MB ?
( which should be sufficient for a VGA display of 800 x 600 in 16 colours )

How could it be done ?

User avatar
pluggy
Posts: 3636
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Memory split with less video memory ?

Sun Apr 07, 2013 1:18 pm

If you're using debian, run

sudo raspi-config

Image

I'll let you work the rest out. ;)

You'll find the minimum is 16MB, it will accept figures for less, but sets it to 16MB.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

chris57100
Posts: 519
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 2:35 pm

I think that now the minimum is 8Mb. Also i am not sure but a 8 multiple is recommanded
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

User avatar
pluggy
Posts: 3636
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 6:13 pm

chris57100 wrote:I think that now the minimum is 8Mb. Also i am not sure but a 8 multiple is recommanded

Code: Select all

root@raspberrypi:~# uname -a
Linux raspberrypi 3.6.11+ #371 PREEMPT Thu Feb 7 16:31:35 GMT 2013 armv6l GNU/Linux
root@raspberrypi:~# tail /boot/config.txt -n1
gpu_mem=32
root@raspberrypi:~# cat /proc/meminfo|grep Mem
MemTotal:         481288 kB
MemFree:          433492 kB
root@raspberrypi:~# 
edit & reboot

Code: Select all

root@raspberrypi:~# tail /boot/config.txt -n1
gpu_mem=16
root@raspberrypi:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          450076 kB
root@raspberrypi:~#
edit & reboot

Code: Select all

root@raspberrypi:~# tail /boot/config.txt -n1
gpu_mem=8
root@raspberrypi:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          450400 kB
root@raspberrypi:~#
edit & reboot

Code: Select all

root@raspberrypi:~# tail /boot/config.txt -n1
gpu_mem=4
root@raspberrypi:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          452832 kB
root@raspberrypi:~# 
edit & reboot

Code: Select all

root@raspberrypi:~# tail /boot/config.txt -n1
gpu_mem=3
root@raspberrypi:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          450332 kB
root@raspberrypi:~# 
edit & reboot.

Code: Select all

root@raspberrypi:~# tail /boot/config.txt -n1
gpu_mem=1
root@raspberrypi:~# cat /proc/meminfo|grep Mem
MemTotal:         497544 kB
MemFree:          452856 kB
root@raspberrypi:~# 
I rest my case ?
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

chris57100
Posts: 519
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 7:21 pm

Excellent ! I never tested and really thought that 1Mb was not possible :shock:
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

User avatar
pluggy
Posts: 3636
Joined: Thu May 31, 2012 3:52 pm
Location: Barnoldswick, Lancashire,UK
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 7:36 pm

It isn't, it just accepts the figure. The memory is identical to the 16MB setting.
Don't judge Linux by the Pi.......
I must not tread on too many sacred cows......

chris57100
Posts: 519
Joined: Wed Sep 12, 2012 7:23 pm
Location: Thionville
Contact: Website

Re: Memory split with less video memory ?

Fri Apr 12, 2013 8:15 pm

Oups, bad eyes !!!
Ok thanks for the tip
Raspberry Pi Home Server : http://www.pihomeserver.fr
Software and electronic tutorials : Samba, Airplay, CUPS, Time machine, Nginx, Owncloud, rTorrent, Wordpress, etc.
Full Wi-Fi hotspot installation on a RPi 3 including a captive portal and freeradius management: https://github.com/pihomeserver/Kupiki-Hotspot-Script

User avatar
rolgiati
Posts: 64
Joined: Wed Jul 18, 2012 8:20 pm

Re: Memory split with less video memory ?

Fri Apr 12, 2013 9:03 pm

Thanks for the info.

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 13 guests