PDA

View Full Version : Who ever said turn off Virtual Memory??



Jaibulu
07-28-2005, 06:03 PM
Before I upgraded my system I was sequencing Tchaikovsky using EWQLSO GOLD with 1 GB of ram. Virtual Memory was turned off and my system could only handle 3 instances of Kompakt (8 channels x 3 ) before crashing. Only after I set the maximum paging file was I able to achieve 5 instances (40 channels) on 1 GB of RAM. Since then, I've upgraded to 3GB of ram so I don't have nothing to worry about. But just to let those who may have some Ram problems that Virtual Memory can help.

Always, here's a snippet of Tchaikovsky using around 40 channels (8 x 5). There is not much bandwidth on this site so if it has reached it's limit, check back later.

http://ca.geocities.com/rrosadiuk487@rogers.com/Tchaikovsky.mp3

musikman
07-28-2005, 11:10 PM
Turning virtual memory off was a trick used in the times when computers couldnīt handle pagefiles very well. A long time ago, you could actually improve performance by turning it off, but today things changed. I am quite shocked to see that some people still recommend this procedure today... old habits die hard. :)

mal7
07-29-2005, 12:09 AM
I've read conflicting recommendations on this.

I have a P4 with 2 Gigs Ram.
Currently my C drive (operating system and programs) is set at 2046 minimum and 4092 maximum)
On my E drive (Giga samples) the paging file is turned off.

What would be the best settings in your opinion

Mal

ammscray
07-29-2005, 12:50 AM
Yes please if anyone knows about this I'm really screwed right now...I'm using 1 GB RAM with a minimum of 1486 and max of 3000 page file and I can't even load one instance of Kontakt or EWQL Gold without tons of glitches and dropouts...

When I load my project into cubase (22.035) when it gets to 75 percent it says that "physical memory is too low! proceeding can cause problems...and so it does :(

the thing is that my computers CPU doesn't even go above 15-20 percent but the cpu meter on the EWQL kompakt player maxes out...I've tried lowering the buffer and all the different settings in cubase to no avail...using an Echo Mia Midi card...

I have windows XP on drive C, cubase on drive F of same HD, and the EWQL gold samples and audio partitions are on another HD so there should be no problem right?

Should I be doing the "DFD" thing?

Any help for this comp moron would be greatly appreciated!

fizbin
07-29-2005, 01:51 AM
Why did you not install Cubase on the C drive? Certainly you'd want your audio projects residing on another hard drive and your samples on a third hard drive, but there's no reason to install Cubase anywhere other than the system partition, although installing it on another partition on the same HD isn't necessarily bad.

You should be using DFD in Kontakt. It will save RAM and most of the samples will stream from disk as needed. If you don't use it, Kontakt must load the entire sample into RAM and you will max out very quickly with large sample sets.

Oh, and typically it is recommended to set the minimum and maximum sizes for page files to be the same value on a DAW - usually something like twice the RAM size, although since I have 2GB I set the page file to 2048mb min/2048mb max, since I doubt Windows would ever use that much page file in a normal DAW scenario.

fizbin

ammscray
07-29-2005, 02:53 AM
Why did you not install Cubase on the C drive? Certainly you'd want your audio projects residing on another hard drive and your samples on a third hard drive, but there's no reason to install Cubase anywhere other than the system partition, although installing it on another partition on the same HD isn't necessarily bad.

You should be using DFD in Kontakt. It will save RAM and most of the samples will stream from disk as needed. If you don't use it, Kontakt must load the entire sample into RAM and you will max out very quickly with large sample sets.

Oh, and typically it is recommended to set the minimum and maximum sizes for page files to be the same value on a DAW - usually something like twice the RAM size, although since I have 2GB I set the page file to 2048mb min/2048mb max, since I doubt Windows would ever use that much page file in a normal DAW scenario.

fizbin

Thanks for replying, I didn't install cubase on the main C drive because it was getting full with stuff so I opted to put it on F drive...then I have another internal 120 GB HD with the EWQL and library on one partition, and then I have a 25 GB partition for the audio files...doing this because of what I've read...

I've tried all types of adjustments of the page file and did it like you said, min and max the same, but nothing makes any difference...BTW the page file is on the C drive, should I try setting one on one of the other drives?

I just tried installing the DFD and turned it on in EWQL gold but it didn't seem to make any difference...between 75 and 85 percent of the project with 1 instance running it says physical memory is wasted already...f***!

Also I noticed the little "light" in EWQL gold is not illuminated so I don't even know if it's really on yet...

I wish I knew more about this ~~~~, it seems like I make one minute of music and again I'm troubleshooting and searching around the web for the next week...

thanks again and let me know what you think if you have the time :)

mal7
07-29-2005, 03:23 AM
Oh, and typically it is recommended to set the minimum and maximum sizes for page files to be the same value on a DAW - usually something like twice the RAM size, although since I have 2GB I set the page file to 2048mb min/2048mb max, since I doubt Windows would ever use that much page file in a normal DAW scenario.

fizbin

Thanks for the tip.
Would that setting be for both the "C" drive (XP and GS3) and the drive that the samples are on?

Miguelo Adorno
07-29-2005, 03:36 AM
If you're using DFD streaming (which you should) and virtual memory is enabled, Kompakt buffers some of the data to paging file. This will definitely slow down performance since the sampler have to read samples twice from the disk. When virtual memory is disabled, Kompakt buffers only to RAM and the performance should obviously be smoother this way. With low amount of RAM you may gain some benefit with VM on, at least you get more instruments loaded.

When using DFD streaming with disabled virtual memory, you should carefully monitor your memory status from Windows task manager. Kompakt doesn't "fill" the buffers instantly when instruments are loaded. For example, when you load three instances, task manager may imply that only something like 500 MB is used. After half an hour when played around with all of the instruments, the memory status may indicate 1 GB used memory.

It depends on the DFD settings, how many instruments you can load and how much RAM is used to each instrument's buffer. Smaller buffers, more instruments and vice versa. Larger buffers offer better playback so you shouldn't set up too small buffers for such a big instruments.

Actually the default DFD settings works quite well in most of the cases. You just have to change the maximum voices to 248 (this means within one instance), so you don't run out of polyphony. I have 2 GB RAM in my computers (VM off) and with these DFD settings I can load five full instances per machine and the performance is very smooth.

Did you try to make a new project after changing settings. At least try shutting off all the EWQLSO instances within an existing project and then manually reload all the instruments again. Believe or not this has solved some problems too.

- Mikko

sbenno
07-29-2005, 06:01 AM
Unfortunately people here are still spreading mis information about virtual memory (page file) because they don't know how it works internally.

I will try to sum it up briefly:

Samplers are very memory hungry so it's easy to use up all the available physical RAM.

The problem in a sampler is that it needs to provide low latency access to those samples in RAM otherwise you will experience glitches clicks and delays.

When the operating starts running out of memory it has to make decisions how to manage this critical situation.

Here the page file comes into help. Basically the system tries to swap out to the page file some data in RAM that has not been used for some time (least recently used).

Most operating systems provide functions to lock memory areas in physical RAM.
For example a sampler might ask the OS to not swap out certain areas of memory where the samples reside.
This works well but if you try to lock down too much memory in physical RAM then the operating system will try to swap out system background processes to the page file and this could cause grinding the machine to a halt.

So having a page file does indeed help to load/run more applications/data than would fit in physical RAM, but if the sampler wants to be sure that the samples are not swapped out to the page file it HAS to lock them down in memory and in substance the page file will be of only little help.

The only way to go to have smooth playback is avoiding to load too much samples in RAM. If you leave a 10-20% of headroom (assuming the OS can allocate all the memory) then you will be fine.
If you want to go over that limit then expect troubles, regardless if the page file is enabled or not.

PS: windows memory management sucks a bit (eg you cannot allocate all the physical memory efficiently) then this adds even more troubles in addition to the things described above.

cheers,
Benno
http://www.linuxsampler.org

Jaibulu
07-29-2005, 06:32 AM
It was a while ago but of what I can remember, this was the setup I had. I had paging file turned off and I could only open 3 instances of Kompakt. I of course needed more channels so I decided to max my virtual memory and it worked! It gave me 2 more instances (40 channels). I can't remember what the maximum limit was but it was set to something like this:

C: 4096 Initial - 4096 Maximum (O/S)
D: 4096 Initial - 4096 Maximum (KOmpakt)
E: 4096 Initial - 4096 Maximum (Samples)

It worked for me so it doesn't matter what the theory tells you to do.

Oh yeah, what also helped was to partition my one 160GB HD 3 times!

seclusion
07-29-2005, 07:38 AM
I read in one of the posts, "partition!
Please be advised that splitting the drive to say a C: and a D: will not help performance. There should be a harddrive for OS, a drive for Samples and a drive for Recording. Partitioning a drive into 2 may help to organize but it won't do much else. Some say performance is decreased!
My poor P3 is running better then that! Might be a good time to do a fresh install and clean up some of the mess in that system. Might be the best 2-3 hours you've ever spent!
Later
The BriGuy

