From owner-cvs-all@FreeBSD.ORG Fri Dec 30 13:42:27 2005 Return-Path: X-Original-To: cvs-all@freebsd.org Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4613816A41F; Fri, 30 Dec 2005 13:42:27 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23E4243D5F; Fri, 30 Dec 2005 13:42:25 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 8392952CB5; Fri, 30 Dec 2005 14:42:23 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id DE49552C88; Fri, 30 Dec 2005 14:42:16 +0100 (CET) Date: Fri, 30 Dec 2005 14:42:15 +0100 From: Pawel Jakub Dawidek To: John Baldwin Message-ID: <20051230134215.GE779@garage.freebsd.pl> References: <200512301145.jBUBj7fW043290@repoman.freebsd.org> <200512300815.57417.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h56sxpGKRmy85csR" Content-Disposition: inline In-Reply-To: <200512300815.57417.jhb@freebsd.org> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern kern_malloc.c src/sys/sys malloc.h src/sys/vm memguard.c memguard.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 13:42:27 -0000 --h56sxpGKRmy85csR Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 30, 2005 at 08:15:56AM -0500, John Baldwin wrote: +> On Friday 30 December 2005 06:45 am, Pawel Jakub Dawidek wrote: +> > pjd 2005-12-30 11:45:07 UTC +> > +> > FreeBSD src repository +> > +> > Modified files: +> > sys/kern kern_malloc.c +> > sys/sys malloc.h +> > sys/vm memguard.c memguard.h +> > Log: +> > Improve memguard a bit: +> > - Provide tunable vm.memguard.desc, so one can specify memory type +> > without changing the code and recompiling the kernel. +> > - Allow to use memguard for kernel modules by providing sysctl +> > vm.memguard.desc, which can be changed to short description of mem= ory +> > type before module is loaded. +>=20 +> You don't actually need a sysctl for this case. You can use kenv to set= a=20 +> tunable after boot but before loading the module to achieve the same pur= pose. =20 +> E.g. 'kenv vm.memguard.desc=3DFOO' will work and TUNABLE_FETCH will fin= d it=20 +> during a subsequent kldload. Just FYI. But I need to control vm.memguard.desc change to be able to detect if memory type has allocated memory already, etc. and eventually deny the change. AFAIK it won't be possible with kenv. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --h56sxpGKRmy85csR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDtTk3ForvXbEpPzQRAjOeAJ0QbOk9yp82d/Ct9J5TzDfy93IjlACgt0nS DbcryuBLrK+Mhc8Vw5vZPzQ= =f3cA -----END PGP SIGNATURE----- --h56sxpGKRmy85csR--