Motherboard Forums


Reply
Thread Tools Display Modes

CONFIG_HZ_1000 vs. CONFIG_HZ_250

 
 





















Washington Ratso
Guest
Posts: n/a

 
      11-19-2009, 11:51 PM


I have changed my Linux 2.6.26 configuration from 250 HZ to 1000 HZ to
get more samples when using oprofile in timer interrupt mode. Besides
increasing the number of timer interrupts, are there other effects
from increasing HZ from 250 to 1000?
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      11-20-2009, 12:53 AM
Washington Ratso <> writes:

>I have changed my Linux 2.6.26 configuration from 250 HZ to 1000 HZ to
>get more samples when using oprofile in timer interrupt mode. Besides
>increasing the number of timer interrupts, are there other effects
>from increasing HZ from 250 to 1000?


You have increased the chances of losing timer ticks to the clock,
messing up your system time.

 
Reply With Quote
 
Andrew Smallshaw
Guest
Posts: n/a

 
      11-20-2009, 09:21 PM
On 2009-11-19, Washington Ratso <> wrote:
> I have changed my Linux 2.6.26 configuration from 250 HZ to 1000 HZ to
> get more samples when using oprofile in timer interrupt mode. Besides
> increasing the number of timer interrupts, are there other effects
> from increasing HZ from 250 to 1000?


Yes, you increase the frequency at which the scheduler kicks in.
That in turn means that if there is more than one runnable process
more context switches and more TLB and cache flushes. I wouldn't
imagine that it would amount to a particuarly significant increase
in overhead but it is an increase in overhead never the less.

Having said that I'm reading this in c.a.e. and am not really a
Linux expert. I'm more of a BSD man myself so I can't really steer
you down a better avenue.

--
Andrew Smallshaw

 
Reply With Quote
 
Michael Schnell
Guest
Posts: n/a

 
      11-20-2009, 10:04 PM
If all software is done according to the most recent standards, normal
software should not notice the difference. There even is a HZ setting
for Kernel space and a different one for user programs, so even user
programs that rely on the standard setting, instead of using the HZ
constant for timing issues, should work as expected. The faster
interrupt rate of course might reduce the overall system performance,
while increasing responsiveness for soft realtime applications.

-Michael
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT. The time now is 09:02 AM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43