From patchwork Mon Aug 26 11:16:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vlastimil Babka X-Patchwork-Id: 11114407 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C914618B7 for ; Mon, 26 Aug 2019 11:17:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A7834206B7 for ; Mon, 26 Aug 2019 11:17:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731188AbfHZLQn (ORCPT ); Mon, 26 Aug 2019 07:16:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:60034 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726497AbfHZLQn (ORCPT ); Mon, 26 Aug 2019 07:16:43 -0400 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 84FD5AC26; Mon, 26 Aug 2019 11:16:41 +0000 (UTC) From: Vlastimil Babka To: Andrew Morton , linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, Christoph Lameter , Pekka Enberg , David Rientjes , Ming Lei , Dave Chinner , Matthew Wilcox , "Darrick J . Wong" , Christoph Hellwig , linux-xfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, James Bottomley , linux-btrfs@vger.kernel.org, Vlastimil Babka Subject: [PATCH v2 0/2] guarantee natural alignment for kmalloc() Date: Mon, 26 Aug 2019 13:16:25 +0200 Message-Id: <20190826111627.7505-1-vbabka@suse.cz> X-Mailer: git-send-email 2.22.1 MIME-Version: 1.0 Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org After a while, here's v2 of the series, also discussed at LSF/MM [1]. I've updated the documentation bits and expanded changelog. Also measured effect on SLOB, and found it to be within noise. That required first adding some accounting for SLOB, which I believe is useful in general, so that became Patch 1. All other details are in Patch 2 changelog. [1] https://lwn.net/Articles/787740/ Vlastimil Babka (2): mm, sl[ou]b: improve memory accounting mm, sl[aou]b: guarantee natural alignment for kmalloc(power-of-two) Documentation/core-api/memory-allocation.rst | 4 ++ include/linux/slab.h | 4 ++ mm/slab_common.c | 19 +++++- mm/slob.c | 62 +++++++++++++++----- mm/slub.c | 14 ++++- 5 files changed, 82 insertions(+), 21 deletions(-)