Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752165AbcDZODZ (ORCPT ); Tue, 26 Apr 2016 10:03:25 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:33581 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751974AbcDZODW (ORCPT ); Tue, 26 Apr 2016 10:03:22 -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> From: Wincy Van Date: Tue, 26 Apr 2016 22:02:59 +0800 Message-ID: Subject: Re: [PATCHv7 00/29] THP-enabled tmpfs/shmem using compound pages To: Andres Lagar-Cavilla 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: 726 Lines: 22 On Mon, Apr 25, 2016 at 9:30 PM, Andres Lagar-Cavilla wrote: >> >> 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. > OK. We are also using mmap. Besides google's kvm userspace(as I know it is not qemu), google have another userspace tool need to access guest memory, so that google use tmpfs? If so, what function does that another userspace do? Thanks, Wincy