THIS WILL DRAMATICALLY REDUCE YOUR LATENCY!

Savitarax
25 Oct 202309:16

Summary

TLDRIn this follow-up video on the Windows scheduler guide, the presenter introduces a tweak to reduce system interrupts and latency significantly. By adjusting the 'processor performance time check interval' setting to 5,000 milliseconds, the video demonstrates a 10-fold decrease in system interrupts and improved latency across games and applications. The tweak targets the 'PPM perf action' symbol, which is related to power management. The presenter also recommends using tools like 'xerf' for analyzing system latency and suggests further tweaks, such as disabling right cash buffer flushing on SSDs, to achieve even better performance.

Takeaways

  • 😲 The video is a follow-up on the ultimate Windows scheduler guide, focusing on a specific system tweak to reduce interrupts and latency.
  • 🔧 A reserved CPU set tweak allows changing Windows scheduling, moving all OS operations off core zero, which was previously thought impossible.
  • 🔬 The script mentions using 'media experience analyzer' to identify a non-compliant driver and kernel symbol related to power management.
  • 🛠️ 'Power Settings Explorer' software is recommended for adjusting the 'processor performance time check interval' setting, which is key to the tweak.
  • ⏱️ The default setting for 'processor performance time check interval' is 15 milliseconds on high performance plans, which is considered high.
  • 🔍 This setting determines how often the OS re-evaluates power-saving states, and reducing it can significantly cut down on unnecessary updates.
  • 📉 Setting the interval to 5,000 milliseconds can reduce system interrupts dramatically, improving latency across the board.
  • 🛑 Tools like 'xerf' and 'latencymon' are recommended for analyzing system latency and the impact of the tweak.
  • 🚀 Disabling 'right cash buffer flushing' in device manager for SSDs is another tweak mentioned to reduce system activity.
  • 🔧 Additional tweaks in power plans and device manager can further minimize system interrupts, leading to a quieter and more efficient system.
  • 👍 The video emphasizes that these tweaks can greatly improve system performance without the need for expensive hardware upgrades.

Q & A

  • What is the main focus of the video script?

    -The main focus of the video script is to provide a follow-up guide on reducing system interrupts and latency in Windows, specifically by tweaking the 'processor performance time check interval' setting.

  • What is the significance of reducing interrupts and latency in a system?

    -Reducing interrupts and latency is significant because it can improve system performance, particularly in scenarios requiring high responsiveness, such as gaming or running latency-sensitive applications.

  • What tool is mentioned for changing the way Windows scheduling works?

    -The tool mentioned for changing the way Windows scheduling works is 'Power Settings Explorer', which is not typically available by default.

  • What does the term 'PPM perf action' stand for?

    -The term 'PPM perf action' stands for 'Processor Performance Management perf action', which is related to actions performed for power management.

  • What is the default setting for 'processor performance time check interval' on high performance plans?

    -The default setting for 'processor performance time check interval' on high performance plans is 15 milliseconds.

  • What is the purpose of the 'processor performance time check interval' setting?

    -The purpose of the 'processor performance time check interval' setting is to specify the amount of time that must expire before processor performance states and parked cores may be re-evaluated.

  • What is the impact of setting the 'processor performance time check interval' to its highest value of 5,000 milliseconds?

    -Setting the 'processor performance time check interval' to 5,000 milliseconds can dramatically reduce the number of system interrupts, potentially by 10 times, and significantly lower latency.

  • What tool is recommended for analyzing system latency?

    -The tool recommended for analyzing system latency is 'xerf', which is described as a better and almost infinitely better version of 'latencymon'.

  • What additional tweaks can be done to further reduce system interrupts and latency?

    -Additional tweaks include disabling right cash buffer flushing in the device manager for SSDs, and adjusting various settings within the power plans and device manager.

  • What is the final impact of applying the suggested tweaks on system activity?

    -The final impact of applying the suggested tweaks is a dramatic reduction in system activity, with only the Nvidia driver showing a significant number of interrupts due to its nature of updating screen frames and refresh rates.

  • How can viewers test and analyze the tweaks mentioned in the video?

    -Viewers can test and analyze the tweaks by adjusting the 'processor performance time check interval' to 5,000 milliseconds, and then using tools like 'xerf' and 'latencymon' to measure the impact on system latency and interrupts.

