Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2018 14:40:34 -0800
From:      Michael Sierchio <kudzu@tenebras.com>
To:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Files in /
Message-ID:  <CAHu1Y71EriL_kpBvyEXcutNfdtwYydkviv7j2AFQd+m5Kn+ujQ@mail.gmail.com>
In-Reply-To: <20181205215559.734d576dff61d5a22e3ea014@sohara.org>
References:  <66B63BE11669F00AA754FE87@Pauls-MacBook-Pro.local> <CADqw_gKxm9x9t6KJSJ4AA8nZ8SdJt8D72D8jHoyNqnPZb9WA0g@mail.gmail.com> <FC672515FD75505BC3980937@Pauls-MacBook-Pro.local> <20181205093022.3882bad5.freebsd.ed.lists@sumeritec.com> <20181205130940.7ad1c3ba@gumby.homeunix.com> <55F2B8A3-F398-4A78-964D-11D0DAC6BB46@kreme.com> <CAHu1Y73emWp04fvzh2tK-41FoDXbm0BFYgnugg=uLA45u3zw7g@mail.gmail.com> <20181205215559.734d576dff61d5a22e3ea014@sohara.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
# 11.2 EC2 kernconf for t2 and m5 instance types
# most cruft removed, probably could be smaller

cpu             HAMMER
ident           MAMELON

# /etc/make.conf should have:
#    KERNCONF=3DMAMELON
#    NO_MODULES=3DTRUE

options         SCHED_ULE               # ULE scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         IPSEC                   # IP (v4/v6) security
options         TCP_OFFLOAD             # TCP offload
options         SCTP                    # Stream Control Transmission
Protocol
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_DIRHASH             # Improve performance on big
directories
options         QUOTA                   # Enable disk quotas for UFS
options         MD_ROOT                 # MD is a potential root device
options         PROCFS                  # Process filesystem (requires
PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options         GEOM_PART_GPT           # GUID Partition Tables.
options         GEOM_ELI
options         GEOM_LABEL              # Provides labelization
options         SCSI_DELAY=3D5000         # Delay (in ms) before probing SC=
SI
options         STACK                   # stack(9) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options         PRINTF_BUFR_SIZE=3D128    # Prevent printf output being
interspersed.
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         HWPMC_HOOKS             # Necessary kernel hooks for
hwpmc(4)
options         CAPABILITY_MODE         # Capsicum capability mode
options         CAPABILITIES            # Capsicum capabilities
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
options         RCTL                    # Resource limits
options         RACCT

options         COMPAT_LINUX32
options         COMPAT_FREEBSD32

# Make an SMP-capable kernel by default
options         SMP                     # Symmetric MultiProcessor Kernel
options         DEVICE_NUMA             # I/O Device Affinity
options         EARLY_AP_STARTUP

options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=3D100
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPFIREWALL_NAT
options         LIBALIAS

options         DUMMYNET

options         ROUTETABLES=3D16

device          cpufreq
device          coretemp

# Bus support.
device          acpi
options         ACPI_DMAR
device          pci

device          scbus                   # SCSI bus (required for ATA/SCSI)
device          da                      # Direct Access (disks)
device          pass                    # Passthrough device (direct
ATA/SCSI access)
device          ses                     # Enclosure Services (SES and
SAF-TE)
#device         ctl                     # CAM Target Layer


# crypto support
device          crypto
device          cryptodev

device          nvme                    # base NVMe driver
device          nvd                     # expose NVMe namespaces as disks,
depends on nvme
device          ena                     # m5, c5, etc.
device          enc

# 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

# vt is the new video console driver
device          vt
device          vt_vga
device          vt_efifb

# Pseudo devices.
device          loop                    # Network loopback
device          random                  # Entropy device
device          padlock_rng             # VIA Padlock RNG
device          rdrand_rng              # Intel Bull Mountain RNG
device          ether                   # Ethernet support
device          vlan                    # 802.1Q VLAN support
device          tun                     # Packet tunnel.
device          md                      # Memory "disks"
device          gif                     # IPv6 and IPv4 tunneling
device          firmware                # firmware assist module

device          bpf                     # Berkeley packet filter

# 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

# HyperV drivers
device          hyperv          # HyperV drivers

# Xen HVM Guest Optimizations
# NOTE: XENHVM depends on xenpci.  They must be added or removed together.
options         XENHVM          # Xen HVM kernel infrastructure
device          xenpci          # Xen HVM Hypervisor services driver

###########################################################################=
#####

# 11.2 kernconf for PCEngines
# CPU: AMD GX-412TC SOC (998.16-MHz K8-class CPU)
# FreeBSD/SMP: 1 package(s) x 4 core(s)

cpu             HAMMER
ident           MAMELON

# /etc/make.conf should have:
#    KERNCONF=3DMAMELON
#    NO_MODULES=3DTRUE

