Re: update to docs/faq for partition sizes ?

2021-02-16 Thread harold felton
howdee,

wellp - it took 36-ish hours, but after swapping my /xtra and /usr/obj
partitions
the following seems to be the "answer" for my single-data point...
fw$ df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a  986M121M816M13%/
/dev/sd0k 18.8G1.5G   16.3G 8%/home
/dev/sd0d  3.9G   11.2M3.7G 0%/tmp
/dev/sd0f  5.8G2.8G2.7G51%/usr
/dev/sd0g  986M236M701M25%/usr/X11R6
/dev/sd0h 15.7G286K   14.9G 0%/usr/local
/dev/sd0n 27.1G   11.9G   13.9G46%/usr/obj
/dev/sd0i  1.9G1.3G592M68%/usr/src
/dev/sd0e 11.6G8.8M   11.0G 0%/var
/dev/sd0l  1.9G380K1.8G 0%/var/log
/dev/sd0m  9.7G1.3M9.2G 0%/var/www
/dev/sd0j  5.8G4.9G636M89%/xtra

ie - you'd need 12gb for the /usr/obj directory for full-base-with-debug...
(or increase by a factor of 3, the default amounts - ish...)

in case it is useful for anyone else - fyi...

have fun, h.

On Mon, Feb 15, 2021 at 4:07 AM harold felton 
wrote:

> Got it.
> If i sort out the answer (since i noticed a spare xtra-partition i had
> made)
> i will go ahead and followup...
> thx, h.
>
> On Mon, Feb 15, 2021 at 3:28 AM Otto Moerbeek  wrote:
>
>> On Mon, Feb 15, 2021 at 01:57:23AM -0800, harold felton wrote:
>>
>> > howdee,
>> >
>> > this is totally not critical, but i will go ahead and ask:
>> >
>> > assuming that i have added the following to /etc/mk.conf...
>> > DEBUG=-g
>> > KEEPKERNELS=yes
>> > SUDO=doas
>> > WARNINGS=-Wall
>> >
>> > how big do i need the /usr/obj partition to be ?
>>
>> DEBUG=-g makes things way bigger. KEEPKERNELS is also leaving more
>> cruft afaik.
>>
>> You are not compiling with standard options, so how should we know?
>>
>> -Otto
>> >
>> > i do not remember specifically adjusting the /usr/xxx partitions
>> > when i was initially installing this system - but i clearly changed
>> > something...
>> > because the answer for 'df -h' is as follows:
>> > Filesystem SizeUsed   Avail Capacity  Mounted on
>> > /dev/sd0a  986M121M816M13%/
>> > /dev/sd0k 18.8G1.5G   16.3G 8%/home
>> > /dev/sd0d  3.9G   10.0K3.7G 0%/tmp
>> > /dev/sd0f  5.8G2.8G2.7G51%/usr
>> > /dev/sd0g  986M236M701M25%/usr/X11R6
>> > /dev/sd0h 15.7G286K   14.9G 0%/usr/local
>> > /dev/sd0j  5.8G4.9G636M89%/usr/obj
>> > /dev/sd0i  1.9G1.2G618M67%/usr/src
>> > /dev/sd0e 11.6G8.8M   11.0G 0%/var
>> > /dev/sd0l  1.9G344K1.8G 0%/var/log
>> > /dev/sd0m  9.7G1.3M9.2G 0%/var/www
>> > /dev/sd0n 27.1G2.0K   25.8G 0%/xtra
>> >
>> > i will include the dmesg below, altho i doubt it is critical other than
>> > to note that the size of my sd0 is 120Gb...
>> >
>> [snip]
>
>


Re: update to docs/faq for partition sizes ?

2021-02-15 Thread harold felton
Got it.
If i sort out the answer (since i noticed a spare xtra-partition i had made)
i will go ahead and followup...
thx, h.

On Mon, Feb 15, 2021 at 3:28 AM Otto Moerbeek  wrote:

