Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Legacy Products > Pro Tools 2018
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-04-2018, 08:07 PM
[email protected] pqlior@mac.com is offline
Member
 
Join Date: Jun 2009
Posts: 495
Default Disk Cache changes randomly after freeze

Attached below, are two screenshots.
The first, I start printing a mix (CONSTANT 9093, 9172- 2018.7 with High Sierra has been a nightmare over here) Disk Cache shows it's 39% full. I start printing and no 20 secs in, protools freezes with a 9093. I select the partial take and move it to the trash. Disk Cache now shows 81%. Anyone has some thoughts on that?
Attached Images
File Type: jpg Screen Shot 2018-12-04 at 5.03.42 PM.jpg (64.6 KB, 0 views)
File Type: jpg Screen Shot 2018-12-04 at 5.04.37 PM.jpg (64.6 KB, 0 views)
__________________
Lior

HD Native * PT 2018.12 * OS X 10.13.6 * MacPro 12 Core * 2.4GHz 24GB Ram * 2XUAD2 Octo * Waves Platinum * Lexicon PCM Native Bundle * Sound Toys Bundle* AutoTune8 * NI Komplete11 * BFD3 * Synthogy Ivory II* Vienna Ensemble Pro * Spectrasonics * Slate trigger2 *xFer records * Softube * Vienna Ensemble * DMG Expurgate * Massey DRT2 *
iPad Air/Avid control * EuCon 18.3.0.217 *
Reply With Quote
  #2  
Old 12-04-2018, 08:23 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,640
Default Re: Disk Cache changes randomly after freeze

When/how does the disk usage meter change? You are scanning through the entire session reading more content into the cache to produce the print so it growing as you print is not a surprise. What happens if you just play the entire session though in real-time in one go vs. printing it.

Oh hang on you mean print to track or bounce to disk?

