|
2003-10-28
| ||
| 20:23 | • Ticket [582810ffff] need to control SyncObj memory usage status still Closed... artifact: 9425d05aca user: dkf | |
|
2003-10-16
| ||
| 16:26 | • Closed ticket [582810ffff]. artifact: 8937a804e0 user: vasiljevic | |
|
2003-07-20
| ||
| 01:20 | • Ticket [582810ffff]: 4 changes artifact: 2bace40a34 user: vasiljevic | |
|
2003-07-19
| ||
| 00:28 | • Ticket [582810ffff]: 4 changes artifact: 0b1c5505bd user: hobbs | |
|
2003-07-18
| ||
| 18:41 | • Ticket [582810ffff]: 4 changes artifact: 717b67c758 user: vasiljevic | |
|
2003-07-17
| ||
| 06:26 | • Ticket [582810ffff]: 5 changes artifact: d88d97fd7e user: hobbs | |
|
2002-08-08
| ||
| 13:57 | • Ticket [582810ffff]: 4 changes artifact: a7efab7912 user: hobbs | |
| 13:57 | • Ticket [582810ffff]: 1 change artifact: 6c190d1fef user: hobbs | |
|
2002-08-07
| ||
| 05:32 | • Ticket [582810ffff]: 5 changes artifact: 801b5b4e8d user: andreas_kupries | |
|
2002-07-17
| ||
| 20:57 | • Ticket [582810ffff]: 1 change artifact: 8cb60938c1 user: dgp | |
| 20:56 | • Ticket [582810ffff]: 1 change artifact: c51a3ccef2 user: dgp | |
| 20:00 | • Ticket [582810ffff]: 4 changes artifact: 018fa15cec user: nobody | |
| 20:00 | • Add attachment tcl.bug to ticket [582810ffff] artifact: 494b01c1ad user: nobody | |
| 13:00 | • New ticket [582810ffff] memory leak. artifact: e6fc0b194b user: nobody | |
need to control SyncObj memory usage
Closed / Fixed582810ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2002-07-17 13:00:08
SyncObjRecord in tclThread.c has unlimited growth--it's realloced when full always with extra 8 slots, e.g. it should add these slots only when there is less than 8 slots filled
nobodyplain2002-07-17 20:00:09
File Added - 27229: tcl.bug
dgp Ticket [582810ffff]: 1 change
[History diff]2002-07-17 20:56:11
dgp Ticket [582810ffff]: 1 change
[History diff]2002-07-17 20:57:14
andreas_kupriesplain2002-08-07 05:32:03
Logged In: YES user_id=75003 Question is how much memory do we lose here because of this. And, how much time do we lose by searching through the array for free entries ? Do we have info on the size of arrays during execution ? Alternative implementation: a free-list using one additional element in the structure, to anchor the list, and the references to the next free entry are kept in the free entries (integer's, not as pointers, relocatable). Your opinion Jeff ?
hobbs Ticket [582810ffff]: 1 change
[History diff]2002-08-08 13:57:45
hobbsplain2002-08-08 13:57:46
Logged In: YES user_id=72656 tclThread.c:RememberSyncObject The problem seems more fundamental, in that recPtr->num only ever increases (except at finalization, when set to zero again). The memory is released, but we aren't using it well, because if SyncObjects are forgotten, num isn't decremented, and there is no reuse of pointers in the list.
hobbsplain2003-07-17 06:26:44
Logged In: YES user_id=72656 Zoran, can you comment on the effects of this?
vasiljevicplain2003-07-18 18:41:25
Logged In: YES user_id=95086 I agree with your oppinion. I also think that Andreas suggestion would be ok. Instead of always allocating new, we might just remember (in the LIFO free list) void slots and reuse them again.
hobbsplain2003-07-19 00:28:51
Logged In: YES user_id=72656 Can you test the patch attached in one of your more intensive threaded tests?
vasiljevicplain2003-07-20 01:20:24
Logged In: YES user_id=95086 Works fine. During some simple quick tests without patch, the table grew to 256 entries. With patch, it was steady at 40/48 entries. I'd only consider using register for loop counters in such tight loops. Otherwise, I have no complaints. You can put it in 8.4.4, IMHO.
vasiljevicplain2003-10-16 16:26:35
Logged In: YES user_id=95086 I'm closing this one since it is now merged in head.
dkf Ticket [582810ffff]: 1 change
[History diff]2003-10-28 20:23:26
Log in (anonymous is fine) to add a comment.
Attachments:
- tcl.bug [download] added by nobody on 2002-07-17 20:00:08. [details]