Hello,
TL;DR:
My problem: I allocated 256G for swap during installation of 12.2 (zfs install option, single disk). Real memory is 64G. The partition was created correctly for that size; however, swap available as reported by both swapinfo and top shows only 64G.
The last line in dmesg output is telling:
but googling I have not been able to find a reference to a limit or how to change it.
The system is a fresh 12.2 install plus an update from source to 12-STABLE.
Longer version:
Thanks in advance,
-Cristian
TL;DR:
My problem: I allocated 256G for swap during installation of 12.2 (zfs install option, single disk). Real memory is 64G. The partition was created correctly for that size; however, swap available as reported by both swapinfo and top shows only 64G.
The last line in dmesg output is telling:
Code:
WARNING: reducing swap size to maximum of 65536MB per unit
but googling I have not been able to find a reference to a limit or how to change it.
The system is a fresh 12.2 install plus an update from source to 12-STABLE.
Longer version:
Rich (BB code):
root@caleuche 00:04:46 /usr/home/cfs
# swapinfo -h
Device 512-blocks Used Avail Capacity
/dev/nvd1p3 134217728 0B 64G 0%
root@caleuche 00:08:10 /usr/home/cfs
# diskinfo -t nvd1p3
nvd1p3
4096 # sectorsize
274877906944 # mediasize in bytes (256G)
67108864 # mediasize in sectors
0 # stripesize
210763776 # stripeoffset
4177 # Cylinders according to firmware.
255 # Heads according to firmware.
63 # Sectors according to firmware.
SHGP31-1000GM-2 # Disk descr.
AD0AN99691060B214 # Disk ident.
Yes # TRIM/UNMAP support
0 # Rotation rate in RPM
Seek times:
Full stroke: 250 iter in 0.008899 sec = 0.036 msec
Half stroke: 250 iter in 0.008701 sec = 0.035 msec
Quarter stroke: 500 iter in 0.018557 sec = 0.037 msec
Short forward: 400 iter in 0.015540 sec = 0.039 msec
Short backward: 400 iter in 0.015513 sec = 0.039 msec
Seq outer: 2048 iter in 0.063381 sec = 0.031 msec
Seq inner: 2048 iter in 0.063434 sec = 0.031 msec
Transfer rates:
outside: 102400 kbytes in 0.065011 sec = 1575118 kbytes/sec
middle: 102400 kbytes in 0.064456 sec = 1588681 kbytes/sec
inside: 102400 kbytes in 0.064432 sec = 1589272 kbytes/sec
root@caleuche 00:14:46 /usr/home/cfs
# gpart list nvd1
Geom name: nvd1
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 244190640
first: 6
entries: 128
scheme: GPT
Providers:
1. Name: nvd1p1
Mediasize: 209715200 (200M)
Sectorsize: 4096
Stripesize: 0
Stripeoffset: 24576
Mode: r0w0e0
efimedia: HD(1,GPT,6d0640a8-900d-11eb-8ce6-a0369f3e8c80,0x6,0xc800)
rawuuid: 6d0640a8-900d-11eb-8ce6-a0369f3e8c80
rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b
label: efiboot0
length: 209715200
offset: 24576
type: efi
index: 1
end: 51205
start: 6
2. Name: nvd1p2
Mediasize: 524288 (512K)
Sectorsize: 4096
Stripesize: 0
Stripeoffset: 209739776
Mode: r0w0e0
efimedia: HD(2,GPT,6d0d0cfa-900d-11eb-8ce6-a0369f3e8c80,0xc806,0x80)
rawuuid: 6d0d0cfa-900d-11eb-8ce6-a0369f3e8c80
rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f
label: gptboot0
length: 524288
offset: 209739776
type: freebsd-boot
index: 2
end: 51333
start: 51206
3. Name: nvd1p3
Mediasize: 274877906944 (256G)
Sectorsize: 4096
Stripesize: 0
Stripeoffset: 210763776
Mode: r1w1e0
efimedia: HD(3,GPT,6d12c01c-900d-11eb-8ce6-a0369f3e8c80,0xc900,0x4000000)
rawuuid: 6d12c01c-900d-11eb-8ce6-a0369f3e8c80
rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b
label: swap0
length: 274877906944
offset: 210763776
type: freebsd-swap
index: 3
end: 67160319
start: 51456
4. Name: nvd1p4
Mediasize: 725115469824 (675G)
Sectorsize: 4096
Stripesize: 0
Stripeoffset: 210763776
Mode: r1w1e1
efimedia: HD(4,GPT,6d161641-900d-11eb-8ce6-a0369f3e8c80,0x400c900,0xa8d4400)
rawuuid: 6d161641-900d-11eb-8ce6-a0369f3e8c80
rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b
label: zfs0
length: 725115469824
offset: 275088670720
type: freebsd-zfs
index: 4
end: 244190463
start: 67160320
Consumers:
1. Name: nvd1
Mediasize: 1000204886016 (932G)
Sectorsize: 4096
Mode: r2w2e3
root@caleuche 00:15:36 /usr/home/cfs
# nvmecontrol identify nvme1ns1
Size: 244190646 blocks
Capacity: 244190646 blocks
Utilization: 244190646 blocks
Thin Provisioning: Not Supported
Number of LBA Formats: 2
Current LBA Format: LBA Format #01
Data Protection Caps: Not Supported
Data Protection Settings: Not Enabled
Multi-Path I/O Capabilities: Not Supported
Reservation Capabilities: Not Supported
Format Progress Indicator: Not Supported
Deallocate Logical Block: Read Not Reported
Optimal I/O Boundary: 0 blocks
NVM Capacity: 0 bytes
Globally Unique Identifier: 00000000000000000000000000000000
IEEE EUI64: ffffffffffffffff
LBA Format #00: Data Size: 512 Metadata Size: 0 Performance: Best
LBA Format #01: Data Size: 4096 Metadata Size: 0 Performance: Best
root@caleuche 00:15:56 /usr/home/cfs
# uname -a
FreeBSD caleuche 12.2-STABLE FreeBSD 12.2-STABLE r369525 GENERIC amd64
Code:
root@caleuche 00:29:44 /usr/src
# dmesg | tail
ums0 on uhub0
ums0: <KYE Optical Mouse, class 0/0, rev 1.10/0.00, addr 1> on usbus0
ums0: 3 buttons and [XYZ] coordinates ID=0
uhid0 on uhub0
uhid0: <NOVATEK USB Keyboard, class 0/0, rev 1.10/1.12, addr 2> on usbus0
Security policy loaded: MAC/ntpd (mac_ntpd)
WARNING: autofs_trigger_one: cv_wait_sig for /n/ failed with error 4
Accounting enabled
Accounting disabled
WARNING: reducing swap size to maximum of 65536MB per unit
Code:
root@caleuche 00:29:48 /usr/src
# dmesg | head -n 60
---<<BOOT>>---
Copyright (c) 1992-2021 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 12.2-STABLE r369525 GENERIC amd64
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
VT(efifb): resolution 1024x768
CPU: Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (4200.20-MHz K8-class CPU)
Origin="GenuineIntel" Id=0x906e9 Family=0x6 Model=0x9e Stepping=9
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x7ffafbbf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
AMD Features2=0x121<LAHF,ABM,Prefetch>
Structured Extended Features=0x29c6fbf<FSGSBASE,TSCADJ,SGX,BMI1,HLE,AVX2,SMEP,BMI2,ERMS,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
Structured Extended Features3=0xc000000<IBPB,STIBP>
XSAVE Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID
TSC: P-state invariant, performance statistics
real memory = 68719476736 (65536 MB)
avail memory = 66711527424 (63621 MB)
[...]
Thanks in advance,
-Cristian