Re: [BLACKBOX] More memory management problems

From: [at]} <shristov>
Date: Tue, 28 Jun 2011 17:24:59 +0200

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

As as second thought, I think that Wojtek's explanation does not apply.



Consider the following experiment.





start Windows XP, start Task manager:

  physical memory: total 3145196 K, available 2725404 K



Run BlackBox:

  physical memory available 2720632 K, BlackBox memory usage 7604 K



Compile "PrivLarge" module:

  physical memory available 2721464 K, BlackBox memory usage 8076 K



Run "Do" procedure first time:

  physical memory available 2487748 K, BlackBox memory usage 242920 K



Run "Do" procedure second time:

  physical memory available 2487748 K, BlackBox memory usage 242920 K (no change)



Run "Do" procedure third time:

  physical memory available 2491160 K, BlackBox memory usage 242916 K (4 K less)



Compile "PrivLarge" again and unload it:

  physical memory available 2726200 K, BlackBox memory usage 8540 K
  BlackBox released 240 MB after unloading the module.



Try to run "Do" procedure results in "not enough memory":

  physical memory available 2726472 K, BlackBox memory usage 8540 K (no change)





This shows that unloading actually removes the module from memory,

leaving BlackBox with only 8.5 MB occupied.



But after that, there is plenty of available memory (far more than "2 GB/process" limit),

but BlackBox thinks there is "not enough memory" to run a 240 MB module.



Looks like BlackBox has a limit on allocating more than ~300 MB since the startup,

REGARDLESS of memory being released in between.





Sinisa


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-514932214_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFx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BwbGVudHkgb2YgYXZhaWxhYmxlIG1lbW9yeSAoZmFyIG1vcmUgdGhhbiAi
MiBHQi9wcm9jZXNzIiBsaW1pdCksXHBhcg0KXHBhcg0KYnV0IEJsYWNrQm94IHRoaW5rcyB0aGVy
ZSBpcyAibm90IGVub3VnaCBtZW1vcnkiIHRvIHJ1biBhIDI0MCBNQiBtb2R1bGUuXHBhcg0KXHBh
cg0KXHBhcg0KXHBhcg0KTG9va3MgbGlrZSBCbGFja0JveCBoYXMgYSBsaW1pdCBvbiBhbGxvY2F0
aW5nIG1vcmUgdGhhbiB+MzAwIE1CIHNpbmNlIHRoZSBzdGFydHVwLFxwYXINClxwYXINClJFR0FS
RExFU1Mgb2YgbWVtb3J5IGJlaW5nIHJlbGVhc2VkIGluIGJldHdlZW4uXHBhcg0KXHBhcg0KXHBh
cg0KXHBhcg0KXHBhcg0KXHBhcg0KU2luaXNhXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxwYXINClRv
IHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxBQ0tCT1gi
IHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19AAAA8hA=
----boundary-LibPST-iamunique-514932214_-_---
Received on Tue Jun 28 2011 - 17:24:59 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:13 UTC