Outlines

00:00

🛠️ Optimizing Windows for Reduced Latency

This paragraph introduces a follow-up video on the Windows scheduler guide, focusing on a tweak that significantly reduces system interrupts and latency. The author highlights the importance of this tweak in conjunction with reserved CPU sets, which allows for a complete change in Windows scheduling. The main culprit identified is the 'PPM perf action', which is related to power management and performance. The video suggests using Power Settings Explorer to adjust the 'processor performance time check interval' from its default of 15 milliseconds to a higher value of 5,000 milliseconds, which can drastically reduce system interrupts and improve latency. The author recommends using 'xerf' for analyzing system latency and provides evidence of the effectiveness of this tweak.

05:00

🔍 Further Tweaks for System Performance

The second paragraph delves into additional tweaks that can be made to further optimize system performance. It discusses changing settings in the power plans and device manager, such as disabling right cash buffer flushing on SSDs. The author explains that by tweaking the 'processor performance time check interval' to 5,000 milliseconds, the system's interrupt activity can be reduced to a fraction of its normal state. The paragraph also mentions the Nvidia driver as an exception, due to its nature of updating screen frames and refresh rates, which naturally results in more interrupts. The author provides a visual comparison using tools like 'latencymon' and 'omit' to demonstrate the significant reduction in latency and system activity after applying these tweaks, emphasizing the effectiveness of these changes in improving system performance without the need for expensive hardware upgrades.

Mindmap

Keywords

💡Windows Scheduler

The Windows Scheduler is a component of the Windows operating system that manages the allocation of processor time to the various processes running on the system. It is crucial for ensuring that tasks are executed efficiently and in a timely manner. In the video, the presenter discusses how tweaking the Windows Scheduler can reduce system interrupts and latency, which is a key aspect of optimizing system performance for tasks like gaming or running heavy applications.

💡Interrupts

Interrupts in computing refer to the signals sent to the processor by hardware or software indicating an event that needs immediate attention. Reducing the number of interrupts can lead to improved system performance by minimizing the processor's time spent switching between tasks. The video emphasizes the importance of reducing interrupts as a means to decrease system latency and improve the overall responsiveness of Windows.

💡Latency

Latency in computing is the delay before a transfer of data begins following an instruction for data transfer. Lower latency is desirable in many applications, especially in gaming and real-time processing, where quick response times are critical. The video discusses how certain tweaks can dramatically reduce latency, which can lead to a smoother and more responsive user experience.

💡Reserved CPU Sets

Reserved CPU Sets is a feature that allows users to allocate specific processor cores for certain tasks, thereby improving performance and reducing latency. In the context of the video, the presenter mentions that adjusting the Reserved CPU Sets can help in managing how Windows schedules tasks, which can be particularly useful for high-performance computing needs.

💡Processor Performance Management (PPM)

Processor Performance Management (PPM) is a feature in modern processors that dynamically adjusts performance and power consumption based on the workload. The script mentions 'PPM perf action', which seems to be related to power management and performance adjustments. The video suggests that tweaking settings related to PPM can have a significant impact on reducing system interrupts and improving latency.

💡Power Settings Explorer

Power Settings Explorer is a software tool that allows users to view and modify power settings on their Windows system. In the video, the presenter uses this tool to adjust the 'processor performance time check interval', which is a setting that controls how often the system re-evaluates power states and parked cores. By changing this setting, the presenter demonstrates a significant reduction in system interrupts.

💡DPC (Deferred Procedure Call)

DPC stands for Deferred Procedure Call, which is a mechanism in Windows for executing code at a lower priority than the current executing code. High DPC latency can be a sign of system inefficiency. The video uses DPC as a metric to measure the effectiveness of the tweaks discussed for reducing system latency.

💡ISR (Interrupt Service Routine)

