From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 10 20:12:46 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 1D3EBA59; Wed, 10 Apr 2013 20:12:46 +0000 (UTC) (envelope-from sebastian.n.feld@gmail.com) Received: from mail-ie0-x229.google.com (mail-ie0-x229.google.com [IPv6:2607:f8b0:4001:c03::229]) by mx1.freebsd.org (Postfix) with ESMTP id DE3E77EE; Wed, 10 Apr 2013 20:12:45 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id ar20so678968iec.14 for ; Wed, 10 Apr 2013 13:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=yMGzvgZ/Hc8ITmCKeDFsLwFhjVMtFX2GTqGS77h2ifw=; b=jCN6X9CXQSU3lTxPBmkDtlE64M4RcNevDfkWMoKzzIMZmT0/1pGwm9TiFEvXtSK0mq Ghl2gj+ujDJC8pdlzZ6QuJWmIKq60yg581pNLAqOg89KjFB3OY7utR0ZroEOk/f5WOmB rb8UqsIhuLhi4JwaQMhlzmlJB1TLxVpUiYIEYOvr+chrly+CgDkxWjUdZCfvQZLZJWfc odULnP7vqDTbvuAzzz7BkpAFBLzlrrsGrFlau/KfqqKj2V+cFnC3GesXe1WDmRLQoteK dE/Nhat491zumlVCZDHX26Z2f8ezHGjj3c9iEudzV6kvDTVsPxOflNq7fLwKlpwdQvb1 ezsA== MIME-Version: 1.0 X-Received: by 10.50.155.134 with SMTP id vw6mr14413561igb.34.1365624765637; Wed, 10 Apr 2013 13:12:45 -0700 (PDT) Received: by 10.42.101.20 with HTTP; Wed, 10 Apr 2013 13:12:45 -0700 (PDT) In-Reply-To: References: <201304101006.13960.jhb@freebsd.org> Date: Wed, 10 Apr 2013 22:12:45 +0200 Message-ID: Subject: Re: Multiple page size support on FreeBSD? From: Sebastian Feld To: Wojciech Puchar Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, Benjamin Kaduk X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Apr 2013 20:12:46 -0000 On Wed, Apr 10, 2013 at 7:49 PM, Wojciech Puchar wrote: >> How do your tests work? Do you examine PTEs directly to check for >> superpages >> or are you relying on the vm.pmap.pde sysctls? > > > the later. > > anyway - algorithm described on list - that heuristics detects consecutive > page access doesn't really help the urgent case - RANDOM access to large > amount of memory. > > sequential access will get minimal improvement. > > IMHO the only way that really make sens is to add options to madvise to give > kernel information about usage. Solaris has an API to control the usage for large pages, search for MPSS - multiple page size support. It consists of APIs in madvise, and /usr/bin/pagesize -a to list all available page sizes, and other stuff. Since this has been established since at least Solaris 9 (and 10) and is used by database and HPC software, it might be a good starting point.