From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 10:43:54 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BF2F37B404; Sun, 30 Mar 2003 10:43:54 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6862943FB1; Sun, 30 Mar 2003 10:43:53 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (66-91-236-204.san.rr.com [66.91.236.204]) by smtp-relay.omnis.com (Postfix) with ESMTP id 2A2B3434E8; Sun, 30 Mar 2003 10:43:52 -0800 (PST) From: Wes Peters Organization: Softweyr To: kientzle@acm.org, "Bruce A. Mah" Date: Sun, 30 Mar 2003 10:43:51 -0800 User-Agent: KMail/1.5 References: <3E42C148.4050807@acm.org> <20030329012828.GA32891@intruder.bmah.org> <3E85418F.8010201@acm.org> In-Reply-To: <3E85418F.8010201@acm.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303301043.51087.wes@softweyr.com> cc: freebsd-hackers@FreeBSD.ORG Subject: BSD tar (was Re: Making pkg_XXX tools smarter about file types...) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 18:43:56 -0000 On Friday 28 March 2003 22:47, Tim Kientzle wrote: > > P.S. It's galled me for a while that pkg_add has > to fork 'tar' to extract the archive. Me too, me too. > I've started > piecing together a library that reads/writes tarfiles. Excellent. A general design goal in userland should be to implement functionality in libraries and then wrap small driver programs around them to export the basic functionality to userland. I guess this partly violates the original UNIX tools philosophy, but all it really does is move it from the original pipes interfaces into the dynamic linker. > With this, it should be possible to make pkg_add > considerably more efficient. In particular, rather > than extracting to a temp directory, then parsing important > information, then moving the files, it should be > possible using this library to read the initial > entries ("+CONTENTS", in particular) directly into > memory, process the information there, then extract the > remainder of the package files directly into their > final locations. I'd much rather see the metadata moved outside the file archives, but that's a separate argument and in now way detracts from your proposed work. ;^) > So far, I have a library API > outlined, and functional read support implemented. > Next step is to hack up a minimal tar implementation > that uses it to make sure everything's working > correctly. > > So far, the library automatically detects compression > formats (using techniques like those in my > pkg_install patch) and has some rough support > for detecting the archive format as well. > (One goal of mine: support for 'pax extended > archives', which I understand can handle ACLs.) I have wondered outloud before if pax might be a suitable starting place for such a hacking expedition. Others who've worked on pax assure me it is not. ;^( Sigh. So much code, so few programmers. > Of course, such a library could also form the > basis for a BSD-licensed tar to replace GNU tar. > I understand a few people have wanted such a thing. Why yes, yes they have. -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 11:45:13 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FB2A37B401 for ; Sun, 30 Mar 2003 11:45:13 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 097A043FA3 for ; Sun, 30 Mar 2003 11:45:13 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (66-91-236-204.san.rr.com [66.91.236.204]) by smtp-relay.omnis.com (Postfix) with ESMTP id C6B1442E36; Sun, 30 Mar 2003 11:45:12 -0800 (PST) From: Wes Peters Organization: Softweyr To: David Gilbert , Kirill Ponomarew Date: Sun, 30 Mar 2003 11:45:12 -0800 User-Agent: KMail/1.5 References: <007c01c2e3ef$3483d8a0$0229c80a@abtec412> <20030306145022.GA31433@krion> <16002.16342.476020.510769@canoe.velocet.net> In-Reply-To: <16002.16342.476020.510769@canoe.velocet.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303301145.12141.wes@softweyr.com> cc: freebsd-hackers@freebsd.org Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 19:45:14 -0000 On Wednesday 26 March 2003 16:03, David Gilbert wrote: > > Given the price of this card > ... and the fact that less-than-400Mhz CPU's are rather rare, and that > this is only an issue for high bandwidth applications ... the rl cards > might fit for you. Given the price of the card, you can almost always find a better one at roughly the same price. For instance, this one: dc0: port 0xd800-0xd87f mem 0xf3000000-0xf30003ff irq 7 at device 11.0 on pci0 was FREE last Christmas, from Office Depot. It's a Belkin branded card and normally sells for $10 (at TigerDirect.com). -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 11:47:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8675F37B401 for ; Sun, 30 Mar 2003 11:47:24 -0800 (PST) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6CC1443F3F for ; Sun, 30 Mar 2003 11:47:23 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org (ugly.x.kientzle.com [66.166.149.51]) by kientzle.com (8.11.3/8.11.3) with ESMTP id h2UJlEv41646; Sun, 30 Mar 2003 11:47:14 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3E8749EA.2030801@acm.org> Date: Sun, 30 Mar 2003 11:47:54 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wes Peters References: <3E42C148.4050807@acm.org> <20030329012828.GA32891@intruder.bmah.org> <3E85418F.8010201@acm.org> <200303301043.51087.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: BSD tar (was Re: Making pkg_XXX tools smarter about file types...) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 19:47:25 -0000 Wes Peters wrote: > On Friday 28 March 2003 22:47, Tim Kientzle wrote: >>With this [tar library], it should be possible to make pkg_add >>considerably more efficient. > > I'd much rather see the metadata moved outside the file archives, but > that's a separate argument and in now way detracts from your proposed > work. ;^) I've given up trying to argue for a well-designed package file format. tar works well enough, I suppose. (Better than the oft-suggested 'zip' format. Ugh.) Tim Kientzle From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 12:05:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C36AC37B4C8 for ; Sun, 30 Mar 2003 12:05:05 -0800 (PST) Received: from jkh-gw.queasyweasel.com (adsl-64-173-3-158.dsl.sntc01.pacbell.net [64.173.3.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBE0143FBF for ; Sun, 30 Mar 2003 12:05:04 -0800 (PST) (envelope-from jkh@queasyweasel.com) Received: from queasyweasel.com (narcissus.freebsd.com [64.173.15.99]) h2UK3psg028179; Sun, 30 Mar 2003 12:03:52 -0800 (PST) (envelope-from jkh@queasyweasel.com) Date: Sun, 30 Mar 2003 12:05:04 -0800 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) To: kientzle@acm.org From: Jordan K Hubbard In-Reply-To: <3E8749EA.2030801@acm.org> Message-Id: Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) cc: freebsd-hackers@freebsd.org Subject: Re: BSD tar (was Re: Making pkg_XXX tools smarter about file types...) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 20:05:07 -0000 Given ample personal experience with this issue, all I can say is that actions speak a lot louder than words where it's concerned. :-) I don't mean this in the usual and offensive "put up or shut up" sense either, believe it or not. It's just that I've seen literally years worth of discussion on this topic and all the threads generally wind up in exactly the same place: Everyone agrees that the format should support good compression, random access to contents (or at least a good and fast way of skipping over unwanted items), a library as well as command-line API for manipulation, rich and extensible metadata for file attributes/signatures/checksums/comments/etc etc, the usual laundry list. Then everyone starts pulling up various package file formats from the 70's and 80's (which is about when all of the current ones were designed) and arguing the pros and cons of each, none of which were exactly designed with the current range of file attributes and computing capabilities in mind so this leads to lots of "the foo format sucks!" kinds of comments. Eventually everyone gets tired and leaves the discussion for another few months/years. That is why the deadlock will only be broken by someone coming forward with a new file format AND implementation (library and command line API) on a plate, pointing to all of its obvious advantages and suitability for current needs and then seeking to evangelize that rather than getting trapped in the endless cycle of tar/zip/rar/zoo/arc/blah debates. - Jordan On Sunday, March 30, 2003, at 11:47 AM, Tim Kientzle wrote: > I've given up trying to argue for a > well-designed package file format. > tar works well enough, I suppose. > (Better than the oft-suggested > 'zip' format. Ugh.) > From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 12:49:36 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D90C37B401 for ; Sun, 30 Mar 2003 12:49:36 -0800 (PST) Received: from sabre.velocet.net (sabre.velocet.net [216.138.209.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81AC543F93 for ; Sun, 30 Mar 2003 12:49:35 -0800 (PST) (envelope-from dgilbert@velocet.ca) Received: from trooper.velocet.ca (trooper.velocet.net [216.138.242.2]) by sabre.velocet.net (Postfix) with ESMTP id DAE7013830F; Sun, 30 Mar 2003 15:49:31 -0500 (EST) Received: by trooper.velocet.ca (Postfix, from userid 66) id 53A5874D4C; Sun, 30 Mar 2003 15:49:31 -0500 (EST) Received: by canoe.velocet.net (Postfix, from userid 101) id E4434567607; Sun, 30 Mar 2003 15:49:26 -0500 (EST) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16007.22614.840137.999671@canoe.velocet.net> Date: Sun, 30 Mar 2003 15:49:26 -0500 To: Wes Peters In-Reply-To: <200303301145.12141.wes@softweyr.com> References: <007c01c2e3ef$3483d8a0$0229c80a@abtec412> <20030306145022.GA31433@krion> <16002.16342.476020.510769@canoe.velocet.net> <200303301145.12141.wes@softweyr.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid cc: freebsd-hackers@freebsd.org cc: David Gilbert Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 20:49:38 -0000 >>>>> "Wes" == Wes Peters writes: Wes> On Wednesday 26 March 2003 16:03, David Gilbert wrote: >> Given the price of this card ... and the fact that >> less-than-400Mhz CPU's are rather rare, and that this is only an >> issue for high bandwidth applications ... the rl cards might fit >> for you. Wes> Given the price of the card, you can almost always find a better Wes> one at roughly the same price. For instance, this one: Wes> dc0: port 0xd800-0xd87f mem Wes> 0xf3000000-0xf30003ff irq 7 at device 11.0 on pci0 Wes> was FREE last Christmas, from Office Depot. It's a Belkin Wes> branded card and normally sells for $10 (at TigerDirect.com). I was a fan of the dc drivers ... I think most sysadmins were. They were the early 4 port cards ... and then they were the cheap 4 port cards. I still see a few come along with prices in the $10 range from various vendors. But ... I'm not sure that their performance is largely better than the rl's. The driver writer for the rl maligns the card in comments for requiring alignment (and thus copying). There are far worse hacks in the dc code ... with the comment that some dc implementations are worse than others. Dave. -- ============================================================================ |David Gilbert, Velocet Communications. | Two things can only be | |Mail: dgilbert@velocet.net | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 13:00:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C9AB37B401 for ; Sun, 30 Mar 2003 13:00:05 -0800 (PST) Received: from cs.bu.edu (cs.bu.edu [128.197.12.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6352D43FB1 for ; Sun, 30 Mar 2003 13:00:04 -0800 (PST) (envelope-from evms@bu.edu) Received: from teqnix.sekt7.org (209-6-250-194.c3-0.lex-ubr2.sbo-lex.ma.cable.rcn.com [209.6.250.194]) (authenticated bits=0) by cs.bu.edu (8.12.2/8.12.2) with ESMTP id h2UL03Es015684 for ; Sun, 30 Mar 2003 16:00:03 -0500 (EST) From: "Evan S." To: hackers@freebsd.org Date: Sun, 30 Mar 2003 15:57:50 -0500 User-Agent: KMail/1.5 MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200303301558.01010.evms@bu.edu> Subject: jiffy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: evms@bu.edu List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 21:00:06 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I'm wondering if FreeBSD-current has anything similar to Linux jiffies?=20 Thanks, Evan :-) =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+h1pYECYZSrUV88QRAo9DAKDm6D40Z7/tYuseLzrKcQg669ic7gCgzxGS yyVDuJQlOWiMCWfWrKZEMNw=3D =3DJs9Y =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 13:25:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EF1837B41F for ; Sun, 30 Mar 2003 13:25:22 -0800 (PST) Received: from parmenides.zen.co.uk (parmenides.zen.co.uk [212.23.8.69]) by mx1.FreeBSD.org (Postfix) with SMTP id 2FCA743F75 for ; Sun, 30 Mar 2003 13:25:21 -0800 (PST) (envelope-from tony@ubik.demon.co.uk) Received: (qmail 15655 invoked from network); 30 Mar 2003 21:25:20 -0000 Received: from protagoras.zen.co.uk (212.23.8.61) by parmenides.zen.co.uk with QMQP; 30 Mar 2003 21:25:20 -0000 Received: from dsl-217-155-183-134.zen.co.uk (HELO ubik.demon.co.uk) (217.155.183.134) by protagoras.zen.co.uk with SMTP; 30 Mar 2003 21:25:19 -0000 X-Zen-Trace: 217.155.183.134 Message-ID: Date: Sun, 30 Mar 2003 21:23:56 +0000 To: freebsd-hackers@freebsd.org, "Evan S." From: Anthony Naggs References: <200303301558.01010.evms@bu.edu> In-Reply-To: <200303301558.01010.evms@bu.edu> MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 5.01 U Subject: Re: jiffy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Mar 2003 21:25:26 -0000 In article <200303301558.01010.evms@bu.edu>, Evan S. writes >Hello, > >I'm wondering if FreeBSD-current has anything similar to Linux jiffies? This level of question is probably best asked on freebsd-questions. That said, probably want you is: man 2 gettimeofday Tony From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 16:36:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85AD237B401 for ; Sun, 30 Mar 2003 16:36:24 -0800 (PST) Received: from priv-edtnes09-hme0.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94E0243F75 for ; Sun, 30 Mar 2003 16:36:23 -0800 (PST) (envelope-from sh@bel.bc.ca) Received: from REASON ([154.5.106.237]) by priv-edtnes09-hme0.telusplanet.netSMTP <20030331003623.DRLG26116.priv-edtnes09-hme0.telusplanet.net@REASON> for ; Sun, 30 Mar 2003 17:36:23 -0700 Message-ID: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> From: "Sean Hamilton" To: Date: Sun, 30 Mar 2003 16:36:21 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 00:36:25 -0000 [asked in comp.unix.programmer without much luck] Greetings, I have a loop which calls wait(), and I want another function to be called as close to once per minute as possible. Pseudo code: int alarmed = 0; void handle_sigalrm (int sig) { alarmed = 1; } while (1) { alarmed = 0; alarm (60); while (1) { wait (...); if (alarmed || wait was interrupted) { break; } } /* minutely code */ } My concern is there is a small possibility that the alarm signal is delivered after the if() but before the wait. So it is possible that this wait takes several minutes or longer. Moving the "if (alarmed)" above the wait() makes no difference, of course. Is there a better way of doing something like this? Ideally wait() has a timeout parameter, but, no such luck. sh From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 16:45:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CF6E637B401; Sun, 30 Mar 2003 16:45:20 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E73E43FB1; Sun, 30 Mar 2003 16:45:20 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 6D1895308; Mon, 31 Mar 2003 02:45:17 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Jacques A. Vidrine" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 02:45:17 +0200 In-Reply-To: <20030326150152.GG33671@madman.celabo.org> ("Jacques A. Vidrine"'s message of "Wed, 26 Mar 2003 09:01:52 -0600") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030326124420.388DE10160@ws-tor-0004.procergs> <20030326150152.GG33671@madman.celabo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: omestre@freeshell.org Subject: Re: pam_ldap... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 00:45:22 -0000 "Jacques A. Vidrine" writes: > The part you are missing is that before you can authenticate, you must > have account and authorization information. For UNIX services, this > means that e.g. getpwnam() needs to find you. Nope - you don't need a struct passwd to call pam_authenticate(), and PAM supports the idea of a "template user" which is used to obtain a struct passwd for users that are authenticated through other means. PAM applications are supposed to call pam_get_user() once the user has been successfully authenticated to get the name of the template user. I think most PAM applications in the base system fail to do this. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 16:51:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1438037B401 for ; Sun, 30 Mar 2003 16:51:50 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 523F043FBF for ; Sun, 30 Mar 2003 16:51:49 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id C01C75308; Mon, 31 Mar 2003 02:51:47 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: David Gilbert From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 02:51:47 +0200 In-Reply-To: <16007.22614.840137.999671@canoe.velocet.net> (David Gilbert's message of "Sun, 30 Mar 2003 15:49:26 -0500") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <007c01c2e3ef$3483d8a0$0229c80a@abtec412> <20030306145022.GA31433@krion> <16002.16342.476020.510769@canoe.velocet.net> <200303301145.12141.wes@softweyr.com> <16007.22614.840137.999671@canoe.velocet.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 00:51:51 -0000 David Gilbert writes: > But ... I'm not sure that their performance is largely better than the > rl's. The driver writer for the rl maligns the card in comments for > requiring alignment (and thus copying). There are far worse hacks in > the dc code ... with the comment that some dc implementations are > worse than others. Not to mention the fact that over the past year or so people have been repeatedly picking the dc driver apart and putting it back together with some bits missing, so for some cards it has gone from working perfectly, to getting the MAC address wrong but working fine after you manually set it, to plainly refusing to attach to the card. My laptop is now practically reduced to a doorstop since -STABLE doesn't have Cardbus support and -CURRENT refuses to attach to the NIC. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 17:00:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6C0737B401 for ; Sun, 30 Mar 2003 17:00:01 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0742C43F75 for ; Sun, 30 Mar 2003 17:00:01 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id F41925308; Mon, 31 Mar 2003 02:59:58 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: evms@bu.edu From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 02:59:58 +0200 In-Reply-To: <200303301558.01010.evms@bu.edu> ("Evan S."'s message of "Sun, 30 Mar 2003 15:57:50 -0500") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <200303301558.01010.evms@bu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: hackers@freebsd.org Subject: Re: jiffy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 01:00:03 -0000 "Evan S." writes: > I'm wondering if FreeBSD-current has anything similar to Linux jiffies?=20 Yes, but it would be easier to answer your question if you told us what you need the information for. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 17:30:36 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1725A37B405 for ; Sun, 30 Mar 2003 17:30:36 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DF1643F93 for ; Sun, 30 Mar 2003 17:30:35 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h2V1UYA7023859; Sun, 30 Mar 2003 18:30:34 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 30 Mar 2003 18:28:56 -0700 (MST) Message-Id: <20030330.182856.133749733.imp@bsdimp.com> To: des@ofug.org From: "M. Warner Losh" In-Reply-To: References: <200303301145.12141.wes@softweyr.com> <16007.22614.840137.999671@canoe.velocet.net> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 01:30:37 -0000 In message: des@ofug.org (Dag-Erling Sm=F8rgrav) writes: : Not to mention the fact that over the past year or so people have bee= n : repeatedly picking the dc driver apart and putting it back together : with some bits missing, so for some cards it has gone from working : perfectly, to getting the MAC address wrong but working fine after yo= u : manually set it, to plainly refusing to attach to the card. My lapto= p : is now practically reduced to a doorstop since -STABLE doesn't have : Cardbus support and -CURRENT refuses to attach to the NIC. As far as I know, all the sizing and weirdness issues have been worked out with dc. Care to provide details on the card that isn't? Alternatively, wanna swap me one of my working cards for it? Warner From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 17:49:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B74137B401 for ; Sun, 30 Mar 2003 17:49:59 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DE7C43FCB for ; Sun, 30 Mar 2003 17:49:58 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 2C92F5308; Mon, 31 Mar 2003 03:49:55 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "M. Warner Losh" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 03:49:54 +0200 In-Reply-To: <20030330.182856.133749733.imp@bsdimp.com> ("M. Warner Losh"'s message of "Sun, 30 Mar 2003 18:28:56 -0700 (MST)") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <200303301145.12141.wes@softweyr.com> <16007.22614.840137.999671@canoe.velocet.net> <20030330.182856.133749733.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 01:50:04 -0000 "M. Warner Losh" writes: > In message: > des@ofug.org (Dag-Erling Sm=F8rgrav) writes: > : Not to mention the fact that over the past year or so people have been > : repeatedly picking the dc driver apart and putting it back together > : with some bits missing, so for some cards it has gone from working > : perfectly, to getting the MAC address wrong but working fine after you > : manually set it, to plainly refusing to attach to the card. My laptop > : is now practically reduced to a doorstop since -STABLE doesn't have > : Cardbus support and -CURRENT refuses to attach to the NIC. > > As far as I know, all the sizing and weirdness issues have been worked > out with dc. Care to provide details on the card that isn't? It's an IBM branded Xircom card which used to work perfectly (except for some trouble with underruns which another nearly identical card didn't have... but I lost the dongle for that one). FRU 34L5309 if you want to look up the datasheet. About a year ago, subsequent to changes in the dc driver, -CURRENT started getting the MAC address wrong (but it would still attach, so I could set the correct MAC address manually). At some later point, some time between October 2002 and February 2003 (during which time I didn't run -CURRENT on the laptop due to insufficient disk space), it went from getting the MAC address wrong to not finding it at all (I believe it reports "No station address in CIS!") and refusing to attach. I have a couple of 16-bit cards lying around, but oldcard couldn't even find the slots, let alone the cards I put in. I haven't tried 4.8 as it would be useless for me (I need the laptop for development work on -CURRENT). The only alternative left is SLIP, which would prevent me from using the laptop as a serial console since it only has one port - but it turns out 5.0-RELEASE is unable to use the serial port. That may be a BIOS problem though, the BIOS seems to regularly reset random configuration options (such as the "IRDA, what IRDA? I don't need no stinking IRDA" option) to factory defaults. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 18:21:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7476837B401 for ; Sun, 30 Mar 2003 18:21:28 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF13443FA3 for ; Sun, 30 Mar 2003 18:21:27 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h2V2LQA7024174; Sun, 30 Mar 2003 19:21:27 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Sun, 30 Mar 2003 19:19:44 -0700 (MST) Message-Id: <20030330.191944.62348635.imp@bsdimp.com> To: des@ofug.org From: "M. Warner Losh" In-Reply-To: References: <20030330.182856.133749733.imp@bsdimp.com> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 02:21:29 -0000 In message: des@ofug.org (Dag-Erling Sm=F8rgrav) writes: : address wrong to not finding it at all (I believe it reports "No : station address in CIS!") and refusing to attach. It always didn't find it, you just got lucky before. The no station address in CIS means that it can't map the CIS. This means the 'it' isn't dc, but rather 'cbb'. cbb's ability to map memory is kinda flakey on some machines. You have one. You need to set hw.cbb.start_memory to a value that makes your laptop happy. Yes, this sucks, but it is a symptom of the deeper problems with the dynamic allocation of resources in freebsd pci code. Warner From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 18:39:09 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CD9E37B401 for ; Sun, 30 Mar 2003 18:39:08 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3EA443F75 for ; Sun, 30 Mar 2003 18:39:07 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h2V2cuVD058549; Sun, 30 Mar 2003 20:38:56 -0600 (CST) (envelope-from dan) Date: Sun, 30 Mar 2003 20:38:56 -0600 From: Dan Nelson To: Sean Hamilton Message-ID: <20030331023856.GL74971@dan.emsphone.com> References: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 02:39:12 -0000 In the last episode (Mar 30), Sean Hamilton said: > [asked in comp.unix.programmer without much luck] > > I have a loop which calls wait(), and I want another function to be > called as close to once per minute as possible. Pseudo code: [snip] > My concern is there is a small possibility that the alarm signal is > delivered after the if() but before the wait. So it is possible that > this wait takes several minutes or longer. > > Moving the "if (alarmed)" above the wait() makes no difference, of course. > > Is there a better way of doing something like this? Ideally wait() has a > timeout parameter, but, no such luck. Just make sure your signal handler has the SA_RESTART flag unset (either via siginterrupt() if the handler was installed with signal(), or directly if the signal was installed with sigaction() ), and the signal will interrupt the wait() call. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 18:50:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F2F537B401 for ; Sun, 30 Mar 2003 18:50:34 -0800 (PST) Received: from priv-edtnes28.telusplanet.net (outbound04.telus.net [199.185.220.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7EEBC43FB1 for ; Sun, 30 Mar 2003 18:50:33 -0800 (PST) (envelope-from sh@bel.bc.ca) Received: from REASON ([154.5.106.237]) by priv-edtnes28.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20030331025032.JBXP4735.priv-edtnes28.telusplanet.net@REASON> for ; Sun, 30 Mar 2003 19:50:32 -0700 Message-ID: <007e01c2f730$4b5863d0$0300000a@slugabed.org> From: "Sean Hamilton" To: References: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> <20030331023856.GL74971@dan.emsphone.com> Date: Sun, 30 Mar 2003 18:50:30 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 02:50:35 -0000 Dan Nelson wrote: | Just make sure your signal handler has the SA_RESTART flag unset | (either via siginterrupt() if the handler was installed with signal(), | or directly if the signal was installed with sigaction() ), and the | signal will interrupt the wait() call. Er, I think you've missed my problem. Or I'm not getting your solution. I'm concerned about this order of events: - alarm() - wait() returns successfully - if (alarmed...) [false] - SIGALRM is delivered, alarmed = true - loop - wait() waits indefinitely This is incredibly unlikely to ever happen, but it's irritating me somewhat that the code isn't airtight. Bad design. Surely there is some atomic means of setting a timeout on a system call. sh From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 19:23:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F55137B401 for ; Sun, 30 Mar 2003 19:23:02 -0800 (PST) Received: from mta6.snfc21.pbi.net (mta6.snfc21.pbi.net [206.13.28.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A67143FA3 for ; Sun, 30 Mar 2003 19:23:01 -0800 (PST) (envelope-from mbsd@pacbell.net) Received: from atlas ([64.160.45.145]) by mta6.snfc21.pbi.net (iPlanet Messaging Server 5.1 HotFix 1.6 (built Oct 18 2002)) with ESMTP id <0HCL000OFG2D0L@mta6.snfc21.pbi.net> for hackers@freebsd.org; Sun, 30 Mar 2003 19:23:01 -0800 (PST) Date: Sun, 30 Mar 2003 19:22:55 -0800 (PST) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= In-reply-to: <007e01c2f730$4b5863d0$0300000a@slugabed.org> X-X-Sender: mikko@atlas.home To: Sean Hamilton Message-id: <20030330191611.J1122@atlas.home> MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Content-transfer-encoding: 7BIT References: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> <20030331023856.GL74971@dan.emsphone.com> <007e01c2f730$4b5863d0$0300000a@slugabed.org> cc: hackers@freebsd.org Subject: Re: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 03:23:03 -0000 On Sun, 30 Mar 2003, Sean Hamilton wrote: > Dan Nelson wrote: > | Just make sure your signal handler has the SA_RESTART flag unset > | (either via siginterrupt() if the handler was installed with signal(), > | or directly if the signal was installed with sigaction() ), and the > | signal will interrupt the wait() call. > > Er, I think you've missed my problem. Or I'm not getting your solution. > > I'm concerned about this order of events: > > - alarm() > - wait() returns successfully > - if (alarmed...) [false] > - SIGALRM is delivered, alarmed = true > - loop > - wait() waits indefinitely > > This is incredibly unlikely to ever happen, but it's irritating me somewhat > that the code isn't airtight. Bad design. Surely there is some atomic means > of setting a timeout on a system call. My stock solution to this kind of problem is to turn those pesky signals into I/O and use an old fashioned select() loop to handle them; create a pipe(2), let signal handlers write one-byte "messages" (the signal number) into the pipe and then use select() to dequeue the events (signals) from the pipe. Select() has a timeout parameter you can play with to your hearts content, and provided you don't overflow the pipe, no events will get lost. You'd have to install a hander for SIGCHLD, of course. $.02, /Mikko From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 19:36:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D81E37B401 for ; Sun, 30 Mar 2003 19:36:45 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9D0D43F85 for ; Sun, 30 Mar 2003 19:36:44 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h2V3ahYP092682; Sun, 30 Mar 2003 21:36:43 -0600 (CST) (envelope-from dan) Date: Sun, 30 Mar 2003 21:36:43 -0600 From: Dan Nelson To: Sean Hamilton Message-ID: <20030331033643.GO74971@dan.emsphone.com> References: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> <20030331023856.GL74971@dan.emsphone.com> <007e01c2f730$4b5863d0$0300000a@slugabed.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <007e01c2f730$4b5863d0$0300000a@slugabed.org> X-OS: FreeBSD 5.0-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 03:36:46 -0000 In the last episode (Mar 30), Sean Hamilton said: > Dan Nelson wrote: > | Just make sure your signal handler has the SA_RESTART flag unset > | (either via siginterrupt() if the handler was installed with > | signal(), or directly if the signal was installed with sigaction() > | ), and the signal will interrupt the wait() call. > > Er, I think you've missed my problem. Or I'm not getting your solution. > > I'm concerned about this order of events: > > - alarm() > - wait() returns successfully > - if (alarmed...) [false] > - SIGALRM is delivered, alarmed = true > - loop > - wait() waits indefinitely You can probably do something like "alarm(1);" at the top of your handle_sigalarm function. That way after 60 seconds the alarm will fire every second until cleared. A cleaner solution would be to use ualarm(60000,1000) or setitimer() to do this (replacing the alarm(60) call outside the handler). > This is incredibly unlikely to ever happen, but it's irritating me > somewhat that the code isn't airtight. Bad design. Surely there is > some atomic means of setting a timeout on a system call. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 20:04:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B15837B401 for ; Sun, 30 Mar 2003 20:04:18 -0800 (PST) Received: from priv-edtnes10-hme0.telusplanet.net (outbound02.telus.net [199.185.220.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAC8C43FA3 for ; Sun, 30 Mar 2003 20:04:17 -0800 (PST) (envelope-from sh@planetquake.com) Received: from REASON ([154.5.106.237]) by priv-edtnes10-hme0.telusplanet.netSMTP <20030331040417.ERSR12335.priv-edtnes10-hme0.telusplanet.net@REASON> for ; Sun, 30 Mar 2003 21:04:17 -0700 Message-ID: <009301c2f73a$98d2c970$0300000a@slugabed.org> From: "Sean Hamilton" To: References: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org><20030331023856.GL74971@dan.emsphone.com><007e01c2f730$4b5863d0$0300000a@slugabed.org> <20030331033643.GO74971@dan.emsphone.com> Date: Sun, 30 Mar 2003 20:04:15 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Re: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 04:04:22 -0000 Dan Nelson wrote: | In the last episode (Mar 30), Sean Hamilton said: || I'm concerned about this order of events: || || - alarm() || - wait() returns successfully || - if (alarmed...) [false] || - SIGALRM is delivered, alarmed = true || - loop || - wait() waits indefinitely | | A cleaner solution would be to use ualarm(60000,1000) or setitimer() | to do this (replacing the alarm(60) call outside the handler). This looks like the way to go. "cleaner" is certainly relative here, but it's quite likely this hack never comes up in the lifetime of the program. I've inserted a printf just in case. (slight grin) This is my first time dealing with signals... they seem to lack the elegance most of Unix offers. Perhaps that's just my inexperience speaking. sh From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 30 21:49:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD65837B401 for ; Sun, 30 Mar 2003 21:49:54 -0800 (PST) Received: from thought.holo.org (h-68-166-32-19.SNVACAID.covad.net [68.166.32.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 127E643FAF for ; Sun, 30 Mar 2003 21:49:54 -0800 (PST) (envelope-from bwb@holo.org) Received: from localhost (localhost [127.0.0.1]) by thought.holo.org (8.12.9/8.12.8) with ESMTP id h2V5nAVA066339; Sun, 30 Mar 2003 21:49:10 -0800 (PST) (envelope-from bwb@holo.org) Date: Sun, 30 Mar 2003 21:49:10 -0800 (PST) From: Brian Buchanan To: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= In-Reply-To: <20030330191611.J1122@atlas.home> Message-ID: <20030330214750.A65240-100000@thought.holo.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: 8BIT cc: hackers@freebsd.org cc: Sean Hamilton Subject: Re: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 05:49:59 -0000 On Sun, 30 Mar 2003, [ISO-8859-1] Mikko Työläjärvi wrote: > On Sun, 30 Mar 2003, Sean Hamilton wrote: > > > Dan Nelson wrote: > > | Just make sure your signal handler has the SA_RESTART flag unset > > | (either via siginterrupt() if the handler was installed with signal(), > > | or directly if the signal was installed with sigaction() ), and the > > | signal will interrupt the wait() call. > > > > Er, I think you've missed my problem. Or I'm not getting your solution. > > > > I'm concerned about this order of events: > > > > - alarm() > > - wait() returns successfully > > - if (alarmed...) [false] > > - SIGALRM is delivered, alarmed = true > > - loop > > - wait() waits indefinitely > > > > This is incredibly unlikely to ever happen, but it's irritating me somewhat > > that the code isn't airtight. Bad design. Surely there is some atomic means > > of setting a timeout on a system call. > > My stock solution to this kind of problem is to turn those pesky > signals into I/O and use an old fashioned select() loop to handle > them; create a pipe(2), let signal handlers write one-byte "messages" > (the signal number) into the pipe and then use select() to dequeue the > events (signals) from the pipe. > > Select() has a timeout parameter you can play with to your hearts > content, and provided you don't overflow the pipe, no events will > get lost. You'd have to install a hander for SIGCHLD, of course. Or how about kqueue(2) with EVFILT_SIGNAL. That would seem to be a more elegant solution. No signal handlers or alarm() required. -Brian -- Brian Buchanan, CISSP bwb@holo.org -------------------------------------------------------------------------- FreeBSD - The Power to Serve! http://www.freebsd.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 01:19:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D65F37B401 for ; Mon, 31 Mar 2003 01:19:55 -0800 (PST) Received: from hotmail.com (f101.law14.hotmail.com [64.4.21.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4D6C43FAF for ; Mon, 31 Mar 2003 01:19:54 -0800 (PST) (envelope-from meetmanya@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 31 Mar 2003 01:19:54 -0800 Received: from 202.54.40.210 by lw14fd.law14.hotmail.msn.com with HTTP; Mon, 31 Mar 2003 09:19:54 GMT X-Originating-IP: [202.54.40.210] X-Originating-Email: [meetmanya@hotmail.com] From: "Manish Sapariya" To: freebsd-hackers@freebsd.org Date: Mon, 31 Mar 2003 14:49:54 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 31 Mar 2003 09:19:54.0850 (UTC) FILETIME=[B1064C20:01C2F766] Subject: test, please ignore X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 09:19:56 -0000 _________________________________________________________________ War on Iraq. See latest update. http://server1.msn.co.in/completecoverage/bushvssaddam/ News, views and more From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 01:58:46 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FD4C37B401; Mon, 31 Mar 2003 01:58:46 -0800 (PST) Received: from c81-48.cable.netissat.bg (c81-48.cable.netissat.bg [213.130.81.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58A1A43FBF; Mon, 31 Mar 2003 01:58:43 -0800 (PST) (envelope-from vladimir.terziev@sun-fish.com) Received: from sun-fish.com (postfix@fs.cmotd.com [192.168.33.253]) h2V8rqQo019644; Mon, 31 Mar 2003 10:53:54 +0200 (CEST) Received: from 127.0.0.1 (localhost [127.0.0.1]) by antivirus.software (Postfix) with SMTP id A8B6F14A05; Mon, 31 Mar 2003 10:53:51 +0200 (CEST) Received: from daemon.cmotd.com (daemon.cmotd.com [192.168.33.170]) by sun-fish.com (Postfix) with SMTP id 7E8A414A0B; Mon, 31 Mar 2003 10:53:50 +0200 (CEST) Date: Mon, 31 Mar 2003 11:53:52 +0300 From: Vladimir Terziev To: freebsd-hackers@FreeBSD.ORG Message-Id: <20030331115352.14573848.vlady@sun-fish.com> Organization: SunFish Ltd. X-Mailer: Sylpheed version 0.8.6claws (GTK+ 1.2.10; ) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-net@FreeBSD.ORG Subject: vm_fault and nfs_getpages errors X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 09:58:49 -0000 Hi All, I have a diskless machine, which runs FreeBSD 4.7-R and samba on it. The machine has NFS mounted swap and filesystems on one of my servers. In fact the server is FreeBSD 4.7-R too. From time to time I get the following messages from kernel: nfs_getpages: error 13 vm_fault: pager read error, pid 3955 (smbd) pid 3955 (smbd), uid 65534: exited on signal 6 Does anybody have an idea, where is the problem? Vladimir From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 03:33:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EC1537B401 for ; Mon, 31 Mar 2003 03:33:01 -0800 (PST) Received: from hotmail.com (f121.law14.hotmail.com [64.4.21.121]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06F2243FA3 for ; Mon, 31 Mar 2003 03:33:01 -0800 (PST) (envelope-from meetmanya@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 31 Mar 2003 03:32:57 -0800 Received: from 202.54.40.210 by lw14fd.law14.hotmail.msn.com with HTTP; Mon, 31 Mar 2003 11:32:57 GMT X-Originating-IP: [202.54.40.210] X-Originating-Email: [meetmanya@hotmail.com] From: "Manish Sapariya" To: freebsd-hackers@freebsd.org Date: Mon, 31 Mar 2003 17:02:57 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 31 Mar 2003 11:32:57.0658 (UTC) FILETIME=[472621A0:01C2F779] Subject: Debugging FreeBSD 4.7 using gdb remote machine X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 11:33:02 -0000 Hi all, I am trying to debug the FreeBSD 4.7 kernel using gdb remote debugging. However I am not able to do it properly. The kernel breaks in properly when I run "target remote /dev/cuaa1" command on my developement machine. However when I try to "step, next, continue" in the code it simply hangs, Or if I execute command to view backtrace, it doesnot show the complete stack and many of the entries are garbled giving the messages about "Ignoring packet error, continuing... " and "Reply contains invalid hex digits 116". Only once I was ablt to debug successfully. In my VMWARE setup also I can do the debugging without any problem. I even faced the same problem with different set of machines. Is there anything that I am missing in configuration or gdb stuff, or cabling problem? (I tested with kermit that the serial connection setup and is working fine, or it seems to be ;-() Any clues will be of great help. Thanks ans Regards, Manish _________________________________________________________________ Catch the Oscar fever. See winners & losers. http://server1.msn.co.in/MSNSpecials/oscar2003/index.asp Right here From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 03:40:14 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 013E737B404 for ; Mon, 31 Mar 2003 03:40:14 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBACA43F93 for ; Mon, 31 Mar 2003 03:40:12 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id BB97B5308; Mon, 31 Mar 2003 13:40:09 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "M. Warner Losh" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 13:40:09 +0200 In-Reply-To: <20030330.191944.62348635.imp@bsdimp.com> ("M. Warner Losh"'s message of "Sun, 30 Mar 2003 19:19:44 -0700 (MST)") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030330.182856.133749733.imp@bsdimp.com> <20030330.191944.62348635.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 11:40:46 -0000 "M. Warner Losh" writes: > In message: > des@ofug.org (Dag-Erling Sm=F8rgrav) writes: > : address wrong to not finding it at all (I believe it reports "No > : station address in CIS!") and refusing to attach. > It always didn't find it, you just got lucky before. The no station > address in CIS means that it can't map the CIS. This means the 'it' > isn't dc, but rather 'cbb'. cbb's ability to map memory is kinda > flakey on some machines. You have one. You need to set > hw.cbb.start_memory to a value that makes your laptop happy. ...such as? DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 04:40:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C2DD37B404 for ; Mon, 31 Mar 2003 04:40:06 -0800 (PST) Received: from mail.openet-telecom.com (mail.openet-telecom.com [62.17.151.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35B6443F75 for ; Mon, 31 Mar 2003 04:40:03 -0800 (PST) (envelope-from peter.edwards@openet-telecom.com) Received: from mail.openet-telecom.com (gpo.openet-telecom.lan) by mail.openet-telecom.com ; Mon, 31 Mar 2003 13:39:38 +0100 Received: from rocklobster.openet-telecom.lan (10.0.0.40) by mail.openet-telecom.com (NPlex 6.5.027) id 3E82B24600004F4A; Mon, 31 Mar 2003 13:42:26 +0100 From: Peter Edwards To: Sean Hamilton In-Reply-To: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> References: <001101c2f71d$8d9e4fb0$0300000a@slugabed.org> Content-Type: text/plain Organization: Openet Telecom Message-Id: <1049114603.29400.187.camel@rocklobster.openet-telecom.lan> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 31 Mar 2003 13:43:23 +0100 Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: wait()/alarm() race condition X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 12:40:10 -0000 > Greetings, > > I have a loop which calls wait(), and I want another function to be > called > as close to once per minute as possible. Pseudo code: > [snip example] > > My concern is there is a small possibility that the alarm signal is > delivered after the if() but before the wait. So it is possible that > this > wait takes several minutes or longer. There's two ways of avoiding this race that no one has mentioned: Option 1: You could do the timer-based work in the signal handler itself, once you're sure that the signal is only unblocked when you're otherwise doing nothing, (and that any other handlers that do significant work are also blocked while in the signal handler) Option 2: If you'd rather have the real work done in the loop itself, you could use setjmp/longjmp to jump out of the signal handler back to a point in the code avoiding the blocking call, ensuring that the alarm can only be generated in a small window (see sample below) Of course, kqueue() avoids all this mucking around, at the expense of portability to non-FreeBSD systems. > #include > #include > #include > > static int alarmed = 0; > static jmp_buf jb; > > void > sigalarm() > { > alarmed = 1; > longjmp(jb, 1); > } > > int > main(int argc, char *argv[]) > { > sigset_t ss; > struct sigaction sa; > int rv; > > /* Create signal mask containing just SIGALRM */ > sigemptyset(&ss); > sigaddset(&ss, SIGALRM); > > /* Set up handler for SIGALRM */ > sa.sa_handler = sigalarm; > sa.sa_flags = 0; > sigemptyset(&sa.sa_mask); > sigaction(SIGALRM, &sa, 0); > sigprocmask(SIG_BLOCK, &ss, 0); /* Only unblock when idle */ > > /* Possibly start up child process, etc */ > for (;;) { > if (setjmp(jb) == 0) { > /* We may never get to call pause() below */ > rv = -1; > /* Start alarm */ > alarm(2); > /* Enable alarm signal */ > sigprocmask(SIG_UNBLOCK, &ss, 0); > A: > /* Wait for signal */ > rv = pause(); /* or wait, etc. */ > } > B: > /* > * At this point, either pause() finished, or SIGALRM > * happened between A and B (or both) > */ > > /* Block SIGALRM while we work */ > sigprocmask(SIG_BLOCK, &ss, 0); > > if (alarmed) { > /* Alarm fired: to timer-based stuff. */ > alarmed = 0; > printf("do work\n"); > } > > if (rv != -1) { > /* > * If we called wait() instead of pause(), we > * could deal with the consequences of a > * successful wait() here. > */ > } > } > return 0; > } From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 08:19:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E72D337B401 for ; Mon, 31 Mar 2003 08:19:37 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AE5D43FA3 for ; Mon, 31 Mar 2003 08:19:37 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h2VGJVA7028570; Mon, 31 Mar 2003 09:19:36 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 31 Mar 2003 09:17:39 -0700 (MST) Message-Id: <20030331.091739.08149174.imp@bsdimp.com> To: des@ofug.org From: "M. Warner Losh" In-Reply-To: References: <20030330.191944.62348635.imp@bsdimp.com> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 16:19:39 -0000 In message: des@ofug.org (Dag-Erling Sm=F8rgrav) writes: : "M. Warner Losh" writes: : > In message: : > des@ofug.org (Dag-Erling Sm=F8rgrav) writes: : > : address wrong to not finding it at all (I believe it reports "No : > : station address in CIS!") and refusing to attach. : > It always didn't find it, you just got lucky before. The no statio= n : > address in CIS means that it can't map the CIS. This means the 'it= ' : > isn't dc, but rather 'cbb'. cbb's ability to map memory is kinda : > flakey on some machines. You have one. You need to set : > hw.cbb.start_memory to a value that makes your laptop happy. : = : ...such as? An address that works. Without further knowledge of your laptop, it is impossible for me to say. You will have to find this out by trial and error. Some folks like 0xf8000000, others like 0x400000000 and one uses 0xd4000, but the last one I don't recommend. Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 08:22:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2095A37B401 for ; Mon, 31 Mar 2003 08:22:52 -0800 (PST) Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5DE2643F93 for ; Mon, 31 Mar 2003 08:22:50 -0800 (PST) (envelope-from cole@optec.co.za) Received: from amavis by chaos.evolve.za.net with scanned-ok (Exim 3.36 #1) id 19023b-0006Qv-00 for freebsd-hackers@freebsd.org; Mon, 31 Mar 2003 18:22:47 +0200 Received: from [196.39.126.250] (helo=stalker) by chaos.evolve.za.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.36 #1) id 19023a-0006Qk-00 for freebsd-hackers@freebsd.org; Mon, 31 Mar 2003 18:22:46 +0200 Message-ID: <000901c2f7a2$15c17dc0$4206000a@stalker> From: "Stalker" To: Date: Mon, 31 Mar 2003 18:25:00 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by Opteq - www.optec.co.za Subject: Mbuf Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 16:22:53 -0000 Hey Just a quick question, we have a bsd box that is running out of mbufs, its just constantly increasing and we cant quite shut down a process at a time to find the cause since its a live box. So what i would like to know, is, is it possible to code a program to see how many mbufs are allocated to which program and find the one using them all up? Or is that not at all possible? If it is possible, could you put me in the right direction to accomplish this and the libraries or functions i might need to read/learn? Thanx Cole/Stalker From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 08:27:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 770D037B401 for ; Mon, 31 Mar 2003 08:27:52 -0800 (PST) Received: from relay04.connectit.co.za (relay04.connectit.co.za [196.14.84.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7739F43FDD for ; Mon, 31 Mar 2003 08:27:51 -0800 (PST) (envelope-from cole@acenet.co.za) Received: from amavis by relay04.connectit.co.za with scanned-ok (Exim 4.05) id 19028S-0002H3-00 for freebsd-hackers@freebsd.org; Mon, 31 Mar 2003 18:27:48 +0200 Received: from acenet.co.za ([196.25.152.246]) by relay04.connectit.co.za with esmtp (Exim 4.05) id 19028S-0002Gs-00 for freebsd-hackers@freebsd.org; Mon, 31 Mar 2003 18:27:48 +0200 Date: Mon, 31 Mar 2003 18:29:58 +0200 Message-Id: <200303311829.AA82510212@acenet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Cole" To: freebsd-hackers@freebsd.org X-Mailer: X-Virus-Scanned: by AMaViS snapshot-20020300 Subject: Mbuf Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: cole@acenet.co.za List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 16:27:53 -0000 Hey I have a quick question. Is it possible to find out which mbuf clusters are allocated to specific programs that are running or is that impossible. If it is possible, then could someone point me in the right direction for reading material or the functions / libraries that i would need to look at? Thanx Cole / Stalker From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 12:44:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C24F037B401 for ; Mon, 31 Mar 2003 12:44:26 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1945543FA3 for ; Mon, 31 Mar 2003 12:44:26 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 7C3195308; Mon, 31 Mar 2003 22:44:22 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "M. Warner Losh" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 22:44:22 +0200 In-Reply-To: <20030331.091739.08149174.imp@bsdimp.com> ("M. Warner Losh"'s message of "Mon, 31 Mar 2003 09:17:39 -0700 (MST)") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030330.191944.62348635.imp@bsdimp.com> <20030331.091739.08149174.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 20:44:30 -0000 "M. Warner Losh" writes: > An address that works. Without further knowledge of your laptop, it > is impossible for me to say. You will have to find this out by trial > and error. Some folks like 0xf8000000, others like 0x400000000 and > one uses 0xd4000, but the last one I don't recommend. 0xf8000000 seems to work on my StinkPad (still can't get the serial port to work though). It still complains about an "invalid BAR number: 27(06)". Plenty of ACPI errors too, but I don't really expect much from an IBM laptop. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 13:19:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC7B637B401 for ; Mon, 31 Mar 2003 13:19:17 -0800 (PST) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7591E43FBD for ; Mon, 31 Mar 2003 13:19:16 -0800 (PST) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.8/8.12.3) with ESMTP id h2VLJEA7030830; Mon, 31 Mar 2003 14:19:15 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 31 Mar 2003 14:17:14 -0700 (MST) Message-Id: <20030331.141714.00266769.imp@bsdimp.com> To: des@ofug.org From: "M. Warner Losh" In-Reply-To: References: <20030331.091739.08149174.imp@bsdimp.com> X-Mailer: Mew version 2.1 on Emacs 21.2 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 21:19:20 -0000 In message: des@ofug.org (Dag-Erling Sm=F8rgrav) writes: : "M. Warner Losh" writes: : > An address that works. Without further knowledge of your laptop, i= t : > is impossible for me to say. You will have to find this out by tri= al : > and error. Some folks like 0xf8000000, others like 0x400000000 and= : > one uses 0xd4000, but the last one I don't recommend. : = : 0xf8000000 seems to work on my StinkPad (still can't get the serial : port to work though). It still complains about an "invalid BAR : number: 27(06)". Plenty of ACPI errors too, but I don't really expec= t : much from an IBM laptop. Cool. I'm sorry you have to do these ugly hacks, and hope to get things working better soon. Maybe I should add a stinkpad to my wish list :-) Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 13:22:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 555B337B401 for ; Mon, 31 Mar 2003 13:22:59 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95D1543FB1 for ; Mon, 31 Mar 2003 13:22:58 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id B91315308; Mon, 31 Mar 2003 23:22:56 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "M. Warner Losh" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 23:22:54 +0200 In-Reply-To: <20030331.141714.00266769.imp@bsdimp.com> ("M. Warner Losh"'s message of "Mon, 31 Mar 2003 14:17:14 -0700 (MST)") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030331.091739.08149174.imp@bsdimp.com> <20030331.141714.00266769.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 21:23:02 -0000 "M. Warner Losh" writes: > Maybe I should add a stinkpad to my wish list :-) I'll trade you mine for a reasonably recent Dell or FujitsuSiemens laptop :) DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 13:31:13 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78D5437B404 for ; Mon, 31 Mar 2003 13:31:13 -0800 (PST) Received: from cs.bu.edu (cs-private.bu.edu [128.197.12.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 317C643FA3 for ; Mon, 31 Mar 2003 13:31:12 -0800 (PST) (envelope-from evms@bu.edu) Received: from teqnix.sekt7.org (209-6-250-194.c3-0.lex-ubr2.sbo-lex.ma.cable.rcn.com [209.6.250.194]) (authenticated bits=0) by cs.bu.edu (8.12.2/8.12.2) with ESMTP id h2VLV5Es001211; Mon, 31 Mar 2003 16:31:08 -0500 (EST) From: "Evan S." To: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 16:29:06 -0500 User-Agent: KMail/1.5 References: <200303301558.01010.evms@bu.edu> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Description: clearsigned data Content-Disposition: inline Message-Id: <200303311629.07310.evms@bu.edu> cc: hackers@freebsd.org Subject: Re: jiffy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: evms@bu.edu List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 21:31:19 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > Yes, but it would be easier to answer your question if you told us > what you need the information for. Sorry; I'll be more specific. I'm porting a deadline-scheduler from Linux o= ver=20 to FreeBSD that determines deadines by using jiffies. For example, process= =20 1's deadline is when jiffies=3D10 and so on. I just discovered the global=20 variable 'ticks' which seems to suit my needs, is this correct? =2D - Evan =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+iLMiECYZSrUV88QRAl3gAJ4uk5Ep7QR2DMB2nZ0Qw/k+47gRbwCePkDO vMGJt1/ZTcekag9dStFeet4=3D =3DBjkD =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 13:33:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CA1B37B401 for ; Mon, 31 Mar 2003 13:33:03 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 900A343F93 for ; Mon, 31 Mar 2003 13:33:02 -0800 (PST) (envelope-from winter@jurai.net) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h2VLWpEF025898; Mon, 31 Mar 2003 16:32:51 -0500 (EST) (envelope-from winter@jurai.net) Date: Mon, 31 Mar 2003 16:32:51 -0500 (EST) From: "Matthew N. Dodd" To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= In-Reply-To: Message-ID: <20030331163059.E1365@sasami.jurai.net> References: <20030330.191944.62348635.imp@bsdimp.com> <20030331.091739.08149174.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 21:33:04 -0000 On Mon, 31 Mar 2003, Dag-Erling [iso-8859-1] Smørgrav wrote: > 0xf8000000 seems to work on my StinkPad (still can't get the serial > port to work though). It still complains about an "invalid BAR > number: 27(06)". Plenty of ACPI errors too, but I don't really expect > much from an IBM laptop. Thankfully, APM works great on the older Thinkpads. To enable the serial port you'll want to run the DOS 'ps2.exe' utility. You can use the 'smapi' kernel driver and the userland utility ftp://ftp.jurai.net/users/winter/smapi.tar.gz to see if its disabled (likely). I still haven't puzzled out how to enable the serial ports with my utility. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 13:41:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59C0937B401 for ; Mon, 31 Mar 2003 13:41:05 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE27143F93 for ; Mon, 31 Mar 2003 13:41:01 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id BB7EA5308; Mon, 31 Mar 2003 23:40:59 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: evms@bu.edu From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 23:40:59 +0200 In-Reply-To: <200303311629.07310.evms@bu.edu> ("Evan S."'s message of "Mon, 31 Mar 2003 16:29:06 -0500") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <200303301558.01010.evms@bu.edu> <200303311629.07310.evms@bu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: hackers@freebsd.org Subject: Re: jiffy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 21:41:36 -0000 "Evan S." writes: > > Yes, but it would be easier to answer your question if you told us > > what you need the information for. > Sorry; I'll be more specific. I'm porting a deadline-scheduler from Linux= over=20 > to FreeBSD that determines deadines by using jiffies. For example, proces= s=20 > 1's deadline is when jiffies=3D10 and so on. I just discovered the global= =20 > variable 'ticks' which seems to suit my needs, is this correct? Yes - as far as I know our ticks and Linux's jiffies are exactly the same thing. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 13:45:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEE9B37B401 for ; Mon, 31 Mar 2003 13:45:02 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 992B143FDF for ; Mon, 31 Mar 2003 13:45:01 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 5DDBC5308; Mon, 31 Mar 2003 23:44:58 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Matthew N. Dodd" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Mon, 31 Mar 2003 23:44:58 +0200 In-Reply-To: <20030331163059.E1365@sasami.jurai.net> ("Matthew N. Dodd"'s message of "Mon, 31 Mar 2003 16:32:51 -0500 (EST)") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030330.191944.62348635.imp@bsdimp.com> <20030331.091739.08149174.imp@bsdimp.com> <20030331163059.E1365@sasami.jurai.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 21:45:06 -0000 "Matthew N. Dodd" writes: > Thankfully, APM works great on the older Thinkpads. for some definition of "great" which includes the APM BIOS suddenly deciding to suspend the laptop after 30 seconds even when the mains cord is plugged in. > To enable the serial > port you'll want to run the DOS 'ps2.exe' utility. I know. I did that. I get: 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 port 0x3f8-0x3ff irq 4 drq 3 on acpi0 sio0: type 8250 or not responding DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 13:48:00 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE0C437B401 for ; Mon, 31 Mar 2003 13:48:00 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE21743F85 for ; Mon, 31 Mar 2003 13:47:59 -0800 (PST) (envelope-from winter@jurai.net) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h2VLlvEF026358; Mon, 31 Mar 2003 16:47:57 -0500 (EST) (envelope-from winter@jurai.net) Date: Mon, 31 Mar 2003 16:47:57 -0500 (EST) From: "Matthew N. Dodd" To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= In-Reply-To: Message-ID: <20030331164644.A1365@sasami.jurai.net> References: <20030330.191944.62348635.imp@bsdimp.com> <20030331.091739.08149174.imp@bsdimp.com> <20030331163059.E1365@sasami.jurai.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 21:48:01 -0000 On Mon, 31 Mar 2003, Dag-Erling [iso-8859-1] Smørgrav wrote: > for some definition of "great" which includes the APM BIOS suddenly > deciding to suspend the laptop after 30 seconds even when the mains > cord is plugged in. You've got a 600 series right? What model and bios revision? (Find out with the 'vpd' driver or go into the BIOS setup.) > I know. I did that. I get: > > 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 port 0x3f8-0x3ff irq 4 drq 3 on acpi0 > sio0: type 8250 or not responding It won't work at all with ACPI; don't use it. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 15:25:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECD8237B401 for ; Mon, 31 Mar 2003 15:25:06 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id B06CB43FB1 for ; Mon, 31 Mar 2003 15:25:03 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id D108C5308; Tue, 1 Apr 2003 01:24:59 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Matthew N. Dodd" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Tue, 01 Apr 2003 01:24:58 +0200 In-Reply-To: <20030331164644.A1365@sasami.jurai.net> ("Matthew N. Dodd"'s message of "Mon, 31 Mar 2003 16:47:57 -0500 (EST)") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <20030330.191944.62348635.imp@bsdimp.com> <20030331.091739.08149174.imp@bsdimp.com> <20030331163059.E1365@sasami.jurai.net> <20030331164644.A1365@sasami.jurai.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 23:25:08 -0000 "Matthew N. Dodd" writes: > What model and bios revision? (Find out with the 'vpd' driver or go > into the BIOS setup.) Yep, a 600E (2645BG). I don't know exactly what BIOS version I have, but I kept it fairly up to date until a fellow committer who shall remain nameless ran off with the floppy about a year and a half ago. If there's any way to flash the BIOS from Windows, I can try that. Regarding vpd, some documentation (at least in NOTES) would be nice. I shouldn't have to RTFS to understand what you're talking about. > It won't work at all with ACPI; don't use it. "don't use ACPI" or "don't use sio"? DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 16:47:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2AFDF37B401 for ; Mon, 31 Mar 2003 16:47:05 -0800 (PST) Received: from digger1.defence.gov.au (digger1.defence.gov.au [203.5.217.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E61E43F3F for ; Mon, 31 Mar 2003 16:47:03 -0800 (PST) (envelope-from Alex.Wilkinson@dsto.defence.gov.au) Received: from dsto-ms2.dsto.defence.gov.au (dsto-ms2.dsto.defence.gov.au [131.185.2.150]) by digger1.defence.gov.au with ESMTP id h310lP7U020996 for ; Tue, 1 Apr 2003 10:17:26 +0930 (CST) Received: from muttley.dsto.defence.gov.au (unverified) by dsto-ms2.dsto.defence.gov.au ; Tue, 1 Apr 2003 10:14:34 +0930 Received: from ednex501.dsto.defence.gov.au (ednex501.dsto.defence.gov.au [131.185.2.81])h310Vkh16286; Tue, 1 Apr 2003 10:01:46 +0930 (CST) Received: from squirm.dsto.defence.gov.au ([131.185.75.211]) by ednex501.dsto.defence.gov.au with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id HC7B4JPH; Tue, 1 Apr 2003 10:01:43 +0930 Date: Tue, 1 Apr 2003 10:01:55 +0930 (CST) From: "Wilkinson,Alex" X-X-Sender: wilkinsa@squirm.dsto.defence.gov.au To: "Evan S." In-Reply-To: <200303311629.07310.evms@bu.edu> Message-ID: <20030401100112.D31575@squirm.dsto.defence.gov.au> References: <200303301558.01010.evms@bu.edu> <200303311629.07310.evms@bu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: hackers@freebsd.org cc: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= Subject: Re: jiffy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Alex.Wilkinson@dsto.defence.gov.au List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 00:47:05 -0000 erm...what are jiffies ? - aW Sorry; I'll be more specific. I'm porting a deadline-scheduler from Linux over to FreeBSD that determines deadines by using jiffies. For example, process 1's deadline is when jiffies=10 and so on. I just discovered the global variable 'ticks' which seems to suit my needs, is this correct? From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 16:48:53 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7591437B401 for ; Mon, 31 Mar 2003 16:48:53 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 997C243FA3 for ; Mon, 31 Mar 2003 16:48:52 -0800 (PST) (envelope-from winter@jurai.net) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h310mjEF031461; Mon, 31 Mar 2003 19:48:45 -0500 (EST) (envelope-from winter@jurai.net) Date: Mon, 31 Mar 2003 19:48:45 -0500 (EST) From: "Matthew N. Dodd" To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= In-Reply-To: Message-ID: <20030331194711.D1365@sasami.jurai.net> References: <20030330.191944.62348635.imp@bsdimp.com> <20030331.091739.08149174.imp@bsdimp.com> <20030331163059.E1365@sasami.jurai.net> <20030331164644.A1365@sasami.jurai.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 00:48:53 -0000 On Tue, 1 Apr 2003, Dag-Erling [iso-8859-1] Smørgrav wrote: > Regarding vpd, some documentation (at least in NOTES) would be nice. > I shouldn't have to RTFS to understand what you're talking about. Build /sys/modules/bios/vpd, install/load it, read the kernel output. It also provides all the information via sysctl: # sysctl hw.vpd hw.vpd.machine.type.0: 2645 hw.vpd.machine.model.0: 8BU hw.vpd.build_id.0: INET36WW hw.vpd.serial.box.0: 78PLGM9 hw.vpd.serial.planar.0: J1B369624W5 > > It won't work at all with ACPI; don't use it. > > "don't use ACPI" or "don't use sio"? Don't use ACPI. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 17:26:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3819837B401 for ; Mon, 31 Mar 2003 17:26:35 -0800 (PST) Received: from parmenides.zen.co.uk (parmenides.zen.co.uk [212.23.8.69]) by mx1.FreeBSD.org (Postfix) with SMTP id ED93143F3F for ; Mon, 31 Mar 2003 17:26:33 -0800 (PST) (envelope-from tony@ubik.demon.co.uk) Received: (qmail 8757 invoked from network); 1 Apr 2003 01:26:32 -0000 Received: from protagoras.zen.co.uk (212.23.8.61) by parmenides.zen.co.uk with QMQP; 1 Apr 2003 01:26:32 -0000 Received: from dsl-217-155-183-134.zen.co.uk (HELO ubik.demon.co.uk) (217.155.183.134) by protagoras.zen.co.uk with SMTP; 1 Apr 2003 01:26:32 -0000 X-Zen-Trace: 217.155.183.134 Message-ID: <0+3KlPAxpOi+IwM1@ubik.demon.co.uk> Date: Tue, 1 Apr 2003 01:25:05 +0000 To: freebsd-hackers@freebsd.org, "Wilkinson,Alex" From: Anthony Naggs References: <200303301558.01010.evms@bu.edu> <200303311629.07310.evms@bu.edu> <20030401100112.D31575@squirm.dsto.defence.gov.au> In-Reply-To: <20030401100112.D31575@squirm.dsto.defence.gov.au> MIME-Version: 1.0 X-Mailer: Turnpike Integrated Version 5.01 U Subject: Re: jiffy. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 01:26:35 -0000 In article <20030401100112.D31575@squirm.dsto.defence.gov.au>, Wilkinson,Alex writes >erm...what are jiffies ? http://dictionary.reference.com/search?q=jiffy The last definition on the page starts: jiffy n. 1. The duration of one tick of the system clock on your computer (see tick). Often one AC cycle time (1/60 second in the U.S. and Canada, 1/50 most other places), but more recently 1/100 sec has become common. ... The Commodore PET, for example, called its 1/60 second clock tick a jiffy. Used for timing relatively short intervals. ttfn, Tony From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 19:33:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9CECD37B401 for ; Mon, 31 Mar 2003 19:33:41 -0800 (PST) Received: from kientzle.com (h-66-166-149-50.SNVACAID.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ACF143FBD for ; Mon, 31 Mar 2003 19:33:40 -0800 (PST) (envelope-from kientzle@acm.org) Received: from acm.org (ugly.x.kientzle.com [66.166.149.51]) by kientzle.com (8.11.3/8.11.3) with ESMTP id h313XRv46116; Mon, 31 Mar 2003 19:33:27 -0800 (PST) (envelope-from kientzle@acm.org) Message-ID: <3E8908B1.1080100@acm.org> Date: Mon, 31 Mar 2003 19:34:09 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:0.9.6) Gecko/20011206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jordan K Hubbard References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: BSD tar (was Re: Making pkg_XXX tools smarter about file types...) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kientzle@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 03:33:42 -0000 Jordan K Hubbard wrote: > Given ample personal experience with this issue, all I can say is that > actions speak a lot louder than words where it's concerned. :-) > > On Sunday, March 30, 2003, at 11:47 AM, Tim Kientzle wrote: >> I've given up trying to argue for a >> well-designed package file format. >> tar works well enough, I suppose. >> (Better than the oft-suggested >> 'zip' format. Ugh.) Yes, people have pointed out to me before that email does not convey irony at all well. I should be more careful about that. As it turns out, Jordan, the major reason I've given up trying to argue for a new format is that I now believe that 'tar' is actually a pretty reasonable choice. (I think that the performance issues that people have complained about can be addressed by improving the pkg_* tool implementations without changing the file format. I've started working on that... ;-) Tim From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 21:45:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BA9A37B401 for ; Mon, 31 Mar 2003 21:45:52 -0800 (PST) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6E5043FA3 for ; Mon, 31 Mar 2003 21:45:45 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.9/8.12.6) with ESMTP id h314kE21026802; Tue, 1 Apr 2003 14:16:15 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Manish Sapariya" , freebsd-hackers@freebsd.org Date: Tue, 1 Apr 2003 14:16:14 +0930 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304011416.14173.doconnor@gsoft.com.au> X-Spam-Score: -1.5 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: Re: Debugging FreeBSD 4.7 using gdb remote machine X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 05:45:52 -0000 On Mon, 31 Mar 2003 21:02, Manish Sapariya wrote: > Only once I was ablt to debug successfully. > In my VMWARE setup also I can do the debugging without > any problem. > > I even faced the same problem with different set of machines. > > Is there anything that I am missing in configuration or gdb stuff, > or cabling problem? (I tested with kermit that the serial connection > setup and is working fine, or it seems to be ;-() I would try reducing your serial port speed. I have had trouble doing anything above 9600 baud which is quite irritating :( -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 22:34:04 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6854737B401 for ; Mon, 31 Mar 2003 22:34:04 -0800 (PST) Received: from hotmail.com (f33.law14.hotmail.com [64.4.21.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1314343F75 for ; Mon, 31 Mar 2003 22:34:04 -0800 (PST) (envelope-from meetmanya@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 31 Mar 2003 22:34:03 -0800 Received: from 202.54.40.210 by lw14fd.law14.hotmail.msn.com with HTTP; Tue, 01 Apr 2003 06:34:03 GMT X-Originating-IP: [202.54.40.210] X-Originating-Email: [meetmanya@hotmail.com] From: "Manish Sapariya" To: doconnor@gsoft.com.au, freebsd-hackers@freebsd.org Date: Tue, 01 Apr 2003 12:04:03 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 01 Apr 2003 06:34:03.0992 (UTC) FILETIME=[B0439D80:01C2F818] Subject: Re: Debugging FreeBSD 4.7 using gdb remote machine X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 06:34:04 -0000 Hi, >I would try reducing your serial port speed. > >I have had trouble doing anything above 9600 baud which is quite irritating >:( Actually I am running with 9600 baud only. Would it help if I further reduce baud? Anyway, I shall run it with still lower baud and check. Thanks and Regards, Manish _________________________________________________________________ Visit Malaysia. Win a free trip! http://server1.msn.co.in/msnspecials/malaysiatourism/index.asp Have an exotic holiday From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 31 22:38:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EC6837B401 for ; Mon, 31 Mar 2003 22:38:42 -0800 (PST) Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id D371043FAF for ; Mon, 31 Mar 2003 22:38:40 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from localhost (localhost [127.0.0.1]) by cain.gsoft.com.au (8.12.9/8.12.6) with ESMTP id h316ca21028995; Tue, 1 Apr 2003 16:08:37 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Manish Sapariya" Date: Tue, 1 Apr 2003 16:08:36 +0930 User-Agent: KMail/1.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304011608.36275.doconnor@gsoft.com.au> X-Spam-Score: -1.5 () CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org Subject: Re: Debugging FreeBSD 4.7 using gdb remote machine X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 06:38:42 -0000 On Tue, 1 Apr 2003 16:04, Manish Sapariya wrote: > >I have had trouble doing anything above 9600 baud which is quite > > irritating > > > >:( > > Actually I am running with 9600 baud only. > Would it help if I further reduce baud? > Anyway, I shall run it with still lower baud and check. Hmm, worth a shot I guess. I found 9600 baud worked quite well when I was doing it, but I haven't needed to use it for a while. -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5 From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 00:51:00 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D14137B404 for ; Tue, 1 Apr 2003 00:51:00 -0800 (PST) Received: from mailface.roving.com (mailface.roving.com [63.251.135.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4503443FB1 for ; Tue, 1 Apr 2003 00:50:58 -0800 (PST) (envelope-from ESC1011088334329_1011074844992@in.roving.com) Received: from tracking2 (tracking2.roving.com [10.20.40.142]) by mailface.roving.com (Postfix) with ESMTP id CFA973455B for ; Tue, 1 Apr 2003 04:48:06 -0500 (EST) Message-ID: <1011088334329.1011074844992.200317@scheduler> From: The Fat Cat To: freebsd-hackers@freebsd.org Mime-Version: 1.0 X-Roving-Queued: 20030401 03:50:50.509 X-Mailer: Roving Constant Contact 6.0.Patch648 (http://www.constantcontact.com) X-Roving-ID: 1011088334329 X-Return-Path-Hint: ESC1011088334329_1011074844992@in.roving.com Date: Tue, 1 Apr 2003 04:48:06 -0500 (EST) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Fat Cat Media Newsletter X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: info@fatcatmedia.tv List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 08:51:00 -0000 Fat Cat Media Newsletter Newsletter Subtitle (Month 2002) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Greetings! Fat Cat have returned from Miami a bit jaded but ready=20 to go - See the pictures and stories from Miami on the=20 site very soon. We are taking a long awaited rest this weekend but we=20 return the following weekend with our history of house=20 night 'Remember The Daze' @ Flux. After the huge response from the launch party last=20 month, please ensure that you email your requirements=20 as soon as you can ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ in this issue ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Sugarfunk 'Remember The Daze' * Fused @ The Cross Sugarfunk 'Remember The Daze' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Saturday 12th April2003, sees the return of=20 Sugarfunks sister night - 'Remember The Daze' at Flux,=20 Southend Road, Beckenham, Kent. DJ's Ant Packham & Dean Fererro will joined by a legendary producer/DJ Daryl B for night of non stop=20 dancing with music from 1989 - 2003. Expect a sore throat on Sunday morning as the vocals=20 are churned out one by one. Pictures of the launch night will be available shortly on=20 www.fatcatmedia.tv. For concession guestlist reservations of =A310.00 - Please=20 send your details to guestlist@fatcatmedia.tv. Remember Girls are FREE before 10pm. Fused @ The Cross ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Easter Thursday 17th April 2003 - 9pm - late. Clockwork Orange meets Shakavara for the launch of=20 this stunning new night and Londons long established=20 and much loved Cross. Featuring DJ's Joey Negro, Bobbie & Steve, Ant=20 Packham, James Parker, Andy Manston & Kriss da Rang=20 provide the funky sounds for this launch night. Fat Cat has negotiated a concession guest list for this=20 event, so please submit your name and name & email=20 address of your guests to; guestlist@fatcatmedia.tv ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Quick Links... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The Cross >> http://rs6.net/tn.jsp?t=3Dzph4yun6.aksdmun6.avpizun6&p=3Dhttp%= 3A%2F%2Fwww.the-cross.co.uk Holmes Place >> http://rs6.net/tn.jsp?t=3Dzph4yun6.aksdmun6.8i5cmun6&p=3Dht= tp%3A%2F%2Fwww.holmeplace.com Ibiza Online >> http://rs6.net/tn.jsp?t=3Dzph4yun6.aksdmun6.7i5cmun6&p=3Dht= tp%3A%2F%2Fwww.ibiza-online.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ email: info@fatcatmedia.tv voice: +442086589362 web: http://www.fatcatmedia.tv ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This email was sent to freebsd-hackers@freebsd.org, by Fat Cat Media. Update your profile http://ccprod.roving.com/roving/d.jsp?p=3Doo&m=3D1011061323653&ea=3Dfreebsd= -hackers@freebsd.org Instant removal with SafeUnsubscribe(TM) http://ccprod.roving.com/roving/d.jsp?p=3Dun&m=3D1011061323653&ea=3Dfreebsd= -hackers@freebsd.org Privacy Policy: http://ccprod.roving.com/roving/CCPrivacyPolicy.jsp=20 Powered by Constant Contact(R) www.constantcontact.com From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 01:15:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A551D37B401 for ; Tue, 1 Apr 2003 01:15:58 -0800 (PST) Received: from canning.wemm.org (canning.wemm.org [192.203.228.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 57ADC43FAF for ; Tue, 1 Apr 2003 01:15:58 -0800 (PST) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by canning.wemm.org (Postfix) with ESMTP id 4436B2A7EA for ; Tue, 1 Apr 2003 01:15:58 -0800 (PST) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: freebsd-hackers@freebsd.org In-Reply-To: <1011088334329.1011074844992.200317@scheduler> Date: Tue, 01 Apr 2003 01:15:58 -0800 From: Peter Wemm Message-Id: <20030401091558.4436B2A7EA@canning.wemm.org> Subject: Re: Fat Cat Media Newsletter X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 09:15:58 -0000 Sorry, this one slipped through. I had just reset the spamassassin bayesian filter because of a rather silly thing that I did that poisoned the database. (hint: dont whitelist your mailing list sender address, that causes most spam to be scored as about -90 or so and autolearned as ham) Its interesting to see the mime stripping at work though. This had fairly nasty tracking and javascript in the original email. Unfortunately the stripping makes downstream spamassassins even less interested. Mine at home rated the "cleaned" version at 0.5 :-(. Cheers, -Peter -- Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com "All of this is for nothing if we don't go to the stars" - JMS/B5 From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 01:31:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23F1437B401 for ; Tue, 1 Apr 2003 01:31:58 -0800 (PST) Received: from chaos.evolve.za.net (chaos.evolve.za.net [196.34.172.107]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8ABF643F3F for ; Tue, 1 Apr 2003 01:31:55 -0800 (PST) (envelope-from cole@optec.co.za) Received: from amavis by chaos.evolve.za.net with scanned-ok (Exim 3.36 #1) id 190I7R-000CJO-00 for freebsd-hackers@freebsd.org; Tue, 01 Apr 2003 11:31:49 +0200 Received: from [196.39.126.250] (helo=stalker) by chaos.evolve.za.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.36 #1) id 190I7Q-000CJD-00 for freebsd-hackers@freebsd.org; Tue, 01 Apr 2003 11:31:49 +0200 Message-ID: <002301c2f831$d847b820$4206000a@stalker> From: "Stalker" To: Date: Tue, 1 Apr 2003 11:34:03 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Virus-Scanned: by Opteq - www.optec.co.za Subject: mbuf question again X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 09:31:58 -0000 Hi I would like to know if it is possible to write a program to check which mbuf's are allocated to which programs that are currently running, or is this totally not possible? If it is possible, could someone point me in the right direction as in which libraries / functions / reading material i would need to look at in order to do so? Thanx Cole / Stalker From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 04:33:36 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC6A937B401 for ; Tue, 1 Apr 2003 04:33:36 -0800 (PST) Received: from comp.chem.msu.su (comp-ext.chem.msu.su [158.250.32.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 03B1E43F3F for ; Tue, 1 Apr 2003 04:33:31 -0800 (PST) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.3p2/8.12.3) with ESMTP id h31CXKhE010334 for ; Tue, 1 Apr 2003 16:33:20 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.3p2/8.12.3/Submit) id h31CXKP1010333 for hackers@freebsd.org; Tue, 1 Apr 2003 16:33:20 +0400 (MSD) (envelope-from yar) Date: Tue, 1 Apr 2003 16:33:19 +0400 From: Yar Tikhiy To: hackers@freebsd.org Message-ID: <20030401123319.GA8399@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i Subject: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 12:33:37 -0000 Hello, I'm getting the following DIAGNOSTIC messages on my -CURRENT box: Expensive timeout(9) function: 0xc02677e0(0) 0.006095064 s (it's uma_timeout(), which triggers the warning once per boot) Expensive timeout(9) function: 0xc0141610(0xc0dfcc00) 0.006581587 s Expensive timeout(9) function: 0xc0141610(0xc0dfcc00) 0.008510173 s (and this one is fxp_tick(); it triggers the warning from time to time) Are those warnings harmless? As far as my understanding of the issue reaches, a timeout function is called under protection of the Giant mutex unless it's marked as MP-safe, and that's the reason to spend as little time as possible in it. Right? -- Yar From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 04:37:49 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F37D537B401; Tue, 1 Apr 2003 04:37:48 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id E6D0743F75; Tue, 1 Apr 2003 04:37:47 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h31CbjSM032985; Tue, 1 Apr 2003 14:37:45 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Yar Tikhiy From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 01 Apr 2003 16:33:19 +0400." <20030401123319.GA8399@comp.chem.msu.su> Date: Tue, 01 Apr 2003 14:37:45 +0200 Message-ID: <32984.1049200665@critter.freebsd.dk> cc: hackers@freebsd.org Subject: Re: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 12:37:49 -0000 In message <20030401123319.GA8399@comp.chem.msu.su>, Yar Tikhiy writes: >Hello, > >I'm getting the following DIAGNOSTIC messages on my -CURRENT box: > > Expensive timeout(9) function: 0xc02677e0(0) 0.006095064 s > >(it's uma_timeout(), which triggers the warning once per boot) > > Expensive timeout(9) function: 0xc0141610(0xc0dfcc00) 0.006581587 s > Expensive timeout(9) function: 0xc0141610(0xc0dfcc00) 0.008510173 s > >(and this one is fxp_tick(); it triggers the warning from time to time) > >Are those warnings harmless? Yes, but indicative of code which needs attention, but harmless. >As far as my understanding of the issue reaches, a timeout function >is called under protection of the Giant mutex unless it's marked >as MP-safe, and that's the reason to spend as little time as possible >in it. Right? Yes, but there are other reasons why you would generally not want to spend too much time in the timeout function, mostly that it may screw up other time-critical things in the system. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 05:17:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6589637B405 for ; Tue, 1 Apr 2003 05:17:50 -0800 (PST) Received: from comp.chem.msu.su (comp-ext.chem.msu.su [158.250.32.157]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4987243F85 for ; Tue, 1 Apr 2003 05:17:45 -0800 (PST) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.12.3p2/8.12.3) with ESMTP id h31DGHhE012567; Tue, 1 Apr 2003 17:17:38 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.12.3p2/8.12.3/Submit) id h31DGGCC012566; Tue, 1 Apr 2003 17:16:16 +0400 (MSD) (envelope-from yar) Date: Tue, 1 Apr 2003 17:16:16 +0400 From: Yar Tikhiy To: Poul-Henning Kamp Message-ID: <20030401131616.GA11282@comp.chem.msu.su> References: <20030401123319.GA8399@comp.chem.msu.su> <32984.1049200665@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32984.1049200665@critter.freebsd.dk> User-Agent: Mutt/1.5.3i cc: hackers@freebsd.org Subject: Re: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 13:17:50 -0000 On Tue, Apr 01, 2003 at 02:37:45PM +0200, Poul-Henning Kamp wrote: > In message <20030401123319.GA8399@comp.chem.msu.su>, Yar Tikhiy writes: > >Hello, > > > >I'm getting the following DIAGNOSTIC messages on my -CURRENT box: > > > > Expensive timeout(9) function: 0xc02677e0(0) 0.006095064 s > > > >(it's uma_timeout(), which triggers the warning once per boot) > > > > Expensive timeout(9) function: 0xc0141610(0xc0dfcc00) 0.006581587 s > > Expensive timeout(9) function: 0xc0141610(0xc0dfcc00) 0.008510173 s > > > >(and this one is fxp_tick(); it triggers the warning from time to time) > > > >Are those warnings harmless? > > Yes, but indicative of code which needs attention, but harmless. > > >As far as my understanding of the issue reaches, a timeout function > >is called under protection of the Giant mutex unless it's marked > >as MP-safe, and that's the reason to spend as little time as possible > >in it. Right? > > Yes, but there are other reasons why you would generally not want > to spend too much time in the timeout function, mostly that it may > screw up other time-critical things in the system. Thanks for your explanation! I hope this little thread will draw the attention of the responsible or interested parties to the warnings ;-) -- Yar From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 06:08:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9DD737B401 for ; Tue, 1 Apr 2003 06:08:01 -0800 (PST) Received: from relay1.ntu-kpi.kiev.ua (oberon.ntu-kpi.kiev.ua [195.245.194.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ACB243F93 for ; Tue, 1 Apr 2003 06:07:56 -0800 (PST) (envelope-from diman@pth.ntu-kpi.kiev.ua) Received: by relay1.ntu-kpi.kiev.ua (Postfix, from userid 426) id E009819B60; Tue, 1 Apr 2003 17:07:31 +0300 (EEST) Received: from mate.pth.ntu-kpi.kiev.ua (if100Mbit.pth.ntu-kpi.kiev.ua [10.100.5.180]) by relay1.ntu-kpi.kiev.ua (Postfix) with SMTP id 6F08D19B1E for ; Tue, 1 Apr 2003 17:07:18 +0300 (EEST) Received: (qmail 76966 invoked by uid 1015); 1 Apr 2003 14:07:07 -0000 Date: Tue, 1 Apr 2003 17:07:07 +0300 From: "Dmitry V.Galant" To: freebsd-hackers@freebsd.org Message-ID: <20030401140706.GA35382@pth.ntu-kpi.kiev.ua> References: <002301c2f831$d847b820$4206000a@stalker> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <002301c2f831$d847b820$4206000a@stalker> Subject: Re: mbuf question again X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 14:08:02 -0000 On Tue, Apr 01, 2003 at 11:34:03AM +0200, Stalker wrote: > > Hi > > I would like to know if it is possible to write a program to check which > mbuf's are allocated to which programs that are currently running, or is > this totally not possible? > > If it is possible, could someone point me in the right direction as in which > libraries / functions / reading material i would need to look at in order to > do so? It's not so easy. mbuf objects primary used to represent fragmented packet in the system or incapsulated packet as list of protocols headers and packet data. mbuf objects are allocated when NIC receive packet and transfer it from NIC's memory to main RAM. In that moment mbuf object is unqueued and referenced only by interface driver code so you cant find a system structure points to mbuf object. Packet incapsulated in mbuf object can be bridged out, fast-forwarded or queued for other processing. Network stack then dequeue it and pop it up until packet is added to process socket buffer sockbuf (see sys/socketvar.h) [*] At this moment you can map mbufs against running processes. But in the context of fixing network problems it can be total useless to view this mapping. Same process is on sending packets. Theoretically it's possible to write kernel module to print all allocated mbufs in the system but it's much easy just to coredump the kernel, save core and use gdb for browsing. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 07:57:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5000937B401 for ; Tue, 1 Apr 2003 07:57:41 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 363DC43FB1 for ; Tue, 1 Apr 2003 07:57:40 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 42506 invoked from network); 1 Apr 2003 15:57:39 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 1 Apr 2003 15:57:39 -0000 X-pair-Authenticated: 209.68.2.70 Date: Tue, 1 Apr 2003 09:54:04 -0600 (CST) From: Mike Silbersack To: Yar Tikhiy In-Reply-To: <20030401131616.GA11282@comp.chem.msu.su> Message-ID: <20030401095201.O1612@odysseus.silby.com> References: <20030401123319.GA8399@comp.chem.msu.su> <32984.1049200665@critter.freebsd.dk> <20030401131616.GA11282@comp.chem.msu.su> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Poul-Henning Kamp cc: hackers@freebsd.org Subject: Re: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 15:57:41 -0000 On Tue, 1 Apr 2003, Yar Tikhiy wrote: > Thanks for your explanation! > > I hope this little thread will draw the attention of the > responsible or interested parties to the warnings ;-) > > -- > Yar The _tick routines are not easy to fix, FWIW. MII access functions are quite time consuming almost any way you look at it. Well, actually, I figured out a way to make them much faster, but it's been a few months since I looked at that patch, I guess I should pull it back up and post it somewhere... Mike "Silby" Silbersack From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 07:59:59 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F10937B401; Tue, 1 Apr 2003 07:59:59 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4412443FCB; Tue, 1 Apr 2003 07:59:58 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h31FxtSM036449; Tue, 1 Apr 2003 17:59:56 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Mike Silbersack From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 01 Apr 2003 09:54:04 MDT." <20030401095201.O1612@odysseus.silby.com> Date: Tue, 01 Apr 2003 17:59:55 +0200 Message-ID: <36448.1049212795@critter.freebsd.dk> cc: Yar Tikhiy cc: hackers@freebsd.org Subject: Re: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 15:59:59 -0000 In message <20030401095201.O1612@odysseus.silby.com>, Mike Silbersack writes: > > >On Tue, 1 Apr 2003, Yar Tikhiy wrote: > >> Thanks for your explanation! >> >> I hope this little thread will draw the attention of the >> responsible or interested parties to the warnings ;-) >> >> -- >> Yar > >The _tick routines are not easy to fix, FWIW. MII access functions are >quite time consuming almost any way you look at it. I'm not sure the _tick functions should even be called from a timeout(). In many ways it seems preferable to me to have then run sequentially from a single thread, possibly via a task-queue. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 08:53:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6E8037B404 for ; Tue, 1 Apr 2003 08:53:58 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id ACB6843F93 for ; Tue, 1 Apr 2003 08:53:57 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 67401 invoked from network); 1 Apr 2003 16:53:56 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 1 Apr 2003 16:53:56 -0000 X-pair-Authenticated: 209.68.2.70 Date: Tue, 1 Apr 2003 10:50:22 -0600 (CST) From: Mike Silbersack To: Poul-Henning Kamp In-Reply-To: <36448.1049212795@critter.freebsd.dk> Message-ID: <20030401104630.T1612@odysseus.silby.com> References: <36448.1049212795@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Yar Tikhiy cc: hackers@freebsd.org Subject: Re: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 16:53:59 -0000 On Tue, 1 Apr 2003, Poul-Henning Kamp wrote: > >The _tick routines are not easy to fix, FWIW. MII access functions are > >quite time consuming almost any way you look at it. > > I'm not sure the _tick functions should even be called from a timeout(). > > In many ways it seems preferable to me to have then run sequentially > from a single thread, possibly via a task-queue. > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 Yeah, I suppose limiting it to one mii_tick routine per second would help somewhat... but it's still a bad situation. Actually, we could improve it quite a bit if someone adds NANODELAY() (hint, hint...) Couldn't we have a first-run nanodelay that just used nanotime to do the counting for it? Mike "Silby" Silbersack From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 09:57:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4218637B401; Tue, 1 Apr 2003 09:57:21 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4254343F85; Tue, 1 Apr 2003 09:57:20 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.8/8.12.8) with ESMTP id h31HvHSM057216; Tue, 1 Apr 2003 19:57:18 +0200 (CEST) (envelope-from phk@phk.freebsd.dk) To: Mike Silbersack From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 01 Apr 2003 10:50:22 MDT." <20030401104630.T1612@odysseus.silby.com> Date: Tue, 01 Apr 2003 19:57:17 +0200 Message-ID: <57215.1049219837@critter.freebsd.dk> cc: Yar Tikhiy cc: hackers@freebsd.org Subject: Re: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 17:57:21 -0000 In message <20030401104630.T1612@odysseus.silby.com>, Mike Silbersack writes: >Yeah, I suppose limiting it to one mii_tick routine per second would help >somewhat... but it's still a bad situation. I wasn't advocating slowing it down that much, merely trying to run it sequentially out of timeout()'s hair. >Actually, we could improve it quite a bit if someone adds NANODELAY() >(hint, hint...) Couldn't we have a first-run nanodelay that just used >nanotime to do the counting for it? It should probably be called either nanosleep() or nanospin(). It is not a trivial task to do it. Writing the short end calibration code to be sufficiently robust and precise will take some time and a lot of experiments. There used to be a crumbled note with this somewhere in my stack of TODO items, but by now I suspect that it is ironed perfectly flat from the weight of all the stuff on top of it. But to add to my knowledge-base: What length of delays are you looking for ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 11:35:00 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A4C937B404 for ; Tue, 1 Apr 2003 11:35:00 -0800 (PST) Received: from relay.pair.com (relay.pair.com [209.68.1.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B99143FBF for ; Tue, 1 Apr 2003 11:34:59 -0800 (PST) (envelope-from silby@silby.com) Received: (qmail 36617 invoked from network); 1 Apr 2003 19:34:57 -0000 Received: from niwun.pair.com (HELO localhost) (209.68.2.70) by relay.pair.com with SMTP; 1 Apr 2003 19:34:57 -0000 X-pair-Authenticated: 209.68.2.70 Date: Tue, 1 Apr 2003 13:31:30 -0600 (CST) From: Mike Silbersack To: Poul-Henning Kamp In-Reply-To: <57215.1049219837@critter.freebsd.dk> Message-ID: <20030401132751.I564@odysseus.silby.com> References: <57215.1049219837@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Yar Tikhiy cc: hackers@freebsd.org Subject: Re: "Expensive timeout(9) function..." X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 19:35:00 -0000 On Tue, 1 Apr 2003, Poul-Henning Kamp wrote: > >Yeah, I suppose limiting it to one mii_tick routine per second would help > >somewhat... but it's still a bad situation. > > I wasn't advocating slowing it down that much, merely trying to run it > sequentially out of timeout()'s hair. Either way would be fine, I don't think there's any major need for a poll once per second. > There used to be a crumbled note with this somewhere in my stack > of TODO items, but by now I suspect that it is ironed perfectly > flat from the weight of all the stuff on top of it. > > But to add to my knowledge-base: What length of delays are you > looking for ? > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 I'd be happy with 100ns granularity (rounded up), with no major concern for jitter. For the purposes of the MII delays, all we really care is that we wait long enough; if we wait too long sometimes, that's no big deal. For reference, 3Com's documentation states that 40ns should be enough, but our current DELAY on i386 seems to take a few uS last time I checked. So, even if you can only get 300ns granularity, that'd still save a lot of time. This is why I suggested using something which just reads nanotime in a loop; nanotime should be accurate enough, right? BTW, does it appear to everyone else that half of these messages are getting dropped on their way to the lists, or is it just me? Mike "Silby" Silbersack From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 12:13:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5015937B401 for ; Tue, 1 Apr 2003 12:13:55 -0800 (PST) Received: from ns.yogotech.com (ns.yogotech.com [206.127.123.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F32D43FAF for ; Tue, 1 Apr 2003 12:13:54 -0800 (PST) (envelope-from nate@yogotech.com) Received: from emerger.yogotech.com (emerger.yogotech.com [206.127.123.131]) by ns.yogotech.com (8.9.3p2/8.9.3) with ESMTP id NAA10058; Tue, 1 Apr 2003 13:13:44 -0700 (MST) (envelope-from nate@yogotech.com) Received: (from nate@localhost) by emerger.yogotech.com (8.12.8/8.12.8) id h31KDaEV027067; Tue, 1 Apr 2003 13:13:36 -0700 (MST) (envelope-from nate) From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16009.62192.552107.137267@emerger.yogotech.com> Date: Tue, 1 Apr 2003 13:13:36 -0700 To: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) In-Reply-To: References: <20030330.191944.62348635.imp@bsdimp.com> <20030331.091739.08149174.imp@bsdimp.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid cc: freebsd-hackers@freebsd.org cc: dgilbert@velocet.ca Subject: Re: [hackers] Re: Realtek X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Nate Williams List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 20:13:55 -0000 > > An address that works. Without further knowledge of your laptop, it > > is impossible for me to say. You will have to find this out by trial > > and error. Some folks like 0xf8000000, others like 0x400000000 and > > one uses 0xd4000, but the last one I don't recommend. > > 0xf8000000 seems to work on my StinkPad (still can't get the serial > port to work though). You have to enable it using the PS2 'DOS' command (the Windows one won't work, for whatever reason). Once it's probably enabled/configured, it acts like any other normal serial port. (It's a pain to get it working right, since it involves dozens of reboots in order to understand what exactly the configuration *should* be. From memory, it wasn't as obvious as it could have been.) Nate From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 1 12:56:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 185F937B401 for ; Tue, 1 Apr 2003 12:56:05 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B97543FAF for ; Tue, 1 Apr 2003 12:56:04 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0085.cvx40-bradley.dialup.earthlink.net ([216.244.42.85] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 190SnS-0002jX-00; Tue, 01 Apr 2003 12:55:55 -0800 Message-ID: <3E89FC8D.90AFF0F@mindspring.com> Date: Tue, 01 Apr 2003 12:54:37 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Stalker References: <002301c2f831$d847b820$4206000a@stalker> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a489b7aca4d6e030e47bc37acd3d1d2a12387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org Subject: Re: mbuf question again X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2003 20:56:05 -0000 Stalker wrote: > I would like to know if it is possible to write a program to check which > mbuf's are allocated to which programs that are currently running, or is > this totally not possible? > > If it is possible, could someone point me in the right direction as in which > libraries / functions / reading material i would need to look at in order to > do so? The mbufs are not accounted to particular processes; our TCP/IP stack is kernel code, not user space code. 8-). If you look at the output of "netstat -aA", you will get the application data pending in so_snd and so_rcv queues. You don't get the mbufs "in progress", and you don't get the size of the freelist; you can approximate the second one with "vmstat -m", but the "in progress" numbers are simply not available, because it's more important to use the memory and CPU for actual data, rather than accounting structures. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 05:44:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5373137B401; Wed, 2 Apr 2003 05:44:32 -0800 (PST) Received: from demos.su (mx.demos.su [194.87.0.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADAEF43F75; Wed, 2 Apr 2003 05:44:30 -0800 (PST) (envelope-from mitya@fling-wing.demos.su) Received: from [194.87.5.69] (HELO fling-wing.demos.su) by demos.su (CommuniGate Pro SMTP 4.0.6/D3) with ESMTP-TLS id 65550501; Wed, 02 Apr 2003 17:44:29 +0400 Received: from fling-wing.demos.su (localhost [127.0.0.1]) by fling-wing.demos.su (8.12.9/8.12.6) with ESMTP id h32DiTAu054123; Wed, 2 Apr 2003 17:44:29 +0400 (MSD) (envelope-from mitya@fling-wing.demos.su) Received: (from mitya@localhost) by fling-wing.demos.su (8.12.9/8.12.6/Submit) id h32DiSmF054122; Wed, 2 Apr 2003 17:44:28 +0400 (MSD) Date: Wed, 2 Apr 2003 17:44:28 +0400 From: Dmitry Sivachenko To: hackers@freebsd.org Message-ID: <20030402134428.GA43549@fling-wing.demos.su> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline WWW-Home-Page: http://mitya.pp.ru/ X-PGP-Key: http://mitya.pp.ru/mitya.asc User-Agent: Mutt/1.5.4i Subject: Repeated similar panics on -STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 13:44:32 -0000 Hello! We have three machines under relatively high load. They are running -STABLE on the same hardware with 2 processors (and SMP kernel). Periodically (approximately once a week) they panic with similar symptoms: # gdb -k kernel.debug vmcore.2 GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"...Deprecated bfd_read called a t /mnt/se3/releng_4/src/gnu/usr.bin/binutils/gdb/../../../../contrib/gdb/gdb/dbx read.c line 2627 in elfstab_build_psymtabs Deprecated bfd_read called at /mnt/se3/releng_4/src/gnu/usr.bin/binutils/gdb/../ ../../../contrib/gdb/gdb/dbxread.c line 933 in fill_symbuf SMP 2 cpus IdlePTD at phsyical address 0x0034f000 initial pcb at physical address 0x002bd6a0 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode mp_lock = 01000002; cpuid = 1; lapic.id = 00000000 fault virtual address = 0x5cdd8000 fault code = supervisor read, page not present instruction pointer = 0x8:0xc015daff stack pointer = 0x10:0xeb278e44 frame pointer = 0x10:0xeb278e68 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 65648 (cronolog) interrupt mask = net tty bio cam <- SMP: XXX trap number = 12 panic: page fault mp_lock = 01000002; cpuid = 1; lapic.id = 00000000 boot() called on cpu#1 syncing disks... Fatal trap 12: page fault while in kernel mode mp_lock = 01000003; cpuid = 1; lapic.id = 00000000 fault virtual address = 0x5cdd8000 fault code = supervisor read, page not present instruction pointer = 0x8:0xc015daff stack pointer = 0x10:0xeb278b68 frame pointer = 0x10:0xeb278b8c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 65648 (cronolog) interrupt mask = net tty bio cam <- SMP: XXX trap number = 12 panic: page fault mp_lock = 01000003; cpuid = 1; lapic.id = 00000000 boot() called on cpu#1 Uptime: 5d0h48m54s dumping to dev #da/0x20001, offset 2097280 dump 1023 1022 1021 1020 1019 1018 1017 1016 1015 1014 1013 1012 1011 1010 1009 --- #0 dumpsys () at /mnt/se3/releng_4/src/sys/kern/kern_shutdown.c:487 487 if (dumping++) { (kgdb) bt #0 dumpsys () at /mnt/se3/releng_4/src/sys/kern/kern_shutdown.c:487 #1 0xc01620c6 in boot (howto=260) at /mnt/se3/releng_4/src/sys/kern/kern_shutdown.c:316 #2 0xc0162549 in panic (fmt=0xc028e3b9 "%s") at /mnt/se3/releng_4/src/sys/kern/kern_shutdown.c:595 #3 0xc0251b1a in trap_fatal (frame=0xeb278b28, eva=1558020096) at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:974 #4 0xc0251775 in trap_pfault (frame=0xeb278b28, usermode=0, eva=1558020096) at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:867 #5 0xc02512b7 in trap (frame={tf_fs = -65512, tf_es = -941031408, tf_ds = -942997488, tf_edi = -1070937504, tf_esi = -730301488, tf_ebp = -349729908, tf_isp = -349729964, tf_ebx = -1070870564, tf_edx = 1558020096, tf_ecx = 7, tf_eax = 128, tf_trapno = 12, tf_err = 0, tf_eip = -1072309505, tf_cs = 8, tf_eflags = 66054, tf_esp = 33281, tf_ss = -730301488}) at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:466 #6 0xc015daff in malloc (size=128, type=0xc02aca60, flags=2) at /mnt/se3/releng_4/src/sys/kern/kern_malloc.c:243 #7 0xc02085e1 in initiate_write_inodeblock (inodedep=0xc8e69400, bp=0xd4787bd0) at /mnt/se3/releng_4/src/sys/ufs/ffs/ffs_softdep.c:3091 #8 0xc02083b3 in softdep_disk_io_initiation (bp=0xd4787bd0) at /mnt/se3/releng_4/src/sys/ufs/ffs/ffs_softdep.c:2965 #9 0xc019d51a in spec_strategy (ap=0xeb278c0c) at /mnt/se3/releng_4/src/sys/miscfs/specfs/spec_vnops.c:453 #10 0xc0188cab in bwrite (bp=0xd4787bd0) at vnode_if.h:944 #11 0xc018e98f in vop_stdbwrite (ap=0xeb278c6c) at /mnt/se3/releng_4/src/sys/kern/vfs_default.c:344 #12 0xc018e791 in vop_defaultop (ap=0xeb278c6c) at /mnt/se3/releng_4/src/sys/kern/vfs_default.c:152 #13 0xc0189ce5 in vfs_bio_awrite (bp=0xd4787bd0) at vnode_if.h:1193 #14 0xc019d33f in spec_fsync (ap=0xeb278cd4) at /mnt/se3/releng_4/src/sys/miscfs/specfs/spec_vnops.c:391 #15 0xc020ca4d in ffs_sync (mp=0xc7ea1a00, waitfor=2, cred=0xc1c6e900, p=0xc02d25e0) at vnode_if.h:558 #16 0xc01941b7 in sync (p=0xc02d25e0, uap=0x0) at /mnt/se3/releng_4/src/sys/kern/vfs_syscalls.c:576 #17 0xc0161e7c in boot (howto=256) at /mnt/se3/releng_4/src/sys/kern/kern_shutdown.c:235 #18 0xc0162549 in panic (fmt=0xc028e3b9 "%s") at /mnt/se3/releng_4/src/sys/kern/kern_shutdown.c:595 #19 0xc0251b1a in trap_fatal (frame=0xeb278e04, eva=1558020096) at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:974 #20 0xc0251775 in trap_pfault (frame=0xeb278e04, usermode=0, eva=1558020096) at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:867 #21 0xc02512b7 in trap (frame={tf_fs = -1072300008, tf_es = -361627632, tf_ds = 16, tf_edi = -1070989600, tf_esi = -349729108, tf_ebp = -349729176, tf_isp = -349729232, tf_ebx = -1070870564, tf_edx = 1558020096, tf_ecx = 7, tf_eax = 128, tf_trapno = 12, tf_err = 0, tf_eip = -1072309505, tf_cs = 8, tf_eflags = 66054, tf_esp = 0, tf_ss = -349729108}) at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:466 #22 0xc015daff in malloc (size=72, type=0xc029fee0, flags=0) at /mnt/se3/releng_4/src/sys/kern/kern_malloc.c:243 #23 0xc015a3fe in exit1 (p=0xea726820, rv=15) at /mnt/se3/releng_4/src/sys/kern/kern_exit.c:166 #24 0xc0164011 in sigexit (p=0xea726820, sig=15) at /mnt/se3/releng_4/src/sys/kern/kern_sig.c:1503 #25 0xc0163d9c in postsig (sig=15) at /mnt/se3/releng_4/src/sys/kern/kern_sig.c:1406 #26 0xc0251fc5 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = 174, tf_esi = 1049187701, tf_ebp = -1077936960, tf_isp = -349728812, tf_ebx = 1, tf_edx = 3, tf_ecx = -1078002496, tf_eax = 3, tf_trapno = 7, tf_err = 2, tf_eip = 672039098, tf_cs = 31, tf_eflags = 659, tf_esp = -1078069180, tf_ss = 47}) at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:174 #27 0xc023e69b in Xint0x80_syscall () #28 0x8048b7f in ?? () (kgdb) Backtraces of all crashes look very similar. I can provide crash dump(s) if someone interested. From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 07:13:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 10C0E37B404 for ; Wed, 2 Apr 2003 07:13:19 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 478EA43FB1 for ; Wed, 2 Apr 2003 07:13:18 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0051.cvx21-bradley.dialup.earthlink.net ([209.179.192.51] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 190jvO-0006lk-00; Wed, 02 Apr 2003 07:13:14 -0800 Message-ID: <3E8AFD9E.A34213B4@mindspring.com> Date: Wed, 02 Apr 2003 07:11:26 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Dmitry Sivachenko References: <20030402134428.GA43549@fling-wing.demos.su> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4b7e8e9b6d146f377d0ebeb286acee3ae667c3043c0873f7e350badd9bab72f9c350badd9bab72f9c cc: hackers@freebsd.org Subject: Re: Repeated similar panics on -STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 15:13:19 -0000 Dmitry Sivachenko wrote: > We have three machines under relatively high load. They are running -STABLE > on the same hardware with 2 processors (and SMP kernel). > Periodically (approximately once a week) they panic with similar symptoms: [ ... ] Panic. > #18 0xc0162549 in panic (fmt=0xc028e3b9 "%s") > at /mnt/se3/releng_4/src/sys/kern/kern_shutdown.c:595 > #19 0xc0251b1a in trap_fatal (frame=0xeb278e04, eva=1558020096) > at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:974 > #20 0xc0251775 in trap_pfault (frame=0xeb278e04, usermode=0, eva=1558020096) > at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:867 > #21 0xc02512b7 in trap (frame={tf_fs = -1072300008, tf_es = -361627632, > tf_ds = 16, tf_edi = -1070989600, tf_esi = -349729108, > tf_ebp = -349729176, tf_isp = -349729232, tf_ebx = -1070870564, > tf_edx = 1558020096, tf_ecx = 7, tf_eax = 128, tf_trapno = 12, > tf_err = 0, tf_eip = -1072309505, tf_cs = 8, tf_eflags = 66054, > tf_esp = 0, tf_ss = -349729108}) > at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:466 Page not present error. > #22 0xc015daff in malloc (size=72, type=0xc029fee0, flags=0) > at /mnt/se3/releng_4/src/sys/kern/kern_malloc.c:243 Malloc failure was not checked for return value by source code; probably the kbp list was just refreshed, and while you were calling the failing malloc, the list was reemptied. What this generally means is that KVA was exhausted, and the caller did not expect that. To workaround: don't exhaust the KVA space; probably you have tuned some kernel parameter way too high. To fix: at line 243, you need to check if va is NULL; if it is, you need to wheck the M_WAITOK, and if set, restart the allocation. This has to be done before the next line, where "va" is dereferenced. Maybe something like: Change: va = kbp->kb_next; kbp->kb_next = ((struct freelist *)va)->next; To: va = kbp->kb_next; if (va == NULL) { if (flags & M_NOWAIT) { splx(s); return ((void *) NULL); } goto restart; /* put this label above the "while" */ } kbp->kb_next = ((struct freelist *)va)->next; Working around the problem is easier (IMO): just change your tuning parameters to avoid running out of KVA. Probably your mbufs or mbufclusters are way to large, for your amount of physical RAM; remember that, except in very sepcial circumstances, kernel memory is non-pageable. > #23 0xc015a3fe in exit1 (p=0xea726820, rv=15) > at /mnt/se3/releng_4/src/sys/kern/kern_exit.c:166 It was trying to allocate a "zombie" structure. > #24 0xc0164011 in sigexit (p=0xea726820, sig=15) > at /mnt/se3/releng_4/src/sys/kern/kern_sig.c:1503 For a process someone sent a SIGTERM to, to kill it. > #25 0xc0163d9c in postsig (sig=15) > at /mnt/se3/releng_4/src/sys/kern/kern_sig.c:1406 > #26 0xc0251fc5 in syscall2 (frame={tf_fs = 47, tf_es = 47, tf_ds = 47, > tf_edi = 174, tf_esi = 1049187701, tf_ebp = -1077936960, > tf_isp = -349728812, tf_ebx = 1, tf_edx = 3, tf_ecx = -1078002496, > tf_eax = 3, tf_trapno = 7, tf_err = 2, tf_eip = 672039098, tf_cs = 31, > tf_eflags = 659, tf_esp = -1078069180, tf_ss = 47}) > at /mnt/se3/releng_4/src/sys/i386/i386/trap.c:174 Looks like you caused a floating point exception, and died when the exit1 failed to create a zombie structure for the process. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 07:17:37 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E29037B401 for ; Wed, 2 Apr 2003 07:17:37 -0800 (PST) Received: from demos.su (mx.demos.su [194.87.0.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D56D43F85 for ; Wed, 2 Apr 2003 07:17:36 -0800 (PST) (envelope-from mitya@fling-wing.demos.su) Received: from [194.87.5.69] (HELO fling-wing.demos.su) by demos.su (CommuniGate Pro SMTP 4.0.6/D3) with ESMTP-TLS id 65557262 for hackers@freebsd.org; Wed, 02 Apr 2003 19:17:35 +0400 Received: from fling-wing.demos.su (localhost [127.0.0.1]) by fling-wing.demos.su (8.12.9/8.12.6) with ESMTP id h32FHYAu068454 for ; Wed, 2 Apr 2003 19:17:34 +0400 (MSD) (envelope-from mitya@fling-wing.demos.su) Received: (from mitya@localhost) by fling-wing.demos.su (8.12.9/8.12.6/Submit) id h32FHYIH068453 for hackers@freebsd.org; Wed, 2 Apr 2003 19:17:34 +0400 (MSD) Date: Wed, 2 Apr 2003 19:17:34 +0400 From: Dmitry Sivachenko To: hackers@freebsd.org Message-ID: <20030402151734.GA68114@fling-wing.demos.su> References: <20030402134428.GA43549@fling-wing.demos.su> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20030402134428.GA43549@fling-wing.demos.su> WWW-Home-Page: http://mitya.pp.ru/ X-PGP-Key: http://mitya.pp.ru/mitya.asc User-Agent: Mutt/1.5.4i Subject: Re: Repeated similar panics on -STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 15:17:37 -0000 On Wed, Apr 02, 2003 at 05:44:28PM +0400, Dmitry Sivachenko wrote: > Hello! > > Fatal trap 12: page fault while in kernel mode > mp_lock = 01000002; cpuid = 1; lapic.id = 00000000 > fault virtual address = 0x5cdd8000 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xc015daff BTW, (kgdb) list *0xc015daff 0xc015daff is in malloc (/mnt/se3/releng_4/src/sys/kern/kern_malloc.c:244). 239 freep->next = savedlist; 240 if (kbp->kb_last == NULL) 241 kbp->kb_last = (caddr_t)freep; 242 } 243 va = kbp->kb_next; 244 kbp->kb_next = ((struct freelist *)va)->next; 245 #ifdef INVARIANTS 246 freep = (struct freelist *)va; 247 savedtype = (const char *) freep->type->ks_shortdesc; 248 #if BYTE_ORDER == BIG_ENDIAN From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 07:18:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEE7437B409 for ; Wed, 2 Apr 2003 07:18:25 -0800 (PST) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30D2743F75 for ; Wed, 2 Apr 2003 07:18:25 -0800 (PST) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 190k0O-00017R-00 for hackers@freebsd.org; Wed, 02 Apr 2003 18:18:24 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 02 Apr 2003 18:18:24 +0300 From: Danny Braniss Message-Id: Subject: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 15:18:26 -0000 hi all, is there some 'easy' way to resync /var/db/pkg from /usr/local (after some rm's on it?), i guess i could write a script to would try and match the info in /var/db/pkg, and if it's not where it's supposed to be would remove the info, but if there is a command ... thanks, danny From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 07:34:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 20B5E37B401 for ; Wed, 2 Apr 2003 07:34:11 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACAD743FB1 for ; Wed, 2 Apr 2003 07:34:10 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0051.cvx21-bradley.dialup.earthlink.net ([209.179.192.51] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 190kFb-0001w2-00; Wed, 02 Apr 2003 07:34:08 -0800 Message-ID: <3E8B027B.D362CE47@mindspring.com> Date: Wed, 02 Apr 2003 07:32:11 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Dmitry Sivachenko References: <20030402134428.GA43549@fling-wing.demos.su> <20030402151734.GA68114@fling-wing.demos.su> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4815ed0c6e373587338771cf689a5a380350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c cc: hackers@freebsd.org Subject: Re: Repeated similar panics on -STABLE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 15:34:11 -0000 Dmitry Sivachenko wrote: > On Wed, Apr 02, 2003 at 05:44:28PM +0400, Dmitry Sivachenko wrote: > > Hello! > > > > > > Fatal trap 12: page fault while in kernel mode > > mp_lock = 01000002; cpuid = 1; lapic.id = 00000000 > > fault virtual address = 0x5cdd8000 > > fault code = supervisor read, page not present > > instruction pointer = 0x8:0xc015daff > > BTW, > > (kgdb) list *0xc015daff > 0xc015daff is in malloc (/mnt/se3/releng_4/src/sys/kern/kern_malloc.c:244). > 243 va = kbp->kb_next; > 244 kbp->kb_next = ((struct freelist *)va)->next; Yes, I know. See analysis and patch and workaround. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 08:00:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69FA737B401 for ; Wed, 2 Apr 2003 08:00:32 -0800 (PST) Received: from harrier.mail.pas.earthlink.net (harrier.mail.pas.earthlink.net [207.217.120.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E99B43FA3 for ; Wed, 2 Apr 2003 08:00:31 -0800 (PST) (envelope-from eogren@earthlink.net) Received: from dfiatx1-118-238.biz.dsl.gtei.net ([4.3.118.238] helo=Mipo) by harrier.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 190kez-0001If-00 for freebsd-hackers@FreeBSD.org; Wed, 02 Apr 2003 08:00:22 -0800 From: postmaster To: freebsd-hackers@FreeBSD.org Message-Id: Date: Wed, 02 Apr 2003 08:00:22 -0800 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Returned mail--"NOSHADE CLASS" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 16:00:32 -0000 The following mail can't be sent to eogren@earthlink.net: From: freebsd-hackers@FreeBSD.org To: eogren@earthlink.net Subject: NOSHADE CLASS The attachment is the original mail From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 08:16:33 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2065B37B401 for ; Wed, 2 Apr 2003 08:16:33 -0800 (PST) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DAA743F93 for ; Wed, 2 Apr 2003 08:16:32 -0800 (PST) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.11.6/8.9.3) id h32GGUO10244 for hackers@freebsd.org; Wed, 2 Apr 2003 18:16:30 +0200 Date: Wed, 2 Apr 2003 18:16:30 +0200 From: Christoph Kukulies Message-Id: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> To: hackers@freebsd.org Subject: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 16:16:33 -0000 I tried to get a DE203 NIC (ISA) working with 5.0R. Took the GENERIC config file and put device le 1 options COMPAT_OLDISA in it. Since I forgot how the card was programmed I tried and got it probed at io=0x200 so I put the following in /boot/device.hints hint.le.0.at="isa" hint.le.0.disabled="0" hint.le.0.port="0x200" hint.le.0.irq="10" hint.le.0.maddr="0xd0000" and first got an error during probe, something like le0: lemac expected IRQ 0x400 found 0x20 The I changed irq to 5 and got le0: lemac expected iomem at 0xd0000 found 0x80000 So I changed maddr to 0x80000. But then I got a kernel panic. Any clues how to proceed to get this card working? -- Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 10:27:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 52F2637B401 for ; Wed, 2 Apr 2003 10:27:45 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 531BA43F75 for ; Wed, 2 Apr 2003 10:27:44 -0800 (PST) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h32IRhEF097121; Wed, 2 Apr 2003 13:27:43 -0500 (EST) (envelope-from mdodd@FreeBSD.ORG) Date: Wed, 2 Apr 2003 13:27:43 -0500 (EST) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: Christoph Kukulies In-Reply-To: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> Message-ID: <20030402132637.J46852@sasami.jurai.net> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@FreeBSD.ORG Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 18:27:45 -0000 On Wed, 2 Apr 2003, Christoph Kukulies wrote: > I tried to get a DE203 NIC (ISA) working with 5.0R. ... > Since I forgot how the card was programmed I tried and got it > probed at io=0x200 ... > Any clues how to proceed to get this card working? Find out what the configuration settings on the card are and use them. Trial and error is likely to produce the results you mentioned. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 10:44:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7713537B401; Wed, 2 Apr 2003 10:44:48 -0800 (PST) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7010143F75; Wed, 2 Apr 2003 10:44:46 -0800 (PST) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.11.6/8.9.3) id h32IijC15396; Wed, 2 Apr 2003 20:44:45 +0200 Date: Wed, 2 Apr 2003 20:44:44 +0200 From: "Christoph P. Kukulies" To: "Matthew N. Dodd" Message-ID: <20030402184444.GA15388@gilberto.physik.rwth-aachen.de> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030402132637.J46852@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030402132637.J46852@sasami.jurai.net> User-Agent: Mutt/1.4i cc: Christoph Kukulies cc: hackers@FreeBSD.ORG Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 18:44:48 -0000 On Wed, Apr 02, 2003 at 01:27:43PM -0500, Matthew N. Dodd wrote: > On Wed, 2 Apr 2003, Christoph Kukulies wrote: > > I tried to get a DE203 NIC (ISA) working with 5.0R. > ... > > Since I forgot how the card was programmed I tried and got it > > probed at io=0x200 > ... > > Any clues how to proceed to get this card working? > > Find out what the configuration settings on the card are and use them. > > Trial and error is likely to produce the results you mentioned. Problem is that I probably don't have a configuration disk anymore. -- Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 11:13:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BD56937B401 for ; Wed, 2 Apr 2003 11:13:35 -0800 (PST) Received: from ren.fdy2.net (fdy2.demon.co.uk [80.177.11.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B612543F93 for ; Wed, 2 Apr 2003 11:13:34 -0800 (PST) (envelope-from rjs@ren.fdy2.net) Received: from ren.fdy2.net (localhost [127.0.0.1]) by ren.fdy2.net (8.12.8/8.11.3) with ESMTP id h32JDX6C027942; Wed, 2 Apr 2003 20:13:33 +0100 (BST) (envelope-from rjs@ren.fdy2.net) Received: (from rjs@localhost) by ren.fdy2.net (8.12.8/8.12.8/Submit) id h32JDXYX027939; Wed, 2 Apr 2003 20:13:33 +0100 (BST) Date: Wed, 2 Apr 2003 20:13:33 +0100 (BST) Message-Id: <200304021913.h32JDXYX027939@ren.fdy2.net> From: Robert Swindells To: kuku@physik.rwth-aachen.de In-reply-to: <20030402184444.GA15388@gilberto.physik.rwth-aachen.de> (kuku@physik.rwth-aachen.de) cc: hackers@freebsd.org Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 19:13:36 -0000 Christoph Kukulies wrote: >On Wed, Apr 02, 2003 at 01:27:43PM -0500, Matthew N. Dodd wrote: >> On Wed, 2 Apr 2003, Christoph Kukulies wrote: >> > I tried to get a DE203 NIC (ISA) working with 5.0R. >> ... >> > Since I forgot how the card was programmed I tried and got it >> > probed at io=0x200 >> ... >> > Any clues how to proceed to get this card working? >> >> Find out what the configuration settings on the card are and use them. >> >> Trial and error is likely to produce the results you mentioned. >Problem is that I probably don't have a configuration disk anymore. What would you give for one ? :-) Robert Swindells From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 13:11:51 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 980F137B418 for ; Wed, 2 Apr 2003 13:11:51 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-150.dsl.lsan03.pacbell.net [63.207.60.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC43843FAF for ; Wed, 2 Apr 2003 13:11:50 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 8373E66B9B; Wed, 2 Apr 2003 13:11:50 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 64E7612AA; Wed, 2 Apr 2003 13:11:50 -0800 (PST) Date: Wed, 2 Apr 2003 13:11:50 -0800 From: Kris Kennaway To: Danny Braniss Message-ID: <20030402211150.GA10348@rot13.obsecurity.org> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 21:11:52 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Apr 02, 2003 at 06:18:24PM +0300, Danny Braniss wrote: > hi all, > is there some 'easy' way to resync /var/db/pkg from /usr/local > (after some rm's on it?), i guess i could write a script to would try and > match the info in /var/db/pkg, and if it's not where it's supposed to be > would remove the info, but if there is a command ... Not really..you can go the other way though; see the example in pkg_which(1). Kris --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+i1IWWry0BWjoQKURAivoAKC3MKbsSEkRtmDMhno8aiTkl8sllgCg8rgC FFuo2hNT8uNRLKcnOTrI2oo= =a9eP -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 14:58:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AE4937B401 for ; Wed, 2 Apr 2003 14:58:44 -0800 (PST) Received: from web10508.mail.yahoo.com (web10508.mail.yahoo.com [216.136.130.158]) by mx1.FreeBSD.org (Postfix) with SMTP id 97EE043F85 for ; Wed, 2 Apr 2003 14:58:43 -0800 (PST) (envelope-from b_oshea@yahoo.com) Message-ID: <20030402225843.14209.qmail@web10508.mail.yahoo.com> Received: from [156.153.254.41] by web10508.mail.yahoo.com via HTTP; Wed, 02 Apr 2003 14:58:43 PST Date: Wed, 2 Apr 2003 14:58:43 -0800 (PST) From: Brian O'Shea To: Kris Kennaway , Danny Braniss In-Reply-To: <20030402211150.GA10348@rot13.obsecurity.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 22:58:44 -0000 Danny, If you built your packages from ports, you could always reinstall them. You just have to check for /usr/ports///work/.install_done.* It's not perfect, but you could use it to generate a quick list of ports to selectively re-install. Good luck, -brian --- Kris Kennaway wrote: > On Wed, Apr 02, 2003 at 06:18:24PM +0300, Danny Braniss wrote: > > hi all, > > is there some 'easy' way to resync /var/db/pkg from /usr/local > > (after some rm's on it?), i guess i could write a script to would try and > > match the info in /var/db/pkg, and if it's not where it's supposed to be > > would remove the info, but if there is a command ... > > Not really..you can go the other way though; see the example in > pkg_which(1). > > Kris > > ATTACHMENT part 2 application/pgp-signature __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 20:33:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5358337B401 for ; Wed, 2 Apr 2003 20:33:05 -0800 (PST) Received: from b2bsoftech.com (mail.b2bsoftech.com [209.61.192.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 97D1E43F3F for ; Wed, 2 Apr 2003 20:33:04 -0800 (PST) (envelope-from praveen.m@b2bsoftech.com) Date: Wed, 2 Apr 2003 19:45:19 -0500 Message-Id: <200304021945.AA185598222@b2bsoftech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "praveen kumar" To: X-Mailer: Subject: suscribe X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: praveen.m@b2bsoftech.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 04:33:05 -0000 From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 2 22:58:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1107437B401 for ; Wed, 2 Apr 2003 22:58:48 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-150.dsl.lsan03.pacbell.net [63.207.60.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C66443F85 for ; Wed, 2 Apr 2003 22:58:46 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 9F52866B9B; Wed, 2 Apr 2003 22:58:44 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id A704912A3; Wed, 2 Apr 2003 22:58:44 -0800 (PST) Date: Wed, 2 Apr 2003 22:58:44 -0800 From: Kris Kennaway To: Brian O'Shea Message-ID: <20030403065844.GA12860@rot13.obsecurity.org> References: <20030402211150.GA10348@rot13.obsecurity.org> <20030402225843.14209.qmail@web10508.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <20030402225843.14209.qmail@web10508.mail.yahoo.com> User-Agent: Mutt/1.4i cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 06:58:48 -0000 --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 02, 2003 at 02:58:43PM -0800, Brian O'Shea wrote: > Danny, >=20 > If you built your packages from ports, you could always reinstall them. > You just have to check for /usr/ports///work/.install_done.* Only if you've never run 'make clean' (unlikely, if he's following directions). Kris --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+i9ukWry0BWjoQKURApP0AJ4suYqaBRRxyZAssAMJbP5867DljACg62XM +Xe4e+nADl//SChDs5ldX7Q= =S3Dv -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 00:06:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF41237B401 for ; Thu, 3 Apr 2003 00:06:10 -0800 (PST) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A72343FB1 for ; Thu, 3 Apr 2003 00:06:10 -0800 (PST) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 190zja-000Oi7-00; Thu, 03 Apr 2003 11:06:06 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Kris Kennaway In-Reply-To: Message from Kris Kennaway <20030403065844.GA12860@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 03 Apr 2003 11:06:06 +0300 From: Danny Braniss Message-Id: cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 08:06:12 -0000 > Only if you've never run 'make clean' (unlikely, if he's following > directions). > :-), specially since disk space tends to run out. so, if i understand the drift, there is no simple way to sync 'what is' with 'what should' be? danny From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 00:19:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08F7837B404 for ; Thu, 3 Apr 2003 00:19:02 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-150.dsl.lsan03.pacbell.net [63.207.60.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3345F43F85 for ; Thu, 3 Apr 2003 00:19:00 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 7B3F366B9B; Thu, 3 Apr 2003 00:18:57 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 2BD9D876; Thu, 3 Apr 2003 00:18:56 -0800 (PST) Date: Thu, 3 Apr 2003 00:18:56 -0800 From: Kris Kennaway To: Danny Braniss Message-ID: <20030403081856.GA13152@rot13.obsecurity.org> References: <20030403065844.GA12860@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 08:19:02 -0000 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 03, 2003 at 11:06:06AM +0300, Danny Braniss wrote: >=20 > > Only if you've never run 'make clean' (unlikely, if he's following > > directions). > >=20 > :-), specially since disk space tends to run out. >=20 > so, if i understand the drift, there is no simple way to sync 'what is' > with 'what should' be? Correct. Kris --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+i+5wWry0BWjoQKURAnEZAJ9Hu/9yJaHifZ265r4mrY29xj1jtgCeL9pZ cRSAriw2P0eChKwL0FBLm4Y= =lXqp -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 01:22:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95D0937B401; Thu, 3 Apr 2003 01:22:44 -0800 (PST) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3701643FE9; Thu, 3 Apr 2003 01:22:43 -0800 (PST) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.11.6/8.9.3) id h339MgD30913; Thu, 3 Apr 2003 11:22:42 +0200 Date: Thu, 3 Apr 2003 11:22:41 +0200 From: "Christoph P. Kukulies" To: "Matthew N. Dodd" Message-ID: <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030402132637.J46852@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030402132637.J46852@sasami.jurai.net> User-Agent: Mutt/1.4i cc: hackers@freebsd.org cc: Christoph Kukulies Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 09:22:44 -0000 On Wed, Apr 02, 2003 at 01:27:43PM -0500, Matthew N. Dodd wrote: > On Wed, 2 Apr 2003, Christoph Kukulies wrote: > > I tried to get a DE203 NIC (ISA) working with 5.0R. > ... > > Since I forgot how the card was programmed I tried and got it > > probed at io=0x200 > ... > > Any clues how to proceed to get this card working? > > Find out what the configuration settings on the card are and use them. > > Trial and error is likely to produce the results you mentioned. I programmed the NIC now to 200/5 32K, C8000 , 16bit bus, not fast bus, and it gets detected but I get a kernel panic. The kernel panic occurs in process ifconfig. It seems that whenever the device is properly probed and being used, the panic occurs. I can supply more panic data, if you want. -- Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 01:27:39 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9540137B401 for ; Thu, 3 Apr 2003 01:27:39 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id C58D443F93 for ; Thu, 3 Apr 2003 01:27:38 -0800 (PST) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h339RbEF022923; Thu, 3 Apr 2003 04:27:37 -0500 (EST) (envelope-from mdodd@FreeBSD.ORG) Date: Thu, 3 Apr 2003 04:27:37 -0500 (EST) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "Christoph P. Kukulies" In-Reply-To: <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> Message-ID: <20030403042724.K18916@sasami.jurai.net> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@FreeBSD.ORG Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 09:27:39 -0000 On Thu, 3 Apr 2003, Christoph P. Kukulies wrote: > It seems that whenever the device is properly probed and being used, the > panic occurs. > > I can supply more panic data, if you want. I'd appreciate that. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 01:45:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B353D37B401; Thu, 3 Apr 2003 01:45:11 -0800 (PST) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3841F43FB1; Thu, 3 Apr 2003 01:45:10 -0800 (PST) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.11.6/8.9.3) id h339j9n31256; Thu, 3 Apr 2003 11:45:09 +0200 Date: Thu, 3 Apr 2003 11:45:09 +0200 From: "Christoph P. Kukulies" To: "Matthew N. Dodd" Message-ID: <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030402132637.J46852@sasami.jurai.net> <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> <20030403042724.K18916@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030403042724.K18916@sasami.jurai.net> User-Agent: Mutt/1.4i cc: "Christoph P. Kukulies" cc: hackers@FreeBSD.ORG Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 09:45:12 -0000 On Thu, Apr 03, 2003 at 04:27:37AM -0500, Matthew N. Dodd wrote: > On Thu, 3 Apr 2003, Christoph P. Kukulies wrote: > > It seems that whenever the device is properly probed and being used, the > > panic occurs. > > > > I can supply more panic data, if you want. > > I'd appreciate that. OK, I'm typing: Fatal trap 12 faul virtual address = 0x0 fault code = Supervisor read, page not present instruction pointer = 0x8:0x0 stack pointer = 0x10:0xc8d37b10 frame pointer = 0x10:0xc8d37b2c code segment = base 0x0, limit 0xfffff, tzpe 0x1b = DPL 0, pres 1, def321, gran1 processor eflags = interrupt enable, res?, IOP=0 current process = 182 (ifconfig) trap number = 12 panic: page fault ---- Sorry, couldn't read my own handwriting (resume?) in 4th but last line NIC: IO Base 200H Memmode 32K Membase C8000 IRQ 5 Fast Bus Disable 16bit Bus enabled FreeBSD 5.0-Release -- Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 02:32:27 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EA4137B401; Thu, 3 Apr 2003 02:32:27 -0800 (PST) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41F6B43F93; Thu, 3 Apr 2003 02:32:26 -0800 (PST) (envelope-from langd@informatik.tu-muenchen.de) Received: from mailrelay1.informatik.tu-muenchen.de (mailrelay1.informatik.tu-muenchen.de [131.159.254.5]) by mailout.informatik.tu-muenchen.de (Postfix) with ESMTP id 3808562F6; Thu, 3 Apr 2003 12:32:25 +0200 (MEST) Received: from atrbg11.informatik.tu-muenchen.de (atrbg11.informatik.tu-muenchen.de [131.159.42.129]) by mailrelay1.informatik.tu-muenchen.de (Postfix) with ESMTP id 291E87945; Thu, 3 Apr 2003 12:32:25 +0200 (MEST) Received: by atrbg11.informatik.tu-muenchen.de (Postfix, from userid 20455) id C188813B44; Thu, 3 Apr 2003 12:32:24 +0200 (CEST) Date: Thu, 3 Apr 2003 12:32:24 +0200 From: Daniel Lang To: "Christoph P. Kukulies" Message-ID: <20030403103224.GA45495@atrbg11.informatik.tu-muenchen.de> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030402132637.J46852@sasami.jurai.net> <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> <20030403042724.K18916@sasami.jurai.net> <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> X-Geek: GCS/CC d-- s: a- C++$ UBS++++$ P+++$ L- E-(---) W+++(--) N++ o K w--- O? M? V? PS+(++) PE--(+) Y+ PGP+ t++ 5+++ X R+(-) tv+ b+ DI++ D++ G++ e+++ h---(-) r++>+++ y+ User-Agent: Mutt/1.5.1i cc: hackers@FreeBSD.ORG cc: "Matthew N. Dodd" Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 10:32:27 -0000 Hi Christoph, Christoph P. Kukulies wrote on Thu, Apr 03, 2003 at 11:45:09AM +0200: [..] > > > I can supply more panic data, if you want. > > > > I'd appreciate that. > > OK, I'm typing: [..] Please get a crashdump. I thinks it's described in the handbook, how to do it. In short: - set dumpdev in rc.conf, use your swap-partition - ensure you have at least as much space in /var as your swap - build a kernel with debugging symbols (makeoptions DEBUG=-g) - boot the new kernel - panic the box - a crashdump should be written to the dump-device - reboot - savecore will salvage the dump from swap to /var/crash/vmcore.x (x beeing a number) - once done run gdb -k /usr/obj/usr/src/sys/MACHINE/kernel.debug /var/crash/vmcore.x (you cannot use /kernel since it is stripped from the symbols) - in gdb use the 'bt' command to get a stack trace - post this information or use send-pr to file a problem report Best regards, Daniel -- IRCnet: Mr-Spock - Me transfere sursum, Caledoni - *Daniel Lang * dl@leo.org * +49 89 289 18532 * http://www.leo.org/~dl/* From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 02:41:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E11A537B401 for ; Thu, 3 Apr 2003 02:41:44 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 242F743F75 for ; Thu, 3 Apr 2003 02:41:44 -0800 (PST) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h33AfhEF024870; Thu, 3 Apr 2003 05:41:43 -0500 (EST) (envelope-from mdodd@FreeBSD.ORG) Date: Thu, 3 Apr 2003 05:41:43 -0500 (EST) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "Christoph P. Kukulies" In-Reply-To: <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> Message-ID: <20030403054115.W18916@sasami.jurai.net> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@FreeBSD.ORG Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 10:41:45 -0000 Ok, I know what the problem is; if_init isn't being initialized. I'm working on it. -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 02:48:27 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E435037B401 for ; Thu, 3 Apr 2003 02:48:27 -0800 (PST) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C0E343FB1 for ; Thu, 3 Apr 2003 02:48:27 -0800 (PST) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h33AmQEF024939; Thu, 3 Apr 2003 05:48:26 -0500 (EST) (envelope-from mdodd@FreeBSD.ORG) Date: Thu, 3 Apr 2003 05:48:26 -0500 (EST) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: "Christoph P. Kukulies" In-Reply-To: <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> Message-ID: <20030403054730.R18916@sasami.jurai.net> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@FreeBSD.ORG Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 10:48:28 -0000 This should fix it: ftp://ftp.jurai.net/users/winter/patches/if_le.patch -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 03:06:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5960D37B401 for ; Thu, 3 Apr 2003 03:06:42 -0800 (PST) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAF6A43F93 for ; Thu, 3 Apr 2003 03:06:41 -0800 (PST) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 1912YJ-000BX9-00; Thu, 03 Apr 2003 14:06:39 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Kris Kennaway In-Reply-To: Message from Kris Kennaway <20030403081856.GA13152@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 03 Apr 2003 14:06:39 +0300 From: Danny Braniss Message-Id: cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 11:06:42 -0000 > Correct. > ok, so i wrote a small script (tcl, since i don't know perl), that does some checking, it reports for each package, the number of files how many are realy there, and if so, checks the MD5. now, if im not to far off, if some/all files are missing, or if the md5 does not match, i should be able to remove the package info, ... Q: true or false? danny From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 04:07:27 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 84AAF37B401 for ; Thu, 3 Apr 2003 04:07:27 -0800 (PST) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 8646643FA3 for ; Thu, 3 Apr 2003 04:07:25 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 4722 invoked from network); 3 Apr 2003 12:02:23 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 3 Apr 2003 12:02:22 -0000 Received: (qmail 16801 invoked by uid 1000); 3 Apr 2003 12:05:31 -0000 Date: Thu, 3 Apr 2003 15:05:31 +0300 From: Peter Pentchev To: Danny Braniss Message-ID: <20030403120531.GA776@straylight.oblivion.bg> Mail-Followup-To: Danny Braniss , Kris Kennaway , hackers@freebsd.org References: <20030403081856.GA13152@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cy9Nn4fUvYST66Pl" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 12:07:27 -0000 --cy9Nn4fUvYST66Pl Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 03, 2003 at 02:06:39PM +0300, Danny Braniss wrote: >=20 > > Correct. > >=20 >=20 > ok, so i wrote a small script (tcl, since i don't know perl), that > does some checking, it reports for each package, the number of files > how many are realy there, and if so, checks the MD5. Errr.. you mean, it does something like 'pkg_info -g'? :) > now, if im not to far off, if some/all files are missing, or if the > md5 does not match, i should be able to remove the package info, ... > Q: > true > or > false? What do you mean, 'remove the package info'? What exactly are you trying to achieve? G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Thit sentence is not self-referential because "thit" is not a word. --cy9Nn4fUvYST66Pl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+jCOL7Ri2jRYZRVMRAm/MAKCcnS8XJMfJDar0em4y1kS+FczF9gCgxo5Z nalvn4kkmA5v77eCcwVgZe8= =h1Nq -----END PGP SIGNATURE----- --cy9Nn4fUvYST66Pl-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 05:02:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D162A37B401; Thu, 3 Apr 2003 05:02:15 -0800 (PST) Received: from accms33.physik.rwth-aachen.de (accms33.physik.RWTH-Aachen.DE [137.226.46.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 721A643FB1; Thu, 3 Apr 2003 05:02:14 -0800 (PST) (envelope-from kuku@accms33.physik.rwth-aachen.de) Received: (from kuku@localhost) by accms33.physik.rwth-aachen.de (8.11.6/8.9.3) id h33D2Du01626; Thu, 3 Apr 2003 15:02:13 +0200 Date: Thu, 3 Apr 2003 15:02:13 +0200 From: "Christoph P. Kukulies" To: "Matthew N. Dodd" Message-ID: <20030403130213.GB1351@gilberto.physik.rwth-aachen.de> References: <200304021616.h32GGUO10244@accms33.physik.rwth-aachen.de> <20030402132637.J46852@sasami.jurai.net> <20030403092241.GB30425@gilberto.physik.rwth-aachen.de> <20030403042724.K18916@sasami.jurai.net> <20030403094509.GA31184@gilberto.physik.rwth-aachen.de> <20030403054730.R18916@sasami.jurai.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030403054730.R18916@sasami.jurai.net> User-Agent: Mutt/1.4i cc: "Christoph P. Kukulies" cc: hackers@FreeBSD.ORG Subject: Re: le0 - DE203 kernel config problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 13:02:16 -0000 On Thu, Apr 03, 2003 at 05:48:26AM -0500, Matthew N. Dodd wrote: > This should fix it: > > ftp://ftp.jurai.net/users/winter/patches/if_le.patch This patch worked. It makes the interface configurable and I'd bet make it work after I have configured my firewall. One thing: The patch does not pass the normal kernel compilation since it does an implicit pointer conversion, that bails out the kernel make due to the strict settings (-Werror). (line 351 of if_le.c) Thanks for the quick response this morning. -- Chris Christoph P. U. Kukulies kukulies@rwth-aachen.de From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 12:32:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C10A337B401 for ; Thu, 3 Apr 2003 12:32:44 -0800 (PST) Received: from mail.redlinenetworks.com (mail.redlinenetworks.com [216.136.145.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5843143F85 for ; Thu, 3 Apr 2003 12:32:44 -0800 (PST) (envelope-from sreekanth@redlinenetworks.com) Received: from SREELAPTOP (dhcp-174.redlinenetworks.com [192.168.40.174]) h33KWiw90199 for ; Thu, 3 Apr 2003 12:32:44 -0800 (PST) (envelope-from sreekanth@redlinenetworks.com) From: "Sreekanth" To: Date: Thu, 3 Apr 2003 12:32:45 -0800 Message-ID: <000001c2fa20$2ee5ba20$ae28a8c0@SREELAPTOP> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Mmap and malloc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 20:32:45 -0000 Hi, I have a situation i am not sure i understand.I am running a 4.6.2 FreeBSD system with a Dual Xeon board with 2GB of Physical memory.I have a test program which continuoulsy calls mmap(with larger size each time) till it receives MAP_FAILED return value. I then call malloc(with bigger memory size each time) continuosly till it fails.Here are my results. Max mem mapped = 714 MB Max mem alloc = 308 MB My MAXDMSIZ is 1200*1024*1024 and KVA_PAGE is 512 (2GB) If i swap the order in wich mmap and malloc are called, then i get the following result. Max mem alloc = 1200MB Max mem mapped = 711MB My questions are as follows 1) Why is the difference between two approaches. ? 2) What exactly is the relationship between mmap malloc and KVA_PAGES. 3) I found that the Maximum mmapped memory = 4GB - KVA_PAGES*PAGE_SIZE - MAXDSIZ - 134 What is the 134 value..? It is very consistent for me for various values of KVA_PAGES and MAXDSIZ, so i am ruling it being just a coincidence. I hope somebody has already seen this kind of behaviour and therefore can help me out.. Thanks in advance, Sreekanth ps: If somebody needs the code i used to generate these results, i would be more than happy to provide it. From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 13:21:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FC2A37B401 for ; Thu, 3 Apr 2003 13:21:25 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D5CD43FAF for ; Thu, 3 Apr 2003 13:20:59 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 749B33ABB8F; Thu, 3 Apr 2003 23:23:00 +0200 (CEST) Date: Thu, 3 Apr 2003 23:23:00 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Message-ID: <20030403212300.GL54604@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="hXth9cGL35Nvpk4x" Content-Disposition: inline X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i Subject: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 21:21:25 -0000 --hXth9cGL35Nvpk4x Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello hackers... Could someone please explain such make(1) behaviour: % pwd % /home/nick/src/testdir % find . . ./test ./test/tst.c ./Makefile % cat Makefile PROG =3D tst SRCS =3D test/tst.c .include % make Warning: Object directory not changed from original /usr/home/nick/src/tes= tdir cc -O -pipe -c test/tst.c cc -O -pipe -o tst test/tst.o cc: test/tst.o: No such file or directory cc: No input files specified *** Error code 1 Stop in /usr/home/nick/src/testdir. % ls test/tst.o ls: test/tst.o: No such file or directory % ls tst.o tst.o IMHO make(1) should put .o files in current directory _and_ look for them there when producing an executable file. Right? --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --hXth9cGL35Nvpk4x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPoymND/PhmMH/Mf1AQGE0QP/cSMGCf3Gpxh/n+wPj/Nmt2El6P9ER1TI R6qRXFYNHPupqNmCdlm9XWYCyVNm7HE7a9OOV9efFnu9l6fEgXr02jmx39XZKDQ3 1KcFNvyR7+VX10Y8t5nxwWY3ouaflblp8vuneJJa5qkmXXTciVAASBECGn/x+uXq S+M/Ab4A96c= =Un/Z -----END PGP SIGNATURE----- --hXth9cGL35Nvpk4x-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 13:34:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A91437B401 for ; Thu, 3 Apr 2003 13:34:07 -0800 (PST) Received: from mail.redlinenetworks.com (mail.redlinenetworks.com [216.136.145.172]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBC9B43FBF for ; Thu, 3 Apr 2003 13:34:06 -0800 (PST) (envelope-from sreekanth@redlinenetworks.com) Received: from SREELAPTOP (dhcp-174.redlinenetworks.com [192.168.40.174]) h33LY6w00511 for ; Thu, 3 Apr 2003 13:34:06 -0800 (PST) (envelope-from sreekanth@redlinenetworks.com) From: "Sreekanth" To: Date: Thu, 3 Apr 2003 13:34:07 -0800 Message-ID: <000001c2fa28$c1cfc490$ae28a8c0@SREELAPTOP> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Mmap and malloc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 21:34:07 -0000 Hi, I have a situation i am not sure i understand.I am running a 4.6.2 FreeBSD system with a Dual Xeon board with 2GB of Physical memory.I have a test program which continuoulsy calls mmap(with larger size each time) till it receives MAP_FAILED return value. I then call malloc(with bigger memory size each time) continuosly till it fails.Here are my results. Max mem mapped = 714 MB Max mem alloc = 308 MB My MAXDMSIZ is 1200*1024*1024 and KVA_PAGE is 512 (2GB) If i swap the order in wich mmap and malloc are called, then i get the following result. Max mem alloc = 1200MB Max mem mapped = 711MB My questions are as follows 1) Why is the difference between two approaches. ? 2) What exactly is the relationship between mmap malloc and KVA_PAGES. 3) I found that the Maximum mmapped memory = 4GB - KVA_PAGES*PAGE_SIZE - MAXDSIZ - 134 What is the 134 value..? It is very consistent for me for various values of KVA_PAGES and MAXDSIZ, so i am ruling it being just a coincidence. I hope somebody has already seen this kind of behaviour and therefore can help me out.. Thanks in advance, Sreekanth ps: If somebody needs the code i used to generate these results, i would be more than happy to provide it. From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 13:51:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 798A937B401 for ; Thu, 3 Apr 2003 13:51:01 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C90443FAF for ; Thu, 3 Apr 2003 13:51:00 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.8/8.12.8) with ESMTP id h33Lp09Q001119; Thu, 3 Apr 2003 13:51:00 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.9/8.12.9) with ESMTP id h33Loxk0061653; Thu, 3 Apr 2003 13:50:59 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.9/8.12.9/Submit) id h33Loxeb061646; Thu, 3 Apr 2003 13:50:59 -0800 (PST) (envelope-from marcel) Date: Thu, 3 Apr 2003 13:50:59 -0800 From: Marcel Moolenaar To: Pawel Jakub Dawidek Message-ID: <20030403215059.GA37698@athlon.pn.xcllnt.net> References: <20030403212300.GL54604@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030403212300.GL54604@garage.freebsd.pl> User-Agent: Mutt/1.5.3i cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 21:51:01 -0000 On Thu, Apr 03, 2003 at 11:23:00PM +0200, Pawel Jakub Dawidek wrote: > > Could someone please explain such make(1) behaviour: Because you told make(1) to by virtue of including bsd.prog.mk OBJS is derived from SRCS by replacing the extension. If SRCS contains foo/bar.c, OBJS will contain foo/bar.o... > IMHO make(1) should put .o files in current directory _and_ look for them > there when producing an executable file. Right? Wrong. It's the C compiler that puts files in the current directory by default, unless otherwise told by command line options. The only thing make(1) does is look for files you tell it to look for and make them if they are out of date (if told to do so). If you tell make to look for files the compiler does not create you have a broken makefile. It looks bsd.prog.mk does not handle subdirectories in a way you want, which means you have to reorganize your sources in order to use bsd.prog.mk or enhance the BSD includes to deal with that (if appropriate). -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 14:30:09 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B91DE37B401 for ; Thu, 3 Apr 2003 14:30:09 -0800 (PST) Received: from obsecurity.dyndns.org (adsl-63-207-60-150.dsl.lsan03.pacbell.net [63.207.60.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF93643FCB for ; Thu, 3 Apr 2003 14:30:06 -0800 (PST) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 5EABA66B9B; Thu, 3 Apr 2003 14:30:06 -0800 (PST) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 4753A12AB; Thu, 3 Apr 2003 14:30:06 -0800 (PST) Date: Thu, 3 Apr 2003 14:30:06 -0800 From: Kris Kennaway To: Danny Braniss Message-ID: <20030403223006.GD15705@rot13.obsecurity.org> References: <20030403081856.GA13152@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="48TaNjbzBVislYPb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 22:30:10 -0000 --48TaNjbzBVislYPb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 03, 2003 at 02:06:39PM +0300, Danny Braniss wrote: >=20 > > Correct. > >=20 >=20 > ok, so i wrote a small script (tcl, since i don't know perl), that > does some checking, it reports for each package, the number of files > how many are realy there, and if so, checks the MD5. >=20 > now, if im not to far off, if some/all files are missing, or if the > md5 does not match, i should be able to remove the package info, ... Well, that's not what you were asking for originally, and tools already exist to check that. e.g. pkg_info -g and the example from the pkg_which(1) manpage that I mentioned to you in a previous email. Kris --48TaNjbzBVislYPb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+jLXuWry0BWjoQKURAgltAJ9jAIQHzUrVgPwayCeBgbnH7Mr+9gCg3SZ1 EvTY2OmmJx9QVl2MDwbPzcY= =IwYf -----END PGP SIGNATURE----- --48TaNjbzBVislYPb-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 14:56:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D38FE37B401 for ; Thu, 3 Apr 2003 14:56:34 -0800 (PST) Received: from mx01.uni-tuebingen.de (mx01.uni-tuebingen.de [134.2.3.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8044243FAF for ; Thu, 3 Apr 2003 14:56:33 -0800 (PST) (envelope-from friedemann.becker@student.uni-tuebingen.de) Received: from linux17.zdv.uni-tuebingen.de (linux17.zdv.uni-tuebingen.de [134.2.18.17]) by mx01.uni-tuebingen.de (8.12.3/8.12.3) with ESMTP id h33MuVBM016839 for ; Fri, 4 Apr 2003 00:56:31 +0200 Date: Fri, 4 Apr 2003 00:56:31 +0200 (CEST) From: Friedemann Becker X-Sender: To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-AntiVirus: checked by AntiVir Milter 1.0.0.8; AVE 6.19.0.3; VDF 6.19.0.5 Subject: MIDI status X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 22:56:35 -0000 the question came up on current and because i'm interrested in this, too, I try to find out, where the sources are located, if there's documentation on it, specifications etc, and if someone actually is working on it of course... someone can help me? Friedemann From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 15:29:17 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 63DC837B401 for ; Thu, 3 Apr 2003 15:29:17 -0800 (PST) Received: from mx03.uni-tuebingen.de (mx03.uni-tuebingen.de [134.2.3.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E14943FA3 for ; Thu, 3 Apr 2003 15:29:16 -0800 (PST) (envelope-from friedemann.becker@student.uni-tuebingen.de) Received: from linux17.zdv.uni-tuebingen.de (linux17.zdv.uni-tuebingen.de [134.2.18.17]) by mx03.uni-tuebingen.de (8.12.3/8.12.3) with ESMTP id h33NTE37032699 for ; Fri, 4 Apr 2003 01:29:14 +0200 Date: Fri, 4 Apr 2003 01:29:13 +0200 (CEST) From: Friedemann Becker X-Sender: To: In-Reply-To: <20030403230816.TRJ1379.out007.verizon.net@verizon.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-AntiVirus: checked by AntiVir Milter 1.0.0.8; AVE 6.19.0.3; VDF 6.19.0.5 Subject: Re: MIDI status X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2003 23:29:17 -0000 to be more specific: what part of the implementation is responsible for the missing /dev/midi device. the pcm driver or the midi subsystem? On Thu, 3 Apr 2003, Andrew Lankford wrote: > check out the contents of.... > /usr/src/sys/dev/sound/midi/ From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 16:04:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EE4537B401 for ; Thu, 3 Apr 2003 16:04:12 -0800 (PST) Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E08E43FA3 for ; Thu, 3 Apr 2003 16:04:11 -0800 (PST) (envelope-from dim@xs4all.nl) Received: from kilgore.dim (kilgore.dim [192.168.0.3]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by tensor.xs4all.nl (Postfix) with ESMTP id 54C57555A; Fri, 4 Apr 2003 02:04:08 +0200 (CEST) Date: Fri, 4 Apr 2003 02:03:35 +0200 From: Dimitry Andric X-Mailer: The Bat! (v1.63 Beta/7) Business X-Priority: 3 (Normal) Message-ID: <18441906438.20030404020335@xs4all.nl> To: Pawel Jakub Dawidek In-Reply-To: <20030403212300.GL54604@garage.freebsd.pl> References: <20030403212300.GL54604@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----------11B8020AE9B9B59" cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 00:04:12 -0000 ------------11B8020AE9B9B59 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit On 2003-04-03 at 23:23:00 Pawel Jakub Dawidek wrote: > IMHO make(1) should put .o files in current directory _and_ look for > them there when producing an executable file. Right? I think this is more of a gcc/g++ problem/feature. :) The info page says: If `-o' is not specified, the default is to put an executable file in `a.out', the object file for `SOURCE.SUFFIX' in `SOURCE.o', its assembler file in `SOURCE.s', and all preprocessed C source on standard output. So at first glance I would say: "gcc -c some/weird/path/file.c" outputs the file "some/weird/path/file.o". But it doesn't, it puts the object file in the current directory... This is probably a feature, and if you change it, I guess a lot of stuff will break. :) Therefore, the simplest solution is to specify -o options everywhere. I've attached a patch for /usr/share/mk/sys.mk that does this, but please beware, it might break stuff which *expects* output files to always be put in the current directory. OTOH, make(1) itself seems to be consistent with relative pathnames; if you tell it a rule to create .b files from .a files, it will correctly try to use that rule to convert some/path/file.a into some/path/file.b (and NOT ./file.b). ------------11B8020AE9B9B59 Content-Type: application/octet-stream; name="sys.mk.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="sys.mk.diff" LS0tIC91c3Ivc2hhcmUvbWsvc3lzLm1rLm9yZwlUaHUgQXByICAzIDAxOjA3OjU3IDIwMDMKKysr IC91c3Ivc2hhcmUvbWsvc3lzLm1rCUZyaSBBcHIgIDQgMDE6NDM6MTAgMjAwMwpAQCAtMTEzLDEw ICsxMTMsMTAgQEAKIAogIyBTSU5HTEUgU1VGRklYIFJVTEVTCiAuYzoKLQkke0NDfSAke0NGTEFH U30gJHtMREZMQUdTfSAtbyAkey5UQVJHRVR9ICR7LklNUFNSQ30KKwkke0NDfSAke0NGTEFHU30g JHtMREZMQUdTfSAkey5JTVBTUkN9IC1vICR7LlRBUkdFVH0KIAogLmY6Ci0JJHtGQ30gJHtGRkxB R1N9ICR7TERGTEFHU30gLW8gJHsuVEFSR0VUfSAkey5JTVBTUkN9CisJJHtGQ30gJHtGRkxBR1N9 ICR7TERGTEFHU30gJHsuSU1QU1JDfSAtbyAkey5UQVJHRVR9CiAKIC5zaDoKIAljcCAkey5JTVBT UkN9ICR7LlRBUkdFVH0KQEAgLTEyNSwxMCArMTI1LDEwIEBACiAjIERPVUJMRSBTVUZGSVggUlVM RVMKIAogLmMubzoKLQkke0NDfSAke0NGTEFHU30gLWMgJHsuSU1QU1JDfQorCSR7Q0N9ICR7Q0ZM QUdTfSAtYyAkey5JTVBTUkN9IC1vICR7LlRBUkdFVH0KIAogLmYubzoKLQkke0ZDfSAke0ZGTEFH U30gLWMgJHsuSU1QU1JDfQorCSR7RkN9ICR7RkZMQUdTfSAtYyAkey5JTVBTUkN9IC1vICR7LlRB UkdFVH0KIAogLnkubzoKIAkke1lBQ0N9ICR7WUZMQUdTfSAkey5JTVBTUkN9CkBAIC0xNTEsMTIg KzE1MSwxMiBAQAogCW12IGxleC55eS5jICR7LlRBUkdFVH0KIAogLmMuYToKLQkke0NDfSAke0NG TEFHU30gLWMgJHsuSU1QU1JDfQorCSR7Q0N9ICR7Q0ZMQUdTfSAtYyAkey5JTVBTUkN9IC1vICR7 LlRBUkdFVH0KIAkke0FSfSAke0FSRkxBR1N9ICR7LlRBUkdFVH0gJHsuUFJFRklYfS5vCiAJcm0g LWYgJHsuUFJFRklYfS5vCiAKIC5mLmE6Ci0JJHtGQ30gJHtGRkxBR1N9IC1jICR7LklNUFNSQ30K Kwkke0ZDfSAke0ZGTEFHU30gLWMgJHsuSU1QU1JDfSAtbyAkey5UQVJHRVR9CiAJJHtBUn0gJHtB UkZMQUdTfSAkey5UQVJHRVR9ICR7LlBSRUZJWH0ubwogCXJtIC1mICR7LlBSRUZJWH0ubwogCkBA IC0xNzIsMzIgKzE3MiwzMiBAQAogCSR7Q0N9ICR7Q0ZMQUdTfSAke0xERkxBR1N9ICR7LklNUFNS Q30gJHtMRExJQlN9IC1vICR7LlRBUkdFVH0KIAogLmMubzoKLQkke0NDfSAke0NGTEFHU30gLWMg JHsuSU1QU1JDfQorCSR7Q0N9ICR7Q0ZMQUdTfSAtYyAkey5JTVBTUkN9IC1vICR7LlRBUkdFVH0K IAogLmNjIC5jcHAgLmN4eCAuQzoKIAkke0NYWH0gJHtDWFhGTEFHU30gJHtMREZMQUdTfSAkey5J TVBTUkN9ICR7TERMSUJTfSAtbyAkey5UQVJHRVR9CiAKIC5jYy5vIC5jcHAubyAuY3h4Lm8gLkMu bzoKLQkke0NYWH0gJHtDWFhGTEFHU30gLWMgJHsuSU1QU1JDfQorCSR7Q1hYfSAke0NYWEZMQUdT fSAtYyAkey5JTVBTUkN9IC1vICR7LlRBUkdFVH0KIAogLm0ubzoKLQkke09CSkN9ICR7T0JKQ0ZM QUdTfSAtYyAkey5JTVBTUkN9CisJJHtPQkpDfSAke09CSkNGTEFHU30gLWMgJHsuSU1QU1JDfSAt byAkey5UQVJHRVR9CiAKIC5wLm86Ci0JJHtQQ30gJHtQRkxBR1N9IC1jICR7LklNUFNSQ30KKwkk e1BDfSAke1BGTEFHU30gLWMgJHsuSU1QU1JDfSAtbyAkey5UQVJHRVR9CiAKIC5lIC5yIC5GIC5m OgogCSR7RkN9ICR7UkZMQUdTfSAke0VGTEFHU30gJHtGRkxBR1N9ICR7TERGTEFHU30gJHsuSU1Q U1JDfSAke0xETElCU30gXAogCSAgICAtbyAkey5UQVJHRVR9CiAKIC5lLm8gLnIubyAuRi5vIC5m Lm86Ci0JJHtGQ30gJHtSRkxBR1N9ICR7RUZMQUdTfSAke0ZGTEFHU30gLWMgJHsuSU1QU1JDfQor CSR7RkN9ICR7UkZMQUdTfSAke0VGTEFHU30gJHtGRkxBR1N9IC1jICR7LklNUFNSQ30gLW8gJHsu VEFSR0VUfQogCiAuUy5vOgotCSR7Q0N9ICR7Q0ZMQUdTfSAtYyAkey5JTVBTUkN9CisJJHtDQ30g JHtDRkxBR1N9IC1jICR7LklNUFNSQ30gLW8gJHsuVEFSR0VUfQogCiAucy5vOgotCSR7QVN9ICR7 QUZMQUdTfSAtbyAkey5UQVJHRVR9ICR7LklNUFNSQ30KKwkke0FTfSAke0FGTEFHU30gJHsuSU1Q U1JDfSAtbyAkey5UQVJHRVR9CiAKICMgWFhYIG5vdCAtaiBzYWZlCiAueS5vOgo= ------------11B8020AE9B9B59-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 17:17:04 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C11F37B401 for ; Thu, 3 Apr 2003 17:17:04 -0800 (PST) Received: from logopolis.mordacious.net (logopolis.mordacious.net [194.153.168.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9481543FAF for ; Thu, 3 Apr 2003 17:17:03 -0800 (PST) (envelope-from cg@ijcg.net) Received: from [10.1.0.2] (unknown [81.2.114.200]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by logopolis.mordacious.net (Postfix) with ESMTP id 30E8472E8B8; Fri, 4 Apr 2003 01:14:48 +0000 (GMT) Date: Fri, 04 Apr 2003 02:16:50 +0100 From: cameron grant To: Friedemann Becker , freebsd-hackers@freebsd.org Message-ID: <205239608.1049422610@[192.168.48.21]> In-Reply-To: References: X-Mailer: Mulberry/3.0.3 (Win32) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: MIDI status X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 01:17:04 -0000 the midi subsystem. it's not entirely broken, but it needs a lot of work. -cg --On 04 April 2003 01:29 +0200 Friedemann Becker wrote: > to be more specific: > what part of the implementation is responsible for the missing /dev/midi > device. the pcm driver or the midi subsystem? > On Thu, 3 Apr 2003, Andrew Lankford wrote: >> check out the contents of.... >> /usr/src/sys/dev/sound/midi/ > > > _______________________________________________ > 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 Thu Apr 3 21:53:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EBA137B409; Thu, 3 Apr 2003 21:53:38 -0800 (PST) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id E499743FDF; Thu, 3 Apr 2003 21:53:34 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id F046C51A71; Fri, 4 Apr 2003 15:23:32 +0930 (CST) Date: Fri, 4 Apr 2003 15:23:32 +0930 From: Greg 'groggy' Lehey To: fs@FreeBSD.org, hackers@FreeBSD.org Message-ID: <20030404055332.GM60909@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hnsKUeImFCk/igEn" Content-Disposition: inline User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: Vinum Developers Mailing List Subject: Announcing a Vinum mailing list X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 05:53:38 -0000 --hnsKUeImFCk/igEn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've been neglecting Vinum for some time now: I have been very busy. Times are now changing, and I hope to have time to work on Vinum in the near future. To start off, I have created a mailing list vinum-devel@lemis.com. I invite you to sign up: send a message to=20 majordomo@lemis.com with the text 'subscribe vinum-devel' if you're interested. There are a number of things to do: 1. We have a Sourceforge project (at least in name), http://sourceforge.net/projects/vinum/. There's nothing on the site, and we need somebody to set it up and put a CVS tree there. 2. Atul Kabra, Ramsubramanyam and Shajid Thirvuthodi have ported Vinum to NetBSD. I have the sources, but I haven't done anything with them yet. I know that others of you are also interested in this project; we should discuss it on the list. 3. There's also interest in Vinum on OpenBSD and Linux. I'd assume that there isn't much work involved in adapting the NetBSD port to OpenBSD. Linux is definitely a different matter. I hope to see you on the list soon. Greg -- See complete headers for address and phone numbers --hnsKUeImFCk/igEn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+jR3cIubykFB6QiMRAqNFAKCsy0DSoJUa3bQRlT9Sgbl5NnKUmQCgkMRS 7rFJ4c4Ckm1IFuqcSa43lkw= =ojTV -----END PGP SIGNATURE----- --hnsKUeImFCk/igEn-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 23:11:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB19B37B401 for ; Thu, 3 Apr 2003 23:11:38 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A933243F75 for ; Thu, 3 Apr 2003 23:11:37 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 752B43ABB8E; Fri, 4 Apr 2003 09:13:46 +0200 (CEST) Date: Fri, 4 Apr 2003 09:13:46 +0200 From: Pawel Jakub Dawidek To: Marcel Moolenaar Message-ID: <20030404071346.GN54604@garage.freebsd.pl> References: <20030403212300.GL54604@garage.freebsd.pl> <20030403215059.GA37698@athlon.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="6tPipYVl+OcoAvSh" Content-Disposition: inline In-Reply-To: <20030403215059.GA37698@athlon.pn.xcllnt.net> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 07:11:39 -0000 --6tPipYVl+OcoAvSh Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 03, 2003 at 01:50:59PM -0800, Marcel Moolenaar wrote: +> Because you told make(1) to by virtue of including bsd.prog.mk +>=20 +> OBJS is derived from SRCS by replacing the extension. If SRCS +> contains foo/bar.c, OBJS will contain foo/bar.o... Yes, but take a look on compilation process. When file is compilated '-o' isn't specified (gcc -c test/tst.c), but when executable file is produced, gcc looks for tst.o in test directory (gcc -o tst test/tst.o). And IMHO if gcc want to look for objects somewhere it should put them there, so: gcc -o test/tst.o -c test/tst.c. Sometimes it is hard to change. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --6tPipYVl+OcoAvSh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPo0wqj/PhmMH/Mf1AQFgNgP/SC1bFO+K9aujgdHtt9pbzB5wCWfOs3XK DDaL4IYDeiFq8jsn6ELO5R8Yqjp3FRcxIEKQlfMRvddqqszrUE8hbU88JhA1yD9y /fgv147XGEpczB8Ax5pGKuiuJH1OYvM5vR+WuOS6iz/WiXGo/BwgRIjRQtvmdw7/ AVh7/3HVD60= =6HQf -----END PGP SIGNATURE----- --6tPipYVl+OcoAvSh-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 23:28:17 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A11037B401 for ; Thu, 3 Apr 2003 23:28:17 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85F4343F75 for ; Thu, 3 Apr 2003 23:28:16 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id E5D4B3ABB8F; Fri, 4 Apr 2003 09:30:33 +0200 (CEST) Date: Fri, 4 Apr 2003 09:30:33 +0200 From: Pawel Jakub Dawidek To: Dimitry Andric Message-ID: <20030404073033.GO54604@garage.freebsd.pl> References: <20030403212300.GL54604@garage.freebsd.pl> <18441906438.20030404020335@xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ZaW/dtY/7oMe/vLp" Content-Disposition: inline In-Reply-To: <18441906438.20030404020335@xs4all.nl> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 07:28:17 -0000 --ZaW/dtY/7oMe/vLp Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 04, 2003 at 02:03:35AM +0200, Dimitry Andric wrote: +> Therefore, the simplest solution is to specify -o options everywhere. +> I've attached a patch for /usr/share/mk/sys.mk that does this, but +> please beware, it might break stuff which *expects* output files to +> always be put in the current directory. And this is IMHO correct behaviour. I'll try to build world and kernel with this patch and I'm quite sure that this doesn't break anything. Thanks. --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --ZaW/dtY/7oMe/vLp Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPo00mT/PhmMH/Mf1AQFDnwP/cNNt5UosDW/dpvFRu+aM0SJAySzEFmnv hkDaIopl0imkUhb0OFDjRLWd7CUAM8+xmZzNdDs9iUzGpyYyMm7XWhC/7eyx/HPd vA2RVr6G2lNbHn85ijEF8g4qObKDSF2zEtNkuCIOGhAYv2cFZRI64Y5IgGsIvgc8 afv9MaPekLY= =G1QD -----END PGP SIGNATURE----- --ZaW/dtY/7oMe/vLp-- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 23:40:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 82B3337B401 for ; Thu, 3 Apr 2003 23:40:48 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE69943F75 for ; Thu, 3 Apr 2003 23:40:47 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0180.cvx40-bradley.dialup.earthlink.net ([216.244.42.180] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 191LoG-0006sm-00; Thu, 03 Apr 2003 23:40:25 -0800 Message-ID: <3E8D3697.3EC98625@mindspring.com> Date: Thu, 03 Apr 2003 23:39:03 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20030403212300.GL54604@garage.freebsd.pl> <20030404071346.GN54604@garage.freebsd.pl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42cdc4570027d3e5fb8dc24ab68662db92601a10902912494350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org cc: Marcel Moolenaar Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 07:40:48 -0000 Pawel Jakub Dawidek wrote: > On Thu, Apr 03, 2003 at 01:50:59PM -0800, Marcel Moolenaar wrote: > +> Because you told make(1) to by virtue of including bsd.prog.mk > +> > +> OBJS is derived from SRCS by replacing the extension. If SRCS > +> contains foo/bar.c, OBJS will contain foo/bar.o... > > Yes, but take a look on compilation process. When file is compilated > '-o' isn't specified (gcc -c test/tst.c), but when executable file is > produced, gcc looks for tst.o in test directory (gcc -o tst test/tst.o). > And IMHO if gcc want to look for objects somewhere it should put them > there, so: gcc -o test/tst.o -c test/tst.c. Sometimes it is hard to > change. The real problem is that the object directory is often intentionally not the source directory. The libc_r build procedure works this way. You don't want to list source objects by path; you want to use subdir Makefile's, and the constructs that are there to support obtaining sources from alternate directories. You should look at the ".PATH:" directive. For the "test/tst.c" case, probably the correct thing to do is use something like: .PATH: ${.CURDIR}/test ... # source files from test/*; if names collide, you should be # using a library, instead of compiling direct subdir sources SRCS+= tst.c ... .include This will cause tst.o to both be crated, and referenced, from the directory in which the Makefile resides, instead of mixing references to the subdirectory "test". FWIW: I've been annoyed by the behaviour, as well; however... I understand how, if one is using an OBJDIR, that using subdirectories below the directories, without sub-Makefiles to create the objects, could make the build system parallel object directory creation fail. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 3 23:45:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F95837B401 for ; Thu, 3 Apr 2003 23:45:16 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id A24A643FCB for ; Thu, 3 Apr 2003 23:45:15 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0180.cvx40-bradley.dialup.earthlink.net ([216.244.42.180] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 191Lse-0007Jw-00; Thu, 03 Apr 2003 23:44:57 -0800 Message-ID: <3E8D37AB.2EC5BC7@mindspring.com> Date: Thu, 03 Apr 2003 23:43:39 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Pawel Jakub Dawidek References: <20030403212300.GL54604@garage.freebsd.pl> <20030404073033.GO54604@garage.freebsd.pl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a42cdc4570027d3e5f8789194f4ff9b061666fa475841a1c7a350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 07:45:16 -0000 Pawel Jakub Dawidek wrote: > On Fri, Apr 04, 2003 at 02:03:35AM +0200, Dimitry Andric wrote: > +> Therefore, the simplest solution is to specify -o options everywhere. > +> I've attached a patch for /usr/share/mk/sys.mk that does this, but > +> please beware, it might break stuff which *expects* output files to > +> always be put in the current directory. > > And this is IMHO correct behaviour. I'll try to build world and kernel > with this patch and I'm quite sure that this doesn't break anything. I think obj tree creation will fail with this; make sure you use the seperate OBJDIR hierarchy stuff with this patch. IMO, it's annoying, but not broken, to assume that there must be a Makefile to correspond to each OBJDIR directory. If that's the assumption, then your build will fail to create the subdirectory properly, but might look like it worked. Make sure the object files end up where you expect them, and make sure you start with a clean OBJDIR, for your test. IMO, it's better to use ".PATH:", which makes the problem go away, by making the linker look for the objects where the compiler put them (instead of making the compiler put them where the linker is looking). See previous message. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 01:03:00 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A556B37B401 for ; Fri, 4 Apr 2003 01:03:00 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7576C43F85 for ; Fri, 4 Apr 2003 01:02:46 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h3492agg009043 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Apr 2003 12:02:37 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h3492WWd009032; Fri, 4 Apr 2003 12:02:33 +0300 (EEST) (envelope-from ru) Date: Fri, 4 Apr 2003 12:02:32 +0300 From: Ruslan Ermilov To: Terry Lambert Message-ID: <20030404090232.GB1765@sunbay.com> References: <20030403212300.GL54604@garage.freebsd.pl> <20030404073033.GO54604@garage.freebsd.pl> <3E8D37AB.2EC5BC7@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="zx4FCpZtqtKETZ7O" Content-Disposition: inline In-Reply-To: <3E8D37AB.2EC5BC7@mindspring.com> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 09:03:00 -0000 --zx4FCpZtqtKETZ7O Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 03, 2003 at 11:43:39PM -0800, Terry Lambert wrote: [...] > IMO, it's better to use ".PATH:", which makes the problem go away, > by making the linker look for the objects where the compiler put > them (instead of making the compiler put them where the linker is > looking). See previous message. >=20 Sure thing! --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --zx4FCpZtqtKETZ7O Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+jUooUkv4P6juNwoRAsNOAJsGz3lh6UVr6gMof6o3mks7rxsyhgCfYHN2 +JQY7egrcU92czqjtoH6DHU= =zFox -----END PGP SIGNATURE----- --zx4FCpZtqtKETZ7O-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 03:12:10 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E37B537B401 for ; Fri, 4 Apr 2003 03:12:10 -0800 (PST) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43EC843FD7 for ; Fri, 4 Apr 2003 03:12:10 -0800 (PST) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 191P70-000Iw8-00; Fri, 04 Apr 2003 14:11:58 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Kris Kennaway In-Reply-To: Message from Kris Kennaway <20030403223006.GD15705@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 Apr 2003 14:11:58 +0300 From: Danny Braniss Message-Id: cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 11:12:11 -0000 > > ok, so i wrote a small script (tcl, since i don't know perl), that > > does some checking, it reports for each package, the number of files > > how many are realy there, and if so, checks the MD5. > > > > now, if im not to far off, if some/all files are missing, or if the > > md5 does not match, i should be able to remove the package info, ... > > Well, that's not what you were asking for originally, and tools > already exist to check that. OK, let me refrase it PROBLEM: how to update /var/db/pkg, when it knows too much, i.e. /usr/local has less stuff that /var/db/pkg knows about. > > e.g. pkg_info -g and the example from the pkg_which(1) manpage that I > mentioned to you in a previous email. i read most of the pkg*, and though im very impressed, i fail to find a clear/easy way to get a one line output saying: pkg xyz no longer exits, can be removed from database thanks, danny From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 03:18:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3EE4937B401 for ; Fri, 4 Apr 2003 03:18:03 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C6BD43F93 for ; Fri, 4 Apr 2003 03:18:02 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id EEA173ABB8F; Fri, 4 Apr 2003 13:20:20 +0200 (CEST) Date: Fri, 4 Apr 2003 13:20:20 +0200 From: Pawel Jakub Dawidek To: Terry Lambert Message-ID: <20030404112020.GP54604@garage.freebsd.pl> References: <20030403212300.GL54604@garage.freebsd.pl> <18441906438.20030404020335@xs4all.nl> <20030404073033.GO54604@garage.freebsd.pl> <3E8D37AB.2EC5BC7@mindspring.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="BuGwuXnZwGGQ9GEc" Content-Disposition: inline In-Reply-To: <3E8D37AB.2EC5BC7@mindspring.com> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: freebsd-hackers@freebsd.org Subject: Re: Bug in make(1)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 11:18:03 -0000 --BuGwuXnZwGGQ9GEc Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 03, 2003 at 11:43:39PM -0800, Terry Lambert wrote: +> IMO, it's better to use ".PATH:", which makes the problem go away, +> by making the linker look for the objects where the compiler put +> them (instead of making the compiler put them where the linker is +> looking). See previous message. Indeed, thanks! --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --BuGwuXnZwGGQ9GEc Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPo1qdD/PhmMH/Mf1AQGAXgP+KFRCdZuVo+An/HY9UGiz1KlNkcy8Cggn k1hA9qhEad5PZ1Vj3V6qZ8TuQLeJB0wWWSuxp9Xpl0+2FkbKmA1vioVb0fy0I8Yw rNoniSFGf0DzNsIPGvQkt74mRnpOrtj9JyI27pkfV+OF37mz4gIVkq++TcMk2Zgy lYBRhvS8Jos= =d0OC -----END PGP SIGNATURE----- --BuGwuXnZwGGQ9GEc-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 03:40:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D20937B401 for ; Fri, 4 Apr 2003 03:40:30 -0800 (PST) Received: from tomts12-srv.bellnexxia.net (tomts12.bellnexxia.net [209.226.175.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52B3A43F3F for ; Fri, 4 Apr 2003 03:40:29 -0800 (PST) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca ([65.95.176.5]) by tomts12-srv.bellnexxia.netESMTP <20030404114028.UKRM20288.tomts12-srv.bellnexxia.net@gabby.gsicomp.on.ca>; Fri, 4 Apr 2003 06:40:28 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by gabby.gsicomp.on.ca (8.12.6/8.12.6) with SMTP id h34BbQiG050084; Fri, 4 Apr 2003 06:37:26 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <025401c2fa9e$c60fdba0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Kris Kennaway" , "Danny Braniss" References: Date: Fri, 4 Apr 2003 06:38:54 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 11:40:30 -0000 > > > > ok, so i wrote a small script (tcl, since i don't know perl), that > > > does some checking, it reports for each package, the number of files > > > how many are realy there, and if so, checks the MD5. > > > > > > now, if im not to far off, if some/all files are missing, or if the > > > md5 does not match, i should be able to remove the package info, ... > > > > Well, that's not what you were asking for originally, and tools > > already exist to check that. > > OK, let me refrase it > > PROBLEM: > how to update /var/db/pkg, when it knows too much, > i.e. /usr/local has less stuff that /var/db/pkg knows about. > > > > > e.g. pkg_info -g and the example from the pkg_which(1) manpage that I > > mentioned to you in a previous email. > > i read most of the pkg*, and though im very impressed, i fail to find a > clear/easy way to get a one line output saying: > pkg xyz no longer exits, can be removed from database > thanks, > danny If you know that package XYZ exists in /var/db/pkg but isn't in /usr/local (probably because you didn't 'make deinstall' or pkg_delete it), just do this: rm -rf /var/db/pkg/XYZ -- Matt Emmerton From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 04:42:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C57C737B401 for ; Fri, 4 Apr 2003 04:42:18 -0800 (PST) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29DC443FAF for ; Fri, 4 Apr 2003 04:42:18 -0800 (PST) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 191QWO-000M0L-00; Fri, 04 Apr 2003 15:42:16 +0300 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: "Matthew Emmerton" In-Reply-To: Message from "Matthew Emmerton" <025401c2fa9e$c60fdba0$1200a8c0@gsicomp.on.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 04 Apr 2003 15:42:16 +0300 From: Danny Braniss Message-Id: cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 12:42:19 -0000 > > > > > > ok, so i wrote a small script (tcl, since i don't know perl), that > > > > does some checking, it reports for each package, the number of files > > > > how many are realy there, and if so, checks the MD5. > > > > > > > > now, if im not to far off, if some/all files are missing, or if the > > > > md5 does not match, i should be able to remove the package info, ... > > > > > > Well, that's not what you were asking for originally, and tools > > > already exist to check that. > > > > OK, let me refrase it > > > > PROBLEM: > > how to update /var/db/pkg, when it knows too much, > > i.e. /usr/local has less stuff that /var/db/pkg knows about. > > > > > > > > e.g. pkg_info -g and the example from the pkg_which(1) manpage that I > > > mentioned to you in a previous email. > > > > i read most of the pkg*, and though im very impressed, i fail to find a > > clear/easy way to get a one line output saying: > > pkg xyz no longer exits, can be removed from database > > thanks, > > danny > > If you know that package XYZ exists in /var/db/pkg but isn't in /usr/local > (probably because you didn't 'make deinstall' or pkg_delete it), just do > this: > > rm -rf /var/db/pkg/XYZ > sorry, no points. it's a correct answer but that was/is not the question :-) how do you know that XYZ is no longer there? sure, pkg_info -g will tell you which files are no longer there, or have bad md5, but is one file? or all files? danny > -- > Matt Emmerton > From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 05:16:14 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 80CBB37B401 for ; Fri, 4 Apr 2003 05:16:14 -0800 (PST) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 7855743F93 for ; Fri, 4 Apr 2003 05:16:12 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 13955 invoked from network); 4 Apr 2003 13:11:09 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 4 Apr 2003 13:11:09 -0000 Received: (qmail 26680 invoked by uid 1000); 4 Apr 2003 13:14:19 -0000 Date: Fri, 4 Apr 2003 16:14:19 +0300 From: Peter Pentchev To: Danny Braniss Message-ID: <20030404131419.GF7008@straylight.oblivion.bg> Mail-Followup-To: Danny Braniss , Kris Kennaway , hackers@freebsd.org References: <20030403223006.GD15705@rot13.obsecurity.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="R6sEYoIZpp9JErk7" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 13:16:14 -0000 --R6sEYoIZpp9JErk7 Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 04, 2003 at 02:11:58PM +0300, Danny Braniss wrote: >=20 > > > ok, so i wrote a small script (tcl, since i don't know perl), that > > > does some checking, it reports for each package, the number of files > > > how many are realy there, and if so, checks the MD5. > > > > > > now, if im not to far off, if some/all files are missing, or if the > > > md5 does not match, i should be able to remove the package info, ... > >=20 > > Well, that's not what you were asking for originally, and tools > > already exist to check that. >=20 > OK, let me refrase it >=20 > PROBLEM: > how to update /var/db/pkg, when it knows too much, > i.e. /usr/local has less stuff that /var/db/pkg knows about. > =09 > >=20 > > e.g. pkg_info -g and the example from the pkg_which(1) manpage that I > > mentioned to you in a previous email. >=20 > i read most of the pkg*, and though im very impressed, i fail to find a > clear/easy way to get a one line output saying: > pkg xyz no longer exits, can be removed from database If you are only interested in packages which no longer have *any* files on the filesystem, then compare the output of the following two commands: pkg_info -qL package | wc -l pkg_info -qg package | wc -l If the output of those two commands is the same, then there are no valid package files left at all, and a pkg_delete -f is in order. Moreover, if you are only interested in the existence of the files, it would be easier to do something like: remove=3D1 pkg_info -qL package | while read fname; do [ -f "$fname" ] && remove=3D0 done if [ $remove =3D=3D "1" ]; then pkg_delete package; fi G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 "yields falsehood, when appended to its quotation." yields falsehood, when = appended to its quotation. --R6sEYoIZpp9JErk7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+jYUr7Ri2jRYZRVMRAr7JAKC1zLF9tLIQfHVZfrJK0CyAMXTNTgCgwbuV HmPSc7+FyNmjBgct4RwqoD8= =fplt -----END PGP SIGNATURE----- --R6sEYoIZpp9JErk7-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 05:22:49 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7496437B405 for ; Fri, 4 Apr 2003 05:22:49 -0800 (PST) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id D4A0443F75 for ; Fri, 4 Apr 2003 05:22:47 -0800 (PST) (envelope-from roam@ringlet.net) Received: (qmail 15421 invoked from network); 4 Apr 2003 13:17:45 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 4 Apr 2003 13:17:44 -0000 Received: (qmail 27241 invoked by uid 1000); 4 Apr 2003 13:20:54 -0000 Date: Fri, 4 Apr 2003 16:20:54 +0300 From: Peter Pentchev To: Danny Braniss Message-ID: <20030404132054.GG7008@straylight.oblivion.bg> Mail-Followup-To: Danny Braniss , Kris Kennaway , hackers@freebsd.org References: <20030403223006.GD15705@rot13.obsecurity.org> <20030404131419.GF7008@straylight.oblivion.bg> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RDS4xtyBfx+7DiaI" Content-Disposition: inline In-Reply-To: <20030404131419.GF7008@straylight.oblivion.bg> User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 13:22:50 -0000 --RDS4xtyBfx+7DiaI Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 04, 2003 at 04:14:19PM +0300, Peter Pentchev wrote: > On Fri, Apr 04, 2003 at 02:11:58PM +0300, Danny Braniss wrote: > >=20 > > > > ok, so i wrote a small script (tcl, since i don't know perl), that > > > > does some checking, it reports for each package, the number of files > > > > how many are realy there, and if so, checks the MD5. > > > > > > > > now, if im not to far off, if some/all files are missing, or if the > > > > md5 does not match, i should be able to remove the package info, ... > > >=20 > > > Well, that's not what you were asking for originally, and tools > > > already exist to check that. > >=20 > > OK, let me refrase it > >=20 > > PROBLEM: > > how to update /var/db/pkg, when it knows too much, > > i.e. /usr/local has less stuff that /var/db/pkg knows about. > > =09 > > >=20 > > > e.g. pkg_info -g and the example from the pkg_which(1) manpage that I > > > mentioned to you in a previous email. > >=20 > > i read most of the pkg*, and though im very impressed, i fail to find a > > clear/easy way to get a one line output saying: > > pkg xyz no longer exits, can be removed from database >=20 > If you are only interested in packages which no longer have *any* files > on the filesystem, then compare the output of the following two > commands: >=20 > pkg_info -qL package | wc -l > pkg_info -qg package | wc -l >=20 > If the output of those two commands is the same, then there are no valid > package files left at all, and a pkg_delete -f is in order. >=20 > Moreover, if you are only interested in the existence of the files, it > would be easier to do something like: >=20 > remove=3D1 > pkg_info -qL package | while read fname; do > [ -f "$fname" ] && remove=3D0 > done > if [ $remove =3D=3D "1" ]; then pkg_delete package; fi Just one more comment: the reason I stick to pkg_delete -f instead of rm -rf /var/db/pkg/package is that the /var/db/pkg scheme is not really set in stone: the correct way to manipulate the package database is *only* via the pkg_* tools. Well, there is something to be said about the tools available in ports/sysutils/portupgrade, but then, they are actively maintained by knu, who will most probably track any changes in the base system handling of packages, if and when those should occur. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 Hey, out there - is it *you* reading me, or is it someone else? --RDS4xtyBfx+7DiaI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+jYa27Ri2jRYZRVMRAsbWAKCJseyYdZYkOdehhIcmihg1SdYChgCgi5nb GINrqzrGxnXIcbvAUunosWA= =sfzA -----END PGP SIGNATURE----- --RDS4xtyBfx+7DiaI-- From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 08:46:23 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B03D37B401 for ; Fri, 4 Apr 2003 08:46:23 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7395A43F85 for ; Fri, 4 Apr 2003 08:46:22 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id 8439A5308; Fri, 4 Apr 2003 18:46:18 +0200 (CEST) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: "Matthew Emmerton" From: des@ofug.org (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Fri, 04 Apr 2003 18:46:18 +0200 In-Reply-To: <025401c2fa9e$c60fdba0$1200a8c0@gsicomp.on.ca> ("Matthew Emmerton"'s message of "Fri, 4 Apr 2003 06:38:54 -0500") Message-ID: User-Agent: Gnus/5.090015 (Oort Gnus v0.15) Emacs/21.2 References: <025401c2fa9e$c60fdba0$1200a8c0@gsicomp.on.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: hackers@freebsd.org cc: Kris Kennaway Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 16:46:23 -0000 "Matthew Emmerton" writes: > If you know that package XYZ exists in /var/db/pkg but isn't in /usr/local > (probably because you didn't 'make deinstall' or pkg_delete it), just do > this: > > rm -rf /var/db/pkg/XYZ Umm, no, just pkg_delete it and ignore the warnings about missing files. DES --=20 Dag-Erling Sm=F8rgrav - des@ofug.org From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 10:32:40 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F88A37B401 for ; Fri, 4 Apr 2003 10:32:40 -0800 (PST) Received: from mx03.uni-tuebingen.de (mx03.uni-tuebingen.de [134.2.3.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41B0343FCB for ; Fri, 4 Apr 2003 10:32:39 -0800 (PST) (envelope-from friedemann.becker@student.uni-tuebingen.de) Received: from linux17.zdv.uni-tuebingen.de (linux17.zdv.uni-tuebingen.de [134.2.18.17]) by mx03.uni-tuebingen.de (8.12.3/8.12.3) with ESMTP id h34IWbjC013809 for ; Fri, 4 Apr 2003 20:32:37 +0200 Date: Fri, 4 Apr 2003 20:32:36 +0200 (CEST) From: Friedemann Becker X-Sender: To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-AntiVirus: checked by AntiVir Milter 1.0.0.8; AVE 6.19.0.3; VDF 6.19.0.5 Subject: Re: MIDI status (fwd) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 18:32:40 -0000 okay... Who knows, what's to be done and which part nobody is actually working at? I'd like to help get it working soon, but I don't want to mess up someone else's work. And I need any sources of documentation on the topic - e.g. standards, if I need any and where I can get them, etc... On Fri, 4 Apr 2003, cameron grant wrote: > the midi subsystem. > > it's not entirely broken, but it needs a lot of work. > > --On 04 April 2003 01:29 +0200 Friedemann Becker > wrote: > > > to be more specific: > > what part of the implementation is responsible for the missing /dev/midi > > device. the pcm driver or the midi subsystem? > > On Thu, 3 Apr 2003, Andrew Lankford wrote: From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 13:04:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B4FE37B404 for ; Fri, 4 Apr 2003 13:04:42 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 544B043F93 for ; Fri, 4 Apr 2003 13:04:41 -0800 (PST) (envelope-from sandshrimp@attbi.com) Received: from attbi.com (12-228-93-40.client.attbi.com[12.228.93.40]) by sccrmhc03.attbi.com (sccrmhc03) with SMTP id <2003040421044000300p612oe>; Fri, 4 Apr 2003 21:04:40 +0000 Message-ID: <3E8D835A.6030603@attbi.com> Date: Fri, 04 Apr 2003 13:06:34 +0000 From: Ryan Merrick User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021026 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Danny Braniss References: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: ports and /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 21:04:42 -0000 Danny Braniss wrote: >>>>>ok, so i wrote a small script (tcl, since i don't know perl), that >>>>>does some checking, it reports for each package, the number of files >>>>>how many are realy there, and if so, checks the MD5. >>>>> >>>>>now, if im not to far off, if some/all files are missing, or if the >>>>>md5 does not match, i should be able to remove the package info, ... >>>>> >>>>> >>>>Well, that's not what you were asking for originally, and tools >>>>already exist to check that. >>>> >>>> >>>OK, let me refrase it >>> >>>PROBLEM: >>>how to update /var/db/pkg, when it knows too much, >>>i.e. /usr/local has less stuff that /var/db/pkg knows about. >>> >>> >>> >>>>e.g. pkg_info -g and the example from the pkg_which(1) manpage that I >>>>mentioned to you in a previous email. >>>> >>>> >>>i read most of the pkg*, and though im very impressed, i fail to find a >>>clear/easy way to get a one line output saying: >>>pkg xyz no longer exits, can be removed from database >>>thanks, >>>danny >>> >>> >>If you know that package XYZ exists in /var/db/pkg but isn't in /usr/local >>(probably because you didn't 'make deinstall' or pkg_delete it), just do >>this: >> >>rm -rf /var/db/pkg/XYZ >> >> >> > >sorry, no points. it's a correct answer but that was/is not the question :-) > how do you know that XYZ is no longer there? >sure, pkg_info -g will tell you which files are no longer there, or have bad >md5, but is one file? or all files? > >danny > > > >>-- >>Matt Emmerton >> >> >> > > >_______________________________________________ >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" > > > Hello, Take a look at pkgdb -F " The pkgdb command also works as an interactive tool for fixing the pack- age registry database when -F is specified. It helps you resolve stale dependencies, unlink cyclic dependencies, complete stale or missing ori- gins and remove duplicates. You have to run this periodically so portupgrade(1) and other pkg_* tools can work effectively and unfail- ingly. " From #man pkgdb (1) -Ryan From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 14:58:23 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7530237B401 for ; Fri, 4 Apr 2003 14:58:23 -0800 (PST) Received: from cicero1.cybercity.dk (cicero1.cybercity.dk [212.242.40.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9056A43F93 for ; Fri, 4 Apr 2003 14:58:22 -0800 (PST) (envelope-from db@traceroute.dk) Received: from user3.cybercity.dk (fxp0.user3.ip.cybercity.dk [212.242.41.36]) by cicero1.cybercity.dk (Postfix) with ESMTP id DC82015FC95 for ; Sat, 5 Apr 2003 00:58:20 +0200 (CEST) Received: from main (port132.ds1-arsy.adsl.cybercity.dk [212.242.239.73]) by user3.cybercity.dk (Postfix) with ESMTP id 76998353 for ; Sat, 5 Apr 2003 00:58:20 +0200 (CEST) Date: Sat, 5 Apr 2003 01:01:40 +0200 From: Socketd To: hackers@freebsd.org Message-ID: <20030404230140.GC17008@main> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Mailer: Balsa 2.0.9 Lines: 19 Subject: ftpd -h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 22:58:23 -0000 Hi When updating to FreeBSD 4.8 I saw that you can give ftpd a -h flag to prevent the server from telling clients, what kind of server it is (finally I don't have to edit the source to uptain this "feature"). Now correct me if I am wrong, but normally you can get server information 3 ways right? 1. When connecting to the server it will display a message 2. When giving the command "stat" 3. When giving the command "syst" Using 1 and 2 I was not able to get any server info (YES!), but sadly when writing "syst" I still get: 215 UNIX Type: L8 Version: BSD-199506 Mirror mistake or is it just me? br socketd From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 15:04:28 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9413237B401; Fri, 4 Apr 2003 15:04:28 -0800 (PST) Received: from pedigree.cs.ubc.ca (pedigree.cs.ubc.ca [142.103.6.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id F156143FA3; Fri, 4 Apr 2003 15:04:27 -0800 (PST) (envelope-from kcai@cs.ubc.ca) Received: from granville.cs.ubc.ca (granville.cs.ubc.ca [142.103.7.20]) by pedigree.cs.ubc.ca (8.12.9/8.11.4) with ESMTP id h34N4R0V029478; Fri, 4 Apr 2003 15:04:27 -0800 (PST) Date: Fri, 4 Apr 2003 15:04:27 -0800 (PST) From: Kan Cai To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: the CPU interrupt handler X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2003 23:04:28 -0000 Hi, all: I am trying to locate the CPU interrupt handler, but with no luck. I guess it is somewhere in the "1386" folder, but not sure which file is doing the job. Could someone there shed some lights on this? Since I am trying to capture the NIC interrupts, so it should not be exceptions. Thanks a lot. Have a nice day! Cheer, ken From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 16:17:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6384537B401 for ; Fri, 4 Apr 2003 16:17:24 -0800 (PST) Received: from snark.ratmir.ru (snark.ratmir.ru [213.24.248.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2BCE443FAF for ; Fri, 4 Apr 2003 16:17:23 -0800 (PST) (envelope-from freebsd@snark.ratmir.ru) Received: from snark.ratmir.ru (freebsd@localhost [127.0.0.1]) by snark.ratmir.ru (8.12.9/8.12.9) with ESMTP id h350HLDR094555; Sat, 5 Apr 2003 04:17:22 +0400 (MSD) (envelope-from freebsd@snark.ratmir.ru) Received: (from freebsd@localhost) by snark.ratmir.ru (8.12.9/8.12.9/Submit) id h350HKAT094554; Sat, 5 Apr 2003 04:17:21 +0400 (MSD) Date: Sat, 5 Apr 2003 04:17:19 +0400 From: Alex Semenyaka To: Socketd Message-ID: <20030405001719.GA90728@snark.ratmir.ru> References: <20030404230140.GC17008@main> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030404230140.GC17008@main> User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: ftpd -h X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 00:17:24 -0000 On Sat, Apr 05, 2003 at 01:01:40AM +0200, Socketd wrote: > When updating to FreeBSD 4.8 I saw that you can give ftpd a -h flag > when writing "syst" I still get: > 215 UNIX Type: L8 Version: BSD-199506 You are right, there is no check. Here is the patch to fix it: Index: ftpcmd.y =================================================================== RCS file: /usr/local/FreeBSD/src/libexec/ftpd/ftpcmd.y,v retrieving revision 1.50 diff -u -U1 -r1.50 ftpcmd.y --- ftpcmd.y 5 Feb 2003 11:11:32 -0000 1.50 +++ ftpcmd.y 5 Apr 2003 00:11:58 -0000 @@ -690,13 +690,17 @@ { - if ($2) + if ($2) { + if (hostinfo) #ifdef unix #ifdef BSD - reply(215, "UNIX Type: L%d Version: BSD-%d", - CHAR_BIT, BSD); + reply(215, "UNIX Type: L%d Version: BSD-%d", + CHAR_BIT, BSD); #else /* BSD */ - reply(215, "UNIX Type: L%d", CHAR_BIT); + reply(215, "UNIX Type: L%d", CHAR_BIT); #endif /* BSD */ #else /* unix */ - reply(215, "UNKNOWN Type: L%d", CHAR_BIT); + reply(215, "UNKNOWN Type: L%d", CHAR_BIT); #endif /* unix */ + else + reply(215, "UNKNOWN Type: L%d", CHAR_BIT); + } } Comments? Alex From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 16:28:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E965B37B401 for ; Fri, 4 Apr 2003 16:28:51 -0800 (PST) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51DC543F93 for ; Fri, 4 Apr 2003 16:28:50 -0800 (PST) (envelope-from nyogtha@flipp.net) Received: from LAPDANCE (deathpolka.nyogtha.org [217.13.20.12]) by mail.broadpark.no (Postfix) with SMTP id F0C4D78802 for ; Sat, 5 Apr 2003 02:28:48 +0200 (MEST) Message-ID: <000d01c2fb0a$5574adf0$3800000a@LAPDANCE> From: "Aslak Evang" To: "BSD" , Date: Sat, 5 Apr 2003 02:28:52 +0200 Organization: THS MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: problems with 4.8 release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 00:28:52 -0000 howdy. I upgraded from 4.7 to 4.8 release today and have had some trouble afterwards. Firstly, MySQL suddenly started using huge amounts of memory, diskspace and cpu resulting in kernel errors Secondly, when doing ports operations the computer starts "endless" copies of make, until i get "Cannot fork: Resource temporarily unavailable" Errors. The system load is waaaay to high and everything freezes for a little while. I have made no other changes to my system after upgrading. I checked the newsgroups and google, but the only thing I could find was a number of posts from people who had altered their make.conf and caused the problem. Some snippets: ===> Cleaning for jday-1.3 ===> astro/ksetispy Cannot fork: Resource temporarily unavailable Cannot fork: Resource temporarily unavailable ===> Cleaning for rar-3.11,1 ===> archivers/rox-archive Cannot fork: Resource temporarily unavailable Cannot fork: Resource temporarily unavailable Cannot fork: Resource temporarily unavailable Cannot fork: Resource temporarily unavailable etc. etc. from ps aux (numerous pages of this): root 94260 0.6 0.1 780 636 p0 S+ 2:28AM 0:00.18 (make) root 94265 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94266 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94267 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u root 94291 0.5 0.1 756 616 p0 S+ 2:28AM 0:00.16 (make) root 94302 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94303 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94304 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.01 sort -u root 94325 0.5 0.1 744 608 p0 S+ 2:28AM 0:00.16 (make) root 94330 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94331 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94332 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u root 94344 0.8 0.1 780 636 p0 S+ 2:28AM 0:00.18 (make) root 94349 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94350 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94351 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u root 94375 0.6 0.1 756 616 p0 S+ 2:28AM 0:00.16 (make) root 94386 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94387 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94388 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u root 94409 0.7 0.1 744 608 p0 S+ 2:28AM 0:00.17 (make) root 94414 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94415 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94416 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u root 94428 0.9 0.1 780 636 p0 S+ 2:28AM 0:00.18 (make) root 94433 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94434 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94435 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u root 94459 0.6 0.1 756 616 p0 S+ 2:28AM 0:00.16 (make) root 94470 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) root 94471 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) root 94472 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u Top lists many, many pages of make, most of the ones i can see in wait mode. I'm not sure if anything of this is normal, cause I've never really had a reason to study resourcemanagement during port cleaning before. Anyone else experiencing this or got any advice to offer? thanks -Aslak -- .______________ ___ _________. ____ ___ _______ \__ ___/ | \/ _____/ / __/______ ___ / _ )/ __/ _ \ | | / ~ \_____ \ / _// __/ -_) -_) _ |\ \/ // / | | \ Y / \ /_/ /_/ \__/\__/____/___/____/ /-|____|--\___|_ /_______ /---http://nyogtha.org-------->->-\ /-<-<------------\/--------\/---------------nyogtha@flipp.net---\ From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 16:32:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AAA5537B404 for ; Fri, 4 Apr 2003 16:32:30 -0800 (PST) Received: from h1.liquidneon.com (h1.liquidneon.com [66.252.192.116]) by mx1.FreeBSD.org (Postfix) with SMTP id 75E6A43FA3 for ; Fri, 4 Apr 2003 16:32:29 -0800 (PST) (envelope-from so14k@so14k.com) Received: (qmail 89223 invoked from network); 5 Apr 2003 00:32:28 -0000 Received: from h1.liquidneon.com (HELO so14k.com) (66.252.192.116) by h1.liquidneon.com with SMTP; 5 Apr 2003 00:32:28 -0000 Received: from 12-211-226-151.client.attbi.com ([12.211.226.151]) (SquirrelMail authenticated user so14k@so14k.com) by mail.so14k.com with HTTP; Fri, 4 Apr 2003 17:32:28 -0700 (MST) Message-ID: <57807.12.211.226.151.1049502748.squirrel@mail.so14k.com> Date: Fri, 4 Apr 2003 17:32:28 -0700 (MST) From: To: In-Reply-To: <000d01c2fb0a$5574adf0$3800000a@LAPDANCE> References: <000d01c2fb0a$5574adf0$3800000a@LAPDANCE> X-Priority: 3 Importance: Normal X-Mailer: SquirrelMail (version 1.2.11) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-hackers@freebsd.org cc: freebsd-questions@FreeBSD.ORG Subject: Re: problems with 4.8 release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 00:32:31 -0000 Aslak, there was a cyclic dependancy in the Xft port, cvsupping your ports should fix this, and at the sametime fix the MySQL problem (I believe one problem is causing the other). Brad > howdy. I upgraded from 4.7 to 4.8 release today and have had some > trouble afterwards. > > Firstly, MySQL suddenly started using huge amounts of memory, diskspace > and cpu resulting in kernel errors > > Secondly, when doing ports operations the computer starts "endless" > copies of make, until i get "Cannot fork: Resource temporarily > unavailable" Errors. The system load is waaaay to high and everything > freezes for a little while. I have made no other changes to my system > after upgrading. I checked the newsgroups and google, but the only thing > I could find was a number of posts from people who had altered their > make.conf and caused the problem. > > Some snippets: > > ===> Cleaning for jday-1.3 > ===> astro/ksetispy > Cannot fork: Resource temporarily unavailable > Cannot fork: Resource temporarily unavailable > > ===> Cleaning for rar-3.11,1 > ===> archivers/rox-archive > Cannot fork: Resource temporarily unavailable > Cannot fork: Resource temporarily unavailable > Cannot fork: Resource temporarily unavailable > Cannot fork: Resource temporarily unavailable > > etc. etc. > > from ps aux (numerous pages of this): > > root 94260 0.6 0.1 780 636 p0 S+ 2:28AM 0:00.18 (make) > root 94265 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94266 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94267 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u > root 94291 0.5 0.1 756 616 p0 S+ 2:28AM 0:00.16 (make) > root 94302 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94303 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94304 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.01 sort -u > root 94325 0.5 0.1 744 608 p0 S+ 2:28AM 0:00.16 (make) > root 94330 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94331 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94332 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u > root 94344 0.8 0.1 780 636 p0 S+ 2:28AM 0:00.18 (make) > root 94349 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94350 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94351 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u > root 94375 0.6 0.1 756 616 p0 S+ 2:28AM 0:00.16 (make) > root 94386 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94387 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94388 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u > root 94409 0.7 0.1 744 608 p0 S+ 2:28AM 0:00.17 (make) > root 94414 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94415 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94416 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u > root 94428 0.9 0.1 780 636 p0 S+ 2:28AM 0:00.18 (make) > root 94433 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94434 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94435 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u > root 94459 0.6 0.1 756 616 p0 S+ 2:28AM 0:00.16 (make) > root 94470 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.00 (sh) > root 94471 0.0 0.1 640 268 p0 S+ 2:28AM 0:00.01 (sh) > root 94472 0.0 0.1 2000 452 p0 S+ 2:28AM 0:00.00 sort -u > > > Top lists many, many pages of make, most of the ones i can see in wait > mode. > > > I'm not sure if anything of this is normal, cause I've never really had > a reason to study resourcemanagement during port cleaning before. > > > Anyone else experiencing this or got any advice to offer? > > thanks > > -Aslak > > -- > .______________ ___ _________. ____ ___ _______ > \__ ___/ | \/ _____/ / __/______ ___ / _ )/ __/ _ \ > | | / ~ \_____ \ / _// __/ -_) -_) _ |\ \/ // / > | | \ Y / \ /_/ /_/ \__/\__/____/___/____/ > /-|____|--\___|_ /_______ /---http://nyogtha.org-------->->-\ > /-<-<------------\/--------\/---------------nyogtha@flipp.net---\ > > _______________________________________________ > 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 Apr 4 16:34:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DA55737B401; Fri, 4 Apr 2003 16:34:01 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4236F43F3F; Fri, 4 Apr 2003 16:34:01 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0021.cvx22-bradley.dialup.earthlink.net ([209.179.198.21] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 191bd9-0003Hs-00; Fri, 04 Apr 2003 16:34:00 -0800 Message-ID: <3E8E2418.9B46EBDD@mindspring.com> Date: Fri, 04 Apr 2003 16:32:24 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kan Cai References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a43d55dd39a296e4a370d6d792df2fb12a3ca473d225a0f487350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: the CPU interrupt handler X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 00:34:02 -0000 Kan Cai wrote: > I am trying to locate the CPU interrupt handler, but with no luck. I > guess it is somewhere in the "1386" folder, but not sure which file is > doing the job. Could someone there shed some lights on this? > > Since I am trying to capture the NIC interrupts, so it should not be > exceptions. Thanks a lot. You need to look at an existing NIC driver to see how it grabs interrupts. The functions you are probably interested in are bus_setup_intr() and bus_teardown_intr(). If you are trying to do this in an evil, i386 way, because you want to intercept the interrupt path for some legitimate instrumentation purpose, or because you have some wrong idea that this will make your networking product run faster, then you could do worse than to look at the functions "inthand_*" in /usr/src/sys/i386/isa/intr_machdep.c. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 17:10:46 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37FFA37B401 for ; Fri, 4 Apr 2003 17:10:46 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D6DB43F85 for ; Fri, 4 Apr 2003 17:10:45 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0021.cvx22-bradley.dialup.earthlink.net ([209.179.198.21] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 191cCg-0002ee-00; Fri, 04 Apr 2003 17:10:43 -0800 Message-ID: <3E8E2CA8.3B6086E6@mindspring.com> Date: Fri, 04 Apr 2003 17:08:56 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Sreekanth References: <000001c2fa20$2ee5ba20$ae28a8c0@SREELAPTOP> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4db152b73e3f84429e7038bf54a82224193caf27dac41a8fd350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org Subject: Re: Mmap and malloc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 01:10:46 -0000 Note: For really basic questions, you should probably post questions like these to mailto:questions@freebsd.org . - This is the third time in 24 hours you have asked this question. The first two times, you asked it one hour apart. The last time you asked it on -arch, which is definitely the wrong list to ask on; it is a architectural discussion list. I will answer your question here on -hackers, but realize that asking the same thing repeatedly in short intervals is likely to get you ignored in the future. - Sreekanth wrote: > I have a situation i am not sure i understand.I am running a 4.6.2 > FreeBSD system with a Dual Xeon board with 2GB of Physical memory. Not relevent. Both mmap() and malloc() operate on vitural address spaces, and are user space, and so are limited by your UVA size. Worst case, mmap() or malloc() will give you more memory than you actually have physical memory for, and then start swapping. That's what "virtual memory" is supposed to do. > I have a test program which continuoulsy calls mmap(with larger size > each time) till it receives MAP_FAILED return value. I then call > malloc(with bigger memory size each time) continuosly till it > fails.Here are my results. > > Max mem mapped = 714 MB > Max mem alloc = 308 MB > > My MAXDMSIZ is 1200*1024*1024 and KVA_PAGE is 512 (2GB) > > If i swap the order in wich mmap and malloc are called, then i get the > following result. > Max mem alloc = 1200MB > Max mem mapped = 711MB > > My questions are as follows > 1) Why is the difference between two approaches. ? Malloced memory comes from growing the BSS, and mapping anonymous pages into them. Mmap'ed memory comes from selecting an address and mapping pages into it. There is a specific limit on the number of pages you can mmap(), which is administratively enforced. It is both a kernel tuning option, and an administrative "soft" limit. Which you are hitting depends on which is smaller. The "soft" limit is set via your login class in /etc/login.conf. The reason the two approaches give different answers is that you are probably not specifying a mapping address for the mmap()'ed memory that you are using. As a result, malloc() stops giving you anonymous pages as soon as it hits its head on the first mapping that you did with mmap(). Specify a location for the mappings, and the problem will "go away". Specifically, add a "debug" option to your test program, and then print out as "0x%08x" each of the start and end addresses of the memory regions returned by mmap() and malloc() in both cases. The overlap collision should become very obvious to you very quickly. > 2) What exactly is the relationship between mmap malloc and KVA_PAGES. 4G - KVA_PAGES = available user process address space. Or to put it another way: UVA + KVA = 4G That's because 2^32 = 4G, and you are running on a 32 bit architecture. Both mmap() and malloc() allocate portions of the available UVA. > 3) I found that the Maximum mmapped memory = 4GB - KVA_PAGES*PAGE_SIZE > - MAXDSIZ - 134 > What is the 134 value..? It is very consistent for me for various > values of KVA_PAGES and MAXDSIZ, so i am ruling it being just a > coincidence. Overhead for the kernel. If you want to understand where every byte is going, you are going to have to understand everything in locore.s, machdep.c, and the boot loader. Frankly, it's not worth the amount of effort required to do this (I say this having done it once), because the information changes from release to release. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 17:18:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B4BB37B401; Fri, 4 Apr 2003 17:18:32 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BDB843FBF; Fri, 4 Apr 2003 17:18:32 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0021.cvx22-bradley.dialup.earthlink.net ([209.179.198.21] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 191cKD-00040n-00; Fri, 04 Apr 2003 17:18:30 -0800 Message-ID: <3E8E2E79.AE7CB3DA@mindspring.com> Date: Fri, 04 Apr 2003 17:16:41 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Aslak Evang References: <000d01c2fb0a$5574adf0$3800000a@LAPDANCE> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4db152b73e3f844295a2edaf2ef8b8a533ca473d225a0f487350badd9bab72f9c350badd9bab72f9c cc: freebsd-hackers@freebsd.org cc: BSD Subject: Re: problems with 4.8 release? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 01:18:32 -0000 Aslak Evang wrote: > howdy. I upgraded from 4.7 to 4.8 release today and have had some > trouble afterwards. > > Firstly, MySQL suddenly started using huge amounts of memory, diskspace > and cpu resulting in kernel errors I suspect you are using the "Linux Threads" version of MySQL. The default KVA/UVA bance changed recently in the RELENG_4 branch, and this caused the Linux threads mailbox location negotiated between the kernel and user space to change. This was "fixed" in 4.8-RELEASE, but it was fixed in a way that lets you move KVA_PAGES up and down, but it is not binarily compatible. You probably need to relink MySQL against the new Linux threads library, which probably means recompiling both the library port and MySQL. -- Terry From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 4 19:06:33 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3A7737B401 for ; Fri, 4 Apr 2003 19:06:33 -0800 (PST) Received: from snark.ratmir.ru (snark.ratmir.ru [213.24.248.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65E0843FCB for ; Fri, 4 Apr 2003 19:06:32 -0800 (PST) (envelope-from freebsd@snark.ratmir.ru) Received: from snark.ratmir.ru (freebsd@localhost [127.0.0.1]) by snark.ratmir.ru (8.12.9/8.12.9) with ESMTP id h3536UDR005203 for ; Sat, 5 Apr 2003 07:06:30 +0400 (MSD) (envelope-from freebsd@snark.ratmir.ru) Received: (from freebsd@localhost) by snark.ratmir.ru (8.12.9/8.12.9/Submit) id h3536TjW005202 for freebsd-hackers@freebsd.org; Sat, 5 Apr 2003 07:06:29 +0400 (MSD) Date: Sat, 5 Apr 2003 07:06:29 +0400 From: Alex Semenyaka To: freebsd-hackers@freebsd.org Message-ID: <20030405030629.GA2669@snark.ratmir.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Mutt/1.5.4i Subject: /bin/sh and BIG NUMBERS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 03:06:33 -0000 I found that /bin/sh cannot handle numbers those do not fit to integer type. That is not too bad. Too bad that it just silently warps them in arithmetic= al operations: alexs@snark> /bin/sh -c 'echo $((10000000000-1))' 2147483646 That was not a problem 5 years ago... But now we have a lot of 64-bits valu= es. So those old scripts which perfectly worked for a long time now can give wr= ong results, and you will not be able even to notice it, there is no any diagno= stics or such. The simplest way to fix it is to switch internal /bin/sh arithmeti= cs =66rom 32 to 64-bits (you know, approach "640K ought to be enough for anybo= dy"). I've did the patch for this (below), please, look at it. Any comments or suggestions? diff -u -U1 -r ../sh.old/arith.h ./arith.h --- ../sh.old/arith.h Fri Jul 19 08:38:51 2002 +++ ./arith.h Sat Apr 5 06:26:48 2003 @@ -36,3 +36,3 @@ =20 -int arith(char *); +long long arith(char *); int expcmd(int , char **); diff -u -U1 -r ../sh.old/arith.y ./arith.y --- ../sh.old/arith.y Fri Jul 19 08:38:51 2002 +++ ./arith.y Sat Apr 5 06:23:58 2003 @@ -1 +1,7 @@ +%{ +#define YYSTYPE long long + +static long long arith_res; +%} + %token ARITH_NUM ARITH_LPAREN ARITH_RPAREN @@ -16,3 +22,4 @@ exp: expr =3D { - return ($1); + arith_res =3D $1; + return (0); } @@ -110,7 +117,5 @@ =20 -int +long long arith(char *s) { - long result; - arith_buf =3D arith_startbuf =3D s; @@ -118,3 +123,3 @@ INTOFF; - result =3D yyparse(); + yyparse(); arith_lex_reset(); /* reprime lex */ @@ -122,3 +127,3 @@ =20 - return (result); + return (arith_res); } @@ -144,3 +149,3 @@ char **ap; - long i; + long long i; =20 @@ -169,3 +174,3 @@ =20 - out1fmt("%ld\n", i); + out1fmt("%qd\n", i); return (! i); diff -u -U1 -r ../sh.old/arith_lex.l ./arith_lex.l --- ../sh.old/arith_lex.l Fri Jul 19 08:38:51 2002 +++ ./arith_lex.l Sat Apr 5 06:24:30 2003 @@ -48,3 +48,3 @@ =20 -extern int yylval; +extern long long yylval; extern char *arith_buf, *arith_startbuf; @@ -58,3 +58,3 @@ [ \t\n] { ; } -[0-9]+ { yylval =3D atol(yytext); return(ARITH_NUM); } +[0-9]+ { yylval =3D strtoll(yytext, NULL, 10); return(ARITH_NUM); } "(" { return(ARITH_LPAREN); } diff -u -U1 -r ../sh.old/expand.c ./expand.c --- ../sh.old/expand.c Fri Jan 17 14:37:03 2003 +++ ./expand.c Sat Apr 5 06:35:15 2003 @@ -368,3 +368,3 @@ char *p, *start; - int result; + long long result; int begoff; @@ -384,6 +384,6 @@ */ -#if INT_MAX / 1000000000 >=3D 10 || INT_MIN / 1000000000 <=3D -10 -#error "integers with more than 10 digits are not supported" -#endif - CHECKSTRSPACE(12 - 2, expdest); +//#if INT_MAX / 1000000000 >=3D 10 || INT_MIN / 1000000000 <=3D -10 +//#error "integers with more than 10 digits are not supported" +//#endif + CHECKSTRSPACE(21 - 2, expdest); USTPUTC('\0', expdest); @@ -409,3 +409,3 @@ result =3D arith(p+2); - fmtstr(p, 12, "%d", result); + fmtstr(p, 21, "%qd", result); while (*p++) /Alexs From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 5 01:01:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B496737B404 for ; Sat, 5 Apr 2003 01:01:18 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1D2143FB1 for ; Sat, 5 Apr 2003 01:01:14 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) h35919gg060962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 5 Apr 2003 12:01:11 +0300 (EEST) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.9/8.12.8/Submit) id h35918i1060957; Sat, 5 Apr 2003 12:01:08 +0300 (EEST) (envelope-from ru) Date: Sat, 5 Apr 2003 12:01:08 +0300 From: Ruslan Ermilov To: af asdf Message-ID: <20030405090108.GA55982@sunbay.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+pHx0qQiF2pBVqBT" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.4i cc: freebsd-hackers@FreeBSD.ORG Subject: Re: disklabal messed, need help! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 09:01:19 -0000 --+pHx0qQiF2pBVqBT Content-Type: multipart/mixed; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 26, 2003 at 01:03:03AM +0800, af asdf wrote: >=20 > Anyone knows how to repair disk when the freebsddisk lable is destroyed? >=20 > I have a 12G HD, the 1st partition is Windows NT, the second the for=20 > FreeBSD. For some reason i installed a new disk label to it and newfs it = a=20 > bit. Once I found the newfs started, I have turned power off right away,= =20 > but the disk is bad now. anyone knows how to repair this? >=20 Yes. Read the attached. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --IJpNTDwzlM2Ie8A6 Content-Type: message/rfc822 Content-Disposition: inline Date: Tue, 9 Jul 2002 14:29:45 +0300 From: Ruslan Ermilov To: hackers@FreeBSD.org Bcc: Igor Kucherenko Subject: How I managed to lose (and then recover) my disklabel Message-ID: <20020709112945.GA79816@sunbay.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline User-Agent: Mutt/1.3.99i --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! I have my disk set in a so-called dangerously-dedicated mode, and its disklabel looks like this: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 8388608 262144 4.2BSD 1024 8192 16 # (Cyl. 260*- 8582= *) b: 262144 0 swap # (Cyl. 0 - 260*) c: 19932192 0 unused 0 0 # (Cyl. 0 - 1977= 3) d: 11281440 8650752 4.2BSD 1024 8192 16 # (Cyl. 8582*- 1977= 3*) I recently upgraded the amount of RAM available on this machine from 128M to 256M, and it took me a while to figure out why swapon(8) no longer wants to enable swapping on `b' (which is only 128M large). I was pretty tired at the moment, and I thought that maybe the problem is with the contents of my `b' partition, so I did: dd if=3D/dev/zero of=3D/dev/ad0b bs=3D512 count=3D1000. This did not help, and eventually I recalled the fact of upgrading RAM, and I've looked into some /sys/kern code to verify my guesses. Nevertheless, I continued with my work on this machine, and compiled and installed the new kernel (without any problems) on it. Next reboot refused to boot FreeBSD by mentioning that "No operating system was found". I wondered how I managed to screw my disk up. It was too late in the night, so I delayed it until the next morning. The night and next morning gave me the knowledge about what I did wrong, and it surprised me a lot, as I never thought about it before. The disklabel occupies the first sectors of the disk (or slice, if you are under i386 and have your disk sliced). My `b' partition starts from the very first sector of my disk, so when I did the dd(1) it overwrote the disklabel of my disk with zeroes. Once I understood and verified it, I recovered from this very fast. I remembered that my swap partition was first and exactly 128M large, so I skipped over this space, and saved some amount of my `a' partition into a plain file. Fortunately, file(1) is smart enough to read the superblock and tell you about the size of the filesystems. This way I found the size of my `a' partition and an offset for my `d' partition. Hope this technique could help someone in a similar situation. Now the question. Where is the code in the kernel that prevents swapping and/or writing to a disklabel portion of a physically first partition on the disk? Thanks, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iD8DBQE9KskpUkv4P6juNwoRAhZyAJ992MFDKIqmNlIyR4y1d9uQqcqDjwCdER1Q HRI8XYev1XiP/rwuXor60hc= =W6/d -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN-- --IJpNTDwzlM2Ie8A6-- --+pHx0qQiF2pBVqBT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+jptUUkv4P6juNwoRAnkLAJ9dzLVVBHi0e7xepPIu0JZ5yKHRlQCgiOlh we7cF5L1hmOm4LOo4tKJRQU= =Q3Wi -----END PGP SIGNATURE----- --+pHx0qQiF2pBVqBT-- From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 5 01:24:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A079F37B401; Sat, 5 Apr 2003 01:24:55 -0800 (PST) Received: from pedigree.cs.ubc.ca (pedigree.cs.ubc.ca [142.103.6.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22CDA43FBF; Sat, 5 Apr 2003 01:24:55 -0800 (PST) (envelope-from kcai@cs.ubc.ca) Received: from granville.cs.ubc.ca (granville.cs.ubc.ca [142.103.7.20]) by pedigree.cs.ubc.ca (8.12.9/8.11.4) with ESMTP id h359Os0V027420; Sat, 5 Apr 2003 01:24:54 -0800 (PST) Date: Sat, 5 Apr 2003 01:24:54 -0800 (PST) From: Kan Cai To: Terry Lambert In-Reply-To: <3E8E2418.9B46EBDD@mindspring.com> Message-ID: References: <3E8E2418.9B46EBDD@mindspring.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: the CPU interrupt handler X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 09:24:56 -0000 On Fri, 4 Apr 2003, Terry Lambert wrote: > Kan Cai wrote: > > I am trying to locate the CPU interrupt handler, but with no luck. I > > guess it is somewhere in the "1386" folder, but not sure which file is > > doing the job. Could someone there shed some lights on this? > > > > Since I am trying to capture the NIC interrupts, so it should not be > > exceptions. Thanks a lot. > > You need to look at an existing NIC driver to see how it > grabs interrupts. The functions you are probably interested > in are bus_setup_intr() and bus_teardown_intr(). > > If you are trying to do this in an evil, i386 way, because you > want to intercept the interrupt path for some legitimate > instrumentation purpose, or because you have some wrong idea > that this will make your networking product run faster, then > you could do worse than to look at the functions "inthand_*" > in /usr/src/sys/i386/isa/intr_machdep.c. Thanks a lot for this info, but I guess I didn't express myself clearly. The real goal of mine is to insert a timer into where the processor gets interrupted, switches the context, and finally calls the corresponding handlers. After reading the intr_machdept.c, I am kinda doubt that it is the right file I should focus, it mainly does the setup and remove entries in GDT and IDT, doesn't it? I found that in "apic_vector.s", there is a function called "INTR", is that true that I should put my timer in this function? Any related info is highly appreciated. Cheers, ken > > -- Terry > From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 5 01:49:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B18037B401 for ; Sat, 5 Apr 2003 01:49:02 -0800 (PST) Received: from mail.econolodgetulsa.com (mail.econolodgetulsa.com [198.78.66.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DF1843F85 for ; Sat, 5 Apr 2003 01:49:01 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Received: from mail (mail [198.78.66.163])h359n3eq034593 for ; Sat, 5 Apr 2003 01:49:03 -0800 (PST) (envelope-from user@mail.econolodgetulsa.com) Date: Sat, 5 Apr 2003 01:49:03 -0800 (PST) From: Josh Brooks To: freebsd-hackers@freebsd.org Message-ID: <20030405011856.T11740-100000@mail.econolodgetulsa.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: KVA suggestions on 4gig+2gig memory system ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 09:49:02 -0000 Hello, I have a new system that has 4gigs of physical memory ... and I am concerned about running into problems due to running out of KVM. I am running FreeBSD 4.8, and in addition to 4gigs of ram, I have configured 2gigs of swap space. The system does not swap much at all, but I need it there just in case. I will be upping shm as follows for database use: options SHMSEG=256 options SEMMNI=384 options SEMMNU=256 options SEMMAP=256 options SEMMNS=512 options SHMMAXPGS=12288 options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" and the system will be used as a large multiuser system with a lot of different processes running (1200-1600 processes) So my questions are: 1. Should I change the default value of KVA_PAGES ? I have another system running the same processes and same load as this one, and it does not specify any KVA_PAGES in the kernel config, so it is using the default value - and it works wonderfully. BUT, this other system has 3 physical + 2 swap, and not 4 physical. So will that extra gig of physical demand altering KVA_PAGES ? 2. If I should change it, suggestions ? The default is 260, and I believe 512 splits memory in half ... perhaps 512 is a good number ? 3. are there any other tunables to worry about ? I think the key here is that I am running wonderfully on the 3+2 system without any tunings for KVA, so I am just looking for advice on what the extra gig of physical does for me...it may be useful to mention that the original 3+2 system has 40% swap usage ... but maybe that doesn't matter. thanks! From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 5 09:31:23 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCF9837B401 for ; Sat, 5 Apr 2003 09:31:23 -0800 (PST) Received: from speicher.org (sirius.speicher.org [209.74.10.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 68CBA43FBF for ; Sat, 5 Apr 2003 09:31:22 -0800 (PST) (envelope-from geoff@speicher.org) Received: from localhost (geoff@localhost) by speicher.org (8.11.6/8.11.6) with ESMTP id h35HhTv11009; Sat, 5 Apr 2003 12:43:29 -0500 (EST) (envelope-from geoff@speicher.org) Date: Sat, 5 Apr 2003 12:43:29 -0500 (EST) From: "Geoffrey C. Speicher" To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Marc Ernst Eddy van Woerkom cc: Poul-Henning Kamp Subject: kernel device dependency and sys/conf/files format X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Apr 2003 17:31:24 -0000 I'm revisiting the project to determine device dependency in the kernel, and I've run into a situation where net/if.c requires the ether device, but no device appears to require net/if.c directly. sys/conf/files says that net/if.c is "standard", but I have no idea what that means in terms of building a kernel. An entry (filename) in that file can be listed as standard, mandatory, optional, or count. Mandatory and optional seem pretty self-explanatory, but can anyone explain the meaning of standard and count? I assume that net/if.c can be removed from the build or else it would be listed as mandatory, but it does appear that an awful lot of things implicitly depend on it. Geoff From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 5 17:50:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CB8637B401 for ; Sat, 5 Apr 2003 17:50:03 -0800 (PST) Received: from lerami.lerctr.org (lerami.lerctr.org [207.158.72.11]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92C7543FA3 for ; Sat, 5 Apr 2003 17:50:02 -0800 (PST) (envelope-from ler@lerctr.org) Received: from lerlaptop.lerctr.org (lerlaptop.lerctr.org [207.158.72.14]) (authenticated bits=0)h361nwYC012814 for ; Sat, 5 Apr 2003 19:49:59 -0600 (CST) Date: Sat, 05 Apr 2003 19:49:58 -0600 From: Larry Rosenman To: freebsd-hackers@freebsd.org Message-ID: <92180000.1049593798@lerlaptop.lerctr.org> X-Mailer: Mulberry/3.0.3 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Subject: -CURRENT/Integer Divide Exception/CBB related X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 01:50:03 -0000 Can I get someone to look at the post I made to the -CURRENT list yesterday with a random Integer Divide Exception I get when my Wireless card is active? I have a Panic Dump available. This is a -CURRENT installed Thursday night from 5.0-RELEASE media, same issue on 5.0-RELEASE. Updated sources from the 4.8-RC installed as a Dual-Boot, and the same EXACT hardware runs fine under 4.8-RC from thursday. I'm willing to make whatever I can available. LER -- Larry Rosenman http://www.lerctr.org/~ler Phone: +1 972-414-9812 E-Mail: ler@lerctr.org US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749 From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 5 19:44:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 40C7A37B404 for ; Sat, 5 Apr 2003 19:44:35 -0800 (PST) Received: from thalia.otenet.gr (thalia.otenet.gr [195.170.0.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id D26E143F75 for ; Sat, 5 Apr 2003 19:44:32 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a193.otenet.gr [212.205.215.193]) by thalia.otenet.gr (8.12.9/8.12.9) with ESMTP id h363iSfe006654; Sun, 6 Apr 2003 06:44:29 +0300 (EEST) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.9/8.12.9) with ESMTP id h363iRt3004890; Sun, 6 Apr 2003 06:44:27 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.9/8.12.9/Submit) id h363Oo8v004718; Sun, 6 Apr 2003 06:24:50 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 6 Apr 2003 06:24:50 +0300 From: Giorgos Keramidas To: Alex Semenyaka Message-ID: <20030406032450.GC4130@gothmog.gr> References: <20030405030629.GA2669@snark.ratmir.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030405030629.GA2669@snark.ratmir.ru> cc: freebsd-hackers@freebsd.org Subject: Re: /bin/sh and BIG NUMBERS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 03:44:35 -0000 On 2003-04-05 07:06, Alex Semenyaka wrote: > I found that /bin/sh cannot handle numbers those do not fit to integer > type. That is not too bad. Too bad that it just silently warps them > in arithmetical operations: > > alexs@snark> /bin/sh -c 'echo $((10000000000-1))' > 2147483646 > > That was not a problem 5 years ago... But now we have a lot of 64-bits > values. So those old scripts which perfectly worked for a long time > now can give wrong results, and you will not be able even to notice > it, there is no any diagnostics or such. The simplest way to fix it is > to switch internal /bin/sh arithmetics from 32 to 64-bits (you know, > approach "640K ought to be enough for anybody"). I've did the patch > for this (below), please, look at it. Any comments or suggestions? > > diff -u -U1 -r ../sh.old/arith.h ./arith.h > --- ../sh.old/arith.h Fri Jul 19 08:38:51 2002 > +++ ./arith.h Sat Apr 5 06:26:48 2003 > @@ -36,3 +36,3 @@ > > -int arith(char *); > +long long arith(char *); > int expcmd(int , char **); > > [snip rest of long-long using patch] Nice idea, but we should probably ask the -standards people if we can/should make this use uint64_t and %jd instead of `long long' (using %qd is deprecated and %lld is advised in printf(3) anyway). : giorgos@gothmog[06:19]/tmp/lala$ cat lala.c : #include : #include : #include : : int : main(void) : { : uint64_t foo; : : foo = UINT_MAX; : printf("%jd\n", foo); : return (0); : } : giorgos@gothmog[06:19]/tmp/lala$ make WARNS=5 : Warning: Object directory not changed from original /tmp/lala : cc -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k \ : -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ : -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow \ : -Wcast-align -Wuninitialized -Wformat=2 -Wno-format-extra-args \ : -Werror -c lala.c : cc -O -pipe -Wsystem-headers -Werror -Wall -Wno-format-y2k \ : -W -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith \ : -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow \ : -Wcast-align -Wuninitialized -Wformat=2 -Wno-format-extra-args \ : -Werror -o lala lala.o : giorgos@gothmog[06:19]/tmp/lala$ ./lala : 4294967295 : giorgos@gothmog[06:19]/tmp/lala$