Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 May 2007 15:49:36 +0300
From:      Angelin Lalev <lalev@uni-svishtov.bg>
To:        Matthew Seaman <m.seaman@infracaninophile.co.uk>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: is it possible to set the following IPC options at boot insteadof hard-coding them in kernel
Message-ID:  <5e0316781cd9062d86dbe4d197165551@uni-svishtov.bg>
In-Reply-To: <46596E19.2030302@infracaninophile.co.uk>
References:  <46596E19.2030302@infracaninophile.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Thanks, it worked!

On Sun, 27 May 2007 12:40:09 +0100, Matthew Seaman <m.seaman@infracaninophile.co.uk> wrote:
> -----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-----




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