fresh install on qemu/kvm of freebsd 14.3
with GENERIC kernel , wired memory at 'top' command was 120MB.
I edited the GENERIC kernel file with new name as following and compiled it. I also added "NO_MODULES=true" at /etc/make.conf.
rebooted, kldstat -h shows kernel as 15MB now, "du -sh /boot/kernel is 13M" . but wired memory is still 120MB. what am i missing :/
the kernel file i have edited and compiled is :
with GENERIC kernel , wired memory at 'top' command was 120MB.
I edited the GENERIC kernel file with new name as following and compiled it. I also added "NO_MODULES=true" at /etc/make.conf.
rebooted, kldstat -h shows kernel as 15MB now, "du -sh /boot/kernel is 13M" . but wired memory is still 120MB. what am i missing :/
the kernel file i have edited and compiled is :
Code:
cpu HAMMER
ident VMBSD
makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols
makeoptions WITH_CTF=1 # Run ctfconvert(1) for DTrace support
options SCHED_ULE # ULE scheduler
options NUMA # Non-Uniform Memory Architecture support
options PREEMPTION # Enable kernel thread preemption
options VIMAGE # Subsystem virtualization, e.g. VNET
options INET # InterNETworking
nooptions INET6 # IPv6 communications protocols
nooptions IPSEC_SUPPORT # Allow kldload of ipsec and tcpmd5
nooptions ROUTE_MPATH # Multipath routing support
nooptions FIB_ALGO # Modular fib lookups
nooptions TCP_OFFLOAD # TCP offload
nooptions TCP_BLACKBOX # Enhanced TCP event logging
nooptions TCP_HHOOK # hhook(9) framework for TCP
nooptions TCP_RFC7413 # TCP Fast Open
nooptions SCTP_SUPPORT # Allow kldload of SCTP
nooptions KERN_TLS # TLS transmit & receive offload
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL # Enable gjournal-based UFS journaling
options QUOTA # Enable disk quotas for UFS
nooptions MD_ROOT # MD is a potential root device
nooptions NFSCL # Network Filesystem Client
nooptions NFSD # Network Filesystem Server
nooptions NFSLOCKD # Network Lock Manager
nooptions NFS_ROOT # NFS usable as /, requires NFSCL
nooptions MSDOSFS # MSDOS Filesystem
nooptions CD9660 # ISO 9660 Filesystem
options PROCFS # Process filesystem (requires PSEUDOFS)
options PSEUDOFS # Pseudo-filesystem framework
options TMPFS # Efficient memory filesystem
options GEOM_RAID # Soft RAID functionality.
options GEOM_LABEL # Provides labelization
options EFIRT # EFI Runtime Services support
nooptions COMPAT_FREEBSD32 # Compatible with i386 binaries
nooptions COMPAT_FREEBSD4 # Compatible with FreeBSD4
nooptions COMPAT_FREEBSD5 # Compatible with FreeBSD5
nooptions COMPAT_FREEBSD6 # Compatible with FreeBSD6
nooptions COMPAT_FREEBSD7 # Compatible with FreeBSD7
nooptions COMPAT_FREEBSD9 # Compatible with FreeBSD9
nooptions COMPAT_FREEBSD10 # Compatible with FreeBSD10
nooptions COMPAT_FREEBSD11 # Compatible with FreeBSD11
nooptions COMPAT_FREEBSD12 # Compatible with FreeBSD12
nooptions COMPAT_FREEBSD13 # Compatible with FreeBSD13
nooptions KTRACE # ktrace(1) support
nooptions STACK # stack(9) support
nooptions SYSVSHM # SYSV-style shared memory
nooptions SYSVMSG # SYSV-style message queues
nooptions SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options PRINTF_BUFR_SIZE=128 # Prevent printf output being interspersed.
nooptions KBD_INSTALL_CDEV # install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
nooptions AUDIT # Security event auditing
nooptions CAPABILITY_MODE # Capsicum capability mode
nooptions CAPABILITIES # Capsicum capabilities
nooptions MAC # TrustedBSD MAC Framework
nooptions KDTRACE_FRAME # Ensure frames are compiled in
nooptions KDTRACE_HOOKS # Kernel DTrace hooks
options DDB_CTF # Kernel ELF linker loads CTF data
options INCLUDE_CONFIG_FILE # Include this file in kernel
nooptions RACCT # Resource accounting framework
nooptions RACCT_DEFAULT_TO_DISABLED # Set kern.racct.enable=0 by default
nooptions RCTL # Resource limits
# Debugging support. Always need this:
nooptions KDB # Enable kernel debugger support.
nooptions KDB_TRACE # Print a stack trace for a panic.
# Kernel Sanitizers
nooptions COVERAGE # Generic kernel coverage. Used by KCOV
nooptions KCOV # Kernel Coverage Sanitizer
# Warning: KUBSAN can result in a kernel too large for loader to load
nooptions KUBSAN # Kernel Undefined Behavior Sanitizer
nooptions KCSAN # Kernel Concurrency Sanitizer
# Kernel dump features.
nooptions EKCD # Support for encrypted kernel dumps
nooptions GZIO # gzip-compressed kernel and user dumps
nooptions ZSTDIO # zstd-compressed kernel and user dumps
nooptions DEBUGNET # debugnet networking
nooptions NETDUMP # netdump(4) client support
nooptions NETGDB # netgdb(4) client support
# Make an SMP-capable kernel by default
options SMP # Symmetric MultiProcessor Kernel
# CPU frequency control
device cpufreq
# Bus support.
device acpi
device smbios
options IOMMU
device pci
options PCI_HP # PCI-Express native HotPlug
options PCI_IOV # PCI SR-IOV support
nooptions COMPAT_LINUXKPI
# Enable support for the kernel PLL to use an external PPS signal,
# under supervision of [x]ntpd(8)
# More info in ntpd documentation: http://www.eecis.udel.edu/~ntp
nooptions PPS_SYNC
# ATA controllers
device ahci # AHCI-compatible SATA controllers
device ata # Legacy ATA/SATA controllers
# ATA/SCSI peripherals
device scbus # SCSI bus (required for ATA/SCSI)
device da # Direct Access (disks)
# NVM Express (NVMe) support
device nvme # base NVMe driver
device nvd # expose NVMe namespaces as disks, depends on nvme
# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc # AT keyboard controller
device atkbd # AT keyboard
device psm # PS/2 mouse
device kbdmux # keyboard multiplexer
# syscons is the legacy console driver, resembling an SCO console
device vga # VGA video card driver
device splash # Splash screen and screen saver support
device sc
options SC_PIXEL_MODE # add support for the raster text mode
# vt is the default video console driver
device vt
device vt_vga
device vt_efifb
device vt_vbefb
device agp # support several AGP chipsets
# PCI/PCI-X/PCIe Ethernet NICs that use iflib infrastructure
device iflib
device vmx # VMware VMXNET3 Ethernet
# Pseudo devices.
device crypto # core crypto support
device aesni # AES-NI OpenCrypto module
device loop # Network loopback
device padlock_rng # VIA Padlock RNG
device rdrand_rng # Intel Bull Mountain RNG
device ether # Ethernet support
device vlan # 802.1Q VLAN support
device tuntap # Packet tunnel.
device md # Memory "disks"
device gif # IPv6 and IPv4 tunneling
device firmware # firmware assist module
device xz # lzma decompression
# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device bpf # Berkeley packet filter
# USB support
options USB_DEBUG # enable debug msgs
device uhci # UHCI PCI->USB interface
device ohci # OHCI PCI->USB interface
device ehci # EHCI PCI->USB interface (USB 2.0)
device xhci # XHCI PCI->USB interface (USB 3.0)
device usb # USB Bus (required)
device usbhid # USB HID Transport
device hkbd # HID Keyboard
device ukbd # USB Keyboard
device umass # Disks/Mass storage - Requires scbus and da
# Sound support
device sound # Generic sound driver (required)
device snd_hda # Intel High Definition Audio
device snd_ich # Intel, NVidia and other ICH AC'97 Audio
# VirtIO support
device virtio # Generic VirtIO bus (required)
device virtio_pci # VirtIO PCI device
device vtnet # VirtIO Ethernet device
device virtio_blk # VirtIO Block device
device virtio_scsi # VirtIO SCSI device
device virtio_balloon # VirtIO Memory Balloon device
# Linux KVM paravirtualization support
device kvm_clock # KVM paravirtual clock driver
# Netmap provides direct access to TX/RX rings on supported NICs
device netmap # netmap(4) support
# evdev interface
options EVDEV_SUPPORT # evdev support in legacy drivers
device evdev # input event device support
device uinput # install /dev/uinput cdev
# HID support
options HID_DEBUG # enable debug msgs
device hid # Generic HID support
device hidbus # Generic HID Bus
options IICHID_SAMPLING # Workaround missing GPIO INTR support