From owner-freebsd-arm@FreeBSD.ORG Thu Aug 22 13:19:23 2013 Return-Path: Delivered-To: freebsd-arm@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 ESMTP id B69F0ACE for ; Thu, 22 Aug 2013 13:19:23 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 4913E2C71 for ; Thu, 22 Aug 2013 13:19:22 +0000 (UTC) Received: by mail-ee0-f46.google.com with SMTP id c13so908804eek.19 for ; Thu, 22 Aug 2013 06:19:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:message-id:date:from:organization:user-agent :mime-version:to:cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=a2u/HKgLzstls5n/dtyFEsBKj6FjQwxGQWi6TJzH0yM=; b=eyPRC24Cz8bqW7NhzEaQIiCBInqRuMJbpJymEY4xUAlNBRCr/bs/gLnOLtdqrfxK/o oqgCK3tld0JenxwB7pl3ilxHqATSItlJdAWgfsC47YM7CHxLB6Fdk95vL1eAN/AuZ+j1 Ginw1PwDwdTj2BZDrk4RcbQQRV/6Ht5SlGQft0124Cl/1Qs0vIAfW0rgMaWxVKsyPR35 1Ze/PT834449vMPLS9O2gwhHtGKeJ3pskIR/GA74Eb180AqX7yG+QD3RFzDDR72X01Wm /Yyou/7pWE01brjmClGCfrkOxzwF00hY7WHyAv6Y+w42g8HxZSotvx8MHyw4dAg/W3mR 6Tuw== X-Gm-Message-State: ALoCoQmNwyMuyGCeYkJ3e+4ZQq97Y4jy5vWY3FYIvEPD7UlBdbP40UbdIdUcSW9oPNb3m0CAUz0Z X-Received: by 10.14.174.195 with SMTP id x43mr18856215eel.47.1377177555569; Thu, 22 Aug 2013 06:19:15 -0700 (PDT) Received: from [10.0.2.117] (cardhu.semihalf.com. [213.17.239.108]) by mx.google.com with ESMTPSA id j7sm8316305eeo.15.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 22 Aug 2013 06:19:14 -0700 (PDT) Message-ID: <52160FD1.7030302@semihalf.com> Date: Thu, 22 Aug 2013 15:19:13 +0200 From: Zbyszek Bodek Organization: Semihalf User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130803 Thunderbird/17.0.8 MIME-Version: 1.0 To: freebsd-arm@FreeBSD.org Subject: Re: Introduction to the superpages support for ARMv6/v7 References: <5214EAE6.6040300@semihalf.com> In-Reply-To: <5214EAE6.6040300@semihalf.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Alan Cox X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Aug 2013 13:19:23 -0000 On 21.08.2013 18:29, Zbyszek Bodek wrote: > Hello Everyone, > > I'm happy to announce the preliminary patch adding superpages > support for ARMv6/v7 platforms. > > This code is the core part of the "Superpages for ARMv7" project, > sponsored by both Semihalf and The FreeBSD Foundation and developed with > the great support of Alan Cox. > > We'd like to commit these changes before the feature freeze. > Therefore, we would greatly appreciate if you could test the patch on > your ARM-based platforms and send us your feedback as soon as possible. > In addition, please send your remarks and comments if there are any. > > Please check out this location: > http://people.freebsd.org/~raj/patches/arm/superpages/ > > and files: > * 0001-Introduce-preliminary-superpages-support-for-ARMv6-v.patch > - patch based on revision 254596 > * GUPS.tar.gz > - (Giga Updates Per Second) benchmark that can be used to do a quick > preview of the functionality. > > In order to enable superpages utilization one needs to set 'sp_enabled' > sysctl variable (in src or loader). Without that, the kernel is supposed > to work as it was without SP even so the reservation based allocation > mechanism is enabled. > > One can observe superpages statistics using: > sysctl vm.pmap.section > > We have tested this on Armada XP in SMP environment but the presented > support should work on any ARMv6/v7 platform. > > After committing this code we will send a separate e-mail summing up > this work and covering more details. > Hello again, Please check out the updated patch: http://people.freebsd.org/~raj/patches/arm/superpages/0001-Introduce-preliminary-superpages-support-for-ARMv6-v.patch Short info: - Unified SP related functions names to contain _section suffix instead of _superpage. This is to keep the names in sync with sysctl variables, existing functions and for future development when 64KB superpages arrive. - Removed redundant code - We will also add missing pv_chunk list initialization in the separate commit but here this change included to the overall patch. Best regards Zbyszek Bodek