You are not logged in.

#1 2020-01-25 14:02:35

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

[SOLVED] Giving maximum priority to Pulse

This is probably very niche, but here goes.

My system is installed with Pulseaudio as the soundserver. Pulse is working very well.

I have a turntable (the type used for vinyl records), with a USB out. I don't have a dedicated amp or speakers (both on the shoppng list, as is a new turntable as it happens), so I use my PC as an amp. The PC has 5.1 audio.

I'm also an amateur 3D artist, using mainly Blender. Blender also works very well on my system.

However, when starting to render with Blender, if I have an album playing, because Blender will use as much of the system as it can get, Pulse starts dropping and I get what, in the old days I would have thought of as a scratch on the vinyl, and skips.

Is there a way to ensure pulse gets as much processor power as it needs, regardless of what else is running on my system?

Last edited by Roken (2020-01-26 07:41:04)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#2 2020-01-25 14:22:03

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,858
Website

Re: [SOLVED] Giving maximum priority to Pulse


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2020-01-25 14:49:54

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: [SOLVED] Giving maximum priority to Pulse

Try with the environment variable value: PULSE_LATENCY_MSEC=150 too.

But instead of pushing pulse (rt priorities means less performance/throughput), I'd try to lower the priority of blender, it seems the perfect candidate for SCHED_BATCH and probably it will increase his performance too, due to higher timeslice (more cpu cache hits)

Warning! ( big_smile )

#> man schedtool wrote:

For SCHED_BATCH you certainly need the  a  recent 2.6 kernel.

Last edited by kokoko3k (2020-01-25 15:17:16)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#4 2020-01-25 21:52:44

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] Giving maximum priority to Pulse

kokoko3k wrote:

But instead of pushing pulse (rt priorities means less performance/throughput), I'd try to lower the priority of blender, it seems the perfect candidate for SCHED_BATCH and probably it will increase his performance too, due to higher timeslice (more cpu cache hits)

I didn't know about this at all, but a first test is promising (and as a side effect, I just found out that Whole Lotta Love by Zeppelin has stereo separation equal to Bohemian Rhapsody, so double bonus).

Good call.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

#5 2020-01-25 23:19:52

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,394

Re: [SOLVED] Giving maximum priority to Pulse

Well, i guess extreme stereo separation was quite common in 70s/80s, try 'early' Bowie too ;-)

Last edited by kokoko3k (2020-01-25 23:20:28)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

#6 2020-01-26 07:40:41

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,253

Re: [SOLVED] Giving maximum priority to Pulse

kokoko3k wrote:

try 'early' Bowie too ;-)

Already on my shopping list for the next visit to vinyl exchange in Manchester smile


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus Prime B450 Plus, 32Gb Corsair DDR4, Cooler Master N300 chassis, 5 HD (1 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

Offline

Board footer

Powered by FluxBB