Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp836726img; Wed, 20 Mar 2019 11:56:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoFDgN4MKz9mGRUca+9cABYcctsPObKw0RGOXPYHISpgOVPWX1kToEeo8aCKivLhJX5gQs X-Received: by 2002:a63:d453:: with SMTP id i19mr8796636pgj.237.1553108161607; Wed, 20 Mar 2019 11:56:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553108161; cv=none; d=google.com; s=arc-20160816; b=ptOuZLqWHOPdBf/dY3viNAbPlIompsfapIa+DRvaWzmbw7DY3pGVh7r06d2OeXwAVf b7a18yVbppyE5Cwu9Zcub13N9QlXQEzdntvsHYLHQD2bc7FH2veG4dW0qGeeFVvl0tkx dI78xxxUA885mOy72i/QqygpZaK06AutGETXDX8ik0uh5ldvHE22vYOnAiTAEPFyu/D+ IRI3VkZAb1IF7bKpxxVcGmDxhAKHokQvGnz2wTJfbEbu1aTt76U6kInceP47GaqZ74nA 3QpqqFH6GZyKX13LzFKFBN1Zh62c9dyC1WPWx9nT5x3rcfcsXyiCebotrTpPWUpnVL+5 O62A== 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:dkim-signature; bh=19J+W7mnzMxofEiVeKGPeMBVF0b3b1HaVTXfNyGBA6g=; b=DWJ4GuA3leUtSpFuKsZJuHJ57FnyANzZeLwPxwhOVPtCmnabD4Dqbu+sfFKYanqxGH yYU0i6PXTNo7fZiWukipqOOrpSCJ7Ryam4o265Qm5+ulu8DEv3nha4gcv6kcXVJI2XtL Mss9HwQSEA2NQHrmZ6uq+hwgjE2l+YQ3oj4qZqAO64hyT84d6v2lOE/F4LjGhkoNV33I uyrpGObOfC+68WpTyqd7sRm3te2PSSxF4ufDgnLSZhbCdLaL7dutvrXny+5IPGERD6mS po17+gdPHXdx5UMDwL6enPRig21ssGSmf7K5eF9znDT0hfwXcpjZr512DvdbbwkdrB7P T8sQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E4Zgc0H9; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h7si1578010pfb.167.2019.03.20.11.55.46; Wed, 20 Mar 2019 11:56:01 -0700 (PDT) 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; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=E4Zgc0H9; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727504AbfCTSx5 (ORCPT + 99 others); Wed, 20 Mar 2019 14:53:57 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:42168 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbfCTSx4 (ORCPT ); Wed, 20 Mar 2019 14:53:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=19J+W7mnzMxofEiVeKGPeMBVF0b3b1HaVTXfNyGBA6g=; b=E4Zgc0H9T3r8B3MviIDF03WoP /HtoUhhrOcbhOuSMgLsAiKywl8ntQbDZot9vppf3j1ZhHpVBs8dBIQ+oWlbfzGvq5ObJh4Zm9ITRK vBPhCnuJwODhSL3923phSEgySz2SifsDpBDvrPjW7w+MfMhUJaeEZRRYe8BlvgkZSoP2j+rNaios8 3nZY5KR49A3NzOIBdLirAG6u0jdT3wQ7vhHSsb0x3QE2zJrLQ4MHfWLLdwqszN8zzsZKoufs611n+ KwwrABaK4gxbwmNaB1W67rg3wMhahYvPxzOj4YmP7rhOMbilxpFfL5OSCcgC31pQSYkueD/rH6MIa meexl8+1A==; Received: from willy by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1h6gLT-0000z4-IC; Wed, 20 Mar 2019 18:53:47 +0000 Date: Wed, 20 Mar 2019 11:53:47 -0700 From: Matthew Wilcox To: Vlastimil Babka Cc: Christopher Lameter , linux-mm@kvack.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Ming Lei , Dave Chinner , "Darrick J . Wong" , Christoph Hellwig , Michal Hocko , linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org Subject: Re: [RFC 0/2] guarantee natural alignment for kmalloc() Message-ID: <20190320185347.GZ19508@bombadil.infradead.org> References: <20190319211108.15495-1-vbabka@suse.cz> <01000169988d4e34-b4178f68-c390-472b-b62f-a57a4f459a76-000000@email.amazonses.com> <5d7fee9c-1a80-6ac9-ac1d-b1ce05ed27a8@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5d7fee9c-1a80-6ac9-ac1d-b1ce05ed27a8@suse.cz> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 20, 2019 at 09:48:47AM +0100, Vlastimil Babka wrote: > Natural alignment to size is rather well defined, no? Would anyone ever > assume a larger one, for what reason? > It's now where some make assumptions (even unknowingly) for natural > There are two 'odd' sizes 96 and 192, which will keep cacheline size > alignment, would anyone really expect more than 64 bytes? Presumably 96 will keep being aligned to 32 bytes, as aligning 96 to 64 just results in 128-byte allocations.