Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp55589img; Tue, 19 Mar 2019 17:45:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqwppg8j0lxNWE2yP8Sqwo65sA9mpxsWAVBL//81iWy3gMHbw8wFt6nM7XXvjXKzPndF2gFo X-Received: by 2002:a62:e80f:: with SMTP id c15mr5177918pfi.93.1553042724588; Tue, 19 Mar 2019 17:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553042724; cv=none; d=google.com; s=arc-20160816; b=X8WBv7FyYJvLdwE8sBCxj+ydS1HcA1EvlL7+799gN9JcGd625+vElRjIEfZ6gTQRAd 4iyHsglvimsn7lw33ucwa4/BN7jL0l16MpQe73fmEqOWrMKn1XBi1eHuZrIqDHdRIrUq 0EPYeaib25fhftXNCE6R0TiminLNUM1Nlm+emeP1ME6nO3CuYSWHluhZfGRdV9OdmnMw qmyj/TpsoRXDyvo5WyeYW5L9hrOkeE4ihR8a0n8cayW/0R+0WMzOiDcUuX0qwUPQjEwf xkEBgurDl7d1f9xZsyQGe+/aXIlD6Dv1yNUHKaykjikOXQjcMyN77WB/2OCPFUGH0Fvz w38g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=l7GGzMPK2ZJjVEBw3exJiICCgYRKwnNAiKS5bg6nqGs=; b=P9zSHmU89thIpNR+2EPI9NFqxgSXhmrEmZWOGnFdK0HNGCLlJ2LCy8tqu75CQIxxQ2 EPhYW8FKEH7dfcrc7Wq4oGANCvIXhzftlPDNg77f8wOErfKo9nWrNrV8D2NvGsyE5KPs WSKulFt2HoZGyedByWIAFINd7hFDHhyoVcjI258hxvjJ+aKj2iCVxnFoDz5lbVYlyi1H k2yoPPIND+Ww2haEr6qc9lQZzYsFQIdAGcCwry9ei0+P4yUli4lJg4hYfD5W7b1FUkob nqgbS0l7bO2IZ7lruEJ5X0HzYqysGYDHE83HU7/Vfuox88LwXIat2xtq+i3dYygEcvu2 6ZrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=PlP4+RjH; 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 13si316351pgm.311.2019.03.19.17.45.08; Tue, 19 Mar 2019 17:45:24 -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=pass header.i=@amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=PlP4+RjH; 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 S1727304AbfCTAo1 (ORCPT + 99 others); Tue, 19 Mar 2019 20:44:27 -0400 Received: from a9-46.smtp-out.amazonses.com ([54.240.9.46]:56642 "EHLO a9-46.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725958AbfCTAo0 (ORCPT ); Tue, 19 Mar 2019 20:44:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1553042665; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=l7GGzMPK2ZJjVEBw3exJiICCgYRKwnNAiKS5bg6nqGs=; b=PlP4+RjHhS99d2viVKcqtgP13+3ae9Tceh7+ncOi1pmU/SV90eao0W6UVO4C/ysv bNKfYHD0TzHglvVEcijO11H/eX6miTYFt0JcCQdbZNOfnu9WN5xAD9dT4X/tJTX14dv btQifloIUFWP1UlOx8StJAo3W4BZdudfSoVgoHeA= Date: Wed, 20 Mar 2019 00:44:25 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Vlastimil Babka cc: linux-mm@kvack.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Ming Lei , Dave Chinner , Matthew Wilcox , "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 2/2] mm, sl[aou]b: test whether kmalloc() alignment works as expected In-Reply-To: <20190319211108.15495-3-vbabka@suse.cz> Message-ID: <01000169988e707d-e6a091d6-b04f-4774-89b0-61f985885ac8-000000@email.amazonses.com> References: <20190319211108.15495-1-vbabka@suse.cz> <20190319211108.15495-3-vbabka@suse.cz> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2019.03.20-54.240.9.46 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 19 Mar 2019, Vlastimil Babka wrote: > Quick and dirty init test that kmalloc() alignment works as expected for > power-of-two sizes after the previous patch. There is already an allocator testing function in mm/slub.c. Can you generalize it or portions and put the into mm/slab_common.c?