Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > High Efficiency Video Coding (HEVC)

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st April 2023, 08:19   #1  |  Link
DotJun
Registered User
 
Join Date: Aug 2014
Posts: 28
Best practices for 用ools?

When encoding multiple instances, is it better to just let x265 determine the number of threads on its own or would it be better to specify a number?

For example: When encoding 2 instances on 12 cores x265 will spawn 12 threads for each of the 2 encodes. Would it be better to set 用ools 6 for each encode (12 cores / 2 encodes = 6 cores each)?

I知 assuming that if left to default values x265 would use any/all cores for each encode at its whim. What exactly is it doing when setting 用ools then? Does one encode get cores 0-5 and the second encode gets cores 6-10?
DotJun is offline   Reply With Quote
Old 1st April 2023, 09:09   #2  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,277
For me, using pools only seems to help when running multiple parallel encodes on systems with multi cpus,...
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote
Old 1st April 2023, 13:09   #3  |  Link
DotJun
Registered User
 
Join Date: Aug 2014
Posts: 28
Quote:
Originally Posted by Selur View Post
For me, using pools only seems to help when running multiple parallel encodes on systems with multi cpus,...
Yes I agree that using pools on multi socket is helpful, but my question is more to do with a single node that has an abundance of cpus. I really just want to understand what 用ools is actually doing under the hood.
DotJun is offline   Reply With Quote
Old 3rd April 2023, 17:32   #4  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
There is a long and pretty exhaustive description here: https://x265.readthedocs.io/en/maste...rmance-options
And a good overview of threading in x265 here: https://x265.readthedocs.io/en/master/threading.html

Did you have a question beyond what's covered in those?
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   Reply With Quote
Old 17th April 2023, 11:42   #5  |  Link
DotJun
Registered User
 
Join Date: Aug 2014
Posts: 28
Quote:
Originally Posted by benwaggoner View Post
There is a long and pretty exhaustive description here: https://x265.readthedocs.io/en/maste...rmance-options
And a good overview of threading in x265 here: https://x265.readthedocs.io/en/master/threading.html

Did you have a question beyond what's covered in those?
Thank you for the reading material. It was informative, but some of the wording used left me with questions. For example, when setting pools +,+ the encoder should be free to use all available threads on nodes 0 and 1, but it does not. Is this because a single pool cannot jump nodes? I知 assuming only a single pool is created, even though my log says that two pools are created with one on each node, both pools are labeled as pool 0.
DotJun is offline   Reply With Quote
Old 17th April 2023, 20:34   #6  |  Link
benwaggoner
Moderator
 
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,770
Quote:
Originally Posted by DotJun View Post
Thank you for the reading material. It was informative, but some of the wording used left me with questions. For example, when setting pools +,+ the encoder should be free to use all available threads on nodes 0 and 1, but it does not. Is this because a single pool cannot jump nodes? I知 assuming only a single pool is created, even though my log says that two pools are created with one on each node, both pools are labeled as pool 0.
Encoding everything on a single pool is more efficient, so unless x265 can use more threads than will fit on a single pool, it'll stick to one. I've been able to get two to work when doing 8K content, for example.
__________________
Ben Waggoner
Principal Video Specialist, Amazon Prime Video

My Compression Book
benwaggoner is offline   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


All times are GMT +1. The time now is 14:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.