> On Mon, Feb 15, 2021 at 01:57:23AM -0800, harold felton wrote:
>
> > howdee,
> >
> > this is totally not critical, but i will go ahead and ask:
> >
> > assuming that i have added the following to /etc/mk.conf...
> > DEBUG=-g
> > KEEPKERNELS=yes
> > SUDO=doas
> > WARNINGS=-Wall
> >
> > how big do i need the /usr/obj partition to be ?
>
> DEBUG=-g makes things way bigger. KEEPKERNELS is also leaving more
> cruft afaik.
>
> You are not compiling with standard options, so how should we know?
>
> -Otto
> >
> > i do not remember specifically adjusting the /usr/xxx partitions
> > when i was initially installing this system - but i clearly changed
> > something...
> > because the answer for 'df -h' is as follows:
> > Filesystem SizeUsed   Avail Capacity  Mounted on
> > /dev/sd0a  986M121M816M13%/
> > /dev/sd0k 18.8G1.5G   16.3G 8%/home
> > /dev/sd0d  3.9G   10.0K3.7G 0%/tmp
> > /dev/sd0f  5.8G2.8G2.7G51%/usr
> > /dev/sd0g  986M236M701M25%/usr/X11R6
> > /dev/sd0h 15.7G286K   14.9G 0%/usr/local
> > /dev/sd0j  5.8G4.9G636M89%/usr/obj
> > /dev/sd0i  1.9G1.2G618M67%/usr/src
> > /dev/sd0e 11.6G8.8M   11.0G 0%/var
> > /dev/sd0l  1.9G344K1.8G 0%/var/log
> > /dev/sd0m  9.7G1.3M9.2G 0%/var/www
> > /dev/sd0n 27.1G2.0K   25.8G 0%/xtra
> >
> > i will include the dmesg below, altho i doubt it is critical other than
> > to note that the size of my sd0 is 120Gb...
> >
> > i was also going to ask about a bunch of warnings that i saw scroll by
> > "dwarf2 only supports one compilation unit" or something...
> > i didnt think that these warning were important since i noticed that
> freebsd
> > had already dealt with them around 2016-2018 when compiling golang...
> > (see: https://github.com/golang/go/issues/14705)
> >
> > anyways - i was going to try and learn how to use the debugger, etc...
> > and thought it would be useful to have all the symbols and code
> available...
> > i got thru the https://man.openbsd.org/release step-2 and was trying to
> > do the 'make build' of base when i ran-out-of-space...
> >
> > i have a feeling that i would have been fine only compiling non-debug,
> > but figured this question might be an faq-type answer that i could ask...
> >
> > ok - heres my current dmesg (was running -current from a few days back
> > until i had just-compiled the -current system i ran out of space on)
> >
> > fyi - this is a pcengines apu4d4 - if that helps...
> > tia, h.
> >
> >
> >
> > OpenBSD 6.9-beta (GENERIC.MP) #0: Sat Feb 13 09:41:26 PST 2021
> > hfeltonad...@fw.hfelton.net:/sys/arch/amd64/compile/GENERIC.MP
> > real mem = 4259868672 (4062MB)
> > avail mem = 4115427328 (3924MB)
> > random: good seed from bootblocks
> > mpath0 at root
> > scsibus0 at mpath0: 256 targets
> > mainbus0 at root
> > bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xcfe8a040 (13 entries)
> > bios0: vendor coreboot version "v4.12.0.6" date 10/29/2020
> > bios0: PC Engines apu4
> > acpi0 at bios0: ACPI 6.0
> > acpi0: sleep states S0 S1 S4 S5
> > acpi0: tables DSDT FACP SSDT MCFG TPM2 APIC HEST SSDT SSDT DRTM HPET
> > acpi0: wakeup devices PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4)
> UOH1(S3)
> > UOH2(S3) UOH3(S3) UOH4(S3) UOH5(S3) UOH6(S3) XHC0(S4)
> > acpitimer0 at acpi0: 3579545 Hz, 32 bits
> > acpimcfg0 at acpi0
> > acpimcfg0: addr 0xf800, bus 0-64
> > acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> > cpu0 at mainbus0: apid 0 (boot processor)
> > cpu0: AMD GX-412TC SOC, 998.29 MHz, 16-30-01
> > cpu0:
> >
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
> > cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
> > 64b/line 16-way L2 cache
> > cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully
> associative
> > cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully
> associative
> > cpu0: smt 0, core 0, package 0
> > mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> > cpu0: apic clock running at 99MHz
> > cpu0: mwait min=64, max=64, IBE
> > cpu1 at mainbus0: apid 1 (application processor)
> > cpu1: AMD GX-412TC SOC, 998.13 MHz, 16-30-01
> > cpu1:
> >
> 

