Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp335657imm; Thu, 28 Jun 2018 21:33:15 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIwKinI3H9GGEkWG2v2SbZrL5rjObdpXqRcBIWwF16J+A3BYUqJcEhsSijTNa8pgz7SBzp5 X-Received: by 2002:a17:902:925:: with SMTP id 34-v6mr13370399plm.103.1530246795167; Thu, 28 Jun 2018 21:33:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530246795; cv=none; d=google.com; s=arc-20160816; b=Buv3kHxya0tFplRXoii01MCgBUc0Qdx/PD1/ANNdvd0KHbDmjvs9Jd2RRBA1/7ZpCW glkajYAktWjLT68o4tDVtvngMaNCUhXL3AtVcnwJ/EiVjPC7BMNBtWwlqM82TCK5605d 26fxsZf0KCqheysE2g9xn3fawTHlTCuFjN+cGSfzgMbde6BIxUIuXXVIYSzRP0GobSOm LWnlkosHQxL5ngT8tJJqjp7DEeh9M7c3QrkJY1lk+rAPLVQ79QkBg+yb0YuUNhYE9Ral 8/EHH0bU9ajnZxWNjcOFPXdgzNl7sIqj3lqV60DbXIIXci5hpZBGTMmuVBhJ6/3eF2at A9Tw== 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=tAMlsqNmujuVkR7bL8WpkKQ5Y3RLsGYGwLasoKop+oM=; b=oJLeft0uKy8oI/+j8moIrlhsVFx9UsMxixm5qoMGz5BRyIPZKrLRm3ILpkNeWXvEZB S9r4ScnqA7bpYpmDToF8AXrkA7kxT6/vdk2+sojEmDeRJYF05iHnJDO4TCsii9K+4lnx bBD82yS7NSGZSyk3gPwxy7KVModwBE10a4uybmD4XNvMhZBjaAkw60mVHhQ/WZrrsUKd Ww5CzXfS6hFYs+1aqJkuHpoisebUFfSW9+Oo/cKa9seMKDT3vzRuUy8KWYFCC7FJ+/RK GAiJICUEfE8W6nT5n88Z3uezjuCHy+1wfPFHC1k7wEdtzylDvqF2ME0kjeKxAUp5kSGz 8hCw== 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 n125-v6si7408959pga.376.2018.06.28.21.33.00; Thu, 28 Jun 2018 21:33:15 -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 S934443AbeF1Tkp (ORCPT + 99 others); Thu, 28 Jun 2018 15:40:45 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:40836 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934012AbeF1Tkm (ORCPT ); Thu, 28 Jun 2018 15:40:42 -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 BE797E21; Thu, 28 Jun 2018 19:40:40 +0000 (UTC) Date: Thu, 28 Jun 2018 12:40:39 -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: <20180628124039.8a42ab5e2994fb2876ff4f75@linux-foundation.org> In-Reply-To: References: <20180627160800.3dc7f9ee41c0badbf7342520@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 Thu, 28 Jun 2018 20:29:07 +0200 Andrey Konovalov wrote: > >> Slab memory usage after boot [2]: > >> * ~40 kb for clean kernel > >> * ~105 kb + 1/8th shadow ~= 118 kb for KASAN > >> * ~47 kb + 1/16th shadow ~= 50 kb for KHWASAN > >> > >> Network performance [3]: > >> * 8.33 Gbits/sec for clean kernel > >> * 3.17 Gbits/sec for KASAN > >> * 2.85 Gbits/sec for KHWASAN > >> > >> Note, that KHWASAN (compared to KASAN) doesn't require quarantine. > >> > >> [1] Time before the ext4 driver is initialized. > >> [2] Measured as `cat /proc/meminfo | grep Slab`. > >> [3] Measured as `iperf -s & iperf -c 127.0.0.1 -t 30`. > > > > The above doesn't actually demonstrate the whole point of the > > patchset: to reduce KASAN's very high memory consumption? > > You mean that memory usage numbers collected after boot don't give a > representative picture of actual memory consumption on real workloads? > > 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?