summaryrefslogtreecommitdiff
path: root/tests/run-debuginfod-extraction.sh
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2023-05-05 13:56:23 -0400
committerFrank Ch. Eigler <fche@redhat.com>2023-05-09 12:14:21 -0400
commita2f3f09745f781663eb874a4a86b5781cb423115 (patch)
tree17e89b25706b6aa2ee00ebc5df29bce633fe49f7 /tests/run-debuginfod-extraction.sh
parente65bbdde97f4094274dbdc327147e9cfe1fcc9a0 (diff)
downloadelfutils-a2f3f09745f781663eb874a4a86b5781cb423115.tar.gz
debuginfod: PR30378: better compression for _files table
Split the _files table into two links into a new _fileparts table, interning the dirname and basename of each file name string. This reduces storage requirements for many thousands of almost-identical long paths that are evident in large builds like kernels. This is unfortunately a schema-breaking change, so requires reindexing of the corpus. While in the vicinity, the file scan work queue is changed from a <set> to an <unordered_set>. The intent is that files be scanned in a more random sequence instead of sorted. If they're sorted, then files that contain errors will tend to be retried over and over again at the next scan cycle, even at the expense of making progress on the other files in the queue. Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
Diffstat (limited to 'tests/run-debuginfod-extraction.sh')
-rwxr-xr-xtests/run-debuginfod-extraction.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/run-debuginfod-extraction.sh b/tests/run-debuginfod-extraction.sh
index 3ca31b8a..78014c86 100755
--- a/tests/run-debuginfod-extraction.sh
+++ b/tests/run-debuginfod-extraction.sh
@@ -61,6 +61,9 @@ wait_ready $PORT1 'thread_work_total{role="traverse"}' 2
wait_ready $PORT1 'thread_work_pending{role="scan"}' 0
wait_ready $PORT1 'thread_busy{role="scan"}' 0
+# Take a dump if possible
+type sqlite3 2>/dev/null && sqlite3 $DB '.d'
+
########################################################################
# All rpms need to be in the index, except the dummy permission-000 one
rpms=$(find R -name \*rpm | grep -v nothing | wc -l)