From owner-cvs-src@FreeBSD.ORG Tue Mar 27 18:20:18 2007 Return-Path: X-Original-To: cvs-src@freebsd.org Delivered-To: cvs-src@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D053216A403 for ; Tue, 27 Mar 2007 18:20:18 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 773FB13C4C3 for ; Tue, 27 Mar 2007 18:20:18 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so2456951ana for ; Tue, 27 Mar 2007 11:20:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=ejhdbVUnhMx44XkylRTrbKBzIo0RpGFGNRYGnX5irmmOUpyGgghdxlRjMh9kv1JGsCd67vbcycycfeKOjpbTkhgFIv3jdlGKWPsy2JcAPMC5yxypb+tHGPNWAoDvvi6rEJE61VbE3lOWdqmWztlcP/J/yvaTLUBnVIepmRdYMR0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=f1IMDkg+bIWg46i15lOSW1GmDG7w2ums+EvWrxya6eavYpx4EsGiWPLQGoxDarASRs7eriXSWQCUZcTPQaN88J4g2GhwQiO5BQy2Q1W/jyUeeYA6WTXYmwQ8pNESfKb17dTBNRe4DeOIsoAXtsOYyPEHEcmLi5CwWx9LSKAFuRo= Received: by 10.100.10.20 with SMTP id 20mr6192733anj.1175019617441; Tue, 27 Mar 2007 11:20:17 -0700 (PDT) Received: by 10.100.191.1 with HTTP; Tue, 27 Mar 2007 11:20:17 -0700 (PDT) Message-ID: <3bbf2fe10703271120p4c33230dpbcfc2d72164113e9@mail.gmail.com> Date: Tue, 27 Mar 2007 20:20:17 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "John Baldwin" In-Reply-To: <200703271651.l2RGpZfv012442@repoman.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200703271651.l2RGpZfv012442@repoman.freebsd.org> X-Google-Sender-Auth: 8fcad9e7416475f4 Cc: cvs-src@freebsd.org, src-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/kern init_main.c kern_thread.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2007 18:20:18 -0000 2007/3/27, John Baldwin : > jhb 2007-03-27 16:51:34 UTC > > FreeBSD src repository > > Modified files: > sys/kern init_main.c kern_thread.c > Log: > Align 'struct thread' on 16 byte boundaries so that the lower 4 bits are > always 0. Previously we aligned threads on a minimum of 8-byte boundaries. > > Note: This changes the uma zone to no longer cache align threads. We > really want the uma zone to do align threads to MAX(16, cache line size) > but there currently isn't a good way to express that to uma. We can workaround it using a function like: int uma_get_align(void) (which would be the counter part of uma_set_align). Its implementations is trivial. Attilio -- Peace can only be achieved by understanding - A. Einstein