Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1476042imm; Fri, 29 Jun 2018 20:12:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKui4esVQLfdL+u/ZveWB2Jqs+gOotQ9csp2YsHmomCY2BhW+8t6J2vOTrGgIIkAx86X/Gc X-Received: by 2002:a17:902:903:: with SMTP id 3-v6mr17186968plm.106.1530328369591; Fri, 29 Jun 2018 20:12:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530328369; cv=none; d=google.com; s=arc-20160816; b=yDA8k8rbz6RAkzXY0R8tmRkbFDTWEUVVyB+KzL+qHwWqha4FboLRxJpoUuwoMqrznm 8Erz4kA2mxnb+a+uHC6knANxbUdShodNVgwb4W5c919c+NLBOYxRMhVTGw6W5dyZoIdp Y41ZLAa4yGY8N6F6mWzDLfXFCgJQuY+zI+7eL6xmRMkzHwuBDsGBR9SaGe25p6oGfPPU YcUj7YSFbcqEXJOme4JQe8VIt/YjvLOSgv3YB5D1ULa9bsUjXIdpu9fEE2aI6/YgfkG7 ZvyAJzE2CdHfvCdNhMW5Kj0HnAZP5enwVYixC8eUr/+5hm1JzlZvSrM+5VBs3hrY/uIJ Yjtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=s2CQUmDM1zbVVL40Gwppye+UDbCZuy9hcyQJLCobxwE=; b=RuCMsVLTv+uZsnUrVJ6fHJGN5PRMyf5MsdqEHxgasvPEtOZq5FINOpZNTXSbM1Wvum votbCHDX7KGcgiatvvKMoz3MdGCJ+2HGCsDdUPQJbo2HCc9EprSuTb3vvP6GskHmc3Hi he2S4slAia0mFbgcOCmgJfjRFNPQLVE7XzHMGmb+G7Dec4nJpmD+EV13JxCAf000iNYy JItMqv2WAHfykAd8cm0iImqdm6xToWqCd/LnZ2YlnF4KbvCX24zpP7+Qz2WIhOhr9IGh XFjJ17jP4Tx348L7U+jvbuS3R8EaZuWNwyvPXhIcbHhQrc/HLj7+gN97AbyD5FOUXfwl F7uA== ARC-Authentication-Results: i=1; mx.google.com; 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 n6-v6si10758028pla.12.2018.06.29.20.12.34; Fri, 29 Jun 2018 20:12:49 -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; 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 S965800AbeF3ClX (ORCPT + 99 others); Fri, 29 Jun 2018 22:41:23 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:60594 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936522AbeF3ClU (ORCPT ); Fri, 29 Jun 2018 22:41:20 -0400 Received: from localhost.localdomain (c-24-4-125-7.hsd1.ca.comcast.net [24.4.125.7]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D67C6AF3; Sat, 30 Jun 2018 02:41:18 +0000 (UTC) Date: Fri, 29 Jun 2018 19:41:17 -0700 From: Andrew Morton To: Andrey Konovalov Cc: Andrey Ryabinin , Alexander Potapenko , Dmitry Vyukov , Catalin Marinas , Will Deacon , Christoph Lameter , Mark Rutland , Nick Desaulniers , Marc Zyngier , Dave Martin , Ard Biesheuvel , "Eric W . Biederman" , Ingo Molnar , Paul Lawrence , Geert Uytterhoeven , Arnd Bergmann , "Kirill A . Shutemov" , Greg Kroah-Hartman , Kate Stewart , Mike Rapoport , kasan-dev , linux-doc@vger.kernel.org, LKML , Linux ARM , linux-sparse@vger.kernel.org, Linux Memory Management List , Linux Kbuild mailing list , Kostya Serebryany , Evgeniy Stepanov , Lee Smith , Ramana Radhakrishnan , Jacob Bramley , Ruben Ayrapetyan , Jann Horn , Mark Brand , Chintan Pandya Subject: Re: [PATCH v4 00/17] khwasan: kernel hardware assisted address sanitizer Message-Id: <20180629194117.01b2d31e805808eee5c97b4d@linux-foundation.org> In-Reply-To: References: <20180627160800.3dc7f9ee41c0badbf7342520@linux-foundation.org> <20180628124039.8a42ab5e2994fb2876ff4f75@linux-foundation.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 29 Jun 2018 14:45:08 +0200 Andrey Konovalov wrote: > >> What kind of memory consumption testing would you like to see? > > > > Well, 100kb or so is a teeny amount on virtually any machine. I'm > > assuming the savings are (much) more significant once the machine gets > > loaded up and doing work? > > So with clean kernel after boot we get 40 kb memory usage. With KASAN > it is ~120 kb, which is 200% overhead. With KHWASAN it's 50 kb, which > is 25% overhead. This should approximately scale to any amounts of > used slab memory. For example with 100 mb memory usage we would get > +200 mb for KASAN and +25 mb with KHWASAN. (And KASAN also requires > quarantine for better use-after-free detection). I can explicitly > mention the overhead in %s in the changelog. > > If you think it makes sense, I can also make separate measurements > with some workload. What kind of workload should I use? Whatever workload people were running when they encountered problems with KASAN memory consumption ;) I dunno, something simple. `find / > /dev/null'?