FreeBSD 3.2 カスタマイズ(カーネル再構築...) | HTTPD Installation |
Last modified : 2000/03/24 |
Copyright (c) 1992-1999 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.2-RELEASE #0: Tue May 18 04:05:08 GMT 1999 jkh@cathair:/usr/src/sys/compile/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Pentium III (548.32-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x673 Stepping=3 Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,<b24>,<b25>> real memory = 67100672 (65528K bytes) avail memory = 61763584 (60316K bytes) Preloaded elf kernel "kernel" at 0xc0358000. Probing for devices on PCI bus 0: chip0: <Intel 82443BX host to PCI bridge> rev 0x03 on pci0.0.0 chip1: <Intel 82443BX host to AGP bridge> rev 0x03 on pci0.1.0 chip2: <PCI to PCI bridge (vendor=1011 device=0024)> rev 0x03 on pci0.2.0 chip3: <Intel 82371AB PCI to ISA bridge> rev 0x02 on pci0.7.0 ide_pci0: <Intel PIIX4 Bus-master IDE controller> rev 0x01 on pci0.7.1 chip4: <Intel 82371AB Power management controller> rev 0x02 on pci0.7.3 fxp0: <Intel EtherExpress Pro 10/100B Ethernet> rev 0x08 int a irq 11 on pci0.13.0 fxp0: Ethernet address 00:d0:b7:44:25:a0 ... |
# cd /usr/src/sys/i386/conf # cp GENERIC ml008 |
# # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks # # For more information read the handbook part System Administration -> # Configuring the FreeBSD Kernel -> The Configuration File. # The handbook is available in /usr/share/doc/handbook or online as # latest version from the FreeBSD World Wide Web server # <URL:http://www.FreeBSD.ORG/> # # An exhaustive list of options and more detailed explanations of the # device lines is present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $Id: GENERIC,v 1.143.2.12 1999/05/14 15:12:26 jkh Exp $ machine "i386" cpu "I386_CPU" cpu "I486_CPU" cpu "I586_CPU" cpu "I686_CPU" ident GENERIC maxusers 32 options "MAXMEM=262144" (← 256MB * 1024) options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options MFS #Memory Filesystem options MFS_ROOT #MFS usable as root device, "MFS" req'ed options NFS #Network Filesystem ... |
# cd /usr/src/sys/i386/conf # /usr/sbin/config ml008 # cd ../../compile/ml008 # make depend # make # make install # shutdown -r now |
参考 --- | カスタムカーネルの構築とインストール(FreeBSD ハンドブック) |
コンフィグレーション ファイル(FreeBSD ハンドブック) | |
30分でわかるシステムの再構築 |
# # GENERIC -- Generic machine with WD/AHx/NCR/BTx family disks # # For more information read the handbook part System Administration -> # Configuring the FreeBSD Kernel -> The Configuration File. # The handbook is available in /usr/share/doc/handbook or online as # latest version from the FreeBSD World Wide Web server # <URL:http://www.FreeBSD.ORG/> # # An exhaustive list of options and more detailed explanations of the # device lines is present in the ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $Id: GENERIC,v 1.143.2.12 1999/05/14 15:12:26 jkh Exp $ machine "i386" #cpu "I386_CPU" #cpu "I486_CPU" #cpu "I586_CPU" cpu "I686_CPU" ident GENERIC # maxusers 32 maxusers 256 options "MAXMEM=262144" # semaphores configuration for PostgreSQL options SEMMAP=41 options SEMMNI=39 options SEMMNS=150 # shared memory configration for PostgreSQL options SHMALL=1280 options "SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)" options SHMMAXPGS=1280 #options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options MFS #Memory Filesystem options MFS_ROOT #MFS usable as root device, "MFS" req'ed ... # KTRACE enables the system-call tracing facility ktrace(2). # This adds 4 KB bloat to your kernel, and slightly increases # the costs of each syscall. options KTRACE #kernel tracing # This provides support for System V shared memory and message queues. # options SYSVSHM options SYSVMSG options SYSVSEM # The `bpfilter' pseudo-device enables the Berkeley Packet Filter. Be # aware of the legal and administrative consequences of enabling this # option. The number of devices determines the maximum number of # simultaneous BPF clients programs runnable. pseudo-device bpfilter 4 #Berkeley packet filter |
options SYSVSHM options SYSVSEM options SYSVMSG |
maxusers 256 # semaphores configuration for PostgreSQL options SEMMAP=41 options SEMMNI=39 options SEMMNS=150 # shared memory configration for PostgreSQL options SHMALL=1280 options "SHMMAX=(SHMMAXPGS*PAGE_SIZE+1)" options SHMMAXPGS=1280 |
参考 --- | 書籍:PostgreSQL 完全攻略ガイド(技術評論社)の「大規模ユーザ数への対応」 |
[pgsql-jp 14078] Re: FreeBSD v3.4 におけるKernel再構築について(pgsql-jp メーリングリスト) |
# Device Mountpoint FStype Options Dump Pass# /dev/da0s1b none swap sw 0 0 /dev/da0s1a / ufs rw,async 1 1 /dev/da0s1f /usr ufs rw,async 2 2 /dev/da0s1e /var ufs rw,async 2 2 /dev/wcd0c /cdrom cd9660 ro,noauto 0 0 proc /proc procfs rw 0 0 |