-----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-----
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to