From patchwork Fri Jul 19 18:24:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Omar Sandoval X-Patchwork-Id: 57247 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DDCCD384A478 for ; Fri, 19 Jul 2024 18:25:04 +0000 (GMT) X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by sourceware.org (Postfix) with ESMTPS id 1C3FC384AB56 for ; Fri, 19 Jul 2024 18:24:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1C3FC384AB56 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=osandov.com Authentication-Results: sourceware.org; spf=none smtp.mailfrom=osandov.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1C3FC384AB56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::532 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721413489; cv=none; b=LTsox67f0NlWuqjNZ0YAxR81n0eDlOMwBlcda8/0RxJRVqsv3q+lK3VO4zz/QB8afhQ/esUJS6q0oOzbAi5pw8WivApG86pbpEOCkFUsRGxjkPHIRDxuH1om33zslpEpXc0C/A0ivEsDmwQlu2ZjJebDJ217tJAvgk4GPT8MPmk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721413489; c=relaxed/simple; bh=st7h4VWEp3WnC2FkRJB6Jv7b94xK/EqLBhZRLpyuOtg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=BCQC0TypPh3zDlh4jaSoY/dbU0Fgq2KESY0pFQvaZVwDN5cRs6pwdaQhABOHf1nIrwOazW+BuleLnb4zqXdRtU7dCUndZRDN8mQLtqfShgHMj5VClwhX2uFpxlNWbeMtSgeVn0QIcCRiSwq3W6i4gPdyV16JTW7LPPcwqyGA36I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x532.google.com with SMTP id 41be03b00d2f7-75ee39f1ffbso1488389a12.2 for ; Fri, 19 Jul 2024 11:24:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osandov-com.20230601.gappssmtp.com; s=20230601; t=1721413486; x=1722018286; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=d6LVgQ/2dV7xqdWXeBwu3U0jzidyYiBG6cXMai2lFpw=; b=y0OUcErbRtuGD8IpKmfNBAd0/gbeOQgq7vGNAv16OHLT1D77f9I2N5A1tjmeyorJVT nwsiLJAn4Hflzo4i+bNler/An6VUGSGwE5Y5YM7Bqf7xjEojywa/A/OSotPCEVGozUEO HU7h5yBaoG5m7MCHa9BbOXNI3w+dcvEK38l9VSIv/6AE7E7LrvEkwDq3yAz/krM/63qy 856exIzhoomgHfnV8UiF9y9TlE6JaZdaCnjiwLXd6atHhgtFxosXEr8VW0VWdVfHQte7 F55EfUy/gvh/BAJ4ugPl3T7uvyk2udT+PT3qAxEStVYshR8/nsaDyjtppJyI+UEjmwo7 X1Jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721413486; x=1722018286; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d6LVgQ/2dV7xqdWXeBwu3U0jzidyYiBG6cXMai2lFpw=; b=vM0xPPA9v4VUDQkGrQeiApBeBbZs0V4jvz5uQNN2a2Izs3JyxOnjmBTi0oYEF17wkc +eRe6a4CN7KDeBUw2cBYO7N1y9m6XeXqu28BXcTMTXnwCzeHEJzZgks/YOUhlb/m/GlA tlWo72mMXBjUfxg9GC9wCv2YlPD9NB7s97S1ayx3ghQLAgrBOEcqsLxZa6h0z5JsbL3h M9rq5MQxSb8IEytiqpRLz18t1DLjZUqK2nDKYNYCiYYRdbm5354+ZO+GFOmfZ/J8TPlL bsYjB54COxTrFF4aGMEXusXH+A2ImktoQLIn206tKGT///5OTPiVb4VyBreV4bgSxSv2 IYxw== X-Gm-Message-State: AOJu0YyhYMwhELz1tu2XmnfVR1MnMFvaNtSPX5OLBzH5ndrsSEejS1Ts mEqIdHVX6WCdUiL2pn8EZ/c6LXStIIv4Lcgp/e6HE1D/b6TZ6PNK1cBH5omxkQg/Kir9io7fDda 2 X-Google-Smtp-Source: AGHT+IHiul1DLOfEGVIvO3Hv0zPrqnMOZx5g3u2hKaRKyU2aQxWeLFyquosrkRQ6iXLJMkrV7JRZaw== X-Received: by 2002:a05:6a20:728d:b0:1c0:eabc:86a8 with SMTP id adf61e73a8af0-1c422855829mr1189578637.5.1721413485810; Fri, 19 Jul 2024 11:24:45 -0700 (PDT) Received: from telecaster.thefacebook.com ([2620:10d:c090:500::7:5d79]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-70cff4b2f40sm1476344b3a.63.2024.07.19.11.24.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jul 2024 11:24:45 -0700 (PDT) From: Omar Sandoval To: elfutils-devel@sourceware.org Cc: "Frank Ch . Eigler" , linux-debuggers@vger.kernel.org Subject: [PATCH v4 0/7] debuginfod: speed up extraction from kernel debuginfo packages by 200x Date: Fri, 19 Jul 2024 11:24:31 -0700 Message-ID: X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: elfutils-devel-bounces~patchwork=sourceware.org@sourceware.org From: Omar Sandoval This is v4 of my patch series optimizing debuginfod for kernel debuginfo. v1 is here [1], v2 is here [2], v3 is here [3]. The only changes from v3 in this version are fixing a bogus maybe-uninitialized error on the Debian build and adding the new test files to EXTRA_DIST so that make distcheck passes. Thanks, Omar 1: https://sourceware.org/pipermail/elfutils-devel/2024q3/007191.html 2: https://sourceware.org/pipermail/elfutils-devel/2024q3/007208.html 3: https://sourceware.org/pipermail/elfutils-devel/2024q3/007243.html Omar Sandoval (7): debuginfod: fix skipping source file tests/run-debuginfod-fd-prefetch-caches.sh: disable fdcache limit check debuginfod: factor out common code for responding from an archive debugifod: add new table and views for seekable archives debuginfod: optimize extraction from seekable xz archives debuginfod: populate _r_seekable on scan debuginfod: populate _r_seekable on request configure.ac | 5 + debuginfod/Makefile.am | 2 +- debuginfod/debuginfod.cxx | 923 +++++++++++++++--- tests/Makefile.am | 13 +- ...pressme-seekable-xz-dbgsym_1.0-1_amd64.deb | Bin 0 -> 6288 bytes ...compressme-seekable-xz_1.0-1.debian.tar.xz | Bin 0 -> 1440 bytes .../compressme-seekable-xz_1.0-1.dsc | 19 + .../compressme-seekable-xz_1.0-1_amd64.deb | Bin 0 -> 6208 bytes .../compressme-seekable-xz_1.0.orig.tar.xz | Bin 0 -> 7160 bytes .../compressme-seekable-xz-1.0-1.src.rpm | Bin 0 -> 15880 bytes .../compressme-seekable-xz-1.0-1.x86_64.rpm | Bin 0 -> 31873 bytes ...sme-seekable-xz-debuginfo-1.0-1.x86_64.rpm | Bin 0 -> 21917 bytes ...e-seekable-xz-debugsource-1.0-1.x86_64.rpm | Bin 0 -> 7961 bytes tests/run-debuginfod-archive-groom.sh | 2 +- tests/run-debuginfod-extraction.sh | 2 +- tests/run-debuginfod-fd-prefetch-caches.sh | 4 + tests/run-debuginfod-seekable.sh | 186 ++++ 17 files changed, 1011 insertions(+), 145 deletions(-) create mode 100644 tests/debuginfod-debs/seekable-xz/compressme-seekable-xz-dbgsym_1.0-1_amd64.deb create mode 100644 tests/debuginfod-debs/seekable-xz/compressme-seekable-xz_1.0-1.debian.tar.xz create mode 100644 tests/debuginfod-debs/seekable-xz/compressme-seekable-xz_1.0-1.dsc create mode 100644 tests/debuginfod-debs/seekable-xz/compressme-seekable-xz_1.0-1_amd64.deb create mode 100644 tests/debuginfod-debs/seekable-xz/compressme-seekable-xz_1.0.orig.tar.xz create mode 100644 tests/debuginfod-rpms/seekable-xz/compressme-seekable-xz-1.0-1.src.rpm create mode 100644 tests/debuginfod-rpms/seekable-xz/compressme-seekable-xz-1.0-1.x86_64.rpm create mode 100644 tests/debuginfod-rpms/seekable-xz/compressme-seekable-xz-debuginfo-1.0-1.x86_64.rpm create mode 100644 tests/debuginfod-rpms/seekable-xz/compressme-seekable-xz-debugsource-1.0-1.x86_64.rpm create mode 100755 tests/run-debuginfod-seekable.sh