You are not logged in.

#1 2008-10-31 17:50:19

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

kernel timer frequency question

I use hydrogen and rosegarden quite often to alter and compose drum sequences to use while playing the guitar. In my custom kernel config I set kernel timer frequency...
CONFIG_HZ_1000=y
CONFIG_HZ=1000

instead of the standard...
CONFIG_HZ_300=y
CONFIG_HZ=300

Is there any dissadvantage to using using timer frequency CONFIG_HZ=1000? Perhaps some ill effects in the long term?

I'm having trouble finding some detailed info on this.


-- archlinux 是一个极好的 linux

Offline

#2 2008-10-31 17:58:33

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: kernel timer frequency question

Leigh wrote:

CONFIG_HZ_1000=y
CONFIG_HZ=1000

is the recommended setting for desktop computers so you don't have to be worried about anything I suppose.

Offline

#3 2008-11-03 03:47:37

Evanlec
Member
From: NH, USA
Registered: 2007-12-16
Posts: 141
Website

Re: kernel timer frequency question

afaik 300hz or lower frequencies will give you better throughput, so things like compiling, video encoding, compressing, will be faster.

At 1000hz the system is more responsive, but spends a lot of time 'waiting' for events (so it can respond to them quickly), so your throughput is less.

This is my limited understanding, and it may not be correct ;p

Offline

#4 2008-11-03 16:44:36

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: kernel timer frequency question

That makes sense, and would explain why arch's default kernel uses 300hz. I spent a lot of time googling to try and understand better, but I havent found anything explaining the pros and cons of using a higher timing hz. I did read some info about people trying to use 2000hz and having issues. That seemed a little extreme to me.


-- archlinux 是一个极好的 linux

Offline

#5 2008-11-03 23:44:10

Evanlec
Member
From: NH, USA
Registered: 2007-12-16
Posts: 141
Website

Re: kernel timer frequency question

yea i noticed the same when i tried looking for info about it.
its one of the reasons a lot of ppl are using 1000hz these days and not realizing the disadvantages

Offline

#6 2008-11-04 00:22:23

shazeal
Member
From: New Zealand
Registered: 2007-06-05
Posts: 341

Re: kernel timer frequency question

1000hz is for Single core machines. 300 should be used on dual core, as the timer is per core, so a setting of 1000hz will give an actual timer of 2000hz. The Zen kernels tweak these values to ~430, ~860 and claim that these are the optimal settings.

Offline

#7 2008-11-04 10:07:19

Leigh
Member
From: USA
Registered: 2004-06-25
Posts: 533

Re: kernel timer frequency question

Thanks, this makes much better sense now, but even though I have a dual core, Rosegarden will complain that the timing frequency is too low when I use the default kernel configured at 300hz.

Rosegarden is happy with my custom kernel configured at 1000hz. I just checked the zen kernels configs in aur, they seem to be using 1000hz as default, but they have 432hz and 864hz commented out. I'll try rebuilding with lower values starting with 432hz to find a happy medium and still keep Rosegarden happy.


-- archlinux 是一个极好的 linux

Offline

#8 2019-12-13 10:52:44

4internetanonymity
Member
Registered: 2009-07-09
Posts: 56

Re: kernel timer frequency question

shazeal wrote:

1000hz is for Single core machines. 300 should be used on dual core, as the timer is per core, so a setting of 1000hz will give an actual timer of 2000hz. The Zen kernels tweak these values to ~430, ~860 and claim that these are the optimal settings.

I don't see where the zen kernel is using 860... I though Liquorix was the maintainer of the Zen kernel, and on their forum they say 1000hz:
https://techpatterns.com/forums/about24 … t=confighz

Offline

#9 2019-12-13 10:57:18

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: kernel timer frequency question

4internetanonymity wrote:

I don't see where the zen kernel is using 860... I though Liquorix was the maintainer of the Zen kernel, and on their forum they say 1000hz:
https://techpatterns.com/forums/about24 … t=confighz

Things do change in the 11 years since this thread was started.

Putting this back to sleep for good...


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB