Looking for a reasonable setting to set optimum memory for workstations of all memory sizes as a rule of thumb.
Local lcOrigFore, lcTotMem, lnRealMem,lcMem
lcOrigFore = SYS(3050,1)
lcTotMem=SYS(1001)
lnRealMem=VAL(lcTotMem)/4
lcMem=SYS(3050,2)
IF VAL(lcOrigFore)<(lnRealMem/4)
=SYS(3050,1,lnRealMem/4)
ENDIF
IF VAL(lcMem)<(lnRealMem/4)
=SYS(3050,2,lnRealMem/4)
ENDIF
Is the above realistic? We want to set it if no previous setting exists in an ini file - which we can do easily, but the trick is that if no specific setting was chosen for a particular workstation, then what to set it to by default?
Any ideas and experiences are appreciated. Most workstations are Pentium 4 with memory raning from 256mb-2mg RAM. There are a few Celuron processors out there with memory in the same range. I have a form for setting the memory manually on a workstation and storing the setting in an ini file and reading it when the app starts, but if no setting previously existed then I need a default setting to use and currently we are using the above formula.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"