Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Vrename aborts when parsing a large netlist #504
Author Name: Evgeni Stavinov
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.
I'm running Vrename from Cygwin on Win7.
Any suggestions on what to try to get it to work.
Original Redmine Comment
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.