Author Topic: New memory backend  (Read 25930 times)

1%

  • Developer
  • Hero Member
  • *****
  • Posts: 5936
  • 600D/6D/50D/EOSM/7D
Re: New memory backend
« Reply #50 on: February 13, 2014, 06:53:53 PM »
Looks like the startup lockup is gone!

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 11218
  • 5D Mark Free
Re: New memory backend
« Reply #51 on: February 13, 2014, 06:54:47 PM »
Cool, now try loading as many modules as you can.

1%

  • Developer
  • Hero Member
  • *****
  • Posts: 5936
  • 600D/6D/50D/EOSM/7D
Re: New memory backend
« Reply #52 on: February 13, 2014, 08:18:33 PM »
Seems to be able to load all of them.. the big test will be enabling GDB again and trying that monster module.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 11218
  • 5D Mark Free
Re: New memory backend
« Reply #53 on: February 13, 2014, 08:27:29 PM »
Just loaded the big ADTG on 60D, along with 2 pages of other modules. 763K module code, 846 total, peak 1.7M, malloc 82k/381k, AllocMem 763k/1.0M, and... shoot_malloc: 0 used.

1%

  • Developer
  • Hero Member
  • *****
  • Posts: 5936
  • 600D/6D/50D/EOSM/7D
Re: New memory backend
« Reply #54 on: February 13, 2014, 09:50:02 PM »
What I'm wondering is why the get max region shows lower than total... is that just contiguous memory vs all available? Or is it from the remapping of allocate mem?

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 11218
  • 5D Mark Free
Re: New memory backend
« Reply #55 on: February 13, 2014, 09:51:00 PM »
Yep, max contiguous region. If you try to allocate more than that... err70.

Thejungle

  • New to the forum
  • *
  • Posts: 30
Re: New memory backend
« Reply #56 on: February 17, 2014, 01:56:03 AM »
Sorry for posting (as I'm not dev) here, but maybe there could be a chance to use this memory to hold on data that slower cameras (like 600d) could not write enough fast..? :) This could be stupid idea, just sayin.. Sorry!

dmilligan

  • Developer
  • Hero Member
  • *****
  • Posts: 3215
  • 60Da / 1100D / EOSM
Re: New memory backend
« Reply #57 on: February 17, 2014, 05:51:53 AM »
ML already uses as much memory as is available for this purpose (ever notice the all the 'buffer' stuff? A buffer is simply memory that is being used exactly for this purpose). This thread has to do with the nitty gritty of how we allocate and manage the various types of memory that is available for this and various other purposes.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 11218
  • 5D Mark Free
Re: New memory backend
« Reply #58 on: February 24, 2018, 06:11:19 PM »
Some backend updates. Started to fix things to allow the 1100D and EOSM to run the memory benchmarks, and found a bunch of other issues in the process. Result: finally managed to run the old-style Lua (which does over 5000 malloc calls just to load the default set of scripts) on 1100D (the camera with the lowest amount of memory)!

Details and torture tests: https://bitbucket.org/hudson/magic-lantern/pull-requests/906/memory-backend-improvements/diff