From owner-freebsd-questions@freebsd.org Fri Sep 7 08:39:30 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 48858FF4622 for ; Fri, 7 Sep 2018 08:39:30 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) (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 EC95D805E5 for ; Fri, 7 Sep 2018 08:39:29 +0000 (UTC) (envelope-from dch@skunkwerks.at) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 0E2F021DFB; Fri, 7 Sep 2018 04:39:23 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute7.internal (MEProxy); Fri, 07 Sep 2018 04:39:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=skunkwerks.at; h=cc:content-transfer-encoding:content-type:date:from :message-id:mime-version:subject:to:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=YabDoKzlc742DPUIihVG+Z/CIr1ai67KVtIi8UT3u e8=; b=hrOlyMZ35BKMRQrAqG6DilOBZe26xV2jqA8EXtgnMS8gKvF6oC6Nj9tzt QFoiCl/DnO/ypLpDqMSFKMa7EElnAD8ZAC4iPznOPNHnzogaPr/rlUEEtmLunpcZ hbgUqnqJYfreUkUTet7Phiu7cQOqFaPtUkuIfyjUnykqnsqG11ZO4c7uAVG0tOgp 8vQtkinXY+wyedtk6kMjoGmWXDCWl0LoMj9qYTROoX14HsOA/+AW64iRJoWuvdPy XS8NBCWY5OGZzC7iiMKP+w1kUxbpFCYCtP8RkBsaie24DJIf4IZdEz/ZfT43zVGG bP/PpPJiskoUpy7fPpyAM69rMWNjA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=YabDoKzlc742DPUIihVG+Z/CIr1ai 67KVtIi8UT3ue8=; b=DijmTfx/d9fFxgqVpD+c3PPrLel/etqI13hNQ1dJ3A7rs SyHa1fR1XRI/eRR0oiQtJWUvp3HvyLtI7+B2Xj1odjDTRqcxVoVCjYo2g9/Agiee LoIiWZgxha+JnGYxF5cBORSziAKmVNYevueAGAPHCEzED/5iup+fqYCR71FpF343 nQlGA/eEvA7eDnSGf5wVKseyUadrinY5lQOueKW41q1MSphJ6g7eg9JFGZZo4HHu 56PVZsKgTrp4mGJel5NOj4pB9AOnLn9/hHi0XiNDMeSiAXzOn8KOFra4vQrDqKcN tllrdPCdV8oRcNzc2/25i5OK1hh3IqDR/6gQhbI2Q== X-ME-Proxy: X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id B58C64141; Fri, 7 Sep 2018 04:39:22 -0400 (EDT) Message-Id: <1536309562.3194443.1499937040.1614FFAA@webmail.messagingengine.com> From: Dave Cottlehuber To: freebsd-questions@freebsd.org Cc: Rob Ramsay MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-1234af23 Date: Fri, 07 Sep 2018 10:39:22 +0200 Subject: sysctls for kernel modules loaded via kld_list in rc.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2018 08:39:30 -0000 Apologies if this is completely obvious to everybody, it certainly wasn't to me until now. It seems that if a module (e.g. carp) is not started via /boot/loader.conf but in rc.conf via `kld_list="${kld_list} carp"`, then the /etc/sysctl.conf settings are not applied. It's obvious (in hindsight) why this is - sysctl is started before kld is run: $ rcorder /etc/rc.d/* /usr/local/etc/rc.d/* |egrep 'carp|kld|sysctl' ... /etc/rc.d/sysctl /etc/rc.d/kldxref /etc/rc.d/kld But it has caused some unexpected behaviour after rebooting, when preemption didn't work as planned. Is this an ordering bug, or something I could improve docs for e.g. in rc.conf(5)? A+ Dave