[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/13: Add back inferior heap size reporting
From: |
Christopher Baines |
Subject: |
03/13: Add back inferior heap size reporting |
Date: |
Fri, 19 Jan 2024 04:57:46 -0500 (EST) |
cbaines pushed a commit to branch master
in repository data-service.
commit 45d9b1ad7cb9ecacd754cc3957c7280b299596e7
Author: Christopher Baines <mail@cbaines.net>
AuthorDate: Mon Jan 15 11:49:48 2024 +0000
Add back inferior heap size reporting
I'm sure this was present before, but maybe lost during some refactoring.
---
guix-data-service/jobs/load-new-guix-revision.scm | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/guix-data-service/jobs/load-new-guix-revision.scm
b/guix-data-service/jobs/load-new-guix-revision.scm
index a8ef88b..a3c6527 100644
--- a/guix-data-service/jobs/load-new-guix-revision.scm
+++ b/guix-data-service/jobs/load-new-guix-revision.scm
@@ -137,7 +137,7 @@
(assoc-ref stats 'heap-free-size))
(expt 2. 20)))
(round
- (/ (assoc-ref (gc-stats) 'heap-size)
+ (/ (assoc-ref stats 'heap-size)
(expt 2. 20)))))
(list (system-test-name system-test)
@@ -492,6 +492,18 @@
args)
#f)))
+ (let ((stats (gc-stats)))
+ (simple-format
+ (current-error-port)
+ "inferior heap: ~a MiB used (~a MiB heap)~%"
+ (round
+ (/ (- (assoc-ref stats 'heap-size)
+ (assoc-ref stats 'heap-free-size))
+ (expt 2. 20)))
+ (round
+ (/ (assoc-ref stats 'heap-size)
+ (expt 2. 20)))))
+
(vector-map
(lambda (_ package)
(catch
- branch master updated (241d7e4 -> e0a6c84), Christopher Baines, 2024/01/19
- 04/13: Have delete-duplicates/sort! take a equality procedure, Christopher Baines, 2024/01/19
- 07/13: Fix par-map&, Christopher Baines, 2024/01/19
- 09/13: Split and instrument parts of inferior-packages->package-metadata-ids, Christopher Baines, 2024/01/19
- 08/13: Rewrite part of insert-missing-data-and-return-all-ids to avoid filter, Christopher Baines, 2024/01/19
- 11/13: Fixup tests, Christopher Baines, 2024/01/19
- 13/13: Try to fix issues with derivations being GC'ed, Christopher Baines, 2024/01/19
- 10/13: Add meaningful parallelism to processing jobs, Christopher Baines, 2024/01/19
- 03/13: Add back inferior heap size reporting,
Christopher Baines <=
- 05/13: Make it possible to destroy a resource pool, Christopher Baines, 2024/01/19
- 02/13: Use delete-duplicates/sort! in inferior-packages->license-set-ids, Christopher Baines, 2024/01/19
- 01/13: Use delete-duplicates/sort! in insert-missing-data-and-return-all-ids, Christopher Baines, 2024/01/19
- 12/13: Remove drain? #t from process job, Christopher Baines, 2024/01/19
- 06/13: Show backtraces when using parallel fibers and resource pools, Christopher Baines, 2024/01/19