Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3849007imu; Mon, 14 Jan 2019 10:05:24 -0800 (PST) X-Google-Smtp-Source: ALg8bN7nokE4Cu+lS+UyqTqC4jpaAAwHA+u2v/Xool/JCMY9uGjyfjHhwgziaIPNXddYQ/xnnDH+ X-Received: by 2002:a63:5f89:: with SMTP id t131mr24341374pgb.26.1547489124036; Mon, 14 Jan 2019 10:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547489124; cv=none; d=google.com; s=arc-20160816; b=x/EKd1qr4km1vqnT27an2xiv48inBPhzbaW1eAxtLjivnyOuZqfKMQB4fhfsz9BIkh 19gBHxFX/gc3e+TIN2rDRIfOUXo8dn5l7SP0Yc612BGhfZjQlodySiVZJ7+ELS2U8NA/ AX1I4o+aA01o3fLW6VsLUws32nzbOgFGuB8wH5vZWop7Y2mtUhB7soy8JR+8EIjqMIaT V/P9VNEcClR5zL3+rHzYhyB9T9l9ONz6nOX4/nhX9ZW2zUcM0giFX0jEdVKd7lsZ8c56 yKnl7hXSnj1HPtwDRlvKj2c4oUYPWkmEvECWXId5v5FnUOrDoNw2mzwSdnq3VgN4o8iF mILw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=bNgxujiWf2GtDEavwQ9wM2N6WSOQfpaP85GvTFRLp0o=; b=F10RZ5FppVcx7yQzXvYUsRIW3yVfzTs+E+6T/0FNXtRsUlMc7jfYUSkC3aRDLebwEl ACK+5xWOwlTWibnl6JYRZCEhplUtw7lKU/NdkHPP5RCl67gFFyWvORbzgQhc9Im3Piqj K1J74eHDv5kZEDoMo8+JvFjPZOfFUVZz0llJmd8MHHsRGdJGZmK92TvjcqFvuiHKIbsh 39VnZE+b8Abo4QtqGc+QUwXmYRQF2elcQQn22H7aF/Vesa/qdTCn5gG1bGC9mr8yFU6q GQNsodbvJcfkevEg5szNkGSz9e/KluuSEt1njBg3LS1lhEkMsv8xOSCWh88CGf9mOZo7 BgJg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si795544pla.75.2019.01.14.10.05.07; Mon, 14 Jan 2019 10:05:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726783AbfANSCd (ORCPT + 99 others); Mon, 14 Jan 2019 13:02:33 -0500 Received: from mx2.suse.de ([195.135.220.15]:37036 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726643AbfANSCd (ORCPT ); Mon, 14 Jan 2019 13:02:33 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3B830AE7A; Mon, 14 Jan 2019 18:02:32 +0000 (UTC) Date: Mon, 14 Jan 2019 19:02:30 +0100 From: Michal Hocko To: "Harrosh, Boaz" Cc: "Kirill A. Shutemov" , Mike Kravetz , "Kirill A. Shutemov" , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Hugh Dickins , Dan Williams , Matthew Wilcox , Toshi Kani , Andrew Morton Subject: Re: [RFC PATCH] mm: align anon mmap for THP Message-ID: <20190114180230.GN21345@dhcp22.suse.cz> References: <20190111201003.19755-1-mike.kravetz@oracle.com> <20190111215506.jmp2s5end2vlzhvb@black.fi.intel.com> <20190114135001.w2wpql53zitellus@kshutemo-mobl1> <20190114164004.GL21345@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon 14-01-19 16:54:02, Harrosh, Boaz wrote: > Michal Hocko wrote: [...] > >> We run with our own compiled Kernel on various distros, THP is configured > >> in but mmap against /dev/shm/ never gives me Huge pages. Does it only > >> work with unanimous mmap ? (I think it is mount dependent which is not > >> in the application control) > > > > If you are talking about THP then you have to enable huge pages for the > > mapping AFAIR. > > This is exactly what I was looking to achieve but was not able to do. Most probably > a stupid omission on my part, but just to show that it is not that trivial and strait > out-of-the-man-page way to do it. (Would love a code snippet if you ever wrote one?) Have you tried mount -t tmpfs -o huge=always none $MNT_POINT ? It is true that man pages are silent about this but at least Documentation/admin-guide/mm/transhuge.rst has an information. Time to send a patch to man pages I would say. -- Michal Hocko SUSE Labs