From owner-freebsd-questions@FreeBSD.ORG Sun May 27 11:40:26 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C065516A46E for ; Sun, 27 May 2007 11:40:26 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.187.76.162]) by mx1.freebsd.org (Postfix) with ESMTP id 2466C13C4B9 for ; Sun, 27 May 2007 11:40:25 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1]) by smtp.infracaninophile.co.uk (8.14.1/8.14.1) with ESMTP id l4RBe9P7095824; Sun, 27 May 2007 12:40:11 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) Authentication-Results: smtp.infracaninophile.co.uk from=m.seaman@infracaninophile.co.uk; sender-id=permerror; spf=permerror X-SenderID: Sendmail Sender-ID Filter v0.2.14 smtp.infracaninophile.co.uk l4RBe9P7095824 Message-ID: <46596E19.2030302@infracaninophile.co.uk> Date: Sun, 27 May 2007 12:40:09 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.0 (X11/20070521) MIME-Version: 1.0 To: Angelin Lalev References: In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp.infracaninophile.co.uk [IPv6:::1]); Sun, 27 May 2007 12:40:21 +0100 (BST) X-Virus-Scanned: ClamAV 0.90.2/3304/Sun May 27 05:35:19 2007 on happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_POLICY_TESTING, DK_POLICY_SIGNSOME,NO_RELAYS autolearn=ham version=3.1.8 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on happy-idiot-talk.infracaninophile.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: is it possible to set the following IPC options at boot instead of hard-coding them in kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 May 2007 11:40:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Angelin Lalev wrote: > Hi list, > > I'm running squid diskd on my proxy machines and I want to be able to use freebsd-update. > Squid diskd requires the following options set in the kernel (example from daemon news > http://ezine.daemonnews.org/200209/squid.html) > > options SYSVMSG > > options MSGMNB=8192 # max # of bytes in a queue > options MSGMNI=40 # number of message queue identifiers > options MSGSEG=512 # number of message segments per queue > options MSGSSZ=64 # size of a message segment > options MSGTQL=2048 # max messages in system > > I guess that updating that custom kernel will be a problem for freebsd-update, so is that > possible to set those values at boot? (I believe SYSVMSG is in GENERIC by default). You should be able to set these via /boot/loader.conf which will let you just use a GENERIC kernel. Run: sysctl kern.ipc to find the OID names and then just put eg: kern.ipc.msgmnb=8192 into loader.conf (plus all the other tunables you want to change) and reboot. For the gory details, look at /usr/src/sys/kern/sysv_msg.c --- I can't find any actual documentation mentioning these OIDs but my reading of the code suggests that is how it is meant to work. Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGWW4Z8Mjk52CukIwRCPSTAJwOC14nviduEXerQbsHW1YsumtVBACcDltH yrFMw2UGAPBmG4NKh828G/k= =zGWU -----END PGP SIGNATURE-----