Re: Start address of partition memory and acces to a partition memory



Hello Nicolas,

The sysPhysMemDesc[] array is a data structure usually defined in the
BSP's sysLib.c file that describes the various memory areas available
on the board. One and only one of the entries corresponds to the
physical memory used by VxWorks for its text, data, heap, etc.
Additional entries describing physical memory banks can appear in the
sysPhysMemDesc[] array and are therefore known to the OS but they are
not, by default, used by VxWorks for its heap.

Once such physical memory is described via an entry in the
sysPhysMemDesc[] array it is possible to use API such memPartCreate()
and memPartAddToPool() to make use of it.

I recommend that you read the VxWorks BSP Developer's Guide where the
array is described, and also the VxWorks Architecture Supplement where
specific usage scenarios of this arrays are discussed.

Hope this helps,

--
PAD
.



Relevant Pages

  • Re: Fast string operations
    ... Looping: I thought looping over arrays in managed code was "slow" ... array handling and such. ... The problem with TrimHelper is that it always returns a new string instance. ... The customer perceives this as a memory leak. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: High Memory Consumption of Classes and Arrays
    ... Only the array itself has overhead. ... memory as a reference type. ... > least consume 40 bytes of memory. ...
    (microsoft.public.dotnet.framework.performance)
  • Re: Fast linked list
    ... > amounts of memory rather than huge chunks of it. ... random insertions into a vector/dynamic array are not as slow ... to cause a cache miss. ... some hard numbers on speed differences between lists and arrays. ...
    (microsoft.public.vc.mfc)
  • Re: Fast linked list
    ... > amounts of memory rather than huge chunks of it. ... random insertions into a vector/dynamic array are not as slow ... to cause a cache miss. ... some hard numbers on speed differences between lists and arrays. ...
    (microsoft.public.vc.language)
  • Re: not enough storage... error using GetRows
    ... > array only contained ~150,000 rows. ... It took 19 minutes for GetRows to return (db ... and the prog had consumed 200MB of memory. ... The first one allocates some 180MB, the next two only allocate about 47MB ...
    (microsoft.public.vb.database.ado)