DotGNU Portable.NET - Bugs: bug #20250, Garbage Collector Doesn't Reclaim...
You are not allowed to post comments on this tracker with your current authentication level.
bug #20250: Garbage Collector Doesn't Reclaim Memory
Submitter: | Nick Lee <nick_lee> | ||
Submitted: | Mon 25 Jun 2007 10:54:19 AM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | None | Status: | None |
Privacy: | Public | Assigned to: | None |
Open/Closed: | Open |
Discussion locked!
Jump to the original submission
Spam posted by anonymous | |
Wed 27 Jun 2007 07:42:17 AM UTC, comment #11: |
Nick Lee <nick_lee> |
Tue 26 Jun 2007 04:55:33 PM UTC, comment #10: Incidentally, System.GC.GetTotalMemory answers the heapsize in pnet; see engine/lib_gc.c, support/hb_gc.c, and libgc/include/gc.h.
|
Stephen Compall <S11001001> |
Tue 26 Jun 2007 11:19:12 AM UTC, comment #9: Forgot to mention the last test also results in the warning:
|
Nick Lee <nick_lee> |
Tue 26 Jun 2007 11:14:17 AM UTC, comment #8: Another test I've tried is this:
|
Nick Lee <nick_lee> |
Tue 26 Jun 2007 08:18:09 AM UTC, comment #7: Ok, that's fair enough, but I'm also printing out the "bytes allocated" returned from the GC.TotalMemory function, and this number is constantly increasing too, which would suggest that it's not unallocating anything. It's just that if we run our application for long enough, it runs out of memory, yet as far as the logs are concerned, nothing is being reclaimed! |
Nick Lee <nick_lee> |
Tue 26 Jun 2007 08:07:44 AM UTC, comment #6: I apologize if I misunderstand you, but:
|
Stephen Compall <S11001001> |
Tue 26 Jun 2007 07:54:26 AM UTC, comment #5: I've also tried setting the option --without-libgc which causes immediate Out Of Memory exceptions, so it appears to be picking up the options. |
Nick Lee <nick_lee> |
Mon 25 Jun 2007 03:20:03 PM UTC, comment #4: That doesn't seem to make any difference. If it's any help, when I turn the GC debugging on in Portable .NET every collection prints out a line similar to the following:
|
Nick Lee <nick_lee> |
Mon 25 Jun 2007 01:37:32 PM UTC, comment #3: Try enabling munmap when configuring pnet with ./configure --enable-munmap
|
Klaus Treichel <ktreichel> |
Mon 25 Jun 2007 01:16:13 PM UTC, comment #2: It also doesn't seem to collect on the embedded system we're running on - see new file attached GCTest3embedded.log. |
Nick Lee <nick_lee> |
Mon 25 Jun 2007 11:19:02 AM UTC, comment #1: With GC Debug on I get the following output:
|
Nick Lee <nick_lee> |
Mon 25 Jun 2007 10:54:19 AM UTC, original submission:
In the attached code, the Garbage collector never reclaims any memory when run on Linux. Program output is as follows:[[BR]][[BR]]
|
Nick Lee <nick_lee> |
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 5 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2008-05-07 | karl | Discussion Lock | None | Locked | |
2007-06-25 | nick_lee | Attached File | - | Added GCTest3embedded.log, #13162 | |
2007-06-25 | nick_lee | Attached File | - | Added GCTest2.log, #13160 | |
2007-06-25 | nick_lee | Attached File | - | Added GCTest.cs, #13157 | |
Attached File | - | Added GCTest.log, #13158 |
Powered by Savane 3.13-f8d8.
Corresponding source code
That's a good point, we are running 0.7.4 - I'll try it on 0.8.0 and see if it fixes the problem!