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 > Pro Tools Software > macOS

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-22-2020, 03:39 PM
TrentWilliams TrentWilliams is offline
Member
 
Join Date: Aug 2012
Location: Wellington, New Zealand
Posts: 985
Default 'Renicing' Pro Tools [solved]

Is there anyone out there who has experience with 'renicing' Pro Tools? I've changed the value to -20 with an AppleScript but it's resetting itself back to 0 after every process.

For example - I renice Pro Tools to -20; confirm it is indeed -20; open a plugin window; recheck the nice value; it's reset back to 0.

Looking for advice, if any.
__________________
Pro Tools 2024.3.0|Perpetual • MTRX Studio • HDX1 • Sync-X • S3 • Dock • Mac Mini 2018 - 3.2GHz i7 6-core macOS 13.6 • RAM 64GB DDR4 GPU AMD 6900XT 16GB • Monitor LG 32UL950-W

Last edited by TrentWilliams; 07-23-2020 at 01:36 AM.
Reply With Quote
  #2  
Old 07-22-2020, 04:21 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,622
Default Re: 'Renicing' Pro Tools

Opening a plugin does not renice Pro Tools for me.

Code:
$ ps -evlc | head -1
  PID STAT      TIME  SL  RE PAGEIN      VSZ    RSS   LIM     TSIZ  %CPU %MEM COMMAND            UID  PPID        F CPU PRI NI WCHAN              ADDR TTY
$ ps -evlc | grep 'Pro Tools\s*\d'
16702 S      2:20.43   0   0      0 10292984 752176     -        0  14.0  2.2 Pro Tools          501     1     4084   0  97  0 -                     0 ??
$ sudo renice -20 16702
$ ps -evlc | head -1
  PID STAT      TIME  SL  RE PAGEIN      VSZ    RSS   LIM     TSIZ  %CPU %MEM COMMAND            UID  PPID        F CPU PRI NI WCHAN              ADDR TTY
$ sudo renice -20 16702
$ ps -evlc | grep 'Pro Tools\s*\d'
16702 S<     2:24.21   0   0      0 10292984 752176     -        0  14.2  2.2 Pro Tools          501     1     4084   0  97 -20 -                     0 ??
$ ### Opened plugins and inserted more plugins...
$ ps -evlc | head -1
  PID STAT      TIME  SL  RE PAGEIN      VSZ    RSS   LIM     TSIZ  %CPU %MEM COMMAND            UID  PPID        F CPU PRI NI WCHAN              ADDR TTY
$ ps -evlc | grep 'Pro Tools\s*\d'
16702 S<     2:33.31   0   0      0 10296448 759680     -        0  16.6  2.3 Pro Tools          501     1     4084   0  97 -20 -                     0 ??
Show us what exactly you are doing and looking at.
Reply With Quote
  #3  
Old 07-22-2020, 04:26 PM
JFreak's Avatar
JFreak JFreak is offline
Moderator
 
Join Date: Jan 2003
Location: Tampere, Finland
Posts: 24,893
Default Re: 'Renicing' Pro Tools

It would actually be impossible for PT to renice itself along the way as the process is not ran with root privilege. Admin user is not enough for renice


Sent from my iPhone using Tapatalk
__________________
Janne
What we do in life, echoes in eternity.
Reply With Quote
  #4  
Old 07-22-2020, 04:35 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,622
Default Re: 'Renicing' Pro Tools

Quote:
Originally Posted by JFreak View Post
It would actually be impossible for PT to renice itself along the way as the process is not ran with root privilege. Admin user is not enough for renice
Actually that only goes one way. You only need root privilege to decrease priority below 0. Going the other way is easy, any process can do that it to itself.

Still this seems strange behavior and I would want to see what exactly is being looked at here.
Reply With Quote
  #5  
Old 07-22-2020, 04:47 PM
TrentWilliams TrentWilliams is offline
Member
 
Join Date: Aug 2012
Location: Wellington, New Zealand
Posts: 985
Default Re: 'Renicing' Pro Tools

Quote:
Originally Posted by Darryl Ramm View Post
Actually that only goes one way. You only need root privilege to decrease priority below 0. Going the other way is easy, any process can do that it to itself.

Still this seems strange behavior and I would want to see what exactly is being looked at here.
Thanks for the reply Darryl,

