Vrename aborts when parsing a large netlist
|Assignee:||Evgeni Stavinov||% Done:||
I've a 520MByte Verilog netlist that I'm trying to load using "Vrename --list --xref netlist.v" command.
My system has 11GByte of available memory. After a few minutes of working, memory usage of Vrename climbs to 1.3GByte, then it dies with the following message:
"Out of memory during "large" request for 1052672 bytes, total sbrk() is 136468480 bytes at vrename line 157. Aborted"
I'm running Vrename from Cygwin on Win7.
Any suggestions on what to try to get it to work.
Updated by Wilson Snyder about 1 year ago
- Status changed from New to AskedReporter
Looks like ~2GB is a Cygwin limitation. A google search suggested http://cygwin.com/cygwin-ug-net/setup-maxmem.html
If your needs are straight forward you might instead want to just write a script to do your transformations on a line-by-line basis. vrename does all replaces in memory which while fast and allowing detection of changes before writing, does require having more memory than a few times the file size. It certainly could be changed to optionally operate on some block size (say 16MB or so) I'll certainly take the function back if you want to make the changes.
Also available in: Atom