From owner-freebsd-current@freebsd.org Sun Jan 21 21:22:19 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 57397EBC235 for ; Sun, 21 Jan 2018 21:22:19 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [52.58.109.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E913B7D12B for ; Sun, 21 Jan 2018 21:22:18 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 23a5a400-fef1-11e7-8dac-d32f5c2d02ef X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 23a5a400-fef1-11e7-8dac-d32f5c2d02ef; Sun, 21 Jan 2018 21:22:10 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w0LLM5wd001899; Sun, 21 Jan 2018 14:22:05 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1516569725.42536.99.camel@freebsd.org> Subject: Re: Periodical interrupt storm when playing game with USB keyboard From: Ian Lepore To: Hans Petter Selasky , Johannes Lundberg Cc: freebsd-current Date: Sun, 21 Jan 2018 14:22:05 -0700 In-Reply-To: <64218617-98d2-0e6e-5872-e44106e61bf7@selasky.org> References: <64218617-98d2-0e6e-5872-e44106e61bf7@selasky.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Jan 2018 21:22:19 -0000 On Sun, 2018-01-21 at 22:07 +0100, Hans Petter Selasky wrote: > On 01/21/18 21:45, Johannes Lundberg wrote: > > > > What does kern.eventtimer.periodic do?  The sysctl description > > wasn't > > that elaborate... > It turns off re-programming the timer every time there is a new > callout  > with earlier completion time. > > --HPS Well, it does more than that.  It makes the system run "the old way" where there are periodic timer interrupts that happen whether they need to or not (bad for power saving), and there's no way to schedule anything to happen on intervals other than when the periodic ticks occur (so if kern.hz = 1000 and you ask to sleep for a microsecond you may actually sleep up to a millisecond). -- Ian