Here's a screen capture : https://streamable.com/3ux0og
__________________
Pro Tools 2024.3.0|Perpetual • MTRX Studio • HDX1 • Sync-X • S3 • Dock • Mac Mini 2018 - 3.2GHz i7 6-core macOS 13.6 • RAM 64GB DDR4 GPU AMD 6900XT 16GB • Monitor LG 32UL950-W
Reply With Quote
  #6  
Old 07-22-2020, 05:22 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,622
Default Re: 'Renicing' Pro Tools

OK Trent, well it's not doing that for me. I tried multiple sessions and made sure I put the transport in play after opening the plugins etc. the same as you did.

I have a pretty clean install of 2020.5 on Mojave 10.14.6. (so close to yours).

So one wild ass guess here is a plugin might be doing something silly, and maybe not even the one you are opening.

If you want to get carried away we could scan all the plugin binaries for the setpriority() system call, but it's just easier for you do do a quick test there of moving all plugins out of the Pro Tools folder, trashing prefs, and testing with the session with just the default plugins that Pro Tools puts back.
Reply With Quote
  #7  
Old 07-22-2020, 05:31 PM
Darryl Ramm Darryl Ramm is offline
Member
 
Join Date: Nov 2010
Location: USA
Posts: 19,622
Default Re: 'Renicing' Pro Tools

Make sure you have not left applescript to do stuff, have it invoking a mangled renice command etc. I would get rid of all that/that might be left running. And test without it.
Reply With Quote
  #8  
Old 07-23-2020, 01:35 AM
TrentWilliams TrentWilliams is offline
Member
 
Join Date: Aug 2012
Location: Wellington, New Zealand
Posts: 985
Default Re: 'Renicing' Pro Tools

Hey Darryl! Thanks for your hard work in helping me figure this one out. It turns out there was another application open (App Tamer) which was prioritising nice values and interfering. Once I closed that app I was then able to set PT to -20 and have it stay there. I wrote an AppleScript which auto sets PT to -20 on launch so I don’t have to go through terminal every time 🍻
__________________
Pro Tools 2024.3.0|Perpetual • MTRX Studio • HDX1 • Sync-X • S3 • Dock • Mac Mini 2018 - 3.2GHz i7 6-core macOS 13.6 • RAM 64GB DDR4 GPU AMD 6900XT 16GB • Monitor LG 32UL950-W
Reply With Quote
  #9  
Old 07-23-2020, 01:37 AM
JFreak's Avatar
JFreak JFreak is offline
Moderator
 
Join Date: Jan 2003
Location: Tampere, Finland
Posts: 24,893
Default Re: 'Renicing' Pro Tools [solved]

Good to hear. But I doubt making PT not nice will make a difference. Would be happy to be proven wrong though


Sent from my iPhone using Tapatalk
__________________
Janne
What we do in life, echoes in eternity.
Reply With Quote
  #10  
Old 07-23-2020, 12:15 PM
TrentWilliams TrentWilliams is offline
Member
 
Join Date: Aug 2012
Location: Wellington, New Zealand
Posts: 985
Default Re: 'Renicing' Pro Tools [solved]

Quote:
Originally Posted by JFreak View Post
Good to hear. But I doubt making PT not nice will make a difference. Would be happy to be proven wrong though


Sent from my iPhone using Tapatalk
Thanks J,

Take it for a spin and report back? I ‘feel’ like it’s snappier and slightly more responsive but that could be placebo talking. *Plugins do seem a little faster to open?

The biggest performance increase I’ve seen in recent days is utilising a TimeMachine scheduler to automate backups outside of work hours. TM really hogs system resources, can not recommend enough.
__________________
Pro Tools 2024.3.0|Perpetual • MTRX Studio • HDX1 • Sync-X • S3 • Dock • Mac Mini 2018 - 3.2GHz i7 6-core macOS 13.6 • RAM 64GB DDR4 GPU AMD 6900XT 16GB • Monitor LG 32UL950-W

Last edited by TrentWilliams; 07-23-2020 at 12:54 PM.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
FS: Pro Tools HD 8 + Pro Tools HD 9 + Pro Tools 9 Bundle iLOK license Delta Music Belgium Buy & Sell 1 02-27-2019 03:33 PM


All times are GMT -7. The time now is 08:36 AM.


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