Alex Pfeffer
07-29-2005, 08:28 AM
same here,

i upgraded my pc a while ago and i have 3 HDs in it and it works superfine:

C: system and all programs
D: audioworks and compositions
E: samples

none of the drives using partitions etc, everything is as big as it can be, even the sata samples drive (E) is 250 GB and it works flawless.

newmewzikboy
07-29-2005, 09:11 AM
Turning off VM is not a good idea for XP even w/ DFD. XP always needs this enabled for other activity, and allocates additional overhead for "just in case scenarios". YOu may actually be reducing available memory for K by disabling this. Recommend min/max fixed, 1.5x RAM size. and making sure it isnt fragmented. If you want,enablememlock in K

newmewzikboy
07-29-2005, 09:12 AM
sbenno,others. Does anyone know the true use of /3G BOOT sw?

sbkp
07-29-2005, 09:17 AM
Also I noticed the little "light" in EWQL gold is not illuminated so I don't even know if it's really on yet...

Start the Kompakt Instrument in standalone mode, click on Settings (this is from memory -- I'm not at my music machine), and somewhere in there is something to enable DFD and change its configuration. Then quit Kompakt and load your project.

- Stefan

mirage
07-29-2005, 10:33 AM
...."sbenno,others. Does anyone know the true use of /3G BOOT sw..."

What I know is that it allows samples and other apps to make use of available ram above (I think) 2gb...which is normally a lockout point for lots of apps.

Speaking of the /3g line, I'd sure like to have someone detail the steps out for implementing this on xp. I've read a bunch of posts in different places and still can't seem to figure out how/where to type in that line. Plus, I get the impression that there are other instructions that are also supposed to be put in somewhere. I'm usually fairly up on os command line code on pc stuff, but I am somehow not getting the /3 thing figured out.

I have 4gb of Crucial memory on a couple of machines and only after putting that ram in did I find out that basically none of my apps could use it above where they were when I only had 2gb in the machines...plus it would screw up some apps, show an INCREASE in cpu load on some apps. Etc.

I realize dual-core/win xp64 will solve all that, but I won't be in that camp for probably another year when os/hardware/apps are working better together in 64 bit.

Till then, yeah, I'd like some detailed instruction on implementing /3

newmewzikboy
07-29-2005, 10:40 AM
You can enable it by going to msconfig on the RUN menu option

I still dont know when i should do this? Or what other BOOT options I should use form here?

Should I use this ONLY in server situations?(such as my standalone Giga server?)
Do I need MORE than 2 gigs to take advantage of this?
Should I enable this on my laptop when running FINALE + GPO + GOLD for example with 2 gig of memory??
INSIDE WIN 2000 is confusing about this

panzerD
07-29-2005, 11:14 AM
Please help me with my VM settings you computer gurrus!

I have Win XP Service Pack 1
2 GB RAM
3 HardDrives (For programs, for vsti (on SATA), for samples/gigasamples
I use primarily NI Engines like Gold, Kontakt 2, etc. But on this same computer sometimes I run Giga 3 Orchestra also at the same time.

So what should my VM settings be? I turned it off because it's what East West recommended last year.

Cheers,

ammscray
07-29-2005, 03:07 PM
Thanks to all for the great advice! I reset the page file to equal 1.5 times as was suggested and also reloaded the EWQL player and so far so good, I'll be loading up more instances this weekend and I'll report back...

FWIW I did try turning off VM awhile back but if I did, when I tried to load a project in SX, cubase AND windows both said they had to close and I couldn't go any further, so I quickly turned it back on...I don't know why EWQL gold says to turn it off cuz it don't woik!

Incidently, I am curiuous about the multiple page file that somebody mentioned, since I DO currently have my extra 120 GB HD partioned into 4 parts, should I put a seperate page file on each one or is that overkill? Right now I have one on the main HD C with the OS and one on the other HD that has most of my big orchestral sample stuff...

Also right now I have all the 4 partitions filled up with 15 percent remaining on each so they can be defragged when I switch things around (all the time)...is that standard or should I leave more space?

Thanks again mucho to everyone for helping me on this, it was a big step :)

newmewzikboy
07-29-2005, 04:02 PM
You can put your paging file on seperate partition, however, the only reason you do is so it is easier to defrag it.

Having multiple paging files with a lot of Memort is OVERKILL IMO. You are only creating it to satisfy XP's religious initialization and configuration stupidity, not necessarily to USE it.