Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp4046681pxy; Tue, 4 May 2021 16:40:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzuZW5DA1T/qjrl3XWxqX+EQgUdAnSHH1ptGDE8CBQHmmHtyLZBe/YW0v0MG0JRwlQ5bWG X-Received: by 2002:a17:906:3952:: with SMTP id g18mr24512772eje.104.1620171639208; Tue, 04 May 2021 16:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620171639; cv=none; d=google.com; s=arc-20160816; b=hHzbPSaJot+vzTY6L9DOvr2frNLJTpIg6DunnwWvtSljvvbTZ7UElt3ierCG4L93+u es/jJ31+iWvobaHpJpCCqcSSjnX0jGbfcg5wisRwwEZt6s/sYHlwM07g4Zvn55b9yxi6 C/byCJ72ruc/qyruqydgxw+YSsFuj6nh0FjTdBjO5ewf56LbZs/VM5V40eTw7CrZWbsy a+wgus/OT93qTb81sMtiVSAfNPn6YfKFJnAUW3WFrPTLTangDK+T5UXXQu9WFt90H+2p zzk5nG+s3SQQf31zMw5vdnXgwImFxYxmFftMi9hL5MvVEiR+6ZPjnfP4V3L+bJFfTwZf JNpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=PvfEJxx8T5Gfb4a+lHvIlRpfFqDd/U5kxfg9D9O09eY=; b=nza80cUVeBDYuOUFPn7Y3r5YPqWuUsQUeDI64yQJfoF+fikYzBJBxfcCmTHqoLGoC5 E02q4hzR0z39XLq6XHlAToUWJt+oWUq26IIwQw72uZXViJeOhceGqvfJ/kY6kH/hYYAa zAxllAUPre6tmkGzMBqPtqpf484nhaiD/NWMzJg2jcRyAOwGI9BrlAw4cTFHgM4fIKLy BLPx72z1QOVwumw+frLzmJ5yfhHsXIZZybI+p3H9eCfx3kGgvgbcaA3Yk/iUM2T4V7Od k1SeaKqCKf6m1oVilZt2IoKZasJRSGfyHNqZOGFqD1Wu4G6FLgUiuqzD0QakEDVxZ1yK CqNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m1si4468231ejj.42.2021.05.04.16.40.09; Tue, 04 May 2021 16:40:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231126AbhEDXG3 (ORCPT + 99 others); Tue, 4 May 2021 19:06:29 -0400 Received: from mail-yb1-f169.google.com ([209.85.219.169]:39530 "EHLO mail-yb1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230475AbhEDXG3 (ORCPT ); Tue, 4 May 2021 19:06:29 -0400 Received: by mail-yb1-f169.google.com with SMTP id z1so230534ybf.6 for ; Tue, 04 May 2021 16:05:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=PvfEJxx8T5Gfb4a+lHvIlRpfFqDd/U5kxfg9D9O09eY=; b=iQgdt7g+Lq7U6bEq7BsRpjV3hoIlERNFZrC9yLZfqsq9wVTlGzCBX6OQ7uT5LCBf/o T2kVHbp1IuD3oqTOQnTtX+ZoNeqP88eGkvqa4mrjtVitbnHSuYuySxwzr7XZfBp//4CM kzSSyU1x6K/GBBEorJp98eor9yvZfCQFkrr/7efTfAo0ZR5yNsQlHX6uacURPWP3eBfG bDns/cbkalcVbqvlvSCTuTzfJD57S+d2dVN1pkCIqsjewYJMOK0YGNT5FXBPhszkLIC8 1QqxkgXbgMlgEGIOul+PrQJWgIZSCpHeuzXzv8wxDdRR7GRyb6akI/F1mdj4ZirmwNcw IR8A== X-Gm-Message-State: AOAM533MKCZGojZ7zh39VRWaZyMO98Q/kgvfpFQS5dzstsTQ6E4LhfKL wKKEs642M1onpLDOyZJ58/tu1nzXC1AX6PPCiYw= X-Received: by 2002:a25:bc08:: with SMTP id i8mr36987237ybh.146.1620169533255; Tue, 04 May 2021 16:05:33 -0700 (PDT) MIME-Version: 1.0 References: <1c5e05fa-a246-9456-ff4e-287960acb18c@redhat.com> In-Reply-To: From: Greg Stark Date: Tue, 4 May 2021 19:04:56 -0400 Message-ID: Subject: Re: Very slow clang kernel config .. To: "Theodore Ts'o" Cc: "Maciej W. Rozycki" , Linus Torvalds , Tom Stellard , Nick Desaulniers , Masahiro Yamada , Nathan Chancellor , Linux Kernel Mailing List , clang-built-linux , Fangrui Song , Serge Guelton , Sylvestre Ledru Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 3 May 2021 at 10:39, Theodore Ts'o wrote: > > That was because memory was *incredibly* restrictive in those days. > My first Linux server had one gig of memory, and so shared libraries > provided a huge performance boost --- because otherwise systems would > be swapping or paging their brains out. (I assume you mean 1 megabyte?) I have 16G and the way modern programs are written I'm still having trouble avoiding swap thrashing... This is always a foolish argument though. Regardless of the amount of resources available we always want to use it as efficiently as possible. The question is not whether we have more memory today than before, but whether the time and power saved in reducing memory usage (and memory bandwidth usage) is more or less than other resource costs being traded off and whether that balance has changed. > However, these days, many if not most developers aren't capable of the > discpline needed to maintained the ABI stability needed for shared > libraries to work well. I would argue you have cause and effect reversed here. The reason developers don't understand ABI (or even API) compatibility is *because* they're used to people just static linking (or vendoring). If people pushed back the world would be a better place. -- greg