From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 10 11:15:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F19BD106564A for ; Sun, 10 Aug 2008 11:15:18 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id BEFAA8FC19 for ; Sun, 10 Aug 2008 11:15:18 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.mthelicon.com (host86-147-14-141.range86-147.btcentralplus.com [86.147.14.141]) (authenticated bits=0) by hercules.mthelicon.com (8.14.2/8.14.2) with ESMTP id m7ABFGSX044850 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES128-SHA bits=128 verify=NO) for ; Sun, 10 Aug 2008 11:15:17 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc cleaft Organization: Feathers To: freebsd-hackers@freebsd.org Date: Sun, 10 Aug 2008 12:15:15 +0100 User-Agent: KMail/1.9.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808101215.15679.ken@mthelicon.com> Subject: RFC Newer binutils X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Aug 2008 11:15:19 -0000 Hello everyone, I was wondering if anyone knows if there is planned an update to the binutils for the base system planned? The reason why I'm asking is (occasionally) I use a later gcc then what comes with the system to take advantage of the newer opcodes in the Core 2. Unfortunately the base assembler dosent understand these new opcodes and things bomb out. I have installed the latest (2.18) version of buntuils and I can compile at that point. Things just get sorta ickey having two versions of binutils on the machine and thought it would be much simpler to have an update to the base. I know there are still problems with the later gcc versions (like 4.3) and can understand why FBSD hasent moved to it yet, but didnt think there was any harm in updating to the later versions of as, etc.. Ta Peg From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 10 14:07:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4E58106566B for ; Sun, 10 Aug 2008 14:07:36 +0000 (UTC) (envelope-from lstewart@room52.net) Received: from outbound.icp-qv1-irony-out4.iinet.net.au (outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.150]) by mx1.freebsd.org (Postfix) with ESMTP id 6D9ED8FC28 for ; Sun, 10 Aug 2008 14:07:36 +0000 (UTC) (envelope-from lstewart@room52.net) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAJ+Lnkh8qFNw/2dsb2JhbACobQ X-IronPort-AV: E=Sophos;i="4.31,338,1215360000"; d="scan'208";a="257592784" Received: from unknown (HELO lawrence1.loshell.room52.net) ([124.168.83.112]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 10 Aug 2008 21:37:59 +0800 Message-ID: <489EEF37.4010607@room52.net> Date: Sun, 10 Aug 2008 23:37:59 +1000 From: Lawrence Stewart User-Agent: Thunderbird 2.0.0.14 (X11/20080703) MIME-Version: 1.0 To: Pegasus Mc cleaft References: <200808101215.15679.ken@mthelicon.com> In-Reply-To: <200808101215.15679.ken@mthelicon.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: RFC Newer binutils X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Aug 2008 14:07:37 -0000 Pegasus Mc cleaft wrote: > Hello everyone, > > I was wondering if anyone knows if there is planned an update to the binutils > for the base system planned? [snip] See the July 2008 thread titled "Updating src/contrib/binutils" on freebsd-current. Cheers, Lawrence From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 11 06:34:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27A4A1065673 for ; Mon, 11 Aug 2008 06:34:23 +0000 (UTC) (envelope-from rkramer@mweb.com) Received: from mwbmarshal.mweb.com (mwbmarshal.mweb.com [196.2.141.6]) by mx1.freebsd.org (Postfix) with ESMTP id F2A488FC3C for ; Mon, 11 Aug 2008 06:34:21 +0000 (UTC) (envelope-from rkramer@mweb.com) Received: from mwbfes2.mweb.com (Not Verified[196.2.141.74]) by mwbmarshal.mweb.com with NetIQ MailMarshal 6.0 Service Pack 1 (v6, 0, 3, 28) id ; Mon, 11 Aug 2008 08:19:15 +0200 Received: from MWBEXCH.mweb.com ([196.2.141.76]) by mwbfes2.mweb.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 11 Aug 2008 08:19:15 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 11 Aug 2008 08:19:14 +0200 Message-ID: <39DC135F7F0571489196E0B6F5D58B4A03B45FFD@MWBEXCH.mweb.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Idea for FreeBSD Thread-Index: Acj4R0uVUil3oSLjRnaSHPEHnMH4QwDMU4Bw References: <20080807043331.GA38794@stlux503.dsto.defence.gov.au> From: "Rudi Kramer - MWEB" To: "Wilkinson, Alex" , X-OriginalArrivalTime: 11 Aug 2008 06:19:15.0831 (UTC) FILETIME=[2E1D4070:01C8FB7A] Cc: tyler@bleepsoft.com Subject: RE: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 06:34:23 -0000 > On Behalf Of Wilkinson, Alex > Sent: Thursday, August 07, 2008 6:34 AM > To: freebsd-hackers@freebsd.org > Subject: Re: Idea for FreeBSD >=20 >=20 > 0n Wed, Aug 06, 2008 at 07:14:51PM -0400, wbentley@futurecis.com wrote: >=20 > >I would like to submit the idea of implementing a similar environment > >into FreeBSD. After looking through the developers links and googling I > >found no project for FreeBSD that implemented anything similar to this. > >I have included a link below to give a better understanding of SMF and > >its capabilities. >=20 > I believe there was a port of MacOS-X 'launchd' to FreeBSD: >=20 > [http://wiki.freebsd.org/launchd] >=20 > I think launchd may use XML. Tyler has made no changes to the above mentioned wiki page since 2005-11-01. We can only assume that the project is dead. Rudi From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 11 15:49:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 962D21065674 for ; Mon, 11 Aug 2008 15:49:27 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from mother.ludd.ltu.se (mother.ludd.ltu.se [130.240.16.3]) by mx1.freebsd.org (Postfix) with ESMTP id 22F178FC1E for ; Mon, 11 Aug 2008 15:49:26 +0000 (UTC) (envelope-from pb@ludd.ltu.se) Received: from brother.ludd.ltu.se (root@brother.ludd.ltu.se [130.240.16.78]) by mother.ludd.ltu.se (8.13.6+Sun/8.12.10) with ESMTP id m7BFbHgu027528 for ; Mon, 11 Aug 2008 17:37:17 +0200 (MEST) Received: from brother.ludd.ltu.se (pb@localhost [127.0.0.1]) by brother.ludd.ltu.se (8.13.6+Sun/8.12.2) with ESMTP id m7BFbH97006056 for ; Mon, 11 Aug 2008 17:37:17 +0200 (MEST) Received: (from pb@localhost) by brother.ludd.ltu.se (8.13.6+Sun/8.13.6/Submit) id m7BFbHf1006054 for freebsd-hackers@freebsd.org; Mon, 11 Aug 2008 17:37:17 +0200 (MEST) From: Peter B Message-Id: <200808111537.m7BFbHf1006054@brother.ludd.ltu.se> To: freebsd-hackers@freebsd.org Date: Mon, 11 Aug 2008 17:37:17 +0200 (MEST) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 11 Aug 2008 15:54:43 +0000 Subject: Kernel compile R7.0 i386 GENERIC, fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 15:49:27 -0000 I'm trying to compile the generic FreeBSD kernel 7.0-RELEASE i386. But it fails. Any tip on how to fix it? Extracted sources: sbase, srelease, ssys toor@m /usr/src #make buildkernel KERNCONF=GENERIC . . mkdep -f .depend -a -nostdinc -D_KERNEL -DKLD_MODULE -DHAVE_KERNEL_OPTION_HEADERS -I. -I@ -I@/contrib/altq -I/usr/obj/usr/src/sys/GENERIC /usr/src/sys/modules/accf_http/../../netinet/accf_http.c ===> acpi (depend) ===> acpi/acpi (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include make: don't know how to make dsfield.c. Stop *** Error code 2 Stop in /usr/src/sys/modules/acpi. *** Error code 1 Stop in /usr/src/sys/modules. *** Error code 1 Stop in /usr/obj/usr/src/sys/GENERIC. *** Error code 1 Stop in /usr/src. *** Error code 1 Stop in /usr/src. Exit 1 From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 11 22:35:08 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77DBB106564A for ; Mon, 11 Aug 2008 22:35:08 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 2D0998FC16 for ; Mon, 11 Aug 2008 22:35:08 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1KSfyg-0000ci-E6 for freebsd-hackers@freebsd.org; Mon, 11 Aug 2008 22:35:02 +0000 Received: from 78-0-73-142.adsl.net.t-com.hr ([78.0.73.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Aug 2008 22:35:02 +0000 Received: from ivoras by 78-0-73-142.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 11 Aug 2008 22:35:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Tue, 12 Aug 2008 00:27:17 +0200 Lines: 31 Message-ID: References: <200808111537.m7BFbHf1006054@brother.ludd.ltu.se> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0AFD927BF35D5B9F4D4504C4" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-0-73-142.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <200808111537.m7BFbHf1006054@brother.ludd.ltu.se> X-Enigmail-Version: 0.95.6 Sender: news Subject: Re: Kernel compile R7.0 i386 GENERIC, fails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 22:35:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0AFD927BF35D5B9F4D4504C4 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Peter B wrote: > I'm trying to compile the generic FreeBSD kernel 7.0-RELEASE i386. But = it > fails. Any tip on how to fix it? >=20 > Extracted sources: sbase, srelease, ssys a) if your sources are broken, download or cvsup to a clean version b) remove /usr/obj/* --------------enig0AFD927BF35D5B9F4D4504C4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFIoLzFldnAQVacBcgRAjC9AJ9erKBBvGt94HBupNWgviP0kuCetgCdEuey SLBDjqpBt6v1zmZtQ2FJIR0= =K6B+ -----END PGP SIGNATURE----- --------------enig0AFD927BF35D5B9F4D4504C4-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 12:03:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BC51106564A for ; Tue, 12 Aug 2008 12:03:31 +0000 (UTC) (envelope-from ady@ady.ro) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id 1F1708FC36 for ; Tue, 12 Aug 2008 12:03:30 +0000 (UTC) (envelope-from ady@ady.ro) Received: by wf-out-1314.google.com with SMTP id 24so2103351wfg.7 for ; Tue, 12 Aug 2008 05:03:30 -0700 (PDT) Received: by 10.142.207.8 with SMTP id e8mr2656876wfg.110.1218542610420; Tue, 12 Aug 2008 05:03:30 -0700 (PDT) Received: by 10.142.80.3 with HTTP; Tue, 12 Aug 2008 05:03:30 -0700 (PDT) Message-ID: <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> Date: Tue, 12 Aug 2008 14:03:30 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: wbentley@futurecis.com In-Reply-To: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> X-Google-Sender-Auth: a5861f9bd2fe2885 Cc: freebsd-hackers@freebsd.org, freebsd-rc@freebsd.org Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 12:03:31 -0000 Hi, I'm a bit late to jump on board, but since I'm interested in the subject and previously given some thinking, here are my thoughts. And perhaps the freebsd-rc list is better suited. On Fri, Aug 8, 2008 at 1:20 AM, wrote: > I am surprised by the overwhelming response that this thread has acquired. > I have spent the majority of the day reading all the responses that > everyone has put forward. I would like to clear a few things up, comment > on others, and suggest some solutions to a lot of good points that > everyone has made so far. > > First let me reiterate a few things. I started in FreeBSD and it will > always be my first love. Second, keep in mind that Solaris is a commercial > product and must be viewed as such. Good point. Like it happened in the Linux world, we should also have some commercially backed versions of [Free]BSD in order to get better visibility and business support (which, in the end, counts a lot). That's why I've been thinking for some time about starting up the EnterpriseBSD project (see http://launchpad.net/enterprisebsd). I believe PC-BSD is a good start for the desktop. > > Now that that is out of the way. I want to make it clear to everyone that > I was not suggesting the idea of copying or reproducing any part of how > Sun manages or implements its services; only the CONCEPT of how they do > it. It does not have to be XML, or in a database or anything else. > Actually I am thinking more along the lines of a wrapper that can > read/modify/execute from rc.d and the rc.conf. After all, we do not want > to make drastic changes. No one wants to re-write rc's or move them to > another location. Even solaris still relies on rc scripts to exist. And I > am sure I speak for all of us when I say that we all love the concept of > how rc.conf handles everything. > > As some people have already pointed out multiple times so far, the idea of > an enable/disable is a great idea. Maybe we can start with that and see > how it goes and develop further based on > need/requirements/accomplishments. I also agree that it would be good for the rc.d scripts to (re)configure themselves, since they are the ones who really know what's best for them. While we're at it, I wish we could leverage the posibility for the admin to manually start the service at the CLI, no matter whether the service has been enabled or not -- that is the "_enable" keyword should have effect only in the bootup/automatic contexts. > > I think a drop-in command like "rcadm" (someone mentioned this as an idea, > but cant remember who) would be a good start for managing the states of > services. Mike Meyer also brought up many good points that I agree with. > Please try not to get caught up in the XML stuff, that is not a > requirement or suggestion, it is just an example of how Sun did it, now > how FreeBSD has to;) > > Someone recommended Puppet, but this is an entire framework that would > have to be added/implemented and configured to work with FreeBSD as well > as learning a new markup language for it. launchd has a lot of good ideas, > but I am not sure how mature it is yet; maybe it is a good place to start. Let's put another name on the table: Upstart (upstart.ubuntu.com). It's quite fast. > > If we start with the basics and break it down and program this from a > modular standpoint it is not so bad. Begin with the basic (high-level) > approach. A shell script (service) that is aware of where rc scripts are > located and that can keep track of what the current state of the services > (PID's) are. An enable/disable command is nothing more that throwing a > start/stop command to these rc files. The rc.conf can assist with knowing > what should be enabled/disabled and what flags to throw at it. For > EXAMPLE!!!!, (you got that, example only) Solaris uses one master service > that is started first, and the whole point of that first service is to > monitor the other services and know what state they are in and starts > dependent services upon boot. Consider it the service manager almost. That would very important to for service crash recovery, to keep critical services running. Side note:what about starting up and monitoring services in jails, probably we'd need one such master service per jail ? My 5cents, Adrian. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 12:29:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 96BA91065670; Tue, 12 Aug 2008 12:29:23 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id F00D68FC17; Tue, 12 Aug 2008 12:29:22 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7CCTCEX001748 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Aug 2008 13:29:13 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48A18213.3050307@unsane.co.uk> Date: Tue, 12 Aug 2008 13:29:07 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Adrian Penisoara References: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> In-Reply-To: <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-rc@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 12:29:23 -0000 Adrian Penisoara wrote: > > > I also agree that it would be good for the rc.d scripts to > (re)configure themselves, since they are the ones who really know > what's best for them. > > While we're at it, I wish we could leverage the posibility for the > admin to manually start the service at the CLI, no matter whether the > service has been enabled or not -- that is the "_enable" keyword > should have effect only in the bootup/automatic contexts. > > /etc/rc.d/$service forcestart seems to be what you want. I do like the idea of being able to enable/disable services from the rc scripts as /etc/rc.d/$service rcvar | sed 's/NO/YES/' >> /etc/rc.conf and/or editing rc.conf can feel a little clunky at times. Vince >> I think a drop-in command like "rcadm" (someone mentioned this as an idea, >> but cant remember who) would be a good start for managing the states of >> services. Mike Meyer also brought up many good points that I agree with. >> Please try not to get caught up in the XML stuff, that is not a >> requirement or suggestion, it is just an example of how Sun did it, now >> how FreeBSD has to;) >> >> Someone recommended Puppet, but this is an entire framework that would >> have to be added/implemented and configured to work with FreeBSD as well >> as learning a new markup language for it. launchd has a lot of good ideas, >> but I am not sure how mature it is yet; maybe it is a good place to start. >> > > Let's put another name on the table: Upstart (upstart.ubuntu.com). > It's quite fast. > > >> If we start with the basics and break it down and program this from a >> modular standpoint it is not so bad. Begin with the basic (high-level) >> approach. A shell script (service) that is aware of where rc scripts are >> located and that can keep track of what the current state of the services >> (PID's) are. An enable/disable command is nothing more that throwing a >> start/stop command to these rc files. The rc.conf can assist with knowing >> what should be enabled/disabled and what flags to throw at it. For >> EXAMPLE!!!!, (you got that, example only) Solaris uses one master service >> that is started first, and the whole point of that first service is to >> monitor the other services and know what state they are in and starts >> dependent services upon boot. Consider it the service manager almost. >> > > That would very important to for service crash recovery, to keep > critical services running. > > Side note:what about starting up and monitoring services in jails, > probably we'd need one such master service per jail ? > > My 5cents, > Adrian. > _______________________________________________ > 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 Tue Aug 12 12:36:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2283D106567C for ; Tue, 12 Aug 2008 12:36:40 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id ACAAB8FC14 for ; Tue, 12 Aug 2008 12:36:39 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 031761B10F0F; Tue, 12 Aug 2008 14:36:38 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-9.4 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_21,J_CHICKENPOX_44 autolearn=no version=3.2.4 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 6A6461B10F13; Tue, 12 Aug 2008 14:36:32 +0200 (CEST) Message-ID: <48A183D0.6070901@moneybookers.com> Date: Tue, 12 Aug 2008 15:36:32 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Adrian Penisoara References: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> In-Reply-To: <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.93.3/8018/Tue Aug 12 10:36:31 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org, freebsd-rc@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 12:36:40 -0000 Adrian Penisoara wrote: > Hi, > > I'm a bit late to jump on board, but since I'm interested in the > subject and previously given some thinking, here are my thoughts. > > And perhaps the freebsd-rc list is better suited. > > On Fri, Aug 8, 2008 at 1:20 AM, wrote: > >> I am surprised by the overwhelming response that this thread has acquired. >> I have spent the majority of the day reading all the responses that >> everyone has put forward. I would like to clear a few things up, comment >> on others, and suggest some solutions to a lot of good points that >> everyone has made so far. >> >> First let me reiterate a few things. I started in FreeBSD and it will >> always be my first love. Second, keep in mind that Solaris is a commercial >> product and must be viewed as such. >> > > Good point. Like it happened in the Linux world, we should also have > some commercially backed versions of [Free]BSD in order to get better > visibility and business support (which, in the end, counts a lot). > That's why I've been thinking for some time about starting up the > EnterpriseBSD project (see http://launchpad.net/enterprisebsd). I > believe PC-BSD is a good start for the desktop. > There is commercial support for FreeBSD out there. Actually the problem is that misinformed people are still spreading the lie that there is not... Also the example with Linux is very bad, where you have a "stable" version only in enterprise RH or SuSe and the vanilla kernel is only for development and beta testing .. I do not want to see this happens to FreeBSD > >> Now that that is out of the way. I want to make it clear to everyone that >> I was not suggesting the idea of copying or reproducing any part of how >> Sun manages or implements its services; only the CONCEPT of how they do >> it. It does not have to be XML, or in a database or anything else. >> Actually I am thinking more along the lines of a wrapper that can >> read/modify/execute from rc.d and the rc.conf. After all, we do not want >> to make drastic changes. No one wants to re-write rc's or move them to >> another location. Even solaris still relies on rc scripts to exist. And I >> am sure I speak for all of us when I say that we all love the concept of >> how rc.conf handles everything. >> >> As some people have already pointed out multiple times so far, the idea of >> an enable/disable is a great idea. Maybe we can start with that and see >> how it goes and develop further based on >> need/requirements/accomplishments. >> > > I also agree that it would be good for the rc.d scripts to > (re)configure themselves, since they are the ones who really know > what's best for them. > > While we're at it, I wish we could leverage the posibility for the > admin to manually start the service at the CLI, no matter whether the > service has been enabled or not -- that is the "_enable" keyword > should have effect only in the bootup/automatic contexts. > Like keywords - forcestart forcerestart forcestop ?!?! > >> I think a drop-in command like "rcadm" (someone mentioned this as an idea, >> but cant remember who) would be a good start for managing the states of >> services. Mike Meyer also brought up many good points that I agree with. >> Please try not to get caught up in the XML stuff, that is not a >> requirement or suggestion, it is just an example of how Sun did it, now >> how FreeBSD has to;) >> >> Someone recommended Puppet, but this is an entire framework that would >> have to be added/implemented and configured to work with FreeBSD as well >> as learning a new markup language for it. launchd has a lot of good ideas, >> but I am not sure how mature it is yet; maybe it is a good place to start. >> > > Let's put another name on the table: Upstart (upstart.ubuntu.com). > It's quite fast. > Some of us use FreeBSD because we think this is the proper way things to be done, if we want another linux distro we may switch to *buntu .. > >> If we start with the basics and break it down and program this from a >> modular standpoint it is not so bad. Begin with the basic (high-level) >> approach. A shell script (service) that is aware of where rc scripts are >> located and that can keep track of what the current state of the services >> (PID's) are. An enable/disable command is nothing more that throwing a >> start/stop command to these rc files. The rc.conf can assist with knowing >> what should be enabled/disabled and what flags to throw at it. For >> EXAMPLE!!!!, (you got that, example only) Solaris uses one master service >> that is started first, and the whole point of that first service is to >> monitor the other services and know what state they are in and starts >> dependent services upon boot. Consider it the service manager almost. >> > > That would very important to for service crash recovery, to keep > critical services running. > Looks like we are reinventing inetd ? > Side note:what about starting up and monitoring services in jails, > probably we'd need one such master service per jail ? > Like inetd running in jail ? > My 5cents, > Overpriced ;) and good luck with enterprisebsd > Adrian. > _______________________________________________ > 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" > -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 12:45:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 189CB1065677 for ; Tue, 12 Aug 2008 12:45:46 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id 4F0598FC0A for ; Tue, 12 Aug 2008 12:45:44 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id m7CC7edB023805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 12 Aug 2008 14:07:40 +0200 (SAST) (envelope-from jonathan+freebsd-hackers@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-hackers@freebsd.org Date: Tue, 12 Aug 2008 14:14:44 +0200 User-Agent: KMail/1.9.7 References: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> In-Reply-To: <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?iso-8859-1?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l?= =?iso-8859-1?q?=3B=7E!42HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?iso-8859-1?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Spam-Score: -4.399 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 12:45:46 -0000 On Tuesday 12 August 2008 14:03:30 Adrian Penisoara wrote: >  While we're at it, I wish we could leverage the posibility for the > admin to manually start the service at the CLI, no matter whether the > service has been enabled or not -- that is the "_enable" keyword > should have effect only in the bootup/automatic contexts. Isn't this what onestart does? Jonathan From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 14:22:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEFF11065678 for ; Tue, 12 Aug 2008 14:22:48 +0000 (UTC) (envelope-from ady@ady.ro) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id D85CD8FC1D for ; Tue, 12 Aug 2008 14:22:48 +0000 (UTC) (envelope-from ady@ady.ro) Received: by wf-out-1314.google.com with SMTP id 24so2145914wfg.7 for ; Tue, 12 Aug 2008 07:22:48 -0700 (PDT) Received: by 10.142.251.9 with SMTP id y9mr2736398wfh.46.1218550968065; Tue, 12 Aug 2008 07:22:48 -0700 (PDT) Received: by 10.142.80.3 with HTTP; Tue, 12 Aug 2008 07:22:47 -0700 (PDT) Message-ID: <78cb3d3f0808120722t461bfb56x4782899811cf63f0@mail.gmail.com> Date: Tue, 12 Aug 2008 16:22:47 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: "Stefan Lambrev" In-Reply-To: <48A183D0.6070901@moneybookers.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> <48A183D0.6070901@moneybookers.com> X-Google-Sender-Auth: 76da55a29fb7d1a1 Cc: freebsd-hackers@freebsd.org, freebsd-rc@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 14:22:49 -0000 Hi, On Tue, Aug 12, 2008 at 2:36 PM, Stefan Lambrev wrote: >>> >>> First let me reiterate a few things. I started in FreeBSD and it will >>> always be my first love. Second, keep in mind that Solaris is a >>> commercial >>> product and must be viewed as such. >>> >> >> Good point. Like it happened in the Linux world, we should also have >> some commercially backed versions of [Free]BSD in order to get better >> visibility and business support (which, in the end, counts a lot). >> That's why I've been thinking for some time about starting up the >> EnterpriseBSD project (see http://launchpad.net/enterprisebsd). I >> believe PC-BSD is a good start for the desktop. >> > > There is commercial support for FreeBSD out there. > Actually the problem is that misinformed people are still spreading the lie > that there is not... OK, I will reword that a bit: I believe having also a "business" face for the business market will help a lot in increasing visibility. > > Also the example with Linux is very bad, where you have a "stable" version > only in enterprise RH or SuSe > and the vanilla kernel is only for development and beta testing .. I do not > want to see this happens to FreeBSD I'm not sure where is that remark headed to. And I don't think (re)packaging a business-centric version would harm -- please correct me if I'm wrong. >> While we're at it, I wish we could leverage the posibility for the >> admin to manually start the service at the CLI, no matter whether the >> service has been enabled or not -- that is the "_enable" keyword >> should have effect only in the bootup/automatic contexts. >> > > Like keywords - forcestart forcerestart forcestop ?!?! Yes, I am always reminded of that :). Well, to tell you the truth, I do not know of any other OS which requires prefixing with "force" the start/stop actions in order to act on the service at the command line, and personally I wish it weren't the case. >>> I think a drop-in command like "rcadm" (someone mentioned this as an >>> idea, >>> but cant remember who) would be a good start for managing the states of >>> services. Mike Meyer also brought up many good points that I agree with. >>> Please try not to get caught up in the XML stuff, that is not a >>> requirement or suggestion, it is just an example of how Sun did it, now >>> how FreeBSD has to;) >>> >>> Someone recommended Puppet, but this is an entire framework that would >>> have to be added/implemented and configured to work with FreeBSD as well >>> as learning a new markup language for it. launchd has a lot of good >>> ideas, >>> but I am not sure how mature it is yet; maybe it is a good place to >>> start. >>> >> >> Let's put another name on the table: Upstart (upstart.ubuntu.com). >> It's quite fast. >> > > Some of us use FreeBSD because we think this is the proper way things to be > done, if we want another linux distro we may switch to *buntu .. Oh, we are debating here, not imposing personal preferences :). Good ideas can come up from any direction, it's up to us whether we want to learn from them. >>> If we start with the basics and break it down and program this from a >>> modular standpoint it is not so bad. Begin with the basic (high-level) >>> approach. A shell script (service) that is aware of where rc scripts are >>> located and that can keep track of what the current state of the services >>> (PID's) are. An enable/disable command is nothing more that throwing a >>> start/stop command to these rc files. The rc.conf can assist with knowing >>> what should be enabled/disabled and what flags to throw at it. For >>> EXAMPLE!!!!, (you got that, example only) Solaris uses one master service >>> that is started first, and the whole point of that first service is to >>> monitor the other services and know what state they are in and starts >>> dependent services upon boot. Consider it the service manager almost. >>> >> >> That would very important to for service crash recovery, to keep >> critical services running. >> > > Looks like we are reinventing inetd ? Inetd is only for multiplexing seldomly used network services bound to specific ports -- not too many real-life services fall under this exact specification. >> >> Side note:what about starting up and monitoring services in jails, >> probably we'd need one such master service per jail ? >> > > Like inetd running in jail ? >> >> My 5cents, >> > > Overpriced ;) and good luck with enterprisebsd Well, that was usually conceived as a contribution, not a price. Ideas are free anyway ;). Thanks. Adrian. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 14:52:10 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDA021065678; Tue, 12 Aug 2008 14:52:10 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id 7A1568FC18; Tue, 12 Aug 2008 14:52:10 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id A45231B10EFD; Tue, 12 Aug 2008 16:52:08 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.6 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.2.4 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 38FF71B10EE0; Tue, 12 Aug 2008 16:52:02 +0200 (CEST) Message-ID: <48A1A391.9090808@moneybookers.com> Date: Tue, 12 Aug 2008 17:52:01 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Adrian Penisoara References: <78086795e6ab9676870368dcebb57b37.squirrel@secure.futurecis.com> <78cb3d3f0808120503t3e2c7d68n1d4383c98aa41e10@mail.gmail.com> <48A183D0.6070901@moneybookers.com> <78cb3d3f0808120722t461bfb56x4782899811cf63f0@mail.gmail.com> In-Reply-To: <78cb3d3f0808120722t461bfb56x4782899811cf63f0@mail.gmail.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.93.3/8018/Tue Aug 12 10:36:31 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org, freebsd-rc@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 14:52:11 -0000 Adrian Penisoara wrote: > Hi, > > On Tue, Aug 12, 2008 at 2:36 PM, Stefan Lambrev > wrote: > >>>> First let me reiterate a few things. I started in FreeBSD and it will >>>> always be my first love. Second, keep in mind that Solaris is a >>>> commercial >>>> product and must be viewed as such. >>>> >>>> >>> Good point. Like it happened in the Linux world, we should also have >>> some commercially backed versions of [Free]BSD in order to get better >>> visibility and business support (which, in the end, counts a lot). >>> That's why I've been thinking for some time about starting up the >>> EnterpriseBSD project (see http://launchpad.net/enterprisebsd). I >>> believe PC-BSD is a good start for the desktop. >>> >>> >> There is commercial support for FreeBSD out there. >> Actually the problem is that misinformed people are still spreading the lie >> that there is not... >> > > OK, I will reword that a bit: I believe having also a "business" face > for the business market will help a lot in increasing visibility. > > >> Also the example with Linux is very bad, where you have a "stable" version >> only in enterprise RH or SuSe >> and the vanilla kernel is only for development and beta testing .. I do not >> want to see this happens to FreeBSD >> > > I'm not sure where is that remark headed to. And I don't think > (re)packaging a business-centric version would harm -- please correct > me if I'm wrong. > The problem with "enterprise" is that they ship their own kernel which is heavily modified. If you want enterprise go for OSX :) I think it's the best enterprise BSDish system ;) Also there are more packages for FreeBSD available then for RH, and I can assure you that all programs that you actually use (like ssh, apache, perl and etc) you have to manually compile to fit your needs. > >>> While we're at it, I wish we could leverage the posibility for the >>> admin to manually start the service at the CLI, no matter whether the >>> service has been enabled or not -- that is the "_enable" keyword >>> should have effect only in the bootup/automatic contexts. >>> >>> >> Like keywords - forcestart forcerestart forcestop ?!?! >> > > Yes, I am always reminded of that :). > Well, to tell you the truth, I do not know of any other OS which > requires prefixing with "force" the start/stop actions in order to act > on the service at the command line, and personally I wish it weren't > the case. > Well I bet you can find this in most linux distros that copy FreeBSD. What about gentoo? Anyway I think that the beauty of the current rc/ng system in freebsd is that it's very easy to understand and use it. Not like those nasty XML config files that makes you blind. There are small fixes that can be applied to make the system even better, but rewriting it just for the sport looks like wasting too much power :) But after all FreeBSD innovate do not imitate ;) Anyway it's may be just me, but I do not think that the rc system in freebsd is the showstopper, that needs funding or more ppl looking at it. And btw burdening the rc subsystem to monitor your daemons is overkill too. It will never work as good as real monitoring software, and will only bloat things. There are tons of utilities that can do this. -cut- -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 15:10:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 43BD21065676 for ; Tue, 12 Aug 2008 15:10:23 +0000 (UTC) (envelope-from ady@ady.ro) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id 31D488FC1A for ; Tue, 12 Aug 2008 15:10:23 +0000 (UTC) (envelope-from ady@ady.ro) Received: by wf-out-1314.google.com with SMTP id 24so2160870wfg.7 for ; Tue, 12 Aug 2008 08:10:22 -0700 (PDT) Received: by 10.142.213.9 with SMTP id l9mr2763275wfg.2.1218553822695; Tue, 12 Aug 2008 08:10:22 -0700 (PDT) Received: by 10.142.80.3 with HTTP; Tue, 12 Aug 2008 08:10:22 -0700 (PDT) Message-ID: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> Date: Tue, 12 Aug 2008 17:10:22 +0200 From: "Adrian Penisoara" Sender: ady@ady.ro To: "Stefan Lambrev" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: 49ffd9cf49c91147 Cc: freebsd-hackers@freebsd.org, wbentley@futurecis.com Subject: FreeBSD in Business (was Re: Idea for FreeBSD) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 15:10:23 -0000 Hi, On Tue, Aug 12, 2008 at 4:52 PM, Stefan Lambrev wrote: >> I'm not sure where is that remark headed to. And I don't think >> (re)packaging a business-centric version would harm -- please correct >> me if I'm wrong. >> > > The problem with "enterprise" is that they ship their own kernel which is > heavily modified. Not one, but rather multiple kernels (which includes the generic one). Which otherwise are possible to build with the vanilla distro, but it might take a lot of tweaking time to get there and you got no QA for that either. > If you want enterprise go for OSX :) I think it's the best enterprise BSDish > system ;) Why not help the people already using FreeBSD at their workplace get better arguments to keep and grow the FreeBSD base ? ;) > Also there are more packages for FreeBSD available then for RH, and I can > assure you that > all programs that you actually use (like ssh, apache, perl and etc) you have > to manually compile to fit your needs. I tend to disagree in this particular context -- business usage relies on stability which implies a small set of very well tested packages, not necessarily the latest version. >> >> >>>> >>>> While we're at it, I wish we could leverage the posibility for the >>>> admin to manually start the service at the CLI, no matter whether the >>>> service has been enabled or not -- that is the "_enable" keyword >>>> should have effect only in the bootup/automatic contexts. >>>> >>>> >>> >>> Like keywords - forcestart forcerestart forcestop ?!?! >>> >> >> Yes, I am always reminded of that :). >> Well, to tell you the truth, I do not know of any other OS which >> requires prefixing with "force" the start/stop actions in order to act >> on the service at the command line, and personally I wish it weren't >> the case. >> > > Well I bet you can find this in most linux distros that copy FreeBSD. What > about gentoo? Umm, I have used Gentoo and I do not remember having to use "forcestart" at the command line... > Anyway I think that the beauty of the current rc/ng system in freebsd is > that it's very easy to understand and use it. > Not like those nasty XML config files that makes you blind. > There are small fixes that can be applied to make the system even better, > but rewriting it just for the sport looks like wasting too much power :) > But after all FreeBSD innovate do not imitate ;) > > Anyway it's may be just me, but I do not think that the rc system in freebsd > is the showstopper, that needs funding or more ppl looking at it. Right. And I'm going to stop here -- if you want to continue we can go off-the-list. > And btw burdening the rc subsystem to monitor your daemons is overkill too. > It will never work as good as real monitoring software, > and will only bloat things. There are tons of utilities that can do this. Umm, one should not need huge monitoring software packages to accomplish such (simple?) tasks. The inittab/ttys systems comes to my mind when I say this... ;). Over & out, Adrian. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 16:11:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 321591065678 for ; Tue, 12 Aug 2008 16:11:50 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: from blah.sun-fish.com (blah.sun-fish.com [217.18.249.150]) by mx1.freebsd.org (Postfix) with ESMTP id D99CE8FC0C for ; Tue, 12 Aug 2008 16:11:49 +0000 (UTC) (envelope-from stefan.lambrev@moneybookers.com) Received: by blah.sun-fish.com (Postfix, from userid 1002) id 1329C1B10EFB; Tue, 12 Aug 2008 18:11:48 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on malcho.cmotd.com X-Spam-Level: X-Spam-Status: No, score=-10.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, J_CHICKENPOX_27 autolearn=no version=3.2.4 Received: from hater.haters.org (hater.cmotd.com [192.168.3.125]) by blah.sun-fish.com (Postfix) with ESMTP id 6DEE51B10EF7; Tue, 12 Aug 2008 18:11:45 +0200 (CEST) Message-ID: <48A1B641.6080407@moneybookers.com> Date: Tue, 12 Aug 2008 19:11:45 +0300 From: Stefan Lambrev User-Agent: Thunderbird 2.0.0.14 (X11/20080616) MIME-Version: 1.0 To: Mike Meyer References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> In-Reply-To: <20080812115132.44b2e8f7@mbook.local> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.93.3/8018/Tue Aug 12 10:36:31 2008 on blah.cmotd.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org, Adrian Penisoara , wbentley@futurecis.com Subject: Re: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for FreeBSD)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 16:11:50 -0000 Mike Meyer wrote: > On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" wrote: > >>>>>> While we're at it, I wish we could leverage the posibility for the >>>>>> admin to manually start the service at the CLI, no matter whether the >>>>>> service has been enabled or not -- that is the "_enable" keyword >>>>>> should have effect only in the bootup/automatic contexts. >>>>>> >>>>> Like keywords - forcestart forcerestart forcestop ?!?! >>>>> >>>> Yes, I am always reminded of that :). >>>> Well, to tell you the truth, I do not know of any other OS which >>>> requires prefixing with "force" the start/stop actions in order to act >>>> on the service at the command line, and personally I wish it weren't >>>> the case. >>>> >>> Well I bet you can find this in most linux distros that copy FreeBSD. What >>> about gentoo? >>> >> Umm, I have used Gentoo and I do not remember having to use >> "forcestart" at the command line... >> > > Ok, given that you 1) want to have both "XXXX this service if it's > part of our normal runtime" and "XXXX this service even if it's not > part of our normal runtime" as script commands, and that 2) XXXX > without a prefix gets the "if it's part of our normal runtime" > meaning, as we want the user to have to explicitly say "Yes, I know > this looks odd, but I know what I'm doing so do it anyway" to get the > "even if it's not part of our normal runtime" behavior, then what > would you have us use instead of "forceXXXX"? > > Personally, I think "start -f" or "start --force" might have been > better, but it's to late to fix such a minor thing. > I think the idea (behind not using force) is to implement something like in RH where there is a number of folders (for every run level) populated with links to the real rc scripts which are in /etc/init.d/ and when you type /etc/init.d/script start it will be started but the boot up rc.scripts will never do start on /etc/init.d/ itself only on the folder with links. It's not much better (or worse?) then the current system in freebsd, so I do not see why we should bother. -- Best Wishes, Stefan Lambrev ICQ# 24134177 From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 15:51:35 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E77E71065675 for ; Tue, 12 Aug 2008 15:51:35 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id 8A9F08FC16 for ; Tue, 12 Aug 2008 15:51:35 +0000 (UTC) (envelope-from mwm@mired.org) Received: (qmail 78786 invoked from network); 12 Aug 2008 11:50:15 -0400 Received: from unknown (HELO mbook.local) (192.168.195.192) by 0 with SMTP; 12 Aug 2008 11:50:15 -0400 Date: Tue, 12 Aug 2008 11:51:32 -0400 From: Mike Meyer To: "Adrian Penisoara" Message-ID: <20080812115132.44b2e8f7@mbook.local> In-Reply-To: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> Organization: Meyer Consulting X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.2.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 12 Aug 2008 16:15:35 +0000 Cc: freebsd-hackers@freebsd.org, wbentley@futurecis.com, Stefan Lambrev Subject: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for FreeBSD)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 15:51:36 -0000 On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" wrote: > >>>> While we're at it, I wish we could leverage the posibility for the > >>>> admin to manually start the service at the CLI, no matter whether the > >>>> service has been enabled or not -- that is the "_enable" keyword > >>>> should have effect only in the bootup/automatic contexts. > >>> Like keywords - forcestart forcerestart forcestop ?!?! > >> Yes, I am always reminded of that :). > >> Well, to tell you the truth, I do not know of any other OS which > >> requires prefixing with "force" the start/stop actions in order to act > >> on the service at the command line, and personally I wish it weren't > >> the case. > > Well I bet you can find this in most linux distros that copy FreeBSD. What > > about gentoo? > Umm, I have used Gentoo and I do not remember having to use > "forcestart" at the command line... Ok, given that you 1) want to have both "XXXX this service if it's part of our normal runtime" and "XXXX this service even if it's not part of our normal runtime" as script commands, and that 2) XXXX without a prefix gets the "if it's part of our normal runtime" meaning, as we want the user to have to explicitly say "Yes, I know this looks odd, but I know what I'm doing so do it anyway" to get the "even if it's not part of our normal runtime" behavior, then what would you have us use instead of "forceXXXX"? Personally, I think "start -f" or "start --force" might have been better, but it's to late to fix such a minor thing. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 12 16:29:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A4DD41065670 for ; Tue, 12 Aug 2008 16:29:25 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 076718FC20 for ; Tue, 12 Aug 2008 16:29:24 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7CGTNCZ003879 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 12 Aug 2008 17:29:24 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48A1BA5E.2050000@unsane.co.uk> Date: Tue, 12 Aug 2008 17:29:18 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Stefan Lambrev References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> <48A1B641.6080407@moneybookers.com> In-Reply-To: <48A1B641.6080407@moneybookers.com> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Mike Meyer , Adrian Penisoara , wbentley@futurecis.com Subject: Re: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for FreeBSD)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2008 16:29:25 -0000 Stefan Lambrev wrote: > > > Mike Meyer wrote: >> On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" >> wrote: >> >>>>>>> While we're at it, I wish we could leverage the posibility for the >>>>>>> admin to manually start the service at the CLI, no matter >>>>>>> whether the >>>>>>> service has been enabled or not -- that is the "_enable" >>>>>>> keyword >>>>>>> should have effect only in the bootup/automatic contexts. >>>>>>> >>>>>> Like keywords - forcestart forcerestart forcestop ?!?! >>>>>> >>>>> Yes, I am always reminded of that :). >>>>> Well, to tell you the truth, I do not know of any other OS which >>>>> requires prefixing with "force" the start/stop actions in order to >>>>> act >>>>> on the service at the command line, and personally I wish it weren't >>>>> the case. >>>>> >>>> Well I bet you can find this in most linux distros that copy >>>> FreeBSD. What >>>> about gentoo? >>>> >>> Umm, I have used Gentoo and I do not remember having to use >>> "forcestart" at the command line... >>> >> >> Ok, given that you 1) want to have both "XXXX this service if it's >> part of our normal runtime" and "XXXX this service even if it's not >> part of our normal runtime" as script commands, and that 2) XXXX >> without a prefix gets the "if it's part of our normal runtime" >> meaning, as we want the user to have to explicitly say "Yes, I know >> this looks odd, but I know what I'm doing so do it anyway" to get the >> "even if it's not part of our normal runtime" behavior, then what >> would you have us use instead of "forceXXXX"? >> >> Personally, I think "start -f" or "start --force" might have been >> better, but it's to late to fix such a minor thing. >> > I think the idea (behind not using force) is to implement something > like in RH where there is a number of folders (for every run level) > populated with links to the real rc scripts which are in /etc/init.d/ > and when you type /etc/init.d/script start it will be started > but the boot up rc.scripts will never do start on /etc/init.d/ itself > only on the folder with links. > It's not much better (or worse?) then the current system in freebsd, > so I do not see why we should bother. > http://en.wikipedia.org/wiki/Init I hate sysV style init myself, half of why I moved to *BSD Vince From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 06:11:49 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2666E1065679 for ; Wed, 13 Aug 2008 06:11:49 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id 47AC18FC17 for ; Wed, 13 Aug 2008 06:11:47 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id m7D66nO8057353 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Aug 2008 08:06:49 +0200 (SAST) (envelope-from jonathan+freebsd-hackers@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-hackers@freebsd.org Date: Wed, 13 Aug 2008 08:13:56 +0200 User-Agent: KMail/1.9.7 References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> In-Reply-To: <20080812115132.44b2e8f7@mbook.local> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?utf-8?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l=3B=7E!4?= =?utf-8?q?2HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?utf-8?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Spam-Score: -4.399 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Subject: Re: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for FreeBSD)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 06:11:49 -0000 On Tuesday 12 August 2008 17:51:32 Mike Meyer wrote: > On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" wrote: > > > > Umm, I have used Gentoo and I do not remember having to use > > "forcestart" at the command line... > > Ok, given that you 1) want to have both "XXXX this service if it's > part of our normal runtime" and "XXXX this service even if it's not > part of our normal runtime" as script commands, and that 2) XXXX > without a prefix gets the "if it's part of our normal runtime" > meaning, as we want the user to have to explicitly say "Yes, I know > this looks odd, but I know what I'm doing so do it anyway" to get the > "even if it's not part of our normal runtime" behavior, then what > would you have us use instead of "forceXXXX"? People keep talking about forcestart. Unless I'm misunderstanding things horribly, forcestart does exactly that - forces the service to start regardless of any error that may occur. The better option for starting something as a one-off (not enabled in rc.conf) is mnemonically named onestart - which only ignores the rcvar but still fails on any other error. And yes, I like having onestart/onestop distinguished from start/stop. Jonathan From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 06:52:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8844A106564A for ; Wed, 13 Aug 2008 06:52:36 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 5FD338FC18 for ; Wed, 13 Aug 2008 06:52:36 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m7D6qZO20516 for ; Tue, 12 Aug 2008 23:52:35 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m7D6qZA01760 for ; Tue, 12 Aug 2008 23:52:35 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Tue, 12 Aug 2008 23:52:35 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 06:52:36 -0000 Hi folks, I recently tried to run a Linux binary of Maple (commercial math software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine rebooted. I tried it again while watching the console, and no panic message appeared to be produced. Does anyone have any ideas on how to debug problems of this nature? I realize I may not be able to get Maple to work, but in any case the system should not die like this, so I can at least try to fix that bug. Incidentally, is it possible to run kdb with a USB keyboard? Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I can do nothing except hit the power button. I do have hint.atkbd.0.flags="0x1" in /boot/device.hints. Unfortunately I don't have a PS/2 keyboard on hand, though I can try and get a hold of one if all else fails. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 08:40:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5606E1065671 for ; Wed, 13 Aug 2008 08:40:59 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 89E038FC12 for ; Wed, 13 Aug 2008 08:40:58 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7D8euhf013840 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2008 09:40:57 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48A29E15.5080303@unsane.co.uk> Date: Wed, 13 Aug 2008 09:40:53 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Jonathan McKeown References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> In-Reply-To: <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for FreeBSD)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 08:40:59 -0000 Jonathan McKeown wrote: > On Tuesday 12 August 2008 17:51:32 Mike Meyer wrote: > >> On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" >> > wrote: > >>> Umm, I have used Gentoo and I do not remember having to use >>> "forcestart" at the command line... >>> >> Ok, given that you 1) want to have both "XXXX this service if it's >> part of our normal runtime" and "XXXX this service even if it's not >> part of our normal runtime" as script commands, and that 2) XXXX >> without a prefix gets the "if it's part of our normal runtime" >> meaning, as we want the user to have to explicitly say "Yes, I know >> this looks odd, but I know what I'm doing so do it anyway" to get the >> "even if it's not part of our normal runtime" behavior, then what >> would you have us use instead of "forceXXXX"? >> > > People keep talking about forcestart. > > Unless I'm misunderstanding things horribly, forcestart does exactly that - > forces the service to start regardless of any error that may occur. > > The better option for starting something as a one-off (not enabled in rc.conf) > is mnemonically named onestart - which only ignores the rcvar but still fails > on any other error. > > And yes, I like having onestart/onestop distinguished from start/stop. > > I believe it "forces" a start even though its not actually enabled (in rc.conf) rather than regardless of errors. If you really want a command line of onestart/onestop install the sysutils/bsdadminscripts port which has a script called rconestart and rconestop which do exactly that ;) Vince > Jonathan > _______________________________________________ > 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 13 09:27:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3742B1065670 for ; Wed, 13 Aug 2008 09:27:21 +0000 (UTC) (envelope-from chd@dchagin.dialup.corbina.ru) Received: from contrabass.post.ru (contrabass.post.ru [85.21.78.5]) by mx1.freebsd.org (Postfix) with ESMTP id DA24A8FC08 for ; Wed, 13 Aug 2008 09:27:20 +0000 (UTC) (envelope-from chd@dchagin.dialup.corbina.ru) Received: from corbina.ru (mail.post.ru [195.14.50.16]) by contrabass.post.ru (Postfix) with ESMTP id EFA5C16696A for ; Wed, 13 Aug 2008 13:03:25 +0400 (MSD) X-Virus-Scanned: by cgpav Uf39PSi9pFi9oFi9 Received: from [10.208.17.3] (HELO dchagin.dialup.corbina.ru) by corbina.ru (CommuniGate Pro SMTP 5.1.14) with ESMTPS id 949767458 for freebsd-hackers@freebsd.org; Wed, 13 Aug 2008 13:03:25 +0400 Received: from dchagin.dialup.corbina.ru (localhost.chd.net [127.0.0.1]) by dchagin.dialup.corbina.ru (8.14.2/8.14.2) with ESMTP id m7D93QoL012477 for ; Wed, 13 Aug 2008 13:03:26 +0400 (MSD) (envelope-from chd@dchagin.dialup.corbina.ru) Received: (from root@localhost) by dchagin.dialup.corbina.ru (8.14.2/8.14.2/Submit) id m7D93K1h012476 for freebsd-hackers@freebsd.org; Wed, 13 Aug 2008 13:03:20 +0400 (MSD) (envelope-from chd) Date: Wed, 13 Aug 2008 13:03:20 +0400 From: Chagin Dmitry To: freebsd-hackers@freebsd.org Message-ID: <20080813090320.GA12437@dchagin.dialup.corbina.ru> Mail-Followup-To: freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 09:27:21 -0000 On Tue, Aug 12, 2008 at 11:52:35PM -0700, Nate Eldredge wrote: > Hi folks, > > I recently tried to run a Linux binary of Maple (commercial math software) > on my FreeBSD 7.0-RELEASE/amd64 box, and the machine rebooted. I tried it > again while watching the console, and no panic message appeared to be > produced. Does anyone have any ideas on how to debug problems of this > nature? I realize I may not be able to get Maple to work, but in any case > the system should not die like this, so I can at least try to fix that > bug. > Hi ktrace/linux_kdump, or best - build linux module with -DDEBUG and see where it die. -- Have fun! chd From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 10:25:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BAD80106564A for ; Wed, 13 Aug 2008 10:25:21 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from hermes.hst.org.za (onix.hst.org.za [209.203.2.133]) by mx1.freebsd.org (Postfix) with ESMTP id 40FB78FC16 for ; Wed, 13 Aug 2008 10:25:19 +0000 (UTC) (envelope-from jonathan+freebsd-hackers@hst.org.za) Received: from sysadmin.hst.org.za (sysadmin.int.dbn.hst.org.za [10.1.1.20]) (authenticated bits=0) by hermes.hst.org.za (8.13.8/8.13.8) with ESMTP id m7DAKLOT068937 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 13 Aug 2008 12:20:21 +0200 (SAST) (envelope-from jonathan+freebsd-hackers@hst.org.za) From: Jonathan McKeown Organization: Health Systems Trust To: freebsd-hackers@freebsd.org User-Agent: KMail/1.9.7 References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> In-Reply-To: <48A29E15.5080303@unsane.co.uk> X-Face: $@VrUx^RHy/}yu]jKf/<4T%/d|F+$j-Ol2"2J$q+%OK1]&/G_S9(=?iso-8859-1?q?HkaQ*=60!=3FYOK=3FY!=27M=60C=0A=09aP=5C9nVPF8Q=7DCilHH8l?= =?iso-8859-1?q?=3B=7E!42HK6=273lg4J=7Daz?=@1Dqqh:J]M^"YPn*2IWrZON$1+G?oX3@ =?iso-8859-1?q?k=230=0A=0954XDRg=3DYn=5FF-etwot4U=24b?=dTS{i X-Spam-Score: -4.399 () ALL_TRUSTED,BAYES_00 X-Scanned-By: MIMEDefang 2.61 on 209.203.2.133 Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 10:25:21 -0000 On Wednesday 13 August 2008 10:40:53 Vincent Hoffman wrote: > Jonathan McKeown wrote: > > > > > People keep talking about forcestart. > > > > Unless I'm misunderstanding things horribly, forcestart does exactly th= at > > - forces the service to start regardless of any error that may occur. > > > > The better option for starting something as a one-off (not enabled in > > rc.conf) is mnemonically named onestart - which only ignores the rcvar > > but still fails on any other error. > > > > And yes, I like having onestart/onestop distinguished from start/stop. > > I believe it "forces" a start even though its not actually enabled (in > rc.conf) rather than regardless of errors. > If you really want a command line of onestart/onestop install the > sysutils/bsdadminscripts port which has a script called rconestart and > rconestop which do exactly that ;) No, you don't need to install anything - it's part of rc.subr. =46rom the rc.subr(8) manpage: argument may have one of the following prefixes which alters its operation: fast Skip the check for an existing running process, and sets rc_fast=3DYES. force Skip the checks for rcvar being set to ``YES'', and sets rc_force=3DYES. This ignores argument_precmd returning non-zero, and ignores any of the required_* tests failing, and always returns a zero exit status. one Skip the checks for rcvar being set to ``YES'', but performs all the other prerequisite tests. I certainly use onestart - generally when I'm configuring and testing a new= =20 service before enabling it in rc.conf. I also use it with NFS. Whenever I've changed /etc/exports, I force mountd = to=20 reread it by issuing /etc/rc.d/mountd onereload Jonathan From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 10:42:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEB78106566C for ; Wed, 13 Aug 2008 10:42:40 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4E33A8FC16 for ; Wed, 13 Aug 2008 10:42:40 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7DAge0t014965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2008 11:42:41 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48A2BA9C.6050804@unsane.co.uk> Date: Wed, 13 Aug 2008 11:42:36 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Jonathan McKeown References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> In-Reply-To: <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 10:42:41 -0000 Jonathan McKeown wrote: > On Wednesday 13 August 2008 10:40:53 Vincent Hoffman wrote: > >> Jonathan McKeown wrote: >> >> >>> People keep talking about forcestart. >>> >>> Unless I'm misunderstanding things horribly, forcestart does exactly that >>> - forces the service to start regardless of any error that may occur. >>> >>> The better option for starting something as a one-off (not enabled in >>> rc.conf) is mnemonically named onestart - which only ignores the rcvar >>> but still fails on any other error. >>> >>> And yes, I like having onestart/onestop distinguished from start/stop. >>> >> I believe it "forces" a start even though its not actually enabled (in >> rc.conf) rather than regardless of errors. >> If you really want a command line of onestart/onestop install the >> sysutils/bsdadminscripts port which has a script called rconestart and >> rconestop which do exactly that ;) >> > > No, you don't need to install anything - it's part of rc.subr. > > From the rc.subr(8) manpage: > > argument may have one of the following prefixes which alters its > operation: > > fast Skip the check for an existing running process, and > sets rc_fast=YES. > > force Skip the checks for rcvar being set to ``YES'', and > sets rc_force=YES. This ignores argument_precmd > returning non-zero, and ignores any of the required_* > tests failing, and always returns a zero exit status. > > one Skip the checks for rcvar being set to ``YES'', but > performs all the other prerequisite tests. > > I certainly use onestart - generally when I'm configuring and testing a new > service before enabling it in rc.conf. > > I also use it with NFS. Whenever I've changed /etc/exports, I force mountd to > reread it by issuing > > /etc/rc.d/mountd onereload > > Doh I just skimmed though /etc/rc.subr not the manpage, thanks for the pointers. Vince > Jonathan > _______________________________________________ > 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 13 11:28:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2EEE7106564A for ; Wed, 13 Aug 2008 11:28:36 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id B78688FC1D for ; Wed, 13 Aug 2008 11:28:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A565AB.dip.t-dialin.net [84.165.101.171]) by redbull.bpaserver.net (Postfix) with ESMTP id 3BACE2E273; Wed, 13 Aug 2008 13:28:27 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 8BDED14D8DF; Wed, 13 Aug 2008 13:28:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1218626903; bh=AOaNjWLep2di2gp+8WoOpqaTo8OBt5/Fv tnSp0SHufs=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=sEy/K1i8xoX7VlJ+p6V5ghmXyMriB5syJyEKO4rJ9Ebcf2kN/j9dq3jF9YD3UwOFC JAc6BRgQ8FBw3AylaIKlgV4PVPdsF0IK2fURQCwfWj0uJryC9xEPkLLkuPbJl1k06nd M9WYzBVG264lITippc9doiW4JjpOhDQ1oz28eUyuHtaxjn7Pson3W7usc+SdhbGIFbv uQZw4kHUUkXCk9+ttfbbtXMHr+pNvjmR4yKa0Vr/T6RGeadvfdKb+rYvkyMfToj+t2n JZYQ39Ki3xUsR+2xyKeAusGrfp09XOz6LuXVC5piNKsMyABCnA/QUxposxbRs9nA2YM 86UkS2JMA== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m7DBSMJK035600; Wed, 13 Aug 2008 13:28:22 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 13 Aug 2008 13:28:22 +0200 Message-ID: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 13 Aug 2008 13:28:22 +0200 From: "Alexander Leidinger" To: "Nate Eldredge" References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 3BACE2E273.A676E X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.823, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10, TW_KD 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Wed, 13 Aug 2008 11:32:26 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 11:28:36 -0000 Quoting "Nate Eldredge" (from Tue, 12 Aug =20 2008 23:52:35 -0700 (PDT)): > Hi folks, > > I recently tried to run a Linux binary of Maple (commercial math =20 > software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine =20 > rebooted. I tried it again while watching the console, and no panic =20 > message appeared to be produced. Does anyone have any ideas on how =20 > to debug problems of this nature? I realize I may not be able to =20 > get Maple to work, but in any case the system should not die like =20 > this, so I can at least try to fix that bug. > > Incidentally, is it possible to run kdb with a USB keyboard? =20 > Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I =20 > can do nothing except hit the power button. I do have =20 > hint.atkbd.0.flags=3D"0x1" in /boot/device.hints. Unfortunately I =20 > don't have a PS/2 keyboard on hand, though I can try and get a hold =20 > of one if all else fails. A guess out of my cristallball: That's one of the cases which happen if you run a linux program =20 without branding it as a linux program first. People tend to think it =20 is not needed, but in some rare circumstances it just causes what you =20 see, a reboot. So go and identify all binaries (IMPORTANT: but not the =20 libraries!), e.g. with the file(1), and use "brandelf -t Linux" on =20 those programs. Bye, Alexander. --=20 =09She said, "I know you ... you cannot sing." =09I said, "That's nothing, you should hear me play piano." =09=09-- Morrisey http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 11:54:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 67D10106567C for ; Wed, 13 Aug 2008 11:54:18 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id DFA688FC2E for ; Wed, 13 Aug 2008 11:54:17 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7DBsDLO066510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2008 14:54:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7DBsDgM083115; Wed, 13 Aug 2008 14:54:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m7DBsD9k083113; Wed, 13 Aug 2008 14:54:13 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 13 Aug 2008 14:54:13 +0300 From: Kostik Belousov To: Alexander Leidinger Message-ID: <20080813115413.GF1803@deviant.kiev.zoral.com.ua> References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nYySOmuH/HDX6pKp" Content-Disposition: inline In-Reply-To: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 11:54:18 -0000 --nYySOmuH/HDX6pKp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 13, 2008 at 01:28:22PM +0200, Alexander Leidinger wrote: > Quoting "Nate Eldredge" (from Tue, 12 Aug =20 > 2008 23:52:35 -0700 (PDT)): >=20 > >Hi folks, > > > >I recently tried to run a Linux binary of Maple (commercial math =20 > >software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine =20 > >rebooted. I tried it again while watching the console, and no panic =20 > >message appeared to be produced. Does anyone have any ideas on how =20 > >to debug problems of this nature? I realize I may not be able to =20 > >get Maple to work, but in any case the system should not die like =20 > >this, so I can at least try to fix that bug. > > > >Incidentally, is it possible to run kdb with a USB keyboard? =20 > >Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I =20 > >can do nothing except hit the power button. I do have =20 > >hint.atkbd.0.flags=3D"0x1" in /boot/device.hints. Unfortunately I =20 > >don't have a PS/2 keyboard on hand, though I can try and get a hold =20 > >of one if all else fails. >=20 > A guess out of my cristallball: > That's one of the cases which happen if you run a linux program =20 > without branding it as a linux program first. People tend to think it =20 > is not needed, but in some rare circumstances it just causes what you =20 > see, a reboot. So go and identify all binaries (IMPORTANT: but not the = =20 > libraries!), e.g. with the file(1), and use "brandelf -t Linux" on =20 > those programs. That would be an enormous local hole, assuming an native FreeBSD binary may cause system crash. I actually doubt that non-branded elf binary ever start, due to unsatisfied dynamic dependencies. --nYySOmuH/HDX6pKp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkiiy2QACgkQC3+MBN1Mb4hrUgCeJyW8mgXvva6//Algcihi9h45 Ft4An0NwMrb+hwrfWctHzS4523iI6I6i =yFxy -----END PGP SIGNATURE----- --nYySOmuH/HDX6pKp-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 12:01:58 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2686C1065671 for ; Wed, 13 Aug 2008 12:01:58 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id CB5B98FC17 for ; Wed, 13 Aug 2008 12:01:57 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 2280 invoked by uid 1001); 13 Aug 2008 08:00:37 -0400 Received: from bhuda.mired.org (bhuda [192.168.195.1]) by bhuda (tmda-ofmipd) with ESMTP; Wed, 13 Aug 2008 08:00:34 -0400 Date: Wed, 13 Aug 2008 08:00:32 -0400 To: Jonathan McKeown Message-ID: <20080813080032.2328a474@bhuda.mired.org> In-Reply-To: <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> Organization: Meyer Consulting X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; amd64-portbld-freebsd7.0) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 12:01:58 -0000 On Wed, 13 Aug 2008 12:27:30 +0200 Jonathan McKeown wrote: > On Wednesday 13 August 2008 10:40:53 Vincent Hoffman wrote: > > Jonathan McKeown wrote: > > > People keep talking about forcestart. > > > > > > Unless I'm misunderstanding things horribly, forcestart does exactly that > > > - forces the service to start regardless of any error that may occur. > > > > > > The better option for starting something as a one-off (not enabled in > > > rc.conf) is mnemonically named onestart - which only ignores the rcvar > > > but still fails on any other error. > > > > > > And yes, I like having onestart/onestop distinguished from start/stop. > > > > I believe it "forces" a start even though its not actually enabled (in > > rc.conf) rather than regardless of errors. > > If you really want a command line of onestart/onestop install the > > sysutils/bsdadminscripts port which has a script called rconestart and > > rconestop which do exactly that ;) > > No, you don't need to install anything - it's part of rc.subr. > > From the rc.subr(8) manpage: > > argument may have one of the following prefixes which alters its > operation: > > fast Skip the check for an existing running process, and > sets rc_fast=YES. > > force Skip the checks for rcvar being set to ``YES'', and > sets rc_force=YES. This ignores argument_precmd > returning non-zero, and ignores any of the required_* > tests failing, and always returns a zero exit status. > > one Skip the checks for rcvar being set to ``YES'', but > performs all the other prerequisite tests. In that case, someone should file a doc bug for the rc(8) manpage, which says: Each script is expected to support at least the following arguments, which are automatically supported if it uses the run_rc_command() func- tion: start Start the service. This should check that the service is to be started as specified by rc.conf(5). Also checks if the service is already running and refuses to start if it is. This latter check is not performed by standard FreeBSD scripts if the system is starting directly to multi-user mode, to speed up the boot process. If forcestart is given, ignore the rc.conf(5) check and start anyway. stop If the service is to be started as specified by rc.conf(5), stop the service. This should check that the service is running and complain if it is not. If forcestop is given, ignore the rc.conf(5) check and attempt to stop. I don't have time to do it now, but will later if no one says they have.... http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 11:50:35 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 616F11065675 for ; Wed, 13 Aug 2008 11:50:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 118128FC1E for ; Wed, 13 Aug 2008 11:50:35 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (unknown [84.165.101.171]) by redbull.bpaserver.net (Postfix) with ESMTP id 5386B2E0BA; Wed, 13 Aug 2008 13:33:03 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id 7904414DA05; Wed, 13 Aug 2008 13:32:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1218627170; bh=sCPoGN8QASUp/sh0AkkUF2bCbn8ygup/C 23fgstHRSs=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Sj8paBk7juLC/67mWTLROQNHAHD8Chl0AEjqhXkUTHQbJdkYSr2TnNvC1Ec1Xc6HI bZ2BCr29mUEub7YbP+dgPyuIad+/kIdo98e9Hqxnq9hfOEPpPw2/K6ui6b/zeRxoHDD WeY5qaUiAdGVOn+KPfhNNtkWffJGii7r27aq0iEFebu/4rYLvK5psyENeTQe6qaqdeS oIik36eqBX1N/gLtwkKS6b3gNXB37beXMFD55xcjDtmb7e92A22xDdnLJ3Ou+ISkQnZ pKeI+2Po2/qtZFfOOHlLWHU+dmLJiXp4PdmlMzjR51vNq2bnh1q/kRCQVFKdsS+k+P0 cA9QUZmnQ== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m7DBWnw1036263; Wed, 13 Aug 2008 13:32:49 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 13 Aug 2008 13:32:49 +0200 Message-ID: <20080813133249.18962h78i0f90g4k@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 13 Aug 2008 13:32:49 +0200 From: "Alexander Leidinger" To: "Kurt J. Lidl" References: <20080807090230.GF1359@server.vk2pj.dyndns.org> <20080807202041.GB9084@pix.net> In-Reply-To: <20080807202041.GB9084@pix.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 5386B2E0BA.61A70 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.4, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, NO_RDNS 0.50, RDNS_NONE 0.10) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Wed, 13 Aug 2008 12:18:24 +0000 Cc: hackers@freebsd.org, wbentley@futurecis.com Subject: Re: Idea for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 11:50:35 -0000 Quoting "Kurt J. Lidl" (from Thu, 7 Aug 2008 16:20:42 -0400): > On Thu, Aug 07, 2008 at 07:02:30PM +1000, Peter Jeremy wrote: >> On 2008-Aug-06 19:14:51 -0400, wbentley@futurecis.com wrote: >> > In Solaris 10 the Services Management Facility (SMF) was introduced. >> >> The main purpose of SMF appears to be to drum up business for Sun's >> training courses by radically changing Sol10 Administration for little >> benefit. > > The main purpose of SMF was to make it possible to programmatically > control the system and deal with the myriad of different types of > faults from the gazillion different things that people want to run > on machines. It's complex because it has to deal with the real > world. There's also some sort of functionality included, which is comparable =20 with daemontools (depending if you enable this in the xml description =20 or not). You could say this is included in your "deal with ... faults" =20 above, but for people not aware of this it may be nice to know. Bye, Alexander. --=20 Life may have no meaning, or, even worse, it may have a meaning of which you disapprove. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 14:11:04 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 768721065672 for ; Wed, 13 Aug 2008 14:11:04 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (skuns.zoral.com.ua [91.193.166.194]) by mx1.freebsd.org (Postfix) with ESMTP id 1682A8FC14 for ; Wed, 13 Aug 2008 14:11:03 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7DEAxku073714 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 13 Aug 2008 17:10:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2) with ESMTP id m7DEAxCV050977; Wed, 13 Aug 2008 17:10:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.2/8.14.2/Submit) id m7DEAx3L050976; Wed, 13 Aug 2008 17:10:59 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 13 Aug 2008 17:10:59 +0300 From: Kostik Belousov To: Alexander Leidinger Message-ID: <20080813141059.GH1803@deviant.kiev.zoral.com.ua> References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> <20080813115413.GF1803@deviant.kiev.zoral.com.ua> <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pfTAc8Cvt8L6I27a" Content-Disposition: inline In-Reply-To: <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 14:11:04 -0000 --pfTAc8Cvt8L6I27a Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 13, 2008 at 04:03:53PM +0200, Alexander Leidinger wrote: > Quoting "Kostik Belousov" (from Wed, 13 Aug 2008 = =20 > 14:54:13 +0300): >=20 > >On Wed, Aug 13, 2008 at 01:28:22PM +0200, Alexander Leidinger wrote: > >>Quoting "Nate Eldredge" (from Tue, 12 Aug > >>2008 23:52:35 -0700 (PDT)): > >> > >>>Hi folks, > >>> > >>>I recently tried to run a Linux binary of Maple (commercial math > >>>software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine > >>>rebooted. I tried it again while watching the console, and no panic > >>>message appeared to be produced. Does anyone have any ideas on how > >>>to debug problems of this nature? I realize I may not be able to > >>>get Maple to work, but in any case the system should not die like > >>>this, so I can at least try to fix that bug. > >>> > >>>Incidentally, is it possible to run kdb with a USB keyboard? > >>>Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I > >>>can do nothing except hit the power button. I do have > >>>hint.atkbd.0.flags=3D"0x1" in /boot/device.hints. Unfortunately I > >>>don't have a PS/2 keyboard on hand, though I can try and get a hold > >>>of one if all else fails. > >> > >>A guess out of my cristallball: > >>That's one of the cases which happen if you run a linux program > >>without branding it as a linux program first. People tend to think it > >>is not needed, but in some rare circumstances it just causes what you > >>see, a reboot. So go and identify all binaries (IMPORTANT: but not the > >>libraries!), e.g. with the file(1), and use "brandelf -t Linux" on > >>those programs. > > > >That would be an enormous local hole, assuming an native FreeBSD binary > >may cause system crash. I actually doubt that non-branded elf binary > >ever start, due to unsatisfied dynamic dependencies. >=20 > You see this behavior only for static binaries. In the non-branded =20 > case the image activator takes the FreeBSD image and unfortunately =20 > there's a common syscall in linux which matches the syscall number in =20 > FreeBSD which causes the reboot (IIRC reboot syscall, do we have =20 > something like this?). It's not a system crash (kernel panic), it's a =20 > real reboot. AFAIR this also only works if you run the program as =20 > root. So... Then, the issue of mixing our reboot(2)/linux fcntl(2) is irrelevant. The original reporter said that system "just rebooted", and I believe that filesystems where not synced and not unmounted properly. Our reboot(2) does not have flag combination that could cause such behaviour, I think. Also, I doubt that the program being run is statically linked or run by root. Confirmation ? Overall, this looks like a nasty bug, hopefully in the linuxolator. --pfTAc8Cvt8L6I27a Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkii63IACgkQC3+MBN1Mb4gceQCg1OCdT797XPj0qmboH5/NPz/c dxEAoKqwgoCV8Zry6TNWjRhs/tz3Ev/Q =Jjrq -----END PGP SIGNATURE----- --pfTAc8Cvt8L6I27a-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 14:04:06 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B7BF1065670 for ; Wed, 13 Aug 2008 14:04:06 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 2E1BE8FC22 for ; Wed, 13 Aug 2008 14:04:06 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A565AB.dip.t-dialin.net [84.165.101.171]) by redbull.bpaserver.net (Postfix) with ESMTP id 4227A2E16C; Wed, 13 Aug 2008 16:03:57 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id F285914FD70; Wed, 13 Aug 2008 16:03:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1218636234; bh=WUelGVgg3hKQ8m0LFQBs3T0A7t+A72pgy pmHwYt3mZ0=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=SigvekPsm0p6+TjAqULUzq1/PvN67e2d5yvO2VEowTnvYTS19bWbUm3g1tYGrU8Vp gXD46DO1KbSuFIzkSiqTdWjmOlLdkEBFXECAJDgditr7L/Rg7cMg9RKQ1UurSEW/nmF iTHG5dwkO7xRzFEz6FOxZpLpHHNJSBJX3XdssTuW17NsBCVX0qAGwMucqybNASW4cgp LZkUDEVbXZ1KKMXhnJQEykY8/meKv5SGrZGt7gykivdxeNotK7nyRjtIE2SWo4ipyOW 0T/bG690lcZws7U7/JEbvjwpH4sQ2ARgA+LqN9epQSfgOfmvCcobytmnarWdcoHp28e IBS9vjyXg== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m7DE3r4x062204; Wed, 13 Aug 2008 16:03:53 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 13 Aug 2008 16:03:53 +0200 Message-ID: <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 13 Aug 2008 16:03:53 +0200 From: "Alexander Leidinger" To: "Kostik Belousov" References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> <20080813115413.GF1803@deviant.kiev.zoral.com.ua> In-Reply-To: <20080813115413.GF1803@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 4227A2E16C.9DC80 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-12.523, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, MANGLED_SAVELE 2.30, RDNS_DYNAMIC 0.10, TW_KD 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Wed, 13 Aug 2008 14:55:08 +0000 Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 14:04:06 -0000 Quoting "Kostik Belousov" (from Wed, 13 Aug 2008 =20 14:54:13 +0300): > On Wed, Aug 13, 2008 at 01:28:22PM +0200, Alexander Leidinger wrote: >> Quoting "Nate Eldredge" (from Tue, 12 Aug >> 2008 23:52:35 -0700 (PDT)): >> >> >Hi folks, >> > >> >I recently tried to run a Linux binary of Maple (commercial math >> >software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine >> >rebooted. I tried it again while watching the console, and no panic >> >message appeared to be produced. Does anyone have any ideas on how >> >to debug problems of this nature? I realize I may not be able to >> >get Maple to work, but in any case the system should not die like >> >this, so I can at least try to fix that bug. >> > >> >Incidentally, is it possible to run kdb with a USB keyboard? >> >Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I >> >can do nothing except hit the power button. I do have >> >hint.atkbd.0.flags=3D"0x1" in /boot/device.hints. Unfortunately I >> >don't have a PS/2 keyboard on hand, though I can try and get a hold >> >of one if all else fails. >> >> A guess out of my cristallball: >> That's one of the cases which happen if you run a linux program >> without branding it as a linux program first. People tend to think it >> is not needed, but in some rare circumstances it just causes what you >> see, a reboot. So go and identify all binaries (IMPORTANT: but not the >> libraries!), e.g. with the file(1), and use "brandelf -t Linux" on >> those programs. > > That would be an enormous local hole, assuming an native FreeBSD binary > may cause system crash. I actually doubt that non-branded elf binary > ever start, due to unsatisfied dynamic dependencies. You see this behavior only for static binaries. In the non-branded =20 case the image activator takes the FreeBSD image and unfortunately =20 there's a common syscall in linux which matches the syscall number in =20 FreeBSD which causes the reboot (IIRC reboot syscall, do we have =20 something like this?). It's not a system crash (kernel panic), it's a =20 real reboot. AFAIR this also only works if you run the program as =20 root. So... Bye, Alexander. --=20 Blow it out your ear. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 15:28:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A3ECB106566B for ; Wed, 13 Aug 2008 15:28:23 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id 532EB8FC14 for ; Wed, 13 Aug 2008 15:28:23 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A565AB.dip.t-dialin.net [84.165.101.171]) by redbull.bpaserver.net (Postfix) with ESMTP id 9E5FC2E0F5; Wed, 13 Aug 2008 17:28:14 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id AD360150244; Wed, 13 Aug 2008 17:28:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1218641286; bh=VI4zzZjqMIfqmCTP4RWdIPvek76LTsyn/ u0Cz2tCeTY=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bxu4/bDrc51vv4adzTieu4YtpsvS9nzm7I5zkRs2Lyk2aUU7vbVPsXcHnW3KValFn uoV39GKuK97ePWHK1v+YH7spKda9ApFzWJKN7rxz/vmrQjCVLki+czJG4o0mQB2qGRy YiG5rNCstiIWNHuY9gy5FDtIp5GG6DGnuWZLzZZxvowsoEydBGMEORh1ndV0Pu7+lkh lZvBlj2Fe5fn5bma2LYNenfyiIfKlBP9B1uP+MCru8Tn7yJQOmqZG+fkrkRzx2GP0N0 QYKmdPTinJTzqCGyTiSWx4vC983+kzuIkCWSSs8856FJqE7+oScq/OWp3hNeJekkaTb 9qzncaajg== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m7DFS5De076831; Wed, 13 Aug 2008 17:28:05 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 13 Aug 2008 17:28:05 +0200 Message-ID: <20080813172805.26324k9zft01f62o@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 13 Aug 2008 17:28:05 +0200 From: "Alexander Leidinger" To: "Kostik Belousov" References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> <20080813115413.GF1803@deviant.kiev.zoral.com.ua> <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> <20080813141059.GH1803@deviant.kiev.zoral.com.ua> In-Reply-To: <20080813141059.GH1803@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 9E5FC2E0F5.85CF4 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-12.446, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, MANGLED_SAVELE 2.30, RDNS_DYNAMIC 0.10, TW_KD 0.08, TW_NX 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Wed, 13 Aug 2008 15:35:41 +0000 Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 15:28:23 -0000 Quoting "Kostik Belousov" (from Wed, 13 Aug 2008 =20 17:10:59 +0300): > On Wed, Aug 13, 2008 at 04:03:53PM +0200, Alexander Leidinger wrote: >> Quoting "Kostik Belousov" (from Wed, 13 Aug 2008 >> 14:54:13 +0300): >> >> >On Wed, Aug 13, 2008 at 01:28:22PM +0200, Alexander Leidinger wrote: >> >>Quoting "Nate Eldredge" (from Tue, 12 Aug >> >>2008 23:52:35 -0700 (PDT)): >> >> >> >>>Hi folks, >> >>> >> >>>I recently tried to run a Linux binary of Maple (commercial math >> >>>software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine >> >>>rebooted. I tried it again while watching the console, and no panic >> >>>message appeared to be produced. Does anyone have any ideas on how >> >>>to debug problems of this nature? I realize I may not be able to >> >>>get Maple to work, but in any case the system should not die like >> >>>this, so I can at least try to fix that bug. >> >>> >> >>>Incidentally, is it possible to run kdb with a USB keyboard? >> >>>Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I >> >>>can do nothing except hit the power button. I do have >> >>>hint.atkbd.0.flags=3D"0x1" in /boot/device.hints. Unfortunately I >> >>>don't have a PS/2 keyboard on hand, though I can try and get a hold >> >>>of one if all else fails. >> >> >> >>A guess out of my cristallball: >> >>That's one of the cases which happen if you run a linux program >> >>without branding it as a linux program first. People tend to think it >> >>is not needed, but in some rare circumstances it just causes what you >> >>see, a reboot. So go and identify all binaries (IMPORTANT: but not the >> >>libraries!), e.g. with the file(1), and use "brandelf -t Linux" on >> >>those programs. >> > >> >That would be an enormous local hole, assuming an native FreeBSD binary >> >may cause system crash. I actually doubt that non-branded elf binary >> >ever start, due to unsatisfied dynamic dependencies. >> >> You see this behavior only for static binaries. In the non-branded >> case the image activator takes the FreeBSD image and unfortunately >> there's a common syscall in linux which matches the syscall number in >> FreeBSD which causes the reboot (IIRC reboot syscall, do we have >> something like this?). It's not a system crash (kernel panic), it's a >> real reboot. AFAIR this also only works if you run the program as >> root. So... > > Then, the issue of mixing our reboot(2)/linux fcntl(2) is irrelevant. > The original reporter said that system "just rebooted", and I believe > that filesystems where not synced and not unmounted properly. Our > reboot(2) does not have flag combination that could cause such > behaviour, I think. > > Also, I doubt that the program being run is statically linked or > run by root. Confirmation ? I will not be surprised if it is statically linked and run by root. =20 I've seen enough such cases with commercial software and users using =20 it, that my cristalball caused me to send my first reply to the problem. > Overall, this looks like a nasty bug, hopefully in the linuxolator. The linuxulator is not involved, as there's no branding it is not =20 invoked. The same will happen if the linxulator is not in the kernel. Bye, Alexander. --=20 If value corrupts then absolute value corrupts absolutely. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 15:47:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BF372106564A for ; Wed, 13 Aug 2008 15:47:00 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id B71998FC15 for ; Wed, 13 Aug 2008 15:47:00 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 84C531CC0BA; Wed, 13 Aug 2008 08:47:00 -0700 (PDT) Date: Wed, 13 Aug 2008 08:47:00 -0700 From: Jeremy Chadwick To: Alexander Leidinger Message-ID: <20080813154700.GA1938@eos.sc1.parodius.com> References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> <20080813115413.GF1803@deviant.kiev.zoral.com.ua> <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Kostik Belousov , Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 15:47:00 -0000 On Wed, Aug 13, 2008 at 04:03:53PM +0200, Alexander Leidinger wrote: > Quoting "Kostik Belousov" (from Wed, 13 Aug 2008 > 14:54:13 +0300): > >> On Wed, Aug 13, 2008 at 01:28:22PM +0200, Alexander Leidinger wrote: >>> Quoting "Nate Eldredge" (from Tue, 12 Aug >>> 2008 23:52:35 -0700 (PDT)): >>> >>> >Hi folks, >>> > >>> >I recently tried to run a Linux binary of Maple (commercial math >>> >software) on my FreeBSD 7.0-RELEASE/amd64 box, and the machine >>> >rebooted. I tried it again while watching the console, and no panic >>> >message appeared to be produced. Does anyone have any ideas on how >>> >to debug problems of this nature? I realize I may not be able to >>> >get Maple to work, but in any case the system should not die like >>> >this, so I can at least try to fix that bug. >>> > >>> >Incidentally, is it possible to run kdb with a USB keyboard? >>> >Hitting Ctrl-Alt-Esc gives me the kdb prompt, but I can't type, so I >>> >can do nothing except hit the power button. I do have >>> >hint.atkbd.0.flags="0x1" in /boot/device.hints. Unfortunately I >>> >don't have a PS/2 keyboard on hand, though I can try and get a hold >>> >of one if all else fails. >>> >>> A guess out of my cristallball: >>> That's one of the cases which happen if you run a linux program >>> without branding it as a linux program first. People tend to think it >>> is not needed, but in some rare circumstances it just causes what you >>> see, a reboot. So go and identify all binaries (IMPORTANT: but not the >>> libraries!), e.g. with the file(1), and use "brandelf -t Linux" on >>> those programs. >> >> That would be an enormous local hole, assuming an native FreeBSD binary >> may cause system crash. I actually doubt that non-branded elf binary >> ever start, due to unsatisfied dynamic dependencies. > > You see this behavior only for static binaries. In the non-branded case > the image activator takes the FreeBSD image and unfortunately there's a > common syscall in linux which matches the syscall number in FreeBSD which > causes the reboot (IIRC reboot syscall, do we have something like this?). > It's not a system crash (kernel panic), it's a real reboot. AFAIR this > also only works if you run the program as root. So... There is indeed a reboot syscall, #55: /usr/include/sys/sycall.h: #define SYS_reboot 55 -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 16:05:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BFF31065689; Wed, 13 Aug 2008 16:05:18 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id EFFC88FC3D; Wed, 13 Aug 2008 16:05:17 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id F162E744191; Wed, 13 Aug 2008 18:41:51 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eQleWWqNKSrh; Wed, 13 Aug 2008 18:41:51 +0300 (EEST) Received: from [10.2.1.87] (gateway.cybervisiontech.com.ua [91.198.50.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id 1F9E5744174; Wed, 13 Aug 2008 18:41:51 +0300 (EEST) Message-ID: <48A300B9.5090105@icyb.net.ua> Date: Wed, 13 Aug 2008 18:41:45 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.16 (X11/20080805) MIME-Version: 1.0 To: freebsd-usb@freebsd.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: tilt/horizontal scroll support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 16:05:18 -0000 I have the following mouse: http://www.logitech.com/index.cfm/partners/system_builders_integrators/products/mice/devices/3141&cl=gb,en# It has "Tilt Wheel Plus Zoomâ„¢ technology", i.e. its scroll wheel can be tilted left and right. Currently it perfectly works as 3 buttons + wheel mouse, but tilting action does not cause any effect (in xev). This is some debug output from ums driver: ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/27.20, addr 2, iclass 3/1 ums0: 8 buttons and Z dir. ums_attach: sc=0xffffff004d747400 ums_attach: X 8/8 ums_attach: Y 16/8 ums_attach: Z 24/8 ums_attach: B1 0/1 ums_attach: B2 1/1 ums_attach: B3 2/1 ums_attach: B4 3/1 ums_attach: B5 4/1 ums_attach: B6 5/1 ums_attach: B7 6/1 ums_attach: B8 7/1 Here's how "normal"/vertical scrolling of the wheel is reported by ums (one scroll forward and one scroll backward): ums_intr: sc=0xffffff006b502400 status=0 ums_intr: data = 00 00 00 ff 00 ums_intr: x:0 y:0 z:1 t:0 buttons:0x0 ums_intr: sc=0xffffff006b502400 status=0 ums_intr: data = 00 00 00 01 00 ums_intr: x:0 y:0 z:-1 t:0 buttons:0x0 As expected value in the 4th byte (data[3]) is interpreted as z-axis movement (and seems to always be +1/-1). Here's how tilting of the wheel is reported (tilted the wheel, held it for some time and then released): ums_intr: sc=0xffffff004d747400 status=0 ums_intr: data = 00 00 00 00 01 ums_intr: x:0 y:0 z:0 t:0 buttons:0x0 ums_intr: sc=0xffffff004d747400 status=0 ums_intr: data = 00 00 00 00 01 ums_intr: x:0 y:0 z:0 t:0 buttons:0x0 ums_intr: sc=0xffffff004d747400 status=0 ums_intr: data = 00 00 00 00 01 ums_intr: x:0 y:0 z:0 t:0 buttons:0x0 ums_intr: sc=0xffffff004d747400 status=0 ums_intr: data = 00 00 00 00 00 ums_intr: x:0 y:0 z:0 t:0 buttons:0x0 It seems that tilting is reported by value in the 5th byte (data[4]), it has hardware "auto-repeat" and end of tilting is reported by all-zeroes data. Currently, it seems, data[4] is completely ignored. I would like to get tilting to work as horizontal scrolling in X, using SysMouse protocol. As I understand currently our sysmouse(4) protocol doesn't provide for tilting data (there is no field for it in the packet structure), and Xorg sysmouse driver does not have any support for tilting either. So now I have two questions. 1. What would be the best way to each ums about the tilt capability of this mouse? Is there some generic way to detect it or maybe logitech-specific way or some model-specific quirk is required? 2. What would be the best way to pass tilting data to consumers? I see two possibilities: A) map data[4] to some extended button value (do it in ums driver), e.g. to button 6 and button 7; B) it seems that dz value is always 1 or -1, amount of scrolling affects number of mouse events, but abs(dz) is always 1; if this is really always true, then tilting could be piggy-backed onto dz as +2/-2 value (or some such) and then Xorg sysmouse driver could be taught to interpret such values as special button presses (similarly to how vertical scrolling is handled in it). Thank you in advance for advices and opinions. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 16:29:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 299EC106567D for ; Wed, 13 Aug 2008 16:29:41 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.178]) by mx1.freebsd.org (Postfix) with ESMTP id B8FC98FC19 for ; Wed, 13 Aug 2008 16:29:40 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ik-out-1112.google.com with SMTP id c30so64144ika.3 for ; Wed, 13 Aug 2008 09:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent:sender; bh=doRi0Bg3xoEiXCx1ZERBht0QC405eYjf6KDcWrXr/H0=; b=liJDQIvqyou8NUBdBfb0gEec83hhCxGDWtgNTSAMw4mFL7+5Ej3TQGxtJnvOrFXvTu gBgBZUh0a+q9pdOz3jJYs2QB3IWar8UW5s0wdYq1wijyBTVtv2H0kXZIwfdFnNY5qeeT Dekzg9v/DpDKrMLbtQeKsqilC2ec6Qs0ctmYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent:sender; b=B9VMeKkrLUep0hh7ULYuhhdXzBPBmjjO8xL44DEyi6dNKHEdK0lNeRXCR06kudUn43 SWWLA31Vff/Lz4xhiPE8uV1NRC7KeyAR6NkxYZJRLxY5qu4AcFjrcGpOzopOvnsMGlSA S5wIRXjRv+298ztQ29ZQJZKCNQCtflrYA8oFs= Received: by 10.210.89.4 with SMTP id m4mr9101ebb.21.1218644978375; Wed, 13 Aug 2008 09:29:38 -0700 (PDT) Received: from epsilon.local ( [89.214.74.64]) by mx.google.com with ESMTPS id p10sm767782gvf.7.2008.08.13.09.29.35 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 09:29:37 -0700 (PDT) Date: Wed, 13 Aug 2008 17:29:31 +0100 From: Rui Paulo To: Andriy Gapon Message-ID: <20080813162931.GC718@epsilon.local> References: <48A300B9.5090105@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A300B9.5090105@icyb.net.ua> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: Rui Paulo Cc: freebsd-hackers@freebsd.org, freebsd-usb@freebsd.org Subject: Re: tilt/horizontal scroll support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 16:29:41 -0000 On Wed, Aug 13, 2008 at 06:41:45PM +0300, Andriy Gapon wrote: > > I have the following mouse: > http://www.logitech.com/index.cfm/partners/system_builders_integrators/products/mice/devices/3141&cl=gb,en# ... > So now I have two questions. > 1. What would be the best way to each ums about the tilt capability of > this mouse? Is there some generic way to detect it or maybe > logitech-specific way or some model-specific quirk is required? > > 2. What would be the best way to pass tilting data to consumers? > I see two possibilities: > A) map data[4] to some extended button value (do it in ums driver), e.g. > to button 6 and button 7; > B) it seems that dz value is always 1 or -1, amount of scrolling affects > number of mouse events, but abs(dz) is always 1; if this is really > always true, then tilting could be piggy-backed onto dz as +2/-2 value > (or some such) and then Xorg sysmouse driver could be taught to > interpret such values as special button presses (similarly to how > vertical scrolling is handled in it). Well, perhaps the best way is to teach sysmouse about horizontal scrolling and then add a quirk WRT your mouse ? sysmouse(4) really needs to grow horizontal scrolling since nowadays every mouse has it. Regards, -- Rui Paulo From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 16:47:43 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FF401065671 for ; Wed, 13 Aug 2008 16:47:43 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id ECEE48FC19 for ; Wed, 13 Aug 2008 16:47:42 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m7DGlfO20658; Wed, 13 Aug 2008 09:47:41 -0700 (PDT) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id m7DGlfY17556; Wed, 13 Aug 2008 09:47:41 -0700 (PDT) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Wed, 13 Aug 2008 09:47:41 -0700 (PDT) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Kostik Belousov In-Reply-To: <20080813141059.GH1803@deviant.kiev.zoral.com.ua> Message-ID: References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> <20080813115413.GF1803@deviant.kiev.zoral.com.ua> <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> <20080813141059.GH1803@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Nate Eldredge , Alexander Leidinger , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 16:47:43 -0000 On Wed, 13 Aug 2008, Kostik Belousov wrote: > Then, the issue of mixing our reboot(2)/linux fcntl(2) is irrelevant. > The original reporter said that system "just rebooted", and I believe > that filesystems where not synced and not unmounted properly. Our > reboot(2) does not have flag combination that could cause such > behaviour, I think. You are right, file systems were not unmounted, and I doubt that they were synced either. They had to be fscked when the system came back up. > Also, I doubt that the program being run is statically linked or > run by root. Confirmation ? I did not run it as root. Sorry, I should have said that before. It is a little hard to trace their maze of shell scripts to figure out which binary was being run, but if I am looking at the right one, it is dynamically linked and branded SVR4. I will make sure later today. > Overall, this looks like a nasty bug, hopefully in the linuxolator. Indeed. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 16:58:44 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C36BD106566C for ; Wed, 13 Aug 2008 16:58:44 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.183]) by mx1.freebsd.org (Postfix) with ESMTP id 576358FC0C for ; Wed, 13 Aug 2008 16:58:43 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by ik-out-1112.google.com with SMTP id c30so77836ika.3 for ; Wed, 13 Aug 2008 09:58:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer; bh=M5IsOqjlo77ExazwGHsF6TYN1+qnWrlv8ZOjqFHl144=; b=s6B/632jKxFG77Yi13MC2UyUKs9BrnhIttqCXgB0QUDGUkx8NPDwmG12Rf1aII79I/ Q8XBQCC82uWV0hDnxQbFTof5jRjiRoqBgqaOFUujzjlor281Iyf8IlGxzQi+ZjYEbaKX Poy8CDctf8gIhM6XlKPl7b9DEg4p1c8wFROJo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer; b=KBuLMBdK4oR04vAKJd2RrvHPesM92fFO9PJ6ul989AHBmFuMgqOMxLKDlDZEo7lA0b +be+iX69CX53jqWT0g2f6p5ZxVJYfnMPLJHg9wrqAb4FyVtXiKysxzrZs7Gm0P9ZPQoC voSKKPSEPrFezYbITYp11dK8AIWUM/jj1/9ow= Received: by 10.210.49.19 with SMTP id w19mr43707ebw.59.1218646722903; Wed, 13 Aug 2008 09:58:42 -0700 (PDT) Received: from ?127.0.0.1? ( [217.206.187.80]) by mx.google.com with ESMTPS id f13sm813641gvd.10.2008.08.13.09.58.41 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 09:58:41 -0700 (PDT) From: Tom Evans To: Mike Meyer In-Reply-To: <20080813080032.2328a474@bhuda.mired.org> References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> <20080813080032.2328a474@bhuda.mired.org> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-CR+o7CNbtcfWMkQxKIaV" Date: Wed, 13 Aug 2008 17:58:39 +0100 Message-Id: <1218646719.70002.27.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Cc: freebsd-hackers@freebsd.org, Jonathan McKeown Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 16:58:44 -0000 --=-CR+o7CNbtcfWMkQxKIaV Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2008-08-13 at 08:00 -0400, Mike Meyer wrote: >=20 > stop If the service is to be started as specified by > rc.conf(5), stop the service. This should check that= the > service is running and complain if it is not. If > forcestop is given, ignore the rc.conf(5) check and > attempt to stop. >=20 > I don't have time to do it now, but will later if no one says they have..= .. >=20 > Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CB0E106566B for ; Wed, 13 Aug 2008 17:06:16 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id E050A8FC2E for ; Wed, 13 Aug 2008 17:06:15 +0000 (UTC) (envelope-from mwm@mired.org) Received: (qmail 11162 invoked from network); 13 Aug 2008 13:04:55 -0400 Received: from unknown (HELO mbook.local) (192.168.195.193) by 0 with SMTP; 13 Aug 2008 13:04:55 -0400 Date: Wed, 13 Aug 2008 13:06:12 -0400 From: Mike Meyer To: Tom Evans Message-ID: <20080813130612.67542bd5@mbook.local> In-Reply-To: <1218646719.70002.27.camel@localhost> References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> <20080813080032.2328a474@bhuda.mired.org> <1218646719.70002.27.camel@localhost> Organization: Meyer Consulting X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.2.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 13 Aug 2008 17:54:28 +0000 Cc: freebsd-hackers@freebsd.org, Mike Meyer , Jonathan, McKeown Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 17:06:16 -0000 On Wed, 13 Aug 2008 17:58:39 +0100 Tom Evans wrote: > On Wed, 2008-08-13 at 08:00 -0400, Mike Meyer wrote: > > > > stop If the service is to be started as specified by > > rc.conf(5), stop the service. This should check that the > > service is running and complain if it is not. If > > forcestop is given, ignore the rc.conf(5) check and > > attempt to stop. > > > Why should it complain? Because somebody quoted it out of context to justify a completely bogus assumption about what was and wasn't a bug. The bug in question is that the man page should note that force(start|stop|restart) should ignore any precmd problems as well as the setting in rc.conf, as that is what the tools provided by rc.subr do. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 18:38:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 034C91065682 for ; Wed, 13 Aug 2008 18:38:21 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id A9B858FC12 for ; Wed, 13 Aug 2008 18:38:20 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A565AB.dip.t-dialin.net [84.165.101.171]) by redbull.bpaserver.net (Postfix) with ESMTP id 99C972E0F5; Wed, 13 Aug 2008 20:38:16 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id F0568150CB3; Wed, 13 Aug 2008 20:38:13 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1218652694; bh=on4F0v150QXtSgLwzPzh8oRb63r0udCJp 5FrZxtq7Bk=; h=Message-ID:Date:From:To:Cc:Subject:References: In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vJYFKEMCsfCm8xhBCRthWBVArve0eHDZL03lU6CJmeV0ml4V2jK9ZkvyRzHcTNBVx vXVlBPCq+HiXih8sIbYCqrkKP2YjgJyIixPtF10SFnj160G9014l9wvYPlaJmsBDh6Z vmf3CL9cvkNgp/IHEjPw7Yfa0+iq4G8Rl3WZmopzS37tfnyh/c5tS2ILOtXHYugaI0q hLoXHHXQkUuNtRUreQaQOrckG9uix7qZr7YflmiErSSl4m7DwLfNTZKVfIH7an1Klzz VyW73qPwLD4b9/1vo2D5aOdBDhuyPusL4LridoBQo3O0d7msBBIZVkPMWOE9D4ngiHt DB2STN2hg== Received: (from www@localhost) by webmail.leidinger.net (8.14.2/8.13.8/Submit) id m7DIc8kS009281; Wed, 13 Aug 2008 20:38:08 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from ANancy-154-1-16-76.w83-194.abo.wanadoo.fr (ANancy-154-1-16-76.w83-194.abo.wanadoo.fr [83.194.214.76]) by webmail.leidinger.net (Horde Framework) with HTTP; Wed, 13 Aug 2008 20:38:08 +0200 Message-ID: <20080813203808.16712jd03vj8pkw0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Wed, 13 Aug 2008 20:38:08 +0200 From: "Alexander Leidinger" To: "Kostik Belousov" References: <20080813132822.18394zk66kfg0xcs@webmail.leidinger.net> <20080813115413.GF1803@deviant.kiev.zoral.com.ua> <20080813160353.55171pui9o2wvm4g@webmail.leidinger.net> <20080813141059.GH1803@deviant.kiev.zoral.com.ua> <20080813172805.26324k9zft01f62o@webmail.leidinger.net> <20080813154501.GI1803@deviant.kiev.zoral.com.ua> In-Reply-To: <20080813154501.GI1803@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2) / FreeBSD-8.0 X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: 99C972E0F5.F1053 X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, ORDB-RBL, SpamAssassin (not cached, score=-14.823, required 6, BAYES_00 -15.00, DKIM_SIGNED 0.00, DKIM_VERIFIED -0.00, RDNS_DYNAMIC 0.10, TW_NX 0.08) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Wed, 13 Aug 2008 18:44:59 +0000 Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: Debugging reboot with Linux emulation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 18:38:21 -0000 Quoting "Kostik Belousov" (from Wed, 13 Aug 2008 18:45:01 +0300): > On Wed, Aug 13, 2008 at 05:28:05PM +0200, Alexander Leidinger wrote: >> The linuxulator is not involved, as there's no branding it is not >> invoked. The same will happen if the linxulator is not in the kernel. > > Ok, if the case is confirmed, I very much want to get such binary into > my hands. > > I.e., unbranded statically linked ELF binary running which causes > immediate reboot without normal kernel shutdown sequence. You could try /compat/linux/sbin/ldconfig without a brand. If it uses fcntl, it should trigger the problem. Bye, Alexander. -- Some people have no respect for age unless it's bottled. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 21:04:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E5E1065682 for ; Wed, 13 Aug 2008 21:04:11 +0000 (UTC) (envelope-from hraghav.devel@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 2D0AC8FC16 for ; Wed, 13 Aug 2008 21:04:11 +0000 (UTC) (envelope-from hraghav.devel@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so96591yxb.13 for ; Wed, 13 Aug 2008 14:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=j0JOaAKHdxymQDSYhxlUmFPeCnpvHcYc5zUr97KbLD4=; b=NLS6sK3wE2VM/b7qdLW6K5N8guwAvC6N0wFKsnYur1x3a47Hdk/HhvB1lHuQLXn+6a E+E4liBe1yinf53PIflKBygRXcudYjv0TnJ7mTGISuUg4+kub4tg8nYjinb7BCIrZ31l 2QuqrjKhz90ZJ1r9hQqhCEKlYL+jhWC0FcBo0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=FVnFTvmZ0PQMAqCExlantX6zIIkzdohIxi7S5nj5GgX7NnOO1ZPMO+Nnc72KF684uY LZr4mj1U7DwwrApzj9sni3FazTOOCB0iOMMZp6QYWeVWBgVtrvJ/9gO54r4hf14HYOCo KrdpNivv9ejVn8Shol7wtIS14X3SCv4vLWHVs= Received: by 10.143.4.16 with SMTP id g16mr112886wfi.289.1218659833628; Wed, 13 Aug 2008 13:37:13 -0700 (PDT) Received: by 10.143.12.9 with HTTP; Wed, 13 Aug 2008 13:37:13 -0700 (PDT) Message-ID: <7c299c6c0808131337t67e1b956q66a95427dfbf53de@mail.gmail.com> Date: Wed, 13 Aug 2008 13:37:13 -0700 From: "H Raghav" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: VMWare 3 port on FreeBSD 7 STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 21:04:11 -0000 Hi: I am trying to run VMware 3 port from /usr/ports/emulators/vmware3 on FreeBSD 7.0 STABLE. I did a make install from the /usr/ports as root and the build and install went fine. It installed Linux Base FC4 and then installed VMWare 3. However, whenever I try to startup vmware, I get an error that /dev/vmmon cannot be found. The error is: Could not open /dev/vmmon: No such file or directory. Please make sure that the kernel module `vmmon' is loaded. Failed to initialize monitor device. Linprocfs is mounted on /compat/linux/proc. I also ran the /usr/local/rc.d/vmware.sh start and it reported that all modules are already loaded. kldstat reveals that vmmon_smp.ko is indeed loaded. Based on some research, I found this issue reported in FreeBSD 5.4; I believe the same is at work here. I am running on a DELL SMP hardware (DELL Precision 530 Workstation). http://lists.freebsd.org/pipermail/freebsd-bugs/2005-May/012725.html Any way to fix this issue in FreeBSD 7? Is it due to the SMP hardware? Can I make VMWare belive that it is running on Uniprocessor hardware? From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 13 23:24:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B37B71065677 for ; Wed, 13 Aug 2008 23:24:19 +0000 (UTC) (envelope-from anderson_underground@hotmail.com) Received: from blu0-omc2-s19.blu0.hotmail.com (blu0-omc2-s19.blu0.hotmail.com [65.55.111.94]) by mx1.freebsd.org (Postfix) with ESMTP id 7F2378FC15 for ; Wed, 13 Aug 2008 23:24:19 +0000 (UTC) (envelope-from anderson_underground@hotmail.com) Received: from BLU149-W12 ([65.55.111.71]) by blu0-omc2-s19.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 13 Aug 2008 16:12:19 -0700 Message-ID: X-Originating-IP: [200.223.210.202] From: ANDERSON EDUARDO To: Date: Wed, 13 Aug 2008 20:12:19 -0300 Importance: Normal In-Reply-To: <20080813120012.DC6A410656F0@hub.freebsd.org> References: <20080813120012.DC6A410656F0@hub.freebsd.org> MIME-Version: 1.0 X-OriginalArrivalTime: 13 Aug 2008 23:12:19.0572 (UTC) FILETIME=[08DF9340:01C8FD9A] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Ptrace in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Aug 2008 23:24:19 -0000 someone could help me use the PT_SETREGS on FreeBSD?=20 I get the value of registers with PT_GETREGS normal=2C but when I make the= modification and the use PT_SETREGS not working!=20 could show me an example? _________________________________________________________________ Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o = Messenger! =C9 GR=C1TIS! http://www.msn.com.br/emoticonpack= From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 00:49:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4987D1065671 for ; Thu, 14 Aug 2008 00:49:25 +0000 (UTC) (envelope-from arsenault.dave@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.freebsd.org (Postfix) with ESMTP id 04EBA8FC08 for ; Thu, 14 Aug 2008 00:49:24 +0000 (UTC) (envelope-from arsenault.dave@gmail.com) Received: by py-out-1112.google.com with SMTP id p76so178678pyb.10 for ; Wed, 13 Aug 2008 17:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=6L/TXybzeF/Xt2JxZyNQL6RBaku2RvqbVlti5S9u7aQ=; b=kahiCKnR1HE+lF8FUQygcHTlAttbbQpX7YlPfCFtv5Jr38eSuiEp3VGiqiDpxLqr0k xJLXTe2U9hAe+M32Ae4neIZiT/1fFHnhMecY2GW3B6pjpJc6F7d1uSGnKbefrcTnO8nx SgCxysxHsQhJ6WFFgnRpcJr6RHNRk0GCN40cQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JyfQEgzG8oAxXIx347ol7Yvb+yWLtNTT9moHkQlvuu8oZHA+WknG50o2nE/7yZaoH9 bs3xLIyFAg71C6pCcYfhSC+vb3rybF4l3qpwCD0qrP7DklqkNX/qn9TNwnnj4/TH6Jjx aatkYqakVCGxwMa6BmmQ/vqpsLvnFu6L7L7Tg= Received: by 10.65.75.2 with SMTP id c2mr881932qbl.58.1218673520114; Wed, 13 Aug 2008 17:25:20 -0700 (PDT) Received: from ?192.168.0.101? ( [207.134.118.183]) by mx.google.com with ESMTPS id k27sm2290429qba.10.2008.08.13.17.25.17 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 17:25:19 -0700 (PDT) Message-ID: <48A37B5D.6070900@gmail.com> Date: Wed, 13 Aug 2008 20:25:01 -0400 From: Dave Arsenault User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: ANDERSON EDUARDO References: <20080813120012.DC6A410656F0@hub.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Thu, 14 Aug 2008 00:59:21 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Ptrace in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 00:49:25 -0000 ANDERSON EDUARDO wrote: > someone could help me use the PT_SETREGS on FreeBSD? > > I get the value of registers with PT_GETREGS normal, but when I make the modification and the use PT_SETREGS not working! > > could show me an example? > _________________________________________________________________ > Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! > http://www.msn.com.br/emoticonpack_______________________________________________ > 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" > > Would be more appropriate if you showed us the snippet of code that's causing trouble. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 01:20:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 414531065670 for ; Thu, 14 Aug 2008 01:20:34 +0000 (UTC) (envelope-from cynical.nihilist@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id F3BDE8FC1A for ; Thu, 14 Aug 2008 01:20:33 +0000 (UTC) (envelope-from cynical.nihilist@gmail.com) Received: by gxk10 with SMTP id 10so1831889gxk.19 for ; Wed, 13 Aug 2008 18:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=6L/TXybzeF/Xt2JxZyNQL6RBaku2RvqbVlti5S9u7aQ=; b=BjJiBr2fK/FEBNRSV5J+j+WFXYpZNluDGVkW+gdtXsjsUXD3haElHLWP3BG7MwMRgj EmAEwO9px3Oj7ziYeAdzLmx1crUcYa+b5AuswP2ATf0SSCMHR8rsK8KZJOvRsFGSwsmk 0EobF37U1eEtlgYKTTd/qhkH9zWLdpI6deKWA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=vAUo1DEZcyPfyS50ATlOlyVXUUJQ03lh452NefWK9PYE2fdqyAHIY0xasy4QgIDaep HxyOdi/9CtwSTWYsTuaYxR4AV3PLNYyvSgkLcUFJe+ft2onNezaZ/Fy+45PI+3DcBbLB eArxPiYInZxonXMVtjFBUbKssb/cce7Ha6sHw= Received: by 10.151.46.3 with SMTP id y3mr726996ybj.245.1218675233312; Wed, 13 Aug 2008 17:53:53 -0700 (PDT) Received: from ?192.168.0.101? ( [207.134.118.183]) by mx.google.com with ESMTPS id 4sm700269yxj.7.2008.08.13.17.53.52 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 17:53:52 -0700 (PDT) Message-ID: <48A38213.4010409@gmail.com> Date: Wed, 13 Aug 2008 20:53:39 -0400 From: Cynical Nihilist User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: ANDERSON EDUARDO References: <20080813120012.DC6A410656F0@hub.freebsd.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: Ptrace in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 01:20:34 -0000 ANDERSON EDUARDO wrote: > someone could help me use the PT_SETREGS on FreeBSD? > > I get the value of registers with PT_GETREGS normal, but when I make the modification and the use PT_SETREGS not working! > > could show me an example? > _________________________________________________________________ > Instale a Barra de Ferramentas com Desktop Search e ganhe EMOTICONS para o Messenger! É GRÁTIS! > http://www.msn.com.br/emoticonpack_______________________________________________ > 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" > > Would be more appropriate if you showed us the snippet of code that's causing trouble. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 01:22:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 863031065678 for ; Thu, 14 Aug 2008 01:22:34 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-gx0-f17.google.com (mail-gx0-f17.google.com [209.85.217.17]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3378FC08 for ; Thu, 14 Aug 2008 01:22:34 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: by gxk10 with SMTP id 10so1834429gxk.19 for ; Wed, 13 Aug 2008 18:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=NisQihi01JXZwEDZDcyTEfFMxxHumcMWNOWOwcI6XZU=; b=inl22L1ofA6R6DluzTCARRfSWYYqkRHARuWaUP6zWfl9Nvx8onQQi+NM10Tmr3lq3k HR7XnNcDceQFF0r3/E/ANoaeATa1utcnQey0i0diLbyYx7dP5tOG4B5P655PSjg6dvmm ykft2G+80otlnwIsVKD/l8qBC+hS1EPXRJSxM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=F8oDTtsbXRY7VpP9je9RflCqwqj4HUCyEyUGlLlNy9XkJuVH/lkRokeT6az0RYFrnt BYiii0+adtlkXb0Cx62WTphpXElWZMBqsyhxH1ufyUdrvvuKCThe/SM4JP+2Y+0R8Kpr qMblTK2KJOTNbo4TjeDbbDs4hfQWXWkkGAilo= Received: by 10.151.147.16 with SMTP id z16mr768380ybn.169.1218676953537; Wed, 13 Aug 2008 18:22:33 -0700 (PDT) Received: by 10.151.154.17 with HTTP; Wed, 13 Aug 2008 18:22:33 -0700 (PDT) Message-ID: Date: Wed, 13 Aug 2008 18:22:33 -0700 From: "Freddie Cash" To: "Vincent Hoffman" In-Reply-To: <48A29E15.5080303@unsane.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <20080812115132.44b2e8f7@mbook.local> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> Cc: freebsd-hackers@freebsd.org Subject: Re: If not the force, what should I use? (Was: FreeBSD in Business (was Re: Idea for FreeBSD)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 01:22:34 -0000 On Wed, Aug 13, 2008 at 1:40 AM, Vincent Hoffman wrote: > Jonathan McKeown wrote: >> On Tuesday 12 August 2008 17:51:32 Mike Meyer wrote: >>> On Tue, 12 Aug 2008 17:10:22 +0200 "Adrian Penisoara" >>> Ok, given that you 1) want to have both "XXXX this service if it's >>> part of our normal runtime" and "XXXX this service even if it's not >>> part of our normal runtime" as script commands, and that 2) XXXX >>> without a prefix gets the "if it's part of our normal runtime" >>> meaning, as we want the user to have to explicitly say "Yes, I know >>> this looks odd, but I know what I'm doing so do it anyway" to get the >>> "even if it's not part of our normal runtime" behavior, then what >>> would you have us use instead of "forceXXXX"? >>> >> People keep talking about forcestart. >> >> Unless I'm misunderstanding things horribly, forcestart does exactly that >> - forces the service to start regardless of any error that may occur. >> >> The better option for starting something as a one-off (not enabled in >> rc.conf) is mnemonically named onestart - which only ignores the rcvar but >> still fails on any other error. >> >> And yes, I like having onestart/onestop distinguished from start/stop. >> > I believe it "forces" a start even though its not actually enabled (in > rc.conf) rather than regardless of errors. > If you really want a command line of onestart/onestop install the > sysutils/bsdadminscripts port which has a script called rconestart and > rconestop which do exactly that ;) >From /etc/rc.subr: # run_rc_command argument # Search for argument in the list of supported commands, which is: # "start stop restart rcvar status poll ${extra_commands}" # If there's a match, run ${argument}_cmd or the default method # (see below). # # If argument has a given prefix, then change the operation as follows: # Prefix Operation # ------ --------- # fast Skip the pid check, and set rc_fast=yes # force Set ${rcvar} to YES, and set rc_force=yes # one Set ${rcvar} to YES Further in the file: case "$rc_arg" in fast*) # "fast" prefix; don't check pid rc_arg=${rc_arg#fast} rc_fast=yes ;; force*) # "force prefix; always run rc_force=yes _rc_prefix=force rc_arg=${rc_arg#${_rc_prefix}} if [ -n "${rcvar}" ]; then eval ${rcvar}=YES fi ;; one*) # "one" prefix; set ${rcvar}=yes _rc_prefix=one rc_arg=${rc_arg#${_rc_prefix}} if [ -n "${rcvar}" ]; then eval ${rcvar}=YES fi ;; esac Which, if I follow things, means: ** "/etc/rc.d/$script faststart" won't check for existing PID files or already running apps, and just run $script, but still checks if $script_enable=yes is in /etc/rc.conf. ** "/etc/rc.d/$script onestart" sets $script_enable=yes internally, regardless of what is in rc.conf, and runs $script. All other checks are done as per normal. ** "/etc/rc.d/$script forcestart" runs $script, regardless of what's in rc.conf, the status of the PID file, or the existence of an already running daemon. What most people in this thread are looking for is onestart. -- Freddie Cash fjwcash@gmail.com From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 06:27:12 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80DBE106564A for ; Thu, 14 Aug 2008 06:27:12 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id 095988FC19 for ; Thu, 14 Aug 2008 06:27:11 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so572551fgb.35 for ; Wed, 13 Aug 2008 23:27:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=8YFGYZs9zv6l49soi/LGkJkttBtwVzRPmZU7onN68aQ=; b=AypWsZG7de6SAV/poHKdzbH/kJhrcDJfYfAYEaVgsQ+gG8VJ7N+FRjvEDqyWtV6SAw oF7GcbfLb7FChU57wRrqZSvh/2Wn3hPqZF82FABo8cTi9CjYUv6vv0ZhFv4Oj6ogMoN1 ff3P9P52Kf0CL/4DeC9ZJbNy99snigADpEvP0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=CA6os0+R0+d6SyJwb6m2vXSTZFexh0VYFPFpeDK5vEvjH08R4LtzHC2g9fdwz19iH8 laDAf+ZiloTDUSAqE5l8kSmQNqrtRmsVTqE0uycbcMzEt0thN4ihUfBvgjB6RPEZYEWR Ac7umqqsgYPXmy4AaHrh+i50Y5noJ7LtFJ3k4= Received: by 10.86.82.16 with SMTP id f16mr1423049fgb.9.1218695229707; Wed, 13 Aug 2008 23:27:09 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id 4sm3912966fge.5.2008.08.13.23.27.07 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 23:27:08 -0700 (PDT) Message-ID: <48A3D034.9090809@gmail.com> Date: Thu, 14 Aug 2008 10:27:00 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: elloallo@infinito.it, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 06:27:12 -0000 elloallo@infinito.it wrote: > > > I bought an ASUS motherboard with onboard SATA II controller. I > attached 2 HDs SATA II but when I run dmesg I notice that my system > sees them as normal older SATA 150 instead of SATA 300. > > Is there any suggestion to solve this problem ? > > Have a nice day. > > ------------------dmesg output----------------------- > > Copyright (c) 1992-2006 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > 1994 > The Regents of the University of California. All rights > reserved. > FreeBSD 6.1-RELEASE-p1 #0: Fri Jun 2 15:41:03 CEST 2006 > r...@AMOS-gw1.allo.it:/usr/obj/usr/src/sys/AMOS-SMP > WARNING: debug.mpsafenet forced to 0 as ipsec requires Giant > WARNING: MPSAFE network stack disabled, expect reduced performance. > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel(R) Pentium(R) D CPU 3.00GHz (3000.38-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf62 Stepping = 2 > > Features=0xbfebfbff > Features2=0xe43d,> > AMD Features=0x20000000 > AMD Features2=0x1 > Cores per package: 2 > real memory = 2138701824 (2039 MB) > avail memory = 2087825408 (1991 MB) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 > cpu0: on acpi0 > acpi_throttle0: on cpu0 > cpu1: on acpi0 > atapci0: port > 0xc800-0xc807,0xc400-0xc403,0xc000-0xc007,0xb800-0xb803,0xb400-0xb40f > irq 19 at device 4.0 on pci1 > ata2: on atapci0 > ata3: on atapci0 > atapci1: port > 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on > pci0 > ata0: on atapci1 > ata1: on atapci1 > atapci2: port > 0xa800-0xa807,0xa400-0xa403,0xa000-0xa007,0x9800-0x9803,0x9400-0x940f > irq 17 at device 31.2 on pci0 > atapci2: failed to enable memory mapping! > ata4: on atapci2 > ata5: on atapci2 > acd0: DVDROM at ata0-master UDMA33 > ad8: 114473MB at ata4-master SATA150 > GEOM_MIRROR: Device gm0 created (id=2415013281). > GEOM_MIRROR: Device gm0: provider ad8 detected. > ad10: 114473MB at ata5-master SATA150 > GEOM_MIRROR: Device gm0: provider ad10 detected. > SMP: AP CPU #1 Launched! > GEOM_MIRROR: Device gm0: provider ad10 activated. > GEOM_MIRROR: Device gm0: provider mirror/gm0 launched. > GEOM_MIRROR: Device gm0: rebuilding provider ad8. > Trying to mount root from ufs:/dev/mirror/gm0s1a > em0: link state changed to UP > hello my similar problem motherboard with the Intel G31 Express Chipset -------------------------------------------------------------------- |# output 'dmesg' (|partially|) atapci1: port 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f irq 19 at device 31.2 on pci0 atapci1: [ITHREAD] ad7: 476940MB at ata3-slave SATA150 # atacontrol cap ad7 Protocol Serial ATA II device model WDC WD5000AAKS-00YGA0 serial number WD-WCAS87395070 firmware revision 12.01C02 cylinders 16383 heads 16 sectors/track 63 lba supported 268435455 sectors lba48 supported 976773168 sectors dma supported overlap not supported Feature Support Enable Value Vendor write cache yes yes read ahead yes yes Native Command Queuing (NCQ) yes - 31/0x1F Tagged Command Queuing (TCQ) no no 31/0x1F SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management no no 0/0x00 automatic acoustic management yes no 254/0xFE 128/0x80 # atacontrol mode ad7 current mode = SATA150 # output 'pciconf -lv' (|partially|) atapci1@pci0:0:31:2: class=0x01018f card=0x26391019 chip=0x27c08086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = '82801GB/GR/GH (ICH7 Family) Serial ATA Storage Controller' class = mass storage subclass = ATA # uname -a FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 |-------------------------------------------------------------------- please, any solution ? /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 06:56:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA559106566C for ; Thu, 14 Aug 2008 06:56:11 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp14.yandex.ru (smtp14.yandex.ru [77.88.32.84]) by mx1.freebsd.org (Postfix) with ESMTP id 289B48FC14 for ; Thu, 14 Aug 2008 06:56:10 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:12494 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5178920AbYHNGoR (ORCPT ); Thu, 14 Aug 2008 10:44:17 +0400 X-Yandex-Spam: 1 X-Yandex-Front: smtp14 X-Yandex-TimeMark: 1218696257 X-MsgDayCount: 4 X-Comment: RFC 2476 MSA function at smtp14.yandex.ru logged sender identity as: bu7cher Message-ID: <48A3D43E.2070101@yandex.ru> Date: Thu, 14 Aug 2008 10:44:14 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: sam References: <48A3D034.9090809@gmail.com> In-Reply-To: <48A3D034.9090809@gmail.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 06:56:11 -0000 sam wrote: > FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 2008 > root@:/usr/obj/usr/src/sys/GENERIC i386 > |-------------------------------------------------------------------- > > please, any solution ? Probably speed is limited via jumpers on your hard drive. -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 06:58:06 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CCE8106567F for ; Thu, 14 Aug 2008 06:58:06 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id D85AE8FC08 for ; Thu, 14 Aug 2008 06:58:05 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so588604fgb.35 for ; Wed, 13 Aug 2008 23:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Io31+JlaRpjgo2aG41s/VS65GeaK/nrskWGwHSMlWQI=; b=HgFhDVs/hxF41b5EVB0QHxlFHADs56RokgUj6u5h0NF5P6ZtzQUxKLv+I5UnBC0e/b ZBRy2Q+c1gast7IC1NREGpnvsdL0jnfVE2QD53U3DbZeYnw3TlkdQT1YgcfMuSCUJg8o DDMXgL8qbUQRkWj+A3sFpMCOEIrDkIeqt1cnU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=AUf0ccsp/eRNiz6kVAu5Muh9SlqYvnBzhYX2L4rMMviHznlFZIzjKKLiuDrS64XhE0 R/rVeEcM71/TAykvhvdITLsUO/nThFpHUTHp4ECqLUlQ9F1r40u3nbAGWdau59azoGNe sienHFqE3Hub8TdIbWr0HtlrTw1z2m/2y1FPU= Received: by 10.86.73.3 with SMTP id v3mr1457107fga.17.1218697084307; Wed, 13 Aug 2008 23:58:04 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id 4sm4031100fgg.4.2008.08.13.23.58.02 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Aug 2008 23:58:03 -0700 (PDT) Message-ID: <48A3D771.5010601@gmail.com> Date: Thu, 14 Aug 2008 10:57:53 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> In-Reply-To: <48A3D43E.2070101@yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 06:58:06 -0000 Andrey V. Elsukov wrote: > sam wrote: >> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD >> 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 >> |-------------------------------------------------------------------- >> >> please, any solution ? > > Probably speed is limited via jumpers on your hard drive. > http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper tried it without results /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 07:10:16 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DAA14106568B for ; Thu, 14 Aug 2008 07:10:16 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9F94E8FC15; Thu, 14 Aug 2008 07:10:14 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48A3DA54.9070803@FreeBSD.org> Date: Thu, 14 Aug 2008 09:10:12 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: sam References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> In-Reply-To: <48A3D771.5010601@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:10:16 -0000 sam wrote: > Andrey V. Elsukov wrote: >> sam wrote: >>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD >>> 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 >>> |-------------------------------------------------------------------- >>> >>> please, any solution ? >> >> Probably speed is limited via jumpers on your hard drive. >> > http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper > > tried it > > without results So the jumpers were set wrong to begin with, but fixing them didnt help? Check your BIOS SATA support or look for an upgrade. Kris From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 07:16:16 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 796EA1065681 for ; Thu, 14 Aug 2008 07:16:16 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 64A898FC15 for ; Thu, 14 Aug 2008 07:16:16 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 11E7A1CC0BB; Thu, 14 Aug 2008 00:16:16 -0700 (PDT) Date: Thu, 14 Aug 2008 00:16:16 -0700 From: Jeremy Chadwick To: sam Message-ID: <20080814071616.GA758@eos.sc1.parodius.com> References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A3D771.5010601@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:16:16 -0000 On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote: > Andrey V. Elsukov wrote: >> sam wrote: >>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD >>> 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 >>> |-------------------------------------------------------------------- >>> >>> please, any solution ? >> >> Probably speed is limited via jumpers on your hard drive. >> > http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper > tried it > > without results FWIW, the only time I've seen this happen is when there's a jumper limiting the capability. You should have **removed** the OPT1 jumper, and left any other jumpers alone. If you're absolutely sure the jumper is removed, I'll purchase one of these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your findings. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 07:19:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1AB31065670 for ; Thu, 14 Aug 2008 07:19:40 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 3DFE58FC1F for ; Thu, 14 Aug 2008 07:19:39 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so596192fgb.35 for ; Thu, 14 Aug 2008 00:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=99sYpZDJ/ibTchpC+J0p8Bzz4ON+KEsQI7qot2dx4EE=; b=PVQeoUPCBQZ+SV5LlDZEZo1/SXROymfA6+PBI5AQh8CyVuxWvpoqIsUBRl96Hq45YT AruiTxhej7iNF0dgExv42StCGclXjBh3zIkyLQ3grSsVuLvSmm8EULud1LLlabIh9Ain EzBA3oyfJGCy/ih0+fkS6kDvrO6rj+vonZJJM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=QIJ8eOBNAf04G1tYUMGpdMdv1wsoXmZR5rixGSN6llo4WsJxGoKYR0Mm7Vxhk+jg/4 1FRthqEAXpj0B9nGGRbnw0svvqM0jkrcO7MMdqsrCl9kJtE3ufFdM2Ruf3oVIUe6TZHn vnGV9haYIMfWhYczMkkz0IwapD6PlWbOZ09mg= Received: by 10.86.74.15 with SMTP id w15mr1504375fga.13.1218698378860; Thu, 14 Aug 2008 00:19:38 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id d6sm3016341fga.2.2008.08.14.00.19.36 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 00:19:37 -0700 (PDT) Message-ID: <48A3DC83.1080806@gmail.com> Date: Thu, 14 Aug 2008 11:19:31 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Kris Kennaway References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> In-Reply-To: <48A3DA54.9070803@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:19:40 -0000 Kris Kennaway wrote: > sam wrote: >> Andrey V. Elsukov wrote: >>> sam wrote: >>>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD >>>> 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 >>>> |-------------------------------------------------------------------- >>>> >>>> please, any solution ? >>> >>> Probably speed is limited via jumpers on your hard drive. >>> >> http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper >> >> tried it >> >> without results > > So the jumpers were set wrong to begin with, but fixing them didnt help? i`am tried all positions from specification > Check your BIOS SATA support or look for an upgrade. BIOS is support SATA have 2 modes (Compatible, Enchanced) i`am tried both modes without results BIOS firmware is upgraded to last /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 07:27:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABD071065675 for ; Thu, 14 Aug 2008 07:27:13 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 8D0438FC14 for ; Thu, 14 Aug 2008 07:27:13 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 6B25C1CC0BF; Thu, 14 Aug 2008 00:27:13 -0700 (PDT) Date: Thu, 14 Aug 2008 00:27:13 -0700 From: Jeremy Chadwick To: sam Message-ID: <20080814072713.GA1939@eos.sc1.parodius.com> References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <20080814071616.GA758@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080814071616.GA758@eos.sc1.parodius.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:27:13 -0000 On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote: > On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote: > > Andrey V. Elsukov wrote: > >> sam wrote: > >>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD > >>> 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 > >>> |-------------------------------------------------------------------- > >>> > >>> please, any solution ? > >> > >> Probably speed is limited via jumpers on your hard drive. > >> > > http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper > > tried it > > > > without results > > FWIW, the only time I've seen this happen is when there's a jumper > limiting the capability. You should have **removed** the OPT1 jumper, > and left any other jumpers alone. > > If you're absolutely sure the jumper is removed, I'll purchase one of > these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your > findings. Actually, I don't need to -- I'm using WD5000AAKS disks myself on that exact system: atapci1: port 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.10 controller with 4 ports detected ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] ad6: 476940MB at ata3-master SATA300 ad8: 476940MB at ata4-master SATA300 icarus# atacontrol cap ad6 Protocol Serial ATA II device model WDC WD5000AAKS-00YGA0 serial number WD-WCAS83974519 firmware revision 12.01C02 cylinders 16383 heads 16 sectors/track 63 lba supported 268435455 sectors lba48 supported 976773168 sectors dma supported overlap not supported Feature Support Enable Value Vendor write cache yes yes read ahead yes yes Native Command Queuing (NCQ) yes - 31/0x1F Tagged Command Queuing (TCQ) no no 31/0x1F SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management no no 0/0x00 automatic acoustic management yes no 254/0xFE 128/0x80 icarus# atacontrol cap ad8 Protocol Serial ATA II device model WDC WD5000AAKS-00TMA0 serial number WD-WCAPW2137942 firmware revision 12.01C01 cylinders 16383 heads 16 sectors/track 63 lba supported 268435455 sectors lba48 supported 976773168 sectors dma supported overlap not supported Feature Support Enable Value Vendor write cache yes yes read ahead yes yes Native Command Queuing (NCQ) yes - 31/0x1F Tagged Command Queuing (TCQ) no no 31/0x1F SMART yes yes microcode download yes yes security yes no power management yes yes advanced power management no no 0/0x00 automatic acoustic management yes no 254/0xFE 128/0x80 icarus# atacontrol mode ad6 current mode = SATA300 icarus# atacontrol mode ad8 current mode = SATA300 -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 07:34:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C84D1065676 for ; Thu, 14 Aug 2008 07:34:22 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 226578FC08 for ; Thu, 14 Aug 2008 07:34:20 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so602897fgb.35 for ; Thu, 14 Aug 2008 00:34:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xjoBlIcE5aNJqU4oNQypN+xHy3U2UbsI4HhCQ3xiVLM=; b=oOJ0ZZNl5FvQH15L9U90d46qQPFRGlt6M4vHIOi1js0JloHwxzL4X+2OacIjncQrtT dxn5oiBUHH7dNp0xICsoU+7BasYm7dxwJ+Sw/JG9r7zWU4ZztwDpXJ5do5NRaCPjkKvF pA87Bo5HVCia1MajpX9cdbW5s+oLDBb2yozxo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=cHrXI6IFH9XzSzVDkHjxdNVTI/cvW+Pxc22xXUKQpwMXeSK0aarBc+KJO6XhcH/2D/ A52Uc5nKBj7UllfshVk6KPSOhc7ICoDg8PySKm5xJ6WRppmDVqibV9SopQQKmScSaAdH 5y8USWCB3EJWfzAkbno5FYKBUYuweLi/YuQDA= Received: by 10.86.60.15 with SMTP id i15mr1532011fga.43.1218699259698; Thu, 14 Aug 2008 00:34:19 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id 3sm3533942fge.3.2008.08.14.00.34.17 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 00:34:18 -0700 (PDT) Message-ID: <48A3DFF2.4050302@gmail.com> Date: Thu, 14 Aug 2008 11:34:10 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Kostik Belousov References: <489036A2.5060403@gmail.com> <48931AD1.1090609@gmail.com> <20080801143128.GJ97161@deviant.kiev.zoral.com.ua> <489AABA5.9070602@gmail.com> <20080807103020.GS97161@deviant.kiev.zoral.com.ua> In-Reply-To: <20080807103020.GS97161@deviant.kiev.zoral.com.ua> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Nate Eldredge , freebsd-hackers@freebsd.org Subject: Re: consolekit on 7.0-STABLE i386 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:34:22 -0000 Kostik Belousov wrote: > On Thu, Aug 07, 2008 at 12:00:37PM +0400, sam wrote: > >> Kostik Belousov wrote: >> >>> On Fri, Aug 01, 2008 at 06:16:49PM +0400, sam wrote: >>> >>> >>>> Nate Eldredge wrote: >>>> >>>> >>>>> On Wed, 30 Jul 2008, sam wrote: >>>>> >>>>> >>>>> >>>>>> 0 19 0 1113M 29M 112 0 0 0 32 0 0 1 100 5549 >>>>>> 1682 11 1 88 >>>>>> 0 19 0 1113M 29M 297 0 0 0 136 0 0 2 122 78880 >>>>>> 1749 6 7 87 >>>>>> |-------------------------------------------------------------------- >>>>>> >>>>>> consolekit in |waitvt state, influencing on high volumes in procs-b >>>>>> >>>>>> >>>>> I don't understand what the problem is. It looks like consolekit is >>>>> sleeping and not using any CPU. "waitvt" just indicates where in the >>>>> kernel it's sleeping. I don't understand what you mean by "high >>>>> volumes in procs-b". >>>>> >>>>> >>>>> >>>> How-To-Repeat: >>>> -------------------------------------------------------------- >>>> # (|cd /usr/ports/sysutils/consolekit/ && make install clean) >>>> >>>> # /usr/local/etc/rc.d/dbus forcestart >>>> >>>> # vmstat -w 1 >>>> procs memory page disk faults cpu >>>> r b w avm fre flt re pi po fr sr ad0 in sy cs us >>>> sy id >>>> 2 1 0 62252K 644M 88 0 0 0 80 0 0 2 83 279 1 >>>> 1 98 >>>> 0 1 0 62252K 644M 0 0 0 0 0 0 0 4 134 292 0 >>>> 3 97 >>>> 0 1 0 62252K 644M 0 0 0 0 0 0 0 4 123 299 0 >>>> 2 98 >>>> 1 1 0 62252K 644M 0 0 0 0 0 0 0 3 120 305 0 >>>> 3 97 >>>> ^C >>>> # /usr/local/sbin/console-kit-daemon && vmstat -w 1 >>>> procs memory page disk faults cpu >>>> r b w avm fre flt re pi po fr sr ad0 in sy cs us >>>> sy id >>>> 2 1 0 67572K 643M 88 0 0 0 80 0 0 2 83 279 1 >>>> 1 98 >>>> 0 16 0 68660K 643M 103 0 0 0 2 0 10 13 643 381 >>>> 2 4 94 >>>> 0 16 0 68660K 643M 0 0 0 0 0 0 0 3 120 281 >>>> 0 4 96 >>>> 0 16 0 68660K 643M 0 0 0 0 0 0 0 2 120 278 >>>> 0 3 97 >>>> 0 16 0 68660K 643M 0 0 0 0 12 0 28 34 120 385 >>>> 0 3 97 >>>> 0 16 0 68660K 643M 0 0 0 0 0 0 0 4 120 292 >>>> 0 3 97 >>>> ^C >>>> # >>>> |-------------------------------------------------------------- >>>> >>>> please, any solution ... >>>> >>>> >>> Solution for what ? There is nothing wrong with the system. >>> >>> For the purely estetisk purpose, you may look up the line >>> tsleep(VTY_WCHAN(sc, i), PZERO | PCATCH, "waitvt", 0); >>> or similar in sys/dev/syscons/syscons.c, and remove the "PZERO |" substring >>> >> >from it. >> >>> >>> >> ok >> >> Why proc-b on the HEAD, have low values (with working consolekit)? >> > > On what revision of HEAD ? I committed the change that causes the thread > to sleep on the PZERO+1 priority instead of PZERO as r181286. > thx it works ------------------------------------------------------------------------ # output 'top' (part) 958 root 1 4 0 3096K 872K - 0 0:00 0.00% nfsd 960 root 1 4 0 3096K 872K - 1 0:00 0.00% nfsd 959 root 1 4 0 3096K 872K - 1 0:00 0.00% nfsd 96619 root 17 1 0 7984K 3324K waitvt 1 0:00 0.00% console-kit-daemon # /usr/local/sbin/console-kit-daemon && vmstat 1 procs memory page disk faults cpu r b w avm fre flt re pi po fr sr ad4 in sy cs us sy id 2 1 1 129M 1552M 293 0 0 0 269 0 0 40 267 826 0 0 99 0 1 0 132M 1551M 58 0 0 0 2 0 0 29 541 591 0 1 99 0 1 0 132M 1551M 0 0 0 0 0 0 0 29 155 492 0 0 100 # uname -a FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 ------------------------------------------------------------------------ /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 07:38:28 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 938161065671 for ; Thu, 14 Aug 2008 07:38:28 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp14.yandex.ru (smtp14.yandex.ru [77.88.32.84]) by mx1.freebsd.org (Postfix) with ESMTP id 9D1628FC1A for ; Thu, 14 Aug 2008 07:38:27 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:4550 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5178707AbYHNHiR (ORCPT + 1 other); Thu, 14 Aug 2008 11:38:17 +0400 X-Yandex-Spam: 1 X-Yandex-Front: smtp14 X-Yandex-TimeMark: 1218699497 X-MsgDayCount: 8 X-Comment: RFC 2476 MSA function at smtp14.yandex.ru logged sender identity as: bu7cher Message-ID: <48A3E0E4.3090909@yandex.ru> Date: Thu, 14 Aug 2008 11:38:12 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: sam References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> <48A3DC83.1080806@gmail.com> In-Reply-To: <48A3DC83.1080806@gmail.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Kris Kennaway , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:38:28 -0000 sam wrote: >> So the jumpers were set wrong to begin with, but fixing them didnt help? > i`am tried all positions from specification >> Check your BIOS SATA support or look for an upgrade. > BIOS is support SATA > have 2 modes (Compatible, Enchanced) > i`am tried both modes > > without results Can you show `ident /boot/kernel/kernel | grep ata-chipset` output? -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 07:44:58 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 003931065672 for ; Thu, 14 Aug 2008 07:44:57 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 7BA198FC17 for ; Thu, 14 Aug 2008 07:44:57 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so607528fgb.35 for ; Thu, 14 Aug 2008 00:44:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=Ze7pscphvWO3A69hfgIe4VK636pC28WuBwUKoDgOM7A=; b=jZSBYbBLTvwKpRY4Wq9FwRAsu3qx+bvK7rHecGxghIuGhSsH2EIG6S+KKvuHcsAC5u 1HgzOyQ8cjO9F1lsjIgBuKa0+rkcB6CgfVjlg2ybqOHOy/pz5eFxTuMZY4qnrHQf788p 9PDZD+EiEugI1Xhf2UfM3wAzEqjICWUpRWsL8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=HCkM6Az6zLvr6R2OBhEH1Y7x/CeBJ2eGLc0Yta/HicMmgTewVy4dS5W9CGmPJSuAHX or9XT03MC4wbGdlcD5m4p6tIhxr2yfwPSiGYiCp9o2WJ2n5qO4MKQn2SUpT9YHCdeUQl BffzpbP9GGy5FEmRzf8T98EVOham3iNFl4MVg= Received: by 10.86.98.14 with SMTP id v14mr1541841fgb.74.1218699896183; Thu, 14 Aug 2008 00:44:56 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id 4sm4169409fge.5.2008.08.14.00.44.54 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 00:44:55 -0700 (PDT) Message-ID: <48A3E25E.6050105@gmail.com> Date: Thu, 14 Aug 2008 11:44:30 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> <48A3DC83.1080806@gmail.com> <48A3E0E4.3090909@yandex.ru> In-Reply-To: <48A3E0E4.3090909@yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Kris Kennaway , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 07:44:58 -0000 Andrey V. Elsukov wrote: > sam wrote: >>> So the jumpers were set wrong to begin with, but fixing them didnt >>> help? >> i`am tried all positions from specification >>> Check your BIOS SATA support or look for an upgrade. >> BIOS is support SATA >> have 2 modes (Compatible, Enchanced) >> i`am tried both modes >> >> without results > > Can you show `ident /boot/kernel/kernel | grep ata-chipset` output? > -------------------------------------------------------- # ident /boot/kernel/kernel | grep ata-chipset $FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.202.2.11 2008/08/02 12:34:49 remko Exp $ -------------------------------------------------------- /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 08:02:35 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FB141065671 for ; Thu, 14 Aug 2008 08:02:35 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id E53AF8FC08 for ; Thu, 14 Aug 2008 08:02:34 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so615269fgb.35 for ; Thu, 14 Aug 2008 01:02:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=HkrSIvaSuX7U5yAFfdgMU2t9MGmyWwQYN0RtOlkjflM=; b=PsJr7vgc3BSz9gMGL/bz3D0y/t9E3vQXsW8flaWvgKxOypAAabvm01XVBWa9q50T8R NfgBX1EubdoZdmhv6sRG/3sijzEguwYiwsUeeHHQIc3zEX/7zCRWUCDU9f1dhqzGySgy qQtLC1EFl3fCqRNgk8mrq9eub+uF3clG17LW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=qwdk9lBloBTJa4WwoUiMz4hHgqiTEuQq2NMX+mMBcLfZYitOSoTetaa14k2V/9JeHi v+rTupyXGla34w0iP0RY667LjSxjuvA/i2QVACbAajcJQ+G17dXNyIdnZT/Xk2oi0+0o H4sxyLSIzSuY0MmM9L2MtqOtEwZTO3eNOQ9Zo= Received: by 10.180.220.5 with SMTP id s5mr464812bkg.31.1218700953822; Thu, 14 Aug 2008 01:02:33 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id l19sm3641718fgb.7.2008.08.14.01.02.31 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 01:02:32 -0700 (PDT) Message-ID: <48A3E6AA.9000205@gmail.com> Date: Thu, 14 Aug 2008 12:02:50 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Jeremy Chadwick References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <20080814071616.GA758@eos.sc1.parodius.com> <20080814072713.GA1939@eos.sc1.parodius.com> In-Reply-To: <20080814072713.GA1939@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 08:02:35 -0000 Jeremy Chadwick wrote: > On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote: > >> On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote: >> >>> Andrey V. Elsukov wrote: >>> >>>> sam wrote: >>>> >>>>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 MSD >>>>> 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 >>>>> |-------------------------------------------------------------------- >>>>> >>>>> please, any solution ? >>>>> >>>> Probably speed is limited via jumpers on your hard drive. >>>> >>>> >>> http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper >>> tried it >>> >>> without results >>> >> FWIW, the only time I've seen this happen is when there's a jumper >> limiting the capability. You should have **removed** the OPT1 jumper, >> and left any other jumpers alone. >> >> If you're absolutely sure the jumper is removed, I'll purchase one of >> these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your >> findings. >> > > Actually, I don't need to -- I'm using WD5000AAKS disks myself on > that exact system: > > atapci1: port 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0 > atapci1: [ITHREAD] > atapci1: AHCI Version 01.10 controller with 4 ports detected > ata2: on atapci1 > ata2: [ITHREAD] > ata3: on atapci1 > ata3: [ITHREAD] > ata4: on atapci1 > ata4: [ITHREAD] > ata5: on atapci1 > ata5: [ITHREAD] > > ad6: 476940MB at ata3-master SATA300 > ad8: 476940MB at ata4-master SATA300 > may issue in driver ? ---------------------------------------------------- atapci1: port 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f irq 19 at device 31.2 on pci0 ---------------------------------------------------- /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 08:11:03 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6611F106566C for ; Thu, 14 Aug 2008 08:11:03 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4F2958FC15 for ; Thu, 14 Aug 2008 08:11:03 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id EF6CF1CC0BA; Thu, 14 Aug 2008 01:11:02 -0700 (PDT) Date: Thu, 14 Aug 2008 01:11:02 -0700 From: Jeremy Chadwick To: sam Message-ID: <20080814081102.GA7612@eos.sc1.parodius.com> References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <20080814071616.GA758@eos.sc1.parodius.com> <20080814072713.GA1939@eos.sc1.parodius.com> <48A3E6AA.9000205@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A3E6AA.9000205@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 08:11:03 -0000 On Thu, Aug 14, 2008 at 12:02:50PM +0400, sam wrote: > Jeremy Chadwick wrote: >> On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote: >> >>> On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote: >>> >>>> Andrey V. Elsukov wrote: >>>> >>>>> sam wrote: >>>>> >>>>>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 >>>>>> MSD 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 >>>>>> |-------------------------------------------------------------------- >>>>>> >>>>>> please, any solution ? >>>>>> >>>>> Probably speed is limited via jumpers on your hard drive. >>>>> >>>>> >>>> http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper >>>> tried it >>>> >>>> without results >>>> >>> FWIW, the only time I've seen this happen is when there's a jumper >>> limiting the capability. You should have **removed** the OPT1 jumper, >>> and left any other jumpers alone. >>> >>> If you're absolutely sure the jumper is removed, I'll purchase one of >>> these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your >>> findings. >>> >> >> Actually, I don't need to -- I'm using WD5000AAKS disks myself on >> that exact system: >> >> atapci1: port 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0 >> atapci1: [ITHREAD] >> atapci1: AHCI Version 01.10 controller with 4 ports detected >> ata2: on atapci1 >> ata2: [ITHREAD] >> ata3: on atapci1 >> ata3: [ITHREAD] >> ata4: on atapci1 >> ata4: [ITHREAD] >> ata5: on atapci1 >> ata5: [ITHREAD] >> >> ad6: 476940MB at ata3-master SATA300 >> ad8: 476940MB at ata4-master SATA300 >> > may issue in driver ? > > ---------------------------------------------------- > atapci1: port > 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f > irq 19 at device 31.2 on pci0 > ---------------------------------------------------- Possibly. All my Intel ICH7 boards have AHCI capability, and I use it. See Chapter 4 here: http://www.supermicro.com/manuals/motherboard/3000/MNL-0889.pdf If your motherboard does, I'd recommend enabling it as well and see if things change. Regarding the "Enhanced" vs. "Compatible" mode: use Enhanced. On my boards, choosing Enhanced makes the AHCI and Intel MatrixRAID options appear. I'm fairly certain you don't need AHCI to get SATA300, though. I would recommend you re-check the jumpers on your disks to make sure you didn't make a mistake when adjusting things. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 08:19:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2140E1065674 for ; Thu, 14 Aug 2008 08:19:11 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 96AED8FC17 for ; Thu, 14 Aug 2008 08:19:10 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so308371nfh.33 for ; Thu, 14 Aug 2008 01:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer; bh=Wkd8gMbvwhX5y087PxK+mGPliZa6ZRi+G31b/uSlaBE=; b=THn6G7lssf72FQn+t2sJxAxFnlde1m0c5D46lj4CjdAhbQgRfXtDMs/nUKB5joDx7f xqhS2xQTBa7HWhReG1/KhTZNofL4alR8O+aL3uE935qJRv9N2VMJ5vQ63frKGSZXKKO0 3WsMZ7+d9mo2M+Wh72HmaSh9zlaVoYy5n/X2s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer; b=POcFFGSM7PTj1k39Kjd/isWFy6U2RaOe24no6d3wopQmyaQS48FluhT3m5RzmeXD4k DPgJNAOovTcIhFhFjzYukd3l3aD/T+J+NM0VsffDhQnWlKnG0ZpWBD4MALV2oLsLHHIT YHgwhreCBdiwsxQ7JAHOamU5ZnspgnHLDKAz0= Received: by 10.210.115.15 with SMTP id n15mr1014515ebc.28.1218701949200; Thu, 14 Aug 2008 01:19:09 -0700 (PDT) Received: from ?127.0.0.1? ( [217.206.187.80]) by mx.google.com with ESMTPS id p10sm800459gvf.7.2008.08.14.01.19.07 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 01:19:08 -0700 (PDT) From: Tom Evans To: Mike Meyer In-Reply-To: <20080813130612.67542bd5@mbook.local> References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> <20080813080032.2328a474@bhuda.mired.org> <1218646719.70002.27.camel@localhost> <20080813130612.67542bd5@mbook.local> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-/gnGfjk1Ma/UnSKBILyW" Date: Thu, 14 Aug 2008 09:19:05 +0100 Message-Id: <1218701945.70002.31.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Cc: freebsd-hackers@freebsd.org, Mike Meyer , Jonathan McKeown Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 08:19:11 -0000 --=-/gnGfjk1Ma/UnSKBILyW Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Wed, 2008-08-13 at 13:06 -0400, Mike Meyer wrote: > On Wed, 13 Aug 2008 17:58:39 +0100 Tom Evans w= rote: >=20 > > On Wed, 2008-08-13 at 08:00 -0400, Mike Meyer wrote: > > >=20 > > > stop If the service is to be started as specified by > > > rc.conf(5), stop the service. This should check = that the > > > service is running and complain if it is not. If > > > forcestop is given, ignore the rc.conf(5) check a= nd > > > attempt to stop. > > >=20 > > Why should it complain? >=20 > Because somebody quoted it out of context to justify a completely > bogus assumption about what was and wasn't a bug. >=20 > The bug in question is that the man page should note that > force(start|stop|restart) should ignore any precmd problems as well as > the setting in rc.conf, as that is what the tools provided by rc.subr > do. >=20 > Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 144E71065675 for ; Thu, 14 Aug 2008 09:02:01 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.187]) by mx1.freebsd.org (Postfix) with ESMTP id 8D8518FC21 for ; Thu, 14 Aug 2008 09:02:00 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fk-out-0910.google.com with SMTP id k31so509123fkk.11 for ; Thu, 14 Aug 2008 02:01:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=xxgkLtVCne4IWANjAcOHycU3lEAWGznlj8mNuWh7+1I=; b=B6G/6/ASYH1LHEPuotT6ycnZjVBLV1eQeNsuF+3DRYiPnEnyMuqk76xEpYVKBvo72Q uV0waYMNXt3p3KtBr14VcT26+yhL+gRGuUuX7XZixYueaUXNXI0muIKUbggkQJYKq7Jp KRR8RCOvvDppuVevA5tYzMoS1BjMRmDZIHRH8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=KbCA5md9B8BrXyWzpdBIZ7JCQhznJyugDLAvuPncMvdnrhAvFETcQpC1S8D6bkkgxH b/Kf10z7LYb/I/ABmlQutC0q8pClga+kSiKYCArrPpVCyqMUtP8pu6fr75ObWbW1QcdG WA6pQmZWeN+yiCIJk4/2E/J9j/y+3dd0ZEZbU= Received: by 10.180.224.13 with SMTP id w13mr504672bkg.100.1218704519188; Thu, 14 Aug 2008 02:01:59 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id l12sm4439021fgb.6.2008.08.14.02.01.56 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 02:01:57 -0700 (PDT) Message-ID: <48A3F478.8040901@gmail.com> Date: Thu, 14 Aug 2008 13:01:44 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Jeremy Chadwick References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <20080814071616.GA758@eos.sc1.parodius.com> <20080814072713.GA1939@eos.sc1.parodius.com> <48A3E6AA.9000205@gmail.com> <20080814081102.GA7612@eos.sc1.parodius.com> In-Reply-To: <20080814081102.GA7612@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 09:02:01 -0000 Jeremy Chadwick wrote: > On Thu, Aug 14, 2008 at 12:02:50PM +0400, sam wrote: > >> Jeremy Chadwick wrote: >> >>> On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote: >>> >>> >>>> On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote: >>>> >>>> >>>>> Andrey V. Elsukov wrote: >>>>> >>>>> >>>>>> sam wrote: >>>>>> >>>>>> >>>>>>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 13:54:27 >>>>>>> MSD 2008 root@:/usr/obj/usr/src/sys/GENERIC i386 >>>>>>> |-------------------------------------------------------------------- >>>>>>> >>>>>>> please, any solution ? >>>>>>> >>>>>>> >>>>>> Probably speed is limited via jumpers on your hard drive. >>>>>> >>>>>> >>>>>> >>>>> http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper >>>>> tried it >>>>> >>>>> without results >>>>> >>>>> >>>> FWIW, the only time I've seen this happen is when there's a jumper >>>> limiting the capability. You should have **removed** the OPT1 jumper, >>>> and left any other jumpers alone. >>>> >>>> If you're absolutely sure the jumper is removed, I'll purchase one of >>>> these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your >>>> findings. >>>> >>>> >>> Actually, I don't need to -- I'm using WD5000AAKS disks myself on >>> that exact system: >>> >>> atapci1: port 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0 >>> atapci1: [ITHREAD] >>> atapci1: AHCI Version 01.10 controller with 4 ports detected >>> ata2: on atapci1 >>> ata2: [ITHREAD] >>> ata3: on atapci1 >>> ata3: [ITHREAD] >>> ata4: on atapci1 >>> ata4: [ITHREAD] >>> ata5: on atapci1 >>> ata5: [ITHREAD] >>> >>> ad6: 476940MB at ata3-master SATA300 >>> ad8: 476940MB at ata4-master SATA300 >>> >>> >> may issue in driver ? >> >> ---------------------------------------------------- >> atapci1: port >> 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f >> irq 19 at device 31.2 on pci0 >> ---------------------------------------------------- >> > > Possibly. All my Intel ICH7 boards have AHCI capability, and I use it. > See Chapter 4 here: > > http://www.supermicro.com/manuals/motherboard/3000/MNL-0889.pdf > > If your motherboard does, I'd recommend enabling it as well and see if > things change. > > Regarding the "Enhanced" vs. "Compatible" mode: use Enhanced. On > my boards, choosing Enhanced makes the AHCI and Intel MatrixRAID > options appear. > > I'm fairly certain you don't need AHCI to get SATA300, though. > > I would recommend you re-check the jumpers on your disks to make sure > you didn't make a mistake when adjusting things. > > - HDD on position: all jumpers removed; - SATA controller in Enchanced mode; - no option AHCI in BIOS without results /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 09:08:06 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 688871065671 for ; Thu, 14 Aug 2008 09:08:06 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 479628FC19 for ; Thu, 14 Aug 2008 09:08:06 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 2E1101CC0BD; Thu, 14 Aug 2008 02:08:06 -0700 (PDT) Date: Thu, 14 Aug 2008 02:08:06 -0700 From: Jeremy Chadwick To: sam Message-ID: <20080814090806.GA14589@eos.sc1.parodius.com> References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <20080814071616.GA758@eos.sc1.parodius.com> <20080814072713.GA1939@eos.sc1.parodius.com> <48A3E6AA.9000205@gmail.com> <20080814081102.GA7612@eos.sc1.parodius.com> <48A3F478.8040901@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A3F478.8040901@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, "Andrey V. Elsukov" Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 09:08:06 -0000 On Thu, Aug 14, 2008 at 01:01:44PM +0400, sam wrote: > Jeremy Chadwick wrote: >> On Thu, Aug 14, 2008 at 12:02:50PM +0400, sam wrote: >> >>> Jeremy Chadwick wrote: >>> >>>> On Thu, Aug 14, 2008 at 12:16:16AM -0700, Jeremy Chadwick wrote: >>>> >>>>> On Thu, Aug 14, 2008 at 10:57:53AM +0400, sam wrote: >>>>> >>>>>> Andrey V. Elsukov wrote: >>>>>> >>>>>>> sam wrote: >>>>>>> >>>>>>>> FreeBSD 7.0-STABLE FreeBSD 7.0-STABLE #5: Tue Aug 12 >>>>>>>> 13:54:27 MSD 2008 root@:/usr/obj/usr/src/sys/GENERIC >>>>>>>> i386 >>>>>>>> |-------------------------------------------------------------------- >>>>>>>> >>>>>>>> please, any solution ? >>>>>>>> >>>>>>> Probably speed is limited via jumpers on your hard drive. >>>>>>> >>>>>>> >>>>>> http://wdc.custhelp.com/cgi-bin/wdc.cfg/php/enduser/std_adp.php?p_faqid=1409&p_created=#jumper >>>>>> tried it >>>>>> >>>>>> without results >>>>>> >>>>> FWIW, the only time I've seen this happen is when there's a jumper >>>>> limiting the capability. You should have **removed** the OPT1 jumper, >>>>> and left any other jumpers alone. >>>>> >>>>> If you're absolutely sure the jumper is removed, I'll purchase one of >>>>> these drives and test it on an ICH7 (Supermicro PDSMi+) to confirm your >>>>> findings. >>>>> >>>> Actually, I don't need to -- I'm using WD5000AAKS disks myself on >>>> that exact system: >>>> >>>> atapci1: port 0x30e8-0x30ef,0x30dc-0x30df,0x30e0-0x30e7,0x30d8-0x30db,0x30b0-0x30bf mem 0xe8600400-0xe86007ff irq 19 at device 31.2 on pci0 >>>> atapci1: [ITHREAD] >>>> atapci1: AHCI Version 01.10 controller with 4 ports detected >>>> ata2: on atapci1 >>>> ata2: [ITHREAD] >>>> ata3: on atapci1 >>>> ata3: [ITHREAD] >>>> ata4: on atapci1 >>>> ata4: [ITHREAD] >>>> ata5: on atapci1 >>>> ata5: [ITHREAD] >>>> >>>> ad6: 476940MB at ata3-master SATA300 >>>> ad8: 476940MB at ata4-master SATA300 >>>> >>> may issue in driver ? >>> >>> ---------------------------------------------------- >>> atapci1: port >>> 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f >>> irq 19 at device 31.2 on pci0 >>> ---------------------------------------------------- >>> >> >> Possibly. All my Intel ICH7 boards have AHCI capability, and I use it. >> See Chapter 4 here: >> >> http://www.supermicro.com/manuals/motherboard/3000/MNL-0889.pdf >> >> If your motherboard does, I'd recommend enabling it as well and see if >> things change. >> >> Regarding the "Enhanced" vs. "Compatible" mode: use Enhanced. On >> my boards, choosing Enhanced makes the AHCI and Intel MatrixRAID >> options appear. >> >> I'm fairly certain you don't need AHCI to get SATA300, though. >> >> I would recommend you re-check the jumpers on your disks to make sure >> you didn't make a mistake when adjusting things. >> >> > - HDD on position: all jumpers removed; > - SATA controller in Enchanced mode; > - no option AHCI in BIOS > > without results I'm out of ideas. Others will have to continue helping... -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 09:33:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 548B91065679; Thu, 14 Aug 2008 09:33:48 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp14.yandex.ru (smtp14.yandex.ru [77.88.32.84]) by mx1.freebsd.org (Postfix) with ESMTP id 5CA268FC19; Thu, 14 Aug 2008 09:33:47 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:30194 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5178657AbYHNJdh (ORCPT + 1 other); Thu, 14 Aug 2008 13:33:37 +0400 X-Yandex-Spam: 1 X-Yandex-Front: smtp14 X-Yandex-TimeMark: 1218706417 X-MsgDayCount: 12 X-Comment: RFC 2476 MSA function at smtp14.yandex.ru logged sender identity as: bu7cher Message-ID: <48A3FBEE.5060302@yandex.ru> Date: Thu, 14 Aug 2008 13:33:34 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: sam References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> <48A3DC83.1080806@gmail.com> <48A3E0E4.3090909@yandex.ru> <48A3E25E.6050105@gmail.com> In-Reply-To: <48A3E25E.6050105@gmail.com> Content-Type: multipart/mixed; boundary="------------000106050100000300000604" Cc: freebsd-hackers@freebsd.org, Kris Kennaway , elloallo@infinito.it Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 09:33:48 -0000 This is a multi-part message in MIME format. --------------000106050100000300000604 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit sam wrote: > -------------------------------------------------------- > # ident /boot/kernel/kernel | grep ata-chipset > $FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.202.2.11 2008/08/02 > 12:34:49 remko Exp $ > -------------------------------------------------------- Can you apply attached patch, rebuild your kernel, reboot in verbose mode and show /var/run/dmesg.boot ? -- WBR, Andrey V. Elsukov --------------000106050100000300000604 Content-Type: text/plain; name="ata-chipset.c.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ata-chipset.c.diff" --- ata-chipset.c.orig 2008-08-12 08:31:14.000000000 +0400 +++ ata-chipset.c 2008-08-14 13:31:40.000000000 +0400 @@ -2193,6 +2193,11 @@ ctlr->allocate = ata_intel_allocate; ctlr->reset = ata_intel_reset; + if (bootverbose) { + device_printf(dev, "SCRD = 0x%08x, SATACR1 = 0x%08x\n", + pci_read_config(dev, 0x94, 4), + pci_read_config(dev, 0xac, 4)); + } /* * if we have AHCI capability and AHCI or RAID mode enabled * in BIOS we try for AHCI mode --------------000106050100000300000604-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 10:57:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 82D6D106567B for ; Thu, 14 Aug 2008 10:57:19 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 0A14A8FC32 for ; Thu, 14 Aug 2008 10:57:18 +0000 (UTC) (envelope-from samflanker@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so710562fgb.35 for ; Thu, 14 Aug 2008 03:57:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=uYmUJFEBCVDym06ZWtNyjtQlI48PzBGox+T2i3RmQkk=; b=KZLXrZZR5A3PuVoHtXVoGnJ6SzEP0DNrzGPWndRYWJfDh/zNAXVQlT2DzCmu1EjP0K bJy3+o365F+eslrggdKoU1OqEx/AYSUyUb1TTjwGRDN+OuzO8o96jWtXWvD1weZCIxe5 Kboi+A1HxxP4PBtbyLM83mAnA6Pe3/nxmQycg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=W/xemsc8zUmM8lf/38swmWdqbBMGNAq9aYW3PSMa1ogba7AE9biQBUGVDq2rOa48Zq VZXap3TqBrAHJoJcA1Mb7xQmu5kd75zGb9jRKtjA4qnPrOICrJLupM6SNN6iTvZ34bvB sDKsLdav1LqTvBbYvuUO5weiOGGoIQtKjiJz8= Received: by 10.86.23.17 with SMTP id 17mr105316fgw.32.1218711437504; Thu, 14 Aug 2008 03:57:17 -0700 (PDT) Received: from ?192.168.1.107? ( [213.152.137.38]) by mx.google.com with ESMTPS id d4sm4862422fga.8.2008.08.14.03.57.15 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 03:57:15 -0700 (PDT) Message-ID: <48A40F85.3050509@gmail.com> Date: Thu, 14 Aug 2008 14:57:09 +0400 From: sam User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: "Andrey V. Elsukov" References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> <48A3DC83.1080806@gmail.com> <48A3E0E4.3090909@yandex.ru> <48A3E25E.6050105@gmail.com> <48A3FBEE.5060302@yandex.ru> In-Reply-To: <48A3FBEE.5060302@yandex.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 10:57:19 -0000 Andrey V. Elsukov wrote: > sam wrote: >> -------------------------------------------------------- >> # ident /boot/kernel/kernel | grep ata-chipset >> $FreeBSD: src/sys/dev/ata/ata-chipset.c,v 1.202.2.11 2008/08/02 >> 12:34:49 remko Exp $ >> -------------------------------------------------------- > > Can you apply attached patch, rebuild your kernel, reboot in verbose > mode and show /var/run/dmesg.boot ? > http://cs.udmvt.ru/files/temp/dmesg.boot_0814 /Vladimir Ermakov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 11:56:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 78CB3106564A; Thu, 14 Aug 2008 11:56:39 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp12.yandex.ru (smtp12.yandex.ru [77.88.32.82]) by mx1.freebsd.org (Postfix) with ESMTP id 84A838FC13; Thu, 14 Aug 2008 11:56:38 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from mail.kirov.so-cdu.ru ([77.72.136.145]:37601 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S1525030AbYHNL4e (ORCPT + 1 other); Thu, 14 Aug 2008 15:56:34 +0400 X-Yandex-Spam: 1 X-Yandex-Front: smtp12 X-Yandex-TimeMark: 1218714994 X-MsgDayCount: 15 X-Comment: RFC 2476 MSA function at smtp12.yandex.ru logged sender identity as: bu7cher Message-ID: <48A41D70.3000507@yandex.ru> Date: Thu, 14 Aug 2008 15:56:32 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: sam References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> <48A3DC83.1080806@gmail.com> <48A3E0E4.3090909@yandex.ru> <48A3E25E.6050105@gmail.com> <48A3FBEE.5060302@yandex.ru> <48A40F85.3050509@gmail.com> In-Reply-To: <48A40F85.3050509@gmail.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 11:56:39 -0000 sam wrote: >> Can you apply attached patch, rebuild your kernel, reboot in verbose >> mode and show /var/run/dmesg.boot ? >> > http://cs.udmvt.ru/files/temp/dmesg.boot_0814 It seems that driver couldn't allocate IO resource at BAR5 and without this resource it can't read SATA Status register and determine negotiated speed. I think the problem is in your BIOS. If your BIOS doesn't have any AHCI or RAID specific options I don't know how correctly fix this problem. -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 12:20:45 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 614E91065678 for ; Thu, 14 Aug 2008 12:20:45 +0000 (UTC) (envelope-from anderson_underground@hotmail.com) Received: from blu0-omc2-s34.blu0.hotmail.com (blu0-omc2-s34.blu0.hotmail.com [65.55.111.109]) by mx1.freebsd.org (Postfix) with ESMTP id 271428FC21 for ; Thu, 14 Aug 2008 12:20:44 +0000 (UTC) (envelope-from anderson_underground@hotmail.com) Received: from BLU149-W34 ([65.55.111.73]) by blu0-omc2-s34.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 14 Aug 2008 05:20:43 -0700 Message-ID: X-Originating-IP: [200.223.210.202] From: ANDERSON EDUARDO To: Date: Thu, 14 Aug 2008 09:20:44 -0300 Importance: Normal In-Reply-To: <20080814073840.280C81065778@hub.freebsd.org> References: <20080814073840.280C81065778@hub.freebsd.org> MIME-Version: 1.0 X-OriginalArrivalTime: 14 Aug 2008 12:20:43.0800 (UTC) FILETIME=[2C63F180:01C8FE08] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Ptrace in FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 12:20:45 -0000 Sorry friends!=20 Was lack of attention=2C to use normal=20 :D=20 Thank you! _________________________________________________________________ Receba GR=C1TIS as mensagens do Messenger no seu celular quando voc=EA esti= ver offline. Conhe=E7a o MSN Mobile! http://mobile.live.com/signup/signup2.aspx?lc=3Dpt-br= From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 12:47:55 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63D281065670; Thu, 14 Aug 2008 12:47:55 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE2F8FC08; Thu, 14 Aug 2008 12:47:54 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id D863D1CC0BB; Thu, 14 Aug 2008 05:47:54 -0700 (PDT) Date: Thu, 14 Aug 2008 05:47:54 -0700 From: Jeremy Chadwick To: "Andrey V. Elsukov" Message-ID: <20080814124754.GA20195@eos.sc1.parodius.com> References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> <48A3DC83.1080806@gmail.com> <48A3E0E4.3090909@yandex.ru> <48A3E25E.6050105@gmail.com> <48A3FBEE.5060302@yandex.ru> <48A40F85.3050509@gmail.com> <48A41D70.3000507@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A41D70.3000507@yandex.ru> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, Kris Kennaway , sam Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 12:47:55 -0000 On Thu, Aug 14, 2008 at 03:56:32PM +0400, Andrey V. Elsukov wrote: > sam wrote: >>> Can you apply attached patch, rebuild your kernel, reboot in verbose >>> mode and show /var/run/dmesg.boot ? >>> >> http://cs.udmvt.ru/files/temp/dmesg.boot_0814 > > It seems that driver couldn't allocate IO resource at BAR5 and > without this resource it can't read SATA Status register and > determine negotiated speed. I think the problem is in your BIOS. > If your BIOS doesn't have any AHCI or RAID specific options > I don't know how correctly fix this problem. Andrey, please correct me if I'm wrong here. I'm not familiar these kernel functions, but assuming pci_read_config() handles proper byte order, and device_printf() prints it in correct order, then I believe you may be missing something important. I haven't looked for any product Errata, but see Section 12.1 below (specific to ICH7): http://www.intel.com/assets/pdf/datasheet/307013.pdf Index 0x94 = SIR (SATA Index Register) Index 0xAC = SCAP1 (SATA Capability Register 1) I'm not sure why you called SIR "SCRD" in your device_printf(). For SIR's description, see Section 12.1.35. For SCAP1, see Section 12.1.39. The SIR value is 0x40000180, broken down into binary nibbles: %0100 0000 0000 0000 0000 0001 1000 0000 ^ ^ This indicates bit 30 is set. According to Intel's docs, bit 30 disables SCAP0 and SCAP1, thus will cause them to always return 0: Bit 30 SATA Capability Registers Disable (SCRD) When this bit is set, the SATA Capability Registers are disabled. That is, SATA Capability Registers 0 and 1 are both changed to Read Only with the value of 00000000h. Also, the Next Capability bits in the PCI Power Management Capability Information Register (D31:F2;Offset 70h bits 15:8) are changed to 00h, to indicate that the PCI Power Management Capability structure is the last PCI capability structure in the SATA controller. When this bit is cleared, the SATA Capability Registers are enabled. A quick glance seems to indicate we're not initialising some of the SATA registers at all, case in point. Someone should make a patch for the user that zeros out bit 30 of SIR, then check the xBAR and LBAR values; zeroing bit 30 might get him SATA300 support (I haven't looked at the rest of the FreeBSD ATA code yet). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 14:56:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 121EB106567C; Thu, 14 Aug 2008 14:56:59 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from webmail5.yandex.ru (webmail5.yandex.ru [213.180.200.38]) by mx1.freebsd.org (Postfix) with ESMTP id 80A938FC12; Thu, 14 Aug 2008 14:56:58 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from YAMAIL (webmail5) by mail.yandex.ru id S9455045AbYHNO4u for (+ 2 others); Thu, 14 Aug 2008 18:56:50 +0400 X-Yandex-Spam: 1 Received: from [77.72.136.66] ([77.72.136.66]) by mail.yandex.ru with HTTP; Thu, 14 Aug 2008 18:56:49 +0400 From: "Andrey V. Elsukov" To: koitsu@freebsd.org In-Reply-To: <20080814124754.GA20195@eos.sc1.parodius.com> References: <48A3D034.9090809@gmail.com> <48A3D43E.2070101@yandex.ru> <48A3D771.5010601@gmail.com> <48A3DA54.9070803@FreeBSD.org> <48A3DC83.1080806@gmail.com> <48A3E0E4.3090909@yandex.ru> <48A3E25E.6050105@gmail.com> <48A3FBEE.5060302@yandex.ru> <48A40F85.3050509@gmail.com> <48A41D70.3000507@yandex.ru> <20080814124754.GA20195@eos.sc1.parodius.com> MIME-Version: 1.0 Message-Id: <527191218725809@webmail5.yandex.ru> Date: Thu, 14 Aug 2008 18:56:49 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: freebsd-hackers@freebsd.org, bu7cher@yandex.ru, samflanker@gmail.com Subject: Re: kern/98388: [ata] FreeBSD 6.1 - WDC WD1200JS SATA II disks are seen as older SATA X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 14:56:59 -0000 14.08.08, 16:47, "Jeremy Chadwick" : > On Thu, Aug 14, 2008 at 03:56:32PM +0400, Andrey V. Elsukov wrote: > > sam wrote: > >>> Can you apply attached patch, rebuild your kernel, reboot in verbose > >>> mode and show /var/run/dmesg.boot ? > >>> > >> http://cs.udmvt.ru/files/temp/dmesg.boot_0814 > > > > It seems that driver couldn't allocate IO resource at BAR5 and > > without this resource it can't read SATA Status register and > > determine negotiated speed. I think the problem is in your BIOS. > > If your BIOS doesn't have any AHCI or RAID specific options > > I don't know how correctly fix this problem. > Andrey, please correct me if I'm wrong here. I'm not familiar these > kernel functions, but assuming pci_read_config() handles proper byte > order, and device_printf() prints it in correct order, then I believe > you may be missing something important. My decision is not from output of my changes. Here is in log: found-> vendor=0x8086, dev=0x27c0, revid=0x01 domain=0, bus=0, slot=31, func=2 class=01-01-8f, hdrtype=0x00, mfdev=0 cmdreg=0x0005, statreg=0x02b0, cachelnsz=0 (dwords) lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns) intpin=b, irq=11 powerspec 2 supports D0 D3 current D0 map[10]: type I/O Port, range 32, base 0xc880, size 3, enabled map[14]: type I/O Port, range 32, base 0xc800, size 2, enabled map[18]: type I/O Port, range 32, base 0xc480, size 3, enabled map[1c]: type I/O Port, range 32, base 0xc400, size 2, enabled map[20]: type I/O Port, range 32, base 0xc080, size 4, enabled BAR5 is not present here. Also atapci1: port 0xc880-0xc887,0xc800-0xc803,0xc480-0xc487,0xc400-0xc403,0xc080-0xc08f irq 19 at device 31.2 on pci0 atapci1: Reserved 0x10 bytes for rid 0x20 type 4 at 0xc080 atapci1: [MPSAFE] atapci1: [ITHREAD] atapci1: SCRD = 0x40000180, SATACR1 = 0x00000000 There should be resource allocation: "rid 0x24 type 3" for AHCI or "rid 0x24 type 4" for non-AHCI. But here are nothing of these. ata2: on atapci1 atapci1: Reserved 0x8 bytes for rid 0x10 type 4 at 0xc880 atapci1: Reserved 0x4 bytes for rid 0x14 type 4 at 0xc800 > Someone should make a patch for the user that zeros out bit 30 of SIR, > then check the xBAR and LBAR values; zeroing bit 30 might get him > SATA300 support (I haven't looked at the rest of the FreeBSD ATA code > yet). I think you can try to do it. But i don't have this hardware and trying to change some bits, making patches, waiting for results, again and again - it's not very interesting for me (i already have similar experience).. In any case ICHx which is working in non-AHCI mode is not the best choice. Many SATA features don't work in this mode and difference between SATA150 and SATA300 is small. -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 15:10:03 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C69A41065692 for ; Thu, 14 Aug 2008 15:10:03 +0000 (UTC) (envelope-from mwm@mired.org) Received: from mired.org (five.mired.org [66.92.153.75]) by mx1.freebsd.org (Postfix) with ESMTP id 5AF2E8FC18 for ; Thu, 14 Aug 2008 15:10:03 +0000 (UTC) (envelope-from mwm@mired.org) Received: (qmail 58727 invoked from network); 14 Aug 2008 11:08:41 -0400 Received: from unknown (HELO mbook.local) (192.168.195.193) by 0 with SMTP; 14 Aug 2008 11:08:41 -0400 Date: Thu, 14 Aug 2008 11:09:59 -0400 From: Mike Meyer To: Tom Evans Message-ID: <20080814110959.64102a91@mbook.local> In-Reply-To: <1218701945.70002.31.camel@localhost> References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> <20080813080032.2328a474@bhuda.mired.org> <1218646719.70002.27.camel@localhost> <20080813130612.67542bd5@mbook.local> <1218701945.70002.31.camel@localhost> Organization: Meyer Consulting X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-apple-darwin9.2.2) Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAG1BMVEXguIzRkGnhyaz069mXhW0WHRnbrnR9WCQ6LB0CchNMAAACSUlEQVQ4jV2TQW7jMAxFGaPQOgQEdZaGMsgBrAvUA03dCxj1Uu4U2gfwQD7AGNax51NK07RcxXz6/CSl0Ij450vkPG1jzpIZM1UwDCl/xB14TWnNX8A00Qj5a0mnVFVbVUz4MeErea2HikSRqZzY894zwg9p2+/AtO8LzxFED+tNAUFeU29iFOLRxlZAcdo9A8wi8ZBMV4BKPde82Oxrvs6BTkulQIClte0DLFzzsKk9j1MBex8iUaP00Bd78S/muyFScrTXz6zLkEUxJp+SabQfNOs4f4Jpx5qSZ/304PWwlEWP1cOn/mJQR7EOD+uKhjcBLziuL7xoY5Xm+VFAUSw/LwwwsHEHxihpwV4EJH0xXRkbw1PkRw+X4pEuSJwBggqk+HEYKkiL5/74/nQkogigzQsAFrakxZyfw3wMIEEZPv4AWMfxwqE5GNxGaERjmH+PG8AE0L4/w9g0lsp1raLYAN5azQa+AOoO9NwcpFkTrG2VKNMNEL5UKUUAw34tha0z7onUG0oBoNtczE04GwFE3wCHc0ChezAJ6A1WMV81AtY7wDAJSlXwV+4cwBvsOsrQMRawfQEBz0deEZ7WNpV2szckIKo5VpDHDSDvF1GItwqqAlG01Hh50BGtVhuUkjkasg/14bYFGCgWg1fSWHvmOoJck2xdp9ZvZBHzDVTzX23TkrOn7qe5U2COEw5D4Vx3qEQpFY2Z/3QFnJxzp7YCmSMG19nOUoe869zZfOQb5ywQuWu0yCn5+8gxZz+BE7vG3j4/wbf4D/sXN9Wug1s7AAAAAElFTkSuQmCC Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 14 Aug 2008 15:32:48 +0000 Cc: freebsd-hackers@freebsd.org, Mike Meyer , Jonathan, McKeown Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 15:10:03 -0000 On Thu, 14 Aug 2008 09:19:05 +0100 Tom Evans wrote: > > On Wed, 2008-08-13 at 13:06 -0400, Mike Meyer wrote: > > On Wed, 13 Aug 2008 17:58:39 +0100 Tom Evans wrote: > > > > > On Wed, 2008-08-13 at 08:00 -0400, Mike Meyer wrote: > > > > > > > > stop If the service is to be started as specified by > > > > rc.conf(5), stop the service. This should check that the > > > > service is running and complain if it is not. If > > > > forcestop is given, ignore the rc.conf(5) check and > > > > attempt to stop. > > > > > > > Why should it complain? > > > > Because somebody quoted it out of context to justify a completely > > bogus assumption about what was and wasn't a bug. > > > > The bug in question is that the man page should note that > > force(start|stop|restart) should ignore any precmd problems as well as > > the setting in rc.conf, as that is what the tools provided by rc.subr > > do. > > > > > So the reason is 'Because'? > > Currently if you attempt to stop a service that is not started, there is > no error and no warning. I would like to know why you propose to change > that. Please don't jump down my throat. I don't - and didn't - propose changing it. I proposed correcting the wording on the man page so it reflects the reality of the 'force' prefix. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. O< ascii ribbon campaign - stop html mail - www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 15:52:05 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 144991065671 for ; Thu, 14 Aug 2008 15:52:05 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 068CC8FC1A for ; Thu, 14 Aug 2008 15:52:03 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so429725nfh.33 for ; Thu, 14 Aug 2008 08:52:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer; bh=VF23hd/2/L6T/BBJ4Pp4V850lIIO2PeXdIG1lNcGifk=; b=IodPQf1aVigHpaOoRlROSbICxwFiBod5xTCZdifBDPu1LjBQQlDxUPpPTPvvPe8W+s ud4KkuVCfVckCAHapejTbDsyDSBJvdlUk/Nv5CV9Ugl5FUQbIMAih7/E4qEu6b9pWjSp CEjz6y2tnKSGdlls6nEHWmB/xlJaXSp1pC11k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer; b=X7N/UMFOvXh1SWNS0hb/Kt3EwJnEJi1NRDljtic6MJpTWxh/BKtVTLpJEdttkDt8ej HmkEURQD2Ypw1c6g5DvLUytSM6AKFC2FJS1z3aj/e/vgW8MVBA/cxmCoLvCDx0Cps/h8 FPbZLDekGkCeO35RVtRkMAedOLH7lmucYc0Sk= Received: by 10.210.43.11 with SMTP id q11mr1558269ebq.199.1218729122648; Thu, 14 Aug 2008 08:52:02 -0700 (PDT) Received: from ?127.0.0.1? ( [217.206.187.80]) by mx.google.com with ESMTPS id g9sm3695229gvc.0.2008.08.14.08.52.00 (version=SSLv3 cipher=RC4-MD5); Thu, 14 Aug 2008 08:52:01 -0700 (PDT) From: Tom Evans To: Mike Meyer In-Reply-To: <20080814110959.64102a91@mbook.local> References: <78cb3d3f0808120810o54f49373n69ac5076c9a9c9b7@mail.gmail.com> <200808130813.56656.jonathan+freebsd-hackers@hst.org.za> <48A29E15.5080303@unsane.co.uk> <200808131227.30125.jonathan+freebsd-hackers@hst.org.za> <20080813080032.2328a474@bhuda.mired.org> <1218646719.70002.27.camel@localhost> <20080813130612.67542bd5@mbook.local> <1218701945.70002.31.camel@localhost> <20080814110959.64102a91@mbook.local> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-KJ012WbvUHkNl8LIpLFt" Date: Thu, 14 Aug 2008 16:51:58 +0100 Message-Id: <1218729118.70002.38.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 FreeBSD GNOME Team Port Cc: freebsd-hackers@freebsd.org Subject: Re: If not the force, what should I use? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 15:52:05 -0000 --=-KJ012WbvUHkNl8LIpLFt Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2008-08-14 at 11:09 -0400, Mike Meyer wrote: >=20 > I don't - and didn't - propose changing it. I proposed correcting the > wording on the man page so it reflects the reality of the 'force' > prefix. >=20 > Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5031106566B for ; Thu, 14 Aug 2008 18:31:55 +0000 (UTC) (envelope-from V.Rezkii@sam-solutions.net) Received: from c71.sam-solutions.net (c71.sam-solutions.net [217.21.35.67]) by mx1.freebsd.org (Postfix) with ESMTP id 473298FC17 for ; Thu, 14 Aug 2008 18:31:55 +0000 (UTC) (envelope-from V.Rezkii@sam-solutions.net) Received: from pc636.sam-solutions.net ([192.168.117.46]) by c71.sam-solutions.net over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 14 Aug 2008 21:19:45 +0300 From: Uladzislau Rezki Organization: SS To: freebsd-hackers@freebsd.org Date: Thu, 14 Aug 2008 21:20:12 +0300 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808142120.13609.v.rezkii@sam-solutions.net> X-OriginalArrivalTime: 14 Aug 2008 18:19:45.0778 (UTC) FILETIME=[5468ED20:01C8FE3A] Subject: textvp_fullpath X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 18:31:55 -0000 Hello folks, I'm using "textvp_fullpath" function to get full path from vnode up to root dir. The problem is that, sometimes it works, sometimes no. I know that "textvp_fullpath" goes through the cache of the vnode and try to build full path. Are there any other ways to get full path? I haven't had any ideas yet, that is why I am asking you. Thanks. -- Uladzislau Rezki From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 14 19:00:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F6801065670 for ; Thu, 14 Aug 2008 19:00:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id 336F08FC1D for ; Thu, 14 Aug 2008 19:00:02 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 4E98D68BC1C; Thu, 14 Aug 2008 20:43:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id mJabmAcoMIT0; Thu, 14 Aug 2008 20:43:30 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 3DDF868BC1B; Thu, 14 Aug 2008 20:43:30 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m7EIhT37060627; Thu, 14 Aug 2008 20:43:29 +0200 (CEST) (envelope-from rdivacky) Date: Thu, 14 Aug 2008 20:43:29 +0200 From: Roman Divacky To: Uladzislau Rezki Message-ID: <20080814184329.GA60497@freebsd.org> References: <200808142120.13609.v.rezkii@sam-solutions.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808142120.13609.v.rezkii@sam-solutions.net> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: textvp_fullpath X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Aug 2008 19:00:02 -0000 On Thu, Aug 14, 2008 at 09:20:12PM +0300, Uladzislau Rezki wrote: > Hello folks, > > I'm using "textvp_fullpath" function to get full path from vnode up to root dir. > The problem is that, sometimes it works, sometimes no. > > I know that "textvp_fullpath" goes through the cache of the vnode and > try to build full path. > > Are there any other ways to get full path? > I haven't had any ideas yet, that is why I am asking you. no... the vnode->full_path lookup is unreliable by definition in FreeBSD... what exactly are you trying to acomplish? I believe there might be other way to do whatever you want to do.. roman From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 15 09:17:01 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EB73B106566B for ; Fri, 15 Aug 2008 09:17:01 +0000 (UTC) (envelope-from V.Rezkii@sam-solutions.net) Received: from c71.sam-solutions.net (c71.sam-solutions.net [217.21.35.67]) by mx1.freebsd.org (Postfix) with ESMTP id 6AC048FC1D for ; Fri, 15 Aug 2008 09:17:00 +0000 (UTC) (envelope-from V.Rezkii@sam-solutions.net) Received: from pc636.sam-solutions.net ([192.168.117.46]) by c71.sam-solutions.net over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 15 Aug 2008 12:16:36 +0300 From: Uladzislau Rezki Organization: SS To: Roman Divacky Date: Fri, 15 Aug 2008 12:17:03 +0300 User-Agent: KMail/1.9.9 References: <200808142120.13609.v.rezkii@sam-solutions.net> <20080814184329.GA60497@freebsd.org> In-Reply-To: <20080814184329.GA60497@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808151217.04626.v.rezkii@sam-solutions.net> X-OriginalArrivalTime: 15 Aug 2008 09:16:36.0736 (UTC) FILETIME=[9E3D8000:01C8FEB7] Cc: freebsd-hackers@freebsd.org Subject: Re: textvp_fullpath X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 09:17:02 -0000 On 14 August 2008 21:43:29 Roman Divacky wrote: > On Thu, Aug 14, 2008 at 09:20:12PM +0300, Uladzislau Rezki wrote: > > Hello folks, > > > > I'm using "textvp_fullpath" function to get full path from vnode up to > > root dir. The problem is that, sometimes it works, sometimes no. > > > > I know that "textvp_fullpath" goes through the cache of the vnode and > > try to build full path. > > > > Are there any other ways to get full path? > > I haven't had any ideas yet, that is why I am asking you. > > no... the vnode->full_path lookup is unreliable by definition Yes , I've already got it. > in FreeBSD... what exactly are you trying to acomplish? I believe > there might be other way to do whatever you want to do.. > Well, I will try to describe it in more detail what i want to do, see below: The main task is, to pass information from the kernel space to user land about modification of file system via character device. For instance, we do something like that: echo 123 >> /etc/passwd we intercept the "write" system call and from this point we are within our own call: static int our_own_write_syscall (struct proc *p, struct write_args *uap) { struct vnode *vn = NULL; struct file *file; int sys_error; /* do system call */ sys_error = write(p, uap); if (sys_error != 0) goto leave_call; /* get the file */ file = p->p_fd->fd_ofiles[uap->fd]; /* get the vnode */ vn = (struct vnode *) file->f_data; ... } We have to to do a few thinks: 1) do original "write" sys call; 2) get full path (/etc/passwd); 3) put all this information to user land through the character device. I get stuck in point 2. I need to get full path, but how ... Thanks in advance. -- Uladzislau Rezki From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 15 12:48:32 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A0BF1065678 for ; Fri, 15 Aug 2008 12:48:32 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from falcon.cybervisiontech.com (falcon.cybervisiontech.com [217.20.163.9]) by mx1.freebsd.org (Postfix) with ESMTP id CADEF8FC1E for ; Fri, 15 Aug 2008 12:48:31 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from localhost (localhost [127.0.0.1]) by falcon.cybervisiontech.com (Postfix) with ESMTP id 3B0A8744248; Fri, 15 Aug 2008 15:48:29 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at falcon.cybervisiontech.com Received: from falcon.cybervisiontech.com ([127.0.0.1]) by localhost (falcon.cybervisiontech.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YM7H0tuh+l1S; Fri, 15 Aug 2008 15:48:29 +0300 (EEST) Received: from [10.2.1.87] (gateway.cybervisiontech.com.ua [91.198.50.114]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by falcon.cybervisiontech.com (Postfix) with ESMTP id 9B4A27441EC; Fri, 15 Aug 2008 15:48:28 +0300 (EEST) Message-ID: <48A57B1B.4000903@icyb.net.ua> Date: Fri, 15 Aug 2008 15:48:27 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.16 (X11/20080805) MIME-Version: 1.0 To: Rui Paulo References: <48A300B9.5090105@icyb.net.ua> <20080813162931.GC718@epsilon.local> In-Reply-To: <20080813162931.GC718@epsilon.local> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.org, freebsd-arch@freebsd.org Subject: Re: tilt/horizontal scroll support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 12:48:32 -0000 on 13/08/2008 19:29 Rui Paulo said the following: > > Well, perhaps the best way is to teach sysmouse about horizontal scrolling > and then add a quirk WRT your mouse ? > > sysmouse(4) really needs to grow horizontal scrolling since nowadays every > mouse has it. Rui, I agree, this would be a perfect solution. What scares me is backward compatibility. I think that I do not understand how to do it right. So that older userland software works with newer kernels and newer userland works with older kernels. As I understand there are interfaces of hardware mouse drivers, then there is moused, then there is sysmouse interface and then there are user applications like X server. Knowledge of horizontal scrolling needs to be added to all components in the chain and it is better be done in backward-compatible fashion. And I really do not know to do this properly. Would it be just adding some new bytes to the protocol or growing a new protocol (level) or something else... P.S. I replaced usb ml with arch@ in cc. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 15 20:49:38 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A20041065672 for ; Fri, 15 Aug 2008 20:49:38 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail3.sea5.speakeasy.net (mail3.sea5.speakeasy.net [69.17.117.5]) by mx1.freebsd.org (Postfix) with ESMTP id 922998FC17 for ; Fri, 15 Aug 2008 20:49:38 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 19203 invoked from network); 15 Aug 2008 20:49:38 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail3.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 15 Aug 2008 20:49:37 -0000 Message-ID: <48A5EBF6.5060908@telenix.org> Date: Fri, 15 Aug 2008 16:49:58 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.6 (X11/20071107) MIME-Version: 1.0 To: FreeBSD-Hackers X-Enigmail-Version: 0.95.5 OpenPGP: id=F3DCA0E9; url=http://pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: startup options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 20:49:38 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I was wondering if it was possible, with a machine that has about 2 year old dual AMD64 processors and an up-to-date AMI BIOS, to get the machine to be able to start up from a power shutdown, after some sort of a network signal? If it might be possible, could you maybe put me onto the path of whatever info there might be on that subject? -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkil6/YACgkQz62J6PPcoOk0wQCfTxUcKLOdhsOUvpwVNYOw74Ly V04AoISC3BGQsnlJeCUsdSc/VxK+K0D6 =FsXX -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 15 21:00:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF01510656C4 for ; Fri, 15 Aug 2008 21:00:27 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 737968FC08 for ; Fri, 15 Aug 2008 21:00:27 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman-macbook.local ([10.0.0.173]) (authenticated bits=0) by unsane.co.uk (8.14.0/8.14.0) with ESMTP id m7FL0OHM049401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Aug 2008 22:00:24 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <48A5EE69.7030504@unsane.co.uk> Date: Fri, 15 Aug 2008 22:00:25 +0100 From: Vincent Hoffman User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Chuck Robey References: <48A5EBF6.5060908@telenix.org> In-Reply-To: <48A5EBF6.5060908@telenix.org> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD-Hackers Subject: Re: startup options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 21:00:28 -0000 Chuck Robey wrote: > I was wondering if it was possible, with a machine that has about 2 > year old > dual AMD64 processors and an up-to-date AMI BIOS, to get the machine > to be able > to start up from a power shutdown, after some sort of a network signal? > > If it might be possible, could you maybe put me onto the path of > whatever info > there might be on that subject? Wake on LAN is I believe a work in progress. http://wiki.freebsd.org/WakeOnLan its not an area I have much knowledge of though so other might be able to help more. Vince _______________________________________________ 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 Fri Aug 15 21:39:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3E30C106566B for ; Fri, 15 Aug 2008 21:39:33 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.freebsd.org (Postfix) with ESMTP id D02418FC1A for ; Fri, 15 Aug 2008 21:39:32 +0000 (UTC) (envelope-from stsp@stsp.name) X-Envelope-From: stsp@stsp.name Received: from stsp.name (ted.stsp.name [217.197.84.186]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id m7FLdTEu003901 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 15 Aug 2008 23:39:30 +0200 Received: from ted.stsp.name (localhost [127.0.0.1]) by stsp.name (8.14.2/8.14.2) with ESMTP id m7FLeN36004700; Fri, 15 Aug 2008 23:40:23 +0200 (CEST) (envelope-from stsp@ted.stsp.name) Received: (from stsp@localhost) by ted.stsp.name (8.14.2/8.14.2/Submit) id m7FLeLGi004699; Fri, 15 Aug 2008 23:40:21 +0200 (CEST) (envelope-from stsp) Date: Fri, 15 Aug 2008 23:40:21 +0200 From: Stefan Sperling To: Vincent Hoffman Message-ID: <20080815214021.GA1620@ted.stsp.name> References: <48A5EBF6.5060908@telenix.org> <48A5EE69.7030504@unsane.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A5EE69.7030504@unsane.co.uk> User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Cc: FreeBSD-Hackers , Chuck Robey Subject: Re: startup options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 21:39:33 -0000 On Fri, Aug 15, 2008 at 10:00:25PM +0100, Vincent Hoffman wrote: > Chuck Robey wrote: > > I was wondering if it was possible, with a machine that has about 2 > > year old > > dual AMD64 processors and an up-to-date AMI BIOS, to get the machine > > to be able > > to start up from a power shutdown, after some sort of a network signal? > > > > If it might be possible, could you maybe put me onto the path of > > whatever info > > there might be on that subject? > Wake on LAN is I believe a work in progress. > http://wiki.freebsd.org/WakeOnLan > its not an area I have much knowledge of though so other might be able > to help more. That page pretty much summarises the state of affairs, yes. Basically, you need a VIA-based ethernet card card (vr driver) and -CURRENT, or a vr card with 7.0 and patches from here: http://www.stsp.name/wol/FreeBSD-8-CURRENT-wol-backported-to-7.0/ All of those. Except the patch for pxe.c, that's there by accident. If you don't have a vr card, you will likely need to do some hacking. Follow the links from the wiki page for more information. Stefan From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 15 21:52:23 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 239F4106567D for ; Fri, 15 Aug 2008 21:52:23 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 07C468FC0A for ; Fri, 15 Aug 2008 21:52:22 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m7FLqLB5039201 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 15 Aug 2008 14:52:22 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48A5FA95.2000902@freebsd.org> Date: Fri, 15 Aug 2008 14:52:21 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Stefan Sperling References: <48A5EBF6.5060908@telenix.org> <48A5EE69.7030504@unsane.co.uk> <20080815214021.GA1620@ted.stsp.name> In-Reply-To: <20080815214021.GA1620@ted.stsp.name> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: FreeBSD-Hackers , Chuck Robey , Vincent Hoffman Subject: Re: startup options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 21:52:23 -0000 Stefan Sperling wrote: > On Fri, Aug 15, 2008 at 10:00:25PM +0100, Vincent Hoffman wrote: > >> Chuck Robey wrote: >> >>> I was wondering if it was possible, with a machine that has about 2 >>> year old >>> dual AMD64 processors and an up-to-date AMI BIOS, to get the machine >>> to be able >>> to start up from a power shutdown, after some sort of a network signal? >>> >>> If it might be possible, could you maybe put me onto the path of >>> whatever info >>> there might be on that subject? >>> >> Wake on LAN is I believe a work in progress. >> http://wiki.freebsd.org/WakeOnLan >> its not an area I have much knowledge of though so other might be able >> to help more. >> > > That page pretty much summarises the state of affairs, yes. > > Basically, you need a VIA-based ethernet card card (vr driver) > and -CURRENT, or a vr card with 7.0 and patches from here: > http://www.stsp.name/wol/FreeBSD-8-CURRENT-wol-backported-to-7.0/ > All of those. Except the patch for pxe.c, that's there by accident. > > If you don't have a vr card, you will likely need to do some > hacking. Follow the links from the wiki page for more information. > > trouble% cd sys/dev/ trouble% grep -l IFCAP_WOL */*.c age/if_age.c jme/if_jme.c re/if_re.c stge/if_stge.c vr/if_vr.c So 5 drivers right now support WOL. Jack said em had support a while back but he seems to have not hooked it up. Sam From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 15 22:09:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C97A4106564A for ; Fri, 15 Aug 2008 22:09:41 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id 639818FC3A for ; Fri, 15 Aug 2008 22:09:41 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id AF7C146BB3; Fri, 15 Aug 2008 18:09:39 -0400 (EDT) Date: Fri, 15 Aug 2008 23:09:39 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Uladzislau Rezki In-Reply-To: <200808151217.04626.v.rezkii@sam-solutions.net> Message-ID: References: <200808142120.13609.v.rezkii@sam-solutions.net> <20080814184329.GA60497@freebsd.org> <200808151217.04626.v.rezkii@sam-solutions.net> User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Roman Divacky Subject: Re: textvp_fullpath X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2008 22:09:41 -0000 On Fri, 15 Aug 2008, Uladzislau Rezki wrote: > We have to to do a few thinks: > > 1) do original "write" sys call; > 2) get full path (/etc/passwd); > 3) put all this information to user land through the character device. > > I get stuck in point 2. I need to get full path, but how ... In FreeBSD 6.2 and higher, the kernel event auditing facility provides exactly this service already. Take a look at the auditpipe(4) facility for details of the run-time monitoring aspect of that. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 09:30:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D51381065679 for ; Sat, 16 Aug 2008 09:30:33 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id AE17D8FC1A for ; Sat, 16 Aug 2008 09:30:33 +0000 (UTC) (envelope-from gballet@gmail.com) Received: by wa-out-1112.google.com with SMTP id j4so755757wah.3 for ; Sat, 16 Aug 2008 02:30:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=c4AaY97wwHAhKclayJIHgU9o0hb6OCEsEsUoUdbzonI=; b=c5kboh3+JjOn/URKBHjz0dWB4SOA0DW5o636VZ8bE0aPS9BICH19T8ut6fHuxv6P6O db8rapSbUe+EH/r6kYsZBS23jE+ZCQKEQNRQCPA3Ia5/5uTv9FvByeVGcFA3O6RQGw4I jRZLchEcAzIgqJeAMO3Cg0lKlfi6kb7GBK04s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=ada+tpKNi7ISN9qd6NXMtsmfwYDWASH2kPeRkHUzw/eHr0opBE/PNzk4ipcdJAmy6E r3sCAPDbvb0fINbHgvplmJi9OzT6IBk5HkNWo7B+rfYWxrKTtW058QYlrngZxPKml6q9 296ZCIZSzj4+a/Ob1PBEdcBtZDFiyjSw874uY= Received: by 10.114.151.13 with SMTP id y13mr3533299wad.145.1218877386982; Sat, 16 Aug 2008 02:03:06 -0700 (PDT) Received: by 10.115.16.9 with HTTP; Sat, 16 Aug 2008 02:03:06 -0700 (PDT) Message-ID: Date: Sat, 16 Aug 2008 09:03:06 +0000 From: "Guillaume Ballet" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Extending the ddb command set X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 09:30:33 -0000 Hello hackers, I am currently working on a small project and would like to add a few commands to the set that is available in ddb. I found that very interesting albeit succinct presentation: http://people.freebsd.org/~jhb/papers/bsdcan/2008/slides.odp where the author hints that I should use DB_COMMAND, which I did. Yet when invoking ddb, the command does not appear in the help list. I have taken a look at the source code and was expecting set_db_cmd_set to appear in my module's section list when calling objdump -h Is DB_COMMAND only working within the kernel itself, and not modules? Guillaume From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 10:29:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7C871065681 for ; Sat, 16 Aug 2008 10:29:56 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from oberon.wxnz.net (oberon.wxnz.net [58.28.6.13]) by mx1.freebsd.org (Postfix) with ESMTP id 7AAAE8FC1B for ; Sat, 16 Aug 2008 10:29:56 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from mini-tank.local (ip-58-28-152-154.static-xdsl.xnet.co.nz [58.28.152.154]) by oberon.wxnz.net (Postfix) with ESMTP id E70A9464169 for ; Sat, 16 Aug 2008 22:13:17 +1200 (NZST) From: Ryan French To: freebsd-hackers@freebsd.org Date: Sat, 16 Aug 2008 22:10:02 +1200 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808162210.02467.rfrench@freebsd.org> Subject: Building custom kernel with new files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 10:29:56 -0000 Hi All, I am currently trying to build a custom kernel for my Google Summer of Code, and am running into a bit of a problem. I have all of my code compiling, but when I get to the linking stage as soon as it comes to the new files I have installed it says the *.o does not exist. I have added the files to /conf/files, and well as added the files to /conf/options and /conf/NOTES, and the option is set in my Makefile for the kernel. Is there another step I need to do before I can build the kernel? Thanks for any help. Ryan French. From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 10:34:48 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21E871065675 for ; Sat, 16 Aug 2008 10:34:48 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from vlakno.cz (vlk.vlakno.cz [62.168.28.247]) by mx1.freebsd.org (Postfix) with ESMTP id BF9B18FC1B for ; Sat, 16 Aug 2008 10:34:47 +0000 (UTC) (envelope-from rdivacky@vlk.vlakno.cz) Received: from localhost (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 5385F68BCF4; Sat, 16 Aug 2008 12:33:21 +0200 (CEST) X-Virus-Scanned: amavisd-new at vlakno.cz Received: from vlakno.cz ([127.0.0.1]) by localhost (vlk.vlakno.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wNDhCiR8pWGA; Sat, 16 Aug 2008 12:33:10 +0200 (CEST) Received: from vlk.vlakno.cz (localhost [127.0.0.1]) by vlakno.cz (Postfix) with ESMTP id 55E0568BCAB; Sat, 16 Aug 2008 12:33:10 +0200 (CEST) Received: (from rdivacky@localhost) by vlk.vlakno.cz (8.14.2/8.14.2/Submit) id m7GAXA47022455; Sat, 16 Aug 2008 12:33:10 +0200 (CEST) (envelope-from rdivacky) Date: Sat, 16 Aug 2008 12:33:09 +0200 From: Roman Divacky To: Ryan French Message-ID: <20080816103309.GA22394@freebsd.org> References: <200808162210.02467.rfrench@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808162210.02467.rfrench@freebsd.org> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: Building custom kernel with new files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 10:34:48 -0000 On Sat, Aug 16, 2008 at 10:10:02PM +1200, Ryan French wrote: > Hi All, > > I am currently trying to build a custom kernel for my Google Summer of Code, > and am running into a bit of a problem. I have all of my code compiling, but > when I get to the linking stage as soon as it comes to the new files I have > installed it says the *.o does not exist. I have added the files > to /conf/files, and well as added the files to /conf/options and /conf/NOTES, > and the option is set in my Makefile for the kernel. Is there another step I > need to do before I can build the kernel? how do you build the kernel? adding to conf/files and conf/options should be sufficient... From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 11:07:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 42B3A1065679 for ; Sat, 16 Aug 2008 11:07:39 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.152]) by mx1.freebsd.org (Postfix) with ESMTP id C69208FC17 for ; Sat, 16 Aug 2008 11:07:38 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2251031fgb.35 for ; Sat, 16 Aug 2008 04:07:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=T+UFTP1oNTnEvowiFMrC9YwFZ24usyziZ+7X6IdGVFs=; b=DO8fLzI3dlp/KwUgCZAjWBsNxZ1vUY8WO9W6WX7hqYTZ1CfjVLCWzlwQPj38uJTmEj EX2g9Z3Y8G74Zl3+RwLrhNx/5lBzVB8w694r4ppMAiPx04EDyhxrcMyfai53tgJGpfFL gZvG/ZfP9Zv89xWvv88V+9cDWxdfdbdb4AB4A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=NNPsdRkz3IHhuoOWVD6h3VQSfk8H6i8lzYpALwWc7JBOiW1R1fln0E7PCjVyuwxVUY EiVGmdBMKTIMOubHNl+sCA0CKg2cTKjBsvnJMH/Vubs4pwX9CfiWBF9bC+0Pk4RkF5VS y66dS418dvJQlTdJ4Cbmap/Zu+0gR8j3LjdRw= Received: by 10.86.27.19 with SMTP id a19mr2853080fga.56.1218883104285; Sat, 16 Aug 2008 03:38:24 -0700 (PDT) Received: by 10.86.78.14 with HTTP; Sat, 16 Aug 2008 03:38:24 -0700 (PDT) Message-ID: <3bbf2fe10808160338s19d25242id2f008744ab24ede@mail.gmail.com> Date: Sat, 16 Aug 2008 12:38:24 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Ryan French" In-Reply-To: <200808162210.02467.rfrench@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200808162210.02467.rfrench@freebsd.org> X-Google-Sender-Auth: 8a5e6de3104f7f95 Cc: freebsd-hackers@freebsd.org Subject: Re: Building custom kernel with new files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 11:07:39 -0000 2008/8/16, Ryan French : > Hi All, > > I am currently trying to build a custom kernel for my Google Summer of Code, > and am running into a bit of a problem. I have all of my code compiling, but > when I get to the linking stage as soon as it comes to the new files I have > installed it says the *.o does not exist. I have added the files > to /conf/files, and well as added the files to /conf/options and /conf/NOTES, > and the option is set in my Makefile for the kernel. Is there another step I > need to do before I can build the kernel? Ryan, can you please past the error message? More specifically, missing .o are about your newly included files or other? This can happen, for example, if the consumer of a subsystem wants to use it and the subsystem is not compiled (the stack(9) without STACK option, for example). Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 14:34:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 02626106567C for ; Sat, 16 Aug 2008 14:34:13 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) by mx1.freebsd.org (Postfix) with ESMTP id 7ADA98FC1A for ; Sat, 16 Aug 2008 14:34:12 +0000 (UTC) (envelope-from stsp@stsp.name) X-Envelope-From: stsp@stsp.name Received: from stsp.name (ted.stsp.name [217.197.84.186]) (authenticated bits=128) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id m7GEY9nx030737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 16 Aug 2008 16:34:10 +0200 Received: from ted.stsp.name (localhost [127.0.0.1]) by stsp.name (8.14.2/8.14.2) with ESMTP id m7GEZJ7K004252; Sat, 16 Aug 2008 16:35:19 +0200 (CEST) (envelope-from stsp@ted.stsp.name) Received: (from stsp@localhost) by ted.stsp.name (8.14.2/8.14.2/Submit) id m7GEZI2L004251; Sat, 16 Aug 2008 16:35:18 +0200 (CEST) (envelope-from stsp) Date: Sat, 16 Aug 2008 16:35:18 +0200 From: Stefan Sperling To: Sam Leffler Message-ID: <20080816143518.GE3057@ted.stsp.name> References: <48A5EBF6.5060908@telenix.org> <48A5EE69.7030504@unsane.co.uk> <20080815214021.GA1620@ted.stsp.name> <48A5FA95.2000902@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48A5FA95.2000902@freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Cc: FreeBSD-Hackers , Chuck Robey , Vincent Hoffman Subject: Re: startup options X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 14:34:13 -0000 On Fri, Aug 15, 2008 at 02:52:21PM -0700, Sam Leffler wrote: > Stefan Sperling wrote: > > That page pretty much summarises the state of affairs, yes. > > > > Basically, you need a VIA-based ethernet card card (vr driver) > > and -CURRENT, or a vr card with 7.0 and patches from here: > > http://www.stsp.name/wol/FreeBSD-8-CURRENT-wol-backported-to-7.0/ > > All of those. Except the patch for pxe.c, that's there by accident. > > > > If you don't have a vr card, you will likely need to do some > > hacking. Follow the links from the wiki page for more information. > > > > > trouble% cd sys/dev/ > trouble% grep -l IFCAP_WOL */*.c > age/if_age.c > jme/if_jme.c > re/if_re.c > stge/if_stge.c > vr/if_vr.c > > So 5 drivers right now support WOL. Jack said em had support a while > back but he seems to have not hooked it up. Nice! I'll update the wiki page accordingly. What's with if_sis? Isn't it in yet because my patch only supports the NatSemi variant? (I have no idea whether the other variants work alike or not.) Stefan From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 17:15:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C51C106569B for ; Sat, 16 Aug 2008 17:15:36 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id 2D5EA8FC17 for ; Sat, 16 Aug 2008 17:15:36 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id m7GHFZS0044683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Aug 2008 10:15:35 -0700 (PDT) (envelope-from sam@freebsd.org) Message-ID: <48A70B37.60401@freebsd.org> Date: Sat, 16 Aug 2008 10:15:35 -0700 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.9 (X11/20071125) MIME-Version: 1.0 To: Guillaume Ballet References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC--Metrics: ebb.errno.com; whitelist Cc: freebsd-hackers@freebsd.org Subject: Re: Extending the ddb command set X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 17:15:36 -0000 Guillaume Ballet wrote: > Hello hackers, > > I am currently working on a small project and would like to add a few > commands to the set that is available in ddb. > > I found that very interesting albeit succinct presentation: > http://people.freebsd.org/~jhb/papers/bsdcan/2008/slides.odp > > where the author hints that I should use DB_COMMAND, which I did. Yet when > invoking ddb, the command does not appear in the help list. I have taken a > look at the source code and was expecting set_db_cmd_set to appear in my > module's section list when calling objdump -h > > Is DB_COMMAND only working within the kernel itself, and not modules? > > That is correct; you can't add ddb cmds from modules. It should be doable; just hasn't been done yet. Sam From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 19:43:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 989871065675 for ; Sat, 16 Aug 2008 19:43:13 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id E75448FC0A for ; Sat, 16 Aug 2008 19:43:12 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 68007 invoked by uid 2001); 16 Aug 2008 19:43:11 -0000 Date: Sat, 16 Aug 2008 14:43:11 -0500 From: "Rick C. Petty" To: freebsd-hackers@freebsd.org Message-ID: <20080816194311.GA67723@keira.kiwi-computer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: local network throughput issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 19:43:13 -0000 Hello. I've been having some serious network throughput issues recently. Prior to these issues, I was running 7.0-STABLE from a few months back. I recently build a world/kernel from csup(1) on 2008-Jul-25 and started noticing the issues. I'm currently on a RELENG_7 from 2008-Aug-02 and am building another one today. The server is running samba, dnsmasq, an NFS server, and is the gateway for a couple of freebsd machines. I first noticed the issue when I was unable to play mp3s served over samba. I was getting a throughput of about 3 KBytes/sec over my gigabit switched network. After a few weeks of trying different versions of samba and watching tcpdump/trafshow, I decided to try another test: % ssh gateway cat /dev/zero | dd of=/dev/null load: 0.00 cmd: dd 68286 [runnable] 0.00u 0.00s 0% 844k 3680+0 records in 3680+0 records out 1884160 bytes transferred in 512.856684 secs (3674 bytes/sec) ^C3680+0 records in 3680+0 records out 1884160 bytes transferred in 513.392858 secs (3670 bytes/sec) Killed by signal 2. Again, not even 4 KB/s throughput over ssh. What's weird is that not all network traffic is slow. I'm able to download at almost my full DSL speed (7168 Kbps) and here's the strange bit: NFS is fast! From the same machine as above, I have an NFS mountpoint: % dd if=/nfs/some_large_file of=/dev/null 55980+0 records in 55980+0 records out 28661760 bytes transferred in 0.147159 secs (194767476 bytes/sec) Which is what I would expect for a gigabit network. Even if I perform the same test over ssh: % ssh workstation cat /nfs/some_large_file | dd of=/dev/null 55980+0 records in 55980+0 records out 28661760 bytes transferred in 2.791392 secs (10267909 bytes/sec) This is reasonable considering ssh overhead. The kernel config for the server contains: include GENERIC ident DDB options KDB options KDB_TRACE options DDB options DDB_NUMSYM My internal network is on 172.23.20.x and the DSL modem is connected to the same NIC on 192.168.0.1: # ifconfig nfe0 nfe0: flags=8843 metric 0 mtu 1500 options=10b ether 00:15:f2:17:0c:20 inet 172.23.20.1 netmask 0xffffff00 broadcast 172.23.20.255 inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255 media: Ethernet autoselect (1000baseTX ) status: active # ipfw show 00100 62968 8170100 allow ip from any to any via lo0 00110 0 0 deny ip from any to 127.0.0.0/8 00120 0 0 deny ip from 127.0.0.0/8 to any 00130 25444031 23419621364 divert 8668 ip from any to any via 192.168.0.3 00140 0 0 deny ip from not 172.23.20.0/24 to 172.23.20.0/24 dst-port 137-149,445 00150 20639141 15067620538 allow tcp from any to any established 00160 21 10683 allow ip from any to any frag 00170 79791 4696696 allow tcp from any to any setup 65530 5713367 8864760207 allow ip from any to any 65535 0 0 deny ip from any to any Other than that, I'm not doing anything out of the ordinary. Why is NFS behaving correctly and why are ssh/smbd connections so slow? I've pasted my dmesg output below. I've used this configuration for years and it wasn't until a recent RELENG_7 upgrade that I've had any problems. The box was 99-100% idle during those tests and I don't see an interrupt storm or anything funny like that. Any ideas? -- Rick C. Petty >From /var/run/dmesg.boot: Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-STABLE #5: Sat Aug 2 19:43:25 CDT 2008 rick@gateway:/usr/obj/usr/src/sys/DDB module_register: module sk/miibus already exists! Module sk/miibus failed to register: 17 module_register: module skc/sk already exists! Module skc/sk failed to register: 17 module_register: module pci/skc already exists! Module pci/skc failed to register: 17 module_register: module rl/miibus already exists! Module rl/miibus failed to register: 17 module_register: module cardbus/rl already exists! Module cardbus/rl failed to register: 17 module_register: module pci/rl already exists! Module pci/rl failed to register: 17 Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (2211.34-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20f32 Stepping = 2 Features=0x178bfbff Features2=0x1 AMD Features=0xe2500800 AMD Features2=0x3 Cores per package: 2 real memory = 1073676288 (1023 MB) avail memory = 1037037568 (988 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 3fef0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem 0xd0002000-0xd0002fff irq 20 at device 7.0 on pci0 atapci1: [ITHREAD] ata2: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem 0xd0001000-0xd0001fff irq 21 at device 8.0 on pci0 atapci2: [ITHREAD] ata4: on atapci2 ata4: [ITHREAD] ata5: on atapci2 ata5: [ITHREAD] pcib1: at device 9.0 on pci0 pci5: on pcib1 vgapci0: mem 0xc0000000-0xc7ffffff irq 16 at device 6.0 on pci5 atapci3: port 0xa000-0xa07f,0xa400-0xa4ff mem 0xc9041000-0xc9041fff,0xc9000000-0xc901ffff irq 17 at device 7.0 on pci5 atapci3: [ITHREAD] atapci3: [ITHREAD] ata6: on atapci3 ata6: [ITHREAD] ata7: on atapci3 ata7: [ITHREAD] ata8: on atapci3 ata8: [ITHREAD] ata9: on atapci3 ata9: [ITHREAD] atapci4: port 0xa800-0xa87f,0xac00-0xacff mem 0xc9040000-0xc9040fff,0xc9020000-0xc903ffff irq 18 at device 8.0 on pci5 atapci4: [ITHREAD] atapci4: [ITHREAD] ata10: on atapci4 ata10: [ITHREAD] ata11: on atapci4 ata11: [ITHREAD] ata12: on atapci4 ata12: [ITHREAD] ata13: on atapci4 ata13: [ITHREAD] nfe0: port 0xb000-0xb007 mem 0xd0000000-0xd0000fff irq 22 at device 10.0 on pci0 miibus0: on nfe0 e1000phy0: PHY 9 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto nfe0: Ethernet address: 00:15:f2:17:0c:20 nfe0: [FILTER] pcib2: at device 11.0 on pci0 pci4: on pcib2 pcib3: at device 12.0 on pci0 pci3: on pcib3 pcib4: at device 13.0 on pci0 pci2: on pcib4 pcib5: at device 14.0 on pci0 pci1: on pcib5 cpu0: on acpi0 powernow0: on cpu0 device_attach: powernow0 attach returned 6 cpu1: on acpi0 powernow1: on cpu1 device_attach: powernow1 attach returned 6 acpi_button0: on acpi0 acpi_tz0: on acpi0 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xccfff pnpid ORM0000 on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 8250 or not responding sio0: [FILTER] sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled ad0: 157066MB at ata0-master UDMA100 ad12: 715404MB at ata6-master SATA150 ad14: 715404MB at ata7-master SATA150 ad16: 715404MB at ata8-master SATA150 ad18: 715404MB at ata9-master SATA150 ad20: 476940MB at ata10-master SATA300 ad22: 476940MB at ata11-master SATA300 ad24: 476940MB at ata12-master SATA300 ad26: 476940MB at ata13-master SATA300 SMP: AP CPU #1 Launched! GEOM_LABEL: Label for provider ad0s1g is ufs/cache. Trying to mount root from ufs:/dev/ad0s1a GEOM_LABEL: Label ufs/cache removed. GEOM_LABEL: Label for provider ad0s1g is ufs/cache. GEOM_LABEL: Label ufs/cache removed. nfe0: link state changed to UP Additional messages from dmesg -a: Aug 16 14:02:20 gateway login: ROOT LOGIN (root) ON ttyv3 nfe0: promiscuous mode enabled nfe0: promiscuous mode disabled From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 20:42:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B1101065674 for ; Sat, 16 Aug 2008 20:42:21 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id A102D8FC0C for ; Sat, 16 Aug 2008 20:42:20 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 68486 invoked by uid 2001); 16 Aug 2008 20:42:19 -0000 Date: Sat, 16 Aug 2008 15:42:19 -0500 From: "Rick C. Petty" To: usleepless@gmail.com Message-ID: <20080816204219.GB67723@keira.kiwi-computer.com> References: <20080816194311.GA67723@keira.kiwi-computer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: local network throughput issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 20:42:21 -0000 On Sat, Aug 16, 2008 at 10:31:31PM +0200, usleepless@gmail.com wrote: > > i immediatly think dns issues if samba and ssh are slow. are your > hosts reverse lookup-able? Yes. DNS problems usually affect the time to connect, and those are fast. It's just the throughput I'm seeing a problem with. In fact in each sshd_config, I have: UseDNS no In dnsmasq, I have each host listed in /etc/hosts which is used by dnsmasq for forward and reverse DNS. No this problem started when I updated the OS on my gateway. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 20:46:04 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 387491065674 for ; Sat, 16 Aug 2008 20:46:04 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from oberon.wxnz.net (oberon.wxnz.net [58.28.6.13]) by mx1.freebsd.org (Postfix) with ESMTP id E7FDA8FC13 for ; Sat, 16 Aug 2008 20:46:03 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from mini-tank.local (ip-58-28-152-154.static-xdsl.xnet.co.nz [58.28.152.154]) by oberon.wxnz.net (Postfix) with ESMTP id C7E512BBF64; Sun, 17 Aug 2008 08:49:19 +1200 (NZST) From: Ryan French To: Roman Divacky Date: Sun, 17 Aug 2008 08:46:01 +1200 User-Agent: KMail/1.9.9 References: <200808162210.02467.rfrench@freebsd.org> <20080816103309.GA22394@freebsd.org> In-Reply-To: <20080816103309.GA22394@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808170846.01379.rfrench@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Building custom kernel with new files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 20:46:04 -0000 On Sat, 16 Aug 2008 10:33:09 pm you wrote: > On Sat, Aug 16, 2008 at 10:10:02PM +1200, Ryan French wrote: > > Hi All, > > > > I am currently trying to build a custom kernel for my Google Summer of > > Code, and am running into a bit of a problem. I have all of my code > > compiling, but when I get to the linking stage as soon as it comes to the > > new files I have installed it says the *.o does not exist. I have added > > the files to /conf/files, and well as added the files to /conf/options > > and /conf/NOTES, and the option is set in my Makefile for the kernel. Is > > there another step I need to do before I can build the kernel? > > how do you build the kernel? adding to conf/files and conf/options should > be sufficient... I build the file using make buildkernel KERNCONF=MPLSKERNEL while in the /usr/src/ directory. From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 20:57:14 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 282811065673 for ; Sat, 16 Aug 2008 20:57:14 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id EC4688FC0A for ; Sat, 16 Aug 2008 20:57:13 +0000 (UTC) (envelope-from usleepless@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1386817wfg.7 for ; Sat, 16 Aug 2008 13:57:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=gRd6p3B5gR+nnjScltMMjkzD5/QslClfnw1xz3jcXuY=; b=G8LW0knoTjhc7tUVG5dMz0tWivAse118PnPkp1n7cERheZYEegqfj10WghfcFMI4Y0 3Pw/IiimhnOUX5XLoqchVSPv9H8D5sS5LAeCK+Ht82XIkyYlbxy4uE04sEbYs7ZQY7eJ 9xHRgbTTjOJtn/W84oETyNZQSfVJRh4lMtNr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BtPthlCA+59cQvD9q6ZQAdlknswfsuIFolUtjIV9T2MGN3ZndImDQL1JRq3jXY/hsS xRIWJBUkhWUJubeC7Wb3RNZ6jiRyRgPwHJiCmQetDmndy+Jb45omi5sJoskJWxZP7n5/ VFsTAHjHmxukQsWQ/AbD7fatkyAZtPRoRgdXI= Received: by 10.142.58.5 with SMTP id g5mr1474308wfa.224.1218918691264; Sat, 16 Aug 2008 13:31:31 -0700 (PDT) Received: by 10.142.174.7 with HTTP; Sat, 16 Aug 2008 13:31:31 -0700 (PDT) Message-ID: Date: Sat, 16 Aug 2008 22:31:31 +0200 From: usleepless@gmail.com To: rick-freebsd2008@kiwi-computer.com In-Reply-To: <20080816194311.GA67723@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080816194311.GA67723@keira.kiwi-computer.com> Cc: freebsd-hackers@freebsd.org Subject: Re: local network throughput issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 20:57:14 -0000 On 8/16/08, Rick C. Petty wrote: > Hello. I've been having some serious network throughput issues recently. > Prior to these issues, I was running 7.0-STABLE from a few months back. I > recently build a world/kernel from csup(1) on 2008-Jul-25 and started > noticing the issues. I'm currently on a RELENG_7 from 2008-Aug-02 and am > building another one today. > > The server is running samba, dnsmasq, an NFS server, and is the gateway for > a couple of freebsd machines. I first noticed the issue when I was unable > to play mp3s served over samba. I was getting a throughput of about 3 > KBytes/sec over my gigabit switched network. After a few weeks of trying > different versions of samba and watching tcpdump/trafshow, I decided to try > another test: > > % ssh gateway cat /dev/zero | dd of=/dev/null > load: 0.00 cmd: dd 68286 [runnable] 0.00u 0.00s 0% 844k > 3680+0 records in > 3680+0 records out > 1884160 bytes transferred in 512.856684 secs (3674 bytes/sec) > ^C3680+0 records in > 3680+0 records out > 1884160 bytes transferred in 513.392858 secs (3670 bytes/sec) > Killed by signal 2. > > Again, not even 4 KB/s throughput over ssh. What's weird is that not all > network traffic is slow. I'm able to download at almost my full DSL speed > (7168 Kbps) and here's the strange bit: NFS is fast! From the same > machine as above, I have an NFS mountpoint: > > % dd if=/nfs/some_large_file of=/dev/null > 55980+0 records in > 55980+0 records out > 28661760 bytes transferred in 0.147159 secs (194767476 bytes/sec) > > Which is what I would expect for a gigabit network. Even if I perform the > same test over ssh: > > % ssh workstation cat /nfs/some_large_file | dd of=/dev/null > 55980+0 records in > 55980+0 records out > 28661760 bytes transferred in 2.791392 secs (10267909 bytes/sec) > > This is reasonable considering ssh overhead. The kernel config for the > server contains: > > include GENERIC > ident DDB > options KDB > options KDB_TRACE > options DDB > options DDB_NUMSYM > > My internal network is on 172.23.20.x and the DSL modem is connected to the > same NIC on 192.168.0.1: > > # ifconfig nfe0 > nfe0: flags=8843 metric 0 mtu 1500 > options=10b > ether 00:15:f2:17:0c:20 > inet 172.23.20.1 netmask 0xffffff00 broadcast 172.23.20.255 > inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255 > media: Ethernet autoselect (1000baseTX ) > status: active > > # ipfw show > 00100 62968 8170100 allow ip from any to any via lo0 > 00110 0 0 deny ip from any to 127.0.0.0/8 > 00120 0 0 deny ip from 127.0.0.0/8 to any > 00130 25444031 23419621364 divert 8668 ip from any to any via 192.168.0.3 > 00140 0 0 deny ip from not 172.23.20.0/24 to 172.23.20.0/24 dst-port 137-149,445 > 00150 20639141 15067620538 allow tcp from any to any established > 00160 21 10683 allow ip from any to any frag > 00170 79791 4696696 allow tcp from any to any setup > 65530 5713367 8864760207 allow ip from any to any > 65535 0 0 deny ip from any to any > > Other than that, I'm not doing anything out of the ordinary. Why is NFS > behaving correctly and why are ssh/smbd connections so slow? I've pasted > my dmesg output below. I've used this configuration for years and it > wasn't until a recent RELENG_7 upgrade that I've had any problems. The box > was 99-100% idle during those tests and I don't see an interrupt storm or > anything funny like that. Any ideas? > > -- Rick C. Petty > > > >From /var/run/dmesg.boot: > > > Copyright (c) 1992-2008 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 7.0-STABLE #5: Sat Aug 2 19:43:25 CDT 2008 > rick@gateway:/usr/obj/usr/src/sys/DDB > module_register: module sk/miibus already exists! > Module sk/miibus failed to register: 17 > module_register: module skc/sk already exists! > Module skc/sk failed to register: 17 > module_register: module pci/skc already exists! > Module pci/skc failed to register: 17 > module_register: module rl/miibus already exists! > Module rl/miibus failed to register: 17 > module_register: module cardbus/rl already exists! > Module cardbus/rl failed to register: 17 > module_register: module pci/rl already exists! > Module pci/rl failed to register: 17 > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (2211.34-MHz 686-class CPU) > Origin = "AuthenticAMD" Id = 0x20f32 Stepping = 2 > Features=0x178bfbff > Features2=0x1 > AMD Features=0xe2500800 > AMD Features2=0x3 > Cores per package: 2 > real memory = 1073676288 (1023 MB) > avail memory = 1037037568 (988 MB) > ACPI APIC Table: > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > ioapic0: Changing APIC ID to 2 > ioapic0 irqs 0-23 on motherboard > kbd1 at kbdmux0 > ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) > acpi0: on motherboard > acpi0: [ITHREAD] > acpi0: Power Button (fixed) > acpi0: reservation of 0, a0000 (3) failed > acpi0: reservation of 100000, 3fef0000 (3) failed > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > pci0: at device 0.0 (no driver attached) > isab0: at device 1.0 on pci0 > isa0: on isab0 > pci0: at device 1.1 (no driver attached) > atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 6.0 on pci0 > ata0: on atapci0 > ata0: [ITHREAD] > ata1: on atapci0 > ata1: [ITHREAD] > atapci1: port 0x9f0-0x9f7,0xbf0-0xbf3,0x970-0x977,0xb70-0xb73,0xd800-0xd80f mem 0xd0002000-0xd0002fff irq 20 at device 7.0 on pci0 > atapci1: [ITHREAD] > ata2: on atapci1 > ata2: [ITHREAD] > ata3: on atapci1 > ata3: [ITHREAD] > atapci2: port 0x9e0-0x9e7,0xbe0-0xbe3,0x960-0x967,0xb60-0xb63,0xc400-0xc40f mem 0xd0001000-0xd0001fff irq 21 at device 8.0 on pci0 > atapci2: [ITHREAD] > ata4: on atapci2 > ata4: [ITHREAD] > ata5: on atapci2 > ata5: [ITHREAD] > pcib1: at device 9.0 on pci0 > pci5: on pcib1 > vgapci0: mem 0xc0000000-0xc7ffffff irq 16 at device 6.0 on pci5 > atapci3: port 0xa000-0xa07f,0xa400-0xa4ff mem 0xc9041000-0xc9041fff,0xc9000000-0xc901ffff irq 17 at device 7.0 on pci5 > atapci3: [ITHREAD] > atapci3: [ITHREAD] > ata6: on atapci3 > ata6: [ITHREAD] > ata7: on atapci3 > ata7: [ITHREAD] > ata8: on atapci3 > ata8: [ITHREAD] > ata9: on atapci3 > ata9: [ITHREAD] > atapci4: port 0xa800-0xa87f,0xac00-0xacff mem 0xc9040000-0xc9040fff,0xc9020000-0xc903ffff irq 18 at device 8.0 on pci5 > atapci4: [ITHREAD] > atapci4: [ITHREAD] > ata10: on atapci4 > ata10: [ITHREAD] > ata11: on atapci4 > ata11: [ITHREAD] > ata12: on atapci4 > ata12: [ITHREAD] > ata13: on atapci4 > ata13: [ITHREAD] > nfe0: port 0xb000-0xb007 mem 0xd0000000-0xd0000fff irq 22 at device 10.0 on pci0 > miibus0: on nfe0 > e1000phy0: PHY 9 on miibus0 > e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto > nfe0: Ethernet address: 00:15:f2:17:0c:20 > nfe0: [FILTER] > pcib2: at device 11.0 on pci0 > pci4: on pcib2 > pcib3: at device 12.0 on pci0 > pci3: on pcib3 > pcib4: at device 13.0 on pci0 > pci2: on pcib4 > pcib5: at device 14.0 on pci0 > pci1: on pcib5 > cpu0: on acpi0 > powernow0: on cpu0 > device_attach: powernow0 attach returned 6 > cpu1: on acpi0 > powernow1: on cpu1 > device_attach: powernow1 attach returned 6 > acpi_button0: on acpi0 > acpi_tz0: on acpi0 > pmtimer0 on isa0 > orm0: at iomem 0xc0000-0xccfff pnpid ORM0000 on isa0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbd0: [ITHREAD] > ppc0: parallel port not found. > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0: configured irq 4 not in bitmap of probed irqs 0 > sio0: port may not be enabled > sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 > sio0: type 8250 or not responding > sio0: [FILTER] > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > Timecounters tick every 1.000 msec > ipfw2 (+ipv6) initialized, divert loadable, nat loadable, rule-based forwarding disabled, default to deny, logging disabled > ad0: 157066MB at ata0-master UDMA100 > ad12: 715404MB at ata6-master SATA150 > ad14: 715404MB at ata7-master SATA150 > ad16: 715404MB at ata8-master SATA150 > ad18: 715404MB at ata9-master SATA150 > ad20: 476940MB at ata10-master SATA300 > ad22: 476940MB at ata11-master SATA300 > ad24: 476940MB at ata12-master SATA300 > ad26: 476940MB at ata13-master SATA300 > SMP: AP CPU #1 Launched! > GEOM_LABEL: Label for provider ad0s1g is ufs/cache. > Trying to mount root from ufs:/dev/ad0s1a > GEOM_LABEL: Label ufs/cache removed. > GEOM_LABEL: Label for provider ad0s1g is ufs/cache. > GEOM_LABEL: Label ufs/cache removed. > nfe0: link state changed to UP > > Additional messages from dmesg -a: > > Aug 16 14:02:20 gateway login: ROOT LOGIN (root) ON ttyv3 > nfe0: promiscuous mode enabled > nfe0: promiscuous mode disabled i immediatly think dns issues if samba and ssh are slow. are your hosts reverse lookup-able? regards, usleep From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 21:05:24 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58D1B106567B for ; Sat, 16 Aug 2008 21:05:24 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from titania.wxnz.net (titania.wxnz.net [58.28.4.13]) by mx1.freebsd.org (Postfix) with ESMTP id 113DC8FC15 for ; Sat, 16 Aug 2008 21:05:24 +0000 (UTC) (envelope-from rfrench@freebsd.org) Received: from mini-tank.local (ip-58-28-152-154.static-xdsl.xnet.co.nz [58.28.152.154]) by titania.wxnz.net (Postfix) with ESMTP id B01B51DB806B; Sun, 17 Aug 2008 08:56:04 +1200 (NZST) From: Ryan French To: "Attilio Rao" Date: Sun, 17 Aug 2008 09:05:22 +1200 User-Agent: KMail/1.9.9 References: <200808162210.02467.rfrench@freebsd.org> <3bbf2fe10808160338s19d25242id2f008744ab24ede@mail.gmail.com> In-Reply-To: <3bbf2fe10808160338s19d25242id2f008744ab24ede@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808170905.22691.rfrench@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: Building custom kernel with new files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 21:05:24 -0000 On Sat, 16 Aug 2008 10:38:24 pm you wrote: > 2008/8/16, Ryan French : > > Hi All, > > > > I am currently trying to build a custom kernel for my Google Summer of > > Code, and am running into a bit of a problem. I have all of my code > > compiling, but when I get to the linking stage as soon as it comes to the > > new files I have installed it says the *.o does not exist. I have added > > the files to /conf/files, and well as added the files to /conf/options > > and /conf/NOTES, and the option is set in my Makefile for the kernel. Is > > there another step I need to do before I can build the kernel? > > Ryan, > can you please past the error message? > More specifically, missing .o are about your newly included files or other? > This can happen, for example, if the consumer of a subsystem wants to > use it and the subsystem is not compiled (the stack(9) without STACK > option, for example). > > Thanks, > Attilio The missing .o is about my own files that I have included in the kernel. More specifically I have a file 'mpls.h' and as it is the first one in the directory as soon as it gets to linking the file I get the error ld: mpls.o: No such file: No such file or directory *** Error code 1 This occurs right after the command MAKE=make sh /usr/src/sys/conf/newvers.sh MPLSKERNEL Sorry I cant copy the whole error but I am running the development in a VM and I cant copy and paste between the VM and my host machine. From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 21:08:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1FA5B1065671 for ; Sat, 16 Aug 2008 21:08:50 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 976908FC19 for ; Sat, 16 Aug 2008 21:08:49 +0000 (UTC) (envelope-from asmrookie@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2514841fgb.35 for ; Sat, 16 Aug 2008 14:08:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=u4GgZ1gZzdROwf2bPqwAkmgz2hFpkxyKQ+0XPsLihEA=; b=V2MZ+4NTfPZyOYG1gjSsQmQUuLJqeX05gITm4Y5qB6K7IhOVFyuRhjuOToZM1TTp81 +RWDrtXdNw2F6a09zU7CZMHa5BIeGBD189XwQOUMPgWwJvncez37h5rHtQgwWNCC7xlJ 5AlY24+jb3tlC20f0Q7zBZfItjZKRqP5jw0+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=verof9DwGFgqBtx60ibbb9Ve7r9V6qMzQJNJFh2iMC/D8rgwsyKdwygrPGMUIldDcZ 2NX/EScB0WONTFYKF6gP6Mmcxt3CNm4e3ftJdRO0XNQARK6m8ufuOXQF3/OjvauV/hC9 QVe31Bp4eaH+CmvUd9dw9TrXSL+dMNcr88QBI= Received: by 10.86.80.17 with SMTP id d17mr3230659fgb.47.1218920928258; Sat, 16 Aug 2008 14:08:48 -0700 (PDT) Received: by 10.86.78.14 with HTTP; Sat, 16 Aug 2008 14:08:48 -0700 (PDT) Message-ID: <3bbf2fe10808161408y337a94d0pef6e63c5901969e5@mail.gmail.com> Date: Sat, 16 Aug 2008 23:08:48 +0200 From: "Attilio Rao" Sender: asmrookie@gmail.com To: "Ryan French" In-Reply-To: <200808170905.22691.rfrench@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200808162210.02467.rfrench@freebsd.org> <3bbf2fe10808160338s19d25242id2f008744ab24ede@mail.gmail.com> <200808170905.22691.rfrench@freebsd.org> X-Google-Sender-Auth: 6d03625863b68808 Cc: freebsd-hackers@freebsd.org Subject: Re: Building custom kernel with new files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 21:08:50 -0000 2008/8/16, Ryan French : > On Sat, 16 Aug 2008 10:38:24 pm you wrote: > > 2008/8/16, Ryan French : > > > Hi All, > > > > > > I am currently trying to build a custom kernel for my Google Summer of > > > Code, and am running into a bit of a problem. I have all of my code > > > compiling, but when I get to the linking stage as soon as it comes to the > > > new files I have installed it says the *.o does not exist. I have added > > > the files to /conf/files, and well as added the files to /conf/options > > > and /conf/NOTES, and the option is set in my Makefile for the kernel. Is > > > there another step I need to do before I can build the kernel? > > > > Ryan, > > can you please past the error message? > > More specifically, missing .o are about your newly included files or other? > > This can happen, for example, if the consumer of a subsystem wants to > > use it and the subsystem is not compiled (the stack(9) without STACK > > option, for example). > > > > Thanks, > > Attilio > > The missing .o is about my own files that I have included in the kernel. More > specifically I have a file 'mpls.h' and as it is the first one in the > directory as soon as it gets to linking the file I get the error > > ld: mpls.o: No such file: No such file or directory > *** Error code 1 > > This occurs right after the command > > MAKE=make sh /usr/src/sys/conf/newvers.sh MPLSKERNEL > > Sorry I cant copy the whole error but I am running the development in a VM and > I cant copy and paste between the VM and my host machine. Can you please paste your diff against src/sys/conf/files* ? Thanks, Attilio -- Peace can only be achieved by understanding - A. Einstein From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 22:15:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A302106567B for ; Sat, 16 Aug 2008 22:15:36 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id DDC998FC08 for ; Sat, 16 Aug 2008 22:15:35 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id A391A1CC0BC; Sat, 16 Aug 2008 15:15:35 -0700 (PDT) Date: Sat, 16 Aug 2008 15:15:35 -0700 From: Jeremy Chadwick To: "Rick C. Petty" Message-ID: <20080816221535.GA82290@eos.sc1.parodius.com> References: <20080816194311.GA67723@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080816194311.GA67723@keira.kiwi-computer.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: local network throughput issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 22:15:36 -0000 On Sat, Aug 16, 2008 at 02:43:11PM -0500, Rick C. Petty wrote: > Hello. I've been having some serious network throughput issues recently. > Prior to these issues, I was running 7.0-STABLE from a few months back. I > recently build a world/kernel from csup(1) on 2008-Jul-25 and started > noticing the issues. I'm currently on a RELENG_7 from 2008-Aug-02 and am > building another one today. > > The server is running samba, dnsmasq, an NFS server, and is the gateway for > a couple of freebsd machines. I first noticed the issue when I was unable > to play mp3s served over samba. I was getting a throughput of about 3 > KBytes/sec over my gigabit switched network. After a few weeks of trying > different versions of samba and watching tcpdump/trafshow, I decided to try > another test: > > % ssh gateway cat /dev/zero | dd of=/dev/null > load: 0.00 cmd: dd 68286 [runnable] 0.00u 0.00s 0% 844k > 3680+0 records in > 3680+0 records out > 1884160 bytes transferred in 512.856684 secs (3674 bytes/sec) > ^C3680+0 records in > 3680+0 records out > 1884160 bytes transferred in 513.392858 secs (3670 bytes/sec) > Killed by signal 2. > > Again, not even 4 KB/s throughput over ssh. What's weird is that not all > network traffic is slow. I'm able to download at almost my full DSL speed > (7168 Kbps) and here's the strange bit: NFS is fast! From the same > machine as above, I have an NFS mountpoint: > > % dd if=/nfs/some_large_file of=/dev/null > 55980+0 records in > 55980+0 records out > 28661760 bytes transferred in 0.147159 secs (194767476 bytes/sec) > > Which is what I would expect for a gigabit network. Even if I perform the > same test over ssh: > > % ssh workstation cat /nfs/some_large_file | dd of=/dev/null > 55980+0 records in > 55980+0 records out > 28661760 bytes transferred in 2.791392 secs (10267909 bytes/sec) > > This is reasonable considering ssh overhead. The kernel config for the > server contains: > > include GENERIC > ident DDB > options KDB > options KDB_TRACE > options DDB > options DDB_NUMSYM > > My internal network is on 172.23.20.x and the DSL modem is connected to the > same NIC on 192.168.0.1: > > # ifconfig nfe0 > nfe0: flags=8843 metric 0 mtu 1500 > options=10b > ether 00:15:f2:17:0c:20 > inet 172.23.20.1 netmask 0xffffff00 broadcast 172.23.20.255 > inet 192.168.0.3 netmask 0xffffff00 broadcast 192.168.0.255 > media: Ethernet autoselect (1000baseTX ) > status: active > > # ipfw show > 00100 62968 8170100 allow ip from any to any via lo0 > 00110 0 0 deny ip from any to 127.0.0.0/8 > 00120 0 0 deny ip from 127.0.0.0/8 to any > 00130 25444031 23419621364 divert 8668 ip from any to any via 192.168.0.3 > 00140 0 0 deny ip from not 172.23.20.0/24 to 172.23.20.0/24 dst-port 137-149,445 > 00150 20639141 15067620538 allow tcp from any to any established > 00160 21 10683 allow ip from any to any frag > 00170 79791 4696696 allow tcp from any to any setup > 65530 5713367 8864760207 allow ip from any to any > 65535 0 0 deny ip from any to any > > Other than that, I'm not doing anything out of the ordinary. Why is NFS > behaving correctly and why are ssh/smbd connections so slow? I've pasted > my dmesg output below. I've used this configuration for years and it > wasn't until a recent RELENG_7 upgrade that I've had any problems. The box > was 99-100% idle during those tests and I don't see an interrupt storm or > anything funny like that. Any ideas? 1) Please provide netstat -in output. 2) NFS (unless you're explicitly disabling it) is UDP-based, while SSH and Samba are TCP-based. Your nfe0 device has TSO4 enabled on it, so I'm left wondering if the TCP offloading support for your nfe(4) device is broken. Can you try disabling it by adding -tso to your ifconfig_nfe0 line in /etc/rc.conf? If you're using DHCP on that interface, that may pose somewhat of a problem. 3) Can you disable the firewall (disable ipfw entirely) and see if the problem continues? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 22:28:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 35ED81065689 for ; Sat, 16 Aug 2008 22:28:33 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id CC2B38FC2B for ; Sat, 16 Aug 2008 22:28:32 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 69572 invoked by uid 2001); 16 Aug 2008 22:28:31 -0000 Date: Sat, 16 Aug 2008 17:28:31 -0500 From: "Rick C. Petty" To: Jeremy Chadwick Message-ID: <20080816222831.GC67723@keira.kiwi-computer.com> References: <20080816194311.GA67723@keira.kiwi-computer.com> <20080816221535.GA82290@eos.sc1.parodius.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080816221535.GA82290@eos.sc1.parodius.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: local network throughput issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 22:28:33 -0000 On Sat, Aug 16, 2008 at 03:15:35PM -0700, Jeremy Chadwick wrote: > > 1) Please provide netstat -in output. Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll nfe0 1500 00:15:f2:17:0c:20 14714298 0 14821857 0 0 nfe0 1500 172.23.20.0/2 172.23.20.1 2144815 - 12438012 - - nfe0 1500 192.168.0.0/2 192.168.0.3 9502416 - 2357751 - - lo0 16384 31707 0 31707 0 0 lo0 16384 fe80:2::1/64 fe80:2::1 0 - 0 - - lo0 16384 ::1/128 ::1 6 - 6 - - lo0 16384 127.0.0.0/8 127.0.0.1 31588 - 31588 - - tun11 1500 985877 0 890589 0 0 tun11 1500 172.23.23.20/ 172.23.23.20 714240 - 713237 - - tun0 1500 22456 0 21872 0 0 tun0 1500 172.16.1.0/32 172.16.1.0 0 - 0 - - > 2) NFS (unless you're explicitly disabling it) is UDP-based, while SSH > and Samba are TCP-based. Your nfe0 device has TSO4 enabled on it, so > I'm left wondering if the TCP offloading support for your nfe(4) device > is broken. > > Can you try disabling it by adding -tso to your ifconfig_nfe0 line in > /etc/rc.conf? If you're using DHCP on that interface, that may pose > somewhat of a problem. Yes, that seems to have made all the difference in the world: % ssh gateway cat /dev/zero | dd of=/dev/null load: 0.08 cmd: ssh 68698 [runnable] 1.20u 0.25s 11% 3020k 94384+0 records in 94384+0 records out 48324608 bytes transferred in 5.314707 secs (9092619 bytes/sec) load: 0.08 cmd: ssh 68698 [runnable] 1.81u 0.33s 15% 3020k 147664+0 records in 147664+0 records out 75603968 bytes transferred in 7.652768 secs (9879297 bytes/sec) So I'm thinking TSO wasn't an option in the older 7-stable I was running and now it is, but the support for it is broken. Your comment about DHCP, would that affect dhcpd or dhclient? This is my "server" machine so I don't run dhclient on it. I hardcode the IP connecting to the DSL modem. I'm currently hardcoding all the other machines also so I should be okay. > 3) Can you disable the firewall (disable ipfw entirely) and see if the > problem continues? Well the firewall is primarily for NAT and port forwarding. There's nothing special about it. It looks like the TSO disabling fixed my problems. Thank you for the suggestion! -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 16 23:14:30 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 379F11065673 for ; Sat, 16 Aug 2008 23:14:30 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 213ED8FC0A for ; Sat, 16 Aug 2008 23:14:30 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 019241CC0C0; Sat, 16 Aug 2008 16:14:30 -0700 (PDT) Date: Sat, 16 Aug 2008 16:14:29 -0700 From: Jeremy Chadwick To: "Rick C. Petty" Message-ID: <20080816231429.GA86316@eos.sc1.parodius.com> References: <20080816194311.GA67723@keira.kiwi-computer.com> <20080816221535.GA82290@eos.sc1.parodius.com> <20080816222831.GC67723@keira.kiwi-computer.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080816222831.GC67723@keira.kiwi-computer.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Pyun YongHyeon , freebsd-hackers@freebsd.org Subject: Re: local network throughput issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2008 23:14:30 -0000 On Sat, Aug 16, 2008 at 05:28:31PM -0500, Rick C. Petty wrote: > > 2) NFS (unless you're explicitly disabling it) is UDP-based, while SSH > > and Samba are TCP-based. Your nfe0 device has TSO4 enabled on it, so > > I'm left wondering if the TCP offloading support for your nfe(4) device > > is broken. > > > > Can you try disabling it by adding -tso to your ifconfig_nfe0 line in > > /etc/rc.conf? If you're using DHCP on that interface, that may pose > > somewhat of a problem. > > Yes, that seems to have made all the difference in the world: > > % ssh gateway cat /dev/zero | dd of=/dev/null > load: 0.08 cmd: ssh 68698 [runnable] 1.20u 0.25s 11% 3020k > 94384+0 records in > 94384+0 records out > 48324608 bytes transferred in 5.314707 secs (9092619 bytes/sec) > load: 0.08 cmd: ssh 68698 [runnable] 1.81u 0.33s 15% 3020k > 147664+0 records in > 147664+0 records out > 75603968 bytes transferred in 7.652768 secs (9879297 bytes/sec) > > So I'm thinking TSO wasn't an option in the older 7-stable I was running > and now it is, but the support for it is broken. TSO support is something that's implemented in each network driver. TSO in nfe(4) was commited to HEAD (CURRENT) on June 12th 2007. See revision 1.17 below: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/nfe/if_nfe.c That would have been what is now considered RELENG_7 (since FreeBSD 7.0-RELEASE was announced and made available on February 27th, 2008). I'm under the impression that TSO was available/enabled for you before, but I'm not sure because there's not a lot of historic data available here. I don't know why/how it broke, or what has changed. I've CC'd one of the nfe(4) maintainers, PYUN Yong-Hyeon, who should be able to help determine what's going on. Yong-Hyeon, his dmesg output is available here, but you'll probably need more than that: http://lists.freebsd.org/pipermail/freebsd-hackers/2008-August/025706.html > Your comment about DHCP, would that affect dhcpd or dhclient? This is my > "server" machine so I don't run dhclient on it. I hardcode the IP > connecting to the DSL modem. I'm currently hardcoding all the other > machines also so I should be okay. My comment about DHCP is WRT to the FreeBSD box acting as a DHCP client (e.g. fetching an IP from your ISP). I believe dhclient (when getting a new IP) might override any interface options you set in rc.conf; purely speculative on my part, but I wanted to mention it in the case you didn't have a static IP configured in rc.conf. > > 3) Can you disable the firewall (disable ipfw entirely) and see if the > > problem continues? > > Well the firewall is primarily for NAT and port forwarding. There's > nothing special about it. It looks like the TSO disabling fixed my > problems. Thank you for the suggestion! No problem. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |