Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp787358pxj; Thu, 10 Jun 2021 12:46:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwO0JYAIX1nZLSvWIpePyH9iocKqEPK1qR/0NRE7qPBIBy8OBs3TFYytgKXMZlijY7GwtpY X-Received: by 2002:a05:6402:695:: with SMTP id f21mr153653edy.96.1623354386128; Thu, 10 Jun 2021 12:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623354386; cv=none; d=google.com; s=arc-20160816; b=LPMHmp5tRWtqTyIXtgDc6f3FcUnrh66VjVpcXZK8QZWgATuRAemRfLeJBvSF6uQR63 j5AcQ7buojRXk3taIvrVcfX4fLULc2d2petNO5y3kZYiRYao4w3A9AxcWmORhKTekGCT 2XHuJrWLQa95B+JZOsCyroDNVQWBaiSmwQAQwr8J2yaQKU+nzfRzyAWlrFTm8C2Zb8Ho AiQyTe+DE9jXbHpeShRH9hZH91q61TU7cxoLVzMYXg6I8CuWJK3OyHa/DsgREkAdOMK5 PEyLwxyG9nQSA7EfRlG8fzn6pF4BxCVmhmqvPq1D0YrhlETy3g7JjX1Yz0ej/vsQcEh/ 3Ywg== 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:dkim-signature; bh=45VPwdGqjIQ5wCNrWGGIfoD9uraRT5+Atyz+alwmg38=; b=P7zoMsnRJZ6ijirZBceqnISpsAaSdJtLz86pJnSFJR9PVc43DA2CENLPaQftPXSLul hYhuMQ4XaQmfhZscpjlradXFTicy60NbJQphh//6w8Xvr7cu+yFBE7kmR+u7E8PyxfWD 2c/39vdpnO7c58T+jb3PI2IDcrK8UZ9cYfQ79yWlo7U9fwu1deqtVvW6V6lh3fTBZG6a Pv0+YuPppdY72cqYa7IPWJSvx3Jj+/TtEMuZf8vM0Z88CgzDBbI3+S+1M49E5s7x3nqT 8CGxf/0+ddwk5hupAjH5MG+mVu+qWEeqcRDqzb9Qufwo6t1MDGueCK28Vr1AZlLg1Tjw fIog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=X5XJumtl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gy21si3158906ejb.8.2021.06.10.12.45.59; Thu, 10 Jun 2021 12:46:26 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=X5XJumtl; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230155AbhFJTrF (ORCPT + 99 others); Thu, 10 Jun 2021 15:47:05 -0400 Received: from mail-yb1-f177.google.com ([209.85.219.177]:43999 "EHLO mail-yb1-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbhFJTrF (ORCPT ); Thu, 10 Jun 2021 15:47:05 -0400 Received: by mail-yb1-f177.google.com with SMTP id b9so931946ybg.10 for ; Thu, 10 Jun 2021 12:45:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=45VPwdGqjIQ5wCNrWGGIfoD9uraRT5+Atyz+alwmg38=; b=X5XJumtlyeIp5HPzFMv/nxvx9JvtKffDFFV6O/lnyD5ZR+9p5P2VUaFv+EUJQyja2B I9j8zfUHK9W3A4/mQyMifOqryoycwEAYFLDIBcJ1M1UZ+zI1zn9AQY4bU+Q2WJ10saM6 BOJ7sQO6yzKyrlrWQ8LopHq9VFQa4kQRYSAzP4yRdwJmefGoSeGZh2I9ebgiM7JFnKzP Aoon5mYwjUo53jIRWIWEQT5W/OGfWeG+t/nxzbr0QBwLy9dSBDgSXwc6xj5EN1lHxswf WH01VrxLrnt143A2CXXVaw4J01eRqD5SuMZBlM5EE0obnCv7a+7Y8r7m3wofLF0sAjVL oNgQ== 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=45VPwdGqjIQ5wCNrWGGIfoD9uraRT5+Atyz+alwmg38=; b=SU8L2sKQDg9OgW899WnKMlowJjSQTQjHgoJHp7uE3XVBHkfxUDUzm8nopnEC6Na1C5 QBflddoB0z3QpWWv5kNbv+TlfLjZGv1EnUE20scv5RFW8cUHk2ONN+9K9tLZxsFVv2Ou 64uIFfXPEUNtP4SJPutBY3MwH3gnDiJYhmiayBylCZojsU4vWmAJF6qAFrGFBvyssCko YY7YlWjVoju5nkn30e4RKyY9HL6M3E5ALWDltnlkF7nlok3xOOf8CQWnV8TGNv/RbDwA Qe4fGc/NPMFjK77McL9juF7WsHMIQ/h29Zs5nneq+2Emg2G4uq19CiPZAcSO4lHypNxf +Uxg== X-Gm-Message-State: AOAM531E7rsiL/EXVGYvUbEcN6Y9aUp8/C1yiw/r+0jpxBT/sm4yDUgR sYGdw/cF/wcON72yNzf+mKyzRVUBWAonTS6kiQPyYw== X-Received: by 2002:a25:6409:: with SMTP id y9mr558728ybb.235.1623354247973; Thu, 10 Jun 2021 12:44:07 -0700 (PDT) MIME-Version: 1.0 References: <20210506193352.719596001@infradead.org> <20210506194157.452881700@infradead.org> In-Reply-To: From: Sami Tolvanen Date: Thu, 10 Jun 2021 12:43:56 -0700 Message-ID: Subject: Re: [PATCH 01/13] objtool: Rewrite hashtable sizing To: Peter Zijlstra Cc: Nathan Chancellor , X86 ML , Josh Poimboeuf , Jason Baron , Steven Rostedt , Ard Biesheuvel , LKML , Nick Desaulniers , clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 12:33 PM Peter Zijlstra wrote: > > On Thu, Jun 10, 2021 at 11:50:36AM -0700, Sami Tolvanen wrote: > > On Thu, Jun 10, 2021 at 11:14 AM Nathan Chancellor wrote: > > > Adding Sami because I am not sure why this patch would have much of an impact > > > in relation to LTO. https://git.kernel.org/tip/25cf0d8aa2a3 is the patch in > > > question. > > > > It's because LLVM enables -ffunction-sections with LTO, so using .text > > section size to estimate the reloc hash table size isn't going to be > > accurate, as confirmed by objtool output with --stats: > > > > OBJTOOL vmlinux.o > > nr_sections: 141481 > > section_bits: 17 > > nr_symbols: 215262 > > symbol_bits: 17 > > max_reloc: 24850 > > tot_reloc: 590890 > > reloc_bits: 10 > > Bah. Would something like the *completely* untested below help with that? Yes, that seems to work: tot_reloc: 590890 reloc_bits: 19 Nathan, can you confirm if this fixes the regression for you? Sami