From owner-freebsd-arch@FreeBSD.ORG Tue Mar 3 00:12:28 2015 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B460C55A; Tue, 3 Mar 2015 00:12:28 +0000 (UTC) Received: from mail-yh0-x22a.google.com (mail-yh0-x22a.google.com [IPv6:2607:f8b0:4002:c01::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6DAE9E2D; Tue, 3 Mar 2015 00:12:28 +0000 (UTC) Received: by yhzz6 with SMTP id z6so16540643yhz.5; Mon, 02 Mar 2015 16:12:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ZBOXDfpNH5/5TPuolhIszIGBiZQ9Scrk+w26AthIBXI=; b=hzHH1Ax+VVK3VnnsIM0Px/H3t+Y7EoNT7eSS0ONS8Rfj3UA9HryauuikdHt2jbia+f NbxA/9cSaBYxJs+xao9865xQUSZqADpF6iU78sZep+2AokKcSNDWYl/m6WzYViF+2oPb nViIuXYSazbDhFVBgTZRyoXDQ+JesbXkhIM882jFE4uMwBhcrIMUbVnUdm6C0WJ47Va6 PnnN1mLp4yEr3VupJusW3+seB+qjpRUrBQTJoy9sGFd34qBc+hUZpfqZ3a2z7R59eab0 F5WINDu/7N9deIHen71+EoAgAmIabUszFY/SKMzmSP4P0vkC05nlXDux5tI1iAjQQiMr AkEg== MIME-Version: 1.0 X-Received: by 10.236.25.68 with SMTP id y44mr28269936yhy.4.1425341547450; Mon, 02 Mar 2015 16:12:27 -0800 (PST) Sender: kmacybsd@gmail.com Received: by 10.170.76.66 with HTTP; Mon, 2 Mar 2015 16:12:27 -0800 (PST) In-Reply-To: References: Date: Mon, 2 Mar 2015 16:12:27 -0800 X-Google-Sender-Auth: MSiKnxdPMREYCl4AuzX1lBOFQh0 Message-ID: Subject: Re: Doing zero-copy stuff in drivers, or "is vm_fault_quick_hold_pages() enough" ? From: "K. Macy" To: Adrian Chadd Content-Type: text/plain; charset=UTF-8 Cc: freebsd-current , "freebsd-arch@freebsd.org" X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 00:12:28 -0000 >> Right above vm_page_hold(): >> /* >> * Keep page from being freed by the page daemon >> * much of the same effect as wiring, except much lower >> * overhead and should be used only for *very* temporary >> * holding ("wiring"). >> */ > > What's the definition of "very temporary holding" ? What's the > behavioural difference? Long enough to complete a DMA operation versus the lifetime of an executing program.