From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 2 10:49:22 2012 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 B06DE1065672; Sat, 2 Jun 2012 10:49:22 +0000 (UTC) (envelope-from ivoras@gmail.com) Received: from mail-yw0-f54.google.com (mail-yw0-f54.google.com [209.85.213.54]) by mx1.freebsd.org (Postfix) with ESMTP id 40FF78FC25; Sat, 2 Jun 2012 10:49:22 +0000 (UTC) Received: by yhgm50 with SMTP id m50so2632380yhg.13 for ; Sat, 02 Jun 2012 03:49:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; bh=QCMJu3YgFR2tuAJhZ9+TB8qPM+cHSN6YGa7rnP6MjHM=; b=pjtQsRGK8CLDV0cP/s1XRNPjyUIlF37VZ6W47Nd3+7PnoPd3naVHBizTrjcEt+98zz T6L4hlKuvZBVl99/dTWLImauQdO0vKNiunkZ54MkItK6O0fLihQI7TvMdOc8YEevpncT +U+DQVncPbXxExXFqVTQ57n9NMuxNFJilVZoJOvDbq/hMkZB/RMB6hBKaBKIgQYogHWs rUE/2hqwPTq6+GgDIM73KZ+4i3Xi/6Ugdj5QbAqvAqoBfEoYEMHwl2w+9Po3fjLCd9jb POKL7EZtbZGbBWVfNGT/Up+bm4EFK4SSyevyPuWcYtamCWspMp7oUArbTsUiniDkEAcK 30xA== Received: by 10.236.181.229 with SMTP id l65mr1078093yhm.116.1338634161598; Sat, 02 Jun 2012 03:49:21 -0700 (PDT) MIME-Version: 1.0 Sender: ivoras@gmail.com Received: by 10.101.112.10 with HTTP; Sat, 2 Jun 2012 03:48:41 -0700 (PDT) In-Reply-To: References: <1073159468.20120602121458@serebryakov.spb.ru> <4FC9D420.6010203@FreeBSD.org> <4FC9D68D.60405@FreeBSD.org> From: Ivan Voras Date: Sat, 2 Jun 2012 12:48:41 +0200 X-Google-Sender-Auth: GgNuhwLgLeeXdIT7nqDsn9cqPmA Message-ID: To: Wojciech Puchar Content-Type: text/plain; charset=UTF-8 Cc: freebsd-hackers@freebsd.org, Florian Smeets , lev@freebsd.org Subject: Re: SuperPages utilization survey 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: Sat, 02 Jun 2012 10:49:22 -0000 On 2 June 2012 12:29, Wojciech Puchar wrote: >>> >> >> In my words i would say "It enables mysql to use super-pages/large-pages". > > i asked the question wrong. the right should be "how does it do". Because i > am not aware about any user level interface in FreeBSD to explicitly request > superpage mapping. You are right, there isn't any. The code in mysqld.cc only works if HAVE_SOLARIS_LARGE_PAGES is defined: 3229 #endif /* HAVE_LARGE_PAGES */ 3230 #ifdef HAVE_SOLARIS_LARGE_PAGES 3231 #define LARGE_PAGESIZE (4*1024*1024) /* 4MB */ 3232 #define SUPER_LARGE_PAGESIZE (256*1024*1024) /* 256MB */ 3233 if (opt_large_pages) 3234 { ... 3278 } 3279 #endif /* HAVE_SOLARIS_LARGE_PAGES */