Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Oct 2007 16:32:01 +0200 (CEST)
From:      Oliver Fromme <olli@lurza.secnetix.de>
To:        freebsd-stable@FreeBSD.ORG, matrix@itlegion.ru
Subject:   Re: Quation about HZ kernel option
Message-ID:  <200710041432.l94EW16Q061368@lurza.secnetix.de>
In-Reply-To: <027301c80688$94ec6b60$0c00a8c0@Artem>

next in thread | previous in thread | raw e-mail | index | archive | help
Artem Kuchin wrote:
 > Oliver Fromme wrote:
 > > Artem Kuchin wrote:
 > > > What value of HZ option would you recommend
 > > > for a hosting (web) server with a lot of processes
 > > > (about 900) and polling off (as decided from previous
 > > > discussion polling is useless in
 > > > this situation).
 > > 
 > > In that case, I would recommend not to override the
 > > default at all (which is 1000).
 > 
 > Umm.. default is 100 (one hundred), i think.

No, the default is 1000 for quite a few years.  Well,
except on the alpha platform, but I guess you're on
either i386 or amd64, not alpha.

Quote from src/sys/kern/subr_param.c:

#ifndef HZ
#  if defined(__amd64__) || defined(__i386__) || defined(__ia64__) || defined(__sparc64__)
#    define     HZ 1000
#  else
#    define     HZ 100
#  endif
#endif

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

Passwords are like underwear.  You don't share them,
you don't hang them on your monitor or under your keyboard,
you don't email them, or put them on a web site,
and you must change them very often.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200710041432.l94EW16Q061368>