options         SCHED_ULE               # ULE scheduler
options         PREEMPTION              # Enable kernel thread preemption
options         INET                    # InterNETworking
options         INET6                   # IPv6 communications protocols
options         IPSEC                   # IP (v4/v6) security
options         TCP_OFFLOAD             # TCP offload
options         SCTP                    # Stream Control Transmission
Protocol
options         FFS                     # Berkeley Fast Filesystem
options         SOFTUPDATES             # Enable FFS soft updates support
options         UFS_DIRHASH             # Improve performance on big
directories
options         QUOTA                   # Enable disk quotas for UFS
options         MD_ROOT                 # MD is a potential root device
options         PROCFS                  # Process filesystem (requires
PSEUDOFS)
options         PSEUDOFS                # Pseudo-filesystem framework
options TMPFS
options         GEOM_PART_GPT           # GUID Partition Tables.
options         GEOM_ELI
options         GEOM_LABEL              # Provides labelization
options         SCSI_DELAY=3D5000         # Delay (in ms) before probing SC=
SI
options         STACK                   # stack(9) support
options         SYSVSHM                 # SYSV-style shared memory
options         SYSVMSG                 # SYSV-style message queues
options         SYSVSEM                 # SYSV-style semaphores
options         _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time
extensions
options         PRINTF_BUFR_SIZE=3D128    # Prevent printf output being
interspersed.
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         HWPMC_HOOKS             # Necessary kernel hooks for
hwpmc(4)
options         CAPABILITY_MODE         # Capsicum capability mode
options         CAPABILITIES            # Capsicum capabilities
options         INCLUDE_CONFIG_FILE     # Include this file in kernel
options         RCTL                    # Resource limits
options         RACCT

options         COMPAT_LINUX32
options         COMPAT_FREEBSD32

# Make an SMP-capable kernel by default
options         SMP                     # Symmetric MultiProcessor Kernel
options         DEVICE_NUMA             # I/O Device Affinity
options         EARLY_AP_STARTUP

device ahci # AHCI-compatible SATA controllers

device          uart                    # Generic UART driver

options         IPFIREWALL
options         IPFIREWALL_VERBOSE
options         IPFIREWALL_VERBOSE_LIMIT=3D100
options         IPFIREWALL_DEFAULT_TO_ACCEPT
options         IPFIREWALL_NAT
options         LIBALIAS

options         DUMMYNET

options         ROUTETABLES=3D16

device          cpufreq
device          coretemp
device          amdtemp

# Bus support.
device acpi
options ACPI_DMAR
device pci

device          scbus                   # SCSI bus (required for ATA/SCSI)
device          da                      # Direct Access (disks)
device          pass                    # Passthrough device (direct
ATA/SCSI access)
device          ses                     # Enclosure Services (SES and
SAF-TE)
device          ctl                     # CAM Target Layer


# crypto support
device          crypto
device          cryptodev

device          igb

# 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

# vt is the new video console driver
device          vt
device          vt_vga
device          vt_efifb

# MMC/SD
device mmc # MMC/SD bus
device mmcsd # MMC/SD memory card
device sdhci # Generic PCI SD Host Controller

# 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          ukbd                    # Keyboard
device          umass                   # Disks/Mass storage - Requires
scbus and da

# Pseudo devices.
device          loop                    # Network loopback
device          random                  # Entropy device
device          padlock_rng             # VIA Padlock RNG
device          rdrand_rng              # Intel Bull Mountain RNG
device          ether                   # Ethernet support
device          vlan                    # 802.1Q VLAN support
device          tun                     # Packet tunnel.
device          md                      # Memory "disks"
device          gif                     # IPv6 and IPv4 tunneling
device          firmware                # firmware assist module

device          bpf                     # Berkeley packet filter





On Wed, Dec 5, 2018 at 1:59 PM Steve O'Hara-Smith <steve@sohara.org> wrote:

> On Wed, 5 Dec 2018 10:04:14 -0800
> Michael Sierchio <kudzu@tenebras.com> wrote:
>
> > Custom monolithic kernels are
> >
> > 8260    /boot/kernel/
> >
> > (yes, that is a boast)
>
>         Wow reminds me of 1.1 days (actually that would be huge by 1.1
> standards the boxes I ran then only had 16MB of RAM) - still impressive.
>
>         Care to share the config file ? It must be close to minimal.
>
> --
> Steve O'Hara-Smith <steve@sohara.org>
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>


--=20
"Well," Brahma said, "even after ten thousand explanations, a fool is no
wiser, but an intelligent person requires only two thousand five hundred."

- The Mah=C4=81bh=C4=81rata



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAHu1Y71EriL_kpBvyEXcutNfdtwYydkviv7j2AFQd+m5Kn+ujQ>