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. |
|
|
Thread Tools | Search this Thread | Display Modes |
12th January 2023, 14:18 | #19901 | Link | |
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Quote:
Click on the "spanner" icon to get to this menu
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. |
|
12th January 2023, 15:56 | #19902 | Link | |
Registered User
Join Date: Aug 2020
Location: Pennsylvania
Posts: 133
|
Quote:
encodingserver /restart-if-no-progress /priority normal /affinity 3FFC3FFC The affinity uses a hex number to enable/disable specific cores. You can use a site like (bitsum.com/tools/cpu-affinity-calculator) to get the hex number you desire. If you are asking this to knock down say a 16 core ryzen that falls off a cliff when doing 4k encoding, you can use the above affinity switch or I have found that the following command lines works actually a tiny bit better. This also doesn't change regular 1080 and 720 encoding speeds. encodingserver /priority normal /restart-if-no-progress /avisynth-prefetch-threads 12 /x264-threads 16 /x265-threads 16 The avisynth-prefetch-threads is what actually kills the 16 core ryzens when doing 4k encoding for whatever reason if you do not knock them down to 12 This works best regardless of what you are encoding and is what I use on all my 16 core ryzens Last edited by rlev11; 12th January 2023 at 16:08. |
|
15th January 2023, 14:28 | #19903 | Link | |
Registered User
Join Date: Mar 2011
Posts: 440
|
Quote:
All my physical servers run ZFS as a file system including my laptop (has three M.2 NVMEs). I even take care of large installs of ZFS over 2PB with 232 hard drives and 100TB of NVME Cache (L2ARC). ZFS is almost unbelievable in what it can do. So yea, I belong to the cult of the Penguin. |
|
16th January 2023, 03:20 | #19904 | Link |
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Ryzen 9 7950X, (maybe other 7000 series)
I stumbled across something today, and for those of you that are lucky enough to own one on the AWESOME CPU's.
Add this command to your x265 profile:- Code:
--asm avx512
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. |
16th January 2023, 14:11 | #19905 | Link | |
Registered User
Join Date: Sep 2022
Posts: 11
|
prefetch-threads question
Hi,
quick question, im using an intel i9-12900KF, will i see a performance benefit if i use the prefetch option below. looking at cpu performance all cores seems to works at mostly 100% Quote:
|
|
16th January 2023, 14:28 | #19906 | Link | |
Registered User
Join Date: Mar 2011
Posts: 440
|
Quote:
Found this: https://www.hwcooling.net/en/intel-a...-does-it-help/ Not sure if the power consumption is going to be worth slightly increased performance. AMDs implementation is double pumped compared to Intels 12th gen. I'm running a test now against a entire 4K movie (Puss in Boots) so I'll report back with the times to encode both with or without. Unfortunately, I won't be able to use it for my set up as one of my two servers does not have AVX-512 and the X265 options is added to the main x265 settings. But perhaps x265 will just ignore the option if it's not available to use. I'll test that too. |
|
16th January 2023, 14:39 | #19907 | Link | |
Registered User
Join Date: Mar 2011
Posts: 440
|
Quote:
What I've discovered is that you will want to see is your CPU usage bouncing between 85-100%. So leave off the "/x264-threads 16 /x265-threads 16" and see what your Encoding Server shows as the default threads. Then just set the avisynth-prefetch-threads to about 3/4 of what it shows. |
|
16th January 2023, 22:30 | #19908 | Link |
Registered User
Join Date: Aug 2020
Location: Pennsylvania
Posts: 133
|
The only time in my experience that you have to worry about knocking down cpu cores or avisynth threads is when you start getting into doing 4k encoding and specifically 4k encodes that are full screen aspect ratio (1.78:1 or even 1.85:1). There is something with encoding all those extra bits that I have found that the 16 core Ryzens really have an issue with those. I can't speak to the latest Intel i-9's as I don't have any of those. Not sure how the whole P and E cores effect encoding 4k, you may have to just do some testing.
When doing those 4k encodes with everything set full out on a 3950/5950/7950, The encoding speed takes a nose-dive to point where they are about 1/2 the speed of a 12 core 3900x or 5900x. Something gets overloaded with all those threads and they just can't handle it. This is where using either affinity mask or avi-synth thread setting knocking them down to only use 12 cores or threads is necessary. Even with cores or threads turned off, they will still out-perform their 12 core brothers. I posted some quick tests a while ago that showed me that once I set the avisynth prefetch to 12, that it did not slow down or speed up doing regular 1080 or 720 encoding, but made the 4k stuff run as they should which is why I just use that setting now for everything. |
17th January 2023, 00:30 | #19909 | Link | ||
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Quote:
Unfortunately, this has old info, and it only shows 11th Gen Intel & 5000 Series Ryzen's....it clearly shows that the Ryzen's DO NOT support avx 512 but the the Intel chips do, with a small increase in speed. However, 12th & 13th Gen Intel chips with their "E" & "P" cores do not. although it has been suggested that with some motherboards, there is an option to enable it (I haven't got a motherboard that has that), also it has been suggested that turning off the "E" cores with enable avx 512 support, again, I haven't got that option, either Quote:
So I did a lot of frustrating testing yesterday, and there doesn't appear to be that much benefit, but it's nice be able to enable it, and it's just another feather in AMD's cap. TBBH, I'm not all that impressed with the 13900KF, it run's as hot as a furnace, and is slower than the 7950X !!!!! (which is also a "cooler" furnace) I am running a "budget" B660 MSI motherboard, but the "grunt" of the 13900KF should still be fully enabled, I think spending another couple of $100's wouldn't make much difference, and overclocking would just create a LOT more unwanted heat !!! I will be interested in your test results
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. Last edited by TDS; 17th January 2023 at 03:19. |
||
17th January 2023, 00:47 | #19910 | Link | |||
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Quote:
In my limited experience with my new 13900KF, this prefetch option doesn't seem to be as "important" with the Intel chips, as it is with the 16 core Ryzen's. I did some tests using 3 different command line's, and there was little difference, Quote:
As rlev11 mentioned, it does also depend on the "size" of the video being encoded, and of course what filters are being used. Quote:
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. |
|||
17th January 2023, 01:51 | #19911 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 7,156
|
Guys, there is a good reason why this option has to be enabled manually and is not enabled when its CPU support is autodetected: There is no certain advantage in it. Not as much between AVX2 and AVX512 as there is between AVX and AVX2. It may execute some calculations faster in net CPU time. But gross CPU time can still be worse, because switching between a more basic CPU mode and the AVX512 context requires clearing more CPU registers which must be loaded again, and the power consumption is so much higher that the temperature rises much faster so that the CPU must be cooled with more efforts, up to throttling down the CPU clock. This may also worsen the durability of the whole CPU. I don't want to discourage you from the start. Yes, try it. But take all the side effects into account. |
17th January 2023, 02:06 | #19912 | Link | |
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Quote:
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. |
|
18th January 2023, 17:33 | #19913 | Link | |
Registered User
Join Date: Mar 2011
Posts: 440
|
Quote:
What I found, as others have found, there was no improvement in enabling AVX-512. In fact it was ever so slightly slower when using AVX-512. Underclocking the 7950x resulted in a nice discovery. I have my 7950x underlocked to all cores at 4900MHz using 1.08 volts. So the 7950x at the default frequencies took 1:24m:28s to run the encode while averaging 210 watts of energy. The 7950x underclocked took 1h:26m:58s while averaging 140 watts of energy. So underclocked it was 2.3% slower than the default frequencies and the 7950x uses 50% more electricity at the default frequencies. Pretty amazing how well the 7950x performs when underclocked slightly. So yea, the 7950x is not so much a furnace if you underclock it. Testing Detail: AVX-512 X265 Instruction set test. AMD 7950x with default frequencies. Source: Puss In Boots 4K - 1h:30m:35s AIO 420mm Cooler CQ16 Without AVX-512: Time to encode: 1:24m:28s Avg Temp: 85 Celsius Avg Power Package Watts: 210 Avg Power Cores Watts: 145 With AVX-512: Tiem to Encode: 1h:25m:44s Avg Temp: 89 Celsius Underclocked to 4.9GHz (1.08v) Without AVX-512 Time to encode: 1h:26m:58s Avg Temp: 60 Celsius Avg Power Package Watts: 140 Avg Power Cores Watts: 85 |
|
18th January 2023, 21:30 | #19914 | Link |
Registered User
Join Date: Aug 2020
Location: Pennsylvania
Posts: 133
|
Those are great numbers on under-clocking the 7950x. 2.3% performance drop is basically nothing for the huge power savings. This is something I am going to have to seriously consider.
I will probably also look into and see if doing the same with the 5950x results in a similar small performance hit with a big power savings as well. Just did a quick test with my 7950x. All I did was go into Ryzen Master and in the Basic View changed the profile from Default to Eco Mode. This knocks the 7950x down to 65watt maximum. My CPU temp went from 85c to 63c. CPU Power via Ryzen Master showed a drop from 140w down to appx 55watt. Clock Speeds dropped about a 1,000 Mhz. FPS showed in the Encoding Client in default mode was about 26-27 fps on a 1080p encode. After ECO Mode the fps only dropped 1.5 to 3fps. next up will put a Kill-a-watt meter on at the wall and see what real world power drop is. Looks like on the 7950x you can change the mode on the fly in Ryzen Master. No reboot required, just click ECO Mode and hit apply. Last edited by rlev11; 19th January 2023 at 01:11. |
19th January 2023, 01:04 | #19915 | Link | |
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Quote:
I have also tried supposed AVX2 optimised x265's, and there's no significant improvement. It might be advantageous in some scenarios, but not this. It's also a shame that some of us spend our hard-earned money on "top of the line" hardware (eg:- 7950X's, and 13900K's), only to find they use SO much power, and produce SO much heat, that "we" go to great lengths to "hobble" them, to make them more acceptable...it's almost pointless, really. But having said that, is underclocking the way to go, or is undervolting & overclocking the new thing ?? I was watching a YT clip of JayzTwoCents where he undervolted an Intel CPU, and was also able to overclock it, so more speed, less volts, less power use, less heat. https://www.youtube.com/watch?v=4jjopjkJzxA And a couple of other clips on undervolting 7950X's.. https://www.youtube.com/watch?v=1pizvaYiVbk https://www.youtube.com/watch?v=7JiYAwKIHRY And now back to your tests:- Those encoding time's for "Puss In Boot's", that's encoding the movie in less time that it takes to watch it !!! Are you using any filters, or is it only CQ 16 ?? And as for power usage, that fortunately isn't that much of an issue for me, as I only encode when the Solar Panels are generating enough, and I don't do any "overnight" encoding, been there, done that, was very disappointing, most of the time
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. |
|
19th January 2023, 01:24 | #19916 | Link | |
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Quote:
You'll probably see a much bigger decrease when encoding 4K, with strong filters I've gone back to some pretty basic BIOS settings, a small negative curse optimiser, and left almost everything else as default, it's running at approx 95- 96°C, on a hot day (but it doesn't seem to matter what the ambient is), and it's around 5100 - 5400MHz, when encoding 4K.
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. |
|
19th January 2023, 02:44 | #19917 | Link |
Registered User
Join Date: Aug 2020
Location: Pennsylvania
Posts: 133
|
Yea I'm not completely sold on ECO Mode. It was just a "Let's see what happens" and I was really surprised that the performance was as good as it was. It something I might enable on the fly if I que up a bunch of stuff to do overnight and don't really care when it gets done.
|
19th January 2023, 14:07 | #19918 | Link | |
Registered User
Join Date: Mar 2011
Posts: 440
|
Quote:
I think both AMD and Intel are chasing every last bit of performance they can to one up each other. The amount of heat/watts consumed by the new Intel 13900K is staggering (yea, that is a furnace): https://www.youtube.com/watch?v=P40gp_DJk5E&t=364s The 13900K seems very bursty in the way it was designed and it throttles back in only a few seconds. The 7950x seems to go to it's limit and hold there. I'm curious, since you have both CPUs, you should run a test and let us know which CPU wins (regardless of power used). I think you'll need to disable the GPU portion though so it runs all CPU. So even though the chips can eek out more performance by pushing them to their max, I don't think for real world use it's necessary. Even for us that torture the CPUs for encoding, underlocking them ever so slightly produces great performance. And if I want to get 2.3% more performance for 50% more power I can. |
|
19th January 2023, 14:17 | #19919 | Link | |
Formally known as .......
Join Date: Sep 2021
Location: Down Under.
Posts: 1,124
|
Quote:
I wonder if when using a filter, you might get different results ?? The 13900KF, is the non GPU variant I'm going to try an older x265 build that's supposed to be optimised for AMD & Intel chips...not sure if it's going to yield better results. And you're correct, that the Ryzen seems to get to it's limit, and stay's there, and the 13900 does indeed throttle back and forth, sadly. But the Ryzen has the advantage, most definitely.
__________________
Long term RipBot264 user. RipBot264 modded builds.. *new* x264 & x265 addon packs.. |
|
19th January 2023, 14:43 | #19920 | Link | |
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,888
|
Quote:
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
|
Tags |
264, 265, appletv, avchd, bluray, gui, iphone, ipod, ps3, psp, ripbot264, x264 2-pass, x264 gui, x264_64, x265, xbox360 |
Thread Tools | Search this Thread |
Display Modes | |
|
|