From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 12 01:34:06 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AADE45D7; Wed, 12 Mar 2014 01:34:06 +0000 (UTC) Received: from esa-jnhn.mail.uoguelph.ca (esa-jnhn.mail.uoguelph.ca [131.104.91.44]) by mx1.freebsd.org (Postfix) with ESMTP id 16A2CEAA; Wed, 12 Mar 2014 01:34:05 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqAEANy4H1ODaFve/2dsb2JhbABahBiDBr5MgS90gk9WNQINGQJfiAywMqBtF4EpjH80gnaBSQSqcoNJIYFu X-IronPort-AV: E=Sophos;i="4.97,634,1389762000"; d="scan'208";a="104597444" Received: from muskoka.cs.uoguelph.ca (HELO zcs3.mail.uoguelph.ca) ([131.104.91.222]) by esa-jnhn.mail.uoguelph.ca with ESMTP; 11 Mar 2014 21:32:31 -0400 Received: from zcs3.mail.uoguelph.ca (localhost.localdomain [127.0.0.1]) by zcs3.mail.uoguelph.ca (Postfix) with ESMTP id AD66FB3EE4; Tue, 11 Mar 2014 21:32:31 -0400 (EDT) Date: Tue, 11 Mar 2014 21:32:31 -0400 (EDT) From: Rick Macklem To: Freebsd hackers list Message-ID: <829240556.20994461.1394587951698.JavaMail.root@uoguelph.ca> Subject: kernel memory allocator: UMA or malloc? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [172.17.91.209] X-Mailer: Zimbra 7.2.1_GA_2790 (ZimbraWebClient - FF3.0 (Win)/7.2.1_GA_2790) Cc: Garrett Wollman X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Mar 2014 01:34:06 -0000 Hi, I've been working on a patch provided by wollman@, where he uses UMA instead of malloc() to allocate an iovec array for use by the NFS server's read. So, my question is: When is it preferable to use UMA(9) vs malloc(9) if the allocation is going to be a fixed size? Thanks in advance for any info, rick