4.15 MEMORY REQUIREMENTS
4.15.1 Memory Requirements on the LCU
The common software uses the following amount of memory, measured on the NOV96 release:
|
|
VxWorks, ESO standard configuration |
527 |
lcuboot + environment variables |
23 |
lcudrv + lculog |
25 |
lqs with 16 environments |
107 |
cai |
27 |
scan |
48 |
dxf |
433 |
inducer |
92 |
mcm, no motor installed |
447 |
ntp |
218 |
too |
8 |
acro (one device installed) |
6 |
aio (one device installed) |
16 |
ampl (four devices = one board installed) |
32 |
mcon (four devices = one board installed) |
63 |
tim (one device installed) |
6 |
lcc with minimum database |
2400 |
Total |
4500 |
Additionally the common software needs:
Module |
Memory usage in kBytes |
Each motor needs (stack + database) during initialization (worst case) during motion |
120 70 |
Simple command interpreter (citmp) including database |
104 |
LCC I/O signal including database image |
0.766 |
The LCC database memory usage is:
Database element |
Memory usage |
database point |
140 bytes |
scalar attribute |
140 bytes for numeric type (140+X) bytes for BytesX type [Bytes4 to Bytes256] |
vector attribute |
(140 + recordNbr*12) for numeric types (140 + recordNbr*(12+X)) bytes for BytesX type |
table attribute |
(140 + fieldNbr*24 + recordNbr * S fieldsize) bytes where fieldsize is 12 bytes for numerical and (12+X) bytes for BytesX types |
The requirement that 30% (up to 1 MByte) of the LCU memory shall be unused indicates that a LCU CPU with 4 Mbyte memory is too small. For control applications at least 8 Mbyte memory is required. Applications storing large amounts of data, e.g. detector frames will probably need more memory.