Hopefully the bounce itself is not ending up in the cache, so I would hope deleting it makes no difference to cache utilization (and the Pro Tools disk cache would need to be watching that file to see if its deleted from the filesystem to know to delete it's own cache copy, likely a really bad idea).

Print to track, should hopefully up in the cache and it may be the cache meter is lagging reality for a while.

---

But in general with caches like this I would not get overly worried about what is going on. You can't tell how theses things are supposed to work, how they evict or garbage collect data. Lots of sensible approaches to doing these things will have them fill up and not start evicting stuff until pretty full.

Last edited by Darryl Ramm; 12-04-2018 at 08:49 PM.
Reply With Quote
  #3  
Old 12-04-2018, 08:40 PM
[email protected] pqlior@mac.com is offline
Member
 
Join Date: Jun 2009
Posts: 495
Default Re: Disk Cache changes randomly after freeze

Thanks, Daryl. The cache just gets to 100% eventually whether I print to not- which is what worries me...

Quote:
Originally Posted by Darryl Ramm View Post
Yep. You are scanning through the entire session reading more content into the cache to produce the print. What happens if you just play the entire session though in real-time in one go vs. printing it.

Hopefully the print itself is not ending up in the cache, so I would hope deleting it makes no difference to cache utilization (and the Pro Tools disk cache would need to be watchign that file to see if its deleted from the filesystem to know to delete it's own cache copy, likely a really bad idea)

---

But in general with caches like this I would not get overly worried about what is going on. You can't tell how theses things are supposed to work, how they evict or garbage collect data. Lots of sensible approaches to doing these things will have them fill up and not start evicting stuff until pretty full.
__________________
Lior

HD Native * PT 2018.12 * OS X 10.13.6 * MacPro 12 Core * 2.4GHz 24GB Ram * 2XUAD2 Octo * Waves Platinum * Lexicon PCM Native Bundle * Sound Toys Bundle* AutoTune8 * NI Komplete11 * BFD3 * Synthogy Ivory II* Vienna Ensemble Pro * Spectrasonics * Slate trigger2 *xFer records * Softube * Vienna Ensemble * DMG Expurgate * Massey DRT2 *
iPad Air/Avid control * EuCon 18.3.0.217 *
Reply With Quote
  #4  
Old 12-04-2018, 08:52 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,640
Default Re: Disk Cache changes randomly after freeze

And a trivial test confirms bounces are not hitting the cache. Set the disk cache really small. Record a signal gen to a track until the cache is 25% full and then bounce (real time or fast) and nothing increases in the cache as I'd hope.
Reply With Quote
  #5  
Old 12-04-2018, 09:01 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,640
Default Re: Disk Cache changes randomly after freeze

Quote:
Originally Posted by [email protected] View Post
Thanks, Daryl. The cache just gets to 100% eventually whether I print to not- which is what worries me...
I don't know what other people see, I have such huge cache relative to my usually smallish session sizes I don't see it anywhere near full. And I'm normally not watching meters anyhow.

I suspect it's really hard to see what is going on with the tools given. The % cache occupancy is likely not that useful, you want it to be high so stuff is cached. Stats like the rate of data pages into and out of the cache and similar data would give more useful information for serious debugging... but I expect Avid wants to keep it simple. Along the lines of just letting folks know if the cache fills that it might help to increase the size of buy more DRAM.

BTW this type of thing needlessly worries people with computer memory... noting that say Windows or macOS reports very little free memory... when in reality that's the demand paging system doing what is expected and there might be lots of pages the OS can free at very low cost anytime it needs them. And again other rate based metrics may be more useful.
Reply With Quote
  #6  
Old 12-04-2018, 09:32 PM
[email protected] pqlior@mac.com is offline
Member
 
Join Date: Jun 2009
Posts: 495
Default Re: Disk Cache changes randomly after freeze

Maybe I'm not explaining clearly-
First, I'm looking at the meters because things aren't stable and I'm trying to find a pattern. (there isn't one- sometimes a restart just fixes things for a while and sometimes it doesn't. Sometimes the same session will play fine, and sometimes it's days full of 9093, 9172 and other gems)
Secondly, I'm explaining that when I open a session and the cache is loaded, let's say 39%- after a few plays, it'll just make its way to 100% without adding ANY new info to session. That's not right and something is getting calculated wrong...

Quote:
Originally Posted by Darryl Ramm View Post
I don't know what other people see, I have such huge cache relative to my usually smallish session sizes I don't see it anywhere near full. And I'm normally not watching meters anyhow.

I suspect it's really hard to see what is going on with the tools given. The % cache occupancy is likely not that useful, you want it to be high so stuff is cached. Stats like the rate of data pages into and out of the cache and similar data would give more useful information for serious debugging... but I expect Avid wants to keep it simple. Along the lines of just letting folks know if the cache fills that it might help to increase the size of buy more DRAM.

BTW this type of thing needlessly worries people with computer memory... noting that say Windows or macOS reports very little free memory... when in reality that's the demand paging system doing what is expected and there might be lots of pages the OS can free at very low cost anytime it needs them. And again other rate based metrics may be more useful.
__________________
Lior

HD Native * PT 2018.12 * OS X 10.13.6 * MacPro 12 Core * 2.4GHz 24GB Ram * 2XUAD2 Octo * Waves Platinum * Lexicon PCM Native Bundle * Sound Toys Bundle* AutoTune8 * NI Komplete11 * BFD3 * Synthogy Ivory II* Vienna Ensemble Pro * Spectrasonics * Slate trigger2 *xFer records * Softube * Vienna Ensemble * DMG Expurgate * Massey DRT2 *
iPad Air/Avid control * EuCon 18.3.0.217 *
Reply With Quote
  #7  
Old 12-04-2018, 11:06 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,640
Default Re: Disk Cache changes randomly after freeze

How big is your disk cache set to? How much total memory on your system?
Reply With Quote
  #8  
Old 12-05-2018, 02:09 PM
[email protected] pqlior@mac.com is offline
Member
 
Join Date: Jun 2009
Posts: 495
Default Re: Disk Cache changes randomly after freeze

Quote:
Originally Posted by Darryl Ramm View Post
How big is your disk cache set to? How much total memory on your system?
I play around with the size, depending on mix session size.
Currently, around 5GB. System has 24GB of ram.
__________________
Lior

HD Native * PT 2018.12 * OS X 10.13.6 * MacPro 12 Core * 2.4GHz 24GB Ram * 2XUAD2 Octo * Waves Platinum * Lexicon PCM Native Bundle * Sound Toys Bundle* AutoTune8 * NI Komplete11 * BFD3 * Synthogy Ivory II* Vienna Ensemble Pro * Spectrasonics * Slate trigger2 *xFer records * Softube * Vienna Ensemble * DMG Expurgate * Massey DRT2 *
iPad Air/Avid control * EuCon 18.3.0.217 *
Reply With Quote
  #9  
Old 12-05-2018, 10:29 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,640
Default Re: Disk Cache changes randomly after freeze

Some comments, not sure they really help.

So playing with this tonight I occasionally saw the disk cache "zoom along" from say 70% or 80% to 100% in one quick smooth motion taking what seems one or two seconds, the meter stayed green. I was recording several tracks being fed from as signal generator. Onto say a session that had content in it and opened with 50% cache use. With a disk cache of 512MB the cache was filling at about 1% every several seconds, then it just takes off. I saw this twice out of ten or more tests. So sure I'm willing to believe that something occasionally gets funky with the cache meter and it might shows more cache in use than there is data to cache. I have no other problems actual problems using Pro Tools. The meter has an occasional GUI glitch when closing the session it leaves a few pixel green or amber vertical bar in the meter, just where it's sometimes not redrawing correctly what looks like the right hand edge of the previous meter bar. If I can reproduce these more I'll throw them over the fence to Avid.

The other thing I played with was just peeking at Pro Tools disk IO with the fs_usage utility (derived from the low level dtrace instrumentation). Works like a charm, I can watch the Pro Tools process open all the media files and use non-cached asynchronous IO (aio_read()) to fill its disk cache.... just like I'd expect for a high IO-performance app doing its own cache management. And then see Pro Tools use pwrite() to write new audio content out.

It's not something normal users are going to want to play with, and it requires disabling SIP (System Integrity Protection). If I was really trying to debug something I'd might play with dtrace more directly. With enough playing that could capture the meter zooming along faster event and the disk IO might coordinate that going on, or might not.

I'm running 2018.10 on a maxed out 2017 MBP, 16 GB on macOS Mojave.
Reply With Quote
  #10  
Old 12-06-2018, 04:38 PM
[email protected] pqlior@mac.com is offline
Member
 
Join Date: Jun 2009
Posts: 495
Default Re: Disk Cache changes randomly after freeze

Thanks for spending time with it, Darryl.
One of the weird things is that I could open the session, it'll stop at around 50% (green) then play a bit, print NOTHING, (nor create ANY new audio) and it'll just make its way to 100%
Quote:
Originally Posted by Darryl Ramm View Post
Some comments, not sure they really help.

So playing with this tonight I occasionally saw the disk cache "zoom along" from say 70% or 80% to 100% in one quick smooth motion taking what seems one or two seconds, the meter stayed green. I was recording several tracks being fed from as signal generator. Onto say a session that had content in it and opened with 50% cache use. With a disk cache of 512MB the cache was filling at about 1% every several seconds, then it just takes off. I saw this twice out of ten or more tests. So sure I'm willing to believe that something occasionally gets funky with the cache meter and it might shows more cache in use than there is data to cache. I have no other problems actual problems using Pro Tools. The meter has an occasional GUI glitch when closing the session it leaves a few pixel green or amber vertical bar in the meter, just where it's sometimes not redrawing correctly what looks like the right hand edge of the previous meter bar. If I can reproduce these more I'll throw them over the fence to Avid.

The other thing I played with was just peeking at Pro Tools disk IO with the fs_usage utility (derived from the low level dtrace instrumentation). Works like a charm, I can watch the Pro Tools process open all the media files and use non-cached asynchronous IO (aio_read()) to fill its disk cache.... just like I'd expect for a high IO-performance app doing its own cache management. And then see Pro Tools use pwrite() to write new audio content out.

It's not something normal users are going to want to play with, and it requires disabling SIP (System Integrity Protection). If I was really trying to debug something I'd might play with dtrace more directly. With enough playing that could capture the meter zooming along faster event and the disk IO might coordinate that going on, or might not.

I'm running 2018.10 on a maxed out 2017 MBP, 16 GB on macOS Mojave.
__________________
Lior

HD Native * PT 2018.12 * OS X 10.13.6 * MacPro 12 Core * 2.4GHz 24GB Ram * 2XUAD2 Octo * Waves Platinum * Lexicon PCM Native Bundle * Sound Toys Bundle* AutoTune8 * NI Komplete11 * BFD3 * Synthogy Ivory II* Vienna Ensemble Pro * Spectrasonics * Slate trigger2 *xFer records * Softube * Vienna Ensemble * DMG Expurgate * Massey DRT2 *
iPad Air/Avid control * EuCon 18.3.0.217 *
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not allocate memory for the disk cache. Try lowering your disk buffer.. slim_shady Pro Tools 10 15 05-09-2017 05:20 PM
Pro Tools 10.3.7 Hard Freeze Computer Randomly Hopijohn Getting Started 5 01-24-2015 02:38 PM
PT10's Disk Cache or RAM Disk. Why not use the same concept for VI memory space? sunburst79 General Discussion 6 09-15-2011 11:28 AM
Plug-in meters freeze randomly Dr. Bockman 003, Mbox 2, Digi 002, original Mbox, Digi 001 (Win) 4 11-10-2005 02:08 AM


All times are GMT -7. The time now is 06:24 AM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com