-> No. <-does this really mean that kern.hz has no effect?
kern.hz
tells the frequency of timer interrupts. kern.eventtimer.periodic
configures one "mode of operation" for actual hardware timers. These are orthogonal.I am thinking moving from using Linux to using FreeBSD as Desktop as well as server.eventtimers(4).
What's the background of all your questions? Are you experiencing some behavior you consider non-optimal?
I done a few changes when I was using Linux wrt schedulars timer interrupt at the very leastAnd this brings me back to my short answer above: Why do you feel the need to "tune" anything here? If you don't have an actual problem to solve, if it's "tuning just because" – don't do it. That's never a good idea.
Indeed. Even how hardware-timers are used and interrupts are generated is a complex thing nowadayscomplex kernel mechanisms
I thought so. It's not a good idea. Linux has a history of scheduler issues. I remember some (well, quite some) time back when Linux 2.x was the current release version, some patches by Con Kolivas that completely replaced the scheduler helped a lot with desktop performance. And I'm still baffled Linux has options(!) to pick an I/O scheduler (or is this gone by now?)I done a few changes when I was using Linux wrt schedulars timer interrupt at the very least
was trying to chech parallels in FreeBSD and just blanket apply my Linix values to FreeBSD and check out before deep diving into the needs and then actually tuning it if required.
idprio
) in rare cases if something needs always/never priority over other stuff, and this, as well, just works. You might want to tune kern.sched.preempt_thresh
up or down, to change the balance between (CPU-)throughput and responsiveness, but don't just do it blindly, the default is a good compromise. Other than that, just test the system as is with all its defaults, you will most likely be satisfied.Whatever that means. Do you have any source with an actual technical explanation what Linux is really doing in that mode? I'm almost sure the term is at least misleading; as I stated above, an OS can't run correctly without any timer interrupts. You *could* try to come up with a scheme that adapts the frequency based on load or whatever, which is complex for example to keep the clock monotonic, but seems doable, my guess would be it's along these lines....FreeBSD does not run tickless.
Whatever that means. Do you have any source with an actual technical explanation what Linux is really doing in that mode? I'm almost sure the term is at least misleading; as I stated above, an OS can't run correctly without any timer interrupts. You *could* try to come up with a scheme that adapts the frequency based on load or whatever, which is complex for example to keep the clock monotonic, but seems doable, my guess would be it's along these lines....
Linux has come a long way from 2.4.I thought so. It's not a good idea. Linux has a history of scheduler issues. I remember some (well, quite some) time back when Linux 2.x was the current release version, some patches by Con Kolivas that completely replaced the scheduler helped a lot with desktop performance. And I'm still baffled Linux has options(!) to pick an I/O scheduler (or is this gone by now?)
In my experience, FreeBSD (including its scheduler) "just works". You might want to use rtprio(1) (idprio
) in rare cases if something needs always/never priority over other stuff, and this, as well, just works. You might want to tunekern.sched.preempt_thresh
up or down, to change the balance between (CPU-)throughput and responsiveness, but don't just do it blindly, the default is a good compromise. Other than that, just test the system as is with all its defaults, you will most likely be satisfied.
Plenty available online but see https://www.kernel.org/doc/Documentation/timers/NO_HZ.txtDo you have any source with an actual technical explanation what Linux is really doing in that mode?
If you want to make such strange things (witch I think is most use full if you are doing only one task, and really want the system in a specific way) look for instance here https://man.freebsd.org/cgi/man.cgi?renice(8) or https://man.freebsd.org/cgi/man.cgi?query=setpriority&sektion=2&manpath=freebsd-release-ports Remember only root can run like that.IIRC, Linux runs tickless (when configured) for CPU with singleton run queues or when there's a runnable process with dominant realtime priority.
FreeBSD 9 introduced a "dynamic tick mode" (aka tickless)
On RHEL 4 and 5 the default value of HZ was 1000.Between RHEL5 and RHEL6 I didn't notice anything
My opinions, my understanding, may not be 100% technically accurate.Is ULE both a CPU and IO Schedular???
This is a rabbit hole that often leads to one feeling like Alice meeting the Red Queen.Of course need to also know if Linux like preemption types are there in FreeBSD
none/voluntary/full so that none can be chosen for servers and voluntary for desktop and full for multimedia and gaming
Trying to go through and "pretune a system you haven't run on real hardware" sounds very unintuitive to me.
I'm not OP, just added my two centsIf you want to make such strange things (witch I think is most use full if you are doing only one task, and really want the system in a specific way) look for instance here https://man.freebsd.org/cgi/man.cgi?renice(8) or https://man.freebsd.org/cgi/man.cgi?query=setpriority&sektion=2&manpath=freebsd-release-ports Remember only root can run like that.
What are you doing that is so special that it requires all that thinkering ?? Just out of curiosity![]()