From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qk0-f199.google.com (mail-qk0-f199.google.com [209.85.220.199]) by kanga.kvack.org (Postfix) with ESMTP id 2CE3B6B0292 for ; Fri, 2 Jun 2017 10:32:20 -0400 (EDT) Received: by mail-qk0-f199.google.com with SMTP id d14so27189965qkb.0 for ; Fri, 02 Jun 2017 07:32:20 -0700 (PDT) Received: from resqmta-ch2-12v.sys.comcast.net (resqmta-ch2-12v.sys.comcast.net. [2001:558:fe21:29:69:252:207:44]) by mx.google.com with ESMTPS id q5si22963115qkb.137.2017.06.02.07.32.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 07:32:19 -0700 (PDT) Date: Fri, 2 Jun 2017 09:32:15 -0500 (CDT) From: Christoph Lameter Subject: Re: 4.12-rc ppc64 4k-page needs costly allocations In-Reply-To: Message-ID: References: <87h9014j7t.fsf@concordia.ellerman.id.au> Content-Type: text/plain; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Hugh Dickins Cc: Michael Ellerman , "Aneesh Kumar K.V" , linuxppc-dev@lists.ozlabs.org, linux-mm@kvack.org On Thu, 1 Jun 2017, Hugh Dickins wrote: > Thanks a lot for working that out. Makes sense, fully understood now, > nothing to worry about (though makes one wonder whether it's efficient > to use ctors on high-alignment caches; or whether an internal "zero-me" > ctor would be useful). Use kzalloc to zero it. And here is another example of using slab allocations for page frames. Use the page allocator for this? The page allocator is there for allocating page frames. The slab allocator main purpose is to allocate small objects.... -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org