From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp06.au.ibm.com (e23smtp06.au.ibm.com [202.81.31.148]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e23smtp06.au.ibm.com", Issuer "GeoTrust SSL CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 841572C0389 for ; Wed, 6 Mar 2013 17:10:38 +1100 (EST) Received: from /spool/local by e23smtp06.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 6 Mar 2013 16:05:44 +1000 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [9.190.234.120]) by d23dlp03.au.ibm.com (Postfix) with ESMTP id 1186C3578050 for ; Wed, 6 Mar 2013 17:10:35 +1100 (EST) Received: from d23av04.au.ibm.com (d23av04.au.ibm.com [9.190.235.139]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r265vwQq1769820 for ; Wed, 6 Mar 2013 16:57:58 +1100 Received: from d23av04.au.ibm.com (loopback [127.0.0.1]) by d23av04.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r266AY8w014123 for ; Wed, 6 Mar 2013 17:10:34 +1100 From: "Aneesh Kumar K.V" To: benh@kernel.crashing.org, paulus@samba.org Subject: [PATCH -V2 00/26]T HP support for PPC64 Date: Wed, 6 Mar 2013 11:40:01 +0530 Message-Id: <1362550227-575-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Hi, This patchset adds transparent huge page support for PPC64. TODO: * ppc64 KVM related changes * powernv still doesn't boot * hash preload support in update_mmu_cache_pmd Some numbers: The latency measurements code from Anton found at http://ozlabs.org/~anton/junkcode/latency2001.c THP disabled 64K page size ------------------------ [root@llmp24l02 ~]# ./latency2001 8G 8589934592 731.73 cycles 205.77 ns [root@llmp24l02 ~]# ./latency2001 8G 8589934592 743.39 cycles 209.05 ns [root@llmp24l02 ~]# THP disabled large page via hugetlbfs ------------------------------------- [root@llmp24l02 ~]# ./latency2001 -l 8G 8589934592 416.09 cycles 117.01 ns [root@llmp24l02 ~]# ./latency2001 -l 8G 8589934592 415.74 cycles 116.91 ns THP enabled 64K page size. ---------------- [root@llmp24l02 ~]# ./latency2001 8G 8589934592 405.07 cycles 113.91 ns [root@llmp24l02 ~]# ./latency2001 8G 8589934592 411.82 cycles 115.81 ns [root@llmp24l02 ~]# We are close to hugetlbfs in latency and we can achieve this with zero config/page reservation. Most of the allocations above are fault allocated. I haven't really measured the collapse alloc impact. Another test that does 50000000 random access over 1GB area goes from 2.65 seconds to 1.07 seconds with this patchset. Changes from V1 * Address review comments * More patch split * Add batch hpte invalidate for hugepages. Changes from RFC V2: * Address review comments * More code cleanup and patch split Changes from RFC V1: * HugeTLB fs now works * Compile issues fixed * rebased to v3.8 * Patch series reorded so that ppc64 cleanups and MM THP changes are moved early in the series. This should help in picking those patches early. Thanks, -aneesh