ntp on soekris
Hi, I have some flapping in ntp on soekris. Is it important ? First soekris (auto reboot each 15 and 45 minutes) Jun 8 06:17:46 r001 ntpd[17515]: adjusting local clock by 0.364500s Jun 8 06:47:45 r001 ntpd[26194]: adjusting local clock by 0.439883s Jun 8 07:17:41 r001 ntpd[22494]: adjusting local clock by 0.513877s Jun 8 07:47:43 r001 ntpd[30227]: adjusting local clock by 0.585656s Jun 8 08:17:42 r001 ntpd[4523]: adjusting local clock by 0.661055s Jun 8 08:47:44 r001 ntpd[23534]: adjusting local clock by -0.270700s Jun 8 09:17:41 r001 ntpd[26488]: adjusting local clock by -0.191056s Jun 8 09:47:46 r001 ntpd[23319]: adjusting local clock by 0.875716s Jun 8 09:51:26 r001 ntpd[23319]: adjusting local clock by 0.816038s Jun 8 09:55:43 r001 ntpd[23319]: adjusting local clock by -0.320128s Jun 8 09:59:52 r001 ntpd[23319]: adjusting local clock by -0.695182s Jun 8 10:01:35 r001 ntpd[23319]: adjusting local clock by -0.338598s Jun 8 10:05:18 r001 ntpd[23319]: adjusting local clock by 0.156039s Second soekris (auto reboot each 00 and 30 minutes) Jun 8 05:32:29 r002 ntpd[22037]: adjusting local clock by 0.915120s Jun 8 05:36:37 r002 ntpd[22037]: adjusting local clock by 0.626073s Jun 8 05:40:54 r002 ntpd[22037]: adjusting local clock by -0.447298s Jun 8 05:44:06 r002 ntpd[22037]: adjusting local clock by -0.466533s Jun 8 05:47:34 r002 ntpd[22037]: adjusting local clock by 0.135212s Jun 8 05:58:51 r002 ntpd[22037]: adjusting local clock by 0.131027s Jun 8 06:02:45 r002 ntpd[15955]: adjusting local clock by 0.961918s Jun 8 06:32:26 r002 ntpd[22591]: adjusting local clock by 1.017864s Jun 8 07:02:31 r002 ntpd[21007]: adjusting local clock by 1.060575s Jun 8 07:05:36 r002 ntpd[21007]: adjusting local clock by 0.529033s Jun 8 07:29:34 r002 ntpd[21007]: adjusting local clock by -0.530499s Jun 8 08:02:27 r002 ntpd[787]: adjusting local clock by 1.159095s Jun 8 08:32:29 r002 ntpd[24889]: adjusting local clock by 0.204871s Jun 8 09:02:27 r002 ntpd[12635]: adjusting local clock by 0.255003s Jun 8 09:32:28 r002 ntpd[17403]: adjusting local clock by 0.302008s Jun 8 10:02:29 r002 ntpd[11060]: adjusting local clock by 0.353288s I have some other soekris, and I never have so many log message. On these others box there are a adjusting message once by week or once a day. There are too many back and forward adjustements too close in time. Notice: The auto reboot is done by cron. I just do that because I test my redundant firewall. I may accept that during reboot the RTC lost it accuracy But if I take a slice a 30 minutes between 2 reboots, there are strange thing: Jun 8 09:47:46 r001 ntpd[23319]: adjusting local clock by 0.875716s Jun 8 09:51:26 r001 ntpd[23319]: adjusting local clock by 0.816038s Jun 8 09:55:43 r001 ntpd[23319]: adjusting local clock by -0.320128s Jun 8 09:59:52 r001 ntpd[23319]: adjusting local clock by -0.695182s Jun 8 10:01:35 r001 ntpd[23319]: adjusting local clock by -0.338598s Jun 8 10:05:18 r001 ntpd[23319]: adjusting local clock by 0.156039s It looks like the correction may have been done twice (0.875716s and 0.816038s) Too much in one direction, then (-0.320128s, -0.695182s, -0.338598s) The sum of the 5 first lines is 0.338s Same things with Jun 8 05:32:29 r002 ntpd[22037]: adjusting local clock by 0.915120s Jun 8 05:36:37 r002 ntpd[22037]: adjusting local clock by 0.626073s Jun 8 05:40:54 r002 ntpd[22037]: adjusting local clock by -0.447298s Jun 8 05:44:06 r002 ntpd[22037]: adjusting local clock by -0.466533s Jun 8 05:47:34 r002 ntpd[22037]: adjusting local clock by 0.135212s Jun 8 05:58:51 r002 ntpd[22037]: adjusting local clock by 0.131027s Cordialement, Jean-Girard Pailloncy cat /etc/ntpd.conf # $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $ # sample ntpd configuration file, see ntpd.conf(5) # Addresses to listen on (ntpd does not listen by default) #listen on * # sync to a single server #server ntp.example.org # use a random selection of 8 public stratum 2 servers # see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers servers pool.ntp.org dmesg OpenBSD 3.9 (GENERIC) #617: Thu Mar 2 02:26:48 MST 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Geode(TM) Integrated Processor by National Semi (Geode by NSC 586-class) 267 MHz cpu0: FPU,TSC,MSR,CX8,CMOV,MMX cpu0: TSC disabled real mem = 133799936 (130664K) avail mem = 115367936 (112664K) using 1658 buffers containing 6791168 bytes (6632K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 20/41/22, BIOS32 rev. 0 @ 0xf7840 pcibios0 at bios0: rev 2.0 @ 0xf/0x1 pcibios0: pcibios_get_intr_routing - function not supported pcibios0: PCI IRQ Routing information unavailable. pcibios0: PCI bus #1 is the last bus bios0: ROM list: 0xc8000/0x9000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Cyrix GXm PCI rev 0x00 sis0 at pci0 dev 6 function 0 NS DP83815 10/100 rev
Re: ntp on soekris
Jun 8 09:47:46 r001 ntpd[23319]: adjusting local clock by 0.875716s Jun 8 09:51:26 r001 ntpd[23319]: adjusting local clock by 0.816038s Note that the time shown is *not* the time being adjusted, but the difference from true time. I.e at first the offset is 0.87s and later it is only 0.81s so it is slowly getting there. Ok. Sorry to misunderstand the numbers. I do some calculation in spreadsheet. The skew is between -10.7 and 3.7 milliseconds/second. The man page of adjtime says: delta is positive, a larger increment than normal is used. The skew used to perform the correction is generally a fraction of one percent. Thus, An average correction of 10.7 milliseconds in 1 seconds during 4 minutes is larger than a fraction of one percent. I wonder if my understanding is correct, and why the skew is so fast. And last question, is it a real problem ? time: time in log file adjusting: number in second in adjusting by message unnamed column: delta in time and in off second skew: speed of the correction. time adjusting skew (ms/s) 00:14:04 0.161853 00:17:47 0.914204 223.00 0.752351 3.3738 00:21:30 0.912827 223.00 -0.001377 -0.0062 01:47:43 0.135143 5173.00 -0.777684 -0.1503 02:17:44 1.207917 1801.00 1.072774 0.5957 02:47:42 1.281030 1798.00 0.073113 0.0407 03:17:41 0.356476 1799.00 -0.924554 -0.5139 03:47:42 0.429416 1801.00 0.072940 0.0405 03:51:22 0.213789 220.00 -0.215627 -0.9801 03:58:06 -0.164806 404.00 -0.378595 -0.9371 04:17:44 0.507832 1178.00 0.672638 0.5710 04:49:11 1.575442 1887.00 1.067610 0.5658 05:17:43 0.660218 1712.00 -0.915224 -0.5346 05:47:44 0.728825 1801.00 0.068607 0.0381 06:17:39 0.798930 1795.00 0.070105 0.0391 06:22:00 0.240950 261.00 -0.557980 -2.1379 06:29:28 -0.242509 448.00 -0.483459 -1.0791 06:33:51 -0.164418 263.00 0.078091 0.2969 07:47:46 1.024516 4435.00 1.188934 0.2681 08:17:44 1.101519 1798.00 0.077003 0.0428 08:47:49 0.173583 1805.00 -0.927936 -0.5141 09:17:53 0.247539 1804.00 0.073956 0.0410 09:47:42 0.318959 1789.00 0.071420 0.0399 10:17:53 1.392653 1811.00 1.073694 0.5929 10:47:43 0.474007 1790.00 -0.918646 -0.5132 11:17:44 0.540287 1801.00 0.066280 0.0368 11:47:45 -0.375363 1801.00 -0.915650 -0.5084 11:51:34 -0.172898 229.00 0.202465 0.8841 12:17:41 0.69 1567.00 0.869564 0.5549 12:21:22 0.520937 221.00 -0.175729 -0.7952 12:25:03 -0.132391 221.00 -0.653328 -2.9562 12:36:28 -0.429008 685.00 -0.296617 -0.4330 12:47:44 0.764023 676.00 1.193031 1.7648 12:50:50 0.759465 186.00 -0.004558 -0.0245 13:17:45 0.844410 1615.00 0.084945 0.0526 13:22:01 0.426703 256.00 -0.417707 -1.6317 13:25:38 -0.218589 217.00 -0.645292 -2.9737 13:32:25 -0.390765 407.00 -0.172176 -0.4230 13:47:43 0.925055 918.00 1.315820 1.4334 15:17:46 0.150131 5403.00 -0.774924 -0.1434 15:47:46 0.212621 1800.00 0.062490 0.0347 16:17:47 0.296601 1801.00 0.083980 0.0466 16:47:45 0.373255 1798.00 0.076654 0.0426 17:17:48 0.444087 1803.00 0.070832 0.0393 17:47:45 0.519118 1797.00 0.075031 0.0418 18:17:47 0.594991 1802.00 0.075873 0.0421 18:47:49 0.666787 1802.00 0.071796 0.0398 18:50:50 0.663644 181.00 -0.003143 -0.0174 19:17:40 -0.262104 1610.00 -0.925748 -0.5750 19:21:54 -0.143448 254.00 0.118656 0.4671 19:47:43 0.815742 1549.00 0.959190 0.6192 19:51:29 0.805368 226.00 -0.010374 -0.0459 19:55:34 -0.401787 245.00 -1.207155 -4.9272 19:59:53 -0.688805 259.00 -0.287018 -1.1082 20:01:11 -0.39866078.00 0.290145 3.7198 20:17:45 0.889891 994.00 1.288551 1.2963 20:21:45 0.637197 240.00 -0.252694 -1.0529 20:26:06 -0.410787 261.00 -1.047984 -4.0153 20:28:58 -0.505440 172.00 -0.094653 -0.5503 20:31:34 -0.208699 156.00 0.296741 1.9022 20:37:11 0.402252 337.00 0.610951 1.8129 20:47:42 0.964681 631.00 0.562429 0.8913 20:51:24 0.960566 222.00 -0.004115 -0.0185 21:02:36 -0.873072 672.00 -1.833638 -2.7286 21:05:56 -0.527576 200.00 0.345496 1.7275 21:09:39 0.131954 223.00 0.659530 2.9575 21:17:42 1.033462 483.00 0.901508 1.8665 21:47:44 1.104782 1802.00 0.071320 0.0396 22:17:43 0.184729 1799.00 -0.920053 -0.5114 22:47:47 0.254301 1804.00 0.069572 0.0386 23:17:55 1.340637 1808.00 1.086336 0.6008 23:19:24 1.33359889.00 -0.007039 -0.0791 23:23:33 -1.336042 249.00 -2.669640 -10.7214 23:26:58 -0.690752 205.00 0.645290 3.1478 23:47:42 0.408653 1244.00 1.099405 0.8838 23:51:12 0.354902 210.00 -0.053751 -0.2560 23:55:15 -0.357164 243.00 -0.712066 -2.9303 23:58:46 -0.138396 211.00 0.218768 1.0368 00:17:45 0.479970 1139.00 0.618366 0.5429 00:47:48 0.559100 1803.00 0.079130 0.0439 01:17:46
Re: ntp on soekris
--- knitti [EMAIL PROTECTED] wrote: the soekris are not very good at time keeping, in my experience. whether this is a problem is something you have to decide, do you need more precision? if yes, change the hardware, else don't worry What is your experience and what did you observe? I have two 4801 units and they have no problem keeping time. I have 3 others soekris, and they have no problem keeping time. Cordialement, Jean-Girard Pailloncy
httpd crash
Hi, I have strange crash in httpd. I use a modified version of httpd to include modperl, because some perl module are not happy with the dynamic loaded one. I do not use SSL on this http server, so I do not understand why I got this kind of crash. Every few minutes a httpd child crashs. The bt command gives all the time the same call path. I take a look on Google and found http://article.gmane.org/gmane.comp.apache.mod-ssl.user/3987 that look like my problem. I check http_main.c and the patch is already applied on OpenBSD 3.8. I have build the system with stable patch and WDT activated. Any help is welcomed. Jean-Gerard # gdb /usr/sbin/httpd.modperl38 2510 GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as i386-unknown-openbsd3.8...(no debugging symbols found) Attaching to program: /usr/sbin/httpd.modperl38, process 2510 Reading symbols from /usr/lib/libm.so.2.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libm.so.2.0 Reading symbols from /usr/lib/libssl.so.10.0...(no debugging symbols found)...done. Loaded symbols for /usr/lib/libssl.so.10.0 Reading symbols from /usr/lib/libcrypto.so.12.0...done. Loaded symbols for /usr/lib/libcrypto.so.12.0 Reading symbols from /usr/lib/libperl.so.10.0...done. Loaded symbols for /usr/lib/libperl.so.10.0 Reading symbols from /usr/lib/libutil.so.11.0...done. Loaded symbols for /usr/lib/libutil.so.11.0 Reading symbols from /usr/lib/libc.so.38.2...done. Loaded symbols for /usr/lib/libc.so.38.2 Reading symbols from /usr/libexec/ld.so...done. Loaded symbols for /usr/libexec/ld.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Cwd/ Cwd.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Cwd/Cwd.so Reading symbols from /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/DBI/DBI.so...done. Loaded symbols for /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/DBI/DBI.so Reading symbols from /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/Unicode/String/String.so...done. Loaded symbols for /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/Unicode/String/String.so Reading symbols from /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/XML/LibXML/Common/Common.so...done. Loaded symbols for /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/XML/LibXML/Common/Common.so Reading symbols from /usr/local/lib/libxml2.so.9.0...done. Loaded symbols for /usr/local/lib/libxml2.so.9.0 Reading symbols from /usr/lib/libz.so.4.1...done. Loaded symbols for /usr/lib/libz.so.4.1 Reading symbols from /usr/local/lib/libiconv.so.4.0...done. Loaded symbols for /usr/local/lib/libiconv.so.4.0 Reading symbols from /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/XML/GDOME/GDOME.so...done. Loaded symbols for /usr/local/libdata/perl5/site_perl/i386-openbsd/ auto/XML/GDOME/GDOME.so Reading symbols from /usr/local/lib/libgdome.so.8.1...done. Loaded symbols for /usr/local/lib/libgdome.so.8.1 Reading symbols from /usr/local/lib/libglib.so.1.2...done. Loaded symbols for /usr/local/lib/libglib.so.1.2 Reading symbols from /usr/local/lib/libintl.so.2.0...done. Loaded symbols for /usr/local/lib/libintl.so.2.0 Reading symbols from /usr/local/lib/libglib-2.0.so.600.4...done. Loaded symbols for /usr/local/lib/libglib-2.0.so.600.4 Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/ Socket/Socket.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Socket/ Socket.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Sys/ Hostname/Hostname.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Sys/ Hostname/Hostname.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/MIME/ Base64/Base64.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/MIME/ Base64/Base64.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/POSIX/ POSIX.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/POSIX/ POSIX.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Data/ Dumper/Dumper.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Data/ Dumper/Dumper.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/IPC/ SysV/SysV.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/IPC/ SysV/SysV.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/ Digest/MD5/MD5.so...done. Loaded symbols for /usr/libdata/perl5/i386-openbsd/5.8.6/auto/Digest/ MD5/MD5.so Reading symbols from /usr/libdata/perl5/i386-openbsd/5.8.6/auto/File/ Glob/Glob.so...done. Loaded symbols for
Re: httpd crash
Hmm, that is neat, but how about telling us what the problem is with the normal httpd? You are more likely to get useful answers for that, and it's more likely to be of use to the project. Are you sure your script is not to blame? I am not able to start standard http with mod_perl As soon as the initialisation of httpd is done the daemon quits no child is forked With mod_perl statically link into httpd the daemon starts but crashs as describe I use this config to run the software eprints Cordialement, Jean-Girard Pailloncy
3.8 iBook G3 XDM fr kbd KDM segfault
Hi, I have installed OpenBSD 3.8 release on my iBook G3 300 MHz 288Gb. Dual boot with MacOS X.3 and OpenBSD. I install KDE base utils. I setup xorg to use 32 thousand colors for the display and the ATI video card. Problem 1: french kdb in kde I have a french keyboard. Even by downloading from the net (kind of linux) a new keyboard layout which work a little better that the release one, I have the key '' in place of '@#', the key back- delete do a forward-delete. Pretty annoying. Not directly an OpenBSD fault, but if anyone has the information, I will thank him to guide me. Problem 2: french kbd in xdm I try to use xdm, but I do not know how to specify my french keyboard. To enter the password with different layout is not easy. Problem 3: segmentation fault in kdm Then I try kdm. I get a segfault each time I launch it. I have attach gdb output and dmesg. The dmesg is a little strange, there is some king of output mix. Cordialement, Jean-Girard Pailloncy $ gdb /usr/local/bin/kdm GNU gdb 6.3 Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type show copying to see the conditions. There is absolutely no warranty for GDB. Type show warranty for details. This GDB was configured as powerpc-unknown-openbsd3.8...(no debugging symbols found) (gdb) run Starting program: /usr/local/bin/kdm Program received signal SIGSEGV, Segmentation fault. 0x2b024f44 in ?? () (gdb) bt #0 0x2b024f44 in ?? () #1 0x2b024eb4 in ?? () Previous frame identical to this frame (corrupt stack?) $ dmesg TA, CD-ROM CR-175, 5AAE SCSI0 5/cdrom removable cd0(wdc1:0:0): using BIOS timings, DMA mode 2 wdc2 at macobio0 irq 21: DMA wi0 at macobio0 irq 57: wi0: Firmware 8.70 variant 1, address 00:30:65:17:87:39 ohci0 at pci1 dev 24 function 0 Apple USB rev 0x00: irq 27, version 1.0 usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: Apple OHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered ohci1 at pci1 dev 25 function 0 Apple USB rev 0x00: irq 0, version 1.0 usb1 at ohci1: USB revision 1.0 uhub1 at usb1 uhub1: Apple OHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered mpcpcibr2 at mainbus0: uni-north, Revision 0xff pci2 at mpcpcibr2 bus 0 pchb2 at pci2 dev 11 function 0 Apple Uni-N Eth rev 0x00 gem0 at pci2 dev 15 function 0 Apple GMAC rev 0x00: irq 41, address 00:0a:27:8d:f6:64 bmtphy0 at gem0 phy 0: BCM5201 10/100 PHY, rev. 2 uhidev0 at uhub0 port 1 configuration 1 interface 0 uhidev0: Logitech Optical USB Mouse, rev 2.00/3.40, addr 2, iclass 3/1 ums0 at uhidev0: 3 buttons and Z dir. wsmouse1 at ums0 mux 0 bootpath: '/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/[EMAIL PROTECTED]/bsd' boot device: wd0. root on wd0a rootdev=0x0 rrootdev=0xb00 rawdev=0xb02 syncing disks... done rebooting [ using 323864 bytes of bsd ELF symbol table ] console out [ATY,RageM_Lp]console in [keyboard] ADB found : memaddr 9100 size 100, : consaddr 9100, : ioaddr 9002, size 2: memtag 8000, iotag 8000: width 800 linebytes 800 height 600 depth 8 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2005 OpenBSD. All rights reserved. http:// www.OpenBSD.org OpenBSD 3.8 (GENERIC) #425: Sat Sep 10 15:49:26 MDT 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/macppc/compile/GENERIC real mem = 301989888 (294912K) avail mem = 265064448 (258852K) using 1254 buffers containing 15097856 bytes of memory mainbus0 (root) cpu0 at mainbus0: 750 (Revision 0x8300): 299 MHz: 512KB backside cache memc0 at mainbus0: uni-n mpcpcibr0 at mainbus0: uni-north, Revision 0xff pci0 at mpcpcibr0 bus 0 pchb0 at pci0 dev 11 function 0 Apple Uni-N AGP rev 0x00 vgafb0 at pci0 dev 16 function 0 ATI Mach64 LN rev 0x64, mmio wsdisplay0 at vgafb0 mux 1: console (std, vt100 emulation) mpcpcibr1 at mainbus0: uni-north, Revision 0x0 pci1 at mpcpcibr1 bus 0 pchb1 at pci1 dev 11 function 0 Apple Uni-N rev 0x00 macobio0 at pci1 dev 23 function 0 Apple Keylargo rev 0x02 openpic0 at macobio0: version 0x4614 macgpio0 at macobio0 macgpio1 at macgpio0 irq 47 programmer-switch at macgpio0 not configured extint-gpio12 at macgpio0 not configured zsc0 at macobio0: irq 22,50 zstty0 at zsc0 channel 0 zstty1 at zsc0 channel 1 adb0 at macobio0 irq 25: via-pmu , 3 targets aed0 at adb0 addr 0: ADB Event device akbd0 at adb0 addr 2: iBook keyboard with inverted T (ISO layout) wskbd0 at akbd0: console keyboard, using wsdisplay0 ams0 at adb0 addr 3: EMP trackpad tpad 2-button, 400 dpi wsmouse0 at ams0 mux 0 abtn0 at adb0 addr 7: brightness/volume/eject buttons apm0 at adb0: battery flags 0x5, 99% charged ki2c0 at macobio0 wdc0 at macobio0 irq 19: DMA wd0 at wdc0 channel 0 drive 0: IBM-DARA-212000 wd0: 16-sector PIO, LBA, 11513MB, 23579136 sectors wd0(wdc0:0:0):
Re: 3.8 bridge trouble
On Wed, 15 Feb 2006, Pailloncy Jean-Gerard wrote: Second part of the test, I set up a bridgename.bridge0 file with the 2 nics up with STP, and I restart the soekris. Few seconds after the end of the boot (login prompt) immediate reboot of the soekris. I stop it by, as soon as login prompt appears, to log in and put down the bridge. In fact sometimes when there is a big storm the soekris reboots too. Is the watchdog timer (sysctl kern.watchdog) set? I've seen Soekrises reboot because of that when under high network load. The reboot happens with kern.watchdog.auto=0 and with kern.watchdog.auto=1 !!! Nest tr y: I setup the two nics to be in 10bt mode and not in 100bt. The box freezes, all the segment go down. Near nothing comes in or out, from any other serveres of the segment. answer to ssh was with a lag of few minutes (for control-C) I just unplug the box, and stop putting down my network. Cordialement, Jean-Girard Pailloncy
Re: 3.8 bridge trouble
So something like this? [ISP] | [SW1][SW2] || | +--+ [SKR] Yes. I want something redundant, there is a loop somewhere. I want to test the soekris as a bridge with 3 links: one to my provider, one to each switch. I start the test by setting a bridge on 2 nics of the soekris connected to the 2 switchs. So now there is a loop between the switchs and the soekris. And the first problem appears. If I ping from any computers on the segment to anything else I get a storm of thousand packet/ seconds until I unplug a cable from the loop. That's because of the loop. Even if the switches cache ARP replies and send further packets directly to their destinations, the initial broadcasted ARP request is going to go round and round. So I test with/without STP, link0: no more luke. I test with STP first, then without: same problem. I try with link0 Setting this flag stops all IP multicast packets from being forwarded by the bridge. To prevent the initial broadcast to loop. Does not work... It a broadcast and not a multicast, after all. Maybe I need a rule to filter all packet from the oekris itself. Cordialement, Jean-Girard Pailloncy
3.8 bridge trouble
Hi, I want to use 2 soekris as redundant bridge filter, but I have many troubles. I installed on soekris with 128 Mo SANDISK and a stock version of 3.8. I modify the setup to have a readonly root, 2 mfs partitions (dev, var), syslog to buffer and to remote loghost. Everything runs nice. Every servers I have have at least 2 nics. I connect each server to 2 switchs, and the switchs together. And for the moment only one switch has an uplink to my provider. I will have (soon) a second link to the second switch. I want to test the soekris as a bridge with 3 links: one to my provider, one to each switch. I start the test by setting a bridge on 2 nics of the soekris connected to the 2 switchs. So now there is a loop between the switchs and the soekris. And the first problem appears. If I ping from any computers on the segment to anything else I get a storm of thousand packet/seconds until I unplug a cable from the loop. So I test with/without STP, link0: no more luke. Second part of the test, I set up a bridgename.bridge0 file with the 2 nics up with STP, and I restart the soekris. Few seconds after the end of the boot (login prompt) immediate reboot of the soekris. I stop it by, as soon as login prompt appears, to log in and put down the bridge. In fact, each time all the cables is connected to have a loop, in the 15 seconds I put up the bridge the box reboots (may be the same delay as to start forwarding packet). But if I put up the bridge with only one cable and put the second ones after not much problems. In fact sometimes when there is a big storm the soekris reboots too. I add asked Henning at EuroBSDCon'2005 about this, and he says to me that if I could avoid this setup (bridge) and use a router: this is the way to go. OK. But My provider gives me a block of 256 IPs with two gateways and before asking him for something else I would like to know what I can do. May be the new coming version 3.9 have some new stuff. I do not know. Any help to have a running setup is welcomed, and to debug the unexpected reboot. Cordialement, Jean-Girard Pailloncy
Deaf Soekris
Hi, I have a trouble with on of my soekris under OpenBSD 3.8-release. I have configure it to be a small mail server and I have an other computer that forward it a mailing list. But after 150/200 emails the soekris becomes deaf. No more input or ouput on the network. Some ssh connexions drops too. I log by the console and cannot ping anything or connect. Same from outside. I try to understand what's happening but with no success. cpu is low below 5% disk is full of free space mem as 80 mb free of 128 mb swap is unused top shows everything idle I have an other mail server, bigger, than as no problem to handle this mailing-list. Maybe a hint, the mailing list is on windows... Cordialement, Jean-Girard Pailloncy Following is information of the idle box. OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Geode(TM) Integrated Processor by National Semi (Geode by NSC 586-class) 267 MHz cpu0: FPU,TSC,MSR,CX8,CMOV,MMX cpu0: TSC disabled real mem = 133799936 (130664K) avail mem = 115474432 (112768K) using 1658 buffers containing 6791168 bytes (6632K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 20/41/22, BIOS32 rev. 0 @ 0xf7840 pcibios0 at bios0: rev 2.0 @ 0xf/0x1 pcibios0: pcibios_get_intr_routing - function not supported pcibios0: PCI IRQ Routing information unavailable. pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc8000/0x9000 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (bios) pchb0 at pci0 dev 0 function 0 Cyrix GXm PCI rev 0x00 sis0 at pci0 dev 6 function 0 NS DP83815 10/100 rev 0x00: DP83816A, irq 10, address 00:00:24:c3:d3:b4 nsphyter0 at sis0 phy 0: DP83815 10/100 PHY, rev. 1 sis1 at pci0 dev 7 function 0 NS DP83815 10/100 rev 0x00: DP83816A, irq 10, address 00:00:24:c3:d3:b5 nsphyter1 at sis1 phy 0: DP83815 10/100 PHY, rev. 1 sis2 at pci0 dev 8 function 0 NS DP83815 10/100 rev 0x00: DP83816A, irq 10, address 00:00:24:c3:d3:b6 nsphyter2 at sis2 phy 0: DP83815 10/100 PHY, rev. 1 gscpcib0 at pci0 dev 18 function 0 NS SC1100 ISA rev 0x00 gpio0 at gscpcib0: 64 pins NS SC1100 SMI/ACPI rev 0x00 at pci0 dev 18 function 1 not configured pciide0 at pci0 dev 18 function 2 NS SCx200 IDE rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: SAMSUNG MP0402H wd0: 16-sector PIO, LBA48, 38204MB, 78242976 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 geodesc0 at pci0 dev 18 function 5 NS SC1100 X-Bus rev 0x00: iid 6 revision 3 wdstatus 0 ohci0 at pci0 dev 19 function 0 Compaq USB OpenHost rev 0x08: irq 11, version 1.0, legacy support usb0 at ohci0: USB revision 1.0 uhub0 at usb0 uhub0: Compaq OHCI root hub, rev 1.00/1.00, addr 1 uhub0: 3 ports with 3 removable, self powered isa0 at gscpcib0 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 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 sysbeep0 at pcppi0 nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS gpio1 at nsclpcsio0: 29 pins gscsio0 at isa0 port 0x15c/2: SC1100 SIO rev 1: npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom0: console pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo biomask fbe5 netmask ffe5 ttymask ffe7 pctr: no performance counters in CPU dkcsum: wd0 matches BIOS drive 0x80 root on wd0a rootdev=0x0 rrootdev=0x300 rawdev=0x302 # df -h Filesystem SizeUsed Avail Capacity Mounted on /dev/wd0a 502M227M250M48%/ /dev/wd0l 9.8G5.3M9.3G 0%/var # top -b load averages: 0.07, 0.09, 0.0809:40:09 11 processes: 10 idle, 1 on processor Memory: Real: 5108K/22M act/tot Free: 98M Swap: 0K/128M used/tot PID USERNAME PRI NICE SIZE RES STATEWAIT TIMECPU COMMAND 31594 root 20 1228K 1268K sleepselect 0:19 0.00% sendmail 25145 _ntp 20 480K 580K sleeppoll 0:05 0.00% ntpd 32011 root 20 596K 684K sleepselect 0:01 0.00% cron 5624 _syslogd 20 404K 552K idle poll 0:01 0.00% syslogd 8469 root 180 572K 500K sleeppause0:00 0.00% ksh 173 _symon100 516K 568K sleepnanosl 0:00 0.00% symon 14723 root 20 376K 512K idle netio0:00 0.00% syslogd 7781 root 20 544K 648K idle poll 0:00 0.00% ntpd 28182 root 20 336K 552K idle select 0:00 0.00% inetd 1 root 100 360K 332K idle wait 0:00 0.00% init 7605 root 290 436K 620K onproc -0:00 0.00% top # pkg_info gettext-0.10.40p3 GNU gettext libiconv-1.9.2p1character set conversion library nano-1.2.5 small, easy to use editor symon-mon-2.72 active host monitor wget-1.10 retrieve files
Re: MegaRaid i4
Yes, ide vs scsi benchmarks are usually skewed due to caching. SCSI disables drive cache by default whereas IDE enables it by default. Yes, I disable caching. So I get (really) bad performance. I see the other thread about some broken MegaRaid i4. What I can say is taht with 3.8-release, I have no problem to use bioctl. # bioctl -i ami0 Volume Status Size Device ami0 0 Online 249998344192 sd0 RAID1 0 Online 249998344192 0:0.0 noencl Maxtor 4A250J0 RAMB 1 Online 249998344192 2:1.0 noencl Maxtor 4A250J0 RAMB ami0 1 Online 249998344192 sd1 RAID1 0 Online 249998344192 3:0.0 noencl Maxtor 4A250J0 RAMB 1 Online 249998344192 1:1.0 noencl Maxtor 4A250J0 RAMB ami0 2 Degraded 46688384 sd2 RAID5 0 Online 249998344192 3:1.0 noencl Maxtor 4A250J0 RAMB 1 Rebuild 249998344192 1:0.0 noencl Maxtor 4A250J0 RAMB 2 Online 249998344192 2:0.0 noencl Maxtor 4A250J0 RAMB ami0 3 Hot spare249998344192 0:1.0 noencl Maxtor 4A250J0 RAMB I broke the RAID-5 and it starts rebuilding. I can setup new Hot-Spare. But nothing was perfect, I had two crashes. I do not have ps and trace because I was using ddb.panic=0 to reboot the prod server automatically. The crash happens when I was on console, I disable ddb.panic=1, but luckily I get no other crash. And I can not do postmortem analysis because /var is to small to keep coredump in /var/ crash. I did not have test current. I do not want to stop this server too long. So, here is the partial crash report (the dmesg is in one of my other mails in this thread). I hope it will be partially useful ;-) fsync failed: type VDIR, usecount 0, writecount 0, holdcount 1, flags (VBIOONFREELIST|VBIOONSYNCLIST) tag VT_UFS, ino 6987542, on dev 0, 9 flags 0x0, effnlink 2, nlink 2 mode 040755, owner 1000, group 1000, size 512 not locked mounted on: /mnt panic: sched_sync: fsync failed Starting stack trace... panic(d057fa84,d7c73960,ea077f5c,d7c73960,d7c73960) at panic+0x71 panic(d04f9970,d1b8b29c,d7d078f8,d17b4620,4) at panic+0x71 sched_sync(d7d078f8) at sched_sync+0x17a Bad frame pointer: 0xd06f1ed8 End of stack trace. syncing disks... 250 250 248 244 230 212 199 181 164 150 135 124 112 108 102 89 69 45 23 1 giving up rebooting... fsync failed: type VDIR, usecount 0, writecount 0, holdcount 1, flags (VBIOONFREELIST|VBIOONSYNCLIST) tag VT_UFS, ino 7011086, on dev 0, 9 flags 0x0, effnlink 2, nlink 2 mode 040755, owner 1000, group 1000, size 512 not locked mounted on: /mnt panic: sched_sync: fsync failed Starting stack trace... panic(d057fa84,d7c53e60,ea077f5c,d7c53e60,d7c53e60) at panic+0x71 panic(d04f9970,d18eda9c,d7d078f8,d17b467c,4) at panic+0x71 sched_sync(d7d078f8) at sched_sync+0x17a Bad frame pointer: 0xd06f1ed8 End of stack trace. syncing disks... 320 320 318 318 318 318 318 318 314 311 303 293 285 280 269 254 240 233 230 221 giving up sd2: WARNING: cache synchronization failed rebooting... Cordialement, Jean-Girard Pailloncy
MegaRaid i4
Hi, I have a MegaRaid i4 card on an OpenBSD 3.8 box. The speed of the card is very slow. max: read 15 M/s, write 5 M/s average: read 8 M/s, write 2.5 M/s I have an other identical drive on the internal IDE bus, and it is at least three times faster. Any idea ? The card is on Mass Storage Mode. I never change it, nor test the IOP mode. Is it worth to try ? The man page recommends the use of the Mass Storage mode. Is is safe to switch from one mode to an other ? Will the data be preserved ? Jean-Girard Pailloncy
Re: MegaRaid i4
Where's your dmesg? OpenBSD 3.8 (GENERIC) #138: Sat Sep 10 15:41:37 MDT 2005 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel(R) Pentium(R) 4 CPU 2.40GHz (GenuineIntel 686-class) 2.40 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36, CFLUSH,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,CNXT-ID real mem = 1073324032 (1048168K) avail mem = 757698560 (739940K) using 4278 buffers containing 268853248 bytes (262552K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(00) BIOS, date 08/18/04, BIOS32 rev. 0 @ 0xfdb80 apm0 at bios0: Power Management spec V1.2 apm0: AC on, battery charge unknown apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xf/0x1 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4f70/272 (15 entries) pcibios0: PCI Interrupt Router at 000:01:7 (ServerWorks CSB5 SouthBridge rev 0x00) pcibios0: PCI bus #0 is the last bus bios0: ROM list: 0xc/0x8000 0xc8000/0x1200 0xc9800/0x1000 0xca800/0x1800 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 ServerWorks CMIC_SL Host rev 0x32 pchb1 at pci0 dev 0 function 1 ServerWorks CMIC_SL Host rev 0x00 pci1 at pchb1 bus 1 puc0 at pci0 dev 4 function 0 Lava Quad Serial rev 0x00: com, com, com, com pccom3 at puc0 port 0 irq 5: ns16550a, 16 byte fifo pccom4 at puc0 port 1 irq 5: ns16550a, 16 byte fifo pccom5 at puc0 port 2 irq 5: ns16550a, 16 byte fifo pccom6 at puc0 port 3 irq 5: ns16550a, 16 byte fifo puc1 at pci0 dev 4 function 1 Lava Quad Serial rev 0x00: com, com, com, com pccom7 at puc1 port 0 irq 5: ns16550a, 16 byte fifo pccom8 at puc1 port 1 irq 5: ns16550a, 16 byte fifo pccom9 at puc1 port 2 irq 5: ns16550a, 16 byte fifo pccom10 at puc1 port 3 irq 5: ns16550a, 16 byte fifo ami0 at pci0 dev 5 function 0 AMI MegaRAID rev 0x02: irq 10 AMI 511/64b/lhc ami0: FW N661, BIOS v1.01, 16MB RAM ami0: 4 channels, 0 FC loops, 3 logical drives scsibus0 at ami0: 40 targets sd0 at scsibus0 targ 0 lun 0: AMI, Host drive #00, SCSI2 0/direct fixed sd0: 238417MB, 30393 cyl, 255 head, 63 sec, 512 bytes/sec, 488278016 sec total sd1 at scsibus0 targ 1 lun 0: AMI, Host drive #01, SCSI2 0/direct fixed sd1: 238417MB, 30393 cyl, 255 head, 63 sec, 512 bytes/sec, 488278016 sec total sd2 at scsibus0 targ 2 lun 0: AMI, Host drive #02, SCSI2 0/direct fixed sd2: 476834MB, 60787 cyl, 255 head, 63 sec, 512 bytes/sec, 976556032 sec total scsibus1 at ami0: 16 targets scsibus2 at ami0: 16 targets scsibus3 at ami0: 16 targets scsibus4 at ami0: 16 targets vga1 at pci0 dev 7 function 0 ATI Rage XL rev 0x27 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) fxp0 at pci0 dev 8 function 0 Intel 82557 rev 0x10, i82551: irq 9, address 00:e0:81:24:f0:96 inphy0 at fxp0 phy 1: i82555 10/100 PHY, rev. 4 pcib0 at pci0 dev 15 function 0 ServerWorks CSB5 SouthBridge rev 0x93 pciide0 at pci0 dev 15 function 1 ServerWorks CSB5 IDE rev 0x93: DMA wd0 at pciide0 channel 0 drive 0: Maxtor 4A250J0 wd0: 16-sector PIO, LBA48, 239372MB, 490234752 sectors wd0(pciide0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus5 at atapiscsi0: 2 targets cd0 at scsibus5 targ 0 lun 0: MITSUMI, CD-ROM SR244W, T01A SCSI0 5/ cdrom removable cd0(pciide0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 2 pchb2 at pci0 dev 15 function 3 ServerWorks CSB5 PCI rev 0x00 pchb3 at pci0 dev 16 function 0 ServerWorks CIOBX2 rev 0x03 pchb4 at pci0 dev 16 function 2 ServerWorks CIOBX2 rev 0x03 pci2 at pchb4 bus 2 em0 at pci2 dev 7 function 0 Intel PRO/1000MT (82545EM) rev 0x01: irq 11, address: 00:e0:81:24:f0:97 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 sysbeep0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo pccom0: console pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo fdc0 at isa0 port 0x3f0/6 irq 6 drq 2 fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec biomask f545 netmask ff45 ttymask ffc7 pctr: user-level cycle counter enabled dkcsum: sd0 matches BIOS drive 0x80 dkcsum: sd1 matches BIOS drive 0x81 dkcsum: sd2 matches BIOS drive 0x82 dkcsum: wd0 matches BIOS drive 0x83 root on sd0a rootdev=0x400 rrootdev=0xd00 rawdev=0xd02 Cordialement, Jean-Girard Pailloncy
256 ip: bridge or router
Hi, I get a new block of 256 IPs. And my provider gives me two cables and two gateways (a.b.c.1 and a.b.c.2) inside my block (a.b.c.0/24). I want to install a redundant filter made from two soekris. I do some tests on my desk, with a redundant bridge. But I got storm of packet (loop of 8000 packets/s) from a single ping thru the bridge. I ask Ryan Henning at EuroBSCon'05, and they say 'I really want to have a redundant router' (and not a bridge). I do not understand how to setup a router with IPs from the same block on each side. Any help is welcome. Jean-Girard Pailloncy
Re: 256 ip: bridge or router
I get a new block of 256 IPs. And my provider gives me two cables and two gateways (a.b.c.1 and a.b.c.2) inside my block (a.b.c.0/24). I want to install a redundant filter made from two soekris. I do some tests on my desk, with a redundant bridge. But I got storm of packet (loop of 8000 packets/s) from a single ping thru the bridge. I ask Ryan Henning at EuroBSCon'05, and they say 'I really want to have a redundant router' (and not a bridge). I do not understand how to setup a router with IPs from the same block on each side. [...] The external interface should be assigned, say, a.b.c.3 resp. a.b.c.4. Give them a netmask of 255.255.255.247. This will allow you 8 addresses 'on the outside' (for a slightly more efficient implementation, use a.b.c.0 and a.b.c.3, then set your netmask to .251 - you'll not waste any IP addresses that way, but a.b.c.0 might just be reserved, and you'll need one more address for CARP anyway, if you want to do that). Now, since more specific entries trump more generic, the Soekrises will route a.b.c.0/28 to the outside routers and the rest of a.b.c.0/24 to your internal network. This takes care of redundancy 'from the inside'; if you wish to host redundant services, you'll have to do some more work. Notably, you'll have to find some way - BGP? OSPF? - to tell the ISP's routers that Soekris #1 is out of commission, and to please route everything to Soekris #2 (i.e., over a.b.c.2). Either that, or repeat the CARP procedure. Which one is easiest/works best is hard to say - CARP, for instance, needs broadcasts; on the other hand, BGP is only for people with their own ASes... hard to tell without more information. And outside of the scope of your question, anyway. The two cables came from two routers of my provider. The two ips (a.b.c.1 and a.b.c.2) are in the same vlan on the two different routers. Broadcast should work. So on outside, a CARP should be the simple thing I have to do. Thank you for the information. Cordialement, Jean-Girard Pailloncy