beautypg.com

Return value, Portability, Function to adjust allocation of dram – Rockwell Automation 6182 SDK User Manual

Page 69: Setsystemmemorydivision, Syntax, Remarks

background image

RAC6182-Specific Extensions to the CE API

4–29

Publication 6182-UM002B-EN-P

the overall size and the nature of the content may also affect
compressibility.

Time involved to flush the registry varies based on size of the registry,
and can also vary based on state of the Disk-On-Chip (e.g. if flash
sectors need erased and written this takes significantly longer than just
writing to previously erased flash sectors). For the registry in the base
operating system time to flush has been seen to vary between 100 to 500
ms. The time to write to the Disk-On-Chip is by far the dominant factor;
reading the registry from CE into working RAM and compressing it
typically takes less than 10-20 ms. of this time. Larger registry sizes due
to key additions by applications can be expected to vary in a higher
range of time for a registry flush to complete.

Return Value
TRUE if successful, otherwise FALSE

Portability
This function is specific to the RAC6182 hardware.

SetSystemMemoryDivision

This function sets the amount of DRAM allocated to system. It is
prototyped in othersdk.h.

Syntax

#include
#include

DWORD SetSystemMemoryDivision(DWORD dwStorePages)

Remarks
This function is called by an application to set the amount of DRAM
allocated to the system.

Total DRAM installed can be obtained with a call to rm_GetParameter(),
using RM_PARAMETER_PHYSICAL_MEMORY_SIZE as the first
argument (see description below). This memory is divided into two
logical partitions, one for the Object Store (RAMDISK), and one for
system memory. The memory available for the Object Store will be the
total amount of memory less the amount allocated to the system.

Function to Adjust

Allocation of DRAM

This manual is related to the following products: