Helpful Reply[SOLVED] Unloading a Synth Does Not Reduce RAM Usage?

Author
PeteL
Max Output Level: -87 dBFS
  • Total Posts : 168
  • Joined: 2013/12/15 18:56:58
  • Status: offline
2016/07/29 09:19:41 (permalink)

[SOLVED] Unloading a Synth Does Not Reduce RAM Usage?

After reading the manual and searching the forum, I was under the impression that unloading a synth by clicking the freeze button in the Synth Rack would free up the memory used by the synth. This doesn't appear to work in my case below.

I've set up an project with all the audio tracks and soft synths I think I'll need. Currently it's just an empty project with no audio or MIDI data. One of the synths is UVI Workstation with a huge preset loaded nearly maxes out my 8GB of RAM, consuming 2 GB when loaded, and taking about 6 minutes to load the synth with preset. I find this annoying, and I thought I could unload that synth until I actually work on that instrument's part near the end of the process (and freeze the track once the part is complete).

When I press the freeze button in the Synth Rack - nothing happens (I would think the button would stay lit) and RAM usage remains where it was. This possibly may have something to do with the fact the associated MIDI track is currently blank. ????? Does anyone have insight into this situation? I would think that the freeze method ought to work.

I currently am using the workaround of replacing the UVI Workstation preset with an empty one, which is working, but I'm wondering if I'm missing something in my attempted use of the freeze function.

Thanks in advance for your thoughts!
Pete
post edited by PeteL - 2016/07/29 11:07:10
#1
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
  • Total Posts : 26036
  • Joined: 2006/09/17 11:23:23
  • Location: Everett, WA USA
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 09:45:17 (permalink) ☄ Helpfulby Mitch_I 2016/07/29 12:49:41
Windows caching? If you unload the synth, it should (must) de-allocate any RAM it's claimed. However, Windows likes to hang on to loaded data for awhile in case you need it again. It's not necessarily a problem, as that memory will be re-allocated to other processes as needed.
 
There are occasional exceptions, that usually come down to programs not managing memory properly. It usually manifests itself as a so-called "memory leak". Even Windows itself is sometimes guilty of it, which is why over the years users have gotten into the habit of periodically rebooting. Quashing memory leaks has been a priority at Microsoft for the last couple decades, though, and it's not nearly as big a problem as it was in, say, Windows 95. But it's still there, usually in 3rd-party drivers and services that Microsoft has no control over.
 
Memory leaks are typically a few kilobytes at a time and only become problematic over time, like weeks. A six-gigabyte memory leak would be highly unusual - I've never heard of such a thing. In my experience, SONAR's been pretty good at memory management, and in any case we don't usually run SONAR for weeks at a time anyway. 
 
After removing the UVI instrument from your template and closing out of SONAR, does it still eat lots of RAM when you start a new project?


All else is in doubt, so this is the truth I cling to. 

My Stuff
#2
tlw
Max Output Level: -49.5 dBFS
  • Total Posts : 2567
  • Joined: 2008/10/11 22:06:32
  • Location: West Midlands, UK
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:16:59 (permalink)
It's possible to force Windows to clear any RAM it doesn't currently have a running process associated with, but as Bitflipper says it's pretty pointless. Windows will re-allocate RAM as required, and also tends to keep stuff in RAM rather than the pagefile if possible. So if it sees a lot of unused RAM it will fill it with content from the page file and the RAM will then show up in task manager as in use because it is.

When something is loaded that wants RAM Windows reverses the process and shoves some stuff out of RAM and into the page file as required. So seeing continually high RAM usage on even a lightly loaded system isn't unusual.

You only move away from this once you have somewhat more RAM than your running applications, including Windows processes, require. And even then Windows will be putting some things into swap if they haven't been used for a while.

Sonar Platinum 64bit, Windows 8.1 Pro 64bit, I7 3770K Ivybridge, 16GB Ram, Gigabyte Z77-D3H m/board,
ATI 7750 graphics+ 1GB RAM, 2xIntel 520 series 220GB SSDs, 1 TB Samsung F3 + 1 TB WD HDDs, Seasonic fanless 460W psu, RME Fireface UFX, Focusrite Octopre.
Assorted real synths, guitars, mandolins, diatonic accordions, percussion, fx and other stuff.
#3
PeteL
Max Output Level: -87 dBFS
  • Total Posts : 168
  • Joined: 2013/12/15 18:56:58
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:20:29 (permalink)
Hi Bit!
 
