← All posts tagged OpenBSD

забавное различие m_defrag в openbsd и freebsd, заключающееся в том, что openbsd не изменяет указатель на оригинальный mbuf в отличии от freebsd, выливается в различие того, что можно делать с interface send queue через IFQ_POLL и IFQ_DEQUEUE, учитывая что *_encap может сделать m_defrag если mbuf цепочка окажется слишком длинной для мапы tx дескриптора.

06:04 < deraadt> I do not believe in the arm memmove. You don't write a 450
instruction memory move.
06:04 < deraadt> It falls out of your cache. It underperforms. The more
tricks you do, the worse it is.
06:05 < deraadt> Whoever wrote that must have been smoking something really
bad, AND done no testing.
06:05 < deraadt> Alternative is that arm sucks shit.

myx0 at pci7 dev 0 function 0 "Myricom Z8E" rev 0x01: msi, model 10G-PCIE2-8C2-2S, address 00:60:dd:45:4f:b0
myx1 at pci9 dev 0 function 0 "Myricom Z8E" rev 0x01: msi, model 10G-PCIE2-8C2-2S, address 00:60:dd:45:4f:b1

$ ifconfig myx0                                                                
myx0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:60:dd:45:4f:b0
        priority: 0
        media: Ethernet autoselect (autoselect full-duplex,rxpause,txpause)
        status: active
        inet6 fe80::260:ddff:fe45:4fb0%myx0 prefixlen 64 scopeid 0x7
        inet 10.201.1.2 netmask 0xffffff00 broadcast 10.201.1.255
$ vmstat -i      
interrupt                       total     rate
pyro0                          130162      356
bge0                              803        2
mpi0                             2244        6
com0                              117        0
clock                           73259      200
myx0                           127918      350
Total                          334503      916

# bioctl -c 1 -l sd0d,sd1d softraid0
sd2 at scsibus1 targ 1 lun 0: <OPENBSD, SR RAID 1, 005> SCSI2 0/direct fixed
sd2: 69938MB, 512 bytes/sector, 143234040 sectors
softraid0: SR RAID 1 volume attached as sd2

а то что с ними делать?

mpi0 at pci15 dev 1 function 0 "Symbios Logic SAS1064" rev 0x02: msi
scsibus0 at mpi0: 63 targets
sd0 at scsibus0 targ 0 lun 0: <FUJITSU, MAY2073RCSUN72G, 0701> SCSI2 0/direct fixed naa.500000e0194d97b0
sd0: 70007MB, 512 bytes/sector, 143374738 sectors
sd1 at scsibus0 targ 1 lun 0: <FUJITSU, MAY2073RCSUN72G, 0701> SCSI2 0/direct fixed naa.500000e0172b2060
sd1: 70007MB, 512 bytes/sector, 143374738 sectors

победил таки.
oce0 at pci3 dev 0 function 0 "ServerEngines BladeEngine3 10GbE" rev 0x02: apic 9 int 16, address 5c:f3:fc:36:1a:80
oce1 at pci3 dev 0 function 1 "ServerEngines BladeEngine3 10GbE" rev 0x02: apic 9 int 20, address 5c:f3:fc:36:1a:84

back-to-back:
m4:~$ ifconfig ix
ix0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:25:90:6d:44:f2
        priority: 0
        media: Ethernet autoselect (10GbaseT full-duplex)
        status: active
ix1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:25:90:6d:44:f3
        priority: 0
        media: Ethernet autoselect (10GbaseT full-duplex)
        status: active

m4:~$ dmesg | grep ^ix                                                         
ix0 at pci2 dev 0 function 0 "Intel X540T" rev 0x01: msi, address 00:25:90:6d:44:f2
ix1 at pci2 dev 0 function 1 "Intel X540T" rev 0x01: msi, address 00:25:90:6d:44:f3
m4:~$ sudo ifconfig ix0  
ix0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:25:90:6d:44:f2
        priority: 0
        media: Ethernet autoselect (1000baseT full-duplex)
        status: active
        inet6 fe80::225:90ff:fe6d:44f2%ix0 prefixlen 64 scopeid 0x1