From patchwork Tue Nov 13 15:16:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uladzislau Rezki X-Patchwork-Id: 10680947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8D9BE139B for ; Tue, 13 Nov 2018 15:16:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7ADF8287AF for ; Tue, 13 Nov 2018 15:16:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EA992AAF7; Tue, 13 Nov 2018 15:16:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 58D7E287AF for ; Tue, 13 Nov 2018 15:16:46 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 09E136B0269; Tue, 13 Nov 2018 10:16:45 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 023E66B026A; Tue, 13 Nov 2018 10:16:44 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E56C36B026B; Tue, 13 Nov 2018 10:16:44 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by kanga.kvack.org (Postfix) with ESMTP id 76C9C6B0269 for ; Tue, 13 Nov 2018 10:16:44 -0500 (EST) Received: by mail-lj1-f200.google.com with SMTP id f5-v6so3939020ljj.17 for ; Tue, 13 Nov 2018 07:16:44 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:dkim-signature:from:to:cc:subject:date :message-id; bh=8f4Y+bYP0IHrIhe0KgEhOVgrFrseLN9aiG8Be9nh9K0=; b=jAV16XIATWifissyXFv1QulY9JX6z80CQAEAgCUL7BDUc8t6/XBDZMhq5AsIv/gK/B iXnwIFzfTn9JLz920GDnFfpaL59A0XK1uX+i4taJ7IO0WcrVgh0qHAci1bqP3pSyUQKY P26mBRgQ6f1/YlplbwqFHHjV2nItwey8886WyzzUSPp/0O25PZPf7B+6jETNVcbb0dGM vFXFPmSa5F/BO3e/vHYcfwo4v93hkCaqIw7FUcD6usfhBcWsDmIQ7x1EQb6qQ7upn8hw K0OOQiuusVFzFnaelgQvOVxvJvgg3FrzsXnmeDc6j8J6o2MVMg0NOnlRIXrzNs/UGqko /2/Q== X-Gm-Message-State: AGRZ1gI/YEhfypYrEOQsrlFiibnCsnnvMvs+j1PPjVKym7zyJ1ejtA6c bYDc0FlPKUHbecCBIjrpS4hUGm85H47jgL5VbZDjVixCZ09uxt3ZpPgeDeDIFrf22noBcB/IUHu UYYOolWp/uqUTOF8uzLbQzLwMwcSbhPK0qOS+2sjzark6BWn2DkiJouF43bg9Bh58SH51TA6HBI Tnr+31QtzGZrBJhU27yShvn43SkGgMKdJNXjtZZv+Q3lsxH+2H573SCXjEtTaTq07FgfnoXiwkw nj0anwyRiwIUEjyH5XRud/40Ke39cOsdy6wfhEly76oN0TRw8tzZcBTqZOmCNNuGybq66sJQlm5 UADMb1hXpi+gEP2VpH0WogLG2NfXSb91Y5+cozHJLsptg4Mwbcv7buA9L9zx6MXCO5MEaGSR4/a h X-Received: by 2002:a2e:890b:: with SMTP id d11-v6mr3283614lji.113.1542122203661; Tue, 13 Nov 2018 07:16:43 -0800 (PST) X-Received: by 2002:a2e:890b:: with SMTP id d11-v6mr3283584lji.113.1542122202640; Tue, 13 Nov 2018 07:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542122202; cv=none; d=google.com; s=arc-20160816; b=LkodSehof1iyYv36YDe+SUb/8pF10Iw/jzDcHQAdd4N5pGOdSLC2Mr2cuOZtsxoxjY M+j+zHOuNJHBh6MyBu2HUON3hjKdQf4v2ueeB8i3jqExAiRNSBP/I0ClpvR93OGvMHhc 9fTJrGud1jNQJwNCRO/U1gVUwLF0h874PUB27kngEuCYBDFOtlBqn9oXiA+w4p2/RvR6 ca6JoKdO4iKVKyJ0ZDtYbLbtpGha44q+Rj9SBsB+b0cXg42f+IvM3tahd06w5WEvCoyG 3whDWC3boyS7JR8NJcNOOC+Bq4kuIbA4ouFrK50Ov9PHinQb14STfOzRkQIhCm8Bk/jG OkYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:dkim-signature; bh=8f4Y+bYP0IHrIhe0KgEhOVgrFrseLN9aiG8Be9nh9K0=; b=jDM1Xs/52XvCkc5aUnHEAUVdCRz/BDJxtB1OFGdsmH+1ncC4guEMaJwFXW/JJA3c+T szwPuL5xDAQbCojgfylD3d/1/3QdfBISQS8xLmENgn4qEFubqbIukDqfRbbdrl5Jga6Z bvwlv1/UX09bj4PFrxHseca67/Xy5FQ2Z1N4hXZL+QVEJ9tzk8SWZiZahKH+VL5CB9F/ 0f3Rxp8Vf8xiv8ys8GPE6inQd49q9r24qR5LoOMd6XCVkMGn/cj8mo5GkKlfOqbZXYui 7NjxNuMPIU6iezsBOCQmZI6UBdIpjIig88xOJ28zPS33MNu+KEZBlGeSqHLV12k7X5dX u34g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ca0rLqwq; spf=pass (google.com: domain of urezki@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h143sor2830493lfg.54.2018.11.13.07.16.42 for (Google Transport Security); Tue, 13 Nov 2018 07:16:42 -0800 (PST) Received-SPF: pass (google.com: domain of urezki@gmail.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ca0rLqwq; spf=pass (google.com: domain of urezki@gmail.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=urezki@gmail.com; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=8f4Y+bYP0IHrIhe0KgEhOVgrFrseLN9aiG8Be9nh9K0=; b=Ca0rLqwqrfJFHLzxeOt0Lh60IFDYKhfytuYDW4eLnJYivRXKrpyLk4VE04A1/kPV+F zq2vEEzvfykQfIieWzppPyboTTtu+Xz9QUwA3t19zVcVMBtfGjJ905GVo4f5imna9vG7 iHDBo8mBMJ91LMZJAXQbeqnDF/bTF1CURnIN0hVFdrkE+95TUznxX16va6JMrmdpbDDc SG3MQb12P/X/aNWgUg0vqzag4rITXd/ThDFNa+wt4InlvRPtFn/ZCPvMJ5D8RY4+58t9 1NGJBFXJOXMCNPT14zoX+WtFZGTuJxrA60A17Z50K33puUiUfNJE20+ErIWAfb/BHDRM v5QQ== X-Google-Smtp-Source: AJdET5dLxG3QbphVgGXCANZq6pBpCZ7/rb3WmI+OmEqNB7CyGOQdyexaSir5UTBmqwUIXYaFpTHVCA== X-Received: by 2002:a19:2395:: with SMTP id j143mr3073136lfj.107.1542122201983; Tue, 13 Nov 2018 07:16:41 -0800 (PST) Received: from pc636.semobile.internal ([37.139.158.167]) by smtp.gmail.com with ESMTPSA id p91sm2645825lfg.4.2018.11.13.07.16.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 07:16:41 -0800 (PST) From: "Uladzislau Rezki (Sony)" To: Michal Hocko , Kees Cook , Shuah Khan , Andrew Morton , linux-mm@kvack.org Cc: LKML , Matthew Wilcox , Oleksiy Avramchenko , Thomas Gleixner , "Uladzislau Rezki (Sony)" Subject: [RFC PATCH 0/1] test driver to analyse vmalloc allocator Date: Tue, 13 Nov 2018 16:16:28 +0100 Message-Id: <20181113151629.14826-1-urezki@gmail.com> X-Mailer: git-send-email 2.11.0 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Hello. As an outcome of https://lkml.org/lkml/2018/10/19/786 discussion there was an interest in stress/performance test suite. It was developed to analyse a vmalloc allocator from performance, stability point of view and compare the new approach with current one. I have explained in the commit message in detail how to use this test driver, so please have look at: vmalloc: add test driver to analyse vmalloc allocator I think it is pretty easy and handy to use. I am not sure if i need to create kind of run.sh or vmalloc.sh in tools/testing/selftests/ to configure the test module over misc device or so to apply different configurations and trigger the test. This driver uses one internal function that is not accessible from the kernel module, thus as a workaround i use kallsyms_lookup_name("__vmalloc_node_range") to find the symbol. Also, i need to mention one thing here this test suite allowed me to identify some issues in current design. So please refer to the link i pointed above. Uladzislau Rezki (Sony) (1): vmalloc: add test driver to analyse vmalloc allocator lib/Kconfig.debug | 12 ++ lib/Makefile | 1 + lib/test_vmalloc.c | 543 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 556 insertions(+) create mode 100644 lib/test_vmalloc.c