This question is about possibility of tweaking windows kernel towards real-time like oses, and ways of doing it. It is quite specific narrow topic that requires deep level of knowledge - you either know, either not.
I am on WS2016 x64 platform, and I can set timer resolution only to 500us (0.5ms), calling
NtSetTimerResolution() function within
ntdll.dll library. I guess that value is tied to sheduler timeslice.
However, I want to increase it to 100us. Measuring could involve calling
NtDelayExecution() wrapped in
QueryPerformanceCounter() calls many times within loop and then analysing statistics like jitter, std deviation, so on.
How is this supposed to do? Is there any registry/file tweak, where i can set arbiraty windows sheduler timeslice?
PS. Some people may ask "Why do you need it?", or state "Dont do it, its wrong!". I forsee that kind of thoughts and would answer ahead.
- This is just software Experiment. It is just for testing possibility and physical results of doing it.
- I am aware that it can lead to potential problems, like extra cpu time wasted just on context switches, system unstability, unresponsibility, data loss and whatever problems it could cause. I accept any negative consequences of doing it in advance and taking all responsibility. Even if smoke and sparkles would come out of my machine :)
- As per googling or searching in here - ofc i alredy did it, and failed to find useful information, because this topic is quite narrow, relating to OS shedulers functioning. And almost pointless to do on any windows-machine. I know i can not turn it to real time. This site search "sheduler timeslice" gives no result.