From 44c4c51fc9fa982c667011f35f40c32ef9fe9627 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sat, 17 Oct 2026 17:09:13 -1000 Subject: Compress xz snapshots on one thread Current xz uses a thread per core unless told otherwise, so a single tar.xz request could keep every core busy, unlike the other compressors. --- source/ui-snapshot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/ui-snapshot.c b/source/ui-snapshot.c index dae3459..32d40f8 100644 --- a/source/ui-snapshot.c +++ b/source/ui-snapshot.c @@ -136,7 +136,8 @@ static int write_tar_lzip_archive(const char *hex, const char *prefix) static int write_tar_xz_archive(const char *hex, const char *prefix) { - const char *argv[] = { "xz", NULL }; + // Current xz runs a thread per core unless told otherwise. + const char *argv[] = { "xz", "-T1", NULL }; return write_compressed_tar_archive(hex, prefix, argv); } -- cgit