Example Context preAllocateFixedMemoryBlocks 001

 

 

Description

This example uses the preAllocateFixedMemoryBlocks to preallocate memory blocks of the specified size.

 

Details

(preAllocateFixedMemoryBlocks 5000000 2) Returns: true
(systemCheck) Returns: see below
 
Frame    Frame       Free    Minimum  Allocated   Max User       Used    Minimum  Allocated       User
Index     Size     Blocks      Bytes      Bytes      Bytes     Blocks      Bytes      Bytes      Bytes
[  0]      232       1654     383728     383728     344032      19991    4637912    4637912    4155219
[  1]      464       1385     642640     642640     609400       1291     599024     599024     397039
[  2]      696       1325     922200     922200     890400        279     194184     194184     147463
[  3]      928        421     390688     390688     380584        186     172608     172608     147671
[  4]     1160        364     422240     422240     413504        111     128760     128760     112961
[  5]     1392        249     346608     346608     340632         58      80736      80736      71441
[  6]     1624        278     451472     451472     444800         24      38976      38976      34972
[  7]     1856        168     311808     311808     307776         24      44544      44544      41528
[  8]     2088         74     154512     154512     152736         12      25056      25056      23022
[  9]     2320        165     382800     398344     394384         40      92800      97440      91356
[ 10]     2784        155     431520     450776     447056         12      33408      34336      32912
[ 11]     3248         92     298816     309720     307512         13      42224      43848      42151
[ 12]     3712         81     300672     308328     306384         15      55680      57072      54705
[ 13]     4176         75     313200     322248     320448         24     100224     104400     101803
[ 14]     4640         90     417600     424792     422632         10      46400      47560      45642
[ 15]     5104         86     438944     450544     448480          4      20416      20880      19761
[ 16]     5568         74     412032     437552     435776         13      72384      77952      74400
[ 17]     6496         17     110432     112520     112112          3      19488      19952      19489
[ 18]     6960         10      69600      70296      70056          1       6960       6960       6880
[ 19]     7424         42     311808     316680     315672          2      14848      14848      14504
[ 20]     7888          7      55216      56144      55976          0          0          0          0
[ 21]     8352         39     325728     328976     328040          0          0          0          0
[ 22]     8816         45     396720     401824     400744          0          0          0          0
[ 23]     9280         72     668160     678136     676408          1       9280       9280       9048
[ 24]     9744         50     487200     493000     491800          0          0          0          0
[ 25]    10208         40     408320     413424     412464          0          0          0          0
[ 26]    10672         28     298816     302296     301624          0          0          0          0
[ 27]    11136         26     289536     292784     292160          0          0          0          0
[ 28]    11600         26     301600     304616     303992          4      46400      46864      46138
[ 29]    12064         17     205088     206712     206304          0          0          0          0
[ 30]    12528         29     363312     367024     366328          1      12528      12528      12386
[ 31]    12992         26     337792     340344     339720          1      12992      13224      13184
[ 32]    13456         27     363312     366328     365680          1      13456      13688      13068
[ 33]    13920         41     570720     588120     587136          0          0          0          0
[ 34]    14848         34     504832     516896     516080          1      14848      15312      15199
[ 35]    15776         34     536384     550536     549720          0          0          0          0
[ 36]    16704         33     551232     561672     560880          2      33408      33640      32732
[ 37]    17632         49     863968     877656     876480          2      35264      35960      35460
[ 38]    18560         67    1243520    1288296    1286688          2      37120      39440      37976
[ 39]    20416         57    1163712    1211040    1209672          1      20416      20880      20236
[ 40]    22272         43     957696     984840     983808          0          0          0          0
[ 41]    24128         40     965120    1003864    1002904          1      24128      25752      24908
[ 42]    25984         47    1221248    1255816    1254688          0          0          0          0
[ 43]    27840         90    2505600    2677280    2675120          0          0          0          0
[ 44]    31552         35    1104320    1159768    1158928          2      63104      66352      60048
[ 45]    35264         41    1445824    1519368    1518384          0          0          0          0
[ 46]    38976         32    1247232    1308248    1307480          0          0          0          0
[ 47]    42688         31    1323328    1378312    1377568          0          0          0          0
[ 48]    46400         45    2088000    2236016    2234936          0          0          0          0
[ 49]    53824         39    2099136    2254808    2253872          0          0          0          0
[ 50]    61248         29    1776192    1887088    1886392          0          0          0          0
[ 51]    68672         21    1442112    1519368    1518864          0          0          0          0
[ 52]    76096         29    2206784    2380784    2380088          0          0          0          0
[ 53]    90944         15    1364160    1469024    1468664          0          0          0          0
[ 54]   105792         19    2010048    2149944    2149488          0          0          0          0
[ 55]   120640          5     603200     643104     642984          0          0          0          0
[ 56]   135488          6     812928     881136     880992          0          0          0          0
[ 57]   165184          5     825920     910832     910712          0          0          0          0
[ 58]   194880          7    1364160    1466472    1466304          1     194880     200216     200000
[ 59]   225040          2     450080     483488     483440          0          0          0          0
[ 60]   255200          3     765600     820816     820744          0          0          0          0
[ 61]   301600          3     904800     963264     963192          0          0          0          0
[ 62]   348000          4    1392000    1457656    1457560          0          0          0          0
[ 64]   440800          2     881600     953984     953936          0          0          0          0
[ 65]   510400          3    1531200    1632816    1632744          0          0          0          0
[ 66]   580000          1     580000     629648     629624          0          0          0          0
[ 69]   788800          0          0          0          0          1     788800     800168     800000
[ 95]  5568000          4   22272000   24000864   24000768          0          0          0          0
[104] 13920000          1   13920000   14240624   14240600          0          0          0          0
Total heap memory = 99823104, heap memory used = 7780352 (7 percent), heap memory free = 92042752.
Max Objects =   200000,  objects used =    19859 (9 percent).
Max recursions =    10000, current recursions =       28 (1 percent).
Max tval stack =   200000, tval stack used =      191 (1 percent).
Max obj stack =   200000, used obj stack =        1 (1 percent).
Total forced garbage collections = 2, Max Objects ever used =   199999 (99 percent). 
Returns: <

Notes and Hints

 

Related Examples

Here are examples of the loadWorkspace function at work.

Context loadWorkspace 001 Context loadWorkspace 002 Context preAllocateFixedMemoryBlocks 001

 

Function Links

Here is the link to the current function used in this example.

loadWorkspace

Here are a number of links to other related functions.

systemCheck(Context) inspect(Context)

 

Argument Types

Here are the links to the data types of the arguments used in this example.

Context

Here are a number of links to examples having similar argument types.

Context clear 001 Context debug 001 Context debugBrowsableProcs 001 Context disassemble 001
Context evalInSyncLocalContext 001 Context getGlobalValue 001 Context getSymbolTable 001 Context inspect 001
Context loadWorkspace 001 Context loadWorkspace 002 Context preAllocateFixedMemoryBlocks 001 Context reset 001
Context saveWorkspace 001 Context systemCheck 001 Context version 001

How do I contact the AIS Server team?

You can always talk with the AIS at aiserver.sourceforge.net.