( ESNUG 249 Item 5 ) -------------------------------------------- [8/30/96]
From: ryan@fsd.com (Ken Ryan)
Subject: HEEEEEELP! -- I've Got CLI or SWIFT or VSS Memory Leaks!
Hey, John!
I'm encountering a mysterious memory leak in my simulation environment.
My testbench in VSS uses RTL VHDL, SmartModels, and the CLI C interface.
I'm running Sun/SunOS4.1.4. There is a memory leak somewhere -- the
simulator process starts out with a size of ~100 megs, but after running
overnight (about 15ms with a 1ns timebase and a 30ns system clock) the
process grows to over 600 megabytes! Nowhere do I use dynamically allocated
variables (VHDL or C) except the instance structure in CLI:
- The structure is allocated in the elaborate routine
by calling cliAllocMem().
- The structure is stored at the end of the elaborate routine
by calling cliSaveInstanceData().
- The structure is restored at the beginning of the evaluate routine by
calling cliRestoreInstanceData().
The evaluate routine is called once per system clock. I'm using the SWIFT
version R40b SmartModels, the models are upd4218160 and tms55161. The VSS
version is v3.4a and v3.4b (tried both). I checked the SOLVIT database and
saw the note about the TEXTIO package. I use it in one spot, but only for
writing lines to the screen and to a disk file. I checked over my own C
code pretty carefully, but I don't see where a leak might be. I'm not
ruling this one out, though.
Does anyone know of any memory problems with VSS or SmartModels or CLI
function calls? I'm out of ideas for where to look.
- Ken Ryan
Orbital Sciences Corp.
|
|