Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Managing Memory Using SYS(3050)
Message
De
17/02/2006 09:54:57
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Titre:
Managing Memory Using SYS(3050)
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01097051
Message ID:
01097051
Vues:
64
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)              && Total available memory to VFP, including VM
lnRealMem=VAL(lcTotMem)/4       && Get the physical memory from the pool
lcMem=SYS(3050,2)               && default background memory!
IF VAL(lcOrigFore)<(lnRealMem/4)
   =SYS(3050,1,lnRealMem/4)     && Reduce the physical memory pool by 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"
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform