Hi all,

last night, I installed 4.1 on the new ALIX.1C:
http://www.pcengines.ch/alix1c.htm (see dmesg at bottom).
The intended use of the box is a home router/firewall/NAT/DNS/DHCP
for my home "network" of about four computers (heterogeneous).

Everything works fine (as usual with OpenBSD), but
there are a few fine points I need some advice with.

Firstly, swap (i don't really mind reinstalling). Install guide says

        On the root disk, the two partitions 'a' and 'b' must be
        created. The installation process will not proceed until these
        two partitions are available. 'a' will be used for the root
        filesystem (/) and 'b' will be used as swap space.

It also says

        The 'b' partition of your first drive automatically becomes your
        system swap partition -- we recommend a minimum of 32MB but if
        you have disk to spare make it at least 64MB. If you have lots
        of disk space to spare, make this 256MB, or even 512MB. On the
        other hand, if you are using a flash device for disk, you
        probably want no swap partition at all. Many people follow an
        old rule of thumb that your swap partition should be twice the
        size of your main system RAM. This rule is nonsense. 

The machine has 256M of RAM, and the storage is a 2G CF card (seen as
wd0). The machine is mostly idle (basically just routes). How much swap
do you think I should set for such operation? For regular operation,
I don't think I need a swap partition at all (how would I do that?
A 'b' partition of zero size, as it has to exist?), but to be able
to save possible core dumps, I am thinking of 300M swap and 300M /var
(to hold /var/crash). Is this reasonable?

Secondly, the network interfaces. The box comes with an on-board
vr0 at pci0 dev 13 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10
which I currently use as the external iface, and the PIC slot holds
rl0 at pci0 dev 12 function 0 "Realtek 8139" rev 0x10: irq 11
which is used as the internal iface. I also have the following
cards in my hands, and I would like to figure out which combination
of external/internal would give me the "best" performance (if it
makes any difference at all):

        Intel PRO/100 S Desktop adapter
        3C905C-TX-M Etherlink 10/100 PCI 3

I don't have any idea about what amount of e.g. fragment reassembly the
external/internal iface needs to do, and which card (or which card's
driver) is "best" for that. The machine only has one PCI slot, so one of
these has to be the on-board VIA. Which of the others is "best
supported" in obsd (and which vendor is most open)?

Thirdly, the CF storage. Having read
http://www.kaschwig.net/projects/openbsd/wrap/#mfs
http://blog.innerewut.de/2005/05/14/openbsd-3-7-on-wrap
http://blog.innerewut.de/2005/05/19/openbsd-3-7-on-wrap-revised
http://blog.innerewut.de/2005/06/03/small-update-on-openbsd-3-7-on-wrap
(which apply to 3.7 on WRAP, the predecesor of ALIX), I am concerned
about the CF wearing off. As these articles are from 2005 - do these
things still apply to newer CF cards, and should I therefore set up
a mfs? What else should I do to make the CF card live longer (noatime
comes to mind of course).

        Thanks for any suggestions

                Jan


OpenBSD 4.1 (GENERIC) #1435: Sat Mar 10 19:07:45 MST 2007
    [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD" 586-class) 499 
MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem  = 259284992 (253208K)
avail mem = 228904960 (223540K)
using 3195 buffers containing 13086720 bytes (12780K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+ BIOS, date 08/21/07, BIOS32 rev. 0 @ 0xfa960
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdfb4
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf40/112 (5 entries)
pcibios0: bad IRQ table checksum
pcibios0: PCI BIOS has 5 Interrupt Routing table entries
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: no compatible PCI ICU found
pcibios0: Warning, unable to fix up PCI interrupt routing
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc0000/0x8000 0xef000/0x1000!
acpi at mainbus0 not configured
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x31
vga1 at pci0 dev 1 function 1 "AMD Geode LX Video" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
rl0 at pci0 dev 12 function 0 "Realtek 8139" rev 0x10: irq 11, address 
00:50:fc:e2:cf:20
rlphy0 at rl0 phy 0: RTL internal PHY
vr0 at pci0 dev 13 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 10, address 
00:0d:b9:0c:e1:40
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI 0x004063, 
model 0x0034
pcib0 at pci0 dev 15 function 0 "AMD CS5536 ISA" rev 0x03
pciide0 at pci0 dev 15 function 2 "AMD CS5536 IDE" rev 0x01: DMA, channel 0 
wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SanDisk SDCFX3-2048>
wd0: 4-sector PIO, LBA, 1953MB, 4001760 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
"AMD CS5536 Audio" rev 0x01 at pci0 dev 15 function 3 not configured
ohci0 at pci0 dev 15 function 4 "AMD CS5536 USB" rev 0x02: irq 11, version 1.0, 
legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: AMD OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 4 ports with 4 removable, self powered
ehci0 at pci0 dev 15 function 5 "AMD CS5536 USB" rev 0x02: irq 11
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: AMD EHCI root hub, rev 2.00/1.00, addr 1
uhub1: 4 ports with 4 removable, self powered
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
lm0 at isa0 port 0x290/8: W83627HF
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask fb65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
mtrr: K6-family MTRR support (2 registers)
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302

Reply via email to