Ticket #3 (closed Bug: fixed)

Opened 16 years ago

Last modified 16 years ago

Memory leak in scheduling simulation

Reported by: N. Vienne Owned by: jerome
Priority: minor Milestone: 2.1
Component: framework Version: trunk
Keywords: Cc:

Description

It looks like a memory leak : each time I ran the scheduling simulation an amount of
memory is taken but not released. It is about 80 Mb for each simulation. I start Cheddar
with 1.12 Go of pagefile and 1.64 Go of free physical memory and after 15 runs I have
2.27 Go of pagefile and only 430 Mo of free RAM.

This behavior can be obtained with the example file
project_examples/tests/test_buffer2.xml for instance.

I'm using Cheddar 2.0 (march the 5th 2007) under Windows. I have not checked if this
behavior occurs under Linux.

Change History

comment:1 Changed 16 years ago by jerome

After discussion with Frank it appears scheduling table is not freed if the simulation is launched again.

Scheduling table is a 2 dimensional table (event table for each processor).
The scheduling table has to be deallocated before launching another simulation by :

  • Deallocate for each index (processor), the event table.
  • Deallocate the scheduling table itself.

comment:2 Changed 16 years ago by jerome

  • Owner changed from Jerome to jerome
  • Status changed from new to accepted

comment:3 Changed 16 years ago by jerome

  • Status changed from accepted to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.