Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1144039imm; Wed, 1 Aug 2018 10:55:33 -0700 (PDT) X-Google-Smtp-Source: AAOMgpflVU5+uMUbfeUhjbzXatjgp2ajsbZaFdXsAOEkE0dhmeUuYobTiqxA6D0jOA5u7ww1qOVr X-Received: by 2002:a17:902:82c7:: with SMTP id u7-v6mr25577262plz.83.1533146133842; Wed, 01 Aug 2018 10:55:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533146133; cv=none; d=google.com; s=arc-20160816; b=eMo3yfk39G696DqpsTN4LB9N7vNmZUGJmC/C7WnD0DkZ+gw4HrOTj4jDPFQehcII9+ tAlPXroTV1QYU/T24cLiyvMWdT/VWkpn3MsasuBEK4Q0p+9nabLsdOHWfrDaXwNJfzD7 IIkHyXdrYLGE3UhAxzLhye1YXdFMavvQBEOA0ckkU3/g//KFMaeeERW7C71f1J0zsI4d M8DoslCxzwHFgJ4q/zMOiMehfh11zX73oPvYAUKl4g/s/B2JnOhI/jD47X/ncpvp1Rfz r00yGIK9FHkq/8ipB3CTtgbJUskUFlQrnCDz1J/Mvl1gtjwGtsTTKXdWQSdoC/DKbIjd Qh0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=0yg9XFy5qhhUk0IDg1bCJxgjXEmfdIfGOMi25KRZiS4=; b=R3N2Mf6Vsezy/loLTuj+59FIi49HXNDMrxvFmpZ02rVlS5/Pzr3FWHEvUkZP12ZAkz SgtHPCaXY3jAJZocfdWaCbmUTxXh1m8jVUbDo78wBU1o2mFsavOaJwq3TfGExVxtCBBD T/USe9LZL2es6DAP+0SaQiPnwrOgu62lw/2XM3H6GbGN4cE8HMl9konTAs4t7t1qZVgU u7+FzhyxCW5xRvNqVIuvc86DHVo5AJviKpwEYTVGM6Y3kJhW8ysCgPbc+IXMIHkZUXpX mCZ0ylGtWmrWx0NMBOF9XFNpUBQeJOhchk73dn0tGWBP8GD/csPr9KsrOC3mkTj61oI8 BmyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=BJmCFHyA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y123-v6si18642392pfc.302.2018.08.01.10.55.19; Wed, 01 Aug 2018 10:55:33 -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=@google.com header.s=20161025 header.b=BJmCFHyA; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405563AbeHATkr (ORCPT + 99 others); Wed, 1 Aug 2018 15:40:47 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:39700 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405537AbeHATkq (ORCPT ); Wed, 1 Aug 2018 15:40:46 -0400 Received: by mail-pf1-f193.google.com with SMTP id j8-v6so8229422pff.6 for ; Wed, 01 Aug 2018 10:53:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=0yg9XFy5qhhUk0IDg1bCJxgjXEmfdIfGOMi25KRZiS4=; b=BJmCFHyAwqmRQAbmc8vEVB9SrH4Wiei873HAMVo4ZS5q7AydSM8q1DnzZoPS6c6uWA ZqI6CHO0/QMpjFRpbhu1ge9OCOTcJX5BfIF89aeN0wFLYTfBduwWZuTbQdLU8zUew5bD 3cssIqboxnLUJJK+QIKURqbcDZLbYDDk0LQoZv4DryTlHvXkA1sMYWewe5gLKtELIV9G d7AdnCRwLI2b9ObJTyxZQ/6nipIqhuuvNA37G+VW+srO/23e+iXqJn18z91CQKTa5wVd w3yGRJH1QgKBxZpstFug/4bV1SNEDwb39SIrIxUrymUowC1bScNigukR6R4911wQaoSX PNPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=0yg9XFy5qhhUk0IDg1bCJxgjXEmfdIfGOMi25KRZiS4=; b=tZmdwvCFDHh5Rxf6JfSiVuA07YYpJnG1zdNqmmjUgAj4QAi4eXSwo1L+dRe1/Zx0CM PWTAEhcPULivde3w1cooySUxv1HU2OpOTw/whtub935Ev0ZBj63/sWsEsd9v2LE3Fujm UbreQJ/0yrBqDbY10AfJJIYSYu+/ockzlz11zE2B0CB978ifpPX+NmoJC33LSWr+pzY7 KMms4FE0BGiabN/b/t26t85x+Skk2zGsCix0GYqc+HaefyJJtJfeg7xu3DHr266Y+oiO ZbyJL9yIFVS4qWDs5H7j9hDsDoDH5wuf2/k2wP9FIuYUQUZdI29d7V7KsZXeeYElsAk6 oGmQ== X-Gm-Message-State: AOUpUlHsnOPL/p88Vg3eE/xRQKa8RiISuVxyVYh9ReVDONH6NqSvjdA+ kax1rrMWvZEin0ZKxZLftSdUJNZq5Zpb/hrR0zrHrQ== X-Received: by 2002:a63:743:: with SMTP id 64-v6mr26056249pgh.216.1533142067634; Wed, 01 Aug 2018 09:47:47 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:90a:ac14:0:0:0:0 with HTTP; Wed, 1 Aug 2018 09:47:26 -0700 (PDT) In-Reply-To: References: <01000164f169bc6b-c73a8353-d7d9-47ec-a782-90aadcb86bfb-000000@email.amazonses.com> <30ee6c72-dc90-275a-8e23-54221f393cb0@virtuozzo.com> <01000164f60f3f12-b1253c6e-ee57-49fc-aed8-0944ab4fd7a2-000000@email.amazonses.com> <01000164f64bd525-be13e04f-18a9-4f7f-a44b-0c0fcec33b71-000000@email.amazonses.com> From: Dmitry Vyukov Date: Wed, 1 Aug 2018 18:47:26 +0200 Message-ID: Subject: Re: SLAB_TYPESAFE_BY_RCU without constructors (was Re: [PATCH v4 13/17] khwasan: add hooks implementation) To: Eric Dumazet Cc: Christopher Lameter , Eric Dumazet , Andrey Ryabinin , Linus Torvalds , "Theodore Ts'o" , Jan Kara , linux-ext4@vger.kernel.org, Greg Kroah-Hartman , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , David Miller , NetFilter , coreteam@netfilter.org, netdev , Gerrit Renker , dccp@vger.kernel.org, Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , intel-gfx , DRI , Alexey Kuznetsov , Hideaki YOSHIFUJI , Ursula Braun , linux-s390 , LKML , Andrew Morton , linux-mm , Andrey Konovalov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 1, 2018 at 6:25 PM, Eric Dumazet wrote: > On 08/01/2018 09:22 AM, Christopher Lameter wrote: >> On Wed, 1 Aug 2018, Eric Dumazet wrote: >> >>> The idea of having a ctor() would only be a win if all the fields that >>> can be initialized in the ctor are contiguous and fill an integral >>> number of cache lines. >> >> Ok. Its reducing code size and makes the object status more consistent. >> Isn't that enough? >> > > Prove it ;) > > I yet have to seen actual numbers. Proving with numbers is required for a claimed performance improvement at the cost of code degradation/increase. For a win-win change there is really nothing to prove.