Re: update to docs/faq for partition sizes ?

2021-02-15 Thread Otto Moerbeek
On Mon, Feb 15, 2021 at 01:57:23AM -0800, harold felton wrote:

> howdee,
> 
> this is totally not critical, but i will go ahead and ask:
> 
> assuming that i have added the following to /etc/mk.conf...
> DEBUG=-g
> KEEPKERNELS=yes
> SUDO=doas
> WARNINGS=-Wall
> 
> how big do i need the /usr/obj partition to be ?

DEBUG=-g makes things way bigger. KEEPKERNELS is also leaving more
cruft afaik.

You are not compiling with standard options, so how should we know?

-Otto
> 
> i do not remember specifically adjusting the /usr/xxx partitions
> when i was initially installing this system - but i clearly changed
> something...
> because the answer for 'df -h' is as follows:
> Filesystem SizeUsed   Avail Capacity  Mounted on
> /dev/sd0a  986M121M816M13%/
> /dev/sd0k 18.8G1.5G   16.3G 8%/home
> /dev/sd0d  3.9G   10.0K3.7G 0%/tmp
> /dev/sd0f  5.8G2.8G2.7G51%/usr
> /dev/sd0g  986M236M701M25%/usr/X11R6
> /dev/sd0h 15.7G286K   14.9G 0%/usr/local
> /dev/sd0j  5.8G4.9G636M89%/usr/obj
> /dev/sd0i  1.9G1.2G618M67%/usr/src
> /dev/sd0e 11.6G8.8M   11.0G 0%/var
> /dev/sd0l  1.9G344K1.8G 0%/var/log
> /dev/sd0m  9.7G1.3M9.2G 0%/var/www
> /dev/sd0n 27.1G2.0K   25.8G 0%/xtra
> 
> i will include the dmesg below, altho i doubt it is critical other than
> to note that the size of my sd0 is 120Gb...
> 
> i was also going to ask about a bunch of warnings that i saw scroll by
> "dwarf2 only supports one compilation unit" or something...
> i didnt think that these warning were important since i noticed that freebsd
> had already dealt with them around 2016-2018 when compiling golang...
> (see: https://github.com/golang/go/issues/14705)
> 
> anyways - i was going to try and learn how to use the debugger, etc...
> and thought it would be useful to have all the symbols and code available...
> i got thru the https://man.openbsd.org/release step-2 and was trying to
> do the 'make build' of base when i ran-out-of-space...
> 
> i have a feeling that i would have been fine only compiling non-debug,
> but figured this question might be an faq-type answer that i could ask...
> 
> ok - heres my current dmesg (was running -current from a few days back
> until i had just-compiled the -current system i ran out of space on)
> 
> fyi - this is a pcengines apu4d4 - if that helps...
> tia, h.
> 
> 
> 
> OpenBSD 6.9-beta (GENERIC.MP) #0: Sat Feb 13 09:41:26 PST 2021
> hfeltonad...@fw.hfelton.net:/sys/arch/amd64/compile/GENERIC.MP
> real mem = 4259868672 (4062MB)
> avail mem = 4115427328 (3924MB)
> random: good seed from bootblocks
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xcfe8a040 (13 entries)
> bios0: vendor coreboot version "v4.12.0.6" date 10/29/2020
> bios0: PC Engines apu4
> acpi0 at bios0: ACPI 6.0
> acpi0: sleep states S0 S1 S4 S5
> acpi0: tables DSDT FACP SSDT MCFG TPM2 APIC HEST SSDT SSDT DRTM HPET
> acpi0: wakeup devices PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) UOH1(S3)
> UOH2(S3) UOH3(S3) UOH4(S3) UOH5(S3) UOH6(S3) XHC0(S4)
> acpitimer0 at acpi0: 3579545 Hz, 32 bits
> acpimcfg0 at acpi0
> acpimcfg0: addr 0xf800, bus 0-64
> acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: AMD GX-412TC SOC, 998.29 MHz, 16-30-01
> cpu0:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
> cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu0: smt 0, core 0, package 0
> mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
> cpu0: apic clock running at 99MHz
> cpu0: mwait min=64, max=64, IBE
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: AMD GX-412TC SOC, 998.13 MHz, 16-30-01
> cpu1:
> FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
> cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
> 64b/line 16-way L2 cache
> cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
> cpu1: smt 0, core 1, package 0
> cpu2 at mainbus0: 

