Other OS

Memory Split (CPU - GPU) - How To?

9 15306
Arda  
Post Last Edited by Arda at 2014-8-6 05:36

Hi,

I am using Raspbian headless, so I don't need the extra GPU reserve (128 MB).

I have tried using raspi-config, and put 16MB as value, restarted, but GPU still has 128 MB of total memory.

My /boot.config.txt also has this value:

gpu_mem=16

How can I decrease Ram reserved for GPU?

Thanks,
Reply 1# Arda

banana pi do not use the config file to set up memory. We are modifying the raspi-config to bpi-config

shalo  
The way to do it would be to edit the uEnv.txt file that is in the /boot partition. Add some arguments in there, such as: sunxi_fb_mem_reserve=16 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0

Those get my "free" memory total up to 1009468.

You can check out what all those arguments are in more detail here:
http://linux-sunxi.org/Kernel_arguments

Arda  
Reply  Arda

banana pi do not use the config file to set up memory. We are modifying the raspi-conf ...
tony_zhang Posted at 2014-8-6 07:06



    Thank you, this is great news, can't wait to see it in action

The way to do it would be to edit the uEnv.txt file that is in the /boot partition. Add some argumen ...
shalo Posted at 2014-8-6 07:07



    Sadly this had no affect, can you please provide your full configuration text ?

shalo  
Reply 4# Arda


   Hmm, I actually just copied that from my file where I had added it in. This is mine at any rate (note: I've changed root to a sata harddrive, so you might want to set that back to SD card).
bootargs=console=ttyS0,115200 console=tty0 sunxi_fb_mem_reserve=16 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:0 console=tty1 root=/dev/sda2 rootfstype=ext4 elevator=deadline rootwait
aload_script=fatload mmc 0 0x43000000 bananapi/script.bin;
aload_kernel=fatload mmc 0 0x48000000 bananapi/uImage; bootm 0x48000000;
uenvcmd=run aload_script aload_kernel

Arda  
Reply 5# shalo


    Thank you, I was putting the values as a new line, so that's why it was not working (the reason I wanted your config). It seems to be working fine now . Just in case I've made a swapfile in an external drive in fstab.

f4exb  
Hello,

on my system "sunxi_fb_mem_reserve=16 sunxi_no_mali_mem_reserve" prevent the Banana to boot. The two other "sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0" are OK and do free memory leading to ~970MB of total free memory available instead of ~878MB. However the console does not display in full HD, I suppose you need some G2D memory for that so keeping only "sunxi_ve_mem_reserve=0" would probably do the trick at the expense of some memory.  VE is 80 MB so it is the big chunk to avoid anyway if you don't use video acceleration.

Thanks for the discussion. Here follows the straight  answer to reduce the GPU memory share.

Add this to your /boot/uEnv.txt
  1. sunxi_fb_mem_reserve=16 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0
Copy the Code
At the end, the uEnv.txt will look like this:
  1. bootargs=console=ttyS0,115200 console=tty0 sunxi_fb_mem_reserve=16 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
  2. aload_script=fatload mmc 0 0x43000000 bananapi/script.bin;
  3. aload_kernel=fatload mmc 0 0x48000000 bananapi/uImage; bootm 0x48000000;
  4. uenvcmd=run aload_script aload_kernel
Copy the Code
Description for each parameter can be found here:
http://linux-sunxi.org/Kernel_arguments

I'm using it headlessly.

signux  
Hi,

the bootargs doesn't work on BananaPro! On BananaPi they work well.

Know everyone the bootargs for BananaPro, to minimize the mem for GPU?

Thanks

off white hoodie
jordan retro
michael kors handbags
off-white
jordan 13
louboutin shoes
valentino shoes
michael kors outlet
nike cortez
fila shoes
fitflops sale clearance
yeezy 500 blush
kyrie irving shoes
adidas tubular x
moncler coat
calvin klein outlet online
huarache shoes
christian louboutin
michael kors factory outlet
hermes outlet online
yeezy boost 350 v2
adidas yeezy
yeezy boost 350
air jordan
supreme clothing
adidas yeezy
yeezy boost
yeezy boost 350
christian louboutin
hermes birkin bag
kyrie 5
michael kors outlet handbags
adidas stan smith men
nike air max 97
curry 6 shoes
off white shoes
supreme outlet
michael kors purses
louboutin shoes
james harden shoes
reebok outlet
adidas yeezy
nike react flyknit
nike lebron 15
kyrie 4
balenciaga triple s
lacoste online shop
hermes belts
cheap nba jerseys
cheapjordans
hermes handbags
nike react
balenciaga sneakers
nike shoes
nike air max 97
nike epic react flyknit
ferragamo sale
christian louboutin outlet
adidas ultra boost
nike air vapormax
moncler outlet
goyard
nike air vapormax
chrome hearts outlet
golden goose
vapormax
supreme clothing
louboutin shoes
longchamp
jordan shoes
nike air max 270
balenciaga speed
russell westbrook shoes
goyard handbags
nike air max 97
nike air max
nike shoes
curry 4
yeezy boost 350
vapormax
nike hyperdunk
bape clothing
coach outlet online
goyard handbags
curry 6
nike shox for women
air max 2017
jordan 4
nike shoes
fila disruptor 2
yeezy boost 350 v2
golden goose
michael kors outlet store
michael kors outlet
michael kors outlet online
yeezy shoes
longchamp outlet
off white
longchamp handbags
kyrie shoes
yanmaneee

You have to log in before you can reply Login | Sign Up

Points Rules