From owner-freebsd-arm@FreeBSD.ORG Wed Aug 21 16:36:27 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 6B381C2F for ; Wed, 21 Aug 2013 16:36:27 +0000 (UTC) (envelope-from zbb@semihalf.com) Received: from mail-ee0-f51.google.com (mail-ee0-f51.google.com [74.125.83.51]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 000D5283C for ; Wed, 21 Aug 2013 16:36:26 +0000 (UTC) Received: by mail-ee0-f51.google.com with SMTP id c1so387392eek.24 for ; Wed, 21 Aug 2013 09:36:25 -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:content-type:content-transfer-encoding; bh=z6INDIzIttxE6wRSAA9AAqp5lPZb1vmiVqozY8pzuNg=; b=F8stn/sbsuj8jSsy4R62/qqzhnC6jwaaPwQO98lK7jUSrkDZtRPTEroCU+r3Cs37m1 jD4PuoYvrSxD9U4hsCUM+UfGL0p5KtjOGkrRnd6DtB1TBvcZzeV/rGKY0c1lLdh8sfRT RhcgSSDjVyzcrRAEaar+kMemu/N8cVGPtc4LMaYm08viCeevyIfEwMPVAhwF9jvPVpI2 U2OnQabFWQBFzoKS+bhbY+n/0K2AXxbHhgddyJid5y00lelwoB3dGTcU98mrs8OJl5Vk 0Bxt0FsQJCzeDLgnyETKleNHCQnzF8L+6JgXmdLY8FpIQ90ylbNvVO7AYTmLn95c3FiI fPmA== X-Gm-Message-State: ALoCoQkM6IJ2wItBPLpx94x+ZTkIBSDaAjOnl4lRkb1Qmt2QqJiur/zO9AeRrX+mzSC/ur8ywOql X-Received: by 10.14.88.65 with SMTP id z41mr11531382eee.38.1377102570082; Wed, 21 Aug 2013 09:29:30 -0700 (PDT) Received: from [10.0.2.117] (cardhu.semihalf.com. [213.17.239.108]) by mx.google.com with ESMTPSA id z12sm10965108eev.6.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 21 Aug 2013 09:29:29 -0700 (PDT) Message-ID: <5214EAE6.6040300@semihalf.com> Date: Wed, 21 Aug 2013 18:29:26 +0200 From: Zbyszek Bodek Organization: Semihalf User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: freebsd-arm@FreeBSD.org Subject: Introduction to the superpages support for ARMv6/v7 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: Wed, 21 Aug 2013 16:36:27 -0000 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. Best regards Zbyszek Bodek