bitflipper
After removing the UVI instrument from your template and closing out of SONAR, does it still eat lots of RAM when you start a new project?



Actually, I didn't remove UVI Workstation, I just "emptied out" the preset being used within UVI Workstation, replacing it with an empty preset ... and that immediately decreased RAM usage by about 2GB on the spot.
 
Let me rephrase what I think the problem is ... normally when a freeze a synth in a project, in the Synth Rack the synth's freeze button stays lit, the synth's name gets parentheses around it, the associated tracks render, and the associated tracks' freeze buttons light up.  That is with actual MIDI data in the associated tracks.
 
In my current case, the project is basically an empty template if you will, with no audio or MIDI data yet.  I press the UVI Workstation's freeze button and nothing happens.  I now postulate that since there's no data to freeze, the operation is therefore precluded, and hence doesn't occur, leaving the synth in memory without any error messages.  Now that I've said that, I realize I could probably enter one dummy note into the associated MIDI track, and then freeze.  I bet it would work and release the memory.
 
I don't think it's a memory leak issue.  I once had a horrible memory leak problem while setting up VSL preset and matrices, which involved a lot of saving, closing, re-loading matrices and such.  Eventually my memory was full and I had to restart!  Not too long ago, lo and behold - VSL released a fix for "improper memory management" and the problem hasn't occurred since.
 
Hey, by the way, thank you for all your excellent and well thought out posts and explanations over the years.  I find them most useful!  You have a real  talent for that.
 
Pete
#4
PeteL
Max Output Level: -87 dBFS
  • Total Posts : 168
  • Joined: 2013/12/15 18:56:58
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:25:17 (permalink)
tlw
It's possible to force Windows to clear any RAM it doesn't currently have a running process associated with, but as Bitflipper says it's pretty pointless. Windows will re-allocate RAM as required, and also tends to keep stuff in RAM rather than the pagefile if possible. So if it sees a lot of unused RAM it will fill it with content from the page file and the RAM will then show up in task manager as in use because it is.

When something is loaded that wants RAM Windows reverses the process and shoves some stuff out of RAM and into the page file as required. So seeing continually high RAM usage on even a lightly loaded system isn't unusual.

You only move away from this once you have somewhat more RAM than your running applications, including Windows processes, require. And even then Windows will be putting some things into swap if they haven't been used for a while.



I thought that wasn't "quite as true" as it was with the initial W10 release when people claimed their memory was always full.  Anyway, both in Sonar's memory meter and resource monitor my memory is usually 1/2 to 5/8 full when running most Sonar projects.  With my current project, the UVI with huge sample preset brings it up to about 9/10, equating to about 2GB extra.  But, only with the preset loaded into UVI.
 
Pete
#5
BobF
Max Output Level: 0 dBFS
  • Total Posts : 8124
  • Joined: 2003/11/05 18:43:11
  • Location: Missouri - USA
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:34:48 (permalink)
Freezing a synth processes the MIDI track and produces an audio clip.  You don't have a MIDI clip, so a 'freeze' didn't actually happen.
 
I happen to have a project in front of me with an Addictive Drums track that has MIDI clips and an ST3 Bass synth with no MIDI yet.
 
When I 'freeze' the AD track, it processes, lights the 'freeze' indicator, and unloads some memory.
 
When I try to 'freeze' the ST3 track, the 'freeze' indicator doesn't change and there is no change in memory used by the Sonar process.
 
 
 

Bob  --
Angels are crying because truth has died ...
Illegitimi non carborundum
--
Studio One Pro / i7-6700@3.80GHZ, 32GB Win 10 Pro x64
Roland FA06, LX61+, Fishman Tripleplay, FaderPort, US-16x08 + ARC2.5/Event PS8s 
Waves Gold/IKM Max/Nomad Factory IS3/K11U

