From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE72CC43387 for ; Mon, 14 Jan 2019 18:02:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7A244204EC for ; Mon, 14 Jan 2019 18:02:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1547488955; bh=GF1jJwfkpV96SWQQk2Kd2rYlek5ghsTdniIzi/zlv5o=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=O/wkBg9cSy2dxVXTlT3t4tzFRPNhetnfXVvd5h2+BEn0gWHnWW4u6oYKwY5maABjJ dYu2/CXNdwvJSL4CsMf4DmJaPrpMj9HXRsc6+VtNdjSsyN8LYKg+5eK46AqRhNFT// pxfOxIh+YPZpl/ZvIgUyTUAPCrdnk1sVunc5NM3E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726789AbfANSCd (ORCPT ); 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