2 Replies Latest reply on Apr 21, 2011 2:45 AM by compres

    MPB pointers


      if we define a pointer which points to some memory portion in mpb (e.g pointer with the type of t_vcharp which is allocated space by RCCE_malloc), the pointer itself will be stored in MPB (like the pointee) or in private memory of the calling core?

        • 1. Re: MPB pointers

          The full 8KBs per core of the MPB are avalable for work, so the pointers are stored by Linux in private memory.


          If you need to know the specifics, you could check how mmap works.

          1 of 1 people found this helpful
          • 2. Re: MPB pointers

            It resides on the private memory of the core. If you check the RCCE_malloc function, it uses a simple allocation scheme (GORY mode). The pointer you are reffering to is a part of a struct called RCCE_BLOCK. This struct is allocated via malloc and thus resides in the private mem of the core.