Re: git: 6137b5f7b8c1 - main - Increase the size of riscv GENERICSD images to 6 GB

From: Mike Karels <karels_at_freebsd.org>
Date: Mon, 15 Jan 2024 16:36:08 UTC
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?
>
> Warner

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.

		Mike

> On Mon, Jan 15, 2024 at 6:30 AM Mike Karels <karels@freebsd.org> wrote:
>
>> The branch main has been updated by karels:
>>
>> URL:
>> https://cgit.FreeBSD.org/src/commit/?id=6137b5f7b8c183ee8806d79b3f1d8e5e3ddb3df3
>>
>> commit 6137b5f7b8c183ee8806d79b3f1d8e5e3ddb3df3
>> Author:     Mike Karels <karels@FreeBSD.org>
>> AuthorDate: 2024-01-14 17:01:19 +0000
>> Commit:     Mike Karels <karels@FreeBSD.org>
>> CommitDate: 2024-01-15 13:28:53 +0000
>>
>>     Increase the size of riscv GENERICSD images to 6 GB
>>
>>     The stable/13 snapshot this week failed to build the riscv GENERICSD
>>     image because it ran out of space.  Checking main and stable/14
>>     snapshots, they are also low on space, around 100% or more of
>>     capacity.  Increase them all from 5 GB to 6 GB.  Note, this is the
>>     only riscv image configuration.
>>
>>     Discussed with: cperciva
>> ---
>>  release/riscv/GENERICSD.conf | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/release/riscv/GENERICSD.conf b/release/riscv/GENERICSD.conf
>> index d0b1ee32743c..7bd58bc9f97b 100644
>> --- a/release/riscv/GENERICSD.conf
>> +++ b/release/riscv/GENERICSD.conf
>> @@ -7,7 +7,7 @@ EMBEDDED_TARGET="riscv"
>>  EMBEDDEDBUILD=1
>>  FAT_SIZE="54m -b 8m"
>>  FAT_TYPE="16"
>> -IMAGE_SIZE="5120M"
>> +IMAGE_SIZE="6144M"
>>  KERNEL="GENERIC"
>>  MD_ARGS="-x 63 -y 255"
>>  PART_SCHEME="GPT"
>>