mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	meson: add options to set server and client RT priority
Make a rtprio-server and rtprio-client option. Leave the server priority by default to 88 but lower client priority to 83. JACK does something similar by setting clients to rtprio-server - 5. Make module-rt use the client priority by default and bump the server priority explicitly in the config file. Leave the pulse-server to the default rtprio-client, there is no reason to lower this any further because it is really just a regular client. Bump the ffado packetizer thread to rtprio-server + 5 because that is also what JACK does. 88 is still much higher than the value of 60 that JACK uses in Fedora but now this is at least configurable.
This commit is contained in:
		
							parent
							
								
									2833ff1272
								
							
						
					
					
						commit
						f1a6fabb6c
					
				
					 15 changed files with 30 additions and 13 deletions
				
			
		| 
						 | 
				
			
			@ -43,7 +43,7 @@ context.modules = [
 | 
			
		|||
    # Uses realtime scheduling to boost the audio thread priorities
 | 
			
		||||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            #rt.prio      = @rtprio_client@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -42,7 +42,7 @@ context.modules = [
 | 
			
		|||
    # Uses realtime scheduling to boost the audio thread priorities
 | 
			
		||||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            #rt.prio      = @rtprio_client@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -43,7 +43,7 @@ context.modules = [
 | 
			
		|||
    # Boost the data thread priority.
 | 
			
		||||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            #rt.prio      = @rtprio_client@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,6 +11,8 @@ conf_config.set('pipewire_path', pipewire_bindir / 'pipewire')
 | 
			
		|||
conf_config.set('pipewire_pulse_path', pipewire_bindir / 'pipewire-pulse')
 | 
			
		||||
conf_config.set('sm_comment', '#')
 | 
			
		||||
conf_config.set('pulse_comment', '#')
 | 
			
		||||
conf_config.set('rtprio_server', get_option('rtprio-server'))
 | 
			
		||||
conf_config.set('rtprio_client', get_option('rtprio-client'))
 | 
			
		||||
 | 
			
		||||
conf_config_uninstalled = conf_config
 | 
			
		||||
conf_config_uninstalled.set('pipewire_path',
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -81,7 +81,7 @@ context.modules = [
 | 
			
		|||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            nice.level   = -11
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            rt.prio      = @rtprio_server@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -52,7 +52,7 @@ context.modules = [
 | 
			
		|||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            nice.level   = -11
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            #rt.prio      = @rtprio_client@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,7 +27,7 @@ context.modules = [
 | 
			
		|||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            nice.level   = -11
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            #rt.prio      = @rtprio_client@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -27,8 +27,7 @@ context.modules = [
 | 
			
		|||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            nice.level   = -11
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            rt.prio      = 65
 | 
			
		||||
            #rt.prio      = @rtprio_client@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
            #uclamp.min = 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -53,7 +53,7 @@ context.modules = [
 | 
			
		|||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            nice.level    = -11
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            #rt.prio      = @rtprio_client@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -96,7 +96,7 @@ context.modules = [
 | 
			
		|||
    { name = libpipewire-module-rt
 | 
			
		||||
        args = {
 | 
			
		||||
            nice.level    = -11
 | 
			
		||||
            #rt.prio      = 88
 | 
			
		||||
            rt.prio       = @rtprio_server@
 | 
			
		||||
            #rt.time.soft = -1
 | 
			
		||||
            #rt.time.hard = -1
 | 
			
		||||
            #uclamp.min = 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue