Midimanz
Max Output Level: -89 dBFS
- Total Posts : 78
- Joined: 2003/11/29 17:02:11
- Location: Auckland, New Zealand
- Status: offline
NTFS file compression
Last week I asked a question in this forum about the wisdom of using file compression on my sample files and the unequivocal view was that if NTFS file compression is used it brings additional load to the CPU in loading a file and therefore slows everything down. Short answer - don't do it - bad juju - dumb idea. OK, that seemed logical until I encountered a work colleague who insisted that this view no longer holds true because of modern processor capability/capacity in conjunction with a smaller file footprint on the hard drive for compressed files. The substance of his argument seems to be that the the hard drive rotation time to read the file is the limiting factor now, not the de-compression time required by the CPU. Compressed file = smaller footprint on the disk = less disk read time. I tried to think about a way to test this at first hand to satisfy myself and in the absence of any good measurement tools at hand, I decided that I would take a 140 MB WAV file and import it into SONAR - measuring the time it takes to load. I would then copy the 140 MB WAV file - rename it and apply NTFS compression and repeat the process, timing it again. Guess which one loaded faster? Yes, the compressed version! Uncompressed load time is approximately 5 seconds, compressed file load time is approximately 3 seconds. Hmmm... OK, but that may not be the full story. Do compressed files load faster only above a certain file size? What is the truth here? What tools can I use to explore and understand this better. Or maybe I don't have to explore..... What is the wisdom in the forum? Thanks. ASUS P5W DH Deluxe Mobo Intel Core Two Duo 6600 2.40 GHz 2Gb Corsair RAM Vista Ultimate (32 bit) 74 GB Raptor C: drive Dual 150GB Raptor drives in RAID 1 configuration for project files 150 GB Raptor drive dedicated to sample storage NVIDIA GeForce 7600 GS video card 2 X Philips 190B monitors SONAR Producer 6.21
Knowledge, grounded on accuracy, aided by labour and sustained by perseverance, will finally overcome all difficulties.
|
mwd
Max Output Level: -78 dBFS
- Total Posts : 627
- Joined: 2006/05/18 22:05:07
- Status: offline
RE: NTFS file compression
2007/04/18 09:03:27
(permalink)
Midimanz you may be hard pressed to find enough people using this method to get viable input. Your friend may be absoultely right. For example my bad experience was on Windows 98 and Fat32. It totally messed with me and I have never given it a second chance. You may have to Google, study and experiment and pioneer the way on this one. Consider writing Microsoft (they eventually answer). I am inclined to believe that there are side effects however. Imagine being able to increased the capacity of your hard drive and at the same time improve performance. Every Audio and Video software company would be jumping on this as a tip to improve the performance of their software configurations. I've never seen this recommendation. If I was you I would create a drive image of your normal drive. Then experiment. I may have some scenarios on some hard drives that I could kick in and help test this as well.
|
mudgel
Max Output Level: 0 dBFS
- Total Posts : 12010
- Joined: 2004/08/13 00:56:05
- Location: Linton Victoria (Near Ballarat)
- Status: offline
RE: NTFS file compression
2007/04/18 09:21:21
(permalink)
I think your experiment has some severe limitations. loading a single file no matter how big it is is not representative of what manipulating audio data is about. Now lets say you're editing 10 audio tracks each being different .wav files on your hardrive and you make a simple edit across all 10 files like cutting 1 bar of music out the middle of your song. Would your experiment still hold true? Or how about streaming samples which can sometimes be much larger than your experimental 140meg file. I reckon keeping files uncompressed is the way to go at least until someone can show me some well documented experiment results to the contrary
post edited by mudgel - 2007/04/18 09:48:02
Mike V. (MUDGEL) STUDIO: Win 10 Pro x64, SPlat & CbB x64, PC: ASUS Z370-A, INTEL i7 8700k, 32GIG DDR4 2400, OC 4.7Ghz. Storage: 7 TB SATA III, 750GiG SSD & Samsung 500 Gig 960 EVO NVMe M.2. Monitors: Adam A7X, JBL 10” Sub. Audio I/O & DSP Server: DIGIGRID IOS & IOX. Screen: Raven MTi + 43" HD 4K TV Monitor. Keyboard Controller: Native Instruments Komplete Kontrol S88.
|
xackley
Max Output Level: -45.5 dBFS
- Total Posts : 2973
- Joined: 2004/01/30 09:39:49
- Location: USA
- Status: offline
RE: NTFS file compression
2007/04/18 09:35:20
(permalink)
Possibly the cpu power has increased enough to mask it. Try compressing an entire project folder, hopefully with lotsa audio track, and check the Windows Task manager and Sonars Disk usage meter.
|
wogg
Max Output Level: -57 dBFS
- Total Posts : 1819
- Joined: 2003/11/14 16:07:44
- Location: Columbus, OH
- Status: offline
RE: NTFS file compression
2007/04/18 10:16:21
(permalink)
Loading a file while the CPU has nothing else to do is not really a good experiment. That may apply well to sample sets that are loaded into RAM, so they only get accessed when the project is opened. In that case I'm sure you could save a couple seconds opening the project. Things will change once you're trying to stream to and from the disk real time while asking the CPU to process plug ins. Performing file compression and decompression is certainly going to take CPU cycles away from the plug ins. Of course if you're project is not using everything you've got, then maybe you can spare the cycles and save some disk. IMO, disk space is so cheap that why would you bother?
|
mwd
Max Output Level: -78 dBFS
- Total Posts : 627
- Joined: 2006/05/18 22:05:07
- Status: offline
RE: NTFS file compression
2007/04/18 10:31:56
(permalink)
A few things come to mind. I'm thinking that if you could get a smaller footprint and faster performance this is how MS would default the XP installation. After all it would benefit them. Also back in the day this was an all or none drive compression. You started the compression and it was much like a defrag. So I'm wondering how did you compress 1 file for testing? Is this an option on XP with NTFS files now? Single file compression? And did you actually compare the files sizes? More: If you moved the file to another drive and compressed the drive that brings up a whole other scenario for comparison purposes. Same drive, empty or full, on and on. And last, my defrag program defaults to "loose packing" which is leaving a small gap between files. This reduces file fragmentation. It has the option of "tight packing". There is a possibility that the XP compression is simply packing the files tighter together rather than actually compressing them. Some files do not compress well. Wav and Avi are 2 of them. That's why special encode/decode processes are used to give you wma, wmv, mpeg, mp3 which are the compressed versions of your raw files. That said they don't compress well either because they are already compressed.
|
kp
Max Output Level: -61 dBFS
- Total Posts : 1496
- Joined: 2004/01/21 15:22:09
- Location: London, UK
- Status: offline
RE: NTFS file compression
2007/04/18 10:44:43
(permalink)
NTFS allows compression per file, per directory, per drive - it also doesn't compress when the data won't comrpess (it does it on a cluster by cluster basis). Parts of XP - eg. the \windows\system32\dllcache directory - are compressed on a standard XP install. One reason that the whole \windows directory isn't compressed is that this would mean the boot loader needs to be able to handle compressed files to start loading, increasing its complexity. The NTFS driver handles the compression, so until that has been loaded, Windows can't access any NTFS-compressed data.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
RE: NTFS file compression
2007/04/18 10:55:33
(permalink)
In the digital audio environment we're usually obsessed with CPU usage, mainly because it's easy to meter. But in most computer applications, it's I/O, not CPU that is the limiting factor for performance. Since the 1940's computer systems' CPU power has always outpaced I/O. It therefore makes logical sense that sacrificing CPU cycles to improve disk throughput might be a reasonable tradeoff. Compressed files require fewer disk blocks and therefore fewer seeks, and more data read per rotation. In short, the disk drive is more efficient. If you assume that the disk subsystem is your bottleneck, then it makes sense to increase the performance of your weakest component, even if it's at the expense of your strongest component, the CPU. This sounds logical, but Microsoft has this to say about it: While NTFS file system compression can save disk space, compressing data can adversely affect performance. NTFS compression has the following performance characteristics. When you copy or move a compressed NTFS file to a different folder, NTFS decompresses the file, copies or moves the file to the new location, and then recompresses the file. This behavior occurs even when the file is copied or moved between folders on the same computer. Compressed files are also expanded before copying over the network, so NTFS compression does not save network bandwidth. The article quoted above describes typical computer usage, and goes on to include transactional databases -- but NOT streaming audio. It could very well be that compression/decompression overhead is small enough to not be a significant factor with audio applications. If you're really tight on disk space and can't afford an upgrade, I'd say give it a try. You can always change your mind later, assuming you haven't filled the disk up completely. In the meantime, the worst-case scenario is that your CPU usage increases to the point where you're limited in the number of concurrent tracks and effects you can have -- but if that happens, you were already at the edge of your CPU's capabilities to begin with. NTFS allows you to compress specific files and folders, so one strategy might be to only compress completed projects and leave the current in-progress projects uncompressed.
|
Midimanz
Max Output Level: -89 dBFS
- Total Posts : 78
- Joined: 2003/11/29 17:02:11
- Location: Auckland, New Zealand
- Status: offline
RE: NTFS file compression
2007/04/18 17:57:39
(permalink)
Many thanks to all who have responded to this post. What prompted this train of thought is the fact that the samples associated with my soft synths have grown to the point where they exceed the available space on the 150GB Raptor drive I have set aside for this purpose. (dfh Superior alone needs 35 GB) Whilst it is generally true that disk space is cheap, I already have four drives in this computer and adding a fifth presents some practical problems in terms of physically accommodating same. Raptor drives whilst wonderful performers are not the cheapest drives either and they don't come bigger than 150 GB. I acknowledge that the test I have done is crude, but without any meaningful test software it is at least a start. In the particular circumstances I have outlined above, streaming samples direct from disk is probably the issue of most interest, but how might this be tested in an easily measurable and scientific way in order to remove perception as a variable. For the record, the first test was done with both files in the same folder on the same drive which is well defragged, so I know that at least in this circumstance, a compressed file loads more quickly. But does that translate to better performance streaming samples from disk? That seems a leap too far without a better testing regime. Thanks for your comments bitflipper, that all makes perfect sense. It does seem to me that nobody has actually done a recent review of the benefits or otherwise of NTFS compression in an audio environment as described above. If I am to make sense of this I need some good tools for accurate measurement. Any suggestions for appropriate utilities? Cheers Midimanz ASUS P5W DH Deluxe Mobo Intel Core Two Duo 6600 2.40 GHz 2Gb Corsair RAM Vista Ultimate (32 bit) 74 GB Raptor C: drive Dual 150GB Raptor drives in RAID 1 configuration for project files 150 GB Raptor drive dedicated to sample storage NVIDIA GeForce 7600 GS video card 2 X Philips 190B monitors SONAR Producer 6.2.1
Knowledge, grounded on accuracy, aided by labour and sustained by perseverance, will finally overcome all difficulties.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
RE: NTFS file compression
2007/04/18 19:52:31
(permalink)
Assuming that SONAR is the most important application on your computer (it is on mine, and it's my WORK computer, too), the best test is SONAR itself. Boot up clean, start up your largest project, something with many tracks and effects. Since you use a sampler, make sure it's in there -- nothing eats disk bandwidth like a DFD sampler (if your sampler supports DFD streaming, make sure it's selected). Note the CPU usage on playback. You don't need to record anything, since unless you're also short on memory the recording process should all take place in RAM. Then compress the project folder (you don't have to compress the whole disk) and reboot. Play that same project back again, noting the CPU usage. The difference in CPU usage should be mostly attributable to the compression overhead. Please post your results, as I am not talking from actual experience here, only hypothesizing.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
RE: NTFS file compression
2007/04/18 21:34:57
(permalink)
One possible wrinkle in this scheme is that wav files typically don't compress very well. You may not get the big savings in disk space you're hoping for - maybe only a 5% reduction in file size.
|
Honest_Al
Max Output Level: -39 dBFS
- Total Posts : 3642
- Joined: 2005/12/09 00:07:27
- Location: just below the cloud on the left
- Status: offline
RE: NTFS file compression
2007/04/18 21:43:11
(permalink)
|
dstrenz
Max Output Level: -69 dBFS
- Total Posts : 1067
- Joined: 2005/12/10 09:59:06
- Location: Rochester, NY
- Status: offline
RE: NTFS file compression
2007/04/18 23:22:02
(permalink)
Generally, the better the compression ratio, the slower the process and more cpu cycles required. The 140meg wav file is one you created? If your disk space is sampler's samples, realize that most of them are already compressed in their own format and I'd expect recompressing/decompressing them again will only serve to add more work for the cpu. For example, EZDrummer files are already super compressed and 'tuned' for the program. Same deal with SampleTank.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
RE: NTFS file compression
2007/04/19 00:28:04
(permalink)
..maybe with the way that Windows wants to compress them ;) Yeh, maybe if Windows turned them all into MP3s, that would save a lot of disk space!
|
Honest_Al
Max Output Level: -39 dBFS
- Total Posts : 3642
- Joined: 2005/12/09 00:07:27
- Location: just below the cloud on the left
- Status: offline
RE: NTFS file compression
2007/04/19 08:34:32
(permalink)
ORIGINAL: bitflipper ..maybe with the way that Windows wants to compress them ;) Yeh, maybe if Windows turned them all into MP3s, that would save a lot of disk space! Ehhm..It's all lossless compression algorithms there in that chart. I never said that Midimanz should compress that drive but I just had to respond to the "wav files typically don't compress very well" .. no one said MP3 or other lossy compressions..maybe you didn't look at that chart..see how good RAR is doing for example? The CPU's big hit - of course.. i would never use that for multi track "realtime" playing.
|
bitflipper
01100010 01101001 01110100 01100110 01101100 01101
- Total Posts : 26036
- Joined: 2006/09/17 11:23:23
- Location: Everett, WA USA
- Status: offline
RE: NTFS file compression
2007/04/19 11:13:41
(permalink)
Ehhm..It's all lossless compression algorithms there in that chart. I did look at the chart, and I got your point. I was just making a stab at humor. I agree that some compression algorithms achieve higher compression ratios than others, but always at the expense of speed. RAR does indeed do a respectable job of compressing wav files -- I just did a quick test and got about 15% -- but it's WAY too slow to be practical for any kind of realtime application.
|