update to docs/faq for partition sizes ?

2021-02-15 Thread harold felton
howdee,

this is totally not critical, but i will go ahead and ask:

assuming that i have added the following to /etc/mk.conf...
DEBUG=-g
KEEPKERNELS=yes
SUDO=doas
WARNINGS=-Wall

how big do i need the /usr/obj partition to be ?

i do not remember specifically adjusting the /usr/xxx partitions
when i was initially installing this system - but i clearly changed
something...
because the answer for 'df -h' is as follows:
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/sd0a  986M121M816M13%/
/dev/sd0k 18.8G1.5G   16.3G 8%/home
/dev/sd0d  3.9G   10.0K3.7G 0%/tmp
/dev/sd0f  5.8G2.8G2.7G51%/usr
/dev/sd0g  986M236M701M25%/usr/X11R6
/dev/sd0h 15.7G286K   14.9G 0%/usr/local
/dev/sd0j  5.8G4.9G636M89%/usr/obj
/dev/sd0i  1.9G1.2G618M67%/usr/src
/dev/sd0e 11.6G8.8M   11.0G 0%/var
/dev/sd0l  1.9G344K1.8G 0%/var/log
/dev/sd0m  9.7G1.3M9.2G 0%/var/www
/dev/sd0n 27.1G2.0K   25.8G 0%/xtra

i will include the dmesg below, altho i doubt it is critical other than
to note that the size of my sd0 is 120Gb...

i was also going to ask about a bunch of warnings that i saw scroll by
"dwarf2 only supports one compilation unit" or something...
i didnt think that these warning were important since i noticed that freebsd
had already dealt with them around 2016-2018 when compiling golang...
(see: https://github.com/golang/go/issues/14705)

anyways - i was going to try and learn how to use the debugger, etc...
and thought it would be useful to have all the symbols and code available...
i got thru the https://man.openbsd.org/release step-2 and was trying to
do the 'make build' of base when i ran-out-of-space...

i have a feeling that i would have been fine only compiling non-debug,
but figured this question might be an faq-type answer that i could ask...

ok - heres my current dmesg (was running -current from a few days back
until i had just-compiled the -current system i ran out of space on)

fyi - this is a pcengines apu4d4 - if that helps...
tia, h.



OpenBSD 6.9-beta (GENERIC.MP) #0: Sat Feb 13 09:41:26 PST 2021
hfeltonad...@fw.hfelton.net:/sys/arch/amd64/compile/GENERIC.MP
real mem = 4259868672 (4062MB)
avail mem = 4115427328 (3924MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0xcfe8a040 (13 entries)
bios0: vendor coreboot version "v4.12.0.6" date 10/29/2020
bios0: PC Engines apu4
acpi0 at bios0: ACPI 6.0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP SSDT MCFG TPM2 APIC HEST SSDT SSDT DRTM HPET
acpi0: wakeup devices PBR4(S4) PBR5(S4) PBR6(S4) PBR7(S4) PBR8(S4) UOH1(S3)
UOH2(S3) UOH3(S3) UOH4(S3) UOH5(S3) UOH6(S3) XHC0(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimcfg0 at acpi0
acpimcfg0: addr 0xf800, bus 0-64
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD GX-412TC SOC, 998.29 MHz, 16-30-01
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu0: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 99MHz
cpu0: mwait min=64, max=64, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD GX-412TC SOC, 998.13 MHz, 16-30-01
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 2MB
64b/line 16-way L2 cache
cpu1: ITLB 32 4KB entries fully associative, 8 4MB entries fully associative
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD GX-412TC SOC, 998.14 MHz, 16-30-01
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,TOPEXT,DBKP,PERFTSC,PCTRL3,ITSC,BMI1,XSAVEOPT
cpu2: 32KB