danieldk
01-08-2007, 06:13 PM
Today I bought a nice little Nano-ITX box. It uses a VIA Nehemiah CPU (800MHz), does not have fans, and consumes 20W under load, and 10-15W when not under load. NetBSD 3.1 is happily running on the box (still have to set up a lot of things).
It will act as a mail/Samba/VPN/shell server, and to play a lot of games of hack and rogue :).
This is the box (only in Dutch, sorry, but it has a nice back-side picture):
http://www.bnc-distribution.nl/producten/ebox
danieldk
01-08-2007, 06:19 PM
Forgot the obligatory dmesg and uname:
$ uname -a
NetBSD liza.taickim.net 3.1 NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006 builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC i386
$ dmesg
NetBSD 3.1 (GENERIC) #0: Tue Oct 31 04:27:07 UTC 2006
builds@b0.netbsd.org:/home/builds/ab/netbsd-3-1-RELEASE/i386/200610302053Z-obj/home/builds/ab/netbsd-3-1-RELEASE/src/sys/arch/i386/compile/GENERIC
total memory = 247 MB
avail memory = 233 MB
BIOS32 rev. 0 found at 0xfdb30
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: VIA C3 Nehemiah (686-class), 796.19 MHz, id 0x69a
cpu0: features 381b93f<FPU,VME,DE,PSE,TSC,MSR,CX8,SEP,MTRR>
cpu0: features 381b93f<PGE,CMOV,PAT,MMX>
cpu0: features 381b93f<FXSR,SSE>
cpu0: "VIA Nehemiah"
cpu0: I-cache 64 KB 32B/line 2-way, D-cache 64 KB 32B/line 2-way
cpu0: L2 cache 64 KB 32B/line 8-way
cpu0: ITLB 128 4 KB entries 8-way
cpu0: DTLB 128 4 KB entries 8-way
cpu0: 8 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: VIA Technologies VT8623 (Apollo CLE266) CPU-PCI Bridge (rev. 0x00)
agp0 at pchb0: aperture at 0xe0000000, size 0x10000000
ppb0 at pci0 dev 1 function 0: VIA Technologies VT8633 (Apollo Pro 266) CPU-AGP Bridge (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: VIA Technologies VT8623 (Apollo CLE266) VGA Controller (rev. 0x03)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
uhci0 at pci0 dev 16 function 0: VIA Technologies VT83C572 USB Controller (rev. 0x80)
uhci0: interrupting at irq 11
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 3: VIA Technologies VT8237 EHCI USB Controller (rev. 0x82)
ehci0: interrupting at irq 10
ehci0: BIOS refuses to give up ownership, using force
ehci0: EHCI version 1.0
ehci0: companion controller, 2 ports each: uhci0
usb1 at ehci0: USB revision 2.0
uhub1 at usb1
uhub1: VIA Technologie EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub1: single transaction translator
uhub1: 2 ports with 2 removable, self powered
pcib0 at pci0 dev 17 function 0
pcib0: VIA Technologies VT8235 (Apollo KT400) PCI-ISA Bridge (rev. 0x00)
viaide0 at pci0 dev 17 function 1
viaide0: VIA Technologies VT8235 ATA133 controller
viaide0: bus-master DMA support present
viaide0: primary channel configured to compatibility mode
viaide0: primary channel interrupting at irq 14
atabus0 at viaide0 channel 0
viaide0: secondary channel configured to compatibility mode
viaide0: secondary channel ignored (disabled)
auvia0 at pci0 dev 17 function 5: VIA Technologies VT8235 AC'97 Audio (rev 0x50)
auvia0: interrupting at irq 5
auvia0: ac97: VIA Technologies VT1612A codec; headphone, 18 bit DAC, 18 bit ADC, KS Waves 3D
auvia0: ac97: ext id 201<AMAP,VRA>
audio0 at auvia0: full duplex, mmap, independent
vr0 at pci0 dev 18 function 0: VIA VT6102 (Rhine II) 10/100 Ethernet
vr0: interrupting at irq 11
vr0: Ethernet address: 44:4d:50:e1:81:d8
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface
ukphy0: OUI 0x0002c6, model 0x0032, rev. 10
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at pcib0
lpt1 at isa0 port 0x278-0x27b irq : polled
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
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
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
Kernelized RAIDframe activated
umass0 at uhub1 port 1 configuration 1 interface 0
umass0: Genesys Logic USB TO IDE, rev 2.00/0.33, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 1 lun per target
sd0 at scsibus0 target 0 lun 0: <ExcelSto, r Technology J88, 0811> disk fixed
sd0: fabricating a geometry
sd0: 78533 MB, 78533 cyl, 64 head, 32 sec, 512 bytes/sect x 160836480 sectors
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
sd0: fabricating a geometry
boot device: sd0
root on sd0a dumps on sd0b
sd0: fabricating a geometry
sd0: fabricating a geometry
root file system type: ffs
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
(Liza as in "All the clouds'll roll away" :))
danieldk
01-09-2007, 07:19 AM
For those who are interested, I have backported the padlock support from the latest OpenSSL to NetBSD 3.1 (OpenSSL). The patch is available from:
ftp://ftp.netbsd.org/pub/NetBSD/misc/daniel/patches/netbsd31-openssl-padlock.diff
Some benchmarks:
$ openssl engine padlock
(padlock) VIA PadLock (no-RNG, ACE)
$ openssl speed -evp aes-256-cbc
To get the most accurate results, try to run this
program when this computer is idle.
Doing aes-256-cbc for 3s on 16 size blocks: 883423 aes-256-cbc's in 2.97s
Doing aes-256-cbc for 3s on 64 size blocks: 234067 aes-256-cbc's in 2.98s
Doing aes-256-cbc for 3s on 256 size blocks: 59549 aes-256-cbc's in 2.98s
Doing aes-256-cbc for 3s on 1024 size blocks: 14949 aes-256-cbc's in 2.98s
Doing aes-256-cbc for 3s on 8192 size blocks: 1871 aes-256-cbc's in 2.98s
OpenSSL 0.9.7d 17 Mar 2004
built on: NetBSD 3.1
options:bn(32,32) md2(int) rc4(ptr,int) des(ptr,risc2,16,long)
aes(partial) blow
fish(ptr2)
compiler: gcc version 3.3.3 (NetBSD nb3 20040520)
available timing options: USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192
bytes
aes-256-cbc 4755.78k 5028.69k 5116.56k 5137.66k
5144.63k
$ openssl speed -evp aes-256-cbc -engine padlock
engine "padlock" set.
To get the most accurate results, try to run this
program when this computer is idle.
Doing aes-256-cbc for 3s on 16 size blocks: 6041611 aes-256-cbc's in 2.97s
Doing aes-256-cbc for 3s on 64 size blocks: 4866167 aes-256-cbc's in 2.95s
Doing aes-256-cbc for 3s on 256 size blocks: 2794934 aes-256-cbc's in
2.98s
Doing aes-256-cbc for 3s on 1024 size blocks: 1032627 aes-256-cbc's in
2.98s
Doing aes-256-cbc for 3s on 8192 size blocks: 149950 aes-256-cbc's in
2.98s
OpenSSL 0.9.7d 17 Mar 2004
built on: NetBSD 3.1
options:bn(32,32) md2(int) rc4(ptr,int) des(ptr,risc2,16,long)
aes(partial) blow
fish(ptr2)
compiler: gcc version 3.3.3 (NetBSD nb3 20040520)
available timing options: USE_TOD HZ=100 [sysconf value]
timing function used: getrusage
The 'numbers' are in 1000s of bytes per second processed.
type 16 bytes 64 bytes 256 bytes 1024 bytes 8192
bytes
aes-256-cbc 32526.16k 105648.51k 240187.07k 354907.52k
danieldk
01-10-2007, 07:06 PM
Hmmm, seems that I also have it running with the in-kernel crypto framework:
http://danieldk.org/blog/NetBSD/Crypto
(I ported the code from OpenBSD.)
danieldk
01-16-2007, 12:20 PM
If anybody is inclined to test, here is my patch for adding kernel support for VIA ACE:
http://danieldk.org/patches/netbsd499-via_ace-r2.diff
danieldk
02-17-2007, 03:39 AM
Committed to NetBSD-Current.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.