DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 25th September 2015
e1-531g e1-531g is offline
ISO Quartermaster
 
Join Date: Mar 2014
Posts: 584
Default System clock's frequency

Hello,
I am using OpenBSD on laptop (desktop use cases). Linux defaults for 250 HZ system clock's frequency and for desktop use cases it is suggested in Linux to have at least 250 HZ system clock's frequency. For users wishing to have highly responsive systems it is suggested to have 1000 HZ frequency.
Code:
sysctl kern.clockrate                                                        
kern.clockrate=tick = 10000, tickadj = 40, hz = 100, profhz = 100, stathz = 100
tells me that in OpenBSD, by default, it is not the case.
I have grep-ped source code of OpenBSD kernel and found that I can append this line:
Code:
option          HZ=1000
to /usr/src/sys/arch/amd64/conf/GENERIC file. After building and installing kernel from source I have:
Code:
sysctl kern.clockrate                                 
kern.clockrate=tick = 1000, tickadj = 4, hz = 1000, profhz = 1000, stathz = 1000
1. Does anybody use that option and could write whether system is stable after this change?
2. I guess that kernel with changed options is not supported by OpenBSD. Am I right?
Reply With Quote
  #2   (View Single Post)  
Old 25th September 2015
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,107
Default

2 = custom kernels are not supported. You may use a custom kernel if you wish, for any reason you desire. But only GENERIC (or GENERIC.MP) is supported. See FAQ 5.6.
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenBSD support a CPU Frequency Scaling? aleunix OpenBSD General 1 8th March 2012 10:35 PM
System clock runs fast, keyboard rrrrrrrrrepeats Squishy OpenBSD General 9 18th October 2010 10:55 PM
configure clock in xfce delboy FreeBSD General 7 3rd September 2008 06:36 PM
How to detect the frequency of individual cores in a dual core processor? mc_i2020 FreeBSD General 5 18th July 2008 01:46 AM
can't set clock? carpman FreeBSD General 31 7th July 2008 11:26 PM


All times are GMT. The time now is 10:32 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick