From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 31 17:43:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91AC016A4CE for ; Sat, 31 Jul 2004 17:43:46 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B5C043D31 for ; Sat, 31 Jul 2004 17:43:46 +0000 (GMT) (envelope-from vlad902@gmail.com) Received: by mproxy.gmail.com with SMTP id 76so92462rnl for ; Sat, 31 Jul 2004 10:43:45 -0700 (PDT) Received: by 10.38.12.77 with SMTP id 77mr185199rnl; Sat, 31 Jul 2004 10:43:45 -0700 (PDT) Message-ID: Date: Sat, 31 Jul 2004 10:43:45 -0700 From: Vlad902 To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 01 Aug 2004 11:54:45 +0000 Subject: Proper code style regarding hexadecimal case X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jul 2004 17:43:46 -0000 What is the proper code style regarding hexadecimal case (ie. 0xabc v. 0xABC)? I have found code to be a mix of mostly lower and upper case, and style(9) didn't say anything on the subject. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 1 03:34:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1CC6416A4CE; Sun, 1 Aug 2004 03:34:26 +0000 (GMT) Received: from watcher.puryear-it.com (ip-66-186-248-99.static.eatel.net [66.186.248.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id E533243D5F; Sun, 1 Aug 2004 03:34:25 +0000 (GMT) (envelope-from dap99@i-55.com) Received: from localhost (unknown [127.0.0.1]) by watcher.puryear-it.com (Postfix) with ESMTP id 2128834D6F; Sat, 31 Jul 2004 22:32:07 -0500 (CDT) Received: from watcher.puryear-it.com ([127.0.0.1]) by localhost (watcher.puryear-it.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07072-04; Sat, 31 Jul 2004 22:32:04 -0500 (CDT) Received: from THEBOX (localhost [127.0.0.1]) by watcher.puryear-it.com (Postfix) with SMTP id BB3A234D7D; Sat, 31 Jul 2004 22:07:33 -0500 (CDT) Message-ID: <00dd01c47775$0087df40$0200a8c0@THEBOX> From: "adp" To: Date: Sat, 31 Jul 2004 22:08:32 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new X-Mailman-Approved-At: Sun, 01 Aug 2004 11:54:45 +0000 cc: freebsd-database@freebsd.org cc: freebsd-hackers@freebsd.org Subject: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 03:34:26 -0000 I recently posted the following message to MySQL discussion list. The response there, and the one I keep finding on Google, is that this is a long-standing issue betweeen FreeBSD and MySQL. For me this has been happening since FreeBSD 4.4. I have one site where we are going to have to move to Linux. I would much prefer keeping us on FreeBSD, but we just can't afford the downtime anymore. Another site is looking at moving to PostgreSQL on FreeBSD. Any help on this? Googling shows a long history of people having these problems but no solutions. Please don't give me a URL to a Google showing others having this problem--I've seen that and more. I want to know if there is a solution. Any help is appreciated! ... I have several MySQL and FreeBSD installs across a few different sites, and I consistently have problems with mysqld. It will begin to eat up all of the CPU and eventually become unresponsive (or the machine will just burn). I can't seem to manually reproduce this, but given enough time a FreeBSD box with mysqld will go down. Our servers are generally heavily loaded. I would say that I'm doing something wrong (although what I could be doing wrong I'm not sure), but I recently began working with another company that has the EXACT SAME PROBLEM. They are even thinking of moving to PostgreSQL, but we are trying to fix mysqld instead for now. This behavior has been seen on: FreeBSD 4.4, 4.7, 4.9, 4.10 MySQL 3.x and 4.x Typical load: 50 qps With and without replication enabled. Some sites are SELECT heavy, some are INSERT heavy. For one site I think we will be moving from FreeBSD to Linux for the MySQL servers since MySQL seems to run like a champ on Linux. We will continue to use FreeBSD for everything else. Anyone experienced this problem? Is it mysqld or FreeBSD? I can't pinpoint the exact issue. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 1 14:28:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6EF916A4CE; Sun, 1 Aug 2004 14:28:26 +0000 (GMT) Received: from smtp.internal.alivewww.com (gp1.alivewww.com [217.158.94.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B70D43D2F; Sun, 1 Aug 2004 14:28:26 +0000 (GMT) (envelope-from enquiries@alivewww.com) Received: from host-83-146-2-180.bulldogdsl.com ([83.146.2.180]) by smtp.internal.alivewww.com with asmtp (Exim 4.34) id 1BrHK3-0009nI-HC; Sun, 01 Aug 2004 15:28:24 +0100 From: Alasdair Lumsden To: adp In-Reply-To: <00dd01c47775$0087df40$0200a8c0@THEBOX> References: <00dd01c47775$0087df40$0200a8c0@THEBOX> Content-Type: text/plain Message-Id: <1091370486.19294.42.camel@host-83-146-2-180.bulldogdsl.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6-1mdk Date: Sun, 01 Aug 2004 15:28:17 +0100 Content-Transfer-Encoding: 7bit cc: freebsd-database@freebsd.org cc: freebsd-hackers@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 14:28:26 -0000 On Sun, 2004-08-01 at 04:08, adp wrote: > FreeBSD 4.4, 4.7, 4.9, 4.10 > MySQL 3.x and 4.x > Typical load: 50 qps > With and without replication enabled. > Some sites are SELECT heavy, some are INSERT heavy. > > For one site I think we will be moving from FreeBSD to Linux for the MySQL > servers since MySQL seems to run like a champ on Linux. We will continue to > use FreeBSD for everything else. > > Anyone experienced this problem? Is it mysqld or FreeBSD? I can't pinpoint > the exact issue. We've got MySQL running on several FreeBSD servers here, some doing 100 qps+, and have had no problems what so ever. We've been using MySQL 3 and 4 on FreeBSD since FreeBSD 4.5 upwards. Here is an example status output from one of our servers: # /usr/local/mysql/bin/mysqladmin -u root -p status Enter password: Uptime: 1271242 Threads: 8 Questions: 76203621 Slow queries: 370 Opens: 2461857 Flush tables: 2 Open tables: 511 Queries per second avg: 59.944 You haven't mentioned the source of your MySQL installs. Are you using MySQL from ports, packages, or a binary or source distribution from the MySQL website? We compile MySQL from source using the following: setenv CFLAGS "-O3 -mpentiumpro" setenv CXX gcc setenv CXXFLAGS "-O3 -mpentiumpro -felide-constructors -fno-exceptions -fno-rtti -DEAPI" ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/mysql/var --with-unix-socket-path=/var/lib/mysql/mysql.sock --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --enable-assembler You also haven't mentioned specifically what happens when there is a problem.. You say the machine becomes unresponsive.. what happens if the queries die down, does the box become responsive again? The only thing I can think of causing this is if queries start to come in faster than the box can process - they will build up and up until the machine, as you say, becomes unresponsive. This would indicate some form of bottleneck somewhere. Monitoring the output of "systat -vmstat" might give some clues as to whats going on. I would certainly investigate the cause of this before abandoning FreeBSD. Any threads on google relating to FreeBSD and MySQL not working together are vastly inaccurate or out of date. There are some performance issues with MySQL on FreeBSD 4 with regards to threading. Try using MySQL linked against LinuxThreads, which should give a performance boost. You can specify -DWITH_LINUXTHREADS when installing from ports. We have a test box running FreeBSD 5.2.1 with MySQL 4, linked against the new kse threading library, which should in theory provide performance comparable/superior to MySQL on a linux box. This box has been completely stable - no MySQL or FreeBSD lockups or crashes. Given that 5.3 and -STABLE are due out soon, it might be worth waiting for those, rather than switching to Linux. However we, and many many other people, run high load MySQL installations on FreeBSD without problem, so I would say your problems are specific to your setup, and not something that is a widespread issue. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 1 18:24:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 381E316A4CE for ; Sun, 1 Aug 2004 18:24:04 +0000 (GMT) Received: from priv-edtnes28.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7D8943D39 for ; Sun, 1 Aug 2004 18:24:03 +0000 (GMT) (envelope-from pfak@telus.net) Received: from hartkiem2nnl7x ([206.116.24.146]) by priv-edtnes28.telusplanet.netSMTP <20040801182403.FZBY19943.priv-edtnes28.telusplanet.net@hartkiem2nnl7x>; Sun, 1 Aug 2004 12:24:03 -0600 Message-ID: <001201c477f4$bb6f84f0$bb01a8c0@hartkiem2nnl7x> From: "Peter Kieser" To: "adp" References: <00dd01c47775$0087df40$0200a8c0@THEBOX> Date: Sun, 1 Aug 2004 11:24:07 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 18:24:04 -0000 Hello, I've experienced this exact problem, all the way from 4.4-STABLE as well. The time period where the issue starts happening is very erradic, but I'm having the exact issue on one of my servers at this very moment. I thought it was just an issue with my box, and not anyone elses. mysql 237 93.9 3.4 59336 17460 con- R 21Jul04 2797:08.26 /usr/local/libexec/mysqld --basedir=/usr/local --datadir=/var/db/mysql --use r=mysql --pid-file= The box isn't exactly heavily loaded, with may 10 QPS; so I don't think it has to do anything with load. Currently I'm running mysql-server-4.0.17 on FreeBSD 4.10-STABLE. FreeBSD x.x 4.10-STABLE FreeBSD 4.10-STABLE #2: Wed Jul 21 18:31:49 PDT 2004 peter@x.x:/usr/src/sys/compile/PSYCHO i386 --Peter ----- Original Message ----- From: "adp" To: Cc: ; Sent: Saturday, July 31, 2004 8:08 PM Subject: FreeBSD and MySQL - mysqld eats CPU alive > > Anyone experienced this problem? Is it mysqld or FreeBSD? I can't pinpoint > the exact issue. > From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 1 20:32:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A1F2316A4CE; Sun, 1 Aug 2004 20:32:17 +0000 (GMT) Received: from structbio.vanderbilt.edu (reef.structbio.Vanderbilt.Edu [160.129.138.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02E0243D60; Sun, 1 Aug 2004 20:32:15 +0000 (GMT) (envelope-from bandix@home.funnyvalentine.net) Received: from home.funnyvalentine.net (adsl-065-007-237-012.sip.bna.bellsouth.net [65.7.237.12]) i71KWARg005909 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 1 Aug 2004 15:32:11 -0500 Received: (from bandix@localhost) by home.funnyvalentine.net (8.12.10/8.12.10/Submit) id i71KW5SZ061919; Sun, 1 Aug 2004 15:32:05 -0500 (CDT) (envelope-from bandix) Date: Sun, 1 Aug 2004 15:32:05 -0500 From: "Brandon D. Valentine" To: adp Message-ID: <20040801203205.GA61836@brandon.dvalentine.com> References: <00dd01c47775$0087df40$0200a8c0@THEBOX> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00dd01c47775$0087df40$0200a8c0@THEBOX> User-Agent: Mutt/1.5.6i cc: freebsd-database@freebsd.org cc: freebsd-hackers@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 20:32:17 -0000 On Sat, Jul 31, 2004 at 10:08:32PM -0500, adp wrote: > Any help on this? Googling shows a long history of people having these > problems but no solutions. Please don't give me a URL to a Google showing > others having this problem--I've seen that and more. I want to know if there > is a solution. Any help is appreciated! When this happens are you able to attach truss or gdb to the process? This is impossible to diagnosis without some kind of debugging information. Brandon D. Valentine -- brandon@dvalentine.com http://www.geekpunk.net Pseudo-Random Googlism: summer is slowly losing its grip From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 1 21:55:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EAE6F16A4CE; Sun, 1 Aug 2004 21:55:37 +0000 (GMT) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC48243D4C; Sun, 1 Aug 2004 21:55:37 +0000 (GMT) (envelope-from lists@jnielsen.net) Received: from neo.jnielsen.net (jn@c-24-2-72-123.client.comcast.net [24.2.72.123]) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id i71LtbPB017103; Sun, 1 Aug 2004 14:55:37 -0700 (PDT) (envelope-from lists@jnielsen.net) Received: from stealth-10-3-2-2.local (stealth@stealth-10-3-2-2.local [10.3.2.2]) by neo.jnielsen.net (8.12.10/8.12.10) with ESMTP id i71Ltalm048661; Sun, 1 Aug 2004 15:55:36 -0600 (MDT) (envelope-from lists@jnielsen.net) From: John Nielsen To: freebsd-hackers@freebsd.org Date: Sun, 1 Aug 2004 15:54:51 -0600 User-Agent: KMail/1.6.2 References: <00dd01c47775$0087df40$0200a8c0@THEBOX> In-Reply-To: <00dd01c47775$0087df40$0200a8c0@THEBOX> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408011554.51630.lists@jnielsen.net> X-Virus-Scanned: clamd / ClamAV version 0.75, clamav-milter version 0.75 on ns1.jnielsen.net X-Virus-Status: Clean cc: adp cc: freebsd-database@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 21:55:38 -0000 On Saturday 31 July 2004 21:08, adp wrote: > I recently posted the following message to MySQL discussion list. The > response there, and the one I keep finding on Google, is that this is a > long-standing issue betweeen FreeBSD and MySQL. For me this has been > happening since FreeBSD 4.4. I don't have any additional info about the problem, but as you say it does seem to be a long-standing issue. The hosting company I use (johncompanies.com -- highly recommended) has a "nanny" script that you may find useful: http://www.johncompanies.com/collocation/knowledge/freebsd_mysqld_nanny.txt HTH, JN From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 1 22:22:00 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0240516A4CF; Sun, 1 Aug 2004 22:22:00 +0000 (GMT) Received: from museful.corp.yahoo.com (museful.corp.yahoo.com [216.145.52.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF40843D49; Sun, 1 Aug 2004 22:21:59 +0000 (GMT) (envelope-from jzawodn@yahoo-inc.com) Received: (from jzawodn@localhost) by museful.corp.yahoo.com (8.11.6/8.11.1) id i71MLrG87859; Sun, 1 Aug 2004 15:21:53 -0700 (PDT) (envelope-from jzawodn) Date: Sun, 1 Aug 2004 15:21:53 -0700 From: Jeremy Zawodny To: adp Message-ID: <20040801152153.B53045@yahoo-inc.com> References: <00dd01c47775$0087df40$0200a8c0@THEBOX> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <00dd01c47775$0087df40$0200a8c0@THEBOX>; from dap99@i-55.com on Sat, Jul 31, 2004 at 10:08:32PM -0500 X-Mailman-Approved-At: Mon, 02 Aug 2004 12:14:07 +0000 cc: freebsd-database@freebsd.org cc: freebsd-hackers@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 22:22:00 -0000 On Sat, Jul 31, 2004 at 10:08:32PM -0500, adp wrote: > I recently posted the following message to MySQL discussion list. The > response there, and the one I keep finding on Google, is that this is a > long-standing issue betweeen FreeBSD and MySQL. For me this has been > happening since FreeBSD 4.4. > > I have one site where we are going to have to move to Linux. I would much > prefer keeping us on FreeBSD, but we just can't afford the downtime anymore. > Another site is looking at moving to PostgreSQL on FreeBSD. That's too bad. MySQL can run quite well on FreeBSD. > I have several MySQL and FreeBSD installs across a few different sites, and > I consistently have problems with mysqld. It will begin to eat up all of the > CPU and eventually become unresponsive (or the machine will just burn). I > can't seem to manually reproduce this, but given enough time a FreeBSD box > with mysqld will go down. Yes, it's FreeBSD's broken DNS libraries. Add skip-name-resolve to your my.cnf and the problem will probably go away. Jeremy -- Jeremy D. Zawodny, Technical Yahoo - Yahoo MySQL Geek Desk: (408) 349-7878 Cell: (408) 685-5936 From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 2 11:48:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5BFB16A4CE; Mon, 2 Aug 2004 11:48:45 +0000 (GMT) Received: from mail.imp.ch (ns1.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id C17E643D58; Mon, 2 Aug 2004 11:48:44 +0000 (GMT) (envelope-from mb@imp.ch) Received: from cvs.imp.ch (cvs.imp.ch [157.161.4.9]) by mail.imp.ch (8.12.9p2/8.12.3) with ESMTP id i72BmY2k054401; Mon, 2 Aug 2004 13:48:35 +0200 (CEST) (envelope-from Martin.Blapp@imp.ch) Date: Mon, 2 Aug 2004 13:48:34 +0200 (CEST) From: Martin Blapp To: freebsd-hackers@freebsd.org Message-ID: <20040802133701.V27692@cvs.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Checksum: a29a233aa37c0924050fa4c5c317243a X-Virus-Message-Status: No X-Virus-Status: No, scantime="0.0017 seconds" X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=4 scantime="1.1575 seconds" tests=BAYES_00 X-Scanned-By: MIMEDefang 2.44 X-Mailman-Approved-At: Mon, 02 Aug 2004 12:14:07 +0000 cc: questions@freebsd.org Subject: Solution: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 11:48:46 -0000 Hi all, We have many Mysql's running here, and just to tell you, there are fixes/workarounds for the behaviour you see: FreeBSD 4.8 / 4.9 / 4.10 : -------------------------- Compile port with WITH_LINUXTHREADS=YES or remove tcpwrappers support manually from the build if it hangs with libc_r. Use IP adresses for master/slave configurations in my.cnf. On problem here is that getnamebyhost() is not threadsafe. This produces the strange errors you see. We run all mysqld without tcpwrappers support and do not have any hangs anymore. FreeBSD 5.2.1 ------------- You have to use libc_r.so libpthreads.so hangs occasionally FreeBSD Current --------------- You can use libpthrads.so or libc_r.so Martin Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 61 826 93 00 Fax: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 2 13:05:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74E0416A4CE; Mon, 2 Aug 2004 13:05:02 +0000 (GMT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D75343D58; Mon, 2 Aug 2004 13:05:02 +0000 (GMT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i72D4X3w012498; Mon, 2 Aug 2004 09:04:33 -0400 (EDT) Date: Mon, 2 Aug 2004 09:04:33 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Martin Blapp In-Reply-To: <20040802133701.V27692@cvs.imp.ch> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: questions@freebsd.org Subject: Re: Solution: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 13:05:02 -0000 On Mon, 2 Aug 2004, Martin Blapp wrote: > > Hi all, > > We have many Mysql's running here, and just to tell you, there > are fixes/workarounds for the behaviour you see: > > FreeBSD 4.8 / 4.9 / 4.10 : > -------------------------- > > Compile port with WITH_LINUXTHREADS=YES or remove tcpwrappers > support manually from the build if it hangs with libc_r. Use IP adresses for > master/slave configurations in my.cnf. On problem here is that getnamebyhost() > is not threadsafe. This produces the strange errors you see. Isn't tcpwrappers support broken due to gcc compile options? Or was that only in -current? -- Dan Eischen From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 06:08:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C16B816A4CE; Tue, 3 Aug 2004 06:08:20 +0000 (GMT) Received: from postman.ksi.ru (postman.ksi.ru [195.68.167.117]) by mx1.FreeBSD.org (Postfix) with ESMTP id B10E743D45; Tue, 3 Aug 2004 06:08:19 +0000 (GMT) (envelope-from vasilievr@ksi.ru) Received: from [195.68.167.115] (HELO [10.10.10.207]) by postman.ksi.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP id 1512933; Tue, 03 Aug 2004 10:08:02 +0400 Message-ID: <410F2BD3.9060706@ksi.ru> Date: Tue, 03 Aug 2004 10:08:19 +0400 From: Roman Vasiliev User-Agent: Mozilla Thunderbird 0.7.1 (X11/20040719) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: problem in Linux-emulation and may be in NVidia drivers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 06:08:20 -0000 Hi. I have two question. I hope what someone helps me. First: I have NVidia fx5600 and installs drivers from /usr/ports/x11/nvidia-driver ================================================ # cat /boot/loader.conf hw.ata.ata_dma=0 nvidia_load="YES" linux_load="YES" # Linux emulation ================================================ First run glxgears shows ~2000 fps but second ~10 fps. And whole OpenGL application lags. Problem solves in changing on NVidia mx 4400. All works fine. Second: I have Maya 6.0 and 5.0. And on 4.10 Jul ================================================ # stat /usr/src/UPDATING 291840 340045 -rw-r--r-- 1 root wheel 1395128 43781 "Jul 28 13:45:10 2004" "Jul 17 18:33:11 2004" "Jul 17 18:33:11 2004" 16384 88 0 /usr/src/UPDATING ================================================ 17 18:33:11 2004 After normal start. and showing interface both Maya 5.0 and 6.0 fails. ================================================ %/compat/linux/bin/csh /compat/linux/usr/aw/maya5.0/bin/maya Maya (R), Version 5.0, 2003 04 01 00 02 Copyright 1997-2003 Alias|Wavefront, a division of Silicon Graphics Limited. All rights reserved. Graph Layout Toolkit Copyright 1992-1997 Tom Sawyer Software, Berkeley, California All rights reserved. maya encountered a fatal error Signal: 4 (Unknown Signal) Attempting to save in /usr/tmp/romis.20040728.1326.ma ================================================ The same result on 5.2.1 current. But near by 2 years ago i runs Maya 4.5 on FreeBSD somthing like 4.6. And all works fine. Please help. For me very convinient development on FreeBSD. And for that me needed Maya. But old version I haven't now. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 07:14:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA7E516A4CE for ; Tue, 3 Aug 2004 07:14:53 +0000 (GMT) Received: from www.hexe.com.pl (www.hexe.com.pl [212.160.230.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1056743D49 for ; Tue, 3 Aug 2004 07:14:53 +0000 (GMT) (envelope-from root@www.hexe.com.pl) Received: from www.hexe.com.pl (smmsp@localhost [127.0.0.1]) i736e1rK008074; Tue, 3 Aug 2004 08:40:03 +0200 Received: (from root@localhost) by www.hexe.com.pl (8.12.3/8.12.3/Debian-6.6) id i736UMKk007881; Tue, 3 Aug 2004 08:30:22 +0200 Date: Tue, 3 Aug 2004 08:30:22 +0200 Message-Id: <200408030630.i736UMKk007881@www.hexe.com.pl> From: To: Auto-Submitted: auto-submitted (antivirus notify) X-Infected-Received-From: ajc250.neoplus.adsl.tpnet.pl [83.25.236.250] X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on www X-Virus-Status: Clean cc: postmaster@www.hexe.com.pl cc: j.kaczmarek@hexe.com.pl Subject: Virus intercepted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 07:14:54 -0000 A message you sent to contained Worm.SomeFool.X and has not been delivered. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 2 14:29:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E640616A4CE; Mon, 2 Aug 2004 14:29:30 +0000 (GMT) Received: from search.sparks.net (search.sparks.net [207.5.180.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id A90FD43D6A; Mon, 2 Aug 2004 14:29:30 +0000 (GMT) (envelope-from dmiller@miningworks.com) Received: by search.sparks.net (Postfix, from userid 100) id 219C1A902; Mon, 2 Aug 2004 10:29:30 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by search.sparks.net (Postfix) with ESMTP id 1AB37A901; Mon, 2 Aug 2004 10:29:30 -0400 (EDT) Date: Mon, 2 Aug 2004 10:29:30 -0400 (EDT) From: somethrowawayaddy@d.sparks.net X-Sender: dmiller@search.sparks.net To: adp In-Reply-To: <00dd01c47775$0087df40$0200a8c0@THEBOX> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: dmiller@miningworks.com X-Mailman-Approved-At: Tue, 03 Aug 2004 14:34:46 +0000 cc: freebsd-database@freebsd.org cc: freebsd-hackers@freebsd.org cc: questions@freebsd.org Subject: Re: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2004 14:29:31 -0000 On Sat, 31 Jul 2004, adp wrote: > I recently posted the following message to MySQL discussion list. The > response there, and the one I keep finding on Google, is that this is a > long-standing issue betweeen FreeBSD and MySQL. For me this has been > happening since FreeBSD 4.4. I had that problem a couple of years ago and resolved it on a box that's still in use. Very heavily loaded machine, 15 GB database, over 300 million rows in one table. I couldn't find notes on it, however, and don't recall exactly what it was. One thing it might have been - did you change the HZ value in your kernel conf file, perhaps for device polling? I ran into problems on this machine when setting HZ above 500 but don't recall for sure it was mysql problems. I'm happy to share the mysql build and conf files, and the kernel conf file if you think it would help. I think it was a kernel tweak that solved the problem. HTH, --- David From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:01:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CC5216A4CE for ; Tue, 3 Aug 2004 16:01:01 +0000 (GMT) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8143143D69 for ; Tue, 3 Aug 2004 16:01:00 +0000 (GMT) SRS0=So2F/K8/=KZ=asarian-host.net=admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.13.0/8.13.0) id i73G0x5i037712 for freebsd-hackers@freebsd.org; Tue, 3 Aug 2004 18:00:59 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Received-SPF: pass (asarian-host.net: domain of admin@asarian-host.net designates sender IP as SASL permitted sender) Message-Id: <200408031600.I73G0W9L037695@asarian-host.net> Date: Tue, 03 Aug 2004 16:00:59 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: mu3q4hDlpIM58D8Txs+r79i2oRNOAUte6Qd7lGqB1Z4kM6HaRBndgp6sC1cmH2siUkneLHLCHr4h6TQwUedzLw== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint Organization: Asarian-host To: References: <20040803105731.197c7cd0.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Auth: Asarian-host PGP signature iQEVAwUAQQ+2uzFqW1BleBN9AQFlLgf/Q+BZOD22GgjydqYeD36LLjlD0UgeIb8i MkWMXBgojFXTpXXJRod75il28e4C2ROnTum8JPPR1mdhDW5mPyRNXil7ctTX96Ow KsiyO7EKrFKJOHHiZhmf4VZjvp4VRrYnfdEvQusZsVLCOD7r3lU7hkLHqRn77Phu qcusSUu8SKLlQeGxX+xKJZqWhXIg2R7jrzrwqdvs+jhV7G2FNms+O2h/u6draCp4 QiXw6+B6SzVu9uIL83ixljctjFVYeh2UmyEZaCRaFWGLb4MamGiu00p1rwzI8llD aK/Ee86GC3QndZCcTyYhRucmpBdTZA6llXJaIuDRcWGHesbxV7U5NA== =PZ/3 cc: freebsd-hackers@freebsd.org Subject: Re: One OR MORE of source and destination addresses? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:01:01 -0000 Bill Moran wrote: > How about using skipto instead of allow? Thus, if it passes the > first one, it can just skipto the next rule to be checked. i.e.: > > ipfw add 11 skipto 12 tcp from any to me 25 setup limit dst-addr 32 > ipfw add 12 allow tcp from any to me 25 setup limit src-addr 4 > > Thus, if rule 11 pases, it skips to rule 12. If it fails, it should > reject as always. The end result is that a packet _must_ pass both > rules to be allowed. I spoke too soon. :( It seems this sort of rules evokes a bug: http://lists.freebsd.org/pipermail/freebsd-ipfw/2004-April/001084.html My whole console is flooded with messages like these: "ipfw: install_state: entry already present, done" Is there a known patch? Thanks, - Mark From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:04:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 154EE16A4CE for ; Tue, 3 Aug 2004 16:04:52 +0000 (GMT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E61243D4C for ; Tue, 3 Aug 2004 16:04:51 +0000 (GMT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.12.11/8.12.11) with ESMTP id i73G4tP0007059 for ; Tue, 3 Aug 2004 13:04:55 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Tue, 3 Aug 2004 13:04:55 -0300 (ART) From: Fernando Gleiser To: hackers@freebsd.org Message-ID: <20040803125019.O1361@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -104.901 () BAYES_00,USER_IN_WHITELIST X-Scanned-By: MIMEDefang 2.42 Subject: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:04:52 -0000 First, I apologize if this isn't the right place for asking this things I need to control some external hardware with a small program in FreeBSD. I thought about using the 8 data bits of the parallel port for sending the control bits to the hardware. The hardware is a very simple combinational logic, triggered by level, I don't need any flow control or such. The soft opens /dev/lpt0 and then writes whatever value is needed (i.e, if I need the 2 lsb to be high and the rest low, I write 0x3) The problem is, I can't even open the paralel port for writing, it always fails with EBUSY. on the parallel port I attached a DB-25 wired as a "dummy printer", that is: strobe->/ack, busy, paper end and select inh, wired together and then sent to pin 18 (GND). Is there anything I'm missing? Are there a "programming and using the parallel port in FreeBSD" guide? Thanks in advance Fer From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:33:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1170716A4CE for ; Tue, 3 Aug 2004 16:33:21 +0000 (GMT) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47F4943D5A for ; Tue, 3 Aug 2004 16:33:20 +0000 (GMT) SRS0=So2F/K8/=KZ=asarian-host.net=admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.13.0/8.13.0) id i73GXJPs038927 for freebsd-hackers@freebsd.org; Tue, 3 Aug 2004 18:33:19 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Received-SPF: pass (asarian-host.net: domain of admin@asarian-host.net designates sender IP as SASL permitted sender) Message-Id: <200408031633.I73GXIBP038908@asarian-host.net> Date: Tue, 03 Aug 2004 16:33:19 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: EpsMQW+UNNsJVUpbw29xRt0NxGGTPXUbDtnoQfyNKjIpN88EBaSGCA3CYuO22Jud/JB9IiCU8wAaFvQqkj/3hw== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint Organization: Asarian-host To: References: <20040803105731.197c7cd0.wmoran@potentialtech.com> <200408031601.I73G1NQE037756@asarian-host.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Auth: Asarian-host PGP signature iQEVAwUAQQ++TzFqW1BleBN9AQFxHwf/fa6ZELImVdGHxTZ9AQoVpwb/k1OdsI6c CyT5JHYjSVqq47Mylw3rwQiq/iLx5TI+XZA0n06ko+1NEfu2sDOCQgGt4rteuCK7 P5Feo4tbbpRyGiV1uhgwHf6TWHITVKpYu2M5IqCZFNQpKtjuGqtO2COJiNXnFBK+ Q8YlSs1nJh2Wll83ED4Rs1lHN7ksRtyXnI4pkiIc2ZJsqToId7Bu5xcDYV12KONj lR7O6+klmvljFd0HNw0bZSbTrg2HYX2/i9LrmZFLC7m4Gjkq8tFCHsLIBG3P5Chq Vyr1kpXru52gSve6eP2SLq0ERnmtyjLkesJVEiDvB8GdKMtbYIvAvw== =5ids cc: freebsd-hackers@freebsd.org Subject: Re: One OR MORE of source and destination addresses? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:33:21 -0000 Mark wrote: > Bill Moran wrote: > >> How about using skipto instead of allow? Thus, if it passes the >> first one, it can just skipto the next rule to be checked. i.e.: >> >> ipfw add 11 skipto 12 tcp from any to me 25 setup limit dst-addr 32 >> ipfw add 12 allow tcp from any to me 25 setup limit src-addr 4 >> >> Thus, if rule 11 pases, it skips to rule 12. If it fails, it should >> reject as always. The end result is that a packet _must_ pass both >> rules to be allowed. > > I spoke too soon. :( It seems this sort of rules evokes a bug: > > http://lists.freebsd.org/pipermail/freebsd-ipfw/2004-April/001084.html > > My whole console is flooded with messages like these: > > "ipfw: install_state: entry already present, done" > > Is there a known patch? I just took a look at the code: if (q != NULL) { /* should never occur */ if (last_log != time_second) { last_log = time_second; printf("ipfw: install_state: entry already present, done\n"); } return 0; } What if I just hack the "printf ..." line out of there? Would that 'solve' it? I know it's dirty; but would things still work? Thanks, - Mark From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:48:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13FFE16A4CE for ; Tue, 3 Aug 2004 16:48:48 +0000 (GMT) Received: from gatekeeper.radio-do.de (gatekeeper.Radio-do.de [193.101.164.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16B6243D49 for ; Tue, 3 Aug 2004 16:48:47 +0000 (GMT) (envelope-from fn@radio-do.de) Received: by gatekeeper.radio-do.de (Milliard Gargantubrain Mail Daemon, from userid 65534) id ECCEB58E; Tue, 3 Aug 2004 18:48:44 +0200 (CEST) Received: from [IPv6?2001?600?1032?666??7] (pbook.radio-do.de [IPv6:2001:600:1032:666::7])ESMTP id 1255C4E4; Tue, 3 Aug 2004 18:48:41 +0200 (CEST) In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar> References: <20040803125019.O1361@cactus.fi.uba.ar> Mime-Version: 1.0 (Apple Message framework v618) Content-Type: text/plain; charset=ISO-8859-1; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Frank Nobis Date: Tue, 3 Aug 2004 18:48:40 +0200 To: Fernando Gleiser X-Mailer: Apple Mail (2.618) X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on gatekeeper.radio-do.de X-Spam-Level: X-Spam-Status: No, hits=-4.1 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 cc: hackers@freebsd.org Subject: Re: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:48:48 -0000 Am 3. Aug 2004 um 18:04 schrieb Fernando Gleiser: > Is there anything I'm missing? Are there a "programming and using the > parallel port in FreeBSD" guide? > You should try the ppi(4) driver. See the EXAMPLE section of the man=20 page for details how to send single bytes to the port. Gru=DF Frank --=20 Q: Because it reverses the logical flow of conversation. A: Why is putting a reply at the top of the message frowned upon? From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:49:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6994D16A4CE for ; Tue, 3 Aug 2004 16:49:45 +0000 (GMT) Received: from pc5.i.0x5.de (n.0x5.de [213.146.113.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF41C43D58 for ; Tue, 3 Aug 2004 16:49:43 +0000 (GMT) (envelope-from nicolas@i.0x5.de) Received: from pc5.i.0x5.de (nicolas@localhost [127.0.0.1]) by pc5.i.0x5.de (8.12.11/8.12.11) with ESMTP id i73GnZY9095587; Tue, 3 Aug 2004 18:49:35 +0200 (CEST) (envelope-from nicolas@pc5.i.0x5.de) Received: (from nicolas@localhost) by pc5.i.0x5.de (8.12.11/8.12.11/Submit) id i73GnZqk095586; Tue, 3 Aug 2004 18:49:35 +0200 (CEST) (envelope-from nicolas) Date: Tue, 3 Aug 2004 18:49:35 +0200 From: Nicolas Rachinsky To: Fernando Gleiser Message-ID: <20040803164935.GA95472@pc5.i.0x5.de> Mail-Followup-To: Fernando Gleiser , hackers@freebsd.org References: <20040803125019.O1361@cactus.fi.uba.ar> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar> X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: C11ABC0E X-PGP-Fingerprint: 19DB 8392 8FE0 814A 7362 EEBD A53B 526A C11A BC0E X-PGP-Key: http://www.rachinsky.de/nicolas/nicolas_rachinsky.asc User-Agent: Mutt/1.5.6i cc: hackers@freebsd.org Subject: Re: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:49:45 -0000 * Fernando Gleiser [2004-08-03 13:04 -0300]: > I need to control some external hardware with a small program in > FreeBSD. I thought about using the 8 data bits of the parallel port > for sending the control bits to the hardware. > The hardware is a very simple combinational logic, triggered by level, > I don't need any flow control or such. > > The soft opens /dev/lpt0 and then writes whatever value is needed (i.e, > if I need the 2 lsb to be high and the rest low, I write 0x3) Wouldn't ppi(4) fit your needs better? Nicolas From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 18:33:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04D0B16A4CE for ; Tue, 3 Aug 2004 18:33:31 +0000 (GMT) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1576643D67 for ; Tue, 3 Aug 2004 18:33:30 +0000 (GMT) SRS0=So2F/K8/=KZ=asarian-host.net=admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.13.0/8.13.0) id i73IXSXd043208 for freebsd-hackers@freebsd.org; Tue, 3 Aug 2004 20:33:28 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Received-SPF: pass (asarian-host.net: domain of admin@asarian-host.net designates sender IP as SASL permitted sender) Message-Id: <200408031833.I73IXS7R043191@asarian-host.net> Date: Tue, 03 Aug 2004 18:33:28 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: Sm85H7dAPEIQxdlPhJb/XlSL6Askwfvap6Tkh3OuwnN+8zc6hTh/RvN650SkZodAM06gKdFyczocgFwe72VHgQ== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint Organization: Asarian-host To: "Bill Moran" References: <20040803105731.197c7cd0.wmoran@asarian-host.net><200408031633.I73GXIBP038908@asarian-host.net> <20040803125617.06d9d0bd.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Auth: Asarian-host PGP signature iQEVAwUAQQ/aeDFqW1BleBN9AQEXDQf+LfOfZaUCHh+WE+q99C5M6CFbwcjuYqW3 9EbG9Hia1poqGRP/ilNAV69IxhMUVkaUbQp717DvQoCwYTfrUFovT7R03Lk91Bew F1noo6xzwRdHnabRust/KHjvrWka41CmQIvatloMgaPT/UjE0GeL+nUN8pKQWM01 LUtD5xEj29ppt8Tg21W5w48ddbUeA41Lg6cDe9o1D5TMwDaZ3Pj2c0yEjqzd7YXb EWa7G73G9JLseSVS+kiYvC/vGtIwbReEyBP1S3HT9w8xWqqSQCB2OKalCWGL5nzm 832wvFrIKYUA2BCLXd/RCHsqv9IujLEsarpK2LrbpdvP5sbCndydCQ== =6Ih6 cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: One OR MORE of source and destination addresses? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 18:33:31 -0000 Bill Moran wrote: >>> My whole console is flooded with messages like these: >>> >>> "ipfw: install_state: entry already present, done" >>> >>> Is there a known patch? >> >> I just took a look at the code: >> >> if (q != NULL) { /* should never occur */ >> if (last_log != time_second) { >> last_log = time_second; >> printf("ipfw: install_state: entry already present, done\n"); >> } >> return 0; >> } >> >> What if I just hack the "printf ..." line out of there? Would that >> 'solve' it? I know it's dirty; but would things still work? > > Theoretically, yes (note that I'm certainly no expert on this chunk of > code) My reason for saying yes is: > 1) The error seems to be that IPFW is trying to add the same stateful > rule twice ... which means it _did_ get successfully added once. > 2) When that condition occurs, the function returns 0. The comment at > the top of the file states that the function returns 1 on failure, > so it would appear that this condition is still considered > successful. Thank you for taking the time to look into this. Yes, my reason for thinking "yes" was the same. It seems there are critical errors, such as "Too many dynamic rules", returning 1, and, say, unexpected errors, like when trying to create a rule that already exists, returning 0. Since the rule actually seems to be working (limiting total connection to 32, and only 4 per source), just commenting out the printf statement seems like a harmless, be it very dirty, "solution". Indeed, this should probably be fixed; and I will file a PR tonight. - Mark From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 19:43:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E965216A4CE for ; Tue, 3 Aug 2004 19:43:51 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id D898F43D45 for ; Tue, 3 Aug 2004 19:43:51 +0000 (GMT) (envelope-from zombyfork@gmail.com) Received: by mproxy.gmail.com with SMTP id x71so25470cwb for ; Tue, 03 Aug 2004 12:43:46 -0700 (PDT) Received: by 10.11.122.5 with SMTP id u5mr16057cwc; Tue, 03 Aug 2004 12:43:46 -0700 (PDT) Message-ID: <346a802204080312432f319405@mail.gmail.com> Date: Tue, 3 Aug 2004 15:43:46 -0400 From: Coleman Kane To: Vlad902 In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: cc: freebsd-hackers@freebsd.org Subject: Re: Proper code style regarding hexadecimal case X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cokane@cokane.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 19:43:52 -0000 Typically, I have used the lowercase formatting. Much of the code I work with has gone for the lowercase format as well. Typically setting something to 0xFFFFFFFF reads like yelling and stands out in the source, since keywords are all lowercase and most var/function names are as well. As an aside, the #define macros usually stand out as all of them are all-caps. I would suggest using the lowercase format. On Sat, 31 Jul 2004 10:43:45 -0700, Vlad902 wrote: > What is the proper code style regarding hexadecimal case (ie. 0xabc v. > 0xABC)? I have found code to be a mix of mostly lower and upper case, > and style(9) didn't say anything on the subject. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 05:06:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C041616A4CE; Wed, 4 Aug 2004 05:06:55 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B01BE43D2D; Wed, 4 Aug 2004 05:06:52 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i7456Wx4054865; Wed, 4 Aug 2004 14:36:33 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 4 Aug 2004 14:36:32 +0930 User-Agent: KMail/1.6.2 References: <20040803125019.O1361@cactus.fi.uba.ar> In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408041436.32294.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org Subject: Re: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 05:06:55 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 4 Aug 2004 01:34, Fernando Gleiser wrote: > The problem is, I can't even open the paralel port for writing, it > always fails with EBUSY. /dev/lpt0 expects a printer to be connected (you can open /dev/lpt0.ctl but= =20 this is not what you should do..) > on the parallel port I attached a DB-25 wired as a "dummy printer", that > is: strobe->/ack, busy, paper end and select inh, wired together and > then sent to pin 18 (GND). > > Is there anything I'm missing? Are there a "programming and using the > parallel port in FreeBSD" guide? man 4 ppi The interface is a bit gross, but it does work quite well (see the avrdude= =20 port for an example of some software that uses it) =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBEG7Y5ZPcIHs/zowRAjyoAKCiAkilygYm3cwmleYeRGOBlE03QQCfQp64 63HouUdFXijhAljS7BM5YiA=3D =3Dw+sQ =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 05:06:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C041616A4CE; Wed, 4 Aug 2004 05:06:55 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B01BE43D2D; Wed, 4 Aug 2004 05:06:52 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i7456Wx4054865; Wed, 4 Aug 2004 14:36:33 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 4 Aug 2004 14:36:32 +0930 User-Agent: KMail/1.6.2 References: <20040803125019.O1361@cactus.fi.uba.ar> In-Reply-To: <20040803125019.O1361@cactus.fi.uba.ar> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408041436.32294.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: hackers@freebsd.org Subject: Re: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 05:06:55 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 4 Aug 2004 01:34, Fernando Gleiser wrote: > The problem is, I can't even open the paralel port for writing, it > always fails with EBUSY. /dev/lpt0 expects a printer to be connected (you can open /dev/lpt0.ctl but= =20 this is not what you should do..) > on the parallel port I attached a DB-25 wired as a "dummy printer", that > is: strobe->/ack, busy, paper end and select inh, wired together and > then sent to pin 18 (GND). > > Is there anything I'm missing? Are there a "programming and using the > parallel port in FreeBSD" guide? man 4 ppi The interface is a bit gross, but it does work quite well (see the avrdude= =20 port for an example of some software that uses it) =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBEG7Y5ZPcIHs/zowRAjyoAKCiAkilygYm3cwmleYeRGOBlE03QQCfQp64 63HouUdFXijhAljS7BM5YiA=3D =3Dw+sQ =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 05:08:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93E0816A4CE; Wed, 4 Aug 2004 05:08:24 +0000 (GMT) Received: from smtp-out6.blueyonder.co.uk (smtp-out6.blueyonder.co.uk [195.188.213.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id D41AA43D49; Wed, 4 Aug 2004 05:08:23 +0000 (GMT) (envelope-from admin@asarian-host.net) Received: from cluster5 ([172.23.146.54]) by smtp-out6.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Wed, 4 Aug 2004 06:08:40 +0100 Received: from mail pickup service by cluster5 with Microsoft SMTPSVC; Wed, 4 Aug 2004 06:04:22 +0100 Received: from smtp-in4.blueyonder.co.uk ([172.23.146.15]) by cluster5 with Microsoft SMTPSVC(5.0.2195.6713); Tue, 3 Aug 2004 17:07:29 +0100 Received: from eback03.blueyonder.co.uk ([195.188.53.214]) by smtp-in4.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Tue, 3 Aug 2004 17:01:56 +0100 Received: from [172.23.164.205] (helo=anti-virus02-08.blueyonder.co.uk) by eback03.blueyonder.co.uk with smtp (Exim 4.32) id 1Bs1jO-0002bp-U6 for xtalsinger@blueyonder.co.uk; Tue, 03 Aug 2004 17:01:38 +0100 Received: from mx2.freebsd.org ([216.136.204.119]) by exim11.blueyonder.co.uk with esmtp (Exim 4.41) id 1Bs1jO-0000VA-BO for xtalsinger@blueyonder.co.uk; Tue, 03 Aug 2004 17:01:38 +0100 Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18]) by mx2.freebsd.org (Postfix) with ESMTP id 7621255900; Tue, 3 Aug 2004 16:01:11 +0000 (GMT) (envelope-from owner-freebsd-questions@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 63D4416A4E4; Tue, 3 Aug 2004 16:01:06 +0000 (GMT) Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03A8916A4CE for ; Tue, 3 Aug 2004 16:01:01 +0000 (GMT) Received: from mail.asarian-host.net (mail.asarian-host.net [194.109.160.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5594A43D60 for ; Tue, 3 Aug 2004 16:01:00 +0000 (GMT) SRS0=So2F/K8/=KZ=asarian-host.net=admin@asarian-host.net) Comments: To protect the identity of the sender, certain header fields are either not shown, or masked. Anonymous email accounts can be requested by filling in the appropriate form at: https://asarian-host.net/cgi-bin/signup.cgi Received: (from root@localhost) by mail.asarian-host.net (8.13.0/8.13.0) id i73G0xin037704 for freebsd-questions@freebsd.org; Tue, 3 Aug 2004 18:00:59 +0200 (CEST) (envelope-from admin@asarian-host.net) From: Mark Received-SPF: pass (asarian-host.net: domain of admin@asarian-host.net designates sender IP as SASL permitted sender) Message-Id: <200408031600.I73G0W9L037695@asarian-host.net> Date: Tue, 03 Aug 2004 16:00:59 GMT X-Authenticated-Sender: admin@asarian-host.net X-Trace: +9bugMVvIj2HfaKeiX8K7qsylv8Ay0janHFosYbKsRkmJjVfB65vEYpvyTsi4ZtsAmWscwITa8PEu1e7rUyCcA== X-Complaints-To: abuse@asarian-host.net X-Abuse-Info: Please be sure to forward a copy of ALL headers, otherwise we are unable to process your complaint Organization: Asarian-host To: References: <20040803105731.197c7cd0.wmoran@potentialtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Auth: Asarian-host PGP signature iQEVAwUAQQ+2uzFqW1BleBN9AQFlLgf/Q+BZOD22GgjydqYeD36LLjlD0UgeIb8i MkWMXBgojFXTpXXJRod75il28e4C2ROnTum8JPPR1mdhDW5mPyRNXil7ctTX96Ow KsiyO7EKrFKJOHHiZhmf4VZjvp4VRrYnfdEvQusZsVLCOD7r3lU7hkLHqRn77Phu qcusSUu8SKLlQeGxX+xKJZqWhXIg2R7jrzrwqdvs+jhV7G2FNms+O2h/u6draCp4 QiXw6+B6SzVu9uIL83ixljctjFVYeh2UmyEZaCRaFWGLb4MamGiu00p1rwzI8llD aK/Ee86GC3QndZCcTyYhRucmpBdTZA6llXJaIuDRcWGHesbxV7U5NA== =PZ/3 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Sender: owner-freebsd-questions@freebsd.org Errors-To: owner-freebsd-questions@freebsd.org X-Sent-To: xtalsinger@blueyonder.co.uk X-OriginalArrivalTime: 03 Aug 2004 16:01:56.0354 (UTC) FILETIME=[3362F620:01C47973] cc: freebsd-hackers@freebsd.org Subject: Re: One OR MORE of source and destination addresses? X-BeenThere: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 05:08:24 -0000 Bill Moran wrote: > How about using skipto instead of allow? Thus, if it passes the > first one, it can just skipto the next rule to be checked. i.e.: > > ipfw add 11 skipto 12 tcp from any to me 25 setup limit dst-addr 32 > ipfw add 12 allow tcp from any to me 25 setup limit src-addr 4 > > Thus, if rule 11 pases, it skips to rule 12. If it fails, it should > reject as always. The end result is that a packet _must_ pass both > rules to be allowed. I spoke too soon. :( It seems this sort of rules evokes a bug: http://lists.freebsd.org/pipermail/freebsd-ipfw/2004-April/001084.html My whole console is flooded with messages like these: "ipfw: install_state: entry already present, done" Is there a known patch? Thanks, - Mark _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:48:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAF9C16A4CE; Tue, 3 Aug 2004 16:48:05 +0000 (GMT) Received: from cathy.bmts.com (cathy.bmts.com [216.183.128.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id E233643D49; Tue, 3 Aug 2004 16:48:04 +0000 (GMT) (envelope-from rhempel@bmts.com) Received: from PC300GL (os-dsl-0228.bmts.com [216.183.152.229]) by cathy.bmts.com (8.12.10/8.12.10) with SMTP id i73GmHIo008649; Tue, 3 Aug 2004 12:48:18 -0400 (EDT) From: "Ralph Hempel" To: Date: Tue, 3 Aug 2004 12:50:38 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal In-Reply-To: <200408031633.I73GXIBP038908@asarian-host.net> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 X-bmts-MailScanner: Found to be clean X-bmts-MailScanner-SpamCheck: X-MailScanner-From: rhempel@bmts.com X-Mailman-Approved-At: Wed, 04 Aug 2004 12:29:08 +0000 cc: freebsd-hackers@freebsd.org Subject: RE: One OR MORE of source and destination addresses? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: rhempel@bmts.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:48:05 -0000 > I just took a look at the code: > > if (q != NULL) { /* should never occur */ > if (last_log != time_second) { > last_log = time_second; > printf("ipfw: install_state: entry already present, done\n"); > } > return 0; > } > > What if I just hack the "printf ..." line out of there? Would that 'solve' > it? I know it's dirty; but would things still work? I'll jump in here as a software manager and say NO!!!!! Note, I have no idea if it will still work, but as a professional programmer, the question raises a number of issues :-) 1. First of all, the original programmer took time to comment this line: if (q != NULL) { /* should never occur */ OK. There's no indication WHY it should never occur, but still, the comment is there. 2. By adding this line: if (last_log != time_second) { He's limiting the printed errors to one every second, so you are not beeing flooded with as many messages as are actually ocurring. Is last_log used anywhere else? 3. This line: return 0; will still return 0 if the error occurs, so the program will work the same with or without the diagnostic message. I'd do some more digging and find out exactly WHY this is a "should never occur case" to be sure that the log is not needed. If you don't print the log, then why do the test, except to return 0 :-) Ralph From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 3 16:56:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13E9D16A4CE; Tue, 3 Aug 2004 16:56:21 +0000 (GMT) Received: from internet.potentialtech.com (h-66-167-251-6.phlapafg.covad.net [66.167.251.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id A8CC243D45; Tue, 3 Aug 2004 16:56:20 +0000 (GMT) (envelope-from wmoran@potentialtech.com) Received: from working.potentialtech.com (pa-plum-cmts1e-68-68-113-64.pittpa.adelphia.net [68.68.113.64]) by internet.potentialtech.com (Postfix) with ESMTP id B47E869A71; Tue, 3 Aug 2004 12:56:19 -0400 (EDT) Date: Tue, 3 Aug 2004 12:56:17 -0400 From: Bill Moran To: Mark Message-Id: <20040803125617.06d9d0bd.wmoran@potentialtech.com> In-Reply-To: <200408031633.I73GXIBP038908@asarian-host.net> References: <20040803105731.197c7cd0.wmoran@potentialtech.com> <200408031601.I73G1NQE037756@asarian-host.net> <200408031633.I73GXIBP038908@asarian-host.net> Organization: Potential Technologies X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 04 Aug 2004 12:29:08 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: One OR MORE of source and destination addresses? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Aug 2004 16:56:21 -0000 Mark wrote: > Mark wrote: > > > Bill Moran wrote: > > > >> How about using skipto instead of allow? Thus, if it passes the > >> first one, it can just skipto the next rule to be checked. i.e.: > >> > >> ipfw add 11 skipto 12 tcp from any to me 25 setup limit dst-addr 32 > >> ipfw add 12 allow tcp from any to me 25 setup limit src-addr 4 > >> > >> Thus, if rule 11 pases, it skips to rule 12. If it fails, it should > >> reject as always. The end result is that a packet _must_ pass both > >> rules to be allowed. > > > > I spoke too soon. :( It seems this sort of rules evokes a bug: > > > > http://lists.freebsd.org/pipermail/freebsd-ipfw/2004-April/001084.html > > > > My whole console is flooded with messages like these: > > > > "ipfw: install_state: entry already present, done" > > > > Is there a known patch? > > I just took a look at the code: > > if (q != NULL) { /* should never occur */ > if (last_log != time_second) { > last_log = time_second; > printf("ipfw: install_state: entry already present, done\n"); > } > return 0; > } > > What if I just hack the "printf ..." line out of there? Would that 'solve' > it? I know it's dirty; but would things still work? Theoretically, yes (note that I'm certainly no expert on this chunk of code) My reason for saying yes is: 1) The error seems to be that IPFW is trying to add the same stateful rule twice ... which means it _did_ get successfully added once. 2) When that condition occurs, the function returns 0. The comment at the top of the file states that the function returns 1 on failure, so it would appear that this condition is still considered successful. -- Bill Moran Potential Technologies http://www.potentialtech.com From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 19:38:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74A5D16A4CE for ; Wed, 4 Aug 2004 19:38:38 +0000 (GMT) Received: from gatorzone.com (gatormail.gatorzone.com [216.53.131.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id E7B7043D6E for ; Wed, 4 Aug 2004 19:38:37 +0000 (GMT) (envelope-from cd_freebsd@gatorzone.com) Date: Wed, 4 Aug 2004 16:09:22 -0400 Message-Id: <200408041609.AA23724184@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "cd_freebsd" To: X-Mailer: Subject: Compiling Kernel Module with Current Kernel Options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cd_freebsd@gatorzone.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 19:38:38 -0000 I have an SMP machine, so after installing the GENERIC version of FreeBSD 4.7, I created my own version of the kernel that included SMP support and DDB. Being a device driver writer, I created my Makefile just as perscribed, but when I compiled my code, the SMP define was not set. It appears that the build process did not include the options found in opt_global.h. How do you build a driver that includes the proper options? Is there something special I have to do to make these options available to my driver? From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 22:12:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3B1816A4CE for ; Wed, 4 Aug 2004 22:12:28 +0000 (GMT) Received: from mxfep02.bredband.com (mxfep02.bredband.com [195.54.107.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9522843D5E for ; Wed, 4 Aug 2004 22:12:27 +0000 (GMT) (envelope-from peter.schuller@infidyne.com) Received: from scode.mine.nu ([83.226.138.222] [83.226.138.222]) by mxfep02.bredband.com with ESMTP id <20040804221226.OUAI23867.mxfep02.bredband.com@scode.mine.nu>; Thu, 5 Aug 2004 00:12:26 +0200 Received: from localhost (localhost [127.0.0.1]) by scode.mine.nu (Postfix) with ESMTP id 47CBD5DF66; Thu, 5 Aug 2004 00:21:52 +0200 (CEST) From: Peter Schuller To: freebsd-hackers@freebsd.org Date: Thu, 5 Aug 2004 00:21:48 +0200 User-Agent: KMail/1.6.2 References: <00dd01c47775$0087df40$0200a8c0@THEBOX> <001201c477f4$bb6f84f0$bb01a8c0@hartkiem2nnl7x> In-Reply-To: <001201c477f4$bb6f84f0$bb01a8c0@hartkiem2nnl7x> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408050021.48595.peter.schuller@infidyne.com> cc: Peter Kieser cc: adp Subject: Re: FreeBSD and MySQL - mysqld eats CPU alive X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 22:12:28 -0000 > I've experienced this exact problem, all the way from 4.4-STABLE as well. > The time period where the issue starts happening is very erradic, but I'm > having the exact issue on one of my servers at this very moment. I thought > it was just an issue with my box, and not anyone elses. I've seen this on two machines (both 5.2). When I built mysql with linuxthreads the problem went away. Alternatively I've seen talk of name resolution causing problems due to a non-thread-safe implementation of gethostbyname() - this too manifested itself as abnormal CPU usage. In my case --skip-name-resolve didn't help, but perhaps it might for you guys. -- / Peter Schuller, InfiDyne Technologies HB PGP userID: 0xE9758B7D or 'Peter Schuller ' Key retrieval: Send an E-Mail to getpgpkey@scode.org E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 07:24:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C36A616A4CE for ; Thu, 5 Aug 2004 07:24:44 +0000 (GMT) Received: from www.hexe.com.pl (www.hexe.com.pl [212.160.230.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC88843D5A for ; Thu, 5 Aug 2004 07:24:43 +0000 (GMT) (envelope-from root@www.hexe.com.pl) Received: from www.hexe.com.pl (smmsp@localhost [127.0.0.1]) i756o1tx014770; Thu, 5 Aug 2004 08:50:04 +0200 Received: (from root@localhost) by www.hexe.com.pl (8.12.3/8.12.3/Debian-6.6) id i756jTUq014732; Thu, 5 Aug 2004 08:45:29 +0200 Date: Thu, 5 Aug 2004 08:45:29 +0200 Message-Id: <200408050645.i756jTUq014732@www.hexe.com.pl> From: To: Auto-Submitted: auto-submitted (antivirus notify) X-Infected-Received-From: ajl58.neoplus.adsl.tpnet.pl [83.25.245.58] X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on www X-Virus-Status: Clean cc: postmaster@www.hexe.com.pl cc: mkmin@hexe.com.pl Subject: Virus intercepted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 07:24:44 -0000 A message you sent to contained Worm.SomeFool.X and has not been delivered. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 07:24:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C3D7516A4CF for ; Thu, 5 Aug 2004 07:24:44 +0000 (GMT) Received: from www.hexe.com.pl (www.hexe.com.pl [212.160.230.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE89143D5C for ; Thu, 5 Aug 2004 07:24:43 +0000 (GMT) (envelope-from root@www.hexe.com.pl) Received: from www.hexe.com.pl (smmsp@localhost [127.0.0.1]) i756o1u1014770; Thu, 5 Aug 2004 08:50:04 +0200 Received: (from root@localhost) by www.hexe.com.pl (8.12.3/8.12.3/Debian-6.6) id i756iHqm014661; Thu, 5 Aug 2004 08:44:17 +0200 Date: Thu, 5 Aug 2004 08:44:17 +0200 Message-Id: <200408050644.i756iHqm014661@www.hexe.com.pl> From: To: Auto-Submitted: auto-submitted (antivirus notify) X-Infected-Received-From: ajl58.neoplus.adsl.tpnet.pl [83.25.245.58] X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on www X-Virus-Status: Clean cc: postmaster@www.hexe.com.pl cc: marzena@hexe.com.pl Subject: Virus intercepted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 07:24:45 -0000 A message you sent to contained Worm.SomeFool.X and has not been delivered. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 07:24:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9856616A4E9 for ; Thu, 5 Aug 2004 07:24:52 +0000 (GMT) Received: from www.hexe.com.pl (www.hexe.com.pl [212.160.230.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAD4243D67 for ; Thu, 5 Aug 2004 07:24:51 +0000 (GMT) (envelope-from root@www.hexe.com.pl) Received: from www.hexe.com.pl (smmsp@localhost [127.0.0.1]) i756o1u9014770; Thu, 5 Aug 2004 08:50:05 +0200 Received: (from root@localhost) by www.hexe.com.pl (8.12.3/8.12.3/Debian-6.6) id i756htZA014638; Thu, 5 Aug 2004 08:43:55 +0200 Date: Thu, 5 Aug 2004 08:43:55 +0200 Message-Id: <200408050643.i756htZA014638@www.hexe.com.pl> From: To: Auto-Submitted: auto-submitted (antivirus notify) X-Infected-Received-From: ajl58.neoplus.adsl.tpnet.pl [83.25.245.58] X-Virus-Scanned: clamd / ClamAV version 0.74, clamav-milter version 0.74a on www X-Virus-Status: Clean cc: postmaster@www.hexe.com.pl cc: m.wolanska@hexe.com.pl Subject: Virus intercepted X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 07:24:52 -0000 A message you sent to contained Worm.SomeFool.X and has not been delivered. From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 14:40:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 073BB16A4CE for ; Wed, 4 Aug 2004 14:40:20 +0000 (GMT) Received: from web51805.mail.yahoo.com (web51805.mail.yahoo.com [206.190.38.236]) by mx1.FreeBSD.org (Postfix) with SMTP id 830AF43D4C for ; Wed, 4 Aug 2004 14:40:19 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Message-ID: <20040804144019.83129.qmail@web51805.mail.yahoo.com> Received: from [61.10.7.82] by web51805.mail.yahoo.com via HTTP; Wed, 04 Aug 2004 22:40:19 CST Date: Wed, 4 Aug 2004 22:40:19 +0800 (CST) From: =?big5?q?Patrick=20Dung?= To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 05 Aug 2004 13:56:20 +0000 cc: freebsd-hackers@freebsd.org Subject: Mount name length limit (MNAMELEN) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 14:40:20 -0000 Hi It seems that the constant is in /usr/sys/sys/mount.h. The limit is already there since the initial import in 1995. (From 4.4BSD?) I want to know what is the root cause preventing a larger value. PS: I have found some interesting links about MNAMELEN: http://leaf.dragonflybsd.org/mailarchive/kernel/2003-08/msg00194.html http://www.secnetix.de/~olli/FreeBSD/mnamelen.hawk >From Compaq(HP) Tru64 UNIX 5.1 man pages, it seems that Tru64 UNIX also have a restriction of 90 chars.(They also based on BSD?) http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN2/0114____.HTM _________________________________________________________ ¥²±þ§Þ¡B¶¼ºq¡B¤p¬P¬P... ®öº©¹aÁn ±¡¤ß³sô http://us.rd.yahoo.com/evt=22281/*http://ringtone.yahoo.com.hk/ From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 4 18:10:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51DC816A4CE for ; Wed, 4 Aug 2004 18:10:12 +0000 (GMT) Received: from web20423.mail.yahoo.com (web20423.mail.yahoo.com [66.163.170.246]) by mx1.FreeBSD.org (Postfix) with SMTP id 3E2AC43D2D for ; Wed, 4 Aug 2004 18:10:12 +0000 (GMT) (envelope-from dhutch9999@yahoo.com) Message-ID: <20040804181012.71953.qmail@web20423.mail.yahoo.com> Received: from [12.153.72.219] by web20423.mail.yahoo.com via HTTP; Wed, 04 Aug 2004 11:10:12 PDT Date: Wed, 4 Aug 2004 11:10:12 -0700 (PDT) From: DH To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 05 Aug 2004 13:56:20 +0000 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Aug 2004 18:10:12 -0000 Good afternoon; I'm reposting this because I've not rec'd a response from the freebsd-fs mailing list yet and I need an answer fairly quickly. Thanks be any who can help out! Please CC me as I am not a member of this list, thank you. DH wrote: Date: Tue, 3 Aug 2004 11:58:56 -0700 (PDT) From: DH Subject: How to read bad blocks error message & marking of same To: freebsd-fs@freebsd.org Hello; OS 4.10-2 i386 - have read man pgs for fsck and badsec & done a bit of googl'n - I've begun rec'ing these error messages: ad0s1a: hard error reading fsbn 141935 of 70848 - 71103 (ad0s1 bn 141935; cn 8 tn 212 sn 59 ) status=59 error=40 Got about 7 of these with varying values. I ran Seagate's diag utility and it reported only 1 bad sector (# 71099 ). Unfortunately ad0s1a happens to my / dir so allowing the utility to write zeros to that block hasn't sat well with me. Sooo - if some one could explain the exact meaning of my error message & point me in the right direction to use these values to fix my disk problem I'd greatly appreciate it (with many many many thanks in advance :) ) fsbn 141935 of 70848 - 71103 ? ad0s1 bn 141935 ? cn 8 ? tn 212 ? sn 59 ? status = 59 ? error = 40 ? David Hutchens III Network Technician dhutch9999@yahoo.com --------------------------------- Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! --------------------------------- Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 14:17:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FAA316A4CE for ; Thu, 5 Aug 2004 14:17:55 +0000 (GMT) Received: from msgbas1x.cos.agilent.com (msgbas1x.cos.agilent.com [192.25.240.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3096643D1F for ; Thu, 5 Aug 2004 14:17:55 +0000 (GMT) (envelope-from chuck_tuffli@agilent.com) Received: from enccos4.cos.agilent.com (enccos4.cos.agilent.com [130.29.152.93]) by msgbas1x.cos.agilent.com (Postfix) with SMTP id B58B72786F; Thu, 5 Aug 2004 08:17:54 -0600 (MDT) Received: from relcos1.cos.agilent.com (130.29.152.239) by enccos4.cos.agilent.com (Sigaba Gateway v3.83) with ESMTP id 20854819; Thu, 05 Aug 2004 08:18:22 -0600 Received: from rtl.rose.agilent.com (rtl.rose.agilent.com [130.30.179.189]) by relcos1.cos.agilent.com (Postfix) with ESMTP id 5DD5869A; Thu, 5 Aug 2004 08:17:54 -0600 (MDT) Received: from cre85086tuf.rose.agilent.com (cre85086tuf [130.30.174.150]) ESMTP id HAA27607; Thu, 5 Aug 2004 07:17:52 -0700 (PDT) Received: by cre85086tuf.rose.agilent.com (Postfix, from userid 1001) id C040919E2AF; Thu, 5 Aug 2004 07:21:11 -0700 (PDT) Date: Thu, 5 Aug 2004 07:21:11 -0700 From: Chuck Tuffli To: cd_freebsd Message-ID: <20040805142111.GA14648@cre85086tuf.rose.agilent.com> References: <200408041609.AA23724184@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200408041609.AA23724184@gatorzone.com> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: Compiling Kernel Module with Current Kernel Options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 14:17:55 -0000 On Wed, Aug 04, 2004 at 04:09:22PM -0400, cd_freebsd wrote: > I have an SMP machine, so after installing the GENERIC version of > FreeBSD 4.7, I created my own version of the kernel that included > SMP support and DDB. > > Being a device driver writer, I created my Makefile just as > perscribed, but when I compiled my code, the SMP define was not set. > It appears that the build process did not include the options found > in opt_global.h. > > How do you build a driver that includes the proper options? Is there > something special I have to do to make these options available to my > driver? I'm not sure what the problem is here, but could it be that the build is picking up the wrong set of includes? After you built the SMP kernel, did you copy kernel to / or did you do a make install? I've built at least a SCSI driver for 4.7 for a SMP machine and don't remember having to do anything special. -- Chuck Tuffli Agilent Technologies, Storage Area Networking From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 14:21:10 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D10E916A4CE for ; Thu, 5 Aug 2004 14:21:10 +0000 (GMT) Received: from mail.emu.edu.tr (mail.emu.edu.tr [193.140.41.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06E9C43D4C for ; Thu, 5 Aug 2004 14:21:10 +0000 (GMT) (envelope-from ilker.ozupak@mail.emu.edu.tr) Received: from eniac.emu.edu.tr ([213.208.49.139]) by mail.emu.edu.tr with Microsoft SMTPSVC(5.0.2195.5329); Thu, 5 Aug 2004 17:21:08 +0300 From: Ilker OZUPAK To: freebsd-hackers@freebsd.org Date: Thu, 5 Aug 2004 17:19:43 +0300 User-Agent: KMail/1.6.2 References: <20040804144019.83129.qmail@web51805.mail.yahoo.com> In-Reply-To: <20040804144019.83129.qmail@web51805.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit Message-Id: <200408051719.44705.ilker.ozupak@emu.edu.tr> X-OriginalArrivalTime: 05 Aug 2004 14:21:08.0324 (UTC) FILETIME=[734E5240:01C47AF7] Subject: Re: Mount name length limit (MNAMELEN) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ilker.ozupak@emu.edu.tr List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 14:21:10 -0000 On Wednesday 04 August 2004 17:40, Patrick Dung wrote: > Hi > > It seems that the constant is in /usr/sys/sys/mount.h. > The limit is already there since the initial import in > 1995. (From 4.4BSD?) > I want to know what is the root cause preventing a > larger value. > > PS: I have found some interesting links about > MNAMELEN: > > http://leaf.dragonflybsd.org/mailarchive/kernel/2003-08/msg00194.html > > http://www.secnetix.de/~olli/FreeBSD/mnamelen.hawk > > >From Compaq(HP) Tru64 UNIX 5.1 man pages, it seems > > that Tru64 UNIX also have a restriction of 90 > chars.(They also based on BSD?) > http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN2/01 >14____.HTM from -> http://h30097.www3.hp.com/unix/standards.html -------------------------------------------------------------------------------- The HP Tru64 UNIX operating system is a 64-bit advanced kernel architecture based on Carnegie-Mellon University's Mach V2.5 kernel design, with components from Berkeley Software Distribution (BSD) 4.3 and 4.4, UNIX System V, and other sources. Tru64 UNIX uses an implementation of The Open Group's OSF/1 Release1.0, Release1.1, and Release R1.2 technology, the Motif graphical user interface and programming environment, and supports the full features of The Open Group's X Window System, Version 11, Release 6.5 (X11R6.5.) ---------------------------------------------------------------------------------- -- IO GpG key @ http://www.emu.edu.tr/ilker/ilker.asc From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 14:33:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A381A16A4CE for ; Thu, 5 Aug 2004 14:33:19 +0000 (GMT) Received: from gatorzone.com (gatormail.gatorzone.com [216.53.131.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13E3543D31 for ; Thu, 5 Aug 2004 14:33:19 +0000 (GMT) (envelope-from cd_freebsd@gatorzone.com) Date: Thu, 5 Aug 2004 11:04:10 -0400 Message-Id: <200408051104.AA21692530@gatorzone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "cd_freebsd" To: X-Mailer: Subject: Re: Compiling Kernel Module with Current Kernel Options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cd_freebsd@gatorzone.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 14:33:19 -0000 >> I'm not sure what the problem is here, but could it be that the build is picking up the wrong set of includes? After you built the SMP kernel, did you copy kernel to / or did you do a make install? I've built at least a SCSI driver for 4.7 for a SMP machine and don't remember having to do anything special. >> Yes, I did a make install. The system has booted and uname -a shows the kernel was the one I built. The problem I see is that there is no "-include opt_global.h" in the compile command generated by the bsd.kmod.mk. Even if there was the include, the directory opt_global.h is located is not in the INCLUDE path. How did your code include and locate opt_global.h? From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 5 14:58:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9887916A4D0 for ; Thu, 5 Aug 2004 14:58:22 +0000 (GMT) Received: from skippyii.compar.com (cistore.compar.com [216.208.38.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3094943D1F for ; Thu, 5 Aug 2004 14:58:22 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (CPE00062566c7bb-CM000039c69a66.cpe.net.cable.rogers.com [69.193.82.185])i75F373J005768; Thu, 5 Aug 2004 11:03:09 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001b01c47afc$3c125c40$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: , References: <20040804144019.83129.qmail@web51805.mail.yahoo.com> <200408051719.44705.ilker.ozupak@emu.edu.tr> Date: Thu, 5 Aug 2004 10:55:19 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Subject: Re: Mount name length limit (MNAMELEN) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 14:58:22 -0000 > On Wednesday 04 August 2004 17:40, Patrick Dung wrote: > > Hi > > > > It seems that the constant is in /usr/sys/sys/mount.h. > > The limit is already there since the initial import in > > 1995. (From 4.4BSD?) > > I want to know what is the root cause preventing a > > larger value. > > > > PS: I have found some interesting links about > > MNAMELEN: > > > > http://leaf.dragonflybsd.org/mailarchive/kernel/2003-08/msg00194.html > > > > http://www.secnetix.de/~olli/FreeBSD/mnamelen.hawk I recall bringing this up on the FreeBSD lists a while ago (1-2 years?) and IIRC, the reason this is tough to change is that we use this constant in a lot of internal structures, and changing the constant will change the structure sizes which will break a lot of things. >From what I've seen in the Linux code, they never store a "char blah[MNAMELEN]" in their structures, but rather, a pointer to that data element (in the name cache, I think). Thus, they are free to change the size of the element without affecting the majority of structures that use it. -- Matt Emmerton From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 00:30:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79D6316A4CE for ; Fri, 6 Aug 2004 00:30:56 +0000 (GMT) Received: from cactus.fi.uba.ar (cactus.fi.uba.ar [157.92.49.108]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC79443D1F for ; Fri, 6 Aug 2004 00:30:55 +0000 (GMT) (envelope-from fgleiser@cactus.fi.uba.ar) Received: from localhost (localhost [127.0.0.1]) by cactus.fi.uba.ar (8.12.11/8.12.11) with ESMTP id i760Uw3w032916 for ; Thu, 5 Aug 2004 21:30:58 -0300 (ART) (envelope-from fgleiser@cactus.fi.uba.ar) Date: Thu, 5 Aug 2004 21:30:58 -0300 (ART) From: Fernando Gleiser To: freebsd-hackers@freebsd.org In-Reply-To: <200408041436.32294.doconnor@gsoft.com.au> Message-ID: <20040805212957.Y394@cactus.fi.uba.ar> References: <20040803125019.O1361@cactus.fi.uba.ar> <200408041436.32294.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -104.901 () BAYES_00,USER_IN_WHITELIST X-Scanned-By: MIMEDefang 2.42 Subject: Re: Controlling external hardware via lpt0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 00:30:56 -0000 Thanks to all who replied. ppi(4) was exactly what I needed. Fer From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 02:45:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB67B16A4CE for ; Fri, 6 Aug 2004 02:45:46 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80DF243D70 for ; Fri, 6 Aug 2004 02:45:42 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i762jcha014366; Fri, 6 Aug 2004 12:15:38 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 6 Aug 2004 12:15:37 +0930 User-Agent: KMail/1.6.2 References: <20040804181012.71953.qmail@web20423.mail.yahoo.com> In-Reply-To: <20040804181012.71953.qmail@web20423.mail.yahoo.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408061215.38024.doconnor@gsoft.com.au> X-Spam-Score: -5.5 () CARRIAGE_RETURNS,FWD_MSG,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: DH Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 02:45:46 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Thu, 5 Aug 2004 03:40, DH wrote: > I've begun rec'ing these error messages: > > ad0s1a: hard error reading fsbn 141935 of 70848 - 71103 (ad0s1 bn 141935; > cn 8 tn 212 sn 59 ) status=3D59 error=3D40 > > Got about 7 of these with varying values. > > I ran Seagate's diag utility and it reported only 1 bad sector (# 71099 )= =2E=20 > Unfortunately ad0s1a happens to my / dir so allowing the utility to write > zeros to that block hasn't sat well with me. > > Sooo - if some one could explain the exact meaning of my error message & > point me in the right direction to use these values to fix my disk problem > I'd greatly appreciate it (with many many many thanks in advance :) ) I'd let the tool write a zero to that block and then fsck the disk. You can't read it now anyway, so it wouldn't make it any worse to write to = it=20 (and make the drive remap it) bn =3D block number cn =3D cylinder number tn =3D track number sn =3D sector number =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBEvDS5ZPcIHs/zowRAsoaAKCRgWmwcrRQ113zdqPZdtOb48svmACeMAj6 7/UQE6Gc2z/PXDC8m45SyAM=3D =3DMFcL =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 03:01:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 603E916A4CF for ; Fri, 6 Aug 2004 03:01:32 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA6A443D31 for ; Fri, 6 Aug 2004 03:01:31 +0000 (GMT) (envelope-from mwm@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id AF17433E49 for ; Thu, 5 Aug 2004 20:01:31 -0700 (PDT) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.9p2/8.12.9) with SMTP id i762ZImp068270 for ; Thu, 5 Aug 2004 19:35:18 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 8505 invoked by uid 100); 6 Aug 2004 02:35:17 -0000 Received: by guru.mired.org (tmda-sendmail, from uid 100); Thu, 05 Aug 2004 21:35:17 -0500 (CDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16658.61027.827002.280086@guru.mired.org> Date: Thu, 5 Aug 2004 21:35:15 -0500 To: DH In-Reply-To: <20040804181012.71953.qmail@web20423.mail.yahoo.com> References: <20040804181012.71953.qmail@web20423.mail.yahoo.com> X-Mailer: VM 7.17 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer X-Mailman-Approved-At: Fri, 06 Aug 2004 11:52:18 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 03:01:32 -0000 In <20040804181012.71953.qmail@web20423.mail.yahoo.com>, DH typed: > I'm reposting this because I've not rec'd a response from the freebsd-fs mailing list yet and I need an answer fairly quickly. Thanks be any who can help out! The correct place to send this is freebsd-questions. I've added that to the list, and pointed replies there as well. > I've begun rec'ing these error messages: > > ad0s1a: hard error reading fsbn 141935 of 70848 - 71103 (ad0s1 bn 141935; cn 8 tn 212 sn 59 ) status=59 error=40 > > Got about 7 of these with varying values. > > I ran Seagate's diag utility and it reported only 1 bad sector (# 71099 ). Unfortunately ad0s1a happens to my / dir so allowing the utility to write zeros to that block hasn't sat well with me. > > Sooo - if some one could explain the exact meaning of my error message & point me in the right direction to use these values to fix my disk problem I'd greatly appreciate it > (with many many many thanks in advance :) ) Modern drives deal with bad block substitution all by themselves. By the time you've got blocks going bad that the OS sees, the drive is in really sad shape. You should replace it with a new drive ASAP. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 07:20:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C26516A4D5; Fri, 6 Aug 2004 07:20:54 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57FB043D39; Fri, 6 Aug 2004 07:20:54 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1Bsz1q-000AM9-52; Fri, 06 Aug 2004 10:20:38 +0300 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: freebsd-mobile@freebsd.org, hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 06 Aug 2004 10:20:38 +0300 From: Danny Braniss Message-Id: <20040806072054.57FB043D39@mx1.FreeBSD.org> Subject: IBM ThinkPad X40, kudos to FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 07:20:54 -0000 sorry for the cross posting, but please read on. This notebook was running Windows XP till one day decided to crash and since then the feared blue screen of death started to appear, all the king horses and all the kings men couldn't put this little note book back in working condition. I made it boot diskless, took about 2 minutes, booted current, mounted the ntfs partition, recovered all important files, and is now running current - with some minor problems - but no crash yet. So bsdtar crashes, reboot hangs, but hey, the system recovers, and no panics! and this is current! even X11 is working. thanks for a great job! danny -- Daniel Braniss e-mail: danny@cs.huji.ac.il Manager of Computing Facilities phone: +972 2 658 4385 School of Computer Science and Engineering Fax: +972 2 561 7723 The Hebrew University Jerusalem Edmond Safra Campus, Givat Ram, Israel From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 19:14:14 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04A3816A4CE; Fri, 6 Aug 2004 19:14:14 +0000 (GMT) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id A243C43D5F; Fri, 6 Aug 2004 19:14:13 +0000 (GMT) (envelope-from garycor@comcast.net) Received: from [10.56.78.111] (pcp09118143pcs.union01.nj.comcast.net[69.142.234.88]) by comcast.net (sccrmhc12) with ESMTP id <2004080619141001200pra7re> (Authid: garycor); Fri, 6 Aug 2004 19:14:12 +0000 Message-ID: <4113D950.8000502@comcast.net> Date: Fri, 06 Aug 2004 15:17:36 -0400 From: Gary Corcoran User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20040804181012.71953.qmail@web20423.mail.yahoo.com> <16658.61027.827002.280086@guru.mired.org> In-Reply-To: <16658.61027.827002.280086@guru.mired.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: DH Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 19:14:14 -0000 Mike Meyer wrote: > Modern drives deal with bad block substitution all by themselves. Umm - not quite, right? That is, if a block "goes bad" and you get a read error, the drive isn't going to do any "substituting" at that point. You'll just continue to get the read error if you try to access (read) that block. It's only when you allow another *write* to that block (e.g. by deleting the original file and writing new files) that the drive will automatically substitute a spare block for the one that went bad. > By > the time you've got blocks going bad that the OS sees, the drive is in > really sad shape. You should replace it with a new drive ASAP. If, after you have (for certain!) overwritten the bad block(s) and you still get errors, then yes the drive is on its way out. But simply getting a read error (without any overwrite attempt) from a block or two doesn't necessarily mean that the drive is turning to mush, now does it? Gary From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 19:38:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DDCE16A4CF; Fri, 6 Aug 2004 19:38:46 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EDCC43D67; Fri, 6 Aug 2004 19:38:45 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.12.11) id i76JciPK026591; Fri, 6 Aug 2004 14:38:44 -0500 (CDT) (envelope-from dan) Date: Fri, 6 Aug 2004 14:38:44 -0500 From: Dan Nelson To: Gary Corcoran Message-ID: <20040806193843.GB11465@dan.emsphone.com> References: <20040804181012.71953.qmail@web20423.mail.yahoo.com> <16658.61027.827002.280086@guru.mired.org> <4113D950.8000502@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4113D950.8000502@comcast.net> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: DH Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 19:38:46 -0000 In the last episode (Aug 06), Gary Corcoran said: > Mike Meyer wrote: > > >Modern drives deal with bad block substitution all by themselves. > > Umm - not quite, right? That is, if a block "goes bad" and you get a > read error, the drive isn't going to do any "substituting" at that > point. You'll just continue to get the read error if you try to > access (read) that block. It's only when you allow another *write* > to that block (e.g. by deleting the original file and writing new > files) that the drive will automatically substitute a spare block for > the one that went bad. SCSI drives, at least, may do automatic reallocation on both reads and writes ( camcontrol mode da0 -m 1, the ARRE and AWRE flags ). If the drive had to reread the block or had to use ECC to recover data, AND the entire block was recovered, it will relocate the data if ARRE is set. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 20:01:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54C3216A4CF; Fri, 6 Aug 2004 20:01:13 +0000 (GMT) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2605C43D55; Fri, 6 Aug 2004 20:01:13 +0000 (GMT) (envelope-from garycor@comcast.net) Received: from [10.56.78.111] (pcp09118143pcs.union01.nj.comcast.net[69.142.234.88]) by comcast.net (rwcrmhc13) with ESMTP id <2004080620011201500919m4e> (Authid: garycor); Fri, 6 Aug 2004 20:01:12 +0000 Message-ID: <4113E456.8020700@comcast.net> Date: Fri, 06 Aug 2004 16:04:38 -0400 From: Gary Corcoran User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <20040804181012.71953.qmail@web20423.mail.yahoo.com> <16658.61027.827002.280086@guru.mired.org> <4113D950.8000502@comcast.net> <20040806193843.GB11465@dan.emsphone.com> In-Reply-To: <20040806193843.GB11465@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: DH Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 20:01:13 -0000 Dan Nelson wrote: > In the last episode (Aug 06), Gary Corcoran said: > >>Mike Meyer wrote: >> >> >>>Modern drives deal with bad block substitution all by themselves. >> >>Umm - not quite, right? That is, if a block "goes bad" and you get a >>read error, the drive isn't going to do any "substituting" at that >>point. You'll just continue to get the read error if you try to >>access (read) that block. It's only when you allow another *write* >>to that block (e.g. by deleting the original file and writing new >>files) that the drive will automatically substitute a spare block for >>the one that went bad. > > > SCSI drives, at least, may do automatic reallocation on both reads and > writes ( camcontrol mode da0 -m 1, the ARRE and AWRE flags ). If the > drive had to reread the block or had to use ECC to recover data, AND > the entire block was recovered, it will relocate the data if ARRE is > set. Good to know, although I stopped buying SCSI disks (for home use) years ago. I presumed the more common case these days, that we were talking about IDE disks. In fact doesn't this (from the original question): ad0s1a: hard error necessarily refer to an ATA (IDE) disk? I don't believe any (current) ATA disks will do automatic reallocation on reads, will they? Though of course serial ATA drives seem to be "the future" and are taking on more and more SCSI-like features as time goes by. Gary From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 21:50:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BE9B16A4CE for ; Fri, 6 Aug 2004 21:50:05 +0000 (GMT) Received: from mproxy.gmail.com (mproxy.gmail.com [216.239.56.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4720643D58 for ; Fri, 6 Aug 2004 21:50:05 +0000 (GMT) (envelope-from zombyfork@gmail.com) Received: by mproxy.gmail.com with SMTP id x71so13211cwb for ; Fri, 06 Aug 2004 14:50:04 -0700 (PDT) Received: by 10.11.98.65 with SMTP id v65mr19858cwb; Fri, 06 Aug 2004 14:50:04 -0700 (PDT) Message-ID: <346a8022040806145018a5e18@mail.gmail.com> Date: Fri, 6 Aug 2004 17:50:04 -0400 From: Coleman Kane To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cokane@cokane.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 21:50:05 -0000 Hi, I have been having some trouble working with getting tapN network interfaces into the 'RUNNING' state. I have been trying to figure out how to set the RUNNING flag on an interface, which is needed before the kernel will actually begin sending packets from said network interface. So far, the only way I have been able to figure out how to do this is to assign an IPv4 address to the interface, I am guessing that an un-addressed network interface is supposed to remain not RUNNING even if it is UP by design. The problem is that only an IPv4 address assignment will bring it up and running. If I attempt to assign an IPv6 address to the interface, it will go UP, but not RUNNING. I have determined that I can assign an IPv4 address (such as 10.0.0.1) to it, and then subsequently remove it (via -alias) and this will leave the interface in the running state. My questions are: 1) Why doesn't assigning an IPv6 address produce the same side effects and 2) Is there a way to set this interface flag without assigning an IPv4 address (or any address for that matter) first? Mainly for number two, I would like to be able to run interfaces bridged together without having to also give all of them addresses. -- thanks, coleman kane From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 22:07:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 934DD16A4CF for ; Fri, 6 Aug 2004 22:07:55 +0000 (GMT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4406443D55 for ; Fri, 6 Aug 2004 22:07:55 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 6 Aug 2004 17:07:54 -0500 Received: from savvis.net ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.0); Fri, 6 Aug 2004 17:07:54 -0500 Message-ID: <41140139.5080803@savvis.net> Date: Fri, 06 Aug 2004 15:07:53 -0700 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031207 X-Accept-Language: en-us, en MIME-Version: 1.0 To: cokane@cokane.org References: <346a8022040806145018a5e18@mail.gmail.com> In-Reply-To: <346a8022040806145018a5e18@mail.gmail.com> Content-Type: multipart/mixed; boundary="------------090001030208020407050106" X-OriginalArrivalTime: 06 Aug 2004 22:07:54.0662 (UTC) FILETIME=[D2CC1C60:01C47C01] cc: hackers@freebsd.org Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 22:07:55 -0000 This is a multi-part message in MIME format. --------------090001030208020407050106 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit > 2) Is there a way to set this interface flag without assigning an IPv4 > address (or any address for that matter) first? > > Mainly for number two, I would like to be able to run interfaces > bridged together without having to also give all of them addresses. please try the attached (untested!) patch. it should set iff_running flag on the interface as soon as the control device is opened. max --------------090001030208020407050106 Content-Type: text/plain; name="if_tap.c.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="if_tap.c.diff.txt" --- if_tap.c.orig Fri Aug 6 15:02:06 2004 +++ if_tap.c Fri Aug 6 15:04:14 2004 @@ -336,15 +336,15 @@ tapopen(dev, flag, mode, td) struct cdev *dev; int flag; int mode; struct thread *td; { struct tap_softc *tp = NULL; - int error; + int error, s; if ((error = suser(td)) != 0) return (error); if ((dev2unit(dev) & CLONE_UNITMASK) > TAPMAXUNIT) return (ENXIO); @@ -365,14 +365,19 @@ return (EBUSY); } bcopy(tp->arpcom.ac_enaddr, tp->ether_addr, sizeof(tp->ether_addr)); tp->tap_pid = td->td_proc->p_pid; tp->tap_flags |= TAP_OPEN; mtx_unlock(&tp->tap_mtx); + + s = splimp(); + tp->tap_if.if_flags |= IFF_RUNNING; + tp->tap_if.if_flags &= ~IFF_OACTIVE; + splx(s); TAPDEBUG("%s is open. minor = %#x\n", tp->tap_if.if_xname, minor(dev)); return (0); } /* tapopen */ --------------090001030208020407050106-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 00:11:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95BFF16A4CE; Sat, 7 Aug 2004 00:11:28 +0000 (GMT) Received: from VARK.homeunix.com (adsl-69-107-119-143.dsl.pltn13.pacbell.net [69.107.119.143]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DCF043D5A; Sat, 7 Aug 2004 00:11:28 +0000 (GMT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.11/8.12.10) with ESMTP id i770BmBG021432; Fri, 6 Aug 2004 17:11:48 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.11/8.12.10/Submit) id i770BmWf021431; Fri, 6 Aug 2004 17:11:48 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Fri, 6 Aug 2004 17:11:48 -0700 From: David Schultz To: Gary Corcoran Message-ID: <20040807001148.GA21379@VARK.homeunix.com> Mail-Followup-To: Gary Corcoran , Dan Nelson , freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, DH References: <20040804181012.71953.qmail@web20423.mail.yahoo.com> <16658.61027.827002.280086@guru.mired.org> <4113D950.8000502@comcast.net> <20040806193843.GB11465@dan.emsphone.com> <4113E456.8020700@comcast.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4113E456.8020700@comcast.net> cc: freebsd-hackers@FreeBSD.ORG cc: Dan Nelson cc: freebsd-questions@FreeBSD.ORG cc: DH Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 00:11:28 -0000 On Fri, Aug 06, 2004, Gary Corcoran wrote: > Dan Nelson wrote: > > >In the last episode (Aug 06), Gary Corcoran said: > > > >>Mike Meyer wrote: > >> > >> > >>>Modern drives deal with bad block substitution all by themselves. > >> > >>Umm - not quite, right? That is, if a block "goes bad" and you get a > >>read error, the drive isn't going to do any "substituting" at that > >>point. You'll just continue to get the read error if you try to > >>access (read) that block. It's only when you allow another *write* > >>to that block (e.g. by deleting the original file and writing new > >>files) that the drive will automatically substitute a spare block for > >>the one that went bad. > > > > > >SCSI drives, at least, may do automatic reallocation on both reads and > >writes ( camcontrol mode da0 -m 1, the ARRE and AWRE flags ). If the > >drive had to reread the block or had to use ECC to recover data, AND > >the entire block was recovered, it will relocate the data if ARRE is > >set. > > Good to know, although I stopped buying SCSI disks (for home use) > years ago. I presumed the more common case these days, that we > were talking about IDE disks. In fact doesn't this (from the original > question): > > ad0s1a: hard error > > necessarily refer to an ATA (IDE) disk? I don't believe any (current) > ATA disks will do automatic reallocation on reads, will they? Though > of course serial ATA drives seem to be "the future" and are taking > on more and more SCSI-like features as time goes by. Both ATA and SCSI drives may relocate blocks that were difficult to read (e.g. correctable errors, took multiple attempts, etc). But if the block can't be recovered at all, the drive will still report an error to the OS (in addition to relocation). From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 07:15:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EEAC16A4CE for ; Sat, 7 Aug 2004 07:15:38 +0000 (GMT) Received: from sev.net.ua (sev.net.ua [212.86.233.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id F38CB43D45 for ; Sat, 7 Aug 2004 07:15:36 +0000 (GMT) (envelope-from shadow@psoft.net) Received: from berloga.shadowland ([213.227.237.65]) by sev.net.ua (8.12.11/8.12.9) with ESMTP id i777FQ4Y057735; Sat, 7 Aug 2004 10:15:27 +0300 (EEST) (envelope-from shadow@psoft.net) Received: from berloga.shadowland (berloga.shadowland [127.0.0.1]) by berloga.shadowland (8.12.10/8.12.10) with ESMTP id i777FQAq008605; Sat, 7 Aug 2004 10:15:26 +0300 Received: (from root@localhost) by berloga.shadowland (8.12.10/8.12.10/Submit) id i7776HZW008507; Sat, 7 Aug 2004 10:06:17 +0300 From: Alex Lyashkov To: Maksim Yevmenkin In-Reply-To: <41140139.5080803@savvis.net> References: <346a8022040806145018a5e18@mail.gmail.com> <41140139.5080803@savvis.net> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: PSoft Message-Id: <1091862376.7840.3.camel@berloga.shadowland> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-1) Date: Sat, 07 Aug 2004 10:06:17 +0300 cc: hackers@freebsd.org cc: cokane@cokane.org Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 07:15:38 -0000 =F7 =F3=C2=D4, 07.08.2004, =D7 01:07, Maksim Yevmenkin =D0=C9=DB=C5=D4: > > 2) Is there a way to set this interface flag without assigning an IPv4 > > address (or any address for that matter) first? > >=20 > > Mainly for number two, I would like to be able to run interfaces > > bridged together without having to also give all of them addresses. >=20 > please try the attached (untested!) patch. it should set iff_running=20 > flag on the interface as soon as the control device is opened. >=20 > max > =20 > bcopy(tp->arpcom.ac_enaddr, tp->ether_addr, sizeof(tp->ether_addr)); > tp->tap_pid =3D td->td_proc->p_pid; > tp->tap_flags |=3D TAP_OPEN; + tp->tap_if.if_flags |=3D IFF_RUNNING; + tp->tap_if.if_flags &=3D ~IFF_OACTIVE; >=20 > mtx_unlock(&tp->tap_mtx); not better move this under tp->tap_mtx mutex without using splX functions? --=20 Alex Lyashkov PSoft From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 09:24:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9892016A4CE for ; Sat, 7 Aug 2004 09:24:01 +0000 (GMT) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98BB243D2D for ; Sat, 7 Aug 2004 09:24:00 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.9p2/8.12.9) with ESMTP id i779No6E041060; Sat, 7 Aug 2004 13:23:51 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.9p2/8.12.9/Submit) id i779NmjJ041058; Sat, 7 Aug 2004 13:23:48 +0400 (MSD) (envelope-from yar) Date: Sat, 7 Aug 2004 13:23:48 +0400 From: Yar Tikhiy To: Alex Lyashkov Message-ID: <20040807092347.GB39835@comp.chem.msu.su> References: <346a8022040806145018a5e18@mail.gmail.com> <41140139.5080803@savvis.net> <1091862376.7840.3.camel@berloga.shadowland> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1091862376.7840.3.camel@berloga.shadowland> User-Agent: Mutt/1.5.6i cc: hackers@freebsd.org cc: cokane@cokane.org Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 09:24:01 -0000 On Sat, Aug 07, 2004 at 10:06:17AM +0300, Alex Lyashkov wrote: > > not better move this under tp->tap_mtx mutex without using splX > functions? ...especially taking into account that splX do nothing in CURRENT anyway. Mutex locking framework adopted by the interface driver should be used of course. -- Yar From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 09:58:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0CA7C16A4CE for ; Sat, 7 Aug 2004 09:58:06 +0000 (GMT) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2851E43D4C for ; Sat, 7 Aug 2004 09:58:05 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.9p2/8.12.9) with ESMTP id i779w16E042490; Sat, 7 Aug 2004 13:58:01 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.9p2/8.12.9/Submit) id i779w1Qf042489; Sat, 7 Aug 2004 13:58:01 +0400 (MSD) (envelope-from yar) Date: Sat, 7 Aug 2004 13:58:01 +0400 From: Yar Tikhiy To: cokane@cokane.org Message-ID: <20040807095801.GC39835@comp.chem.msu.su> References: <346a8022040806145018a5e18@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <346a8022040806145018a5e18@mail.gmail.com> User-Agent: Mutt/1.5.6i cc: hackers@freebsd.org Subject: Re: Network interface RUNNING and UP flags X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 09:58:06 -0000 On Fri, Aug 06, 2004 at 05:50:04PM -0400, Coleman Kane wrote: > Hi, I have been having some trouble working with getting tapN network > interfaces into the 'RUNNING' state. I have been trying to figure out > how to set the RUNNING flag on an interface, which is needed before > the kernel will actually begin sending packets from said network > interface. So far, the only way I have been able to figure out how to > do this is to assign an IPv4 address to the interface, I am guessing > that an un-addressed network interface is supposed to remain not > RUNNING even if it is UP by design. The problem is that only an IPv4 > address assignment will bring it up and running. If I attempt to > assign an IPv6 address to the interface, it will go UP, but not > RUNNING. I have determined that I can assign an IPv4 address (such as > 10.0.0.1) to it, and then subsequently remove it (via -alias) and this > will leave the interface in the running state. > > My questions are: > > 1) Why doesn't assigning an IPv6 address produce the same side effects > and > 2) Is there a way to set this interface flag without assigning an IPv4 > address (or any address for that matter) first? > > Mainly for number two, I would like to be able to run interfaces > bridged together without having to also give all of them addresses. As a matter of fact, the IFF_RUNNING flag, visible as ``RUNNING'' in the output from ifconfig(8), is intended for interface's internal use and should not influence the interaction of the interface with other modules, except for affecting careful user's experience :-) On the contrary, IFF_UP, a.k.a. ``UP'', is an administrative flag to be toggled from outside an interface driver. A user can flip it to shutdown the interface, or a network stack module may touch it if it needs to (e.g., IP will bring an interface up to send a gratuitous ARP upon configuring an IP address on it.) -- Yar From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 6 14:29:08 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58E1D16A4CE for ; Fri, 6 Aug 2004 14:29:08 +0000 (GMT) Received: from fw1.caa.army.mil (fw1.caa.army.mil [192.153.92.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id A00F043D5C for ; Fri, 6 Aug 2004 14:29:07 +0000 (GMT) (envelope-from ed.smithiii@us.army.mil) Received: from uncl-mail.caa.army.mil (uncl-mail.caa.army.mil [192.153.92.7]) by fw1.caa.army.mil with ESMTP id i76EsFKW015052 for ; Fri, 6 Aug 2004 10:54:15 -0400 (EDT) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Fri, 6 Aug 2004 10:27:12 -0400 Message-ID: <1FFD627BFDAEE0468AA006E0AD632470E477FB@uncl-mail.caa.army.mil> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Kernel Development thread-index: AcR7wS8VpR2y/eB5TN+ukaoElHeQRw== From: "Smith III, Edward Mr. CAA/ISC" To: X-Mailman-Approved-At: Sat, 07 Aug 2004 12:16:35 +0000 Subject: Kernel Development X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Aug 2004 14:29:08 -0000 Hey- I am an experienced developer and have been using FreeBSD for several = years now. I am looking to get involved in FreeBSD system development = and was wondering if there were any projects that need developers. I = have been programming for years but am somewhat new to the BSD kernel. = I found some project pages on the websites but almost all of them are = out of date. The hardware that I have on hand currently is all x86 with = no exotic peripherals although I am hoping to get an alpha and/or a = sparc by the end of the year. Any help on this would be appreciated. v/r ed From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 01:13:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CD0A16A4CE for ; Sat, 7 Aug 2004 01:13:52 +0000 (GMT) Received: from web61309.mail.yahoo.com (web61309.mail.yahoo.com [216.155.196.152]) by mx1.FreeBSD.org (Postfix) with SMTP id C1EA743D58 for ; Sat, 7 Aug 2004 01:13:51 +0000 (GMT) (envelope-from stheg_olloydson@yahoo.com) Message-ID: <20040807011351.51693.qmail@web61309.mail.yahoo.com> Received: from [67.34.130.149] by web61309.mail.yahoo.com via HTTP; Fri, 06 Aug 2004 18:13:51 PDT Date: Fri, 6 Aug 2004 18:13:51 -0700 (PDT) From: stheg olloydson To: questions@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Sat, 07 Aug 2004 12:16:35 +0000 cc: hackers@FreeBSD.ORG Subject: Re: Fwd: How to read bad blocks error message & marking of same X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 01:13:52 -0000 it was said: > > >>>Modern drives deal with bad block substitution all by themselves. > > >> > > >>Umm - not quite, right? That is, if a block "goes bad" and you get a > > >>read error, the drive isn't going to do any "substituting" at that > > >>point. You'll just continue to get the read error if you try to > > >>access (read) that block. It's only when you allow another *write* > > >>to that block (e.g. by deleting the original file and writing new > > >>files) that the drive will automatically substitute a spare block for > > >>the one that went bad. > > > > > > > > >SCSI drives, at least, may do automatic reallocation on both reads and > > >writes ( camcontrol mode da0 -m 1, the ARRE and AWRE flags ). If the > > >drive had to reread the block or had to use ECC to recover data, AND > > >the entire block was recovered, it will relocate the data if ARRE is > > >set. > > > > Good to know, although I stopped buying SCSI disks (for home use) > > years ago. I presumed the more common case these days, that we > > were talking about IDE disks. In fact doesn't this (from the original > > question): > > > > ad0s1a: hard error > > > > necessarily refer to an ATA (IDE) disk? I don't believe any (current) > > ATA disks will do automatic reallocation on reads, will they? Though > > of course serial ATA drives seem to be "the future" and are taking > > on more and more SCSI-like features as time goes by. > > Both ATA and SCSI drives may relocate blocks that were difficult > to read (e.g. correctable errors, took multiple attempts, etc). > But if the block can't be recovered at all, the drive will still > report an error to the OS (in addition to relocation). Hello, A tool that all may find useful is SpinRite 6.0 available from Gibson Research at http://www.grc.com/sr/spinrite.htm. It's not open source or freeware but anybody with an Intel, AMD, or TiVO system that uses a harddrive ought to have it. Note: I am in no way affiliated with Gibson Research, other than having used SpinRite since the days of manually interleaving MFM drives. HTH, Stheg __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages! http://promotions.yahoo.com/new_mail From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 13:26:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29B1B16A4CE for ; Sat, 7 Aug 2004 13:26:01 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E34443D54 for ; Sat, 7 Aug 2004 13:25:56 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i77DPZS6058094; Sat, 7 Aug 2004 22:55:36 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sat, 7 Aug 2004 22:55:29 +0930 User-Agent: KMail/1.6.2 References: <1FFD627BFDAEE0468AA006E0AD632470E477FB@uncl-mail.caa.army.mil> In-Reply-To: <1FFD627BFDAEE0468AA006E0AD632470E477FB@uncl-mail.caa.army.mil> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408072255.34714.doconnor@gsoft.com.au> X-Spam-Score: -5.2 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: "Smith III, Edward Mr. CAA/ISC" Subject: Re: Kernel Development X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 13:26:01 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 6 Aug 2004 23:57, Smith III, Edward Mr. CAA/ISC wrote: > Hey- > I am an experienced developer and have been using FreeBSD for several yea= rs > now. I am looking to get involved in FreeBSD system development and was > wondering if there were any projects that need developers. I have been > programming for years but am somewhat new to the BSD kernel. I found some > project pages on the websites but almost all of them are out of date. The > hardware that I have on hand currently is all x86 with no exotic > peripherals although I am hoping to get an alpha and/or a sparc by the end > of the year. Any help on this would be appreciated. v/r Not sure which pae you went to, but perhaps this one may help you -> http://people.freebsd.org/~phk/TODO/ Hmm although it looks 12 months old :( Certainly something _I'd_ appreciate would be to robustify the USB code :) =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBFNhO5ZPcIHs/zowRAs0xAJ0UhRXoFlZIff3aePFyRzBUsPdxuQCfQgt5 q2LJMFVilmHHFlthbTC3HHI=3D =3DH00c =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 7 18:33:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0252A16A4CE for ; Sat, 7 Aug 2004 18:33:02 +0000 (GMT) Received: from priv-edtnes51.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8548743D41 for ; Sat, 7 Aug 2004 18:33:01 +0000 (GMT) (envelope-from pfak@telus.net) Received: from hartkiem2nnl7x ([206.116.24.146]) by priv-edtnes51.telusplanet.netSMTP <20040807183258.UNYA7705.priv-edtnes51.telusplanet.net@hartkiem2nnl7x>; Sat, 7 Aug 2004 12:32:58 -0600 Message-ID: <001001c47cac$f7b59c30$bb01a8c0@hartkiem2nnl7x> From: "Peter Kieser" To: References: <1FFD627BFDAEE0468AA006E0AD632470E477FB@uncl-mail.caa.army.mil> <200408072255.34714.doconnor@gsoft.com.au> Date: Sat, 7 Aug 2004 11:32:59 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 cc: "Smith III, Edward Mr. CAA/ISC" Subject: Re: Kernel Development X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Aug 2004 18:33:02 -0000 Is this a wishlist? I'd love to see BRIDGE and ng_fec work properley together (eg. be able to bridge a ng_fec virtual interface.. like you should be able to). This was supposed to be ready for 5.3, but afaik I haven't seen anything in -CURRENT about it. --Peter ----- Original Message ----- From: "Daniel O'Connor" To: Cc: "Smith III, Edward Mr. CAA/ISC" Sent: Saturday, August 07, 2004 6:25 AM Subject: Re: Kernel Development -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Fri, 6 Aug 2004 23:57, Smith III, Edward Mr. CAA/ISC wrote: > Hey- > I am an experienced developer and have been using FreeBSD for several years > now. I am looking to get involved in FreeBSD system development and was > wondering if there were any projects that need developers. I have been > programming for years but am somewhat new to the BSD kernel. I found some > project pages on the websites but almost all of them are out of date. The > hardware that I have on hand currently is all x86 with no exotic > peripherals although I am hoping to get an alpha and/or a sparc by the end > of the year. Any help on this would be appreciated. v/r Not sure which pae you went to, but perhaps this one may help you -> http://people.freebsd.org/~phk/TODO/ Hmm although it looks 12 months old :( Certainly something _I'd_ appreciate would be to robustify the USB code :) - -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBFNhO5ZPcIHs/zowRAs0xAJ0UhRXoFlZIff3aePFyRzBUsPdxuQCfQgt5 q2LJMFVilmHHFlthbTC3HHI= =H00c -----END PGP SIGNATURE----- _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"