ISR refers to Interrupt Service Routine, which is a function called by the operating system in response to a hardware interrupt. The video mentions ISR in the context of analyzing tools that measure the number of interrupts generated by the system, which is an indicator of system performance and efficiency.

💡Xerf

Xerf is a software tool mentioned in the video as an improved version of LatencyMon, used for analyzing system latency. It provides detailed information about the latency generated by different drivers and services, which is crucial for identifying bottlenecks and areas for optimization in system performance.

💡Nvidia Driver

The Nvidia Driver refers to the software that enables the operating system to communicate with Nvidia graphics cards. In the video, the presenter notes that the Nvidia driver is one of the few services that continues to generate a significant number of interrupts even after applying the discussed tweaks. This suggests that the driver plays a key role in the system's performance, particularly in graphics-intensive applications.

Highlights

Introduction to a follow-up video on the ultimate Windows scheduler guide.

A specific system tweak can dramatically reduce interrupts and latency.

The importance of reducing latency for media experience and system performance.

The discovery of a driver and kernel symbol not obeying reserved CPU sets.

Explanation of reserved CPU sets and their impact on Windows scheduling.

Introduction of the PPM perf action symbol related to power management.

Use of Power Settings Explorer to modify system settings.

Details on the 'processor performance time check interval' setting.

Impact of setting the time check interval to 5,000 milliseconds on system interrupts.

Introduction of xerf as a superior tool for analyzing system latency.

Analysis of system interrupts with the time check interval set to 15 milliseconds.

Demonstration of the significant reduction in interrupts by setting the interval to 5,000 milliseconds.

Further tweaks to reduce system interrupts and improve latency.

Disabling right cash buffer flushing in device manager for additional latency reduction.

Verification of the effectiveness of the tweaks using multiple analyzing tools.

Reduction of system activity and latency with the 5,000 millisecond setting.

Acknowledgment of the role of the Nvidia driver in system interrupts.

Final demonstration of latency reduction using a different latency monitoring tool.

Recommendation to test and analyze the tweaks for personal system improvement.

Closing remarks and call to action for subscribing to the channel.

Transcripts

play00:00

all righty guys well welcome to the

play00:02

video so today what I wanted to do is a

play00:05

follow-up video on the ultimate Windows

play00:08

scheduler guide and the reason why I

play00:09

wanted to make this video is that there

play00:11

was one specific tweak that you can do

play00:15

to your system to dramatically reduce

play00:17

the amount of interrupts and latency

play00:19

within your system and the reason why

play00:22

this matters so much guys is because in

play00:24

combination with the tweaks that I've

play00:26

already mentioned before with the

play00:28

reserved CPU sets what I noticed is that

play00:30

when I ran media experience analyzer

play00:33

there was only one specific driver and

play00:35

one specific kernel symbol that was not

play00:38

obeying the reserved CPU sets which if

play00:40

you're not familiar with allows you to

play00:42

basically change the way that Windows

play00:43

scheduling works entirely so you can

play00:46

basically move all of your operating

play00:47

system off of core zero which again I

play00:50

originally thought was basically all but

play00:52

impossible because I had never seen

play00:53

anybody um have any software that could

play00:56

override it in a way that actually

play00:57

worked at a fundamental level with even

play00:59

the current drivers so you guys are want

play01:02

to going to check that out because it's

play01:03

going to be a really cool guide that

play01:04

you're going to probably enjoy learning

play01:06

about but onwards with this video the

play01:09

one symbol is known as PPM perf action

play01:12

and what this seems to stand for is

play01:14

processor Performance Management perf

play01:16

action so performing an action for power

play01:19

management and so what I noticed is that

play01:22

a lot of people online were saying that

play01:24

this was related to for example

play01:26

something like speed step speed shift

play01:28

all sorts of different um Dynamic

play01:30

changing of frequency um sort of tools

play01:33

that help save power boost performance

play01:35

all that fun stuff so what I did is as I

play01:38

downloaded a software known as the power

play01:39

settings Explorer and this is normally

play01:41

not something that you can have

play01:43

available already so I'll link it in the

play01:44

GitHub description as well and you guys

play01:47

can actually you know figure it out and

play01:48

