Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: gzimg hashes



On Sat, 18 Jul 2026 at 09:10:23 -0600, Brook Milligan wrote:
> > On Jul 15, 2026, at 16:51, Valery Ushakov
> <uwe%stderr.spb.ru@localhost> wrote:
> > 
> > On Wed, Jul 15, 2026 at 11:54:46 -0600, Brook Milligan wrote:
> > 
> >> Yes, indeed a parallelism issue.  That is now fixed.
> > 
> > mkhashes still carries stale $NetBSD$ from its prototype
> > 
> > mkhashes serializes image creation, can't we exploit make
> parallelism
> > istead of fighting it?
> > 
> > foo.img.gz.$(HASH) depends on foo.img.gz
> > 
> > $(HASH) depends on all *.img.gz.$(HASH) with a trivial cat $> > $@
> > rule
> 
> Good point.  At first, I was trying to minimize the changes.  However,
> here is another solution along the lines you suggested.
> 
> The basic idea is to add a new target (snap_md_post_images) to the end
> of snap_md_post that takes care of the (up to) four steps: (i) create
> an uncompressed image, (ii) create compressed bootable images +
> corresponding hash fiies from it, (iii) compress and hash the original
> image, and (iv) collect all the hashes into a single file.  Each step
> can be done in parallel, something that itself is an improvement. 
> Also, all these steps are not necessary for every architecture, so
> some changes skip or merge these four into fewer.
> 
> Please look over the patch below and provide comments.
> 
> Thanks a lot.

I've found no issues with these running repeatedly over the past week or
so, at parallel jobs between 8 and 12. (I've run builds for evbarm-
earmv7hf, evbarm-aarch64, evbmips-mipsn64eb, evbppc, and riscv64.)

Thanks,

Dave


Home | Main Index | Thread Index | Old Index