Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Dynamic Memory Split!
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Dynamic Memory Split!
2nd Jan, 2013, 02:46 AM
Post: #1
BartOtten Offline
Registered
Posts: 815
Joined: Jun 2012
Reputation: 29
Dynamic Memory Split!
CMA - Dynamic Memory Split

The firmware and kernel as of 19. November 2012 supports CMA, which means the memory split between ARM and GPU is managed dynamically at runtime. You can find an example config.txt here.

cma_lwm When GPU has less than cma_lwm (low water mark) memory available it will request some from ARM.
cma_hwm When GPU has more than cma_hwm (high water mark) memory available it will release some to ARM.

The following options need to be in cmdline.txt for CMA to work:

coherent_pool=6M smsc95xx.turbo_mode=N
Find all posts by this user
Quote this message in a reply
2nd Jan, 2013, 10:19 PM
Post: #2
brantje Offline
Tester
Posts: 305
Joined: Dec 2012
Reputation: 32
RE: Dynamic Memory Split!
Why we don't enable it by default?

XBian Skin Beta Testing
Clock Screensaver

If you liked my help, click on "Thanks" to show your appreciation.
Find all posts by this user
Quote this message in a reply
3rd Jan, 2013, 01:35 AM
Post: #3
BartOtten Offline
Registered
Posts: 815
Joined: Jun 2012
Reputation: 29
RE: Dynamic Memory Split!
Maybe we do. But that's for later Smile
Find all posts by this user
Quote this message in a reply
15th Apr, 2013, 02:31 PM
Post: #4
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Dynamic Memory Split!
(2nd Jan, 2013 02:46 AM)BartOtten Wrote:  CMA - Dynamic Memory Split

The following options need to be in cmdline.txt for CMA to work:

coherent_pool=6M smsc95xx.turbo_mode=N

feature quite old, but the kernel with it is still highly experimental. I have not seen real references to it.

And, linux has no best memory management, if the amount of free ram will change constantly, due to fragmentation available blocks will become smaller and smaller and only the memory management during changes will eat all the power of RPI.

needs to be tested carefully. I don;t expect much from it.

btw: what is coherent pool settings?

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Apr, 2013, 05:10 PM
Post: #5
Koenkk Offline
Registered
Posts: 1,238
Joined: Dec 2012
Reputation: 112
Dynamic Memory Split!
I think the coherent pool setting defines how much ram is being swapped every time.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Apr, 2013, 05:16 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Dynamic Memory Split!
(15th Apr, 2013 05:10 PM)Koenkk Wrote:  I think the coherent pool setting defines how much ram is being swapped every time.

oh ok.

how much video memory is needed for xbmc? below 96m textures have missing. Like artworks etc. but up from 96m I "noticed" no difference.

I have no clue what if used memory for (beside FB mapping).

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
15th Apr, 2013, 05:31 PM
Post: #7
rikardo1979 Offline
Management
******
Posts: 3,545
Joined: Dec 2012
Reputation: 190
Re: RE: Dynamic Memory Split!
(15th Apr, 2013 05:16 PM)mk01 Wrote:  
(15th Apr, 2013 05:10 PM)Koenkk Wrote:  I think the coherent pool setting defines how much ram is being swapped every time.

oh ok.

how much video memory is needed for xbmc? below 96m textures have missing. Like artworks etc. but up from 96m I "noticed" no difference.

I have no clue what if used memory for (beside FB mapping).

best results is with 128, troubles Smile

~~~~>>>Please always follow rules and read before you post<<<~~~~
Find all posts by this user
Quote this message in a reply
8th May, 2013, 10:09 AM
Post: #8
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Dynamic Memory Split!
should xbmc work out of the box with the dynamic splitting ? I can't start it. error is "Can't create GUI".

last lines in xbmc.log

02:08:45 T:3042770944 NOTICE: Checking resolution 16
02:08:49 T:3042770944 ERROR: EGL error in CreateSurface: 3003
02:08:49 T:3042770944 NOTICE: CreateWindow: Could not create a surface. Trying with a fresh Native Window.
02:08:49 T:3042770944 ERROR: EGL error in CreateSurface: 300b
02:08:49 T:3042770944 ERROR: CreateWindow: Could not create surface
02:08:49 T:3042770944 ERROR: CreateNewWindow: Could not create new window
02:08:49 T:3042770944 FATAL: CApplication::Create: Unable to create window

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 9th May, 2025, 02:43 AM Powered By MyBB, © 2002-2025 MyBB Group.