From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 30 06:04:40 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 9BF28106567F for ; Mon, 30 Jun 2008 06:04:40 +0000 (UTC) (envelope-from thespin@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 7198F8FC1A for ; Mon, 30 Jun 2008 06:04:40 +0000 (UTC) (envelope-from thespin@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1393529rvf.43 for ; Sun, 29 Jun 2008 23:04:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=BkKrk+JaQzv1jYrQxw9d/hidxKThPtlIhcb+e1hpCq8=; b=uY+wbPpcTlI9qjMV78OmcdnGWGudJ6q/yDX/qO4jZxu3jhXbEG4asCizs08qgA+44g Vg0uak2Ev9AQSGjq1Ovy8RGPh8sj4wCnE0JOhjBc6AcC/kZUXSveceyADOPEeIEo1nlE wXnuJ3KfNnpeqOLhAkUK66l45+IQkABZiLMQ0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=i2llLCf/l+5uKvIRHvQhrBykK1kChiF8AWiesyvdPDPNw6dPQkUFNMMtq6xHN7xX5D wiUkt3r+6xCdvW7oEbogm1xYY+euHzMt3KNrP24kX0YLmF/oWlOj760GLmaDP0C2lj/D IskcsWM+UkI76+bEP5Fjt7V814ZQ53jPe1QaI= Received: by 10.141.163.12 with SMTP id q12mr2365875rvo.265.1214804265800; Sun, 29 Jun 2008 22:37:45 -0700 (PDT) Received: by 10.140.126.10 with HTTP; Sun, 29 Jun 2008 22:37:45 -0700 (PDT) Message-ID: <4f1862640806292237g4797a9b4y33a2d70a009639b@mail.gmail.com> Date: Sun, 29 Jun 2008 22:37:45 -0700 From: "Evan Geller" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Recursive case in uma? 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: Mon, 30 Jun 2008 06:04:40 -0000 Hey, I'm writing a small hobby operating system and I'm looking to the UMA for inspiration. The part I don't understand is the recursive case in uma_zone_slab(). I'm curious where the memory for vm_map_entries actually come from if the slabs are all full. It would appear that the null returned by uma_zone_slab() just carries all the way up and there's a fixed upper limit of vm_map_entries... or that I don't understand the way the uma works. Would someone mind clearing this up for me? Thanks a ton for the help! Evan