download it for yourself but if you go

play01:50

into there there's one specific setting

play01:52

processor performance time check

play01:54

interval Well normally this is defaulted

play01:58

on the high performance plan

play02:00

and it's normally set to a value of 15

play02:04

milliseconds which is a very high amount

play02:07

considering how often this is going to

play02:09

be actually updating so what this

play02:11

specifically says is specify the amount

play02:13

that must expire before processor

play02:15

performance States and parked cores may

play02:17

be re-evaluated in milliseconds so this

play02:20

is essentially checking how often the

play02:22

operating system needs to change certain

play02:25

power saving States within the system

play02:27

but as we all know most of the way the

play02:29

reduces latency is by disabling power

play02:32

saving features so this essentially is

play02:34

updating for no reason and this seems to

play02:37

also apply for all of the different

play02:38

games and actual latency tests that I

play02:41

ran it doesn't seem to do anything so

play02:43

long as you don't actually need to have

play02:45

um any sort of parked cores moved or

play02:48

changed or power States actually you

play02:50

know re-evaluated so if you set this to

play02:53

the highest value of 5,000 you can

play02:55

dramatically reduce the amount of

play02:57

interrupts on the system by an absolute

play02:59

Ely unbelievable amount so I ran a bunch

play03:03

of different DPC and ISR analyzing tools

play03:06

and software and so the one you guys are

play03:08

wanting going to check out is what's

play03:10

known as xerf and it's basically a much

play03:13

better an almost infinitely better

play03:14

version of latencymon because there's a

play03:17

lot of different flaws with that

play03:18

software but exper gives you all of the

play03:21

same different things that you're going

play03:22

to want to use to actually analyze you

play03:24

know the latency within your system so

play03:26

normally with this set to 15

play03:28

milliseconds it will be generating

play03:30

almost

play03:31

113,000 interrupts on your system which

play03:35

is an absolutely insane amount

play03:37

considering just how much of it is

play03:39

related to just the kernel alone of a

play03:42

100,000 interrupts are coming from just

play03:45

the kernel alone so that's why I wanted

play03:47

to analyze the driver of the kernel

play03:49

specifically to see if I could find a

play03:50

way to reduce this even if by a smaller

play03:52

amount well this was the main reason why

play03:55

I wanted to make this video because this

play03:56

is this is how unbelievable this tweak

play03:59

is when you set it to the highest value

play04:00

of 5,000 milliseconds you reduce the

play04:03

amount of interrupts by on your system

play04:07

by 10 times so we have cut the amount of

play04:11

interrupts into oneth and not only that

play04:15

but the latency is dramatically reduced

play04:18

across the board regardless of whatever

play04:20

driver or service that you're talking

play04:22

about so if I go into the 15 millisecond

play04:24

version right here you'll notice that we

play04:26

have tons of latency in 64 32 and 16

play04:30

microc interrupt latency times which is

play04:32

very high considering you can normally

play04:34

get it down to about 1 to 20

play04:36

microseconds so this dramatically

play04:38

reduces the amount of noise and activity

play04:40

that the colel is actually using but

play04:44

there also are even more tweaks that you

play04:46

can do for example if you go into the

play04:48

device manager and you go into one of

play04:51

the ssds you can disable right cash

play04:53

buffer flushing that's another example

play04:55

of one and so for example down here on

play04:57

the nvme and the storage port

play05:00

if you enable this for example and do a

play05:02

bunch of whole other tweaks as well like

play05:04

turning on specific settings and turning

play05:06

off specific settings and then you can

play05:08

just mess with them inside of the power

play05:09

plans and the device manager as well but

play05:11

if you go even further you can reduce

play05:14

the amount of interrupts in your system

play05:17

to 100th of what it normally runs

play05:21

at and that's just from a few small

play05:27

tweaks from one tweak alone we already

play05:29

reduced the amount of interrupts by 10

play05:32

times and with just a little bit more

play05:34

diligence and some small tweaks on the

play05:37

operating system which don't impact

play05:38

anything they don't change anything

play05:40

about the system they just change small

play05:42

little tiny monitoring metrics that

play05:45

don't actually do anything we can reduce

play05:47

the actual activity on across the board

play05:49

for all of these different drivers and

play05:51

services and are the only service that

play05:54

has anything more than a couple of

play05:55

interrupts is just the Nvidia driver

play05:58

which go figure because you're going to

play05:59

it's it's going to be updating the

play06:00

frames per second of the screen and the

play06:01

refresh rate and stuff like that so it

play06:03

should be having a lot of interrupts

play06:04

happening with it

play06:06

so basically once we change

play06:10

that from the normal state of 15

play06:13

milliseconds to

play06:15

5,000 the activity of Windows looks like

play06:17

this now and like I said you can still

play06:20

see the PPM Perfection is highlighted in

play06:22

purple rather than

play06:23

blue the actual activity of the

play06:26

operating system is reduced dramatically

play06:29

and across the board with a bunch of

play06:31

other different analyzing software it is

play06:34

still the same so for example in

play06:37

latencymon here is it running at 15

play06:39

milliseconds you can see there are tons

play06:41

and tons of interrupts being

play06:44

generated this is with it at

play06:47

5,000 and this has been further actually

play06:50

verified through omit which again credit

play06:53

to him as well because he was

play06:54

instrumental in reverifying this

play06:56

information that I had discovered so it

play06:58

was very helpful to make sure because I

play07:00

wasn't I wanted to make sure that this

play07:02

was actually the default value and that

play07:04

this was actually applying for multiple

play07:06

systems not just mine alone so this has

play07:08

been reverified and you guys are going

play07:10

to want to check out his actual GitHub

play07:12

page and the information and

play07:13

documentation about this he's been

play07:15

instrumental and he's a really awesome

play07:17

guy so we've seen all of this different

play07:20

reductions in latency and interrupts and

play07:22

activity and that is an unbelievable

play07:25

amount of change for just a simple few

play07:28

tweaks and finally the last one I'll

play07:30

show just because I know some people

play07:32

only like to see one specific type of

play07:34

measurement of metric which is basically

play07:36

another uh latencymon tool so this is

play07:39

what it normally runs at with

play07:42

point or for 15 millisecond

play07:45

intervals this looks fairly good this is

play07:48

actually not bad at all this is very low

play07:50

but this is actually a very low amount

play07:53

in consideration to what you can get

play07:55

with just changing this one tweak alone

play07:57

so with this one tweak with the the time

play07:59

check interval it drops it all the way

play08:02

down to 6 and I have single digit

play08:06

microsecond

play08:09

latency an absolutely amazing tweak and

play08:13

so I recommend that you guys do this for

play08:15

yourself test it analyze it because I

play08:18

see no reason why you would need to have

play08:21

this set to an insanely high value of 15

play08:25

milliseconds because if you go into the

play08:27

power settings Explorer the way you can

play08:28

actually make it reveal itself is by

play08:30

unselecting this and it will show you

play08:32

right here high performance power plan

play08:34

is set to 15

play08:36

milliseconds and so yeah guys I hope you

play08:39

enjoyed this video I hope that you guys

play08:41

really enjoy this content and I hope

play08:42

that it actually is helping you with

play08:43

your system I've had a lot of fun and

play08:46

the comments have been rather amazing

play08:48

you guys are awesome please consider

play08:50

subscribing to the channel if you do

play08:51

appreciate this

play08:53

content I do appreciate all of the

play08:55

different kind of stuff that you guys

play08:56

leave for questions and feedback and my

play08:59

goal is basically just to help everybody

play09:00

get a much better running system without

play09:02

having to spend hundreds and thousands

play09:04

of dollars on different Hardware or

play09:08

different upgrades in your system so

play09:11

yeah guys have a good one my name is

play09:13

savis and I'm out

Rate This

5.0 / 5 (0 votes)

Etiquetas Relacionadas
Windows OptimizationPerformance TweaksSystem LatencyInterrupt ReductionPower ManagementCPU SchedulingSoftware ToolsPPM Perf ActionTech GuideHardware Efficiency
¿Necesitas un resumen en inglés?