Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932798AbcDYNaF (ORCPT ); Mon, 25 Apr 2016 09:30:05 -0400 Received: from mail-yw0-f179.google.com ([209.85.161.179]:35513 "EHLO mail-yw0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932616AbcDYNaC (ORCPT ); Mon, 25 Apr 2016 09:30:02 -0400 MIME-Version: 1.0 In-Reply-To: References: <1460766240-84565-1-git-send-email-kirill.shutemov@linux.intel.com> <571565F0.9070203@linaro.org> <20160419165024.GB24312@redhat.com> Date: Mon, 25 Apr 2016 06:30:01 -0700 Message-ID: Subject: Re: [PATCHv7 00/29] THP-enabled tmpfs/shmem using compound pages From: Andres Lagar-Cavilla To: Wincy Van Cc: Andrea Arcangeli , "Shi, Yang" , "Kirill A. Shutemov" , Hugh Dickins , Andrew Morton , Dave Hansen , Vlastimil Babka , Christoph Lameter , Naoya Horiguchi , Jerome Marchand , Sasha Levin , Ning Qu , "linux-kernel@vger.kernel.org" , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1202 Lines: 37 On Sat, Apr 23, 2016 at 10:46 PM, Wincy Van wrote: > On Wed, Apr 20, 2016 at 1:07 AM, Andres Lagar-Cavilla > wrote: >> Andrea, we provide the, ahem, adjustments to >> transparent_hugepage_adjust. Rest assured we aggressively use mmu >> notifiers with no further changes required. >> >> As in: zero changes have been required in the lifetime (years) of >> kvm+huge tmpfs at Google, other than mod'ing >> transparent_hugepage_adjust. > > We are using kvm + tmpfs to do qemu live upgrading, how does google > use this memory model ? > I think our pupose to use tmpfs may be the same. Nothing our of the ordinary. Guest memory is an mmap of a tmpfs fd. Huge tmpfs gives us naturally a great guest performance boost. MAP_SHARED, and having guest memory persist any one given process, are what drives us to use tmpfs. Andres > > And huge tmpfs is a really good improvement for that. > >> >> As noted by Paolo, the additions to transparent_hugepage_adjust could >> be lifted outside of kvm (into shmem.c? maybe) for any consumer of >> huge tmpfs with mmu notifiers. >> > > Thanks, > Wincy -- Andres Lagar-Cavilla | Google Kernel Team | andreslc@google.com