#6
BobF
Max Output Level: 0 dBFS
  • Total Posts : 8124
  • Joined: 2003/11/05 18:43:11
  • Location: Missouri - USA
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:38:19 (permalink)
If you undock the Browser, or dock it in the multidock, you'll see power buttons for each synth.  Clicking these to turn off the synths will free up memory even for synths that have no MIDI.
 

Bob  --
Angels are crying because truth has died ...
Illegitimi non carborundum
--
Studio One Pro / i7-6700@3.80GHZ, 32GB Win 10 Pro x64
Roland FA06, LX61+, Fishman Tripleplay, FaderPort, US-16x08 + ARC2.5/Event PS8s 
Waves Gold/IKM Max/Nomad Factory IS3/K11U

#7
PeteL
Max Output Level: -87 dBFS
  • Total Posts : 168
  • Joined: 2013/12/15 18:56:58
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:44:04 (permalink)
Bit & BobF -
 
I just tried inserting a dummy MIDI note into the UVI Workstation's MIDI track - and freeze worked and immediately unloaded 2GB from memory.
 
So I guess there's no clean way to accomplish my intent of lowering project load time by 6 minutes and reducing RAM usage?  If the consensus is no, and I either have to clear the huge preset until I'm actually working on that part or add a dummy note to the MIDI track and freeze, I will mark this as solved later today.
#8
Bristol_Jonesey
Max Output Level: 0 dBFS
  • Total Posts : 16775
  • Joined: 2007/10/08 15:41:17
  • Location: Bristol, UK
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:45:36 (permalink)
You need to do what BobF said and disconnect the synth from the undocked Browser

CbB, Platinum, 64 bit throughout
Custom built i7 3930, 32Gb RAM, 2 x 1Tb Internal HDD, 1 x 1TB system SSD (Win 7), 1 x 500Gb system SSD (Win 10), 2 x 1Tb External HDD's, Dual boot Win 7 & Win 10 64 Bit, Saffire Pro 26, ISA One, Adam P11A,
#9
PeteL
Max Output Level: -87 dBFS
  • Total Posts : 168
  • Joined: 2013/12/15 18:56:58
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 10:45:45 (permalink)
BobF
If you undock the Browser, or dock it in the multidock, you'll see power buttons for each synth.  Clicking these to turn off the synths will free up memory even for synths that have no MIDI.



HI BobF!  I didn't see this post prior to writing my last response.  Very nice!  Thank you - I like this one!
#10
PeteL
Max Output Level: -87 dBFS
  • Total Posts : 168
  • Joined: 2013/12/15 18:56:58
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 11:06:40 (permalink)
A gracious thanks to all who helped!  The undocked Browser synth power button is THE answer!  Works nearly instantly with immediate results in the RAM meter.  And my project loaded in 2 minutes instead of 9!  There are several sampling synths I didn't disconnect - they have much smaller RAM footprints.  Or should I disconnect them until I'm ready to use them, and further decrease load time?????  So many options now!  Thanks again - I appreciate it immensely!
#11
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 11:13:17 (permalink) ☄ Helpfulby BobF 2016/07/29 11:43:24
Fortunately there is a way to disconnect a synth without undocking the browser and clicking the power button. When docked, the selected synth may be disconnected by toggling the "Synth Connected" option in the menu in they Synth tab.
#12
PeteL
Max Output Level: -87 dBFS
  • Total Posts : 168
  • Joined: 2013/12/15 18:56:58
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 11:24:24 (permalink)
scook
Fortunately there is a way to disconnect a synth without undocking the browser and clicking the power button. When docked, the selected synth may be disconnected by toggling the "Synth Connected" option in the menu in they Synth tab.

Even easier!  Thanks Scook!  By the way, I just also disconnected my Kontakt instruments, leaving only a couple of others active, and my load time is down to 4 seconds!  Guess I'll be moaning once it's time to enter those parts and re-activate the instruments!
#13
scook
Forum Host
  • Total Posts : 24146
  • Joined: 2005/07/27 13:43:57
  • Location: TX
  • Status: offline
Re: Unloading a Synth Does Not Reduce RAM Usage? 2016/07/29 11:32:57 (permalink)
FYI, disconnecting synths, bypassing FX racks (an option available in the FX context menu) and turning off ProChannels is how the freeze function frees up resources.
#14
Jump to:
© 2025 APG vNext Commercial Version 5.1