Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2024 17:24:04 +0000
From:      Colin Percival <cperciva@tarsnap.com>
To:        Mike Karels <karels@freebsd.org>, Warner Losh <imp@bsdimp.com>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org,  dev-commits-src-main@freebsd.org,  FreeBSD Release Engineering Team <re@freebsd.org>
Subject:   Re: git: 6137b5f7b8c1 - main - Increase the size of riscv GENERICSD images to 6 GB
Message-ID:  <0100018d0e26dbad-702c4db3-72b0-495c-a9c8-4ef0201d8b3a-000000@email.amazonses.com>
In-Reply-To: <45CAA8CA-9B5E-41D2-8416-83156B6AC721@freebsd.org>
References:  <202401151330.40FDU0q9009324@gitrepo.freebsd.org> <CANCZdfoCp2%2B_oxkektAsputwhN5E3bu%2B8ogzcOAHkQLZNPfW3Q@mail.gmail.com> <45CAA8CA-9B5E-41D2-8416-83156B6AC721@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 1/15/24 08:36, Mike Karels wrote:
> On 15 Jan 2024, at 9:37, Warner Losh wrote:
>> One question here...
>>
>> Do we need to include all the debugging stuff in /usr/lib/debug? i'ts over
>> 1GB out of 5GB and seems like a poor fit
>> for this form factor. We can easily provide it as a package instead....
>>
>> I know the inevitable march of largeness must progress, but we should ask
>> ourselves is this really a good use of that 1GB?
> 
> Good question.  On riscv, /usr/lib/debug is 2.5 GB.  (arm64 is 2.1 GB.)
> I'm also not sure what it would take to leave it off, although I would guess
> that a tweak to installworld could do it if we need debug for other targets.
> I think the package already exists.  Of course, these images usually get
> expanded to a much larger size on the first boot, so maybe the space doesn't
> matter as much.
> 
> Ideally, we'd keep the kernel debug, but that would probably be more work.
> 
> It would probably make the most sense to the same thing for other architectures,
> although arm64 at least has headroom.  The scripts to build the image files are
> shared, but there is a config file per image.
> 
> Opinions, anyone?  We could ask on freebsd-riscv and maybe other lists too.

My inclination is to say that for now the "standard" FreeBSD images should
include all the bits which 'make installkernel installworld' provides.  (I
have been considering shipping no-debug-files EC2 AMIs as an additional
option, though, since people pay per GB for storage there.)

When we move to pkgbase it will become dramatically easier for users to
install debug files if/when needed, and at that point I think it would make
sense to ship without them by default.

-- 
Colin Percival
FreeBSD Release Engineering Lead & EC2 platform maintainer
Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0100018d0e26dbad-702c4db3-72b0-495c-a9c8-4ef0201d8b3a-000000>