Wydrukuj tę dokumentację Pokaż jako slajdy

Opcje bootowania serwera

Za pomocą pliku /boot/loader.conf można wysterować serwer w celu lepszego działania. Szczególnie możliwe jest dogranie różnych niezbędnych modułów.

loader.conf

#
# loader.conf
#
# Lokalna konfiguracja bootowania systemu operacyjnego
#

# --- Za/ladowanie modu/l/ow do obs/lugi system/ow plik/ow -----------------
#
opensolaris_load="YES"
zfs_load="YES"

# szyfrowana partycja SWAP
geom_eli_load="YES"

# wy/l/aczenie gptid
kern.geom.label.gptid.enable=0

# --- ustawienie konsoli VT (zamiast SC) -----------------------------------
#
hw.vga.textmode=1
kern.vty=vt

# dla serwer/ow, kt/ore to wspieraj/a (np. HP, Dell, etc.)
ipmi_load="YES"

# --- Za/ladowanie modu/l/o/w odpowiedzialnych za interfejsy sieciowe ------
#
miibus_load="YES"
if_bge_load="YES"

### potrzebne w celu posiadania klawiatury PS/2 (szczeg/olnie przez KVM via JNLP)
### UWAGA!!! Dopisa/c dopiero przed instalacj/a oraz uruchomieniem w/lasnego kernela!
### Wpisanie poni/zszego dla kernela "instalacyjnego" powoduje problem z bootowaniem
###

# --- Za/ladowanie oraz konfiguracja obs/lugi wielu klawiatur ---------------
#
kbdmux_load="YES"
hint.atkbdc.0.at="isa"
hint.atkbdc.0.port="0x060"
hint.atkbd.0.at="atkbdc"
hint.atkbd.0.irq="1"

# --- Konfiguracja rozmiaru pami/eci dla kernela oraz ZFS -------------------
#
# vm.kmem_size= 150% fizycznej pami/eci RAM
# zfs.zfs.arc_max= 50% fizycznej pami/eci RAM
#
vm.kmem_size="NNG"
zfs.zfs.arc_max="NNG"

# --- /scie/zka, z kt/orej nale/zy startowa/c system ------------------------
#
vfs.root.mountfrom="zfs:sys/bootenv/default"

# accf accept filters are used so the server will not have to context switch several times
# before performing the initial parsing of the request. This could decrease server load by
# reducing the amount of CPU time to handle incoming requests.

# Wait for data accept filter. For nginx https servers add "listen
# 127.0.0.1:443 ssl spdy accept_filter=dataready;"
##accf_data_load="YES"

# buffer incoming connections until complete HTTP requests arrive (nginx
# apache) for nginx http add, "listen 127.0.0.1:80 accept_filter=httpready;"
##accf_http_load="YES"

# Wait for full DNS request accept filter (unbound)
accf_dns_load="YES"

# Je/zeli nie jest wkompilowane w kernel:
# Advanced Host Controller Interface (AHCI)
#ahci_load="YES"

# Asynchronous I/O, or non-blocking I/O is a form of input/output processing
# permiting other processing to continue before the transmission has finished.
# AIO is used for accelerating Nginx on ZFS. Check for our tutorials on both.
aio_load="YES"

# thermal sensors for intel or amd cpus
coretemp_load="YES"

# Increase VDEV read ahead cache size. This reduces scrub times and
# metadata-intensive tasks for a small cost in RAM. The vdev cache uses a
# simple FIFO rolling data set.
vfs.zfs.vdev.cache.size="64M"
vfs.zfs.vdev.cache.max="64M"

Źródła w sieci internet


{i}  (c) 2004 - 2026 BSD Serwis Krzysztof Stryjek. W przypadku błędów, poprawek proszę kontaktować się z administratorem wiki.