Re: [BLACKBOX] memory allocation limits

From: [at]} <Robert>
Date: Tue, 22 Jan 2008 22:14:15 +0000

----boundary-LibPST-iamunique-139262647_-_-
Content-type: text/plain

Yes.

In old versions is was about 400 MByte, but has been increased to 1.5 GByte.

I think it is defined in Kernel.AllocHeapMem with the line:

   CONST M = 1536 * 100000H; (* 1.5 GByte *)

I wonder if it could be safely increased to, say, 1.8 GByte?

(How does one recompile the Kernel which, I guess, is linked into BlackBox.exe?)


I have used all 1.5 GByte; the Allocated Memory figure in the Status bar
sometimes exceeds 1'600'000'000 Bytes. Allocation time can be considerable (many
seconds) for heap sizes greater than about 1'000'000'000 Bytes. When using
large memory I allocate all I need (can) when the Module is loaded, and
subsequently do minimal deallocation & reallocation. I allocate it in many
chunks of a few tens of kilobytes.

This applies to XP machines with 2 GByte of physical RAM, and XP64 machines with
more than 2 GByte.

I don't know anything about the differences with 'dlls's.

Robert


A Thomas wrote:
> Hei Blackbox people,
>
>
>
> Are there any limits to how much heap memory can be allocated in
> BlackBox? Maybe this is really two questions because memory allocation
> seems different for .exe and .dll. Having a swap file does not sound
> like a good idea with garbage collection. Has anyone got experience of
> allocating lots of objects on the heap, say getting heap sizes of 500MB
> or 1000MB? Is there anything in module Kernel I can change to allow
> bigger heaps?
>
>
>
> Thanks
>
>
>
> Andrew
>
> ---- To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to
> LISTSERV{([at]})nowhere.xy
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.516 / Virus Database: 269.19.9/1237 - Release Date: 22/01/2008 11:04


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-139262647_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2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GJvZHkgIlNJR05PRkYgQkxBQ0tCT1giIHRvIExJU1RTRVJWQExJ
U1RTLk9CfX0AIDIyIEphbiAyMDA=
----boundary-LibPST-iamunique-139262647_-_---
Received on Tue Jan 22 2008 - 23:14:15 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:31:09 UTC