From owner-cvs-src@FreeBSD.ORG Wed Mar 28 14:24:41 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 65FC516A407 for ; Wed, 28 Mar 2007 14:24:41 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.234]) by mx1.freebsd.org (Postfix) with ESMTP id 0CEAC13C489 for ; Wed, 28 Mar 2007 14:24:40 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by wr-out-0506.google.com with SMTP id 70so1634111wra for ; Wed, 28 Mar 2007 07:24:39 -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=P7lE3n3gD4YEeQUyAfGx+OWfynalR49VHsquaNc/usXwpAl9AcAP7VmKa5DT7brnQ0J/8922DkwOEIFxbdBMllpH1GYwDlXBRRgimiJa7D0eUqAk+LER/pZ+0lJPzDaubVLSYGiryQVMdbP6GhI10wv+PtOC+V5tNTx9AzlihEc= 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=SYotgqj6fbKG4WaR7u+DZtrI05oV4MIQaxJm9FCjrocqggD+outyhAXS9MrwkMaSDkgllH+GsLIoWhD9/QiHHIuIHNlkT3dl9TwUdgYgMZBun5FNHXsP+uYJOjhQma3g9tRe0NlQkWK88Y163QMnGKcO0FcnxcizVyvJDoKAfp0= Received: by 10.100.214.8 with SMTP id m8mr227197ang.1175091878528; Wed, 28 Mar 2007 07:24:38 -0700 (PDT) Received: by 10.100.191.1 with HTTP; Wed, 28 Mar 2007 07:24:38 -0700 (PDT) Message-ID: <3bbf2fe10703280724h3d59f3d8t159c2997d84cb950@mail.gmail.com> Date: Wed, 28 Mar 2007 16:24:38 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "John Baldwin" In-Reply-To: <3bbf2fe10703271120p4c33230dpbcfc2d72164113e9@mail.gmail.com> 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> <3bbf2fe10703271120p4c33230dpbcfc2d72164113e9@mail.gmail.com> X-Google-Sender-Auth: 5631164c129e601e 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: Wed, 28 Mar 2007 14:24:41 -0000 2007/3/27, Attilio Rao : > 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. I have a diff for that: http://users.gufi.org/~rookie/works/patches/uma2.diff I had no time to sync my branches with last HEAD changes, so I can't fix uma_zcreate() call... just adding the uma_get_align() function. Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein