From owner-freebsd-hackers@FreeBSD.ORG Fri Feb 8 07:38:29 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8EB5116A419 for ; Fri, 8 Feb 2008 07:38:29 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 573A613C448 for ; Fri, 8 Feb 2008 07:38:29 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 2E3331CD2A; Fri, 8 Feb 2008 08:36:49 +0100 (CET) Date: Fri, 8 Feb 2008 08:36:49 +0100 From: Ed Schouten To: Pietro Cerutti Message-ID: <20080208073649.GB94844@hoeg.nl> References: <47AB6B9E.1090605@gahr.ch> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="7iMSBzlTiPOCCT2k" Content-Disposition: inline In-Reply-To: <47AB6B9E.1090605@gahr.ch> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Hackers Subject: Re: uma_zcreate and number of items to create X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Feb 2008 07:38:29 -0000 --7iMSBzlTiPOCCT2k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Pietro Cerutti wrote: > Before starting to hack it, I would like to know what you think about > it. Do you find it useful or not? I was thinking about this as well, because my TTY hackery could also use this to preallocate cblocks to store characters from interrupts, but then you could also just keep a free list to store them. You need to allocate them anyway, so the space is already wasted. Using your own per-{device,object,etc} free list should even be faster, because uma probably has some per-zone spinlock, while you may not need the locking in your specific situation (i.e. another lock already protects it). --=20 Ed Schouten WWW: http://g-rave.nl/ --7iMSBzlTiPOCCT2k Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkesBpEACgkQ52SDGA2eCwVumgCfdfAsco9CiceyPOcSX5KYKyIW Pq0AniyerMLAYY1VOHaiFDaqTYtZi7r7 =Ura5 -----END PGP SIGNATURE----- --7iMSBzlTiPOCCT2k--