From owner-freebsd-hackers Sun Jul 30 9:58:58 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id 1D93C37B673; Sun, 30 Jul 2000 09:58:48 -0700 (PDT) (envelope-from bsdx@looksharp.net) Received: from localhost (bsdx@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id MAA86668; Sun, 30 Jul 2000 12:58:40 -0400 (EDT) (envelope-from bsdx@looksharp.net) Date: Sun, 30 Jul 2000 12:58:39 -0400 (EDT) From: Adam To: Doug Barton Cc: freebsd-hackers@FreeBSD.ORG, dillon@FreeBSD.ORG Subject: Re: /tmp on a ramdisk? In-Reply-To: <398223FF.17B737A7@gorean.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 28 Jul 2000, Doug Barton wrote: >Ted Sikora wrote: >> >> A while ago several people suggested using /tmp on a ramdisk along with >> softupdates. Right now I am running several production servers with >> 4.1-STABLE with softupdates. I'm really happy with the performance. What >> benefits would I realize using /tmp on a ramdisk? > > CW on this is varied, but the current trend is that /tmp on a md is just a >waste of ram, since (basically) everything in /tmp is in ram twice. > >Doug I thought that was MFS only and that MD took care of that issue? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 10: 4:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id 8BBFF37B67B for ; Sun, 30 Jul 2000 10:04:28 -0700 (PDT) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 13IwVS-000N8H-00; Sun, 30 Jul 2000 19:04:06 +0200 Date: Sun, 30 Jul 2000 19:04:06 +0200 From: Neil Blakey-Milner To: Doug Barton Cc: Ted Sikora , "freebsd-hackers@FreeBSD.ORG" Subject: Re: /tmp on a ramdisk? Message-ID: <20000730190406.A88910@mithrandr.moria.org> References: <39821108.CD43006A@home.com> <398223FF.17B737A7@gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <398223FF.17B737A7@gorean.org>; from DougB@gorean.org on Fri, Jul 28, 2000 at 05:23:27PM -0700 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri 2000-07-28 (17:23), Doug Barton wrote: > Ted Sikora wrote: > > > > A while ago several people suggested using /tmp on a ramdisk along with > > softupdates. Right now I am running several production servers with > > 4.1-STABLE with softupdates. I'm really happy with the performance. What > > benefits would I realize using /tmp on a ramdisk? > > CW on this is varied, but the current trend is that /tmp on a md is just a > waste of ram, since (basically) everything in /tmp is in ram twice. I think that's MFS, not MD. Neil -- Neil Blakey-Milner Sunesi Clinical Systems nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 11:23:33 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dt052n3e.san.rr.com (dt052n3e.san.rr.com [204.210.33.62]) by hub.freebsd.org (Postfix) with ESMTP id 8FCEC37B567; Sun, 30 Jul 2000 11:23:27 -0700 (PDT) (envelope-from DougB@gorean.org) Received: from gorean.org (master [10.0.0.2]) by dt052n3e.san.rr.com (8.9.3/8.9.3) with ESMTP id LAA26456; Sun, 30 Jul 2000 11:23:09 -0700 (PDT) (envelope-from DougB@gorean.org) Message-ID: <3984728D.15638FE3@gorean.org> Date: Sun, 30 Jul 2000 11:23:09 -0700 From: Doug Barton Organization: Triborough Bridge & Tunnel Authority X-Mailer: Mozilla 4.73 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Adam Cc: freebsd-hackers@FreeBSD.ORG, dillon@FreeBSD.ORG Subject: Re: /tmp on a ramdisk? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Adam wrote: > > On Fri, 28 Jul 2000, Doug Barton wrote: > > >Ted Sikora wrote: > >> > >> A while ago several people suggested using /tmp on a ramdisk along with > >> softupdates. Right now I am running several production servers with > >> 4.1-STABLE with softupdates. I'm really happy with the performance. What > >> benefits would I realize using /tmp on a ramdisk? > > > > CW on this is varied, but the current trend is that /tmp on a md is just a > >waste of ram, since (basically) everything in /tmp is in ram twice. > > > >Doug > > I thought that was MFS only and that MD took care of that issue? You're about the 4th person to say that, but so far no one has said how they are different. How does MD solve the problem of the stuff on its filesystem being in memory once (on the memory disk) and again in cache? I certainly don't mind being proved wrong on this, since I don't use ram disks myself, but it would be nice to have some details. :) Doug To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 12:32:14 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from turtle.looksharp.net (cc360882-a.strhg1.mi.home.com [24.2.221.22]) by hub.freebsd.org (Postfix) with ESMTP id 7E72C37B6C1; Sun, 30 Jul 2000 12:32:08 -0700 (PDT) (envelope-from bsdx@looksharp.net) Received: from localhost (bsdx@localhost) by turtle.looksharp.net (8.9.3/8.9.3) with ESMTP id PAA87825; Sun, 30 Jul 2000 15:32:12 -0400 (EDT) (envelope-from bsdx@looksharp.net) Date: Sun, 30 Jul 2000 15:32:12 -0400 (EDT) From: Adam To: Doug Barton Cc: freebsd-hackers@FreeBSD.ORG, dillon@FreeBSD.ORG Subject: Re: /tmp on a ramdisk? In-Reply-To: <3984728D.15638FE3@gorean.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 30 Jul 2000, Doug Barton wrote: >Adam wrote: >> >> On Fri, 28 Jul 2000, Doug Barton wrote: >> >> >Ted Sikora wrote: >> >> >> >> A while ago several people suggested using /tmp on a ramdisk along with >> >> softupdates. Right now I am running several production servers with >> >> 4.1-STABLE with softupdates. I'm really happy with the performance. What >> >> benefits would I realize using /tmp on a ramdisk? >> > >> > CW on this is varied, but the current trend is that /tmp on a md is just a >> >waste of ram, since (basically) everything in /tmp is in ram twice. >> > >> >Doug >> >> I thought that was MFS only and that MD took care of that issue? > > You're about the 4th person to say that, but so far no one has said how >they are different. How does MD solve the problem of the stuff on its >filesystem being in memory once (on the memory disk) and again in cache? > > I certainly don't mind being proved wrong on this, since I don't use ram >disks myself, but it would be nice to have some details. :) From recollection I think its because the data is in memory (obvious) and it also gets cached in the disk buffer or something like that :) I'm not quite sure, thats why I cc'ed Matt. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 12:48: 5 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id F29B637B76F; Sun, 30 Jul 2000 12:47:35 -0700 (PDT) (envelope-from green@FreeBSD.org) Date: Sun, 30 Jul 2000 15:47:19 -0400 (EDT) From: Brian Fundakowski Feldman X-Sender: green@green.dyndns.org To: Adam Cc: Doug Barton , freebsd-hackers@FreeBSD.ORG, dillon@FreeBSD.ORG Subject: Re: /tmp on a ramdisk? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The issue is that mount_mfs is simply newfs with a catch: it constructs the new filesystem completely in memory and lives on as the storage for the mounted filesystem. If you view the processes on a system using MFS, you will notice that one of them is the original mount_mfs, having become a daemon. Yes, things are stored twice in memory: once in the buffer cache and once in the MFS process. Yes, they are also copied multiple times. MFS simply can't perform as well as you might expect. The malloc disk device can because it simply creates a kernel-memory backing store. The disadvantage here is that it's wired memory and can't get swapped out like mount_mfs can. -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 13:28:57 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.nyct.net (bsd4.nyct.net [216.139.128.6]) by hub.freebsd.org (Postfix) with ESMTP id DC13737B7BC; Sun, 30 Jul 2000 13:28:53 -0700 (PDT) (envelope-from mbac@nyct.net) Received: from bsd1.nyct.net (root@bsd1.nyct.net [216.139.128.3]) by mail.nyct.net (8.9.3/8.8.7) with ESMTP id QAA63757; Sun, 30 Jul 2000 16:28:52 -0400 (EDT) (envelope-from mbac@nyct.net) Received: from localhost (mbac@localhost) by bsd1.nyct.net (8.9.3/8.9.3) with ESMTP id QAA44953; Sun, 30 Jul 2000 16:28:54 -0400 (EDT) (envelope-from mbac@nyct.net) X-Authentication-Warning: bsd1.nyct.net: mbac owned process doing -bs Date: Sun, 30 Jul 2000 16:28:54 -0400 (EDT) From: Michael Bacarella To: Brian Fundakowski Feldman Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: /tmp on a ramdisk? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 30 Jul 2000, Brian Fundakowski Feldman wrote: > Yes, things are stored twice in memory: once in the buffer cache and > once in the MFS process. Yes, they are also copied multiple times. > MFS simply can't perform as well as you might expect. The malloc disk > device can because it simply creates a kernel-memory backing store. > The disadvantage here is that it's wired memory and can't get swapped > out like mount_mfs can. This is more out of curiousity than criticism; ..but why not just make a charecter device that corresponds to a chunk of VM and simply run newfs on that? You would still have a relatively proven filesystem (like FFS) and you also get the "benefits" of having it memory resident. Perhaps certain properties of FFS would be less than ideal for this, but you get the idea. Wouldn't this have the same problems as mfs but still avoid existing as a seperate filesystem (and thus, a seperate code base)? -MB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 13:36:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 6724A37B7A9; Sun, 30 Jul 2000 13:36:10 -0700 (PDT) (envelope-from green@FreeBSD.org) Date: Sun, 30 Jul 2000 16:36:03 -0400 (EDT) From: Brian Fundakowski Feldman X-Sender: green@green.dyndns.org To: Michael Bacarella Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: /tmp on a ramdisk? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 30 Jul 2000, Michael Bacarella wrote: > This is more out of curiousity than criticism; > > ..but why not just make a charecter device that corresponds to a chunk > of VM and simply run newfs on that? > > You would still have a relatively proven filesystem (like FFS) and you > also get the "benefits" of having it memory resident. Perhaps certain > properties of FFS would be less than ideal for this, but you get the idea. > > Wouldn't this have the same problems as mfs but still avoid existing as a > seperate filesystem (and thus, a seperate code base)? This avoids certain MFS problems, yes. Please see vnconfig(8) =) > -MB -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 14:23: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from zippy.osd.bsdi.com (zippy.osd.bsdi.com [204.216.27.228]) by hub.freebsd.org (Postfix) with ESMTP id E95A137B74D for ; Sun, 30 Jul 2000 14:23:04 -0700 (PDT) (envelope-from jkh@zippy.osd.bsdi.com) Received: from localhost (jkh@localhost [127.0.0.1]) by zippy.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id OAA41780; Sun, 30 Jul 2000 14:22:32 -0700 (PDT) (envelope-from jkh@zippy.osd.bsdi.com) To: Neil Blakey-Milner Cc: Doug Barton , Ted Sikora , "freebsd-hackers@FreeBSD.ORG" Subject: Re: /tmp on a ramdisk? In-reply-to: Your message of "Sun, 30 Jul 2000 19:04:06 +0200." <20000730190406.A88910@mithrandr.moria.org> Date: Sun, 30 Jul 2000 14:22:32 -0700 Message-ID: <41777.964992152@localhost> From: "Jordan K. Hubbard" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG MD has supplanted MFS, it doesn't run in conjunction with it. Just consider MD the new name for MFS if it makes it easier. - Jordan > On Fri 2000-07-28 (17:23), Doug Barton wrote: > > Ted Sikora wrote: > > > > > > A while ago several people suggested using /tmp on a ramdisk along with > > > softupdates. Right now I am running several production servers with > > > 4.1-STABLE with softupdates. I'm really happy with the performance. What > > > benefits would I realize using /tmp on a ramdisk? > > > > CW on this is varied, but the current trend is that /tmp on a md is jus t a > > waste of ram, since (basically) everything in /tmp is in ram twice. > > I think that's MFS, not MD. > > Neil > -- > Neil Blakey-Milner > Sunesi Clinical Systems > nbm@mithrandr.moria.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Jul 30 21:40:13 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id B4B4737BAB0 for ; Sun, 30 Jul 2000 21:40:08 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id GAA02202; Mon, 31 Jul 2000 06:38:43 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Jordan K. Hubbard" Cc: Neil Blakey-Milner , Doug Barton , Ted Sikora , "freebsd-hackers@FreeBSD.ORG" Subject: Re: /tmp on a ramdisk? In-reply-to: Your message of "Sun, 30 Jul 2000 14:22:32 PDT." <41777.964992152@localhost> Date: Mon, 31 Jul 2000 06:38:43 +0200 Message-ID: <2200.965018323@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <41777.964992152@localhost>, "Jordan K. Hubbard" writes: > >MD has supplanted MFS, it doesn't run in conjunction with it. >Just consider MD the new name for MFS if it makes it easier. Not *quite* true. MD and VN has supplanted MFS. For "boot with this ram-disk" it's MD, for "put my /tmp on ram/swap" it's VN. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 0: 6:18 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from evil.2y.net (ztown2-3-155.adsl.one.net [216.23.16.155]) by hub.freebsd.org (Postfix) with ESMTP id CBCE637BA91 for ; Mon, 31 Jul 2000 00:05:51 -0700 (PDT) (envelope-from cokane@evil.2y.net) Received: (from cokane@localhost) by evil.2y.net (8.9.3/8.9.3) id DAA28262; Mon, 31 Jul 2000 03:11:09 -0400 (EDT) (envelope-from cokane) Date: Mon, 31 Jul 2000 03:11:08 -0400 From: Coleman Kane To: Trent Nelson Cc: Garrett Rooney , Peter Wemm , nimrodm@email.com, hackers@FreeBSD.ORG Subject: Re: Linux NVIDIA drivers vs. default XFree86 drivers (WAS: RE: Video card support) Message-ID: <20000731031108.A28185@cokane.yi.org> References: <3983CB07.9436BB0C@echidna.stu.cowan.edu.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <3983CB07.9436BB0C@echidna.stu.cowan.edu.au>; from tpnelson@echidna.stu.cowan.edu.au on Sun, Jul 30, 2000 at 02:30:16AM -0400 X-Vim: vim:tw=70:ts=4:sw=4 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Trent Nelson had the audacity to say: > Garrett Rooney wrote: > > > > On Sun, 30 Jul 2000, Trent Nelson wrote: > > > > > So, given a working FreeBSD-specific kernel device driver - can the > > > Linux OpenGL driver/libraries provided be handled via linux.ko? > > > > i believe the general answer is a definative maybe. but honestly, do you > > really care enough to try? > > 'Maybe' is good enough for me. > I would guess that if they have managed to abstract their NT source to the point where a simple wrapper can turn it into a linux kmod, then it is quite possible that it may be able to be ported to FreeBSD. The only other thing is whether their X Server could be ported in such a way (is it a binary only X-Server as well? or do they use the r128 driver supplied?). I suppose that one could always run XFree86 in linux emulation...if possible. > > that's less than the > > programmer time to make the NVidia drivers work is worth, and you can > > actually be sure you'll have some kind of success, where the NVidia stuff > > is really up in the air. > > NVIDIA's stand on Open Source can only get better. Unless they're > *really* stupid. > Well, so far they haven't shown this. Since their itroduction of open source drivers they have retracted the openness of their drivers to the point that they are simply a binary with the necessary source to link them to a module. > > -garrett > > Trent. > FWIW: I have a roommate who has been having severe stability issues with NVidia's binary drivers under Debian GNU/Linux 2.1. He has decided to switch back to the XFree86 supplied drivers that have lower performance to stop X from crashing so much. You can't even debug them because the symbols have been stripped out. Too bad. -- Coleman Kane President, UC Free O.S. Users Group - http://pohl.ececs.uc.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 0:33:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 2411537B518 for ; Mon, 31 Jul 2000 00:33:32 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: from localhost (kris@localhost) by freefall.freebsd.org (8.9.3/8.9.2) with ESMTP id AAA71549 for ; Mon, 31 Jul 2000 00:33:31 -0700 (PDT) (envelope-from kris@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: kris owned process doing -bs Date: Mon, 31 Jul 2000 00:33:31 -0700 (PDT) From: Kris Kennaway To: freebsd-hackers@freebsd.org Subject: Re: CRACK - Dreamweaver (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 28 Jul 2000, Kris Kennaway wrote: > > Hi Can you tell me where I can get Crack for Dreamweaver 3 ?/ > > Go to http://2130706433/crackz/index.html for all of your 0-day cracks. > The site is busy though, you might have to keep retrying for a while > before you get in. Since there was some confusion about this in private mail, and one of the people who responded didn't even provide a valid return address, I'd just like to clue these people in on the joke so they don't continue to think I'm a warez monkey: # ping 2130706433 PING 2130706433 (127.0.0.1): 56 data bytes 64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=0.331 ms 64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=0.218 ms 64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=0.240 ms i.e. 2130706433 == 127.0.0.1 in 32-bit notation. Geddit? *sigh* Kris -- In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 1:11:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from idet.rsn.hk-r.se (idet.rsn.hk-r.se [194.47.142.179]) by hub.freebsd.org (Postfix) with ESMTP id 7EFDB37BA7F for ; Mon, 31 Jul 2000 01:11:49 -0700 (PDT) (envelope-from bjorn@tornqvist.net) Received: from tornqvist.net ([194.52.130.37]) by idet.rsn.hk-r.se (8.9.3/8.9.3) with ESMTP id KAA03775; Mon, 31 Jul 2000 10:08:05 +0200 (CEST) (envelope-from bjorn@tornqvist.net) Message-ID: <398534AF.467DE4D5@tornqvist.net> Date: Mon, 31 Jul 2000 10:11:27 +0200 From: Bjorn Tornqvist Organization: West Entertainment Solutions & Technologies AB X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: chris@calldei.com Cc: Nate Williams , freebsd-hackers@freebsd.org Subject: Re: BSD,Posix,Linux Threading - Are they really useable? References: <398111DA.443B41F9@tornqvist.net> <20000728003913.K37935@holly.calldei.com> <200007281538.JAA22915@nomad.yogotech.com> <20000728140854.L37935@holly.calldei.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Costello wrote: > > On Friday, July 28, 2000, Nate Williams wrote: > > > That is incorrect. FreeBSD's userland pthread implementation > > > does not block the whole process on I/O. POSIX does not specify > > > this behavior either. > > > Actually, sometimes it does (for example when reading from an I/O device > > where select can't be used succesfully). > > Hmm. That's true. And that's where uthreads has its main > problems as I understand it. > ...which is what I need to avoid. (Chris: Sorry for any confusion earlier on; When I replied to you I reran the testprogram which then used intermediate files instead of pipes - thus pthreads seems to work fine). But how do I know if my pthreads aren't secretely blocking for a very short time in read() and write()? Documentation anywere? > > > > FreeBSD Kernel-threads (dunno what they are called actually) can't be > > > > used natively!? (Searched the archives and found an explanation that the > > > > only way to access normal kernel SMP-thread functionality is to use > > > > LinuxThreads) > > > > FreeBSD's kernel threads are for separate threads of execution > > > in the kernel and aren't the same thing as threads for a user > > > process. > > > You're missing the point. He's asking for 'kernel threads' so that > > multiple independant thread of execution for a given 'userland process' > > can be running simulataneously (virtually on a UP, and realistically on > > a MP). > > I thought he had seen the term 'kernel threads' in the context > of FreeBSD before, likely in the context of kthread_create() in > the kernel. Actually I have, but I haven't tried them since I found no documentation on them (I even emailed peter@freebsd.org (he's listed as maintainer in sys/kthread.h) but got no reply). Just aswell, seeing how wrong I was. I think I'll stick to pthreads for now; which will make it easier to modify the code later on when we have ''real'' threads. (Sorry, I come from a BeOS background). Another question for you all: Does FreeBSD have any notion of kernel mutexes and/or semaphores (that can be used to control concurrent processes), and that can be shared between processes using pthreads? pthread_mutex_init is local to a process and thus of little use. (FYI: The application my company is developing consists of several processes, all of which must have a couple of worker threads). TIA, Bjorn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 3:51:58 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id 1F38137BC17 for ; Mon, 31 Jul 2000 03:51:54 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from bagabeedaboo.security.at12.de (dial-195-14-226-92.netcologne.de [195.14.226.92]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id MAA02502 for ; Mon, 31 Jul 2000 12:51:51 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.10.2/8.10.2) with ESMTP id e6VApgR02827 for ; Mon, 31 Jul 2000 12:51:42 +0200 (CEST) Date: Mon, 31 Jul 2000 12:51:41 +0200 (CEST) From: Paul Herman To: freebsd-hackers@FreeBSD.ORG Subject: kern.osrevision <-> kern.osreldate Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I've been meaning to ask this ever since I started using 2.2.2 years ago: Why are these two sysctl variables mixed up? bash-2.03$ sysctl kern.osrevision kern.osreldate kern.osrevision: 199506 kern.osreldate: 410000 Is this really an oversight that's existed for more than 3 years? If this were to be fixed, would it break anything? -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 4: 8:25 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from idet.rsn.hk-r.se (idet.rsn.hk-r.se [194.47.142.179]) by hub.freebsd.org (Postfix) with ESMTP id 1FA7437BC17 for ; Mon, 31 Jul 2000 04:08:21 -0700 (PDT) (envelope-from bjorn@tornqvist.net) Received: from tornqvist.net ([194.52.130.37]) by idet.rsn.hk-r.se (8.9.3/8.9.3) with ESMTP id NAA03935 for ; Mon, 31 Jul 2000 13:04:55 +0200 (CEST) (envelope-from bjorn@tornqvist.net) Message-ID: <39855E20.37377FF5@tornqvist.net> Date: Mon, 31 Jul 2000 13:08:16 +0200 From: Bjorn Tornqvist Organization: West Entertainment Solutions & Technologies AB X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Howto profile my code? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Howdy! Anyone know a working method to get profiling to work? (i.e. seeing something like "method a::getValue() spent 12s Usertime, 3s Kerneltime" etc). I've tried with gcc -mprofiler-epilogue but got the following linker error: MessageCenter.o: In function `MessageCenter::OpenNewInput(basic_string, __default_alloc_template >)': MessageCenter.o(.text+0x954): undefined reference to `mexitcount' So, searching the headers (in machine/asmacros.h) I found some reference to GPROF so I tried to define it, but it still doesn't work. Actually: the complete argumentlist to gcc is this: c++ -ggdb -D_THREAD_SAFE -D_REENTRANT -Wall -pedantic -ansi -pipe -D_PTHREADS -DGPROF -mprofiler-epilogue -c MessageCenter.cpp c++ -ggdb -D_THREAD_SAFE -D_REENTRANT -Wall -pedantic -ansi -pipe -D_PTHREADS -DGPROF -mprofiler-epilogue MessageCenter.o -o runme -L/usr/local/lib -pthread MessageCenter.o: In function `MessageCenter::OpenNewInput(basic_string, __default_alloc_template >)': MessageCenter.o(.text+0x954): undefined reference to `mexitcount' (one error per method, of cource) What library should I link with? How do I use it? Documentation? TIA Bjorn btw: *sigh* I whish there was a common site like freebsddiary.org for us programmers - freebsdprogrammer.org would be fantastic). I just feel so stupid when I don't find any information after a couple of hours looking through searchengines, archives, the ports collection etc. Somehow freebsd-hackers@freebsd.org seem like the wrong place to ask (since I'm not hacking away at/inside freebsd itself. Please accept my apologies if this is the wrong forum for these questions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 7:11:56 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-in-02.piro.net (mail-out-01.piro.net [194.64.31.11]) by hub.freebsd.org (Postfix) with ESMTP id 0CFE037BB57 for ; Mon, 31 Jul 2000 07:11:52 -0700 (PDT) (envelope-from marc.vanwoerkom@science-factory.com) Received: from nil.science-factory.com (ScienceFactory-atm1-153.piro.net [195.135.137.205]) by mail-in-02.piro.net (8.9.3/8.9.3/PN-991208) with ESMTP id QAA28045; Mon, 31 Jul 2000 16:11:27 +0200 Received: by nil.science-factory.com (Postfix, from userid 501) id 72AE52006; Mon, 31 Jul 2000 16:05:59 +0200 (CEST) From: Marc van Woerkom To: cokane@one.net Cc: tpnelson@echidna.stu.cowan.edu.au, rooneg@rpi.edu, peter@netplex.com.au, nimrodm@email.com, hackers@FreeBSD.ORG In-reply-to: <20000731031108.A28185@cokane.yi.org> (message from Coleman Kane on Mon, 31 Jul 2000 03:11:08 -0400) Subject: Re: Linux NVIDIA drivers vs. default XFree86 drivers (WAS: RE: Video card support) References: <3983CB07.9436BB0C@echidna.stu.cowan.edu.au> <20000731031108.A28185@cokane.yi.org> Message-Id: <20000731140559.72AE52006@nil.science-factory.com> Date: Mon, 31 Jul 2000 16:05:59 +0200 (CEST) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I would guess that if they have managed to abstract their NT source to the point > where a simple wrapper can turn it into a linux kmod, then it is quite possible > that it may be able to be ported to FreeBSD. The only other thing is whether > their X Server could be ported in such a way (is it a binary only X-Server as > well? or do they use the r128 driver supplied?). I suppose that one could always > run XFree86 in linux emulation...if possible. Not a Linux kmod, their idea was to use the new general binary loader introduced in XFree86 4.x - unfortunately it is full of calls to the (open sourced) Linux module they ship. An ideal general x86 XFree86 4.x driver should just use general wrappers provided by the XFree86 server for OS specific tasks. > > NVIDIA's stand on Open Source can only get better. Unless they're > > *really* stupid. > > > > Well, so far they haven't shown this. Since their itroduction of open > source drivers they have retracted the openness of their drivers to the > point that they are simply a binary with the necessary source to link them to a > module. One of the reasons given by n-vidia is that certain code is 3rd party (AGP stuff?) and can't be open sourced. Another reason might be that actually only few people are able to make significant contributions to low level driver work. Looking at the makings of the Matrox Utah glx module, where John Carmack did a lot of tweaking, plus two or three people who work full time in that area. That's definitely not hordes of open source hackers who thirst for improving matters. > FWIW: I have a roommate who has been having severe stability issues with > NVidia's binary drivers under Debian GNU/Linux 2.1. He has decided to > switch back to the XFree86 supplied drivers that have lower performance > to stop X from crashing so much. You can't even debug them because the > symbols have been stripped out. Too bad. Since a couple of days I finally have a decent development box with Linux, FreeBSD and a GeForce installed. I hope to get further now with that stuff. Regards, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 8:53: 6 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 7D9E537BA50 for ; Mon, 31 Jul 2000 08:52:51 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.10.1/8.10.1) with ESMTP id e6VFqi468988; Mon, 31 Jul 2000 08:52:45 -0700 (PDT) Date: Mon, 31 Jul 2000 08:52:44 -0700 (PDT) From: Doug White To: Richard Stoodley Subject: Re: CRACK - Dreamweaver In-Reply-To: <003201bff886$2c55f480$6bd1063e@richards> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 28 Jul 2000, Richard Stoodley wrote: > Hi Can you tell me where I can get Crack www.virtualcrack.com Go send yourself some. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 8:58:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id D96C837B685 for ; Mon, 31 Jul 2000 08:58:20 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from medusa.kfu.com (medusa.kfu.com [205.178.90.222]) by quack.kfu.com (8.9.3/8.9.3) with ESMTP id IAA87369 for ; Mon, 31 Jul 2000 08:58:19 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from icarus.kfu.com (ssmail@localhost) by medusa.kfu.com (8.9.3/8.8.8) with ESMTP id IAA37644 for ; Mon, 31 Jul 2000 08:58:19 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) X-Authentication-Warning: medusa.kfu.com: ssmail owned process doing -bs Received: from quack.kfu.com by icarus.kfu.com with ESMTP (8.9.3//ident-1.0) id IAA09550; Mon, 31 Jul 2000 08:58:18 -0700 (PDT) Message-ID: <3985A21A.7CD51B31@quack.kfu.com> Date: Mon, 31 Jul 2000 08:58:18 -0700 From: Nick Sayer X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: US$100 prize for adding ESS Audiodrive support to pcm Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have for a long time said to myself that I would take the documents available and hack together a pcm driver for the audio chip built into my Asus P5A machine, and never sat down and done it. So, rather than whine to myself about it, or whine about nobody else doing it, I'll put my money where my mouth is. PCI vendor id 0x125d, device id 0x1969. The first person to commit a working driver for it, or to submit to me a working driver for me to commit on their behalf, will be paid US$100. I reserve the right to judge whether the driver "is working," but I will at least demand that half-duplex recording and playback at all supported bitrates work, and that basic mixer functions work for pcm, line, aux, cd and mic (all as record sources or playback devices). The source code must be made available under the FreeBSD license (or a compatible one) that does not infringe on any other copyrights, and submissions must be made in good faith. At most, one prize will be awarded. Any code committed by me will, of course, have full credit given to the submitter and will not be deemed a work made for hire under copyright law. Accounts on a machine with this device running -current can be made available if necessary to other committers (sorry if this is unfair, but there's an issue of trust at work here). If US$100 seems cheap, I'm sorry. But the number is 5 times the price of an OSS license. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 9:22:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp2.jakinternet.co.uk (proxy.jakinternet.co.uk [212.41.43.4]) by hub.freebsd.org (Postfix) with ESMTP id C01D037B541 for ; Mon, 31 Jul 2000 09:22:18 -0700 (PDT) (envelope-from gandalf@vilnya.demon.co.uk) Received: from smtp.jakinternet.co.uk (smtp.jakinternet.co.uk [212.41.41.61]) by smtp2.jakinternet.co.uk (Postfix) with SMTP id 9F36FA7778 for ; Mon, 31 Jul 2000 17:20:06 +0100 (BST) Received: from vilnya.demon.co.uk ([212.41.32.24]) by smtp.jakinternet.co.uk ; Mon, 31 Jul 2000 17:21:44 -0100 Received: from haveblue (haveblue.rings [10.2.4.5]) by vilnya.demon.co.uk (Postfix) with SMTP id F4096D907; Mon, 31 Jul 2000 17:21:25 +0100 (BST) Message-ID: <004501bffb0b$27bf8c60$0504020a@haveblue> From: "Cameron Grant" To: "Nick Sayer" , References: <3985A21A.7CD51B31@quack.kfu.com> Subject: Re: US$100 prize for adding ESS Audiodrive support to pcm Date: Mon, 31 Jul 2000 17:19:46 +0100 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.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I have for a long time said to myself that I would take the documents > available and > hack together a pcm driver for the audio chip built into my Asus P5A > machine, > and never sat down and done it. So, rather than whine to myself about > it, or whine > about nobody else doing it, I'll put my money where my mouth is. interested persons will want to investigate sys/dev/sound/pci/solo.c (just committed) which is 98% there. i'm stumped. -cg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 9:27:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from etinc.com (et-gw.etinc.com [207.252.1.2]) by hub.freebsd.org (Postfix) with ESMTP id BD4F837B7A3; Mon, 31 Jul 2000 09:27:23 -0700 (PDT) (envelope-from dennis@etinc.com) Received: from dbsys (dbsys.etinc.com [207.252.1.18]) by etinc.com (8.9.3/8.9.3) with SMTP id MAA14710; Mon, 31 Jul 2000 12:27:20 -0400 (EDT) Message-Id: <200007311627.MAA14710@etinc.com> X-Sender: dennis@etinc.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Mon, 31 Jul 2000 12:40:08 -0400 To: nsayer@freebsd.org From: Dennis Subject: Re: PTP ethernets Cc: hackers@freebsd.org In-Reply-To: <3981ED7D.4B836035@sftw.com> References: <200007272323.TAA04240@etinc.com> <200007280020.UAA04422@etinc.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thats not really feasible as the target customers are on DSL ethernet bridges and i doubt if they support pppoe. Is there any reason why the PTP doesnt work? Hacking is not out of the question, but im not sure what the problem is. Dennis At 01:30 PM 7/28/00 -0700, Nick Sayer wrote: >Dennis wrote: > >> At 06:47 PM 7/27/00 -0500, Kim Shrier wrote: >> >If I understand your question correctly, all you need to do to set up >> >a ptp ethernet link is: >> > >> >ifconfig fxp0 inet 200.1.1.1 200.1.1.2 >> >> It *seems* like that should work, but it doesnt. >> >> When ping from one machine to another, the receiver doesnt respond and ip >> stats show "upsupported protocol" counter increasing accordingly. On the >> lan monitor the packet looks ok, so i dont quite understand why it doesnt >> work. >> >> dennis >> > >> > >> >Dennis wrote: >> >> >> >> Is it possible to have only one address on an ethernet network? the only >> >> way that I can get it to work is with: >> >> >> >> ifconfig fxp0 200.1.1.1 netmask 255.255.255.255 >> >> route add fxp0 200.1.1.2 -interface fxp0 >> >> arp -s 200.1.1.2 ether-address >> >> >> >> Is there a way to get such a setup to work dynamically with ARPs? >> >> >> >> DB >> >> >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> >> with "unsubscribe freebsd-hackers" in the body of the message >> > >> >-- >> > Kim Shrier - principal, Shrier and Deihl - mailto:kim@tinker.com >> >Remote Unix Network Admin, Security, Internet Software Development >> > Tinker Internet Services - Superior FreeBSD-based Web Hosting >> > http://www.tinker.com/ >> > >> > >> >To Unsubscribe: send mail to majordomo@FreeBSD.org >> >with "unsubscribe freebsd-hackers" in the body of the message >> > >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-hackers" in the body of the message > >Probably the only real way to do this is to run PPPoE. In essence, this >results >in a point-to-point link with Ethernet framing. You end up using tun0 with the > >Ethernet interface merely marked as 'up' but with no IP configuration at all. >If you have a /modules/ng_pppoe.ko on your machine, then I believe ppp can >do PPPoE, at least as a client. You may need the help of the mpd-netgraph >port to do a PPPoE server. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 11:25:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pike.osd.bsdi.com (pike.osd.bsdi.com [204.216.28.222]) by hub.freebsd.org (Postfix) with ESMTP id 4A06B37B505 for ; Mon, 31 Jul 2000 11:25:34 -0700 (PDT) (envelope-from jhb@pike.osd.bsdi.com) Received: (from jhb@localhost) by pike.osd.bsdi.com (8.9.3/8.9.3) id LAA93732; Mon, 31 Jul 2000 11:25:17 -0700 (PDT) (envelope-from jhb) From: John Baldwin Message-Id: <200007311825.LAA93732@pike.osd.bsdi.com> Subject: Re: kern.osrevision <-> kern.osreldate In-Reply-To: from Paul Herman at "Jul 31, 2000 12:51:41 pm" To: Paul Herman Date: Mon, 31 Jul 2000 11:25:17 -0700 (PDT) Cc: hackers@FreeBSD.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Paul Herman wrote: > Hi, > > I've been meaning to ask this ever since I started using 2.2.2 > years ago: Why are these two sysctl variables mixed up? > > bash-2.03$ sysctl kern.osrevision kern.osreldate > kern.osrevision: 199506 My guess is that this sysctl is the version used by CSRG in 4.4 BSD, which is date based. > kern.osreldate: 410000 This is the FreeBSD-specific version number. We don't use date-based versions because they don't work well with our -current/-stable branch system. > Is this really an oversight that's existed for more than 3 years? Probably a backwards-compatability thing. > If this were to be fixed, would it break anything? Maybe? The thing is, if my guesses are right, kern.osrevision is only maintained for backwards compatability, and should probably either be killed or left alone. > -Paul. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 12:21: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mta4.rcsntx.swbell.net (mta4.rcsntx.swbell.net [151.164.30.28]) by hub.freebsd.org (Postfix) with ESMTP id 2635437BBE4 for ; Mon, 31 Jul 2000 12:20:59 -0700 (PDT) (envelope-from chris@holly.calldei.com) Received: from holly.calldei.com ([208.191.149.190]) by mta4.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0FYK00LKSSRYYM@mta4.rcsntx.swbell.net> for freebsd-hackers@FreeBSD.ORG; Mon, 31 Jul 2000 13:59:58 -0500 (CDT) Received: (from chris@localhost) by holly.calldei.com (8.9.3/8.9.3) id NAA52895; Mon, 31 Jul 2000 13:57:06 -0500 (CDT envelope-from chris) Date: Mon, 31 Jul 2000 13:57:06 -0500 From: Chris Costello Subject: Re: Howto profile my code? In-reply-to: <39855E20.37377FF5@tornqvist.net> To: Bjorn Tornqvist Cc: freebsd-hackers@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <20000731135705.X37935@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i References: <39855E20.37377FF5@tornqvist.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, July 31, 2000, Bjorn Tornqvist wrote: > Howdy! > > Anyone know a working method to get profiling to work? (i.e. seeing > something like "method a::getValue() spent 12s Usertime, 3s Kerneltime" > etc). > > I've tried with > gcc -mprofiler-epilogue > but got the following linker error: > > MessageCenter.o: In function > `MessageCenter::OpenNewInput(basic_string string_char_traits, __default_alloc_template >)': > MessageCenter.o(.text+0x954): undefined reference to `mexitcount' > > So, searching the headers (in machine/asmacros.h) I found some reference > to GPROF so I tried to define it, but it still doesn't work. Actually: > the complete argumentlist to gcc is this: In the cc(1) man page, you can use -pg to create GNU gprof profiling output for your binary: -pg Generate extra code to write profile information suitable for the analysis program gprof. -- |Chris Costello |There are always at least two ways to program the same thing. `------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 12:21:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mta5.rcsntx.swbell.net (mta5.rcsntx.swbell.net [151.164.30.29]) by hub.freebsd.org (Postfix) with ESMTP id 87F7637BBE0 for ; Mon, 31 Jul 2000 12:20:59 -0700 (PDT) (envelope-from chris@holly.calldei.com) Received: from holly.calldei.com ([208.191.149.190]) by mta5.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0FYK008CAT0JPN@mta5.rcsntx.swbell.net> for freebsd-hackers@FreeBSD.ORG; Mon, 31 Jul 2000 14:05:11 -0500 (CDT) Received: (from chris@localhost) by holly.calldei.com (8.9.3/8.9.3) id OAA53166; Mon, 31 Jul 2000 14:03:05 -0500 (CDT envelope-from chris) Date: Mon, 31 Jul 2000 14:03:04 -0500 From: Chris Costello Subject: Re: BSD,Posix,Linux Threading - Are they really useable? In-reply-to: <398534AF.467DE4D5@tornqvist.net> To: Bjorn Tornqvist Cc: Nate Williams , freebsd-hackers@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <20000731140304.Y37935@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i References: <398111DA.443B41F9@tornqvist.net> <20000728003913.K37935@holly.calldei.com> <200007281538.JAA22915@nomad.yogotech.com> <20000728140854.L37935@holly.calldei.com> <398534AF.467DE4D5@tornqvist.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, July 31, 2000, Bjorn Tornqvist wrote: > But how do I know if my pthreads aren't secretely blocking for a very > short time in read() and write()? Documentation anywere? They 'block' for the duration of time it takes to make a non-blocking call to read() or write(), which is, as far as your program cares, practically zero. > > I thought he had seen the term 'kernel threads' in the context > > of FreeBSD before, likely in the context of kthread_create() in > > the kernel. > Actually I have, but I haven't tried them since I found no documentation > on them (I even emailed peter@freebsd.org (he's listed as maintainer in > sys/kthread.h) but got no reply). Just aswell, seeing how wrong I was. > I think I'll stick to pthreads for now; which will make it easier to > modify the code later on when we have ''real'' threads. (Sorry, I come > from a BeOS background). Pthreads is only a specification of an interface, not a form of user threads. We just implement them in the form of user threads. > Another question for you all: Does FreeBSD have any notion of kernel > mutexes and/or semaphores (that can be used to control concurrent > processes), and that can be shared between processes using pthreads? > pthread_mutex_init is local to a process and thus of little use. (FYI: > The application my company is developing consists of several processes, > all of which must have a couple of worker threads). Yes. We do have SysV shared memory support. Try ``man -k ^shm'' and ``man -k ^sem''. -- |Chris Costello |Printed on 100% recyclable phosphor. `------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 12:34:17 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id BA3EF37B8E2 for ; Mon, 31 Jul 2000 12:34:12 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id OAA16655; Mon, 31 Jul 2000 14:33:35 -0500 (CDT) (envelope-from dan) Date: Mon, 31 Jul 2000 14:33:35 -0500 From: Dan Nelson To: Chris Costello Cc: Bjorn Tornqvist , Nate Williams , freebsd-hackers@FreeBSD.ORG Subject: Re: BSD,Posix,Linux Threading - Are they really useable? Message-ID: <20000731143335.A12633@dan.emsphone.com> References: <398111DA.443B41F9@tornqvist.net> <20000728003913.K37935@holly.calldei.com> <200007281538.JAA22915@nomad.yogotech.com> <20000728140854.L37935@holly.calldei.com> <398534AF.467DE4D5@tornqvist.net> <20000731140304.Y37935@holly.calldei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <20000731140304.Y37935@holly.calldei.com>; from "Chris Costello" on Mon Jul 31 14:03:04 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Jul 31), Chris Costello said: > On Monday, July 31, 2000, Bjorn Tornqvist wrote: > > But how do I know if my pthreads aren't secretely blocking for a > > very short time in read() and write()? Documentation anywere? > > They 'block' for the duration of time it takes to make a > non-blocking call to read() or write(), which is, as far as your > program cares, practically zero. It could take quite a long time, actually, if you are doing random I/Os and your disk is heavily loaded. Plain files can't be set non-blocking, so the process has to wait for the disk to seek and return the requested data. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 12:56:45 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from phoenix.dynamine.net (phoenix.dynamine.net [64.14.25.210]) by hub.freebsd.org (Postfix) with ESMTP id 1920537BBFB for ; Mon, 31 Jul 2000 12:56:43 -0700 (PDT) (envelope-from michael@dynamine.net) Received: from lucretia (host1.auctionwatch.com [64.14.25.32]) by phoenix.dynamine.net (Postfix) with SMTP id 1A7CC183939 for ; Mon, 31 Jul 2000 12:56:39 -0700 (PDT) Message-ID: <003101bffb29$480b6340$1500800a@corp.auctionwatch.com> From: "Michael S. Fischer" To: Subject: DHCP in scripted sysinstall? Date: Mon, 31 Jul 2000 12:55:30 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I know that currently one can request a DHCP lease when configuring the network interfaces in sysinstall, but that functionality does not seem to exist during a scripted install. Reading sysinstall.8 (which, incidentally, does not appear to be installed in the correct place during a make world), it appears that the installation target's hostname, IP address and other networking information must be manually supplied by the installation script before making a mediaSetFTP or mediaSetNFS call. Is it possible we'll see a future version of sysinstall any time soon that will allow scripted installation targets to get their network profile from DHCP? I'm running 4.x-STABLE. Thanks for your help, -- Michael S. Fischer AKA Otterley _O_ Lead Hacketeer, Dynamine Consulting, Silicon Valley, CA | Phone: +1 650 533 4684 | AIM: IsThisOtterley | ICQ: 4218323 | "From the bricks of shame is built the hope"--Alan Wilder net.goth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 13: 1:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id D4BC537BC22 for ; Mon, 31 Jul 2000 13:01:18 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id WAA05926 for ; Mon, 31 Jul 2000 22:01:01 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: hackers@freebsd.org Subject: How to make *real* random bits. From: Poul-Henning Kamp Date: Mon, 31 Jul 2000 22:01:01 +0200 Message-ID: <5924.965073661@critter.freebsd.dk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ok, some people just can't leave an open end dangling (people like me for instance :-) I located a surplus german geiger counter cheaply [1], I have always wanted to have one anyway, and in my junkbox I already had an old smoke alarm [2]. The Geiger counter has a thin-walled tube which takes about 15 events per second from the Am-241 source in the smoke alarm. The earphone output of the geiger counter with a 1kOhm load generates a nice TTL level pulse which can be fed onto pin 10 of the parallel port and timestamped with the PPS-API device ("device pps"). I think the parallel port could even power the geiger counter so that batteries would be a non-concern. Random bits are bits where no possible estimation of the next bit is possible. Entropy bits are bits which it may be possible to estimate with a degree of uncertainty which is better than the statistical average. If I generate true random bits it takes 3 timestamps to get one bit of randomness: T1: Time of event 1 T2: Time of event 2 T3: Time of event 3 if (T2 - T1 > T3 - T2) return 0; else if (T2 - T1 < T3 - T2) return 1; else try again. In my rather crude setup it produces about 5 bits per second [3]. If the goal is to only provide entropy for a RNG (like Yarrow) we can get much more mileage from the same number events: if the average event rate is N events per second we can get roughly / T \ | timecounter | log2 | ------------- | \ N / ---------------------------- 2 bits of entropy per event, which in my case (233 MHz and 15 events per second) gives 12 bits per event or 180 bits of entropy per second. Not bad... Poul-Henning [1] At "http://www.Helmut-Singer.de/" Called "FH40T Satz 2". [2] Has to be an "ionization" type, otherwise it doesn't contain the Am-241 alpha particle source. [3] Feel free to analyze: begin 644 random.bin M8E6*C@L`HFI&I:/C=-8"7J).)`QC4UKC(T[2]+UCAN:UMZ,_3]ZY MR=#K6QCE%H8-@34$03"$!?!PT'LQ\)>BP[61HP1$5IH"_C&F]5=;EENALI8Z M2'W`9Q-@AQ]UD.ZBONLN['"-9(]+D'/%R:MTQ,LKS&8496,W@P$?>ZC0!@.+ MMW=LM)\61/_<_+]EU3#8F1.2X6INC$^92%'T3VJ4?O%Q$)O/\R:+'G`F/!0K M&="/`F4AB'6["JQ]3=J%#^\&S8D>E]X-.S:_B=M_U.*=&]Q MXM\_JVB>HT9DEAM8+9@@4`MA[_3W:;"LCA/%W=0;5_K8(WC M4T";DDT,2D#E06D9>A&*FGR*6_MD#C:Z""_D#4#H-9#VC-W(X"MS50Z:R7N= M,PW!A!$=YQ*D;P*$J$=2P4\$NYR_Y4KD[FG(OEW!U,31-N2&S^<]MGDMA?8QO#WQV\,N_IX"6,6<*BM>']?IV=$!-5ATDCJHH"AF*GW MZR?.7.\-_LO6PQVU4+>F%)=NBV!9*ZBO(`V/66\+ZYM;(>FX5TV'.=4MHOC; M.IU*B([(\^ILO3NE6H,PC#T0\YWBG6@H?XXE MO\W<)$';`8KEC&LNU1DJ7E-ZDAT::_,FM@LPPATIH+Y69;J7BURX@3E8#34_)98)>C9;HK+ M?O3"JWA#-_Q5+@O$'M)\FY'[M61XUWZ+E*/_3WW<0(=Y^T4+H@V\3AEFE=S# MQJ%H=OD:%@A.3(3D0>^X'K@')[HP&H!OLRG72!5E8M*>9D'QB#ZO.!UF.K9< MPC`0.(6#S=P#2.3LV4:W=[TZPK42&)RR5`:8\4R8M#M#7,Y:V6.J`+WQ>-8$ M?$-R*K'B^*7.8VR3`+A!C*O5U0M%X>$VT!?L1A#K,L8_\`F^'SH=:(2C,MU9 M;.Q@(>4;'^0='>82?6\57>&+1/,'?%4R./'AKXJR>1Z8CCA`,#+PTS_+M?<7 MT<8Y2]4"2JVL4>#GTLBO$8O1A:IS`:+'2'>XB[%DH6;M4H+GGBV6N#\:A&>; M:,:#T^BTD0F^=)=`A7,NN_,T54-W-J+SN,^B,B6TMH6!QY58Q/HAY(-"*CQ;9I6`G% MQ!'#PNSH?;DX63R<_#P,#C7:!PK.\;0%2)Q>@-*?&S"S)$@-!L1]1;*/)N,3 MB&JE:!><%O^TDY9PKUQ'Z?,A)QX)WGK7G6M5.5[I!2\/E%U7Q&6"?YE/@25R M#WIWAGKIG*Q:`P`-J$J2`:],J?&.!'1K;XS1\&7GL/XY$7BR(?^N,/\INW%H M0OE'_\N/FR5",5!/%'I^^X#NO"&2+24NWVUNVA.@WO^S)0@2`OKL,U8B#`4( MR8(!D&K(<\XR00M4U/"2N>62,)\!#K@6\>+V#6Q;^?L+&+U;XBU"5=<[X.!C#NFY,T:2E;6G`O&>>+H@IKOK"$/7V7_:*6E%Y#OH!'[]5&R'; M+Y&CB;()>T?(IPUV*<2<)QK*T&F)2*LU+T>#L:MY?,T":X7R!V!U$K\OY:9"!KK61 M=?D)PJ4#DVV9X.O(\^KC*H\:FR08-!+4(V?K:1$9'G%.TN%(GG9#S%?4P88C MDS/>,.;H':!1/5%NV5>5/6H6*QX0U>-(-+XA,GU]AB/H#-Q?>VVW!UEY+&?< M^9BD@;21+&]:>QLCGU/QD$+5>8RQ9$B!!:SD9UOA=;#6=*C1G#7\*_!M7'E\ M8%6XS6LN*F<(_.)T0]:F?([`VOF-&:9?KN`=XSH(KA`>.-27(2G+[2H/NG75 M>M!=N`V]S\X@SE@3@:6*75I$H1%8L(7\1BI6_(,$N56J!7J=R-4**[Y]HI!3 MN4VFY3JRK9/K"_W@S5FK$B,M?[$>_4E>T_@&-7;>'7B\5##I2,^63/WHU>QDUP+HK<`?A.V@;Y:;KW(:'F$.@E9Y(3)!MX)W$-G/HA+8E/O $)&.(Z[@` ` end -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 18: 8:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from peorth.iteration.net (peorth.iteration.net [208.190.180.178]) by hub.freebsd.org (Postfix) with ESMTP id 9DFB237B7B0 for ; Mon, 31 Jul 2000 18:08:20 -0700 (PDT) (envelope-from keichii@peorth.iteration.net) Received: by peorth.iteration.net (Postfix, from userid 1000) id E4B4C64C2A; Mon, 31 Jul 2000 20:08:22 -0500 (CDT) Date: Mon, 31 Jul 2000 20:08:22 -0500 From: "Michael C. Wu" To: freebsd-hackers@freebsd.org Subject: ANSI C Standard and wchar* Message-ID: <20000731200822.A12481@peorth.iteration.net> Mail-Followup-To: "Michael C. Wu" , freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I am working on completing a BSDL'ed implementation of wchar* that is *not* broken. However, I could not find a free copy of ANSI C library standard. I was wondering if anyone has an electronic copy of ANSI/ISO/IEC 9899-1999 Programming Languages - C and the related POSIX documents. (Yes, the document only costs $18 on ANSI.org, but I really do not want to purchase something that I probably will not use again.) Also, which part of POSIX governs the correct behavior for wchar*? POSIX.1? Finally, I know that someone has been working on the same thing. Would the person in question or someone please send me what they have. I apologize for the confusion. Many thanks. -Michael -- +------------------------------------------------------------------+ | keichii@peorth.iteration.net | keichii@bsdconspiracy.net | | http://peorth.iteration.net/~keichii | Yes, BSD is a conspiracy. | +------------------------------------------------------------------+ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 18:16:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id C3F7D37BCB7; Mon, 31 Jul 2000 18:16:47 -0700 (PDT) (envelope-from kris@FreeBSD.org) Received: from localhost (kris@localhost) by freefall.freebsd.org (8.9.3/8.9.2) with ESMTP id SAA19011; Mon, 31 Jul 2000 18:16:47 -0700 (PDT) (envelope-from kris@FreeBSD.org) X-Authentication-Warning: freefall.freebsd.org: kris owned process doing -bs Date: Mon, 31 Jul 2000 18:16:47 -0700 (PDT) From: Kris Kennaway To: Poul-Henning Kamp Cc: hackers@freebsd.org Subject: Re: How to make *real* random bits. In-Reply-To: <5924.965073661@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 31 Jul 2000, Poul-Henning Kamp wrote: > [3] Feel free to analyze: Could you post a larger sample (say, 10MB) somewhere for statistical analysis? The 1939 bytes here look pretty good at first glance: 1939 samples, total weight 7729, average weight per sample 3.986075 Bit 0 average weight 0.502837 Bit 1 average weight 0.482723 Bit 2 average weight 0.490975 Bit 3 average weight 0.521919 Bit 4 average weight 0.496132 Bit 5 average weight 0.484786 Bit 6 average weight 0.504899 Bit 7 average weight 0.501805 Kris -- In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 18:19:43 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mycenae.jantar.org (mycenae.ilion.eu.org [203.35.206.129]) by hub.freebsd.org (Postfix) with ESMTP id AEC4037BDB2 for ; Mon, 31 Jul 2000 18:19:35 -0700 (PDT) (envelope-from patrykz@mycenae.jantar.org) Received: from mycenae.jantar.org (patrykz@localhost [127.0.0.1]) by mycenae.jantar.org (8.9.3/8.9.3) with ESMTP id LAA16280; Tue, 1 Aug 2000 11:19:18 +1000 (EST) (envelope-from patrykz@mycenae.jantar.org) Message-Id: <200008010119.LAA16280@mycenae.jantar.org> From: Patryk Zadarnowski To: "Michael C. Wu" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: ANSI C Standard and wchar* In-Reply-To: Message from "Michael C. Wu" of "Mon, 31 Jul 2000 20:08:22 EST." <20000731200822.A12481@peorth.iteration.net> Date: Tue, 01 Aug 2000 11:19:18 +1000 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 31 Jul 2000, "Michael C. Wu" wrote: Michael> Hi all, Michael> I am working on completing a BSDL'ed implementation Michael> of wchar* that is *not* broken. However, Michael> I could not find a free copy of ANSI C library standard. Michael> I was wondering if anyone has an electronic copy of Michael> ANSI/ISO/IEC 9899-1999 Programming Languages - C Michael> and the related POSIX documents. (Yes, the document Michael> only costs $18 on ANSI.org, but I really do not want Michael> to purchase something that I probably will not use again.) Michael> Also, which part of POSIX governs the correct Michael> behavior for wchar*? POSIX.1? Michael> Finally, I know that someone has been working on the Michael> same thing. Would the person in question or someone please send Michael> me what they have. Michael> I apologize for the confusion. Many thanks. Michael, These standards are copyrighted, and ANSI.org is very clear about the electronic copies being for personal use only, not to be shared. Considering that, previously, you could not buy ISO C for less than $300, having a standards organization that sees the light is a good thing, and, I suggest that we all respect that. That is, you will not (should not) find anyone who'll offer to share electronic copies of the standard. I believe that the answer to your POSIX question is "none". I don't think POSIX deals with the wchar_t issue at all (someone correct me if I'm wrong.) Pat. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Patryk Zadarnowski University of New South Wales School of Computer Science and Engineering -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 20: 1:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from lafontaine.cybercable.fr (lafontaine.cybercable.fr [212.198.0.202]) by hub.freebsd.org (Postfix) with SMTP id E005E37B7B0 for ; Mon, 31 Jul 2000 20:01:27 -0700 (PDT) (envelope-from clefevre@cybercable.fr) Received: (qmail 22508887 invoked from network); 1 Aug 2000 03:01:25 -0000 Received: from r227m167.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.227.167]) (envelope-sender ) by lafontaine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 1 Aug 2000 03:01:25 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id FAA61721; Tue, 1 Aug 2000 05:01:24 +0200 (CEST) (envelope-from clefevre@cybercable.fr) To: freebsd-hackers@freebsd.org Subject: Re: ANSI C Standard and wchar* References: <20000731200822.A12481@peorth.iteration.net> X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C Reply-To: Cyrille Lefevre In-Reply-To: "Michael C. Wu"'s message of "Mon, 31 Jul 2000 20:08:22 -0500" From: Cyrille Lefevre Date: 01 Aug 2000 05:01:24 +0200 Message-ID: Lines: 13 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Michael C. Wu" writes: > I am working on completing a BSDL'ed implementation > of wchar* that is *not* broken. However, > I could not find a free copy of ANSI C library standard. try this link : http://www.opengroup.org/onlinepubs/7908799/ Cyrille. -- home: mailto:clefevre@citeweb.net work: mailto:Cyrille.Lefevre@edf.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 20:30: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id E51C637B5F9; Mon, 31 Jul 2000 20:29:59 -0700 (PDT) (envelope-from green@FreeBSD.org) Date: Mon, 31 Jul 2000 23:29:58 -0400 (EDT) From: Brian Fundakowski Feldman X-Sender: green@green.dyndns.org To: Cyrille Lefevre Cc: freebsd-hackers@freebsd.org Subject: Re: ANSI C Standard and wchar* In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 1 Aug 2000, Cyrille Lefevre wrote: > "Michael C. Wu" writes: > > > I am working on completing a BSDL'ed implementation > > of wchar* that is *not* broken. However, > > I could not find a free copy of ANSI C library standard. > > try this link : > > http://www.opengroup.org/onlinepubs/7908799/ Thanks, but manpages only go so far... -- Brian Fundakowski Feldman \ FreeBSD: The Power to Serve! / green@FreeBSD.org `------------------------------' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 20:47:35 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.cs.umn.edu (mail.cs.umn.edu [128.101.34.200]) by hub.freebsd.org (Postfix) with ESMTP id 55EDA37BDF0 for ; Mon, 31 Jul 2000 20:47:32 -0700 (PDT) (envelope-from dong@cs.umn.edu) Received: from barber.cs.umn.edu (IDENT:root@barber.cs.umn.edu [128.101.35.60]) by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id WAA27463 for ; Mon, 31 Jul 2000 22:47:31 -0500 (CDT) Received: from localhost (dong@localhost) by barber.cs.umn.edu (8.9.3/8.9.0) with ESMTP id WAA29083 for ; Mon, 31 Jul 2000 22:47:30 -0500 X-Authentication-Warning: barber.cs.umn.edu: dong owned process doing -bs Date: Mon, 31 Jul 2000 22:47:30 -0500 (CDT) From: Yingfei Dong To: freebsd-hackers@FreeBSD.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, folks, I am revising a driver for a network interface. I need have a fine-grain timer (33us). Could anyone tell me how to get it? I checked /sys/kern/kern_clock.c. Is it the right place? Could I just revise 'hz' to make the timeout function to do it? Where does 'hz' is initialized? thanks for your help, =================================================== Yingfei Dong 4-192 EECS Building, 200 Union Street, SE Tel: 612-626-7526 Minneapolis, MN 55455 FAX: 612-625-0572 =================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 21:13:40 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 9D6E737BE06 for ; Mon, 31 Jul 2000 21:13:29 -0700 (PDT) (envelope-from fanf@dotat.at) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13JTQW-00029c-00; Tue, 01 Aug 2000 04:13:12 +0000 Date: Tue, 1 Aug 2000 04:13:12 +0000 From: Tony Finch To: "Michael C. Wu" Cc: freebsd-hackers@freebsd.org Subject: Re: ANSI C Standard and wchar* Message-ID: <20000801041312.D591@hand.dotat.at> References: <20000731200822.A12481@peorth.iteration.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000731200822.A12481@peorth.iteration.net> Organization: Covalent Technologies, Inc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Michael C. Wu" wrote: > >I am working on completing a BSDL'ed implementation of wchar* that is >*not* broken. However, I could not find a free copy of ANSI C library >standard. There's some good stuff on the Lysator site, in particular the final draft of the C99 standard and a PD implementation of bits of the C99 library ("Q8"). http://www.lysator.liu.se/c/ Tony. -- en oeccget g mtcaa f.a.n.finch v spdlkishrhtewe y dot@dotat.at eatp o v eiti i d. fanf@covalent.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 22:21: 4 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 32FE237B5F9 for ; Mon, 31 Jul 2000 22:21:00 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.9.3/8.9.3) with ESMTP id WAA97901 for ; Mon, 31 Jul 2000 22:20:58 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by morpheus.kfu.com with ESMTP (8.9.3//ident-1.0) id WAA11839; Mon, 31 Jul 2000 22:20:58 -0700 (PDT) Message-ID: <39865E3A.30C99D29@quack.kfu.com> Date: Mon, 31 Jul 2000 22:20:58 -0700 From: Nick Sayer X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: Re: US$100 prize for adding ESS Audiodrive support to pcm References: <3985A21A.7CD51B31@quack.kfu.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The driver that was recently committed by Cameron Grant now appears to perform correct playback on the hardware I have available to me. I invite all ESS Solo chip owners to give it a try and let us know if it works for you. Recording does not yet work for me (and aparently neither record nor playback works for Cameron), however, so the prize remains available. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Jul 31 22:28:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ares.trc.adelaide.edu.au (ares.trc.adelaide.edu.au [129.127.246.5]) by hub.freebsd.org (Postfix) with ESMTP id 5658437B59B for ; Mon, 31 Jul 2000 22:28:04 -0700 (PDT) (envelope-from glewis@ares.trc.adelaide.edu.au) Received: (from glewis@localhost) by ares.trc.adelaide.edu.au (8.9.3/8.9.3) id OAA01817; Tue, 1 Aug 2000 14:57:45 +0930 (CST) (envelope-from glewis) From: Greg Lewis Message-Id: <200008010527.OAA01817@ares.trc.adelaide.edu.au> Subject: Re: ANSI C Standard and wchar* In-Reply-To: <20000731200822.A12481@peorth.iteration.net> from "Michael C. Wu" at "Jul 31, 2000 08:08:22 pm" To: "Michael C. Wu" Date: Tue, 1 Aug 2000 14:57:45 +0930 (CST) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL70 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Michael C. Wu wrote: > Finally, I know that someone has been working on the > same thing. Would the person in question or someone please send > me what they have. This is a pointer I know of: http://www.cs.rpi.edu/~crossd/FreeBSD/wcs-19990606.tar.gz This is code by David Cross (who is a FreeBSD committer I believe) and includes a fairly complete looking wchar implementation and man pages. I'm guessing it would be relatively easy to turn it into a port at least. -- Greg Lewis glewis@trc.adelaide.edu.au Computing Officer +61 8 8303 5083 Teletraffic Research Centre To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 1:30: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from gallions-reach.inpharmatica.co.uk (gallions-reach.inpharmatica.co.uk [193.115.214.5]) by hub.freebsd.org (Postfix) with ESMTP id 469E237BE83; Tue, 1 Aug 2000 01:29:59 -0700 (PDT) (envelope-from m.seaman@inpharmatica.co.uk) Received: from mailhost.inpharmatica.co.uk (euston.inpharmatica.co.uk [193.115.214.6]) by gallions-reach.inpharmatica.co.uk (8.9.3/8.9.3) with ESMTP id JAA26568; Tue, 1 Aug 2000 09:29:55 +0100 (BST) (envelope-from m.seaman@inpharmatica.co.uk) Received: from w-hampstead.inpharmatica.co.uk (root@w-hampstead.inpharmatica.co.uk [192.168.122.87]) by mailhost.inpharmatica.co.uk (8.9.3/8.9.3) with ESMTP id JAA05832; Tue, 1 Aug 2000 09:29:45 +0100 (BST) (envelope-from m.seaman@inpharmatica.co.uk) Received: from inpharmatica.co.uk (matthew@localhost [127.0.0.1]) by w-hampstead.inpharmatica.co.uk (8.9.3/8.9.3) with ESMTP id JAA11854; Tue, 1 Aug 2000 09:29:45 +0100 X-Authentication-Warning: w-hampstead.inpharmatica.co.uk: Host matthew@localhost [127.0.0.1] claimed to be inpharmatica.co.uk Message-ID: <39868A78.B6B11393@inpharmatica.co.uk> Date: Tue, 01 Aug 2000 09:29:44 +0100 From: Matthew Seaman X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14 i586) X-Accept-Language: en-GB, en MIME-Version: 1.0 To: Poul-Henning Kamp Cc: hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. References: <5924.965073661@critter.freebsd.dk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Poul-Henning Kamp wrote: > > Ok, some people just can't leave an open end dangling (people like > me for instance :-) > > I located a surplus german geiger counter cheaply [1], I have always > wanted to have one anyway, and in my junkbox I already had an old > smoke alarm [2]. The Geiger counter has a thin-walled tube which > takes about 15 events per second from the Am-241 source in the > smoke alarm. > Nice. If you're thinking about this a possible commercial product, I'd be a bit dubious though. Even if Am-241 is just an alpha emitter, I'd still be a bit worried about having it built into the guts of a PC. Perhaps there is a cheaper alternative as a good source of random bits. As a former NMR spectroscopist, I know that if you take an Inductive - Capacitive resonant tuned circuit (typically somewhere in the range 5MHz -- 1GHz for NMR), carefully sheilded from any rf interference and amplify the bejezus out of the (non)-output, feed the result into a heterodyne radio receiver tuned to the same frequency as the circuit and then digitise the audio frequency result, and you should end up with a pretty perfect white noise signal. That signal is principally due to the random thermal motion of electrons in the circuitry. What's more, if you choose the operating frequencies wisely, such a circuit can be put together from off-the-shelf components cheaply. Standard audio ADC's should give you about 20,000 samples per second. Efficiently converting the normally distributed white noise samples to the evenly distributed random numbers most computer uses require is left as an exercise for the student. Matthew -- Certe, Toto, sentio nos in Kansate non iam adesse. Dr. Matthew Seaman, Inpharmatica Ltd, 60 Charlotte St, London, W1T 2NU Tel: +44 20 7631 4644 x229 Fax: +44 20 7631 4844 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 1:35: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 390FF37B82C for ; Tue, 1 Aug 2000 01:35:05 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id KAA08753; Tue, 1 Aug 2000 10:34:57 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Matthew Seaman Cc: hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. In-reply-to: Your message of "Tue, 01 Aug 2000 09:29:44 BST." <39868A78.B6B11393@inpharmatica.co.uk> Date: Tue, 01 Aug 2000 10:34:57 +0200 Message-ID: <8751.965118897@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <39868A78.B6B11393@inpharmatica.co.uk>, Matthew Seaman writes: >Poul-Henning Kamp wrote: >> >> Ok, some people just can't leave an open end dangling (people like >> me for instance :-) >> >> I located a surplus german geiger counter cheaply [1], I have always >> wanted to have one anyway, and in my junkbox I already had an old >> smoke alarm [2]. The Geiger counter has a thin-walled tube which >> takes about 15 events per second from the Am-241 source in the >> smoke alarm. >> > >Nice. If you're thinking about this a possible commercial product, I wouldn't even dream about it :-) >Perhaps there is a cheaper alternative as a good source of random bits. There are many ways to get random bits, this was just meant as an example that it doesn't have to be hard or even difficult to use FreeBSD for "special tasks". I'm pretty sure that "noise-diodes" are probably the most efficient way to generate random bits, but it doesn't measure up to a geiger- counter when it comes to "geek value" :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 2:19:56 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id A9D1B37B5E9 for ; Tue, 1 Aug 2000 02:19:51 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from bagabeedaboo.security.at12.de (dial-194-8-195-28.netcologne.de [194.8.195.28]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id LAA15383; Tue, 1 Aug 2000 11:19:45 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.10.2/8.10.2) with ESMTP id e719JcG00736; Tue, 1 Aug 2000 11:19:38 +0200 (CEST) Date: Tue, 1 Aug 2000 11:19:37 +0200 (CEST) From: Paul Herman To: Poul-Henning Kamp Cc: Matthew Seaman , hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. In-Reply-To: <8751.965118897@critter.freebsd.dk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Aug 2000, Poul-Henning Kamp wrote: > There are many ways to get random bits, this was just meant as an > example that it doesn't have to be hard or even difficult to use > FreeBSD for "special tasks". > > I'm pretty sure that "noise-diodes" are probably the most efficient > way to generate random bits, but it doesn't measure up to a geiger- > counter when it comes to "geek value" :-) Indeed, Poul's idea has massive geek potential. However, for the geek impaired, there is always the 82802 Random Number Generator which is included on newer Intel chipsets. It may not be the holy grail of randomness, but nearly every PC will have one, and I think it'd be good if FreeBSD could at least use it to gather entropy. But, if you are gathering a geek lobby to convince Intel to have an onboard geiger counter, you just might have a new member ;-) -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 2:20:20 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from lafontaine.cybercable.fr (lafontaine.cybercable.fr [212.198.0.202]) by hub.freebsd.org (Postfix) with SMTP id 2848A37BEB6 for ; Tue, 1 Aug 2000 02:20:17 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 22540490 invoked from network); 1 Aug 2000 09:20:15 -0000 Received: from r227m167.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.227.167]) (envelope-sender ) by lafontaine.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 1 Aug 2000 09:20:15 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id LAA64589; Tue, 1 Aug 2000 11:20:15 +0200 (CEST) (envelope-from root) From: Cyrille Lefevre Message-Id: <200008010920.LAA64589@gits.dyndns.org> Subject: Re: ANSI C Standard and wchar* In-Reply-To: "from Brian Fundakowski Feldman at Jul 31, 2000 11:29:58 pm" To: Brian Fundakowski Feldman Date: Tue, 1 Aug 2000 11:20:15 +0200 (CEST) Cc: freebsd-hackers@FreeBSD.org Reply-To: clefevre@citeweb.net Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Brian Fundakowski Feldman wrote: > On 1 Aug 2000, Cyrille Lefevre wrote: > > > "Michael C. Wu" writes: > > > > > I am working on completing a BSDL'ed implementation > > > of wchar* that is *not* broken. However, > > > I could not find a free copy of ANSI C library standard. > > > > try this link : > > > > http://www.opengroup.org/onlinepubs/7908799/ > > Thanks, but manpages only go so far... let me know what you search for, maybe I could help you ? Cyrille. -- home: mailto:clefevre@citeweb.net work: mailto:Cyrille.Lefevre@edf.fr To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 2:22:23 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-in-01.piro.net (mail-out-02.piro.net [194.64.31.10]) by hub.freebsd.org (Postfix) with ESMTP id 4AEE537C16E; Tue, 1 Aug 2000 02:22:17 -0700 (PDT) (envelope-from marc.vanwoerkom@science-factory.com) Received: from nil.science-factory.com (ScienceFactory-atm1-153.piro.net [195.135.137.205]) by mail-in-01.piro.net (8.9.3/8.9.3/PN-991208) with ESMTP id LAA02793; Tue, 1 Aug 2000 11:20:43 +0200 Received: by nil.science-factory.com (Postfix, from userid 501) id 902291F63; Tue, 1 Aug 2000 11:13:46 +0200 (CEST) From: Marc van Woerkom To: phk@freebsd.org Cc: hackers@freebsd.org In-reply-to: <5924.965073661@critter.freebsd.dk> (message from Poul-Henning Kamp on Mon, 31 Jul 2000 22:01:01 +0200) Subject: Re: How to make *real* random bits. References: <5924.965073661@critter.freebsd.dk> Message-Id: <20000801091346.902291F63@nil.science-factory.com> Date: Tue, 1 Aug 2000 11:13:46 +0200 (CEST) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I located a surplus german geiger counter cheaply [1], I have always > wanted to have one anyway, and in my junkbox I already had an old > smoke alarm [2]. The Geiger counter has a thin-walled tube which > takes about 15 events per second from the Am-241 source in the > smoke alarm. Very cool and probably a lot cheaper than professional offerings (I heard of cards with "nuclear chips"). On the other hand I wonder if this gives a practical advantage, in my naive view I would believe taping randomness from user events plus listing to hardware events (most people should have quite different hardware) would generate good enough results. Has there been any analysis that helps to estimate the difference in security? Regards, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 2:25:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id BE0D337BF13 for ; Tue, 1 Aug 2000 02:25:50 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id LAA09164; Tue, 1 Aug 2000 11:25:42 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Paul Herman Cc: Matthew Seaman , hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. In-reply-to: Your message of "Tue, 01 Aug 2000 11:19:37 +0200." Date: Tue, 01 Aug 2000 11:25:42 +0200 Message-ID: <9162.965121942@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Paul Herman writes: >But, if you are gathering a geek lobby to convince Intel to have an >onboard geiger counter, you just might have a new member ;-) "Cesium-137 inside" Yeah, it does have a ring to it, doesn't it ? :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 3:11:37 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mta5.snfc21.pbi.net (mta5.snfc21.pbi.net [206.13.28.241]) by hub.freebsd.org (Postfix) with ESMTP id A07F737BE50 for ; Tue, 1 Aug 2000 03:11:34 -0700 (PDT) (envelope-from jazepeda@pacbell.net) Received: from ppp-207-214-149-100.snrf01.pacbell.net ([207.214.149.100]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0FYL00IR6YXGMV@mta5.snfc21.pbi.net> for hackers@FreeBSD.ORG; Tue, 1 Aug 2000 03:10:30 -0700 (PDT) Date: Tue, 01 Aug 2000 03:12:04 -0700 (PDT) From: Alex Zepeda Subject: Re: How to make *real* random bits. In-reply-to: <9162.965121942@critter.freebsd.dk> X-Sender: alex@zippy.pacbell.net To: Poul-Henning Kamp Cc: Paul Herman , Matthew Seaman , hackers@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Aug 2000, Poul-Henning Kamp wrote: > In message e>, Paul Herman writes: > > >But, if you are gathering a geek lobby to convince Intel to have an > >onboard geiger counter, you just might have a new member ;-) > > "Cesium-137 inside" > > Yeah, it does have a ring to it, doesn't it ? :-) Or a glow... - alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 3:53:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-in-01.piro.net (mail-out-02.piro.net [194.64.31.10]) by hub.freebsd.org (Postfix) with ESMTP id 0D3C437B84E for ; Tue, 1 Aug 2000 03:53:09 -0700 (PDT) (envelope-from marc.vanwoerkom@science-factory.com) Received: from nil.science-factory.com (ScienceFactory-atm1-153.piro.net [195.135.137.205]) by mail-in-01.piro.net (8.9.3/8.9.3/PN-991208) with ESMTP id MAA23089; Tue, 1 Aug 2000 12:51:33 +0200 Received: by nil.science-factory.com (Postfix, from userid 501) id BA96D1F63; Tue, 1 Aug 2000 12:46:10 +0200 (CEST) From: Marc van Woerkom To: phk@critter.freebsd.dk Cc: m.seaman@inpharmatica.co.uk, hackers@FreeBSD.ORG In-reply-to: <8751.965118897@critter.freebsd.dk> (message from Poul-Henning Kamp on Tue, 01 Aug 2000 10:34:57 +0200) Subject: Re: How to make *real* random bits. References: <8751.965118897@critter.freebsd.dk> Message-Id: <20000801104610.BA96D1F63@nil.science-factory.com> Date: Tue, 1 Aug 2000 12:46:10 +0200 (CEST) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 3:55: 4 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail-in-02.piro.net (mail-out-01.piro.net [194.64.31.11]) by hub.freebsd.org (Postfix) with ESMTP id 62D3737B7FA for ; Tue, 1 Aug 2000 03:54:58 -0700 (PDT) (envelope-from marc.vanwoerkom@science-factory.com) Received: from nil.science-factory.com (ScienceFactory-atm1-153.piro.net [195.135.137.205]) by mail-in-02.piro.net (8.9.3/8.9.3/PN-991208) with ESMTP id MAA28371; Tue, 1 Aug 2000 12:54:52 +0200 Received: by nil.science-factory.com (Postfix, from userid 501) id 5E3901F63; Tue, 1 Aug 2000 12:49:10 +0200 (CEST) From: Marc van Woerkom To: phk@critter.freebsd.dk Cc: m.seaman@inpharmatica.co.uk, hackers@FreeBSD.ORG In-reply-to: <8751.965118897@critter.freebsd.dk> (message from Poul-Henning Kamp on Tue, 01 Aug 2000 10:34:57 +0200) Subject: Re: How to make *real* random bits. References: <8751.965118897@critter.freebsd.dk> Message-Id: <20000801104910.5E3901F63@nil.science-factory.com> Date: Tue, 1 Aug 2000 12:49:10 +0200 (CEST) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm pretty sure that "noise-diodes" are probably the most efficient > way to generate random bits, but it doesn't measure up to a geiger- > counter when it comes to "geek value" :-) hehe.. I would try making the speaker click according to the geiger events .. :) Regards, Marc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 7: 1:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.nc.rr.com (fe1.southeast.rr.com [24.93.67.48]) by hub.freebsd.org (Postfix) with ESMTP id 79AE237B915; Tue, 1 Aug 2000 07:01:26 -0700 (PDT) (envelope-from tstromberg@rtci.com) Received: from sudden.detachment.org ([24.25.3.165]) by mail1.nc.rr.com with Microsoft SMTPSVC(5.5.1877.357.35); Tue, 1 Aug 2000 10:00:22 -0400 Received: from rtci.com (localhost [127.0.0.1]) by sudden.detachment.org (8.9.3/8.9.3) with ESMTP id KAA01473; Tue, 1 Aug 2000 10:00:19 -0400 (EDT) (envelope-from tstromberg@rtci.com) Message-ID: <3986D7F3.35823C92@rtci.com> Date: Tue, 01 Aug 2000 10:00:19 -0400 From: Thomas Stromberg Organization: Research Triangle Commerce, Inc. X-Mailer: Mozilla 4.74 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org, sos@freebsd.dk Subject: ATA100-7200rpm vs 10k-rpm SCSI for build box Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm currently trying to put together a personal workstation whose primary duty is compiling large projects (FreeBSD, mozilla, grass, etc.) under FreeBSD 5.0-CURRENT. Im basically trying to get as much performance for builds as I can without going broke. So far this is what Im looking at: $--- 128M PC133 RAM $150 Asus A7V (w/ Promise ATA100 controller) $297 AMD Athlon 850 (still waiting for than price drop) $63 Tekram 390F UW-SCSI Controller (Symbios) $132 4.5G 10000RPM Seagate Cheetah or $97 IBM Deskstar 75GXP ATA-100 7200RPM 15G (DTLA) The question is, whats the real speed difference between a IBM 75GX (http://www.tweakmax.com/html/ibm75gxp/ibm-1.cfm) and ye old 10000RPM Cheetahs in FreeBSD? Id imagine the Cheetah is faster for compiles, but is the difference small enough that Id be better off spending the $100 I save on ATA100 and spend it on another 128M of RAM. I would of course be using the drive as one drive per channel w/ softupdates, noatime. Any advice, bonnie stats, or make world times would be appreciated. -- thomas r. stromberg : tstromberg@rtci.com senior systems administrator : http://www.afterthought.org/ research triangle commerce, inc. : 1.919.657.1317 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 7:42:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by hub.freebsd.org (Postfix) with ESMTP id B02D437B6D5 for ; Tue, 1 Aug 2000 07:42:18 -0700 (PDT) (envelope-from Marc.Espie@liafa.jussieu.fr) Received: from mail.liafa.jussieu.fr (liafa1.liafa.jussieu.fr [132.227.81.128]) by shiva.jussieu.fr (8.10.0/jtpda-5.3.3) with ESMTP id e71EgG946405 for ; Tue, 1 Aug 2000 16:42:16 +0200 (CEST) Received: from (espie@localhost) by mail.liafa.jussieu.fr (8.9.3/jtpda-5.3.2) id QAA00652 ; Tue, 1 Aug 2000 16:42:16 +0200 (MET DST) Date: Tue, 1 Aug 2000 16:42:16 +0200 From: Marc Espie To: freebsd-hackers@freebsd.org Subject: Pointer to people `in charge' of FreeBSD make ? Message-ID: <20000801164216.A14226@liafa1.liafa.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm currently over-hauling OpenBSD make. During my investigations, I've stumbled upon an oddity of the way VPATH works. There are currently two hooks in make that handle VPATH. - in dir.c, file name lookups resort to handling along the VPATH when a file is not found in the current directory. - the suffix handling rules know how to handle VPATH. One part is left in the cold: explicit target rules. They're always looked up with Targ_FindNode, and don't take VPATH into account. Consider the following Makefile: VPATH=some_dir a: b cp $> a some_dir/b: echo "toto" >$@ If you say `make', it will answer "don't know how to make b". If you first say `make some_dir/b', then it will know how to make a, looking up b in the right place. You can get even weirder results if the some_dir/b: rule includes some dependencies, because such dependencies won't be checked, even though they apply to the same file. This is completely inconsistent, and very error-prone. Besides, I've had a hard time explaining this twice or thrice to gnu-make advocates... as that program does the right thing in such a case. The fix is probably not too hard. All revolves around Job_CheckCommands(), which checks that a node is a `real' node first. Strategy is as follows: - let the make parser generate false nodes as usual. - around Job_CheckCommands, if the node is not real, try to see if there is a more `real' node (e.g., one with dependencies and recreation rules) along the path, and substitute it instead. (a bit icky, as the vpath lookup rules in dir.c are not too fun, but I know how to do it). Currently, what I'm interested in is collaboration: this changes the semantics of make slightly, in a non-obvious way. If OpenBSD performs the change in a dark corner, we'll be able to accept Makefiles that other BSD* may complain about. Spewing a `warning, non standard feature used' is always possible, but it would be better if we could agree on a common plan... -- Marc Espie |anime, sf, juggling, unicycle, acrobatics, comics... |AmigaOS, OpenBSD, C++, perl, Icon, PostScript... | `real programmers don't die, they just get out of beta' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 7:59:18 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from haldjas.folklore.ee (Haldjas.folklore.ee [193.40.6.121]) by hub.freebsd.org (Postfix) with ESMTP id AEF8E37B856 for ; Tue, 1 Aug 2000 07:59:14 -0700 (PDT) (envelope-from narvi@haldjas.folklore.ee) Received: from localhost (narvi@localhost) by haldjas.folklore.ee (8.9.3/8.9.3) with SMTP id QAA80211; Tue, 1 Aug 2000 16:59:07 +0200 (EET) (envelope-from narvi@haldjas.folklore.ee) Date: Tue, 1 Aug 2000 16:59:06 +0200 (EET) From: Narvi To: Marc Espie Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Pointer to people `in charge' of FreeBSD make ? In-Reply-To: <20000801164216.A14226@liafa1.liafa.jussieu.fr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Ouch! Don't mangle VPATH use. If you want to get the other behaviour, leave the thing in place and provide a switch to get the other one. And no, I am not in charge of FreeBSD make. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 8: 4: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 3845337B979; Tue, 1 Aug 2000 08:03:59 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id RAA39454; Tue, 1 Aug 2000 17:03:49 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <200008011503.RAA39454@freebsd.dk> Subject: Re: ATA100-7200rpm vs 10k-rpm SCSI for build box In-Reply-To: <3986D7F3.35823C92@rtci.com> from Thomas Stromberg at "Aug 1, 2000 10:00:19 am" To: tstromberg@rtci.com (Thomas Stromberg) Date: Tue, 1 Aug 2000 17:03:48 +0200 (CEST) Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Thomas Stromberg wrote: > > $--- 128M PC133 RAM > $150 Asus A7V (w/ Promise ATA100 controller) > $297 AMD Athlon 850 (still waiting for than price drop) > $63 Tekram 390F UW-SCSI Controller (Symbios) > $132 4.5G 10000RPM Seagate Cheetah > or > $97 IBM Deskstar 75GXP ATA-100 7200RPM 15G (DTLA) > > The question is, whats the real speed difference between a IBM 75GX > (http://www.tweakmax.com/html/ibm75gxp/ibm-1.cfm) and ye old 10000RPM > Cheetahs in FreeBSD? Id imagine the Cheetah is faster for compiles, but > is the difference small enough that Id be better off spending the $100 I > save on ATA100 and spend it on another 128M of RAM. I would of course be > using the drive as one drive per channel w/ softupdates, noatime. > > Any advice, bonnie stats, or make world times would be appreciated. Hmm, I have an Abit KA7-100 (thanks to Trent George!) here with IBM 75GXP drives on it (btw the KA7-100 is a VERY nice board) so I will give it a shot on bonnie and world later today to give you some numbers. I would go for the ATA setup and extra RAM but I'm biased :) PS I have ATA100 support for the HPT370 used on the KA7-100 running, but I haven't gotten to the Promise Ultra100 lying here next to me yet, watch -current for updates on it... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 8:32:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from spirit.jaded.net (shortbus.jaded.net [216.94.132.8]) by hub.freebsd.org (Postfix) with ESMTP id C367637B930 for ; Tue, 1 Aug 2000 08:32:46 -0700 (PDT) (envelope-from dan@spirit.jaded.net) Received: (from dan@localhost) by spirit.jaded.net (8.9.3/8.9.3) id LAA00486; Tue, 1 Aug 2000 11:30:33 -0400 (EDT) (envelope-from dan) Date: Tue, 1 Aug 2000 11:30:33 -0400 From: Dan Moschuk To: Paul Herman Cc: Poul-Henning Kamp , Matthew Seaman , hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. Message-ID: <20000801113033.B320@spirit.jaded.net> References: <8751.965118897@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from pherman@frenchfries.net on Tue, Aug 01, 2000 at 11:19:37AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG | Indeed, Poul's idea has massive geek potential. | | However, for the geek impaired, there is always the 82802 Random | Number Generator which is included on newer Intel chipsets. It may | not be the holy grail of randomness, but nearly every PC will have | one, and I think it'd be good if FreeBSD could at least use it to | gather entropy. I already have a driver for this chip. It just needs to be ported to markm's work, and perhaps beaten into not using pmap_mapdev(). -Dan -- Man is a rational animal who always loses his temper when he is called upon to act in accordance with the dictates of reason. -- Oscar Wilde To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 8:44:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from worker.thw-IP.NET (worker.thw-IP.NET [192.76.134.35]) by hub.freebsd.org (Postfix) with ESMTP id 1EC3937BEF6 for ; Tue, 1 Aug 2000 08:44:30 -0700 (PDT) (envelope-from kts.org!hm@worker.thw-IP.NET) Received: from localhost (1679 bytes) by worker.thw-IP.NET via rmail with P:stdio/R:inet_mx_hosts/T:inet_zone_smtp (sender: ) (ident using unix) id for ; Tue, 1 Aug 2000 17:44:28 +0200 (CEST) (Smail-3.2.0.111 2000-Feb-17 #12 built 2000-May-16) Received: from bert.kts.org (bert.kts.org [194.55.156.2]) by ernie.kts.org (Postfix) with ESMTP id 82EFA52C8A for ; Tue, 1 Aug 2000 17:33:46 +0200 (CEST) Received: by bert.kts.org (Postfix, from userid 100) id AB9251F1C; Tue, 1 Aug 2000 17:33:32 +0200 (CEST) Subject: 3Com 10/100 Mini PCI Ethernet To: freebsd-hackers@freebsd.org (FreeBSD Hackers) Date: Tue, 1 Aug 2000 17:33:32 +0200 (CEST) Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 828 Message-Id: <20000801153332.AB9251F1C@bert.kts.org> From: hm@kts.org (Hellmuth Michaelis) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I'm looking for docs for the Mini PCI card in the subject, it has the 3Com part/product no. 3CN3AV1556. It is a 10/100 ethernet 56k modem combo card built into an HP laptop. Is there any documentation available ? Has anybody experiences with this card already ? Is this card similar to any other (documented) 3Com card ? There are two 3Com chips on the card: Parallel Tasking II Flash (?) Performance 3Com 40 607 002 0012S 3210 7432 LUCENT 40 060 73 and 3Com AD 1807 JST ERJ4 1881A-0.6 0010 I've already called 3Com in Germany and the US, and although the people on the phone were trying to help, they were not able to help with docs. hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe We all live in a yellow subroutine, yellow subroutine, yellow subroutine ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 9:31:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 608) id CACC737BB43; Tue, 1 Aug 2000 09:31:26 -0700 (PDT) From: "Jonathan M. Bresler" To: phk@freebsd.org Cc: hackers@freebsd.org In-reply-to: <5924.965073661@critter.freebsd.dk> (message from Poul-Henning Kamp on Mon, 31 Jul 2000 22:01:01 +0200) Subject: Re: How to make *real* random bits. Message-Id: <20000801163126.CACC737BB43@hub.freebsd.org> Date: Tue, 1 Aug 2000 09:31:26 -0700 (PDT) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG http://www.fourmilab.ch/hotbits/ jmb To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 9:46:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 41D7F37B8A6; Tue, 1 Aug 2000 09:46:13 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id SAA11266; Tue, 1 Aug 2000 18:46:06 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Jonathan M. Bresler" Cc: hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. In-reply-to: Your message of "Tue, 01 Aug 2000 09:31:26 PDT." <20000801163126.CACC737BB43@hub.freebsd.org> Date: Tue, 01 Aug 2000 18:46:06 +0200 Message-ID: <11264.965148366@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000801163126.CACC737BB43@hub.freebsd.org>, "Jonathan M. Bresler" writes: > >http://www.fourmilab.ch/hotbits/ Yup, that's where I got the idea. Difference is that I interface the geiger directly to a UNIX system, he has all sorts of magic stuff in the middle... -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 10:33: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from c1mailgw1.prontomail.com (c1mailgw1.prontomail.com [208.178.29.197]) by hub.freebsd.org (Postfix) with ESMTP id A042637BF33 for ; Tue, 1 Aug 2000 10:32:58 -0700 (PDT) (envelope-from giffunip@asme.org) Received: by c1mailgw1.prontomail.com (NPlex 4.5.049) id 3977B62B000465BE; Tue, 1 Aug 2000 10:32:43 -0700 Received: from 216.252.136.77 by SmtpServer for ; Tue, 01 Aug 2000 17:31:23 +0000 Message-ID: <3986F915.9EBF5273@asme.org> Date: Tue, 01 Aug 2000 11:21:41 -0500 From: "Pedro F. Giffuni" Organization: Universidad Nacional de Colombia X-Mailer: Mozilla 4.5 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en,pdf MIME-Version: 1.0 To: Marc Espie Cc: freebsd-hackers@freebsd.org Subject: Re: Pointer to people `in charge' of FreeBSD make ? References: <20000801164216.A14226@liafa1.liafa.jussieu.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG FWIW, check out the -hackers archives, there was someone from NetBSD working on new features from another pmake descendant. I think the link was this: http://www.quick.com.au/ftp/pub/sjg/help/bmake.html It would be great if we could all use the same, well behaved, make. cheers, Pedro. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 10:45:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 4EC8D37B51C; Tue, 1 Aug 2000 10:45:15 -0700 (PDT) (envelope-from fanf@dotat.at) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13Jg61-0002tJ-00; Tue, 01 Aug 2000 17:44:53 +0000 Date: Tue, 1 Aug 2000 17:44:52 +0000 From: Tony Finch To: Thomas Stromberg Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org, sos@freebsd.dk Subject: Re: ATA100-7200rpm vs 10k-rpm SCSI for build box Message-ID: <20000801174452.C10991@hand.dotat.at> References: <3986D7F3.35823C92@rtci.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3986D7F3.35823C92@rtci.com> Organization: Covalent Technologies, Inc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thomas Stromberg wrote: > >$132 4.5G 10000RPM Seagate Cheetah >or >$97 IBM Deskstar 75GXP ATA-100 7200RPM 15G (DTLA) > >The question is, whats the real speed difference between a IBM 75GX >(http://www.tweakmax.com/html/ibm75gxp/ibm-1.cfm) and ye old 10000RPM >Cheetahs in FreeBSD? Check the numbers for the seek times as well. Tony. -- en oeccget g mtcaa f.a.n.finch v spdlkishrhtewe y dot@dotat.at eatp o v eiti i d. fanf@covalent.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 11:30:30 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id 0B39437BA12; Tue, 1 Aug 2000 11:30:22 -0700 (PDT) (envelope-from wkb@freebie.demon.nl) Received: from [212.238.54.101] (helo=freebie.demon.nl) by post.mail.nl.demon.net with smtp (Exim 3.14 #2) id 13Jgny-0002v1-00; Tue, 01 Aug 2000 18:30:18 +0000 Received: (from wkb@localhost) by freebie.demon.nl (8.9.3/8.9.3) id UAA91798; Tue, 1 Aug 2000 20:14:50 +0200 (CEST) (envelope-from wkb) Date: Tue, 1 Aug 2000 20:14:50 +0200 From: Wilko Bulte To: Soren Schmidt Cc: Thomas Stromberg , freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: ATA100-7200rpm vs 10k-rpm SCSI for build box Message-ID: <20000801201450.C91677@freebie.demon.nl> Reply-To: wilko@freebsd.org References: <3986D7F3.35823C92@rtci.com> <200008011503.RAA39454@freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200008011503.RAA39454@freebsd.dk>; from sos@freebsd.dk on Tue, Aug 01, 2000 at 05:03:48PM +0200 X-OS: FreeBSD 4.1-STABLE X-PGP: finger wilko@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Aug 01, 2000 at 05:03:48PM +0200, Soren Schmidt wrote: > It seems Thomas Stromberg wrote: > > > > $--- 128M PC133 RAM > > $150 Asus A7V (w/ Promise ATA100 controller) > > $297 AMD Athlon 850 (still waiting for than price drop) > > $63 Tekram 390F UW-SCSI Controller (Symbios) > > $132 4.5G 10000RPM Seagate Cheetah > > or > > $97 IBM Deskstar 75GXP ATA-100 7200RPM 15G (DTLA) > > > > The question is, whats the real speed difference between a IBM 75GX > > (http://www.tweakmax.com/html/ibm75gxp/ibm-1.cfm) and ye old 10000RPM > > Cheetahs in FreeBSD? Id imagine the Cheetah is faster for compiles, but > > is the difference small enough that Id be better off spending the $100 I > > save on ATA100 and spend it on another 128M of RAM. I would of course be > > using the drive as one drive per channel w/ softupdates, noatime. > > > > Any advice, bonnie stats, or make world times would be appreciated. > > Hmm, I have an Abit KA7-100 (thanks to Trent George!) here with > IBM 75GXP drives on it (btw the KA7-100 is a VERY nice board) Right, I second that one. KA7 works just fine for me. And it has a useful (to me) ISA slot instead of a worthles win-modem slot (forgot the abbrev). I don't have the KA7-100, don't use any ATA stuff here, only SCSI. -- Wilko Bulte wilko@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 11:37:44 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.ptd.net (mail2.ha-net.ptd.net [207.44.96.66]) by hub.freebsd.org (Postfix) with SMTP id 4C72937B8FA for ; Tue, 1 Aug 2000 11:37:36 -0700 (PDT) (envelope-from tms2@mail.ptd.net) Received: (qmail 10180 invoked from network); 1 Aug 2000 18:37:37 -0000 Received: from du199.cli.ptd.net (HELO mail.ptd.net) (204.186.33.199) by mail.ptd.net with SMTP; 1 Aug 2000 18:37:37 -0000 Message-ID: <39871896.15CADABA@mail.ptd.net> Date: Tue, 01 Aug 2000 14:36:06 -0400 From: "Thomas M. Sommers" Organization: None X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: "Michael C. Wu" Cc: freebsd-hackers@freebsd.org Subject: Re: ANSI C Standard and wchar* References: <20000731200822.A12481@peorth.iteration.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Michael C. Wu" wrote: > > Hi all, > > I am working on completing a BSDL'ed implementation > of wchar* that is *not* broken. However, > I could not find a free copy of ANSI C library standard. > > I was wondering if anyone has an electronic copy of > ANSI/ISO/IEC 9899-1999 Programming Languages - C > and the related POSIX documents. (Yes, the document > only costs $18 on ANSI.org, but I really do not want > to purchase something that I probably will not use again.) > > Also, which part of POSIX governs the correct > behavior for wchar*? POSIX.1? I believe wchar is part of the C standard. You can get the draft standard for free from the ANSI site. Look for document N869. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 12: 5:29 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.cs.umn.edu (mail.cs.umn.edu [128.101.32.200]) by hub.freebsd.org (Postfix) with ESMTP id AC91737B8D7 for ; Tue, 1 Aug 2000 12:05:25 -0700 (PDT) (envelope-from dong@cs.umn.edu) Received: from chopin.cs.umn.edu (IDENT:root@chopin.cs.umn.edu [128.101.34.191]) by mail.cs.umn.edu (8.9.3/8.9.3) with ESMTP id OAA13267 for ; Tue, 1 Aug 2000 14:05:24 -0500 (CDT) Received: from localhost (dong@localhost) by chopin.cs.umn.edu (8.9.3/8.9.0) with ESMTP id OAA14066 for ; Tue, 1 Aug 2000 14:05:24 -0500 X-Authentication-Warning: chopin.cs.umn.edu: dong owned process doing -bs Date: Tue, 1 Aug 2000 14:05:23 -0500 (CDT) From: Yingfei Dong To: freebsd-hackers@FreeBSD.org Subject: Fine grain timer Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, folks, I am revising a driver for a network interface. I need have a fine-grain timer (33us). Could anyone tell me how to get it? I checked /sys/kern/kern_clock.c. Is it the right place? Could I just revise 'hz' to make the timeout function to do it? Where does 'hz' is initialized? I got a response from misc news list, which warns me never try to change 'hz' over 1000. It means the resolution of the timer is 1ms. But I need 33us timer. ANy inputs? thanks for your help, PS: sorry for repost this because I just check the archive and found out it set a wrong subject of my previous posting. =================================================== Yingfei Dong 4-192 EECS Building, 200 Union Street, SE Tel: 612-626-7526 Minneapolis, MN 55455 FAX: 612-625-0572 =================================================== To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 12:29:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pcnet1.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id 1536937B9D5 for ; Tue, 1 Aug 2000 12:29:09 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: (from eischen@localhost) by pcnet1.pcnet.com (8.8.7/PCNet) id PAA02389; Tue, 1 Aug 2000 15:27:50 -0400 (EDT) Date: Tue, 1 Aug 2000 15:27:50 -0400 (EDT) From: Daniel Eischen To: Yingfei Dong Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Fine grain timer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Aug 2000, Yingfei Dong wrote: > hi, folks, > > I am revising a driver for a network interface. I need have a fine-grain > timer (33us). Could anyone tell me how to get it? Why would you need a 33us timer? Does your hardware not generate interrupts? -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 13:15:12 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from shadowmere.student.utwente.nl (wit401305.student.utwente.nl [130.89.236.145]) by hub.freebsd.org (Postfix) with ESMTP id 6EC2137BD0E for ; Tue, 1 Aug 2000 13:15:06 -0700 (PDT) (envelope-from havoc@wit401305.student.utwente.nl) Received: by shadowmere.student.utwente.nl (Postfix, from userid 1002) id 8B8201F71; Tue, 1 Aug 2000 22:15:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by shadowmere.student.utwente.nl (Postfix) with ESMTP id 8283EFA for ; Tue, 1 Aug 2000 22:15:03 +0200 (CEST) Date: Tue, 1 Aug 2000 22:15:03 +0200 (CEST) From: Theo van Klaveren To: hackers@freebsd.org Subject: ANNOUNCEMENT: Test version of AudioFS Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG After many late nights of caffeine, pizza and debugging, I'm glad to announce a test-version of the Audio Filesystem for FreeBSD. AudioFS is a virtual filesystem that allows you to access audio tracks on your CDROM drive as though they were ordinary .WAV files. This lets you, for example, to encode your MP3's straight from the CD. Note that this is UNSTABLE code, and should not be used if you value your data, diskdrive or bank account. Also note that there are still some (minor) issues with the code; they are mentioned in the TODO file inside the tarball. Please read it before you do anything at all. Most noteable of these is that I have not tested the audio-extraction routine because the CDROM at my current location doesn't support digital audio extraction. I've tested a replacement routine which fills a buffer with zero's, and everything seemed fine, so I'm confident 'the real thing' will work as well (famous last words). It should compile (and work) on 4.1-RELEASE. It's untested on CURRENT. Included in the tarball is the source for the module and a hacked-up mount_cd9660(8) and required sources from mount(8) for the mounting. Grab your bits at: http://www.xs4all.nl/~havoc/audiofs-0.1.tar.gz (12824 bytes) MD5 (audiofs-0.1.tar.gz) = 3eb324903d1ce4387397d2878c4b51f1 Installation procedure: $ tar xvzf audiofs-0.1.tar.gz ... $ cd audiofs $ make depend && make all ... $ su # cp audiofs/audiofs.ko /modules # cp mount_audiofs/mount_audiofs /sbin After which you can just mount your CDROM with 'mount -t audiofs /dev/acd0c /cdrom'. If you're scared of the debug output (it's a lot, i know), you can turn it off by commenting out '-DDEBUG' from the Makefiles. Please note that this is my first attempt at kernel code, so go gently on me :) Comments, panics, backtraces, style(9)-nailing and (preferably) patches are welcome. Please reply to t.vanklaveren@student.utwente.nl or this mailing list, I'm using a temporary address (I'm not at home :) Theo van Klaveren Powered by FreeBSD and two cups of strong coffee. --- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 13:16:17 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smof.fiawol.org (fiawol.org [209.122.117.89]) by hub.freebsd.org (Postfix) with ESMTP id 354C437BF75; Tue, 1 Aug 2000 13:16:07 -0700 (PDT) (envelope-from jdc@fiawol.org) Received: (from jdc@localhost) by smof.fiawol.org (8.9.3/8.9.3) id QAA34620; Tue, 1 Aug 2000 16:16:00 -0400 (EDT) (envelope-from jdc) From: John Cochran Message-Id: <200008012016.QAA34620@smof.fiawol.org> Subject: Re: How to make *real* random bits. In-Reply-To: <5924.965073661@critter.freebsd.dk> "from Poul-Henning Kamp at Jul 31, 2000 10:01:01 pm" To: Poul-Henning Kamp Date: Tue, 1 Aug 2000 16:16:00 -0400 (EDT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [snip...] > If I generate true random bits it takes 3 timestamps to get one > bit of randomness: > > T1: Time of event 1 > T2: Time of event 2 > T3: Time of event 3 > > if (T2 - T1 > T3 - T2) > return 0; > else if (T2 - T1 < T3 - T2) > return 1; > else > try again. > > In my rather crude setup it produces about 5 bits per second [3]. It seems to me that if you get about 15 events per second, then you should be able to produce about 7 to 8 random bits per second instead of only 5. What you're looking for is the difference (greater or less) between events. Because of this your T3 value can be considered the T1 value for the next random bit you generate. Also, someone else has already done this to generate truly random bits. Take a look at: http://www.fourmilab.ch/hotbits/ [snip] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 13:41:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 36B6A37BAFE; Tue, 1 Aug 2000 13:41:23 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id OAA60683; Tue, 1 Aug 2000 14:41:21 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id OAA85828; Tue, 1 Aug 2000 14:41:04 -0600 (MDT) Message-Id: <200008012041.OAA85828@harmony.village.org> To: Poul-Henning Kamp Subject: Re: How to make *real* random bits. Cc: hackers@FreeBSD.ORG In-reply-to: Your message of "Mon, 31 Jul 2000 22:01:01 +0200." <5924.965073661@critter.freebsd.dk> References: <5924.965073661@critter.freebsd.dk> Date: Tue, 01 Aug 2000 14:41:04 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <5924.965073661@critter.freebsd.dk> Poul-Henning Kamp writes: : The earphone output of the geiger counter with a 1kOhm load generates : a nice TTL level pulse which can be fed onto pin 10 of the parallel : port and timestamped with the PPS-API device ("device pps"). How does the variable, but somewhat predictable, latency of the parallel port interface interrupt? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 13:48: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 2E50737BAAD for ; Tue, 1 Aug 2000 13:47:58 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id OAA60734; Tue, 1 Aug 2000 14:47:56 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id OAA85903; Tue, 1 Aug 2000 14:47:39 -0600 (MDT) Message-Id: <200008012047.OAA85903@harmony.village.org> To: Marc Espie Subject: Re: Pointer to people `in charge' of FreeBSD make ? Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Tue, 01 Aug 2000 16:42:16 +0200." <20000801164216.A14226@liafa1.liafa.jussieu.fr> References: <20000801164216.A14226@liafa1.liafa.jussieu.fr> Date: Tue, 01 Aug 2000 14:47:39 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000801164216.A14226@liafa1.liafa.jussieu.fr> Marc Espie writes: : I'm currently over-hauling OpenBSD make. Yippie. The *BSD makes have drifted badly and are all in need of some cleanup, some moer so than others. I think it would be in everybody's best interest to figure out some way to merge the source bases. I'll be happy to work with people on doin gthi.s : During my investigations, I've stumbled upon an oddity of the way : VPATH works. Eeek. I'm going to run in terror now :-) I never know if teh dark corners of VPATH are intentional, or just an artifact of a sloppy implenentation. : Currently, what I'm interested in is collaboration: this changes the : semantics of make slightly, in a non-obvious way. If OpenBSD : performs the change in a dark corner, we'll be able to accept : Makefiles that other BSD* may complain about. Spewing a `warning, : non standard feature used' is always possible, but it would be : better if we could agree on a common plan... Agreed. I've been working on pulling in the NetBSD and OpenBSD changes to make(1) as I run into problems, but the project would take far more time than I have right now :-(. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 13:51:54 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sn1oexchr01.nextvenue.com (sn1oexchr01.nextvenue.com [63.209.169.9]) by hub.freebsd.org (Postfix) with SMTP id 4086E37BAFE for ; Tue, 1 Aug 2000 13:51:48 -0700 (PDT) (envelope-from nevans@nextvenue.com) Received: FROM sn1exchmbx.nextvenue.com BY sn1oexchr01.nextvenue.com ; Tue Aug 01 16:49:56 2000 -0400 Received: by sn1exchmbx.nextvenue.com with Internet Mail Service (5.5.2650.21) id ; Tue, 1 Aug 2000 16:47:16 -0400 Message-ID: <712384017032D411AD7B0001023D799B33B188@sn1exchmbx.nextvenue.com> From: Nick Evans To: "'freebsd-net@freebsd.org'" , "'freebsd-hackers@freebsd.org'" , "'freebsd-isp@freebsd.org'" Subject: Teaming Network Interfaces Date: Tue, 1 Aug 2000 16:47:16 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01BFFBF9.AD4B87A0" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01BFFBF9.AD4B87A0 Content-Type: text/plain; charset="iso-8859-1" Does anyone know of a project or other plans to implement teaming of network interfaces in FreeBSD? Something that will allow two or more NICs share the "same" IP Address, MAC address, etc. for network fault tolerance purposes? I found nothing in the archives and it's pretty disconcerting that no one is spending any time on fault tolerance for a network operating system. thx nick ------------------------------------------ nick.evans network.engineering NextVenue, Inc. phone: (212) 909.2988 pager: (888) 642.5541 ------_=_NextPart_001_01BFFBF9.AD4B87A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Teaming Network Interfaces

Does anyone know of a project or other plans to = implement teaming of network interfaces in FreeBSD? Something that will = allow two or more NICs share the "same" IP Address, MAC = address, etc. for network fault tolerance purposes? I found nothing in = the archives and it's pretty disconcerting that no one is spending any = time on fault tolerance for a network operating system.

thx
nick

------------------------------------------
nick.evans
network.engineering
NextVenue, Inc.
phone: (212) 909.2988
pager: (888) 642.5541

------_=_NextPart_001_01BFFBF9.AD4B87A0-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 14:42:18 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from outpost.hstn.tensor.pgs.com (outpost.hstn.tensor.pgs.com [157.147.25.67]) by hub.freebsd.org (Postfix) with ESMTP id A4E8937BE60 for ; Tue, 1 Aug 2000 14:42:14 -0700 (PDT) (envelope-from shocking@hstn.tensor.pgs.com) Received: from hap.hstn.tensor.pgs.com (hap.hstn.tensor.pgs.com [157.147.128.1]) by outpost.hstn.tensor.pgs.com (8.9.3/8.9.3) with ESMTP id QAA14962 for ; Tue, 1 Aug 2000 16:42:10 -0500 (CDT) Received: from penguin.hstn.tensor.pgs.com (penguin.hstn.tensor.pgs.com [157.147.132.155]) by hap.hstn.tensor.pgs.com (8.9.3/8.9.3) with ESMTP id QAA10483 for ; Tue, 1 Aug 2000 16:42:10 -0500 (CDT) Received: from hstn.tensor.pgs.com (localhost [127.0.0.1]) by penguin.hstn.tensor.pgs.com (8.8.8+Sun/8.8.8) with ESMTP id QAA05077 for ; Tue, 1 Aug 2000 16:42:09 -0500 (CDT) Message-Id: <200008012142.QAA05077@penguin.hstn.tensor.pgs.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: hackers@freebsd.org Subject: Virtual interaces and tunneling stuff over SSH Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 01 Aug 2000 16:42:08 -0500 From: Steve Hocking Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Is is possible to use an SSH connection with a tun interface at either end, such that one could have a VPN? I'm tired of waiting for people here to make a decision on a package and would like to have a proof of concept up and running. Extra points for those who can do the same thing with a Linux box at one end. Stephen -- The views expressed above are not those of PGS Tensor. "We've heard that a million monkeys at a million keyboards could produce the Complete Works of Shakespeare; now, thanks to the Internet, we know this is not true." Robert Wilensky, University of California To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 14:58:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 758) id F310937B6C9; Tue, 1 Aug 2000 14:58:22 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id F14062E8195; Tue, 1 Aug 2000 14:58:22 -0700 (PDT) (envelope-from kris@hub.freebsd.org) Date: Tue, 1 Aug 2000 14:58:22 -0700 (PDT) From: Kris Kennaway To: Steve Hocking Cc: hackers@freebsd.org Subject: Re: Virtual interaces and tunneling stuff over SSH In-Reply-To: <200008012142.QAA05077@penguin.hstn.tensor.pgs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Aug 2000, Steve Hocking wrote: > Is is possible to use an SSH connection with a tun interface at either end, > such that one could have a VPN? I'm tired of waiting for people here to make a > decision on a package and would like to have a proof of concept up and > running. Extra points for those who can do the same thing with a Linux box at > one end. Use ppp(8) or pppd(8) Kris -- In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 15:10:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp1-ext.oskarmobil.cz (smtp1-ext.oskarmobil.cz [195.47.29.137]) by hub.freebsd.org (Postfix) with ESMTP id 434CD37B69C for ; Tue, 1 Aug 2000 15:10:32 -0700 (PDT) (envelope-from milon.papezik@oskarmobil.cz) Received: from wh01ex02.ceskymobil.cz (exchange1.ceskymobil.cz [172.20.128.42]) by smtp1-ext.oskarmobil.cz (8.9.3/8.9.3) with ESMTP id AAA18585 for ; Wed, 2 Aug 2000 00:07:12 +0200 (CEST) Received: from oskarmobil.cz (papezik.ceskymobil.cz [172.20.128.9]) by wh01ex02.ceskymobil.cz with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21) id PGZ1MXCG; Wed, 2 Aug 2000 00:07:24 +0200 Message-ID: <398749C1.569C6EC6@oskarmobil.cz> Date: Wed, 02 Aug 2000 00:05:53 +0200 From: Milon Papezik X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.4-RELEASE i386) X-Accept-Language: cs, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: What is missing in CardBus support? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, I asked following question on 'hardware' last week, but got no answer so far. Could you please help to clarify the situation? Thanks in advance, Milon -- milon.papezik@oskarmobil.cz > Perhaps it is a stupid question, but I would like to ask > what bits are missing in card bus support? > > I have access to ThinkPad 600E with TI1250A cardbus controler > and I would like to estimate how much work it needs, > so that I can decide, whether I can find some time. > > At this moment the TI 1250A controler is recognised > and hopefully initialized (the code is in sys/pci/pcic_p.[hc]). > The specs are available from TI. > > Thanks in advance, > Milon > -- > milon.papezik@oskarmobil.cz > > Barney Wolff wrote: > > > > Since the 3c575 is a cardbus card, my guess is no. Last time I > looked, > > cardbus support was not in 4.0. > > Barney > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hardware" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 16:12:53 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from spock.org (cm-24-161-5-13.nycap.rr.com [24.161.5.13]) by hub.freebsd.org (Postfix) with ESMTP id F045137B678 for ; Tue, 1 Aug 2000 16:12:46 -0700 (PDT) (envelope-from jon@spock.org) Received: (from jon@localhost) by spock.org serial EF600Q3T-B7F; Tue, 1 Aug 2000 19:12:42 -0400 (EDT) (envelope-from jon) Date: Tue, 1 Aug 2000 19:12:42 -0400 From: Jonathan Chen To: Milon Papezik Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: What is missing in CardBus support? Message-ID: <20000801191242.A52986@spock.org> References: <398749C1.569C6EC6@oskarmobil.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <398749C1.569C6EC6@oskarmobil.cz>; from milon.papezik@oskarmobil.cz on Wed, Aug 02, 2000 at 12:05:53AM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Aug 02, 2000 at 12:05:53AM +0200, Milon Papezik wrote: > > Perhaps it is a stupid question, but I would like to ask > > what bits are missing in card bus support? > > > > I have access to ThinkPad 600E with TI1250A cardbus controler > > and I would like to estimate how much work it needs, > > so that I can decide, whether I can find some time. > > > > At this moment the TI 1250A controler is recognised > > and hopefully initialized (the code is in sys/pci/pcic_p.[hc]). > > The specs are available from TI. If you just want to use your 3c575 with your thinkpad 600E, I just so happen to be using the same configuration and have a patch that will get this to work. As far as real cardbus support goes, I've been poking at it lately to try to get this working... and unless somebody else is actively working on this, I'd say we're real far away from working cardbus support. If you're interested in trying out the ugly hack for the 3c575 I have, you can grab ftp://ftp.spock.org/pub/cardbus.diff.latest . This should apply cleanly to 4.1-STABLE and includes support for the TI1250A, 3C575, Xircom CBE2, as well as a small change to allow the TP600E sound card to work with all these. Note that there is a small problem with suspending with a busy network - you should unplug the ethernet cord before suspending. Also, there is no support for insert/removal. -- (o_ 1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2-1-2 _o) \\\_\ Jonathan Chen jon@spock.org /_/// <____) No electrons were harmed during production of this message (____> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 16:34:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from falcon.home.hentschel.net (d83b0468.dsl.flashcom.net [216.59.4.104]) by hub.freebsd.org (Postfix) with ESMTP id 2D00037BF0A for ; Tue, 1 Aug 2000 16:34:20 -0700 (PDT) (envelope-from thomas@hentschel.net) Received: from hentschel.net (thomas@localhost [127.0.0.1]) by falcon.home.hentschel.net (8.9.3/8.9.3) with ESMTP id PAA99768; Tue, 1 Aug 2000 15:47:31 -0700 (PDT) (envelope-from thomas@hentschel.net) Message-Id: <200008012247.PAA99768@falcon.home.hentschel.net> Date: Tue, 1 Aug 2000 15:47:30 -0700 (PDT) From: thomas@hentschel.net Subject: Re: Virtual interaces and tunneling stuff over SSH To: Steve Hocking Cc: hackers@FreeBSD.ORG In-Reply-To: <200008012142.QAA05077@penguin.hstn.tensor.pgs.com> MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG use port forwarding of ssh to establish a ppp connection. I have something written up on how I did it, it's been awhile, so YMMV: http://dorothy.hentschel.net/ppp_over_ssh.html -Th On 1 Aug, Steve Hocking wrote: > Is is possible to use an SSH connection with a tun interface at either end, > such that one could have a VPN? I'm tired of waiting for people here to make a > decision on a package and would like to have a proof of concept up and > running. Extra points for those who can do the same thing with a Linux box at > one end. > > > Stephen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 16:51:31 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from sigterm.aventail.com (sigterm.aventail.com [206.253.217.145]) by hub.freebsd.org (Postfix) with ESMTP id 33D0C37BF70 for ; Tue, 1 Aug 2000 16:51:16 -0700 (PDT) (envelope-from kmills@aventail.com) Received: from leo.in.aventail.com (leo.in.aventail.com [192.168.1.136]) by sigterm.aventail.com (8.10.2/8.10.2) with ESMTP id e71NpFj11127 for ; Tue, 1 Aug 2000 16:51:15 -0700 (PDT) Received: from voyager (exit.dmz.aventail.com [192.168.25.132]) by leo.in.aventail.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2448.0) id P5G78TDR; Tue, 1 Aug 2000 16:49:46 -0700 From: "Kevin Mills" To: "FreeBSD Hackers" Subject: aio_waitcomplete? Date: Tue, 1 Aug 2000 16:52:48 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In order to get familiar with aio_waitcomplete() and friends, I wrote a simple echo server and have run into problems. If I attempt to hit my echo server with more than a few clients (> 3 or 4), I get a bunch of ENOTCONN errors from aio_waitcomplete() and on the client end I get an ECONNRESET and a 'Broken pipe'. To ensure I wasn't completely crazy, I wrote the same echo server using poll() and non-blocking sockets and it works without error. Is aio_waitcomplete() ready for prime-time? Should this work? I'm using 4.0-stable from 7/13/2000: 4.0-STABLE FreeBSD 4.0-STABLE #2: Thu Jul 13 16:07:07 PDT 2000 Thanks for any assistance! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 16:53: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.integratus.com (miami.integratus.com [63.209.2.83]) by hub.freebsd.org (Postfix) with SMTP id AB04737BFEC for ; Tue, 1 Aug 2000 16:52:52 -0700 (PDT) (envelope-from jar@integratus.com) Received: (qmail 13624 invoked from network); 1 Aug 2000 23:52:51 -0000 Received: from kungfu.integratus.com (HELO integratus.com) (172.20.5.168) by tortuga1.integratus.com with SMTP; 1 Aug 2000 23:52:51 -0000 Message-ID: <398762D3.C5E2D2B6@integratus.com> Date: Tue, 01 Aug 2000 16:52:51 -0700 From: Jack Rusher Organization: Integratus X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: thomas@hentschel.net Cc: Steve Hocking , hackers@FreeBSD.ORG Subject: Re: Virtual interaces and tunneling stuff over SSH References: <200008012247.PAA99768@falcon.home.hentschel.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG thomas@hentschel.net wrote: > > use port forwarding of ssh to establish a ppp connection. I have > something written up on how I did it, it's been awhile, so YMMV: > http://dorothy.hentschel.net/ppp_over_ssh.html Or, better yet, use IPSec. -- Jack Rusher, Senior Engineer | mailto:jar@integratus.com Integratus, Inc. | http://www.integratus.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 17:14:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id A6F4937BC5F for ; Tue, 1 Aug 2000 17:14:51 -0700 (PDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id SAA61482; Tue, 1 Aug 2000 18:14:45 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id SAA87498; Tue, 1 Aug 2000 18:14:28 -0600 (MDT) Message-Id: <200008020014.SAA87498@harmony.village.org> To: Jonathan Chen Subject: Re: What is missing in CardBus support? Cc: Milon Papezik , freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Tue, 01 Aug 2000 19:12:42 EDT." <20000801191242.A52986@spock.org> References: <20000801191242.A52986@spock.org> <398749C1.569C6EC6@oskarmobil.cz> Date: Tue, 01 Aug 2000 18:14:27 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <20000801191242.A52986@spock.org> Jonathan Chen writes: : lately to try to get this working... and unless somebody else is actively : working on this, I'd say we're real far away from working cardbus support. I'm actively working on this and we're still far away from real cardbus support. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 17:46:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cicuta.babolo.ru (babolo.ru [194.58.226.160]) by hub.freebsd.org (Postfix) with ESMTP id C4A9E37BFA5 for ; Tue, 1 Aug 2000 17:46:24 -0700 (PDT) (envelope-from babolo@cicuta.babolo.ru) Received: (from babolo@localhost) by cicuta.babolo.ru (8.9.3/8.9.3) id EAA01875 for freebsd-hackers@FreeBSD.ORG; Wed, 2 Aug 2000 04:46:47 +0400 (MSD) (envelope-from babolo) Message-Id: <200008020046.EAA01875@cicuta.babolo.ru> Subject: malloc to arrays? To: freebsd-hackers@FreeBSD.ORG Date: Wed, 2 Aug 2000 04:46:47 +0400 (MSD) From: .@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Sorry I have no other direction to ask this: I have declaration: u_int32_t *(tcpcash_addr[256]); and want malloc some memory for tcpcash_addr: tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t * 256 * n); and have an error: ra-sum.c:386: cast specifies array type *** Error code 1 How can I cast pointer from malloc for tcpcash_addr? -- áÌÅËÓÁÎÄÒ á.âÁÂÁÊÌÏ× mailto://babolo@links.ru/ http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 17:55:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from postal.linkfast.net (postal.linkfast.net [208.160.105.2]) by hub.freebsd.org (Postfix) with ESMTP id 9580037B817 for ; Tue, 1 Aug 2000 17:55:12 -0700 (PDT) (envelope-from fullermd@linkfast.net) Received: by postal.linkfast.net (Postfix, from userid 100) id E28509B0A; Tue, 1 Aug 2000 19:55:11 -0500 (CDT) Date: Tue, 1 Aug 2000 19:55:11 -0500 From: Matthew Fuller To: Thomas Stromberg Cc: freebsd-hackers@freebsd.org Subject: Re: ATA100-7200rpm vs 10k-rpm SCSI for build box Message-ID: <20000801195511.B62444@linkfast.net> References: <3986D7F3.35823C92@rtci.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3986D7F3.35823C92@rtci.com>; from tstromberg@rtci.com on Tue, Aug 01, 2000 at 10:00:19AM -0400 X-OS: FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Aug 01, 2000 at 10:00:19AM -0400, a little birdie told me that Thomas Stromberg remarked > I'm currently trying to put together a personal workstation whose > primary duty is compiling large projects (FreeBSD, mozilla, grass, etc.) >... > $132 4.5G 10000RPM Seagate Cheetah > > The question is, whats the real speed difference between a IBM 75GX > (http://www.tweakmax.com/html/ibm75gxp/ibm-1.cfm) and ye old 10000RPM > Cheetahs in FreeBSD? Id imagine the Cheetah is faster for compiles, but > is the difference small enough that Id be better off spending the $100 I > save on ATA100 and spend it on another 128M of RAM. I would of course be > using the drive as one drive per channel w/ softupdates, noatime. Bonnie stats aren't too useful here, as bonnie just gives you large single transfers. As a general rule, I'd go with the SCSI. I personally recommend IBM Ultrastars, you can pick up a 9.1 gig Ultrastar (7200 RPM, but stacks up pretty well against a cheetah 10k last I heard) for about $170. If 4.5 is all you need, I think they're a fair bit cheaper. -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Unix Systems Administrator | fullermd@linkfast.net Specializing in FreeBSD | http://www.over-yonder.net/ "The only reason I'm burning my candle at both ends, is because I haven't figured out how to light the middle yet" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 18:28:48 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mta5.rcsntx.swbell.net (mta5.rcsntx.swbell.net [151.164.30.29]) by hub.freebsd.org (Postfix) with ESMTP id 3CE8437B5A6 for ; Tue, 1 Aug 2000 18:28:43 -0700 (PDT) (envelope-from chris@holly.calldei.com) Received: from holly.calldei.com ([208.191.149.190]) by mta5.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0FYN00GYB543V9@mta5.rcsntx.swbell.net> for freebsd-hackers@FreeBSD.ORG; Tue, 1 Aug 2000 20:21:39 -0500 (CDT) Received: (from chris@localhost) by holly.calldei.com (8.9.3/8.9.3) id UAA57403; Tue, 01 Aug 2000 20:19:31 -0500 (CDT envelope-from chris) Date: Tue, 01 Aug 2000 20:19:30 -0500 From: Chris Costello Subject: Re: malloc to arrays? In-reply-to: <200008020046.EAA01875@cicuta.babolo.ru> To: "."@babolo.ru Cc: freebsd-hackers@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <20000801201930.G54640@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i References: <200008020046.EAA01875@cicuta.babolo.ru> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, August 02, 2000, .@babolo.ru wrote: > Sorry I have no other direction to ask this: > I have declaration: > > u_int32_t *(tcpcash_addr[256]); > > and want malloc some memory for tcpcash_addr: > > tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t * 256 * n); > > and have an error: > > ra-sum.c:386: cast specifies array type > *** Error code 1 Try this: u_int32_t *tcphash_haddr; tcphash_addr = malloc(sizeof(*tcphash_addr) * 256); You shouldn't be casting malloc and I don't see any reason to use *(foo[nmemb]) syntax. -- |Chris Costello |Performance proven: It works through beta test. `----------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 18:46:47 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from celery.dragondata.com (celery.dragondata.com [205.253.12.6]) by hub.freebsd.org (Postfix) with ESMTP id 94D2237BF89 for ; Tue, 1 Aug 2000 18:46:32 -0700 (PDT) (envelope-from toasty@celery.dragondata.com) Received: (from toasty@localhost) by celery.dragondata.com (8.9.3/8.9.3) id UAA51673 for hackers@freebsd.org; Tue, 1 Aug 2000 20:46:27 -0500 (CDT) (envelope-from toasty) From: Kevin Day Message-Id: <200008020146.UAA51673@celery.dragondata.com> Subject: Lots of PCI busses confusing newbus/Compaq Proliant ML530 To: hackers@freebsd.org Date: Tue, 1 Aug 2000 20:46:27 -0500 (CDT) X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've got a Compaq Proliant ML530 server that seems to work just fine with the funky RAID controller and management software. However, the if_sk driver is giving me a small problem. I've got a SysKonnect dual 1000Mb ethernet card on one of the PCI busses on the motherboard. The probe gets called, but the attach routine never seems to happen. skc0: port 0x3000-0x30ff mem 0xc6afc000-0xc6afffff irq 10 at device 6.0 on pci2 skc0: SysKonnect SK-NET Gigabit Ethernet Adapter SK-9844 SX dual link appears but the rest doesn't. A good boot would show: (begin of probe routine) skc0: port 0xa400-0xa4ff mem 0xde000000-0xde003fff irq 11 at device 12.0 on pci0 skc0: SysKonnect SK-NET Gigabit Ethernet Adapter SK-9844 SX dual link (begin of attach routine) sk0: on skc0 sk0: Ethernet address: 00:00:5a:98:21:6c sk1: on skc0 sk1: Ethernet address: 00:00:5a:98:21:6d miibus1: on sk0 xmphy0: on miibus1 xmphy0: 1000baseSX, 1000baseSX-FDX, auto miibus2: on sk1 xmphy1: on miibus2 xmphy1: 1000baseSX, 1000baseSX-FDX, auto One bizarre thing appearing on boot is this: pcib255: on motherboard pci255: on pcib255 Which doesn't seem right at all. Has anyone seen a problem like this before, or might know what I can tune/fiddle with? Below is my dmesg and pciconf output. For reference there are three PCI busses on the motherboard. Bus 0 is a 32bit/33mhz bus. Bus 1 is a 64bit/33mhz bus. Bus 2 is a 64bit/66mhz bus. Thanks, Kevin Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.1-RELEASE #0: Tue Aug 1 11:02:42 CDT 2000 toasty@senettest.ikadega.com:/usr/src/sys/compile/NETTEST Calibrating clock(s) ... TSC clock: 863968785 Hz, i8254 clock: 1193236 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz CLK_USE_TSC_CALIBRATION not specified - using old calibration method CPU: Pentium III/Pentium III Xeon/Celeron (863.93-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x683 Stepping = 3 Features=0x383f9ff real memory = 402636800 (393200K bytes) Physical memory chunk(s): 0x00001000 - 0x0009efff, 647168 bytes (158 pages) 0x003be000 - 0x17ff3fff, 398680064 bytes (97334 pages) avail memory = 387624960 (378540K bytes) bios32: Found BIOS32 Service Directory header at 0xc00ffee0 bios32: Entry = 0xf0000 (c00f0000) Rev = 0 Len = 1 pcibios: PCI BIOS entry at 0x84 Other BIOS signatures found: ACPI: 000f4f90 Pentium Pro MTRR support enabled md0: Malloc disk Creating DISK md0 pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=00091166) npx0: on motherboard npx0: INT 16 interface pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=00091166) pcib0: on motherboard found-> vendor=0x1166, dev=0x0009, revid=0x06 class=06-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x1166, dev=0x0009, revid=0x06 class=06-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x0e11, dev=0xa0f0, revid=0x00 class=08-80-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=255 map[10]: type 1, range 32, base 00001800, size 8 map[14]: type 1, range 32, base c69fff00, size 8 found-> vendor=0x1002, dev=0x4756, revid=0x7a class=03-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 map[10]: type 1, range 32, base c5000000, size 24 map[14]: type 1, range 32, base 00002000, size 8 map[18]: type 1, range 32, base c69fe000, size 12 found-> vendor=0x8086, dev=0x1229, revid=0x08 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c69fd000, size 12 map[14]: type 1, range 32, base 00002400, size 6 map[18]: type 1, range 32, base c6800000, size 20 found-> vendor=0x1166, dev=0x0200, revid=0x4f class=06-01-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x1166, dev=0x0211, revid=0x00 class=01-01-8a, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 map[20]: type 1, range 32, base 00002440, size 4 found-> vendor=0x1166, dev=0x0009, revid=0x06 class=06-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 found-> vendor=0x1166, dev=0x0009, revid=0x06 class=06-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 pci0: on pcib0 pci0: (vendor=0x0e11, dev=0xa0f0) at 3.0 pci0: (vendor=0x1002, dev=0x4756) at 5.0 fxp0: port 0x2400-0x243f mem 0xc6800000-0xc68f ffff,0xc69fd000-0xc69fdfff irq 5 at device 8.0 on pci0 fxp0: Ethernet address 00:50:8b:ae:c5:38 bpf: fxp0 attached isab0: at device 15.0 on pci0 isa0: on isab0 atapci0: port 0x2440-0x244f at device 15.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x2440 ata0: mask=03 status0=50 status1=00 ata0: mask=03 status0=00 status1=00 ata0: devices = 0xc ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x2448 ata1: mask=03 status0=00 status1=00 ata1: mask=03 status0=00 status1=00 ata1: devices = 0x0 ata1: probe allocation failed pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=00091166) pcib2: on motherboard found-> vendor=0x1148, dev=0x4300, revid=0x11 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=10 map[10]: type 1, range 32, base c6afc000, size 14 map[14]: type 1, range 32, base 00003000, size 8 pci2: on pcib2 skc0: port 0x3000-0x30ff mem 0xc6afc000-0xc6afffff irq 10 at device 6.0 on pci2 skc0: SysKonnect SK-NET Gigabit Ethernet Adapter SK-9844 SX dual link pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=00091166) pcib255: on motherboard pci255: on pcib255 pci_open(1): mode 1 addr port (0x0cf8) is 0x00000000 pci_open(1a): mode1res=0x80000000 (0x80000000) pci_cfgcheck: device 0 [class=060000] [hdr=80] is there (id=00091166) pcib5: on motherboard found-> vendor=0x1000, dev=0x000b, revid=0x05 class=01-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=a, irq=11 map[10]: type 1, range 32, base 00004000, size 8 map[14]: type 1, range 64, base c6bffc00, size 10 map[1c]: type 1, range 64, base c6bfc000, size 13 found-> vendor=0x1000, dev=0x000b, revid=0x05 class=01-00-00, hdrtype=0x00, mfdev=1 subordinatebus=0 secondarybus=0 intpin=b, irq=15 map[10]: type 1, range 32, base 00004400, size 8 map[14]: type 1, range 64, base c6bfbc00, size 10 map[1c]: type 1, range 64, base c6bf8000, size 13 found-> vendor=0x1011, dev=0x0026, revid=0x02 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=6 secondarybus=6 found-> vendor=0x1011, dev=0x0026, revid=0x02 class=06-04-00, hdrtype=0x01, mfdev=0 subordinatebus=7 secondarybus=7 pci5: on pcib5 sym0: <896> port 0x4000-0x40ff mem 0xc6bfc000-0xc6bfdfff,0xc6bffc00-0xc6bfffff i rq 11 at device 4.0 on pci5 sym0: No NVRAM, ID 7, Fast-40, LVD, parity checking sym0: open drain IRQ line driver, using on-chip SRAM sym0: using LOAD/STORE-based firmware. sym0: handling phase mismatch from SCRIPTS. sym1: <896> port 0x4400-0x44ff mem 0xc6bf8000-0xc6bf9fff,0xc6bfbc00-0xc6bfbfff i rq 15 at device 4.1 on pci5 sym1: chip clock is 40401KHz sym1: No NVRAM, ID 7, Fast-40, LVD, parity checking sym1: open drain IRQ line driver, using on-chip SRAM sym1: using LOAD/STORE-based firmware. sym1: handling phase mismatch from SCRIPTS. pcib1: at device 7.0 on pci5 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6d80000, size 19 map[14]: type 1, range 32, base 00005000, size 8 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6d00000, size 19 map[14]: type 1, range 32, base 00005400, size 8 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6c80000, size 19 map[14]: type 1, range 32, base 00005800, size 8 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6c00000, size 19 map[14]: type 1, range 32, base 00005c00, size 8 pci6: on pcib1 sf0: port 0x5000-0x50ff mem 0xc6d80000-0xc6dfff ff irq 5 at device 4.0 on pci6 using shared irq5. sf0: Ethernet address: 00:00:d1:ed:c0:e5 miibus0: on sf0 ukphy0: on miibus0 ukphy0: OUI 0x0005be, model 0x0003, rev. 1 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf0 attached sf1: port 0x5400-0x54ff mem 0xc6d00000-0xc6d7ff ff irq 5 at device 5.0 on pci6 sf1: Ethernet address: 00:00:d1:ed:c0:e6 miibus1: on sf1 ukphy1: on miibus1 ukphy1: OUI 0x0005be, model 0x0003, rev. 1 ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf1 attached sf2: port 0x5800-0x58ff mem 0xc6c80000-0xc6cfff ff irq 5 at device 6.0 on pci6 sf2: Ethernet address: 00:00:d1:ed:c0:e7 miibus2: on sf2 ukphy2: on miibus2 ukphy2: OUI 0x0005be, model 0x0003, rev. 1 ukphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf2 attached sf3: port 0x5c00-0x5cff mem 0xc6c00000-0xc6c7ff ff irq 5 at device 7.0 on pci6 sf3: Ethernet address: 00:00:d1:ed:c0:e8 miibus3: on sf3 ukphy3: on miibus3 ukphy3: OUI 0x0005be, model 0x0003, rev. 1 ukphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf3 attached pcib3: at device 9.0 on pci5 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6f80000, size 19 map[14]: type 1, range 32, base 00006000, size 8 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6f00000, size 19 map[14]: type 1, range 32, base 00006400, size 8 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6e80000, size 19 map[14]: type 1, range 32, base 00006800, size 8 found-> vendor=0x9004, dev=0x6915, revid=0x03 class=02-00-00, hdrtype=0x00, mfdev=0 subordinatebus=0 secondarybus=0 intpin=a, irq=5 map[10]: type 1, range 32, base c6e00000, size 19 map[14]: type 1, range 32, base 00006c00, size 8 pci7: on pcib3 sf4: port 0x6000-0x60ff mem 0xc6f80000-0xc6ffff ff irq 5 at device 4.0 on pci7 sf4: Ethernet address: 00:00:d1:ed:c0:7d miibus4: on sf4 ukphy4: on miibus4 ukphy4: OUI 0x0005be, model 0x0003, rev. 1 ukphy4: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf4 attached sf5: port 0x6400-0x64ff mem 0xc6f00000-0xc6f7ff ff irq 5 at device 5.0 on pci7 sf5: Ethernet address: 00:00:d1:ed:c0:7e miibus5: on sf5 ukphy5: on miibus5 ukphy5: OUI 0x0005be, model 0x0003, rev. 1 ukphy5: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf5 attached sf6: port 0x6800-0x68ff mem 0xc6e80000-0xc6efff ff irq 5 at device 6.0 on pci7 sf6: Ethernet address: 00:00:d1:ed:c0:7f miibus6: on sf6 ukphy6: on miibus6 ukphy6: OUI 0x0005be, model 0x0003, rev. 1 ukphy6: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf6 attached sf7: port 0x6c00-0x6cff mem 0xc6e00000-0xc6e7ff ff irq 5 at device 7.0 on pci7 sf7: Ethernet address: 00:00:d1:ed:c0:80 miibus7: on sf7 ukphy7: on miibus7 ukphy7: OUI 0x0005be, model 0x0003, rev. 1 ukphy7: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto bpf: sf7 attached eisa0: on motherboard mainboard0: on eisa0 slot 0 eisa0: unknown card @@@0000 (0x00000000) at slot 5 eisa0: unknown card @@@0000 (0x00000000) at slot 6 Trying Read_Port at 203 Trying Read_Port at 243 Trying Read_Port at 283 Trying Read_Port at 2c3 Trying Read_Port at 303 Trying Read_Port at 343 Trying Read_Port at 383 Trying Read_Port at 3c3 ata-: ata0 exists, using next available unit number ata-: ata1 exists, using next available unit number isa_probe_children: disabling PnP devices isa_probe_children: probing non-PnP devices fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ata3: iobase=0x0170 altiobase=0x0376 bmaddr=0x0000 ata3: mask=03 status0=00 status1=00 ata3: mask=03 status0=00 status1=00 ata3: devices = 0x0 ata3: probe allocation failed atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 atkbd: the current kbd controller command byte 0065 atkbd: keyboard ID 0x41ab (2) kbdc: RESET_KBD return code:00fa kbdc: RESET_KBD status:00aa kbd0 at atkbd0 kbd0: atkbd0, AT 101/102 (2), config:0x1, flags:0x3d0000 psm0: current command byte:0065 kbdc: TEST_AUX_PORT status:0000 kbdc: RESET_AUX return code:00fe kbdc: RESET_AUX return code:00fe kbdc: RESET_AUX return code:00fe kbdc: DIAGNOSE status:0055 kbdc: TEST_KBD_PORT status:0000 psm0: failed to reset the aux device. vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 fb0: vga0, vga, type:VGA (5), flags:0x7007f fb0: port:0x3c0-0x3df, crtc:0x3d4, mem:0xa0000 0x20000 fb0: init mode:24, bios mode:3, current mode:24 fb0: window:0xc00b8000 size:32k gran:32k, buf:0 size:32k VGA parameters upon power-up 50 18 10 00 00 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 07 80 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff VGA parameters in BIOS for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff EGA/VGA parameters to be used for mode 24 50 18 10 00 10 00 03 00 02 67 5f 4f 50 82 55 81 bf 1f 00 4f 0d 0e 00 00 00 00 9c 8e 8f 28 1f 96 b9 a3 ff 00 01 02 03 04 05 14 07 38 39 3a 3b 3c 3d 3e 3f 0c 00 0f 08 00 00 00 00 00 10 0e 00 ff sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sc0: fb0, kbd0, terminal emulator: sc (syscons terminal) pcic1: not probed (disabled) sio0: irq maps: 0x8841 0x8851 0x8841 0x8841 sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1: irq maps: 0x8841 0x8849 0x8841 0x8841 sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A sio2: not probed (disabled) sio3: not probed (disabled) ppc0: parallel port found at 0x3bc ppc0: cannot reserve I/O port range isa_probe_children: probing PnP devices BIOS Geometries: 0:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors 1:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors 2:03fffe3f 0..1023=1024 cylinders, 0..254=255 heads, 1..63=63 sectors 0 accounted for Device configuration finished. bpf: sl0 attached bpf: ppp0 attached new masks: bio 684040, tty 63001a, net 67043a bpf: lo0 attached bpf: gif0 attached bpf: gif1 attached bpf: gif2 attached bpf: gif3 attached bpf: faith0 attached ata0-slave: identify retries exceeded ata0-master: piomode=4 dmamode=2 udmamode=-1 dmaflag=1 ata0-master: success setting up PIO4 mode on generic chip acd0: CDROM drive at ata0 as master acd0: read 5512KB/s (5512KB/s), 128KB buffer, PIO4 acd0: Reads: CD-R, CD-RW, CD-DA stream, packet acd0: Audio: play, 255 volume levels acd0: Mechanism: ejectable tray acd0: Medium: no/blank disc inside, unlocked Waiting 15 seconds for SCSI devices to settle (noperiph:sym0:0:-1:-1): SCSI BUS reset delivered. (noperiph:sym1:0:-1:-1): SCSI BUS reset delivered. Creating DISK da0 Creating DISK da1 Creating DISK da2 pass0 at sym0 bus 0 target 0 lun 0 pass0: Fixed Direct Access SCSI-2 device pass0: Serial Number 3BM0F5AN0000705021C4 pass0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabl ed pass1 at sym0 bus 0 target 1 lun 0 pass1: Fixed Direct Access SCSI-2 device pass1: Serial Number 36013966 0023 pass1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabl ed pass2 at sym0 bus 0 target 2 lun 0 pass2: Fixed Direct Access SCSI-2 device pass2: Serial Number 36015080 0024 pass2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabl ed da0 at sym0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: Serial Number 3BM0F5AN0000705021C4 da0: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled da0: 17365MB (35565080 512 byte sectors: 255H 63S/T 2213C) da1 at sym0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-2 device da1: Serial Number 36013966 0023 da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled da1: 17365MB (35565080 512 byte sectors: 255H 63S/T 2213C) da2 at sym0 bus 0 target 2 lun 0 da2: Fixed Direct Access SCSI-2 device da2: Serial Number 36015080 0024 da2: 80.000MB/s transfers (40.000MHz, offset 31, 16bit), Tagged Queueing Enabled da2: 17365MB (35565080 512 byte sectors: 255H 63S/T 2213C) Mounting root from ufs:da0s1a da0s1: type 0xa5, start 80325, end = 35551844, size 35471520 : OK da0s3: type 0x12, start 63, end = 80324, size 80262 : OK start_init: trying /sbin/init splash: image decoder found: daemon_saver # ifconfig -a fxp0: flags=8843 mtu 1500 inet 88.0.0.116 netmask 0xffffff00 broadcast 88.0.0.255 inet6 fe80::250:8bff:feae:c538%fxp0 prefixlen 64 scopeid 0x1 ether 00:50:8b:ae:c5:38 media: autoselect (100baseTX ) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP sf0: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:e5 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sf1: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:e6 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sf2: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:e7 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sf3: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:e8 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sf4: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:7d media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sf5: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:7e media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sf6: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:7f media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sf7: flags=8802 mtu 1500 ether 00:00:d1:ed:c0:80 media: autoselect (none) status: no carrier supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP none sl0: flags=c010 mtu 552 ppp0: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0xc inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 gif0: flags=8010 mtu 1280 gif1: flags=8010 mtu 1280 gif2: flags=8010 mtu 1280 gif3: flags=8010 mtu 1280 faith0: flags=8000 mtu 1500 # pciconf -l chip0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x00091166 rev=0x06 hdr=0x00 chip1@pci0:0:1: class=0x060000 card=0x00000000 chip=0x00091166 rev=0x06 hdr=0x00 none0@pci0:3:0: class=0x088000 card=0xb0f30e11 chip=0xa0f00e11 rev=0x00 hdr=0x00 none1@pci0:5:0: class=0x030000 card=0x47561002 chip=0x47561002 rev=0x7a hdr=0x00 fxp0@pci0:8:0: class=0x020000 card=0xb1440e11 chip=0x12298086 rev=0x08 hdr=0x00 isab0@pci0:15:0: class=0x060100 card=0x02001166 chip=0x02001166 rev=0x4f hdr=0x00 atapci0@pci0:15:1: class=0x01018a card=0x00000000 chip=0x02111166 rev=0x00 hdr=0x00 chip2@pci0:17:0: class=0x060000 card=0x00000000 chip=0x00091166 rev=0x06 hdr=0x00 chip3@pci0:17:1: class=0x060000 card=0x00000000 chip=0x00091166 rev=0x06 hdr=0x00 skc0@pci2:6:0: class=0x020000 card=0x98441148 chip=0x43001148 rev=0x11 hdr=0x00 sym0@pci5:4:0: class=0x010000 card=0x60040e11 chip=0x000b1000 rev=0x05 hdr=0x00 sym1@pci5:4:1: class=0x010000 card=0x60040e11 chip=0x000b1000 rev=0x05 hdr=0x00 pcib1@pci5:7:0: class=0x060400 card=0x000000dc chip=0x00261011 rev=0x02 hdr=0x01 pcib3@pci5:9:0: class=0x060400 card=0x000000dc chip=0x00261011 rev=0x02 hdr=0x01 sf0@pci6:4:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 sf1@pci6:5:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 sf2@pci6:6:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 sf3@pci6:7:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 sf4@pci7:4:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 sf5@pci7:5:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 sf6@pci7:6:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 sf7@pci7:7:0: class=0x020000 card=0x00199004 chip=0x69159004 rev=0x03 hdr=0x00 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 21: 9:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (Postfix) with ESMTP id 1E75F37B546 for ; Tue, 1 Aug 2000 21:09:05 -0700 (PDT) (envelope-from dcs@newsguy.com) Received: from newsguy.com (p02-dn03kiryunisiki.gunma.ocn.ne.jp [210.232.224.131]) by peach.ocn.ne.jp (8.9.1a/OCN/) with ESMTP id NAA16338; Wed, 2 Aug 2000 13:08:48 +0900 (JST) Message-ID: <39879ECA.61855D9D@newsguy.com> Date: Wed, 02 Aug 2000 13:08:42 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en,pt-BR,ja MIME-Version: 1.0 To: chris@calldei.com Cc: .@babolo.ru, freebsd-hackers@FreeBSD.ORG Subject: Re: malloc to arrays? References: <200008020046.EAA01875@cicuta.babolo.ru> <20000801201930.G54640@holly.calldei.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Costello wrote: > > On Wednesday, August 02, 2000, .@babolo.ru wrote: > > Sorry I have no other direction to ask this: > > I have declaration: > > > > u_int32_t *(tcpcash_addr[256]); > > > > and want malloc some memory for tcpcash_addr: > > > > tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t * 256 * n); > > > > and have an error: > > > > ra-sum.c:386: cast specifies array type > > *** Error code 1 > > Try this: > > u_int32_t *tcphash_haddr; > tcphash_addr = malloc(sizeof(*tcphash_addr) * 256); > > You shouldn't be casting malloc and I don't see any reason > to use *(foo[nmemb]) syntax. u_int32_t **tcphash_haddr; >From the code, it's a variable-sized array of fixed-sized arrays. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com dcs@freebsd.org capo@white.bunnies.bsdconspiracy.net Satan was once an angel, Gates started by writing a BASIC interpreter. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 21:10:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 51DAF37B709 for ; Tue, 1 Aug 2000 21:10:20 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id GAA13282; Wed, 2 Aug 2000 06:10:11 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Yingfei Dong Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Fine grain timer In-reply-to: Your message of "Tue, 01 Aug 2000 14:05:23 CDT." Date: Wed, 02 Aug 2000 06:10:11 +0200 Message-ID: <13280.965189411@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message , Yingf ei Dong writes: > >hi, folks, > >I am revising a driver for a network interface. I need have a fine-grain >timer (33us). Could anyone tell me how to get it? > You will have to use DELAY(33). -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 21:16: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id DA99937BFDE for ; Tue, 1 Aug 2000 21:15:57 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id GAA13362; Wed, 2 Aug 2000 06:15:41 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: John Cochran Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. In-reply-to: Your message of "Tue, 01 Aug 2000 16:16:00 EDT." <200008012016.QAA34620@smof.fiawol.org> Date: Wed, 02 Aug 2000 06:15:41 +0200 Message-ID: <13360.965189741@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200008012016.QAA34620@smof.fiawol.org>, John Cochran writes: > [snip...] > >> If I generate true random bits it takes 3 timestamps to get one >> bit of randomness: >> >> T1: Time of event 1 >> T2: Time of event 2 >> T3: Time of event 3 >> >> if (T2 - T1 > T3 - T2) >> return 0; >> else if (T2 - T1 < T3 - T2) >> return 1; >> else >> try again. >> >> In my rather crude setup it produces about 5 bits per second [3]. > >It seems to me that if you get about 15 events per second, then you >should be able to produce about 7 to 8 random bits per second instead >of only 5. What you're looking for is the difference (greater or less) >between events. Because of this your T3 value can be considered the T1 >value for the next random bit you generate. No it cannot. If you did that then the probability would skew from bit to bit. If the (t3-t2) was large bit N == 1 and the probability of bit N+1 == 0 is > .5 then. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 21:17:59 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id B6A4D37BFDE for ; Tue, 1 Aug 2000 21:17:54 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id GAA13385; Wed, 2 Aug 2000 06:17:46 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Warner Losh Cc: hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. In-reply-to: Your message of "Tue, 01 Aug 2000 14:41:04 MDT." <200008012041.OAA85828@harmony.village.org> Date: Wed, 02 Aug 2000 06:17:46 +0200 Message-ID: <13383.965189866@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200008012041.OAA85828@harmony.village.org>, Warner Losh writes: >In message <5924.965073661@critter.freebsd.dk> Poul-Henning Kamp writes: >: The earphone output of the geiger counter with a 1kOhm load generates >: a nice TTL level pulse which can be fed onto pin 10 of the parallel >: port and timestamped with the PPS-API device ("device pps"). > >How does the variable, but somewhat predictable, latency of the >parallel port interface interrupt? It cancels out since it is the same for all three events. Of course if you raise the event density so that the interevent interval gets into the same range as the interrupt jitter you have trouble, but with ~15 events per second I'm not even close to that. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Aug 1 22:16:56 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from iclub.nsu.ru (iclub.nsu.ru [193.124.222.66]) by hub.freebsd.org (Postfix) with ESMTP id EF45337BF50 for ; Tue, 1 Aug 2000 22:16:49 -0700 (PDT) (envelope-from fjoe@iclub.nsu.ru) Received: from localhost (fjoe@localhost) by iclub.nsu.ru (8.9.3/8.9.3) with ESMTP id MAA99562; Wed, 2 Aug 2000 12:13:51 +0700 (NSS) (envelope-from fjoe@iclub.nsu.ru) Date: Wed, 2 Aug 2000 12:13:51 +0700 (NSS) From: Max Khon To: "Thomas M. Sommers" Cc: "Michael C. Wu" , freebsd-hackers@FreeBSD.ORG Subject: Re: ANSI C Standard and wchar* In-Reply-To: <39871896.15CADABA@mail.ptd.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, there! On Tue, 1 Aug 2000, Thomas M. Sommers wrote: > > I am working on completing a BSDL'ed implementation > > of wchar* that is *not* broken. However, > > I could not find a free copy of ANSI C library standard. > > > > I was wondering if anyone has an electronic copy of > > ANSI/ISO/IEC 9899-1999 Programming Languages - C > > and the related POSIX documents. (Yes, the document > > only costs $18 on ANSI.org, but I really do not want > > to purchase something that I probably will not use again.) > > > > Also, which part of POSIX governs the correct > > behavior for wchar*? POSIX.1? > > I believe wchar is part of the C standard. You can get the draft > standard for free from the ANSI site. Look for document N869. I think we should consider merging xpg4dl project (like NetBSD did some time ago) /fjoe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 1:22: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id 7E00D37C064 for ; Wed, 2 Aug 2000 01:22:06 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.9.3/8.9.3) with ESMTP id BAA43167 for ; Wed, 2 Aug 2000 01:22:05 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by morpheus.kfu.com with ESMTP (8.9.3//ident-1.0) id BAA15009; Wed, 2 Aug 2000 01:22:05 -0700 (PDT) Message-ID: <3987DA2D.6A2EB8FC@quack.kfu.com> Date: Wed, 02 Aug 2000 01:22:05 -0700 From: Nick Sayer X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Subject: ESS Solo driver almost there (was Re: US$100 prize for adding ESS Audiodrive support to pcm) References: <3985A21A.7CD51B31@quack.kfu.com> <39865E3A.30C99D29@quack.kfu.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Channel 2 works now, and channel 1 is almost working. I ran across this note in the NetBSD source for their Solo driver... /* * Apparently the Audio 1 DMA controller's current address * register can't roll over a 64K address boundary, so we have to * take care of that ourselves. The second channel DMA controller * doesn't have that restriction, however. */ It would make sense that the results I'm seeing with the current driver might be caused by this bug (it sounds like a square wave is slecting between the audio playback and a white noise source when playing back 16 bit audio. The frequency of the square wave is proportional to the data rate at the time). Does anyone know how one might place a restriction on a PCM driver's DMA buffer that it not cross a (physical) 64k boundary? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 1:24:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 0001937C066 for ; Wed, 2 Aug 2000 01:24:19 -0700 (PDT) (envelope-from bright@fw.wintelcom.net) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e727V8406989; Wed, 2 Aug 2000 00:31:08 -0700 (PDT) Date: Wed, 2 Aug 2000 00:31:08 -0700 From: Alfred Perlstein To: Nick Sayer Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: ESS Solo driver almost there (was Re: US$100 prize for adding ESS Audiodrive support to pcm) Message-ID: <20000802003107.U4854@fw.wintelcom.net> References: <3985A21A.7CD51B31@quack.kfu.com> <39865E3A.30C99D29@quack.kfu.com> <3987DA2D.6A2EB8FC@quack.kfu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <3987DA2D.6A2EB8FC@quack.kfu.com>; from nsayer@quack.kfu.com on Wed, Aug 02, 2000 at 01:22:05AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Nick Sayer [000802 00:30] wrote: > Channel 2 works now, and channel 1 is almost working. I ran across this > note in the > NetBSD source for their Solo driver... > > > /* > * Apparently the Audio 1 DMA controller's current address > * register can't roll over a 64K address boundary, so we have > to > * take care of that ourselves. The second channel DMA > controller > * doesn't have that restriction, however. > */ > > It would make sense that the results I'm seeing with the current driver > might be > caused by this bug (it sounds like a square wave is slecting between the > audio > playback and a white noise source when playing back 16 bit audio. The > frequency > of the square wave is proportional to the data rate at the time). > > Does anyone know how one might place a restriction on a PCM driver's DMA > buffer > that it not cross a (physical) 64k boundary? Do you mean allocating it with contigmalloc? -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 2:47: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from shadowmere.student.utwente.nl (wit401305.student.utwente.nl [130.89.236.145]) by hub.freebsd.org (Postfix) with ESMTP id 325E737B529 for ; Wed, 2 Aug 2000 02:47:06 -0700 (PDT) (envelope-from havoc@wit401305.student.utwente.nl) Received: by shadowmere.student.utwente.nl (Postfix, from userid 1002) id EC2761F74; Wed, 2 Aug 2000 11:47:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by shadowmere.student.utwente.nl (Postfix) with ESMTP id D004210B for ; Wed, 2 Aug 2000 11:47:05 +0200 (CEST) Date: Wed, 2 Aug 2000 11:47:04 +0200 (CEST) From: Theo van Klaveren To: freebsd-hackers@freebsd.org Subject: AudioFS for -CURRENT Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I've patched AudioFS to compile on -CURRENT. Untested, though. http://www.xs4all.nl/~havoc/audiofs-current-0.1.tar.gz MD5 (audiofs-current-0.1.tar.gz) = b864657f44741507097f90bea6c98a37 Greetings, Theo van Klaveren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 4:32:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from info.iet.unipi.it (info.iet.unipi.it [131.114.9.184]) by hub.freebsd.org (Postfix) with ESMTP id EBB4E37B5A4 for ; Wed, 2 Aug 2000 04:32:33 -0700 (PDT) (envelope-from luigi@info.iet.unipi.it) Received: (from luigi@localhost) by info.iet.unipi.it (8.9.3/8.9.3) id NAA17343; Wed, 2 Aug 2000 13:33:01 +0200 (CEST) (envelope-from luigi) From: Luigi Rizzo Message-Id: <200008021133.NAA17343@info.iet.unipi.it> Subject: Re: ANNOUNCEMENT: Test version of AudioFS In-Reply-To: from Theo van Klaveren at "Aug 1, 2000 10:15:03 pm" To: t.vanklaveren@student.utwente.nl Date: Wed, 2 Aug 2000 13:33:01 +0200 (CEST) Cc: hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > After many late nights of caffeine, pizza and debugging, I'm glad to > announce a test-version of the Audio Filesystem for FreeBSD. AudioFS is a ... > It should compile (and work) on 4.1-RELEASE. It's untested on CURRENT. > Included in the tarball is the source for the module and a hacked-up > mount_cd9660(8) and required sources from mount(8) for the mounting. Grab > your bits at: wonder it it would not be the case to have a single command "mount_cd" which detects the disk type (cd9660, audio, etc.) and does the right thing. cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) Mobile +39-347-0373137 -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 4:47:16 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from 1upmc-msx4.isdip.upmc.edu (1upmc-msx4.isdbu.upmc.edu [128.147.18.41]) by hub.freebsd.org (Postfix) with ESMTP id E95DE37B583 for ; Wed, 2 Aug 2000 04:47:13 -0700 (PDT) (envelope-from personrp@ccbh.com) Received: by 1upmc-msx4.isdbu.upmc.edu with Internet Mail Service (5.5.2650.10) id ; Wed, 2 Aug 2000 07:47:10 -0400 Message-ID: From: "Person, Roderick" To: "'hackers@freebsd.org'" Subject: FreeBSD 4.0 to 4.1. Date: Wed, 2 Aug 2000 07:46:27 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.10) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I upgraded from 4.0 to 4.1 and when I reboot my old I get the error this error... mount: /dev/ad0s1a on / : specified device does not match mounted device. mounting /etc/fstab filesystems failed, startup aborted. when I type mount it show that /dev/wd0s1a is mount as / but my fstab has... /dev/ad0s1a as / I'm lost? mount -a / won't work so I can't change my fstab to wd0 so can someone help me. Roderick P. Person Programmer II Crystal Administrator (412)454-2616 personrp@ccbh.com OUUU Doggy! - Uncle Jed To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 5: 0: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.rila.bg (earth.rila.bg [212.39.75.31]) by hub.freebsd.org (Postfix) with ESMTP id A96BB37B612 for ; Wed, 2 Aug 2000 04:59:55 -0700 (PDT) (envelope-from mitko@rila.bg) Received: from earth (mitko@localhost [127.0.0.1]) by earth.rila.bg (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with SMTP id OAA13328 for ; Wed, 2 Aug 2000 14:58:21 +0300 From: Dimitar Peikov Organization: Rila Solutions To: hackers@freebsd.org Subject: 4.1 ISO CRC Date: Wed, 2 Aug 2000 14:55:41 +0300 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain MIME-Version: 1.0 Message-Id: <00080214582002.13243@earth> Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Could someone send me CRC code for the 4.1 ISO image or to be available o= n ftp server for downloading? --=20 Dimitar Peikov To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 5:20:29 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from pawn.primelocation.net (pawn.primelocation.net [205.161.238.235]) by hub.freebsd.org (Postfix) with ESMTP id B9B8937B78C for ; Wed, 2 Aug 2000 05:20:22 -0700 (PDT) (envelope-from cdf.lists@fxp.org) Received: by pawn.primelocation.net (Postfix, from userid 1016) id 1F5119B1C; Wed, 2 Aug 2000 08:20:22 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by pawn.primelocation.net (Postfix) with ESMTP id 1434CBA11; Wed, 2 Aug 2000 08:20:22 -0400 (EDT) Date: Wed, 2 Aug 2000 08:20:22 -0400 (EDT) From: "Chris D. Faulhaber" X-Sender: cdf.lists@pawn.primelocation.net To: Dimitar Peikov Cc: hackers@freebsd.org Subject: Re: 4.1 ISO CRC In-Reply-To: <00080214582002.13243@earth> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 2 Aug 2000, Dimitar Peikov wrote: > Hi, > > Could someone send me CRC code for the 4.1 ISO image or to be available on ftp > server for downloading? > Is something wrong with CHECKSUM.MD5 that sits alongside 4.1-install.iso at ftp://ftp.FreeBSD.org/pub/FreeBSD/releases/i386/ISO-IMAGES/ ----- Chris D. Faulhaber - jedgar@fxp.org - jedgar@FreeBSD.org -------------------------------------------------------- FreeBSD: The Power To Serve - http://www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 5:23:15 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from haldjas.folklore.ee (Haldjas.folklore.ee [193.40.6.121]) by hub.freebsd.org (Postfix) with ESMTP id 9998337B7EE for ; Wed, 2 Aug 2000 05:23:09 -0700 (PDT) (envelope-from narvi@haldjas.folklore.ee) Received: from localhost (narvi@localhost) by haldjas.folklore.ee (8.9.3/8.9.3) with SMTP id OAA94604; Wed, 2 Aug 2000 14:22:49 +0200 (EET) (envelope-from narvi@haldjas.folklore.ee) Date: Wed, 2 Aug 2000 14:22:49 +0200 (EET) From: Narvi To: Dimitar Peikov Cc: hackers@FreeBSD.ORG Subject: Re: 4.1 ISO CRC In-Reply-To: <00080214582002.13243@earth> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 2 Aug 2000, Dimitar Peikov wrote: > Hi, > > Could someone send me CRC code for the 4.1 ISO image or to be available on ftp > server for downloading? > What will CRC give you that MD5 checksums (available) doesn't give you? > -- > Dimitar Peikov > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 5:36: 2 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id 6D61037B71E for ; Wed, 2 Aug 2000 05:35:54 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from bagabeedaboo.security.at12.de (dial-195-14-244-23.netcologne.de [195.14.244.23]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id OAA04273; Wed, 2 Aug 2000 14:35:50 +0200 (MET DST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by bagabeedaboo.security.at12.de (8.10.2/8.10.2) with ESMTP id e72CZh202590; Wed, 2 Aug 2000 14:35:43 +0200 (CEST) Date: Wed, 2 Aug 2000 14:35:43 +0200 (CEST) From: Paul Herman To: "Person, Roderick" Cc: "'hackers@freebsd.org'" Subject: Re: FreeBSD 4.0 to 4.1. In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 2 Aug 2000, Person, Roderick wrote: > I upgraded from 4.0 to 4.1 and when I reboot my old I get the error this > error... > mount: /dev/ad0s1a on / : specified device does not match mounted > device. mounting /etc/fstab filesystems failed, startup aborted. > > when I type mount it show that > /dev/wd0s1a is mount as / > > but my fstab has... > /dev/ad0s1a as / What are "currdev" and "rootdev" set to in the boot loader? Between 4.0 and 4.1, wd0 support was finaly dropped. Perhaps when you upgraded, /boot/loader didn't get upgraded? -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 6: 9:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from animaths.com (AMontsouris-101-2-95.abo.wanadoo.fr [193.251.54.95]) by hub.freebsd.org (Postfix) with SMTP id 11DA337B6BD for ; Wed, 2 Aug 2000 06:09:25 -0700 (PDT) (envelope-from nicolas.leonard@animaths.com) Received: (qmail 1076 invoked by uid 31); 2 Aug 2000 13:12:31 -0000 Received: from nicolas.leonard@animaths.com by ns.masa.com with scan4virus-0.53 (uvscan: v4.0.70/v4085. . Clean. Processed in 0.21682 secs); 02/08/2000 15:12:31 Received: from nld.masa.com (HELO nld) (172.16.2.15) by ns.masa.com with SMTP; 2 Aug 2000 13:12:30 -0000 Message-ID: <03e101bffc82$fafbb090$0f0210ac@masa.com> From: "Nicolas Leonard" To: Subject: linuxthread / gdb Date: Wed, 2 Aug 2000 15:04:33 +0200 Organization: =?Windows-1252?Q?Math=E9matiques_Appliqu=E9es_SA?= MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello I would like to know if there is a way to use gdb to debug a multithreaded program which use the linuxthreads thread implementation instead the libc_r. Thanks Leon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 7:52:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id B8D3537B752 for ; Wed, 2 Aug 2000 07:52:20 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id JAA23694; Wed, 2 Aug 2000 09:52:04 -0500 (CDT) (envelope-from dan) Date: Wed, 2 Aug 2000 09:52:04 -0500 From: Dan Nelson To: Luigi Rizzo Cc: t.vanklaveren@student.utwente.nl, hackers@FreeBSD.ORG Subject: Re: ANNOUNCEMENT: Test version of AudioFS Message-ID: <20000802095204.A23538@dan.emsphone.com> References: <200008021133.NAA17343@info.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <200008021133.NAA17343@info.iet.unipi.it>; from "Luigi Rizzo" on Wed Aug 2 13:33:01 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Aug 02), Luigi Rizzo said: > > After many late nights of caffeine, pizza and debugging, I'm glad > > to announce a test-version of the Audio Filesystem for FreeBSD. > ... > > It should compile (and work) on 4.1-RELEASE. It's untested on > > CURRENT. Included in the tarball is the source for the module and a > > hacked-up mount_cd9660(8) and required sources from mount(8) for > > the mounting. Grab your bits at: > > wonder it it would not be the case to have a single command > "mount_cd" which detects the disk type (cd9660, audio, etc.) and does > the right thing. They're not mutually exclusive, though. What about game CDs that have a filesystem on track 1 and music on the other tracks? -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 8: 4:46 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.bsdhome.com (unknown [24.25.2.13]) by hub.freebsd.org (Postfix) with ESMTP id 7EF9B37BA59 for ; Wed, 2 Aug 2000 08:04:41 -0700 (PDT) (envelope-from bsd@bsdhome.com) Received: from vger.bsdhome.com (vger [192.168.220.2]) by smtp.bsdhome.com (8.9.3/8.9.3) with ESMTP id LAA23744; Wed, 2 Aug 2000 11:04:23 -0400 (EDT) (envelope-from bsd@bsdhome.com) Received: from localhost (bsd@localhost) by vger.bsdhome.com (8.9.3/8.9.3) with ESMTP id LAA34548; Wed, 2 Aug 2000 11:04:22 -0400 (EDT) (envelope-from bsd@vger.bsdhome.com) Date: Wed, 2 Aug 2000 11:04:22 -0400 (EDT) From: Brian Dean To: Steve Hocking Cc: hackers@FreeBSD.ORG Subject: Re: Virtual interaces and tunneling stuff over SSH In-Reply-To: <200008012142.QAA05077@penguin.hstn.tensor.pgs.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Aug 2000, Steve Hocking wrote: > Is is possible to use an SSH connection with a tun interface at > either end, such that one could have a VPN? I'm tired of waiting for > people here to make a decision on a package and would like to have a > proof of concept up and running. Extra points for those who can do > the same thing with a Linux box at one end. # Change the following parameters as appropriate user= host= key=/home/bsd/.ssh/vpnkey laddr=192.168.251.2 raddr=192.168.251.1 /usr/local/bin/pty-redir \ /usr/bin/ssh -t -e none -o 'Batchmode yes' \ -i $key -l $user \ $host > $HOME/vpndev /usr/sbin/pppd `cat $HOME/vpndev` debug $laddr:$raddr # wait a few seconds for the connection to establish Your connection will be on ppp0. The remote side should have /usr/sbin/pppd as the login shell (or you can specify in it on the ssh command like, I'm pretty sure). If you use this method, you will need to modify pty-redir slightly so that it's child sleeps for a second or so before execing ssh. This works around a combination of non-standard behaviour in our pty ioctl(), and, I believe, a mis-use of 'isatty()' in ssh. -Brian -- Brian Dean bsd@FreeBSD.org bsd@bsdhome.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 9:15: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mooseriver.com (erie.mooseriver.com [205.166.121.26]) by hub.freebsd.org (Postfix) with ESMTP id 9C54737B68A for ; Wed, 2 Aug 2000 09:15:00 -0700 (PDT) (envelope-from jgrosch@mooseriver.com) Received: (from jgrosch@localhost) by mooseriver.com (8.9.3/8.9.3) id JAA71272 for hackers@freebsd.org; Wed, 2 Aug 2000 09:15:00 -0700 (PDT) (envelope-from jgrosch) Date: Wed, 2 Aug 2000 09:15:00 -0700 From: Josef Grosch To: hackers@freebsd.org Subject: Gigabit ethernet Message-ID: <20000802091500.A71259@mooseriver.com> Reply-To: jgrosch@mooseriver.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Simple question: Which Gigabit ethernet card works best with FreeBSD? Josef -- Josef Grosch | Another day closer to a | FreeBSD 4.1 jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 9:26:14 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 0260837BC20 for ; Wed, 2 Aug 2000 09:26:11 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id KAA34964; Wed, 2 Aug 2000 10:26:07 -0600 (MDT) (envelope-from ken) Date: Wed, 2 Aug 2000 10:26:07 -0600 From: "Kenneth D. Merry" To: Josef Grosch Cc: hackers@FreeBSD.ORG Subject: Re: Gigabit ethernet Message-ID: <20000802102607.A34765@panzer.kdm.org> References: <20000802091500.A71259@mooseriver.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <20000802091500.A71259@mooseriver.com>; from jgrosch@mooseriver.com on Wed, Aug 02, 2000 at 09:15:00AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Aug 02, 2000 at 09:15:00 -0700, Josef Grosch wrote: > > Simple question: > > Which Gigabit ethernet card works best with FreeBSD? Alteon-based boards. This includes Alteon ACEnics, the 3Com 3c985B (which has 1MB SRAM), and the Netgear GA620 (which has 512K SRAM). You can get the Netgear board for about $320, and the copper version of the board for about $310 from www.necxdirect.com. The 3Com board is about $680 from the same place. (You're paying for the extra memory, which can make a difference, albeit not an enormous difference. Also, the Windows drivers for the Netgear boards don't do jumbo frames. I'm not sure whether the 3Com Windows drivers do jumbo frames, but I would guess that they do.) If you want bandwidth numbers, see: http://people.freebsd.org/~ken/zero_copy/ Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 9:27:51 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from houston.matchlogic.com (houston.matchlogic.com [205.216.147.127]) by hub.freebsd.org (Postfix) with ESMTP id 5676837B55E for ; Wed, 2 Aug 2000 09:27:46 -0700 (PDT) (envelope-from crandall@matchlogic.com) Received: by houston.matchlogic.com with Internet Mail Service (5.5.2650.21) id ; Wed, 2 Aug 2000 10:27:45 -0600 Message-ID: <5FE9B713CCCDD311A03400508B8B301301C7892A@bdr-xcln.is.matchlogic.com> From: Charles Randall To: jgrosch@mooseriver.com, hackers@freebsd.org Subject: RE: Gigabit ethernet Date: Wed, 2 Aug 2000 10:27:43 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG These pages should answer all of your questions. http://people.freebsd.org/~wpaul/Alteon/ http://people.freebsd.org/~wpaul/SysKonnect/ I went with the NetGear GA-620 because it was cheap. In retrospect (after talking with Bill Paul), I should have probably gone with the Alteon AceNIC or the 3com 3c985. They both have 1 MB of SRAM compared to the 512 KB in the NetGear. To quote Bill, "The Netgear card is inexpensive for a reason. :)" Charles -----Original Message----- From: Josef Grosch [mailto:jgrosch@mooseriver.com] Sent: Wednesday, August 02, 2000 10:15 AM To: hackers@freebsd.org Subject: Gigabit ethernet Simple question: Which Gigabit ethernet card works best with FreeBSD? Josef -- Josef Grosch | Another day closer to a | FreeBSD 4.1 jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 9:32:14 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from feral.com (feral.com [192.67.166.1]) by hub.freebsd.org (Postfix) with ESMTP id 7D83B37BC84 for ; Wed, 2 Aug 2000 09:32:10 -0700 (PDT) (envelope-from mjacob@feral.com) Received: from semuta.feral.com (semuta [192.67.166.70]) by feral.com (8.9.3/8.9.3) with ESMTP id JAA30573; Wed, 2 Aug 2000 09:32:06 -0700 Date: Wed, 2 Aug 2000 09:30:51 -0700 (PDT) From: Matthew Jacob Reply-To: mjacob@feral.com To: Charles Randall Cc: jgrosch@mooseriver.com, hackers@FreeBSD.ORG Subject: RE: Gigabit ethernet In-Reply-To: <5FE9B713CCCDD311A03400508B8B301301C7892A@bdr-xcln.is.matchlogic.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG And just to get my name in the minutes, the Intel Gig Ethernet card works fairly well, but because it's not well supported by the manufacturer releasing information about it, it may not be the best choice. Performance has been not proven to be good either- partly because I only had rev 1 boards that couldn't do PCI MWI cycles. I've had reports from other folks that have indicating being able to saturate a switch with it, but I have not been able to confirm that myself. FWIW..... On Wed, 2 Aug 2000, Charles Randall wrote: > These pages should answer all of your questions. > > http://people.freebsd.org/~wpaul/Alteon/ > http://people.freebsd.org/~wpaul/SysKonnect/ > > I went with the NetGear GA-620 because it was cheap. > > In retrospect (after talking with Bill Paul), I should have probably gone > with the Alteon AceNIC or the 3com 3c985. They both have 1 MB of SRAM > compared to the 512 KB in the NetGear. To quote Bill, "The Netgear card is > inexpensive for a reason. :)" > > Charles > > > -----Original Message----- > From: Josef Grosch [mailto:jgrosch@mooseriver.com] > Sent: Wednesday, August 02, 2000 10:15 AM > To: hackers@freebsd.org > Subject: Gigabit ethernet > > > > Simple question: > > Which Gigabit ethernet card works best with FreeBSD? > > > Josef > > -- > Josef Grosch | Another day closer to a | FreeBSD 4.1 > jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 10: 9: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from athena.lightningone.net (athena.lightningone.net [12.34.104.3]) by hub.freebsd.org (Postfix) with ESMTP id D334E37BD00 for ; Wed, 2 Aug 2000 10:08:59 -0700 (PDT) (envelope-from john@essenz.com) Received: from localhost (john@localhost) by athena.lightningone.net (8.9.3/8.9.3) with ESMTP id NAA03609; Wed, 2 Aug 2000 13:17:51 -0400 (EDT) (envelope-from john@essenz.com) X-Authentication-Warning: athena.lightningone.net: john owned process doing -bs Date: Wed, 2 Aug 2000 13:17:51 -0400 (EDT) From: Essenz Consulting X-Sender: john@athena.lightningone.net To: "Kenneth D. Merry" Cc: Josef Grosch , hackers@FreeBSD.ORG Subject: Re: Gigabit ethernet In-Reply-To: <20000802102607.A34765@panzer.kdm.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Do both the Netgear GA620 and GA620T work? On Wed, 2 Aug 2000, Kenneth D. Merry wrote: > On Wed, Aug 02, 2000 at 09:15:00 -0700, Josef Grosch wrote: > > > > Simple question: > > > > Which Gigabit ethernet card works best with FreeBSD? > > Alteon-based boards. This includes Alteon ACEnics, the 3Com 3c985B (which > has 1MB SRAM), and the Netgear GA620 (which has 512K SRAM). > > You can get the Netgear board for about $320, and the copper version of the > board for about $310 from www.necxdirect.com. The 3Com board is about $680 > from the same place. (You're paying for the extra memory, which can make a > difference, albeit not an enormous difference. Also, the Windows drivers > for the Netgear boards don't do jumbo frames. I'm not sure whether the > 3Com Windows drivers do jumbo frames, but I would guess that they do.) > > If you want bandwidth numbers, see: > > http://people.freebsd.org/~ken/zero_copy/ > > Ken > -- > Kenneth Merry > ken@kdm.org > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 10:37: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 0416937B83E for ; Wed, 2 Aug 2000 10:37:03 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id LAA35603; Wed, 2 Aug 2000 11:36:45 -0600 (MDT) (envelope-from ken) Date: Wed, 2 Aug 2000 11:36:45 -0600 From: "Kenneth D. Merry" To: Essenz Consulting Cc: Josef Grosch , hackers@FreeBSD.ORG Subject: Re: Gigabit ethernet Message-ID: <20000802113645.B35319@panzer.kdm.org> References: <20000802102607.A34765@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from john@essenz.com on Wed, Aug 02, 2000 at 01:17:51PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Aug 02, 2000 at 13:17:51 -0400, Essenz Consulting wrote: > Do both the Netgear GA620 and GA620T work? > The 620 (i.e. the fiber version of the board) definitely works, I've got two. I would assume that the 620T works, although I don't have any of those. If it is like the ACEnic, it should work with the driver in -current, although you might need to add a new PCI ID to the driver. (The 1000BaseT version of the ACEnic has a different PCI ID.) It won't work with -stable until the new firmware and driver changes get merged in. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 11:32:31 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-42.dsl.snfc21.pacbell.net [63.202.177.42]) by hub.freebsd.org (Postfix) with ESMTP id E0DDA37BE5F for ; Wed, 2 Aug 2000 11:32:28 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id LAA01035; Wed, 2 Aug 2000 11:43:17 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200008021843.LAA01035@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Nick Sayer Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: ESS Solo driver almost there (was Re: US$100 prize for adding ESS Audiodrive support to pcm) In-reply-to: Your message of "Wed, 02 Aug 2000 01:22:05 PDT." <3987DA2D.6A2EB8FC@quack.kfu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 02 Aug 2000 11:43:17 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Does anyone know how one might place a restriction on a PCM driver's DMA > buffer > that it not cross a (physical) 64k boundary? The 'boundary' argument to bus_dma_tag_create() exists for this purpose. When you're setting up the tag before calling bus_dmamem_alloc() to actually allocate the memory, you can stipulate alignment and boundary constraints. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 12:13:36 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cicuta.babolo.ru (babolo.ru [194.58.226.160]) by hub.freebsd.org (Postfix) with ESMTP id C4E1E37B6C5 for ; Wed, 2 Aug 2000 12:13:25 -0700 (PDT) (envelope-from babolo@cicuta.babolo.ru) Received: (from babolo@localhost) by cicuta.babolo.ru (8.9.3/8.9.3) id XAA00739; Wed, 2 Aug 2000 23:13:06 +0400 (MSD) (envelope-from babolo) Message-Id: <200008021913.XAA00739@cicuta.babolo.ru> Subject: Re: malloc to arrays? In-Reply-To: <39879ECA.61855D9D@newsguy.com> from "Daniel C. Sobral" at "Aug 2, 2000 01:08:42 pm" To: "Daniel C. Sobral" Date: Wed, 2 Aug 2000 23:13:05 +0400 (MSD) Cc: chris@calldei.com, freebsd-hackers@FreeBSD.ORG From: .@babolo.ru MIME-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Chris Costello wrote: > > On Wednesday, August 02, 2000, .@babolo.ru wrote: > > > Sorry I have no other direction to ask this: > > > I have declaration: > > > > > > u_int32_t *(tcpcash_addr[256]); > > > > > > and want malloc some memory for tcpcash_addr: > > > > > > tcpcash_addr = (typeof(tcpcash_addr))malloc(u_int32_t * 256 * n); > > > > > > and have an error: > > > > > > ra-sum.c:386: cast specifies array type > > > *** Error code 1 > > > > Try this: > > > > u_int32_t *tcphash_haddr; > > tcphash_addr = malloc(sizeof(*tcphash_addr) * 256); > > > > You shouldn't be casting malloc and I don't see any reason > > to use *(foo[nmemb]) syntax. > > u_int32_t **tcphash_haddr; > > From the code, it's a variable-sized array of fixed-sized arrays. Yes, and whan I use u_int32_t *(tcpcash_addr[256]) declaration, I can use tcpcash_addr[x][y], and I must use tcpcash_addr[x * 256 + y] if declaration is u_int32_t *tcphash_haddr, I cant use if u_int32_t **tcphash_haddr, because of need of array of pointers in addition to array of arrays, and the only clean but not nice way I know is struct tcphash_haddr {u_int32_t tcpcash_addr[256];}; struct tcphash_haddr *tcphash_haddr; but tcphash_haddr[x].tcpcash_addr[y] is not so clear as tcpcash_addr[x][y]... Is the reason to use *(foo[nmemb]) syntax clear enough? And more, in the original code not malloc but mmap... tcpcash_addr = (typeof(tcpcash_addr))mmap( NULL, ... so using of pointers is dirty enougth. and more, assign without a cast impossible: ra-sum.c:385: incompatible types in assignment And even u_int32_t *(tcpcash_addr[256]); tcpcash_addr = (void*)mmap( NULL, ... does not translated -- áÌÅËÓÁÎÄÒ á. âÁÂÁÊÌÏ× mailto://babolo@links.ru/ http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 12:23:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-42.dsl.snfc21.pacbell.net [63.202.177.42]) by hub.freebsd.org (Postfix) with ESMTP id 4397437B926 for ; Wed, 2 Aug 2000 12:23:14 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id MAA01407; Wed, 2 Aug 2000 12:34:09 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200008021934.MAA01407@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 Cc: "Daniel C. Sobral" , chris@calldei.com, freebsd-hackers@FreeBSD.ORG Subject: Re: malloc to arrays? In-reply-to: Your message of "Wed, 02 Aug 2000 23:13:05 +0400." <200008021913.XAA00739@cicuta.babolo.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Aug 2000 12:34:09 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Yes, and whan I use u_int32_t *(tcpcash_addr[256]) declaration, > I can use tcpcash_addr[x][y], and I must use > tcpcash_addr[x * 256 + y] if declaration is u_int32_t *tcphash_haddr, > I cant use if u_int32_t **tcphash_haddr, > because of need of array of pointers in addition to array of arrays, > and the only clean but not nice way I know is > struct tcphash_haddr {u_int32_t tcpcash_addr[256];}; > struct tcphash_haddr *tcphash_haddr; > but tcphash_haddr[x].tcpcash_addr[y] is not so clear > as tcpcash_addr[x][y]... > = > Is the reason to use *(foo[nmemb]) syntax clear enough? It's only "clear" insofar as it's "clear" that the code is terrible. #define TCPCASH_ROWSIZE 256 #define TCPCASH_COLSIZE 256 #define TCPCASH_ADDR(x) ((x) * TCPCASH_ROWSIZE) u_int32_t *tcpcash_addr tcpcash_addr =3D (typeof(tcpcash_addr)) malloc(sizeof(*tcpcash_addr) * = TCPCASH_ROWSIZE * = TCPCASH_COOLSIZE); =2E.. foo =3D tcpcash[TCPCASH_ADDR(x)]; This is fast and unambiguous, as well as keeping all the magic numbers = away from the actual code. Oh, and you spell "cache" like that. "cash" is money. -- = =2E.. every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 12:26:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-177-42.dsl.snfc21.pacbell.net [63.202.177.42]) by hub.freebsd.org (Postfix) with ESMTP id 80D3937B926; Wed, 2 Aug 2000 12:26:14 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id MAA01443; Wed, 2 Aug 2000 12:37:14 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200008021937.MAA01443@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Mike Smith Cc: "Daniel C. Sobral" , chris@calldei.com, freebsd-hackers@freebsd.org Subject: Re: malloc to arrays? In-reply-to: Your message of "Wed, 02 Aug 2000 12:34:09 PDT." <200008021934.MAA01407@mass.osd.bsdi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Date: Wed, 02 Aug 2000 12:37:14 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > It's only "clear" insofar as it's "clear" that the code is terrible. Coffee first, critique second. 8) > #define TCPCASH_ROWSIZE 256 > #define TCPCASH_COLSIZE 256 > #define TCPCASH_ADDR(x) ((x) * TCPCASH_ROWSIZE) #define TCPCASH_ADDR(x,y) ((y) * TCPCASH_ROWSIZE + (x)) -- = =2E.. every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 12:47:25 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from nec.com (mail1.nec.com [143.101.112.2]) by hub.freebsd.org (Postfix) with ESMTP id 5A07E37BCA2; Wed, 2 Aug 2000 12:47:15 -0700 (PDT) (envelope-from jfu@asl.dl.nec.com) Received: from aslws01.asl.dl.nec.com (aslws01.asl.dl.nec.com [143.101.2.1]) by nec.com (8.9.3/8.9.3) with ESMTP id OAA11140; Wed, 2 Aug 2000 14:47:11 -0500 (CDT) Received: by aslws01.asl.dl.nec.com (8.7.3/YDL1.9.1-940729.15) id OAA03360(aslws01.asl.dl.nec.com); Wed, 2 Aug 2000 14:47:09 -0500 (CDT) Received: by aslws111.asl.dl.nec.com (8.7.3/YDL1.9.1-940729.15) id OAA02890(aslws111.asl.dl.nec.com); Wed, 2 Aug 2000 14:47:06 -0500 (CDT) Message-ID: <39887ABA.6B44FFDE@asl.dl.nec.com> Date: Wed, 02 Aug 2000 14:47:06 -0500 From: Jeffrey Fu Organization: ASL X-Mailer: Mozilla 4.72 [en] (X11; U; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: CVSUP References: <3981F565.C6B12FCD@asl.dl.nec.com> Content-Type: text/plain; charset=big5 Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I want to downgrade my FreeBSD 4.0 to FreeBSD 2.2.2 for some reason. I use the CVSup to download the FreeBSD2.2.2 by the following supfile *default tag=RELENG_2_2_2_RELEASE *default host=cvsup7.freebsd.org *default prefix=/usr/temp *default base=/usr *default release=cvs delete use-rel-suffix compress src-all After that, it created a "src" directory under the "/usr/temp" directory. What should I do next? Do I need to do some command like "cvs"? Or I just need to copy the src to /usr/src and do a make world there? Thanks for your help. Jeffrey Fu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 12:55:48 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from panzer.kdm.org (panzer.kdm.org [216.160.178.169]) by hub.freebsd.org (Postfix) with ESMTP id 11DDC37BB63 for ; Wed, 2 Aug 2000 12:55:40 -0700 (PDT) (envelope-from ken@panzer.kdm.org) Received: (from ken@localhost) by panzer.kdm.org (8.9.3/8.9.1) id NAA36764; Wed, 2 Aug 2000 13:55:18 -0600 (MDT) (envelope-from ken) Date: Wed, 2 Aug 2000 13:55:18 -0600 From: "Kenneth D. Merry" To: Essenz Consulting Cc: Josef Grosch , hackers@FreeBSD.ORG Subject: Re: Gigabit ethernet Message-ID: <20000802135518.A36743@panzer.kdm.org> References: <20000802102607.A34765@panzer.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from john@essenz.com on Wed, Aug 02, 2000 at 01:17:51PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Aug 02, 2000 at 13:17:51 -0400, Essenz Consulting wrote: > Do both the Netgear GA620 and GA620T work? > Well, it looks like Bill Paul just added support for the GA620T to the ti(4) driver in -current, so you can use that card with -current now. Ken -- Kenneth Merry ken@kdm.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 13:29:41 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cicuta.babolo.ru (babolo.ru [194.58.226.160]) by hub.freebsd.org (Postfix) with ESMTP id A88D737BDF2 for ; Wed, 2 Aug 2000 13:29:29 -0700 (PDT) (envelope-from babolo@cicuta.babolo.ru) Received: (from babolo@localhost) by cicuta.babolo.ru (8.9.3/8.9.3) id AAA00827 for freebsd-hackers@FreeBSD.ORG; Thu, 3 Aug 2000 00:29:46 +0400 (MSD) (envelope-from babolo) Received: (from babolo@localhost) by cicuta.babolo.ru (8.9.3/8.9.3) id AAA00804; Thu, 3 Aug 2000 00:23:28 +0400 (MSD) (envelope-from babolo) Message-Id: <200008022023.AAA00804@cicuta.babolo.ru> Subject: Re: malloc to arrays? In-Reply-To: <200008021937.MAA01443@mass.osd.bsdi.com> from "Mike Smith" at "Aug 2, 2000 12:37:14 pm" To: "Mike Smith" Date: Thu, 3 Aug 2000 00:23:28 +0400 (MSD) Cc: "Daniel C. Sobral" , chris@calldei.com, freebsd-hackers@FreeBSD.ORG From: .@babolo.ru Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [Charset iso-8859-1 unsupported, filtering to ASCII...] > > It's only "clear" insofar as it's "clear" that the code is terrible. Sorry I know English bad, do you want to say that my code is terrible? > Coffee first, critique second. 8) > > > #define TCPCASH_ROWSIZE 256 > > #define TCPCASH_COLSIZE 256 > > #define TCPCASH_ADDR(x) ((x) * TCPCASH_ROWSIZE) > > #define TCPCASH_ADDR(x,y) ((y) * TCPCASH_ROWSIZE + (x)) Yes I know that I will use tcpcashe_addr(x,y) instead of [x][y], (thank for cash -> cashe) with some macro declarations, but it is something artificial for array of array representation: [0,0][0,1]...[0,255][1,0][1,1]...[1,255]... with statically unknown first index range. -- áÌÅËÓÁÎÄÒ á. âÁÂÁÊÌÏ× mailto://babolo@links.ru/ http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 16:10:58 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (mass.osd.bsdi.com [204.216.28.234]) by hub.freebsd.org (Postfix) with ESMTP id E216937B88F for ; Wed, 2 Aug 2000 16:10:54 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id QAA01219; Wed, 2 Aug 2000 16:21:49 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200008022321.QAA01219@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: hm@kts.org Cc: freebsd-hackers@freebsd.org (FreeBSD Hackers) Subject: Re: 3Com 10/100 Mini PCI Ethernet In-reply-to: Your message of "Tue, 01 Aug 2000 17:33:32 +0200." <20000801153332.AB9251F1C@bert.kts.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 02 Aug 2000 16:21:49 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm looking for docs for the Mini PCI card in the subject, it has the 3Com > part/product no. 3CN3AV1556. It is a 10/100 ethernet 56k modem combo card > built into an HP laptop. Have you tried booting FreeBSD on this system yet? If so, does the 'xl' driver pick it up? If not, can you send the output of 'pciconf -l', as it may just require a new PCI ID in the driver. > Is there any documentation available ? Has anybody experiences with this > card already ? Is this card similar to any other (documented) 3Com card ? > > There are two 3Com chips on the card: > > Parallel Tasking II > Flash (?) > Performance > 3Com 40 607 002 > 0012S 3210 7432 > LUCENT 40 060 73 > > and > > 3Com > AD 1807 JST > ERJ4 1881A-0.6 > 0010 > > I've already called 3Com in Germany and the US, and although the people > on the phone were trying to help, they were not able to help with docs. > > hellmuth > -- > Hellmuth Michaelis hm@kts.org Hamburg, Europe > We all live in a yellow subroutine, yellow subroutine, yellow subroutine ... > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 16:41:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 8F33D37B5F4; Wed, 2 Aug 2000 16:41:19 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id TAA97946; Wed, 2 Aug 2000 19:41:17 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 2 Aug 2000 19:41:17 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: ports@FreeBSD.org Cc: freebsd-hackers@FreeBSD.org Subject: vmware changes result in nasty bridging mess Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG bridge_in-- reading table bridge_in-- reading table bridge_in-- reading table bridge_in-- reading table bridge_in-- reading table bridge_in-- reading table bridge_in-- reading table bridge_in-- reading table bridge_in-- reading table ... The vmware2 port now seems to enable bridging by default, and generate a kernel message for every ethernet packet sent. Bridging on by default may have nasty side effects for multi-interface machines (especially security side effects). I haven't read the code (I admit) but I finding the current behavior both (a) irritating (messages) and (b) worrying (unpredicted bridging with potential side effects). Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 17:38:34 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mta5.rcsntx.swbell.net (mta5.rcsntx.swbell.net [151.164.30.29]) by hub.freebsd.org (Postfix) with ESMTP id BD3BC37B515; Wed, 2 Aug 2000 17:38:31 -0700 (PDT) (envelope-from chris@holly.calldei.com) Received: from holly.calldei.com ([208.191.149.190]) by mta5.rcsntx.swbell.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with ESMTP id <0FYO009AZWVJDR@mta5.rcsntx.swbell.net>; Wed, 2 Aug 2000 19:18:56 -0500 (CDT) Received: (from chris@localhost) by holly.calldei.com (8.9.3/8.9.3) id TAA80412; Wed, 02 Aug 2000 19:20:21 -0500 (CDT envelope-from chris) Date: Wed, 02 Aug 2000 19:20:20 -0500 From: Chris Costello Subject: Re: malloc to arrays? In-reply-to: <200008021934.MAA01407@mass.osd.bsdi.com> To: Mike Smith Cc: "Daniel C. Sobral" , freebsd-hackers@FreeBSD.ORG Reply-To: chris@calldei.com Message-id: <20000802192020.A386@holly.calldei.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii User-Agent: Mutt/0.96.4i References: <200008021913.XAA00739@cicuta.babolo.ru> <200008021934.MAA01407@mass.osd.bsdi.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wednesday, August 02, 2000, Mike Smith wrote: > tcpcash_addr = (typeof(tcpcash_addr)) > malloc(sizeof(*tcpcash_addr) * > TCPCASH_ROWSIZE * > TCPCASH_COOLSIZE); Just as a note on coding style, this will only hide warnings caused by not including . malloc(3) returns void * and does not need to be cast. -- |Chris Costello |Last one out, turn off the computer! `------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 18:17:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (mass.osd.bsdi.com [204.216.28.234]) by hub.freebsd.org (Postfix) with ESMTP id 88E0837B540; Wed, 2 Aug 2000 18:17:48 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.9.3/8.9.3) with ESMTP id SAA02978; Wed, 2 Aug 2000 18:28:18 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200008030128.SAA02978@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Andrew Gallatin Cc: hackers@freebsd.org, hardware@freebsd.org Subject: Re: Intel 840 Chipset Discontinue In-reply-to: Your message of "Sat, 22 Jul 2000 10:22:08 EDT." <14713.42924.81417.759293@grasshopper.cs.duke.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 02 Aug 2000 18:28:18 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Do you know of anybody building 1U or 2U rackmount systems for a > reasonable price ($2000/node or less) around these motherboards? It > looks like most integrators are using the L44GX & its broken 32-bit > 66MHz slot which runs at the wrong voltage (Myrinet claims they're > violating the PCI spec). BSDi/Telenet will have 1U and 2U systems based on either the Asus or Tyan dual socket-370 boards very shortly. If you want to talk more about these, let me know. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Aug 2 23:21:19 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from worker.thw-IP.NET (worker.thw-IP.NET [192.76.134.35]) by hub.freebsd.org (Postfix) with ESMTP id E8E8E37B717; Wed, 2 Aug 2000 23:21:14 -0700 (PDT) (envelope-from kts.org!hm@worker.thw-IP.NET) Received: from localhost (2786 bytes) by worker.thw-IP.NET via rmail with P:stdio/R:inet_mx_hosts/T:inet_zone_smtp (sender: ) (ident using unix) id for ; Thu, 3 Aug 2000 08:21:13 +0200 (CEST) (Smail-3.2.0.111 2000-Feb-17 #12 built 2000-May-16) Received: from bert.kts.org (bert.kts.org [194.55.156.2]) by ernie.kts.org (Postfix) with ESMTP id A32C052B91; Thu, 3 Aug 2000 08:21:06 +0200 (CEST) Received: by bert.kts.org (Postfix, from userid 100) id 18BD31F1C; Thu, 3 Aug 2000 08:21:02 +0200 (CEST) Subject: Re: 3Com 10/100 Mini PCI Ethernet In-Reply-To: <200008022321.QAA01219@mass.osd.bsdi.com> from Mike Smith at "Aug 2, 2000 4:21:49 pm" To: msmith@FreeBSD.ORG (Mike Smith) Date: Thu, 3 Aug 2000 08:21:02 +0200 (CEST) Cc: freebsd-hackers@FreeBSD.ORG Organization: Kitchen Table Systems Reply-To: hm@kts.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1827 Message-Id: <20000803062102.18BD31F1C@bert.kts.org> From: hm@kts.org (Hellmuth Michaelis) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Mike Smith wrote: > > I'm looking for docs for the Mini PCI card in the subject, it has the 3Com > > part/product no. 3CN3AV1556. It is a 10/100 ethernet 56k modem combo card > > built into an HP laptop. > > Have you tried booting FreeBSD on this system yet? If so, does the 'xl' > driver pick it up? If not, can you send the output of 'pciconf -l', as > it may just require a new PCI ID in the driver. Yes, i first tried the ep driver, then the xl and then the vx by adding the chip id (0x6055) to the probe routine. I think the ep driver (which does some funny things to the eeprom) managed to overwrite part of the eeprom so that the xl driver failed to recognize the card. I then tried to add it to the vx driver (at that point i think i started to know what i did) which failed too, so i wrote a subroutine to display the eeprom contents which (because i did not understood the the OP and SubOP command fields before running it) finally erased the eeprom contents to 0xffff in all locations (which now prevents the card from being initialized by the BIOS - has anybody an idea how to revive such a PCI card ????). Anyway, i paid my "Lehrgeld" (money for learning ?) and i'm currently waiting for an exchange card. Someone from the Linux-camp wrote a vortex diagnostics program which displays the eeprom and register contents of those cards, i ported that in the meantime to be at least able to get a snapshot of the good eeprom contents. Do i understand you right in that you would do a fresh start with this card using the xl driver ? I'm a bit concerned about again accidentially overwriting the eeprom, its an _expensive_ card ... ;-) hellmuth -- Hellmuth Michaelis hm@kts.org Hamburg, Europe We all live in a yellow subroutine, yellow subroutine, yellow subroutine ... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 0:12:13 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from jarrow.dev.nanoteq.co.za (jarrow.dev.nanoteq.co.za [196.7.114.30]) by hub.freebsd.org (Postfix) with ESMTP id 703CF37B526; Thu, 3 Aug 2000 00:11:55 -0700 (PDT) (envelope-from rbezuide@jarrow.dev.nanoteq.co.za) Received: (from rbezuide@localhost) by jarrow.dev.nanoteq.co.za (8.9.3/8.9.3) id JAA03493; Thu, 3 Aug 2000 09:10:06 +0200 (SAST) (envelope-from rbezuide) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: Date: Thu, 03 Aug 2000 09:10:06 +0200 (SAST) Reply-To: rbezuide@oskar.nanoteq.co.za From: Reinier Bezuidenhout To: Robert Watson Subject: RE: vmware changes result in nasty bridging mess Cc: freebsd-hackers@FreeBSD.ORG, ports@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm using vmware2 in a different way ... I do not have bridging enabled in the kernel. I'm using the host method although I do not have a "legal" subnet on the other side. I've ment to contact the port maintainer so he can add this to the Hints.FreeBSD file. I've configured 10.1.1.1 for the vmnet device, and 10.1.1.2 in windows. I use ipfw and natd to translate the info ... this works like a charm. I'm using the latest port of vmware and I don't see those messages, probably because I do not have BRIDGING enabled in the kernel. For thos interested .. here is the natd and ipfw rules. natd -u -a ipfw a 3 divert natd all from 10.1.1.2 to any out via vr0 ipfw a 4 divert natd all from any to in via vr0 I'm even accessing the NT servers :), browsing bla bla bla :) Regards Reinier On 02-Aug-00 Robert Watson wrote: > > bridge_in-- reading table > bridge_in-- reading table > bridge_in-- reading table > bridge_in-- reading table > bridge_in-- reading table > bridge_in-- reading table > bridge_in-- reading table > bridge_in-- reading table > bridge_in-- reading table > ... > > The vmware2 port now seems to enable bridging by default, and generate a > kernel message for every ethernet packet sent. Bridging on by default may > have nasty side effects for multi-interface machines (especially security > side effects). I haven't read the code (I admit) but I finding the > current behavior both (a) irritating (messages) and (b) worrying > (unpredicted bridging with potential side effects). > > Robert N M Watson > > robert@fledge.watson.org http://www.watson.org/~robert/ > PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 > TIS Labs at Network Associates, Safeport Network Services > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message ################################################################### # # # R.N. Bezuidenhout NetSeq Firewall # # rbezuide@oskar.nanoteq.co.za http://www.nanoteq.co.za # # # ################################################################### ---------------------------------- Date: 03-Aug-00 Time: 09:04:34 This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 0:57: 1 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.sirius.com (mail1.sirius.com [205.134.253.131]) by hub.freebsd.org (Postfix) with ESMTP id 532D437B566 for ; Thu, 3 Aug 2000 00:56:39 -0700 (PDT) (envelope-from eps@star1.sirius.com) Received: from star1.sirius.com ([207.44.191.2]) by mail1.sirius.com (8.9.3/8.9.1) with SMTP id AAA62717 for ; Thu, 3 Aug 2000 00:53:36 -0700 (PDT) Date: Thu, 3 Aug 2000 00:53:36 -0700 (PDT) Message-Id: <200008030753.AAA62717@mail1.sirius.com> From: eps@sirius.com (Eric P. Scott) Subject: fixing longstanding cp -Rp misbehavior To: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I want to make an "exact" copy of a directory tree (as far as practical). I was hoping cp -Rp would do the trick (assuming I have no hard-linked files), but it fails on several counts: 1) modification times on directories get smashed 2) UNIX (er, "local") domain sockets aren't copied 3) unless run as root, can't copy _from_ write-protected directories This context diff (against /usr/src/bin/cp/ from 3.5.1-RELEASE) is intended as a starting point for discussion; if you can come up with something more elegant, by all means commit that instead. -=EPS=- ------- *** cp.c.orig Sat Dec 11 12:33:31 1999 --- cp.c *************** *** 271,278 **** warnx("%s: directory causes a cycle", curr->fts_path); badcp = rval = 1; continue; - case FTS_DP: /* Ignore, continue. */ - continue; } /* --- 271,276 ---- *************** *** 330,335 **** --- 328,339 ---- STRIP_TRAILING_SLASH(to); } + if (curr->fts_info == FTS_DP) { + if (pflag && setfile(curr->fts_statp, 0)) + badcp = rval = 1; + continue; + } + /* Not an error but need to remember it happened */ if (stat(to.p_path, &to_stat) == -1) dne = 1; *************** *** 388,398 **** * umask; arguably wrong, but it's been that way * forever. */ ! if (pflag && setfile(curr->fts_statp, 0)) ! badcp = rval = 1; ! else if (dne) ! (void)chmod(to.p_path, ! curr->fts_statp->st_mode); break; case S_IFBLK: case S_IFCHR: --- 392,399 ---- * umask; arguably wrong, but it's been that way * forever. */ ! if (!pflag && dne) (void)chmod(to.p_path, ! curr->fts_statp->st_mode); break; case S_IFBLK: case S_IFCHR: *************** *** 407,412 **** --- 408,422 ---- case S_IFIFO: if (Rflag) { if (copy_fifo(curr->fts_statp, !dne)) + badcp = rval = 1; + } else { + if (copy_file(curr, dne)) + badcp = rval = 1; + } + break; + case S_IFSOCK: + if (Rflag) { + if (copy_socket(curr->fts_statp, !dne)) badcp = rval = 1; } else { if (copy_file(curr, dne)) *** extern.h.orig Sun Aug 29 07:11:34 1999 --- extern.h *************** *** 50,55 **** --- 50,56 ---- int copy_fifo __P((struct stat *, int)); int copy_file __P((FTSENT *, int)); int copy_link __P((FTSENT *, int)); + int copy_socket __P((struct stat *, int)); int copy_special __P((struct stat *, int)); int setfile __P((struct stat *, int)); void usage __P((void)); *** utils.c.orig Sat Dec 11 12:33:31 1999 --- utils.c *************** *** 44,49 **** --- 44,51 ---- #ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED #include #endif + #include + #include #include #include *************** *** 51,56 **** --- 53,59 ---- #include #include #include + #include #include #include "extern.h" *************** *** 255,260 **** --- 258,302 ---- warn("mknod: %s", to.p_path); return (1); } + return (pflag ? setfile(from_stat, 0) : 0); + } + + int + copy_socket(from_stat, exists) + struct stat *from_stat; + int exists; + { + register int s, n; + union { + char data[256]; + struct sockaddr_un un; + } u; + + if (exists && unlink(to.p_path)) { + warn("unlink: %s", to.p_path); + return (1); + } + if ((s = socket(AF_UNIX, SOCK_DGRAM, 0)) < 0) { + warn("socket: %s", to.p_path); + return (1); + } + bzero((void *)&u, sizeof u); + u.un.sun_len = 255; + u.un.sun_family = AF_UNIX; + if ((n = strlen(to.p_path)) > + sizeof u - (sizeof u.un - sizeof u.un.sun_path)) { + warn("bind: %s", to.p_path); + (void)close(s); + return (1); + } + (void)strcpy(u.un.sun_path, to.p_path); + if (bind(s, (struct sockaddr *)&u.un, + sizeof u.un - sizeof u.un.sun_path + n)) { + warn("bind: %s", to.p_path); + (void)close(s); + return (1); + } + (void)close(s); return (pflag ? setfile(from_stat, 0) : 0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 1:22:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail1.sirius.com (mail1.sirius.com [205.134.253.131]) by hub.freebsd.org (Postfix) with ESMTP id 0FB9537B7E1 for ; Thu, 3 Aug 2000 01:22:47 -0700 (PDT) (envelope-from eps@star1.sirius.com) Received: from star1.sirius.com ([207.44.191.2]) by mail1.sirius.com (8.9.3/8.9.1) with SMTP id BAA73704 for ; Thu, 3 Aug 2000 01:22:34 -0700 (PDT) Date: Thu, 3 Aug 2000 01:22:34 -0700 (PDT) Message-Id: <200008030822.BAA73704@mail1.sirius.com> From: eps@sirius.com (Eric P. Scott) Subject: Re: fixing longstanding cp -Rp misbehavior To: freebsd-hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Obviously, it's past my bedtime. I meant >=, not > + if ((n = strlen(to.p_path)) >= + sizeof u - (sizeof u.un - sizeof u.un.sun_path)) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 3:25:38 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from viper.dmpriest.com (viper.dmpriest.com [195.188.177.3]) by hub.freebsd.org (Postfix) with ESMTP id C3F7637B72C for ; Thu, 3 Aug 2000 03:25:31 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca.tdx.co.uk [195.188.177.195]) by viper.dmpriest.com (8.9.3/8.9.3/Kp) with ESMTP id LAA45990 for ; Thu, 3 Aug 2000 11:25:27 +0100 (BST) Message-ID: <39894897.79E14398@tdx.co.uk> Date: Thu, 03 Aug 2000 11:25:27 +0100 From: Karl Pielorz Organization: TDX - The Digital eXchange X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: hackers@freebsd.org Subject: LD_PRELOAD odities / Documentation? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi All, I'm working on some code that runs fine on Linux, but not under FreeBSD... Trying to port the code is proving to be a pain... The code is a 'wrapper' / 'shim' that's meant to be LD_PRELOAD'ed before an executable... I've gotten everything to compile, and the LD_PRELOAD works, but a lot of syscall's from the wrapper library fail either with bizare messages such as "malloc(): recursive call", or just die horibly (segmentation faults, and all sorts). Are there any problems from making syscalls / library calls from within an LD_PRELOAD'ed library? - Is anything like this documented anywhere? Most things seem to work, but calling even simply library routines such as 'strcat', 'sprintf' etc. die in flames... The wrapper I'm porting wraps a number of functions from libc (e.g. 'open', 'opendir' etc.) Any pointers would be greatefuly received, unfortunately this all works under Linux (I'm not bashing anyone on the head with that, I'm far more interested in getting it working under FreeBSD)... Thanks, -Karl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 3:30:26 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from cain.gsoft.com.au (genesi.lnk.telstra.net [139.130.136.161]) by hub.freebsd.org (Postfix) with ESMTP id C1EA137B8D3 for ; Thu, 3 Aug 2000 03:30:18 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (doconnor@cain [203.38.152.97]) by cain.gsoft.com.au (8.8.8/8.8.8) with ESMTP id UAA08371; Thu, 3 Aug 2000 20:00:04 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <39894897.79E14398@tdx.co.uk> Date: Thu, 03 Aug 2000 20:00:04 +0930 (CST) From: "Daniel O'Connor" To: Karl Pielorz Subject: RE: LD_PRELOAD odities / Documentation? Cc: hackers@freebsd.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 03-Aug-00 Karl Pielorz wrote: > Any pointers would be greatefuly received, unfortunately this all works > under > Linux (I'm not bashing anyone on the head with that, I'm far more interested > in getting it working under FreeBSD)... I think the problem is that your calls are being resolved to your own library first, so that is the routine being called. AFAIK you have to build a set of pointers to the original (ie libc) routines. I know esound work with its esddsp program, so you could look there for some tips. --- 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 4:10:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from viper.dmpriest.com (viper.dmpriest.com [195.188.177.3]) by hub.freebsd.org (Postfix) with ESMTP id BF4F837B643 for ; Thu, 3 Aug 2000 04:10:19 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca.tdx.co.uk [195.188.177.195]) by viper.dmpriest.com (8.9.3/8.9.3/Kp) with ESMTP id MAA46501; Thu, 3 Aug 2000 12:10:07 +0100 (BST) Message-ID: <3989530F.F3D89C6F@tdx.co.uk> Date: Thu, 03 Aug 2000 12:10:07 +0100 From: Karl Pielorz Organization: TDX - The Digital eXchange X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: "Daniel O'Connor" Cc: hackers@freebsd.org Subject: Re: LD_PRELOAD odities / Documentation? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Daniel O'Connor wrote: > > On 03-Aug-00 Karl Pielorz wrote: > > Any pointers would be greatefuly received, unfortunately this all works > > under > > Linux (I'm not bashing anyone on the head with that, I'm far more interested > > in getting it working under FreeBSD)... > > I think the problem is that your calls are being resolved to your own library > first, so that is the routine being called. > > AFAIK you have to build a set of pointers to the original (ie libc) routines. I > know esound work with its esddsp program, so you could look there for some tips. Thanks for the reply! Sorry, I should have posted more details - I'll have a look at the reference you mentioned... re. Calling library Routines: One of the ways I've tried implementing syscalls is to dlopen() the correct library, and fetch the routines address from there (using dlsym) - and calling the routine that way... This doesn't seem to help though :( -Karl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 4:31:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from axl.ops.uunet.co.za (axl.ops.uunet.co.za [196.31.2.163]) by hub.freebsd.org (Postfix) with ESMTP id 2F3BB37B5EC for ; Thu, 3 Aug 2000 04:31:07 -0700 (PDT) (envelope-from sheldonh@axl.ops.uunet.co.za) Received: from sheldonh (helo=axl.ops.uunet.co.za) by axl.ops.uunet.co.za with local-esmtp (Exim 3.16 #1) id 13KJDL-000Jyj-00 for hackers@FreeBSD.org; Thu, 03 Aug 2000 13:31:03 +0200 From: Sheldon Hearn To: hackers@FreeBSD.org Subject: Berkeley make: evaluations inside for loops Date: Thu, 03 Aug 2000 13:31:03 +0200 Message-ID: <76800.965302263@axl.ops.uunet.co.za> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi folks, Can anyone explain to me why the first Makefile works and yet the second Makefile doesn't? The second Makefile produces the following error messages on ``make test'' | "Makefile", line 1: Malformed conditional (widget == ${BAZ}) | "Makefile", line 1: Need an operator | "Makefile", line 3: if-less endif | "Makefile", line 3: Need an operator | "Makefile", line 9: Need an operator | make: fatal errors encountered -- cannot continue #Makefile1: FOO= widget BAZ= widget BAR= .if ${FOO} == ${BAZ} BAR= equal .endif test: echo BAR=${BAR} #Makefile2: BAZ= widget .for FOO in ${BAZ} .if ${FOO} == ${BAZ} BAR= equal .endif .endfor test: echo BAR=${BAR} Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 4:52:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns1.sunesi.net (ns1.sunesi.net [196.15.192.194]) by hub.freebsd.org (Postfix) with ESMTP id 800BB37B8EA for ; Thu, 3 Aug 2000 04:52:44 -0700 (PDT) (envelope-from nbm@sunesi.net) Received: from nbm by ns1.sunesi.net with local (Exim 3.03 #1) id 13KJYH-000CAJ-00; Thu, 03 Aug 2000 13:52:41 +0200 Date: Thu, 3 Aug 2000 13:52:41 +0200 From: Neil Blakey-Milner To: Sheldon Hearn Cc: hackers@FreeBSD.org Subject: Re: Berkeley make: evaluations inside for loops Message-ID: <20000803135241.A46679@mithrandr.moria.org> References: <76800.965302263@axl.ops.uunet.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <76800.965302263@axl.ops.uunet.co.za>; from sheldonh@uunet.co.za on Thu, Aug 03, 2000 at 01:31:03PM +0200 Organization: Sunesi Clinical Systems X-Operating-System: FreeBSD 3.3-RELEASE i386 X-URL: http://rucus.ru.ac.za/~nbm/ Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu 2000-08-03 (13:31), Sheldon Hearn wrote: > Can anyone explain to me why the first Makefile works and yet the second > Makefile doesn't? The second Makefile produces the following error > messages on ``make test'' > > | "Makefile", line 1: Malformed conditional (widget == ${BAZ}) > | "Makefile", line 1: Need an operator > | "Makefile", line 3: if-less endif > | "Makefile", line 3: Need an operator > | "Makefile", line 9: Need an operator > | make: fatal errors encountered -- cannot continue > > #Makefile1: > FOO= widget > BAZ= widget > BAR= > .if ${FOO} == ${BAZ} > BAR= equal > .endif > > test: > echo BAR=${BAR} > > #Makefile2: > BAZ= widget > .for FOO in ${BAZ} > .if ${FOO} == ${BAZ} > BAR= equal > .endif > .endfor > > test: > echo BAR=${BAR} Makefile2 expands to: BAZ= widget .if widget == ${BAZ} BAR= equal .endif And '.if' only takes "expressions", which can be comparisons (ie, "!=", "=="), which in turn must have a variable on the left hand side. (don't ask me why) Therefore, you should use: .if ${BAZ} == ${FOO} instead. Neil -- Neil Blakey-Milner Sunesi Clinical Systems nbm@mithrandr.moria.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 8:14:56 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from anchor-post-33.mail.demon.net (anchor-post-33.mail.demon.net [194.217.242.91]) by hub.freebsd.org (Postfix) with ESMTP id D157737B601 for ; Thu, 3 Aug 2000 08:14:51 -0700 (PDT) (envelope-from laurence@herculeez.com) Received: from herculeez.demon.co.uk ([158.152.217.198] helo=herculeez.com) by anchor-post-33.mail.demon.net with esmtp (Exim 2.12 #1) id 13KMhr-0004vr-0X for freebsd-hackers@freebsd.org; Thu, 3 Aug 2000 16:14:47 +0100 Message-ID: <39898D03.6185C6C3@herculeez.com> Date: Thu, 03 Aug 2000 16:17:23 +0100 From: Laurence Barry Organization: Herculeez X-Mailer: Mozilla 4.72 [en] (X11; I; FreeBSD 4.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: FreeBSD Hackers Subject: nfiles Content-Type: multipart/alternative; boundary="------------C15E94179D76E87B217B0C82" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --------------C15E94179D76E87B217B0C82 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit Sure this is a simple one ... I need to determine the total number of files open on a system. The only way I can think to do this is a sysctl() call with mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file structure that is returned. There must be a simpler way. Laurence Barry -- laurence@herculeez.com --------------C15E94179D76E87B217B0C82 Content-Type: text/html; charset=iso-8859-15 Content-Transfer-Encoding: 7bit
Sure this is a simple one ... 

I need to determine the total number of files open on a system. The only way I can think to do this is a sysctl() call with
mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file structure that is returned. There must be a simpler
way. 

  Laurence Barry 

-- 
  laurence@herculeez.com
  --------------C15E94179D76E87B217B0C82-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 8:58:26 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ockle.dev.nanoteq.co.za (ockle.dev.nanoteq.co.za [196.7.114.28]) by hub.freebsd.org (Postfix) with ESMTP id 029DD37B581; Thu, 3 Aug 2000 08:58:17 -0700 (PDT) (envelope-from johan@ockle.dev.nanoteq.co.za) Received: (from johan@localhost) by ockle.dev.nanoteq.co.za (8.9.3/8.9.3) id SAA35919; Thu, 3 Aug 2000 18:07:57 +0200 (SAST) (envelope-from johan) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Thu, 03 Aug 2000 18:07:57 +0200 (SAST) Organization: Nanoteq From: Johan Kruger To: freebsd-hackers@FreeBSD.ORG, FreeBSD-Questions Subject: sysinstall commands on custom CD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Problem using sysinstall command line version ?? I am running the following BSD ver ( release i built , maybe something does not work, although i doubt it , i am using it finely ) FreeBSD ockle.dev.nanoteq.co.za 5.0-20000724-SNAP FreeBSD 5.0-20000724-SNAP #5: Thu Jul 27 14:47:59 SAST 2000 johan@ockle.dev.nanoteq.co.za:/usr/src/sys/compile/GENERIC i386 Made a MFS Boot image for CD-Installation. Crunched 72 Megs of utils into 1.67 Megs, ( thanx to crunch ) Anyhow, i mount the CD with live filesystem on /cdrom on MFS filesystem, and now runned /stand/sysinstall ( obviously after a chroot to /cdrom ) Works perfectly in interactive mode. I am trying to use on command line as follows: try 1: /stand/sysinstall disk=ad0 partition=all diskPartitionWrite it doesn't work so i tried try 2: /stand/sysinstall disk=ad0 partition=all noConfirm=yes diskPartitionWrite it doesn't work so i tried try 3: echo aw | /stand/sysinstall disk=ad0 partition=all diskPartitionWrite it does a Select All and Write, BUT sometimes goes bonkers try x: still doesnt work, so compiled sysinstall with LOAD_CONFIG_FILE=/tmp/jjk.conf mounted a stiffy ( ufs ) on /tmp with my jjk.conf on it. sysinstall does not even try to load a file ??? My sysinstall manpage specked that i should put LOAD_CONFIG_FILE=whatever into the Makefile ..... does not use it Want to use the command line version of sysinstall to partition disks, but can't get it to work. Am i doing something Wrong ?? ---------------------------------- E-Mail: Johan Kruger Date: 03-Aug-00 Time: 17:53:03 This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 8:58:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by hub.freebsd.org (Postfix) with ESMTP id 0410837B581; Thu, 3 Aug 2000 08:58:45 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (robert@fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.9.3/8.9.3) with SMTP id LAA28204; Thu, 3 Aug 2000 11:58:17 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Thu, 3 Aug 2000 11:58:17 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: rbezuide@oskar.nanoteq.co.za Cc: freebsd-hackers@FreeBSD.ORG, ports@FreeBSD.ORG Subject: RE: vmware changes result in nasty bridging mess In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 3 Aug 2000, Reinier Bezuidenhout wrote: > I'm using vmware2 in a different way ... I do not have bridging enabled > in the kernel. I'm using the host method although I do not have > a "legal" subnet on the other side. That was the configuration I was using also, until I upgraded my version of -STABLE, and as a result had to upgrade my vmware port. The results thus far have been a little worrying, and I'd like to see them fixed before too many people get hurt. Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 9:15:19 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from winconx.com (ns1.winconx.net [208.60.80.2]) by hub.freebsd.org (Postfix) with SMTP id 94A9F37B6BC for ; Thu, 3 Aug 2000 09:15:04 -0700 (PDT) (envelope-from travis@winconx.com) Received: (qmail 59970 invoked from network); 3 Aug 2000 16:15:06 -0000 Received: from dhcp01.winconx.net (HELO travis) (208.60.80.32) by ns1.winconx.net with SMTP; 3 Aug 2000 16:15:06 -0000 Message-ID: <034b01bffd64$97343040$20503cd0@travis> From: "Travis Leuthauser" To: , Subject: 3Com 3C905b-TX Date: Thu, 3 Aug 2000 11:05:06 -0500 Organization: DDS Group of Companies 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.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm posting this to questions and hackers in the hopes that someone can help me. Here's my scenario: I have a news server running 4.1 Stable cvsup'd 2 days ago. Running 3.X I had no problems. Had to update to 4 because my 45 G Ultra66 IDE drives were being very stupid under 3.X. After the update, I noticed that the most I could get out of a binary download from the news server on my 100Mbit network was about 25k/s. After a few hours of looking over everything and testing an ftp from one of the clients (running an ftp server). I determined that it was just my news service performing slowly. I was able to ftp a 700M file that averaged 800k/s. Mysteriously my news service picked back up to its normal speed. When I checked the news server, this is the message that was displayed on my terminal: xl0: transmission error: 90 xl0: tx underrun, increasing start threshold to 180 bytes. Since then, it has popped up a few more times I think now the threshold is up to 420. I looked at the xl driver and found where it sets the initial value: sc->xl_tx_thresh = XL_MIN_FRAMELEN; What if I were to change it to say: sc->xl_tx_thresh = 540; What effect would that have on my system, good or bad? Is there an optimum value to set? Should I just change out the NIC or is there another card holding up the bus? If I wanted to know what the current value of the buffer is, is there a command that would show me? If I change the value, do I need to just recompile my kernel, or is there something else I need to do? I saw a few posts from 99 about the topic, but no decisive answer was given. I am going to list the specifics of all the hardware in the box as well as the major software/ports running on it. Any help is greatly appreciated. Thanks, Travis Leuthauser Network Administrator WinConX Online, Inc. Hardware Specs: Pentium !!! 500Mhz 512M RAM Gigabyte GA-6VXE+ w/ VIA Apollo Pro AGPSet AOpen PG128 AGP Video 3Com 3c905b-tx NIC (has two IP's: one for incoming news - one to feed news out to users) Adaptec 2940U2W 4 IBM 9G UW SCSI Drives Western Digital 45G (using Ultra66) IBM 45G (using Ultra66) Western Digital 27G AOpen 40x CDRom Software: named ssh1 qmail 1.03 w/ tcpserver big brother 1.4c dnews 5.4f5 for FreeBSD 4 dmesg output: Copyright (c) 1992-2000 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.1-STABLE #2: Tue Aug 1 16:29:24 CDT 2000 root@news.winconx.com:/usr/src/sys/compile/NEWS Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 501139586 Hz CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x673 Stepping = 3 Features=0x387f9ff real memory = 536805376 (524224K bytes) avail memory = 518823936 (506664K bytes) Preloaded elf kernel "kernel" at 0xc031e000. Pentium Pro MTRR support enabled md0: Malloc disk npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 pci1: at 0.0 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xe000-0xe00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 pci0: at 7.2 irq 11 xl0: <3Com 3c905B-TX Fast Etherlink XL> port 0xe800-0xe87f mem 0xe0801000-0xe080107f irq 10 at device 8.0 on pci0 xl0: Ethernet address: 00:50:04:22:cc:4f miibus0: on xl0 xlphy0: <3Com internal media interface> on miibus0 xlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ahc0: port 0xec00-0xecff mem 0xe0800000-0xe0800fff irq 12 at device 9.0 on pci0 ahc0: aic7890/91 Wide Channel A, SCSI Id=7, 16/255 SCBs pcib1: on motherboard pci2: on pcib1 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A sio1 at port 0x2f8-0x2ff irq 3 on isa0 sio1: type 16550A ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppi0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ad0: 42934MB [87233/16/63] at ata0-master using UDMA66 ad1: 43979MB [89355/16/63] at ata0-slave using UDMA66 ata1-master: DMA limitted to UDMA33, non-ATA66 compliant cable ad2: 25941MB [52707/16/63] at ata1-master using UDMA33 acd0: CDROM at ata1-slave using PIO4 Waiting 5 seconds for SCSI devices to settle Mounting root from ufs:/dev/da0s1a da1 at ahc0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled da1: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) da2 at ahc0 bus 0 target 2 lun 0 da2: Fixed Direct Access SCSI-3 device da2: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled da2: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) da4 at ahc0 bus 0 target 4 lun 0 da4: Fixed Direct Access SCSI-3 device da4: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled da4: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) da3 at ahc0 bus 0 target 3 lun 0 da3: Fixed Direct Access SCSI-3 device da3: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled da3: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-2 device da0: 40.000MB/s transfers (20.000MHz, offset 15, 16bit), Tagged Queueing Enabled da0: 4357MB (8925000 512 byte sectors: 255H 63S/T 555C) pid 1037 (dmulti), uid 8: exited on signal 11 (core dumped) xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 120 bytes xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 180 bytes xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 240 bytes xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 300 bytes xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 360 bytes xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 420 bytes To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 10:23:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from 200-191-157-120-as.acessonet.com.br (200-191-157-120-as.acessonet.com.br [200.191.157.120]) by hub.freebsd.org (Postfix) with ESMTP id 4F98B37B5B9 for ; Thu, 3 Aug 2000 10:23:03 -0700 (PDT) (envelope-from lioux@uol.com.br) Received: (qmail 31116 invoked by uid 1001); 3 Aug 2000 16:40:00 -0000 From: "Mario Sergio Fujikawa Ferreira" Date: Thu, 3 Aug 2000 13:39:38 -0300 To: freebsd-hackers@freebsd.org Subject: ADSL pci modem drivers? Message-ID: <20000803133938.A2672@Fedaykin.here> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Does anyone have any information on ADSL modems under FreeBSD? Driver progress and stuff? Any PCI cards at all? Mainly the 3com homeconnect. http://www.3com.com/client/pcd/homeconnect/dsl/pci.html Regards, Mario Ferreira To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 10:43: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mailer.syr.edu (mailer.syr.edu [128.230.18.29]) by hub.freebsd.org (Postfix) with ESMTP id 0666837B65E for ; Thu, 3 Aug 2000 10:43:07 -0700 (PDT) (envelope-from cmsedore@mailbox.syr.edu) Received: from rodan.syr.edu by mailer.syr.edu (LSMTP for Windows NT v1.1b) with SMTP id <0.004F95BF@mailer.syr.edu>; Thu, 3 Aug 2000 13:43:05 -0400 Received: from localhost (cmsedore@localhost) by rodan.syr.edu (8.8.7/8.8.7) with ESMTP id NAA02520; Thu, 3 Aug 2000 13:43:05 -0400 (EDT) X-Authentication-Warning: rodan.syr.edu: cmsedore owned process doing -bs Date: Thu, 3 Aug 2000 13:43:05 -0400 (EDT) From: Christopher Sedore X-Sender: cmsedore@rodan.syr.edu To: Kevin Mills Cc: FreeBSD Hackers Subject: Re: aio_waitcomplete? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Could you send the source code to me? I'll take a look if it is simple. -Chris On Tue, 1 Aug 2000, Kevin Mills wrote: > > In order to get familiar with aio_waitcomplete() and friends, I wrote a > simple echo server and have run into problems. If I attempt to hit my echo > server with more than a few clients (> 3 or 4), I get a bunch of ENOTCONN > errors from aio_waitcomplete() and on the client end I get an ECONNRESET and > a 'Broken pipe'. To ensure I wasn't completely crazy, I wrote the same echo > server using poll() and non-blocking sockets and it works without error. > > Is aio_waitcomplete() ready for prime-time? Should this work? > > I'm using 4.0-stable from 7/13/2000: > > 4.0-STABLE FreeBSD 4.0-STABLE #2: Thu Jul 13 16:07:07 PDT 2000 > > Thanks for any assistance! > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 13: 8: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.uninet.ee (ns.uninet.ee [194.204.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 1CA3437B6AE for ; Thu, 3 Aug 2000 13:08:00 -0700 (PDT) (envelope-from taavi@uninet.ee) Received: by ns.uninet.ee (Postfix, from userid 1001) id 2699725827; Thu, 3 Aug 2000 22:07:58 +0200 (EET) Received: from localhost (localhost [127.0.0.1]) by ns.uninet.ee (Postfix) with SMTP id 209F514A78; Thu, 3 Aug 2000 22:07:58 +0200 (EET) Date: Thu, 3 Aug 2000 22:07:57 +0200 (EET) From: Taavi Talvik Reply-To: Taavi Talvik To: Mario Sergio Fujikawa Ferreira Cc: freebsd-hackers@freebsd.org Subject: Re: ADSL pci modem drivers? In-Reply-To: <20000803133938.A2672@Fedaykin.here> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 3 Aug 2000, Mario Sergio Fujikawa Ferreira wrote: > Does anyone have any information on ADSL > modems under FreeBSD? Driver progress and stuff? > Any PCI cards at all? Mainly the 3com > homeconnect. > http://www.3com.com/client/pcd/homeconnect/dsl/pci.html Typically DSL cards require lot of support from original hardware manufacturer (especially DMT chipsets firmware). As far as I know thee is no publicly released drivers neither for freebsd or linux (There is unreleased driver for efficient 3060 and alctel speedtouch usb for linux). If you have good contact with manufacturers wiling to help with documentation, firmware etc.. etc.. Then you'll probably find volunteers for driver writing for freebsd:) best regards, taavi ----------------------------------------------------------- Taavi Talvik | Internet: taavi@uninet.ee Unineti Andmeside AS | phone: +372 6405150 Ravala pst. 10 | fax: +372 6405151 Tallinn 10143, Estonia | To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 13:55:30 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 1A02937B7CC for ; Thu, 3 Aug 2000 13:54:33 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id PAA03523; Thu, 3 Aug 2000 15:54:24 -0500 (CDT) (envelope-from dan) Date: Thu, 3 Aug 2000 15:54:23 -0500 From: Dan Nelson To: Laurence Barry Cc: FreeBSD Hackers Subject: Re: nfiles Message-ID: <20000803155423.A3001@dan.emsphone.com> References: <39898D03.6185C6C3@herculeez.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <39898D03.6185C6C3@herculeez.com>; from "Laurence Barry" on Thu Aug 3 16:17:23 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Aug 03), Laurence Barry said: > I need to determine the total number of files open on a system. The > only way I can think to do this is a sysctl() call with > mib[0]=CTL_KERN and mib[1]=KERN_FILE, then trawl through the file > structure that is returned. There must be a simpler way. Figure out how pstat -T does it: $ pstat -T 294/3240 files 0M/1173M swap space -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 14:25:29 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from aaz.links.ru (aaz.links.ru [193.125.152.37]) by hub.freebsd.org (Postfix) with ESMTP id 3500337B588; Thu, 3 Aug 2000 14:25:22 -0700 (PDT) (envelope-from babolo@links.ru) Received: (from babolo@localhost) by aaz.links.ru (8.9.3/8.9.3) id BAA04719; Fri, 4 Aug 2000 01:24:58 +0400 (MSD) Message-Id: <200008032124.BAA04719@aaz.links.ru> Subject: Re: malloc to arrays? In-Reply-To: <20000802192020.A386@holly.calldei.com> from "Chris Costello" at "Aug 2, 0 07:20:20 pm" To: chris@calldei.com Date: Fri, 4 Aug 2000 01:24:58 +0400 (MSD) Cc: msmith@FreeBSD.ORG, dcs@newsguy.com, freebsd-hackers@FreeBSD.ORG From: "Aleksandr A.Babaylov" MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Chris Costello writes: > On Wednesday, August 02, 2000, Mike Smith wrote: > > tcpcash_addr = (typeof(tcpcash_addr)) > > malloc(sizeof(*tcpcash_addr) * > > TCPCASH_ROWSIZE * > > TCPCASH_COOLSIZE); > Just as a note on coding style, this will only hide warnings > caused by not including . malloc(3) returns void * and > does not need to be cast. So there is an error in gcc in base system? See: 1cicuta~/w/ra-tools(6)>cat tmp.c #include int main() { int *(i[100]); i = malloc(400); } 0cicuta~/w/ra-tools(7)>cc tmp.c tmp.c: In function `main': tmp.c:6: incompatible types in assignment 1cicuta~/w/ra-tools(8)>uname -a FreeBSD cicuta.babolo.ru 4.0-STABLE FreeBSD 4.0-STABLE #0: Fri Jun 9 14:01:52 MSD 2000 babolo@cicuta.babolo.ru:/tmp/obj/usr/src/sys/cicuta i386 0cicuta~/w/ra-tools(9)> -- @BABOLO http://links.ru/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 14:26:42 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from alcanet.com.au (mail.alcanet.com.au [203.62.196.10]) by hub.freebsd.org (Postfix) with SMTP id 7B0EF37B8C1 for ; Thu, 3 Aug 2000 14:26:33 -0700 (PDT) (envelope-from jeremyp@pc0640.alcatel.com.au) Received: by border.alcanet.com.au id <115830>; Fri, 4 Aug 2000 07:25:48 +1000 Date: Fri, 04 Aug 2000 05:40:30 +1000 From: Peter Jeremy Subject: Re: How to make *real* random bits. To: hackers@FreeBSD.ORG Cc: phk@critter.freebsd.dk Message-Id: <00Aug4.072548est.115830@border.alcanet.com.au> MIME-version: 1.0 X-Mailer: Mutt 1.0i Content-type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 02 Aug 2000 06:15:41 +0200, Poul-Henning Kamp wrote: >>> If I generate true random bits it takes 3 timestamps to get one >>> bit of randomness: +--------+------+-------+------+-----+ T1 T2 T3 T4 T5 T6 >>> if (T2 - T1 > T3 - T2) >>> return 0; >>> else if (T2 - T1 < T3 - T2) >>> return 1; >>> else >>> try again. ... >> Because of this your T3 value can be considered the T1 >>value for the next random bit you generate. > >No it cannot. If you did that then the probability would skew from >bit to bit. If the (t3-t2) was large bit N == 1 and the probability >of bit N+1 == 0 is > .5 then. I don't follow. Taking the extended timeline above, and shortening your algorithm above to (T2-T1)<>(T3-T2): Since the decay intervals are random[1], there is no correlation between (T2-T1), (T3-T2), (T4-T3), etc. I can see that it wouldn't be safe to use (T2-T1)<>(T3-T2) and (T3-T2)<>(T4-T3) since this would introduce a (T2-T1)<>(T4-T3) correlation in adjacent bits. I don't see how there is any correlation between (T2-T1)<>(T3-T2) and (T4-T3)<>(T5-T4). This effectively gives you 1 bit of randomness for every two time intervals. (Though, ignoring geek value, I suspect a reverse-biased transistor BE junction would be an easier source of randomness). [1] Subject to slight corrections as a result of the half-lives of the elements in the decay chain. Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 14:39:35 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.yourfit.com (28.wxfr1.xdsl.nauticom.net [209.195.150.61]) by hub.freebsd.org (Postfix) with ESMTP id 94D2137B85B for ; Thu, 3 Aug 2000 14:39:32 -0700 (PDT) (envelope-from behanna@zbzoom.net) Received: from armani.yourfit.com (armani.yourfit.com [192.168.1.120]) by mail.yourfit.com (8.9.3/8.9.3) with ESMTP id RAA05958 for ; Thu, 3 Aug 2000 17:39:31 -0400 Date: Thu, 3 Aug 2000 17:39:31 -0400 (Eastern Daylight Time) From: Chris BeHanna Reply-To: Chris BeHanna To: hackers@freebsd.org Subject: Re: malloc to arrays? In-Reply-To: <200008032124.BAA04719@aaz.links.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 4 Aug 2000, Aleksandr A.Babaylov wrote: > Chris Costello writes: > > On Wednesday, August 02, 2000, Mike Smith wrote: > > > tcpcash_addr = (typeof(tcpcash_addr)) > > > malloc(sizeof(*tcpcash_addr) * > > > TCPCASH_ROWSIZE * > > > TCPCASH_COOLSIZE); > > Just as a note on coding style, this will only hide warnings > > caused by not including . malloc(3) returns void * and > > does not need to be cast. > So there is an error in gcc in base system? > See: > > 1cicuta~/w/ra-tools(6)>cat tmp.c > #include > > int main() > { int *(i[100]); > > i = malloc(400); > } > 0cicuta~/w/ra-tools(7)>cc tmp.c > tmp.c: In function `main': > tmp.c:6: incompatible types in assignment > 1cicuta~/w/ra-tools(8)>uname -a > FreeBSD cicuta.babolo.ru 4.0-STABLE FreeBSD 4.0-STABLE #0: Fri Jun 9 14:01:52 MSD 2000 babolo@cicuta.babolo.ru:/tmp/obj/usr/src/sys/cicuta i386 > 0cicuta~/w/ra-tools(9)> There's no error at all. You've declared i to be an array of 100 pointers to int, but then you've tried to assign a pointer to that array, and gcc quite naturally complains. -- Chris BeHanna Software Engineer (at yourfit.com) behanna@zbzoom.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 14:51:44 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.uni-bielefeld.de (mail2.uni-bielefeld.de [129.70.4.90]) by hub.freebsd.org (Postfix) with ESMTP id 8704437B86A for ; Thu, 3 Aug 2000 14:51:40 -0700 (PDT) (envelope-from bfischer@Techfak.uni-bielefeld.de) Received: from frolic.no-support.loc (ppp36-6.hrz.uni-bielefeld.de [129.70.36.6]) by mail.uni-bielefeld.de (Sun Internet Mail Server sims.4.0.2000.05.17.04.13.p6) with ESMTP id <0FYQ002OTKPZPF@mail.uni-bielefeld.de> for hackers@FreeBSD.ORG; Thu, 3 Aug 2000 23:51:38 +0200 (MET DST) Received: (from bjoern@localhost) by frolic.no-support.loc (8.9.3/8.9.3) id XAA00739; Thu, 03 Aug 2000 23:49:52 +0200 (CEST envelope-from bjoern) Date: Thu, 03 Aug 2000 23:49:51 +0200 From: Bjoern Fischer Subject: Re: LD_PRELOAD odities / Documentation? In-reply-to: <39894897.79E14398@tdx.co.uk>; from kpielorz@tdx.co.uk on Thu, Aug 03, 2000 at 11:25:27AM +0100 To: Karl Pielorz Cc: hackers@FreeBSD.ORG Message-id: <20000803234951.B267@frolic.no-support.loc> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-disposition: inline Content-transfer-encoding: 7BIT User-Agent: Mutt/1.2.4i References: <39894897.79E14398@tdx.co.uk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Aug 03, 2000 at 11:25:27AM +0100, Karl Pielorz wrote: > The code is a 'wrapper' / 'shim' that's meant to be LD_PRELOAD'ed before an > executable... I've gotten everything to compile, and the LD_PRELOAD works, but > a lot of syscall's from the wrapper library fail either with bizare messages > such as "malloc(): recursive call", or just die horibly (segmentation faults, > and all sorts). To wrap libc functions you have to use dlsym() with the special handle RTLD_NEXT to get the next incarnation of your function. E.g. you want to wrap fchmod(), so write your own fchmod() and after you `corrected' the params you may have to call the `real' fchmod(). You will get this with dlsym(RTLD_NEXT, "fchmod"). Bjoern -- -----BEGIN GEEK CODE BLOCK----- GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+ K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+ ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 15:21:21 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hand.dotat.at (sfo-gw.covalent.net [207.44.198.62]) by hub.freebsd.org (Postfix) with ESMTP id 35EA037B88C for ; Thu, 3 Aug 2000 15:21:17 -0700 (PDT) (envelope-from fanf@dotat.at) Received: from fanf by hand.dotat.at with local (Exim 3.15 #3) id 13KTMF-0008GN-00; Thu, 03 Aug 2000 22:20:55 +0000 Date: Thu, 3 Aug 2000 22:20:55 +0000 From: Tony Finch To: Karl Pielorz Cc: Daniel O'Connor , hackers@freebsd.org Subject: Re: LD_PRELOAD odities / Documentation? Message-ID: <20000803222055.H24886@hand.dotat.at> References: <3989530F.F3D89C6F@tdx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <3989530F.F3D89C6F@tdx.co.uk> Organization: Covalent Technologies, Inc Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Karl Pielorz wrote: > >One of the ways I've tried implementing syscalls is to dlopen() the correct >library, and fetch the routines address from there (using dlsym) - and calling >the routine that way... > >This doesn't seem to help though :( I've made this work across Solaris, Linux, and FreeBSD. Can you post your code? Its hard to debug a vague description. Tony. -- en oeccget g mtcaa f.a.n.finch v spdlkishrhtewe y dot@dotat.at eatp o v eiti i d. fanf@covalent.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Aug 3 16:35:30 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from tisch.mail.mindspring.net (tisch.mail.mindspring.net [207.69.200.157]) by hub.freebsd.org (Postfix) with ESMTP id 95EC137B8EE; Thu, 3 Aug 2000 16:35:24 -0700 (PDT) (envelope-from vsilyaev@mindspring.com) Received: from jupiter.delta.ny.us (nyf-ny4-23.ix.netcom.com [198.211.16.215]) by tisch.mail.mindspring.net (8.9.3/8.8.5) with ESMTP id TAA01465; Thu, 3 Aug 2000 19:35:21 -0400 (EDT) Received: (from vsilyaev@localhost) by jupiter.delta.ny.us (8.9.3/8.9.3) id TAA01440; Thu, 3 Aug 2000 19:35:19 -0400 (EDT) (envelope-from vsilyaev) Date: Thu, 3 Aug 2000 19:35:19 -0400 (EDT) From: "Vladimir N. Silyaev" Message-Id: <200008032335.TAA01440@jupiter.delta.ny.us> To: rwatson@FreeBSD.ORG Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: vmware changes result in nasty bridging mess In-Reply-To: References: Reply-To: vns@delta.odessa.ua Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In muc.lists.freebsd.hackers, you wrote: > >bridge_in-- reading table >bridge_in-- reading table >bridge_in-- reading table >bridge_in-- reading table >bridge_in-- reading table >bridge_in-- reading table >bridge_in-- reading table >bridge_in-- reading table >bridge_in-- reading table >... > >The vmware2 port now seems to enable bridging by default, and generate a >kernel message for every ethernet packet sent. FreeBSD bridge code doesn't have any vmware related modifications. Only one modification what was impelmented, it's a special sysctl net.link.ether.bridge_refresh, which provied support for loadable ethernets drivers. The rest of bridging code didn't touched at all. >Bridging on by default may >have nasty side effects for multi-interface machines (especially security >side effects). It's several ways to work around about that: - compile kernel without bridging support. - remove bridge starting code vmware.sh file in rc.d directory. - create special bridge cluster with one real interface and with one emulated >I haven't read the code (I admit) but I finding the >current behavior both (a) irritating (messages) and (b) worrying >(unpredicted bridging with potential side effects). I don't know I never seen such effect. Could you to do more testing about that. -- Vladimir To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Aug 4 1:45:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from karon.dynas.se (karon.dynas.se [192.71.43.4]) by hub.freebsd.org (Postfix) with SMTP id 55A5E37B967 for ; Fri, 4 Aug 2000 01:45:47 -0700 (PDT) (envelope-from mikko@dynas.se) Received: (qmail 45387 invoked from network); 4 Aug 2000 08:45:44 -0000 Received: from spirit.sto.dynas.se (HELO spirit.dynas.se) (172.16.1.10) by karon.sto.dynas.se with SMTP; 4 Aug 2000 08:45:44 -0000 Received: (qmail 4912 invoked from network); 4 Aug 2000 08:46:00 -0000 Received: from m2.dynas.se (172.16.1.168) by spirit.dynas.se with SMTP; 4 Aug 2000 08:46:00 -0000 Received: (from mikko@localhost) by m2.dynas.se (8.9.3/8.9.3) id KAA31739; Fri, 4 Aug 2000 10:46:46 +0200 (CEST) (envelope-from mikko) Date: Fri, 4 Aug 2000 10:46:46 +0200 (CEST) From: Mikko Tyolajarvi Message-Id: <200008040846.KAA31739@m2.dynas.se> To: kpielorz@tdx.co.uk Cc: freebsd-hackers@freebsd.org Subject: Re: LD_PRELOAD odities / Documentation? Newsgroups: local.freebsd-hackers References: <39894897.79E14398@tdx.co.uk> X-Newsreader: NN version 6.5.6 (NOV) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In local.freebsd-hackers you write: >Hi All, >I'm working on some code that runs fine on Linux, but not under FreeBSD... >Trying to port the code is proving to be a pain... >The code is a 'wrapper' / 'shim' that's meant to be LD_PRELOAD'ed before an >executable... I've gotten everything to compile, and the LD_PRELOAD works, but >a lot of syscall's from the wrapper library fail either with bizare messages >such as "malloc(): recursive call", or just die horibly (segmentation faults, >and all sorts). [...] >Any pointers would be greatefuly received, unfortunately this all works under >Linux (I'm not bashing anyone on the head with that, I'm far more interested >in getting it working under FreeBSD)... It used to work -- and still does on -STABLE at least. The only problem I've encountered was when the preloaded lib did not contain a dependency for libc. After adding "-lc" to the link command, things started working. $.02, /Mikko -- Mikko Työläjärvi_______________________________________mikko@rsasecurity.com RSA Security To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Aug 4 5:52:35 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from viper.dmpriest.com (viper.dmpriest.com [195.188.177.3]) by hub.freebsd.org (Postfix) with ESMTP id 670C137BAA7 for ; Fri, 4 Aug 2000 05:52:29 -0700 (PDT) (envelope-from kpielorz@tdx.co.uk) Received: from tdx.co.uk (lorca.tdx.co.uk [195.188.177.195]) by viper.dmpriest.com (8.9.3/8.9.3/Kp) with ESMTP id NAA63570; Fri, 4 Aug 2000 13:52:11 +0100 (BST) Message-ID: <398ABC7B.8322EE58@tdx.co.uk> Date: Fri, 04 Aug 2000 13:52:11 +0100 From: Karl Pielorz Organization: The Digital eXchange X-Mailer: Mozilla 4.73 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Bjoern Fischer Cc: hackers@FreeBSD.ORG Subject: Re: LD_PRELOAD odities / Documentation? References: <39894897.79E14398@tdx.co.uk> <20000803234951.B267@frolic.no-support.loc> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Bjoern Fischer wrote: > To wrap libc functions you have to use dlsym() with the special > handle RTLD_NEXT to get the next incarnation of your function. > E.g. you want to wrap fchmod(), so write your own fchmod() and > after you `corrected' the params you may have to call the `real' > fchmod(). You will get this with dlsym(RTLD_NEXT, "fchmod"). Thanks! - That fixed it... Linux doesn't have such a handle (and seems to work fine without it)... I hadn't strayed enough through the man page for dlsym to notice the difference... Regards, Karl To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Aug 4 11:42: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (Postfix) with ESMTP id 6014837BAC4 for ; Fri, 4 Aug 2000 11:42:04 -0700 (PDT) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.3/8.9.3) with ESMTP id LAA15407; Fri, 4 Aug 2000 11:41:44 -0700 (PDT) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.3/8.9.1) id LAA24529; Fri, 4 Aug 2000 11:41:44 -0700 (PDT) (envelope-from jdp@polstra.com) Date: Fri, 4 Aug 2000 11:41:44 -0700 (PDT) Message-Id: <200008041841.LAA24529@vashon.polstra.com> To: hackers@freebsd.org Reply-To: hackers@freebsd.org Cc: kpielorz@tdx.co.uk Subject: Re: LD_PRELOAD odities / Documentation? In-Reply-To: <3989530F.F3D89C6F@tdx.co.uk> References: <3989530F.F3D89C6F@tdx.co.uk> Organization: Polstra & Co., Seattle, WA Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <3989530F.F3D89C6F@tdx.co.uk>, Karl Pielorz wrote: > One of the ways I've tried implementing syscalls is to dlopen() the > correct library, and fetch the routines address from there (using > dlsym) - and calling the routine that way... > > This doesn't seem to help though :( It works if you do it right. It's hard to tell what's going wrong in your case because we just don't have enough details. If you think it is a bug then please put together a nice small easy-to-use test case and send it (as a shar file) inside a problem report that you file using the send-pr command. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Disappointment is a good sign of basic intelligence." -- Chögyam Trungpa To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Aug 4 16:40:37 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.lppi.com (relay.lppi.com [208.49.169.66]) by hub.freebsd.org (Postfix) with ESMTP id 625A137BB94; Fri, 4 Aug 2000 16:40:18 -0700 (PDT) (envelope-from lew@lppi.com) Date: Fri, 4 Aug 2000 16:40:16 -0700 (PDT) Message-Id: <200008042340.QAA14005@relay.lppi.com> From: Lew payne To: freebsd-questions@freeBSD.org Cc: freebsd-hackers@freeBSD.org Subject: EIDE Problems - fsbn read error MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver 1.23 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG One of our new FreeBSD 3.5-REL systems is periodically locking up, due to an apparent disk error. These are brand-new IBM 7200 RPM 60 GB ATA/66 EIDE drives, in a ccd configuration as follows: Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/da0s1a 79359 20357 52654 28% / /dev/da0s1f 8025325 1023010 6360289 14% /usr /dev/da0s1e 119055 3401 106130 3% /var procfs 4 4 0 100% /proc /dev/ccd0c 239854317 127105965 93560007 58% /spool cat /etc/ccd.conf # ccd ileave flags component devices ccd0 128 none /dev/wd0s1e /dev/wd2s1e /dev/wd1s1e /dev/wd3s1e and the error message (which repeats infinitely) is: Jul 31 01:02:06 news /kernel: wd0s1e: soft error reading fsbn 81057521 of 81057520-81057551 (wd0s1 bn 81057521; cn 64331 tn 7 sn 20) (status 58 error 1) Jul 31 01:02:16 news /kernel: wd0s1e: soft error reading fsbn 81057521 of 81057520-81057551 (wd0s1 bn 81057521; cn 64331 tn 7 sn 20) (status 58 error 1) The system just gets stuck doing this seek over and over again, at which point it becomes impossible to log in via the console, or do anything else (I/O bound). Is there a trick to getting soft-recovery working with EIDE devices? Better yet, how can I get rid of this problem without getting rid of the new drives? It seems that it sits there trying to recover from this "soft error" but never does, and never maps it in the replacement block table as "bad". Is there a way to "reformat" the drive (low level, perhaps) so that it maps out the appropriate replacement table for the darn fsbn? Or how about a way of adding bad blocks to it? Any help in solving this would be appreciated !! Regards, Lew Payne --- Lew Payne Publishing, Inc. Dunn & Bradstreet listed 994 San Antonio Road DUNS # 055037852 Palo Alto, CA 94303 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Aug 4 21:30:46 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from lorax.ubergeeks.com (lorax.ubergeeks.com [209.145.74.241]) by hub.freebsd.org (Postfix) with ESMTP id A517537B8F9 for ; Fri, 4 Aug 2000 21:30:41 -0700 (PDT) (envelope-from adrian@ubergeeks.com) Received: from localhost (adrian@localhost) by lorax.ubergeeks.com (8.9.3/8.8.8) with ESMTP id AAA41148; Sat, 5 Aug 2000 00:28:23 -0400 (EDT) (envelope-from adrian@ubergeeks.com) Date: Sat, 5 Aug 2000 00:28:23 -0400 (EDT) From: Adrian Filipi-Martin Reply-To: Adrian Filipi-Martin To: Dan Nelson Cc: Luigi Rizzo , t.vanklaveren@student.utwente.nl, hackers@FreeBSD.ORG Subject: Re: ANNOUNCEMENT: Test version of AudioFS In-Reply-To: <20000802095204.A23538@dan.emsphone.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 2 Aug 2000, Dan Nelson wrote: > In the last episode (Aug 02), Luigi Rizzo said: > > > After many late nights of caffeine, pizza and debugging, I'm glad > > > to announce a test-version of the Audio Filesystem for FreeBSD. > > ... > > > It should compile (and work) on 4.1-RELEASE. It's untested on > > > CURRENT. Included in the tarball is the source for the module and a > > > hacked-up mount_cd9660(8) and required sources from mount(8) for > > > the mounting. Grab your bits at: > > > > wonder it it would not be the case to have a single command > > "mount_cd" which detects the disk type (cd9660, audio, etc.) and does > > the right thing. > > They're not mutually exclusive, though. What about game CDs that have > a filesystem on track 1 and music on the other tracks? And "CD-EXTRA" CD's that have audio first with the last track being data. Adrian -- [ adrian@ubergeeks.com -- Ubergeeks Consulting -- http://www.ubergeeks.com/ ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 4: 7:11 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from freebsd.dk (freebsd.dk [212.242.42.178]) by hub.freebsd.org (Postfix) with ESMTP id 1387337B69E; Sat, 5 Aug 2000 04:07:06 -0700 (PDT) (envelope-from sos@freebsd.dk) Received: (from sos@localhost) by freebsd.dk (8.9.3/8.9.1) id NAA59699; Sat, 5 Aug 2000 13:07:00 +0200 (CEST) (envelope-from sos) From: Soren Schmidt Message-Id: <200008051107.NAA59699@freebsd.dk> Subject: Re: EIDE Problems - fsbn read error In-Reply-To: <200008042340.QAA14005@relay.lppi.com> from Lew payne at "Aug 4, 2000 04:40:16 pm" To: lew@lppi.com (Lew payne) Date: Sat, 5 Aug 2000 13:07:00 +0200 (CEST) Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG It seems Lew payne wrote: > > One of our new FreeBSD 3.5-REL systems is periodically locking up, > due to an apparent disk error. These are brand-new IBM 7200 RPM > 60 GB ATA/66 EIDE drives, in a ccd configuration as follows: > > Filesystem 1K-blocks Used Avail Capacity Mounted on > /dev/da0s1a 79359 20357 52654 28% / > /dev/da0s1f 8025325 1023010 6360289 14% /usr > /dev/da0s1e 119055 3401 106130 3% /var > procfs 4 4 0 100% /proc > /dev/ccd0c 239854317 127105965 93560007 58% /spool > > cat /etc/ccd.conf > # ccd ileave flags component devices > ccd0 128 none /dev/wd0s1e /dev/wd2s1e /dev/wd1s1e /dev/wd3s1e > > and the error message (which repeats infinitely) is: > > Jul 31 01:02:06 news /kernel: wd0s1e: soft error reading fsbn 81057521 > of 81057520-81057551 (wd0s1 bn 81057521; cn 64331 tn 7 sn 20) > (status 58 error 1) > Jul 31 01:02:16 news /kernel: wd0s1e: soft error reading fsbn 81057521 > of 81057520-81057551 (wd0s1 bn 81057521; cn 64331 tn 7 sn 20) > (status 58 error 1) > > The system just gets stuck doing this seek over and over again, at > which point it becomes impossible to log in via the console, or do > anything else (I/O bound). > > Is there a trick to getting soft-recovery working with EIDE devices? > Better yet, how can I get rid of this problem without getting rid of > the new drives? It seems that it sits there trying to recover from > this "soft error" but never does, and never maps it in the replacement > block table as "bad". > > Is there a way to "reformat" the drive (low level, perhaps) so that > it maps out the appropriate replacement table for the darn fsbn? Or > how about a way of adding bad blocks to it? > > Any help in solving this would be appreciated !! Upgrade to 4.0 or better yet 4.1, the new ATA drivers there has better error recovery... Oh, and there is no idea in reformatting a modern ATA/IDE drive, if they have bad sectors they have used up all their spares, and should be retired asap... -Søren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 4:40:31 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from ockle.dev.nanoteq.co.za (ockle.dev.nanoteq.co.za [196.7.114.28]) by hub.freebsd.org (Postfix) with ESMTP id 67E2937B969; Sat, 5 Aug 2000 04:40:17 -0700 (PDT) (envelope-from johan@ockle.dev.nanoteq.co.za) Received: (from johan@localhost) by ockle.dev.nanoteq.co.za (8.9.3/8.9.3) id NAA41460; Sat, 5 Aug 2000 13:50:03 +0200 (SAST) (envelope-from johan) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sat, 05 Aug 2000 13:50:02 +0200 (SAST) Organization: Nanoteq From: Johan Kruger To: freebsd-hackers@freeBSD.org, freebsd-questions@freeBSD.org Subject: Does sysinstall ever listen to a config file or command line ? - Not mine Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Problem using sysinstall command line version ?? I am running the following BSD ver ( release i built , maybe something does not work, although i doubt it , i am using it finely ) FreeBSD ockle.dev.nanoteq.co.za 5.0-20000724-SNAP FreeBSD 5.0-20000724-SNAP #5: Thu Jul 27 14:47:59 SAST 2000 johan@ockle.dev.nanoteq.co.za:/usr/src/sys/compile/GENERIC i386 Made a MFS Boot image for CD-Installation. Crunched 72 Megs of utils into 1.67 Megs, ( thanx to crunch ) Anyhow, i mount the CD with live filesystem on /cdrom on MFS filesystem, and now runned /stand/sysinstall ( obviously after a chroot to /cdrom ) Works perfectly in interactive mode. I am trying to use on command line as follows: try 1: /stand/sysinstall disk=ad0 partition=all diskPartitionWrite it doesn't work so i tried try 2: /stand/sysinstall disk=ad0 partition=all noConfirm=yes diskPartitionWrite it doesn't work so i tried try 3: echo aw | /stand/sysinstall disk=ad0 partition=all diskPartitionWrite it does a Select All and Write, BUT sometimes goes bonkers try x: still doesnt work, so compiled sysinstall with LOAD_CONFIG_FILE=/tmp/jjk.conf mounted a stiffy ( ufs ) on /tmp with my jjk.conf on it. sysinstall does not even try to load a file ??? My sysinstall manpage specked that i should put LOAD_CONFIG_FILE=whatever into the Makefile ..... does not use it Want to use the command line version of sysinstall to partition disks, but can't get it to work. Am i doing something Wrong ?? ---------------------------------- E-Mail: Johan Kruger Date: 05-Aug-00 Time: 13:46:57 This message was sent by XFMail ---------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 7:45: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from etinc.com (et-gw.etinc.com [207.252.1.2]) by hub.freebsd.org (Postfix) with ESMTP id D3ADD37B610 for ; Sat, 5 Aug 2000 07:45:03 -0700 (PDT) (envelope-from dennis@etinc.com) Received: from dbsys (dbsys.etinc.com [207.252.1.18]) by etinc.com (8.9.3/8.9.3) with SMTP id KAA00231 for ; Sat, 5 Aug 2000 10:45:59 -0400 (EDT) Message-Id: <200008051445.KAA00231@etinc.com> X-Sender: dennis@etinc.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Sat, 05 Aug 2000 10:59:02 -0400 To: hackers@freebsd.org From: Dennis Subject: ether_ifattach() issue In-Reply-To: <200008051107.NAA59699@freebsd.dk> References: <200008042340.QAA14005@relay.lppi.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The change in 4.1 to ether_ifattach() needs a check to see if the device is already attached. calling ether_ifattch() with a device already attached will lock up the system consistently. Dennis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 10: 7:51 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from etinc.com (et-gw.etinc.com [207.252.1.2]) by hub.freebsd.org (Postfix) with ESMTP id E2E2437BA30 for ; Sat, 5 Aug 2000 10:07:48 -0700 (PDT) (envelope-from dennis@etinc.com) Received: from dbsys (dbsys.etinc.com [207.252.1.18]) by etinc.com (8.9.3/8.9.3) with SMTP id NAA00486 for ; Sat, 5 Aug 2000 13:08:45 -0400 (EDT) Message-Id: <200008051708.NAA00486@etinc.com> X-Sender: dennis@etinc.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.0 Date: Sat, 05 Aug 2000 13:21:47 -0400 To: hackers@freebsd.org From: Dennis Subject: FreeBSD belly up with big config Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG With 1800 interfaces in the system Freebsd seems to use about 50Mhz of cpu when idle in "interrupts" even when there are no interrupts to process. on a 500Mhz box it uses 10% of the cpu and it seems linear with different speed processors. the 1800 interfaces are 900 DLCIs on a T3 frame with 900 bridge groups (rather common for a DSL delivered via Frame). This with just one line...the same problem could occur with say 8 T1 lines with 100+ DLCIs on each. It seems that there is substantial overhead just scanning interfaces for some routine maintenance...is there any hope of alleviating this deboggle? Dennis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 10:21:32 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from critter.freebsd.dk (fw2.aub.dk [195.24.1.195]) by hub.freebsd.org (Postfix) with ESMTP id BABE437B731 for ; Sat, 5 Aug 2000 10:21:20 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id TAA00729; Sat, 5 Aug 2000 19:20:19 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Dennis Cc: hackers@FreeBSD.ORG Subject: Re: FreeBSD belly up with big config In-Reply-To: Your message of "Sat, 05 Aug 2000 13:21:47 EDT." <200008051708.NAA00486@etinc.com> Date: Sat, 05 Aug 2000 19:20:18 +0200 Message-ID: <727.965496018@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200008051708.NAA00486@etinc.com>, Dennis writes: >With 1800 interfaces in the system Freebsd seems to use about 50Mhz of cpu >when idle in "interrupts" even when there are no interrupts to process. on >a 500Mhz box it uses 10% of the cpu and it seems linear with different >speed processors. > >the 1800 interfaces are 900 DLCIs on a T3 frame with 900 bridge groups >(rather common for a DSL delivered via Frame). This with just one >line...the same problem could occur with say 8 T1 lines with 100+ DLCIs on >each. > >It seems that there is substantial overhead just scanning interfaces for >some routine maintenance...is there any hope of alleviating this deboggle? Sure: send us your patches! -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 10:23:52 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mout2.silyn-tek.de (mout2.silyn-tek.de [194.25.165.70]) by hub.freebsd.org (Postfix) with ESMTP id CCFC537BA6C for ; Sat, 5 Aug 2000 10:23:49 -0700 (PDT) (envelope-from alex@big.endian.de) Received: from [192.168.32.33] (helo=mx1.silyn-tek.de) by mout2.silyn-tek.de with esmtp (Exim 3.13 #1) id 13L7em-0007y4-00; Sat, 05 Aug 2000 19:22:44 +0200 Received: from p3e9e2665.dip0.t-ipconnect.de ([62.158.38.101] helo=neutron.cichlids.com) by mx1.silyn-tek.de with esmtp (Exim 3.13 #1) id 13L7ei-0006KR-00; Sat, 05 Aug 2000 19:22:40 +0200 Received: from cichlids.cichlids.com (cichlids.cichlids.com [192.168.0.10]) by neutron.cichlids.com (Postfix) with ESMTP id 8170FAB91; Sat, 5 Aug 2000 19:22:40 +0200 (CEST) Received: by cichlids.cichlids.com (Postfix, from userid 1001) id A0ECF14BB0; Sat, 5 Aug 2000 19:22:29 +0200 (CEST) Date: Sat, 5 Aug 2000 19:22:29 +0200 To: Poul-Henning Kamp Cc: John Cochran , freebsd-hackers@FreeBSD.ORG Subject: Re: How to make *real* random bits. Message-ID: <20000805192229.A626@cichlids.cichlids.com> References: <200008012016.QAA34620@smof.fiawol.org> <13360.965189741@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <13360.965189741@critter.freebsd.dk>; from phk@critter.freebsd.dk on Wed, Aug 02, 2000 at 06:15:41AM +0200 X-PGP-Fingerprint: 44 28 CA 4C 46 5B D3 A8 A8 E3 BA F3 4E 60 7D 7F X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. From: alex@big.endian.de (Alexander Langer) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Thus spake Poul-Henning Kamp (phk@critter.freebsd.dk): > >between events. Because of this your T3 value can be considered the T1 > >value for the next random bit you generate. > No it cannot. If you did that then the probability would skew from > bit to bit. If the (t3-t2) was large bit N == 1 and the probability > of bit N+1 == 0 is > .5 then. Yes, but you can use the 3rd bit as bit 1 for the next step. With 15 events, that gives 7 bits/second: bit 1: 3 1 (is event 3 of the last bit) bit 2: 2 1st bit 3: 3 1 bit 4: 2 2nd bit 5: 3 1 bit 6: 2 3rd bit 7: 3 1 bit 8: 2 4th bit 9: 3 1 bit 10: 2 5th bit 11: 3 1 bit 12: 2 6th bit 13: 3 1 bit 14: 2 7th bit 15: 3 1 (is event 1 for the next bit) Alex -- cat: /home/alex/.sig: No such file or directory To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 12:50: 9 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mimer.webgiro.com (mimer.webgiro.com [212.209.29.5]) by hub.freebsd.org (Postfix) with ESMTP id D4E2537B713 for ; Sat, 5 Aug 2000 12:50:06 -0700 (PDT) (envelope-from abial@webgiro.com) Received: by mimer.webgiro.com (Postfix, from userid 66) id 905A92DC0F; Sat, 5 Aug 2000 21:55:01 +0200 (CEST) Received: by mx.webgiro.com (Postfix, from userid 1001) id BACE97817; Sat, 5 Aug 2000 21:45:10 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mx.webgiro.com (Postfix) with ESMTP id B59BB10E17; Sat, 5 Aug 2000 21:45:10 +0200 (CEST) Date: Sat, 5 Aug 2000 21:45:08 +0200 (CEST) From: Andrzej Bialecki To: Cameron Grant Cc: Nick Sayer , freebsd-hackers@freebsd.org Subject: Re: US$100 prize for adding ESS Audiodrive support to pcm In-Reply-To: <004501bffb0b$27bf8c60$0504020a@haveblue> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 31 Jul 2000, Cameron Grant wrote: > > I have for a long time said to myself that I would take the documents > > available and > > hack together a pcm driver for the audio chip built into my Asus P5A > > machine, > > and never sat down and done it. So, rather than whine to myself about > > it, or whine > > about nobody else doing it, I'll put my money where my mouth is. > > interested persons will want to investigate sys/dev/sound/pci/solo.c (just > committed) which is 98% there. i'm stumped. On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly willing to pay twice as much ($200) for working sound in most of laptops within my reach... Andrzej Bialecki // WebGiro AB, Sweden (http://www.webgiro.com) // ------------------------------------------------------------------- // ------ FreeBSD: The Power to Serve. http://www.freebsd.org -------- // --- Small & Embedded FreeBSD: http://www.freebsd.org/~picobsd/ ---- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 12:53:21 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from diskfarm.firehouse.net (rdu25-12-043.nc.rr.com [24.25.12.43]) by hub.freebsd.org (Postfix) with ESMTP id 0C58437BAC3 for ; Sat, 5 Aug 2000 12:53:19 -0700 (PDT) (envelope-from abc@diskfarm.firehouse.net) Received: (from abc@localhost) by diskfarm.firehouse.net (8.9.3/8.9.3) id PAA94755; Sat, 5 Aug 2000 15:58:06 GMT (envelope-from abc) Date: Sat, 5 Aug 2000 15:58:06 +0000 From: Alan Clegg To: Andrzej Bialecki Cc: Cameron Grant , freebsd-hackers@freebsd.org Subject: Re: US$100 prize for adding ESS Audiodrive support to pcm Message-ID: <20000805155806.A94702@diskfarm.firehouse.net> Mail-Followup-To: Alan Clegg , Andrzej Bialecki , Cameron Grant , freebsd-hackers@freebsd.org References: <004501bffb0b$27bf8c60$0504020a@haveblue> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from abial@webgiro.com on Sat, Aug 05, 2000 at 09:45:08PM +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Out of the ether, Andrzej Bialecki spewed forth the following bitstream: > On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly > willing to pay twice as much ($200) for working sound in most of laptops > within my reach... Add $100 from me. There is one that works for some folks out there by , but it does not work for me. AlanC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 13: 4: 0 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hplms26.hpl.hp.com (hplms26.hpl.hp.com [15.255.168.31]) by hub.freebsd.org (Postfix) with ESMTP id E37D937B5DB for ; Sat, 5 Aug 2000 13:03:57 -0700 (PDT) (envelope-from iari@exch.hpl.hp.com) Received: from hplms2.hpl.hp.com (hplms2.hpl.hp.com [15.0.152.33]) by hplms26.hpl.hp.com (8.9.3 (PHNE_18979)/HPL-PA Relay) with ESMTP id NAA13859 for ; Sat, 5 Aug 2000 13:03:57 -0700 (PDT) Received: from hplex1.hpl.hp.com (hplex1.hpl.hp.com [15.0.152.182]) by hplms2.hpl.hp.com (8.10.2/8.10.2 HPL-PA Hub) with SMTP id e75K3uG15899 for ; Sat, 5 Aug 2000 13:03:56 -0700 (PDT) Received: from 15.0.152.182 by hplex1.hpl.hp.com (InterScan E-Mail VirusWall NT); Sat, 05 Aug 2000 13:03:56 -0700 (Pacific Daylight Time) Received: by hplex1.hpl.hp.com with Internet Mail Service (5.5.2650.21) id ; Sat, 5 Aug 2000 13:03:56 -0700 Message-ID: <140D21516EC2D3119EE700902787664401DA4DE8@hplex1.hpl.hp.com> From: "Ari, Ismail" To: "'freebsd-hackers@freebsd.org'" Subject: Problem linking/integrating Socket stuff into my driver code Date: Sat, 5 Aug 2000 13:03:55 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi everyone, I wrote pseudo-device driver for FreeBSD kernel. It safely comes up at boot time. There is also a corresponding device node "/dev/mydevice" for my code, so that whenever someone makes an: fd = open("/dev/mydevice", .. ); ioctl( fd, COMMAND ); the "mydevioctl()" function within my code will take care of the COMMAND requested. ***** NOW , My problem is !! ****** I tried to add some networking functionality to my driver. Although I #include'd every required socket and net related header in my code , , and etc. I get the errors "Undefined reference to socket()" , same for connect(), gethostbyname(), accept() etc. In my previous life B.K. ( Before Kernel ) I used to link to socket related libraries ( -lsocket, -lnls ), but this is not a standalone program and I am not supposed to make explicit linking to any library. This is KERNEL anyway, it has object code for almost every standard function you may want to use (e.g.socket() ..) For example: kern/uipc_syscalls.o has the socket() definition and uipc_syscalls.o is already in the list of object files to be used in kernel make; all being compiled together. After including the required header files and after ensuring with ( >> nm -s uipc_syscalls.o ) that socket() is defined there, how do I get my code to see these functions. Some Bullets that might help ------------------------------------------------------------------ * FUNNY:: I wrote a small client/server chat program (for testing) ;compiled both client and server code using "cc -o server server.c", "cc -o client client.c" and DID NOT LINK any special library... IT WORKED ??!! I put server code on another PC over network and they get to communicate with the client. "cc" somehow knows where to link I guess (Is there a list of the libraries that cc links somewhere? or does it just look under /usr/lib).. And the second funny thing is that, when I do a symbol lookup ">> nm -s client" on the client program the functions that I use , socket(), gethostbyname() still look U ( Unresolved, Undefined ?) * Kernel Makefile first compile everything with "cc -c " , i.e. "don't link at this time" option * After everything is compiled, kernel links them together using linker ld * cc without any option does all the compiling and linking job, but I am bound to use the KERNEL's rules "cc -c" first then link everything together. * Other drivers in the kernel ( e.g. aha SCSI driver) don't have any compile and linking problem and usually none of them need a special treatment for linking. Check /usr/src/sys/compile/GENERIC -> Makefile . NORMAL_C type of compilation is enough for them. Please Respond to: iari@hpl.hp.com AND/OR ismailari@yahoo.com Best Regards, Ismail Ari HP Labs To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 14:13:49 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from heretic.cybertouch.org (24.69.168.8.on.wave.home.com [24.69.168.8]) by hub.freebsd.org (Postfix) with ESMTP id DEAA637BAF2; Sat, 5 Aug 2000 14:13:42 -0700 (PDT) (envelope-from lnb@heretic.cybertouch.org) Received: from localhost (lnb@localhost) by heretic.cybertouch.org (8.9.3/8.9.3) with ESMTP id RAA09277; Sat, 5 Aug 2000 17:12:25 -0400 (EDT) (envelope-from lnb@heretic.cybertouch.org) Date: Sat, 5 Aug 2000 17:12:24 -0400 (EDT) From: Lanny Baron To: Mike Smith Cc: Andrew Gallatin , hackers@FreeBSD.ORG, hardware@FreeBSD.ORG Subject: Re: Intel 840 Chipset Discontinue In-Reply-To: <200008030128.SAA02978@mass.osd.bsdi.com> Message-ID: Fax: 905-763-0241 Tel: 905-763-1900 City: Thornhill Province: Ontario Country: Canada MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I was just going through some of the mail on this list and came across this one. I started FreeBSDSystems.com back in '99. I use only Intel chassis and server-boards. I have recently sent one down to the U.S. (we are in Canada..physically). There has been no problems and the machine is dual PIII Xeon but on a Cabrillo chassis. That babe is a 7U. There is a 1U and 2U. If we can be of any help, just call us. http://freedomtc.com --Lanny On Wed, 2 Aug 2000, Mike Smith wrote: > > Do you know of anybody building 1U or 2U rackmount systems for a > > reasonable price ($2000/node or less) around these motherboards? It > > looks like most integrators are using the L44GX & its broken 32-bit > > 66MHz slot which runs at the wrong voltage (Myrinet claims they're > > violating the PCI spec). > > BSDi/Telenet will have 1U and 2U systems based on either the Asus or Tyan > dual socket-370 boards very shortly. If you want to talk more about > these, let me know. > > -- > ... every activity meets with opposition, everyone who acts has his > rivals and unfortunately opponents also. But not because people want > to be opponents, rather because the tasks and relationships force > people to take different points of view. [Dr. Fritz Todt] > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hardware" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 18:13:37 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.122.47]) by hub.freebsd.org (Postfix) with ESMTP id 9DE1837BBB5 for ; Sat, 5 Aug 2000 18:13:34 -0700 (PDT) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.10.1/8.10.1) with ESMTP id e761DRx82936; Sat, 5 Aug 2000 18:13:27 -0700 (PDT) Date: Sat, 5 Aug 2000 18:13:26 -0700 (PDT) From: Doug White To: Dennis Cc: hackers@FreeBSD.ORG Subject: Re: FreeBSD belly up with big config In-Reply-To: <200008051708.NAA00486@etinc.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 5 Aug 2000, Dennis wrote: > With 1800 interfaces in the system Freebsd seems to use about 50Mhz of cpu > when idle in "interrupts" even when there are no interrupts to process. on > a 500Mhz box it uses 10% of the cpu and it seems linear with different > speed processors. I would suspect the interface list is stored as a linear list and doesn't scale up to that level. > It seems that there is substantial overhead just scanning interfaces for > some routine maintenance...is there any hope of alleviating this deboggle? Send patches to rewrite the interface list to use some other data structure. Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 18:54: 4 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from quack.kfu.com (quack.kfu.com [205.178.90.194]) by hub.freebsd.org (Postfix) with ESMTP id C26A037B6EF for ; Sat, 5 Aug 2000 18:54:01 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from morpheus.kfu.com (morpheus.kfu.com [205.178.90.230]) by quack.kfu.com (8.9.3/8.9.3) with ESMTP id SAA61857; Sat, 5 Aug 2000 18:53:27 -0700 (PDT) (envelope-from nsayer@quack.kfu.com) Received: from quack.kfu.com by morpheus.kfu.com with ESMTP (8.9.3//ident-1.0) id SAA27815; Sat, 5 Aug 2000 18:53:26 -0700 (PDT) Message-ID: <398CC516.C30108EF@quack.kfu.com> Date: Sat, 05 Aug 2000 18:53:26 -0700 From: Nick Sayer X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.12 i386) X-Accept-Language: en-GB, en-US, en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG Cc: Alan Clegg , Andrzej Bialecki , Cameron Grant Subject: Drivers for Dollars (was Re: US$100 prize for adding ESS Audiodrive support to pcm) References: <004501bffb0b$27bf8c60$0504020a@haveblue> <20000805155806.A94702@diskfarm.firehouse.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Alan Clegg wrote: > > Out of the ether, Andrzej Bialecki spewed forth the following bitstream: > > > On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly > > willing to pay twice as much ($200) for working sound in most of laptops > > within my reach... > > Add $100 from me. There is one that works for some folks out there > by , but it does not work for me. > Since my experience with the Solo driver (it's still not quite done) bounty, I will put up a page where folks offering "driver bounties" can make their offers known. Such sites exist for software in general, but I will make one just for FreeBSD drivers. More later. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 22:20:23 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from gateway.posi.net (c1096725-a.smateo1.sfba.home.com [24.20.139.104]) by hub.freebsd.org (Postfix) with ESMTP id ECF9D37B846 for ; Sat, 5 Aug 2000 22:20:17 -0700 (PDT) (envelope-from kbyanc@posi.net) Received: from localhost (kbyanc@localhost) by gateway.posi.net (8.9.3/8.9.3) with ESMTP id WAA09056; Sat, 5 Aug 2000 22:22:22 -0700 (PDT) (envelope-from kbyanc@posi.net) Date: Sat, 5 Aug 2000 22:22:21 -0700 (PDT) From: Kelly Yancey To: Nick Sayer Cc: freebsd-hackers@FreeBSD.ORG, Alan Clegg , Andrzej Bialecki , Cameron Grant Subject: Re: Drivers for Dollars (was Re: US$100 prize for adding ESS Audiodrive support to pcm) In-Reply-To: <398CC516.C30108EF@quack.kfu.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 5 Aug 2000, Nick Sayer wrote: > Alan Clegg wrote: > > > > Out of the ether, Andrzej Bialecki spewed forth the following bitstream: > > > > > On a simmilar note: what about a driver for ESS Maestro 2E? I'm certainly > > > willing to pay twice as much ($200) for working sound in most of laptops > > > within my reach... > > > > Add $100 from me. There is one that works for some folks out there > > by , but it does not work for me. > > > > Since my experience with the Solo driver (it's still not quite done) > bounty, > I will put up a page where folks offering "driver bounties" can make > their offers > known. Such sites exist for software in general, but I will make one > just for > FreeBSD drivers. > > More later. > Ideally, I should add this to the FreeBSD driver database. Now if I can only find where I stashed that extra time... :) Kelly -- Kelly Yancey - kbyanc@posi.net - Belmont, CA System Administrator, eGroups.com http://www.egroups.com/ Maintainer, BSD Driver Database http://www.posi.net/freebsd/drivers/ Coordinator, Team FreeBSD http://www.posi.net/freebsd/Team-FreeBSD/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Aug 5 22:35:28 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from silby.com (cb34181-a.mdsn1.wi.home.com [24.14.173.39]) by hub.freebsd.org (Postfix) with SMTP id 5D5B737BAE3 for ; Sat, 5 Aug 2000 22:35:25 -0700 (PDT) (envelope-from silby@silby.com) Received: (qmail 54376 invoked by uid 1000); 6 Aug 2000 05:35:24 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 6 Aug 2000 05:35:24 -0000 Date: Sun, 6 Aug 2000 00:35:24 -0500 (CDT) From: Mike Silbersack To: Doug White Cc: Dennis , hackers@FreeBSD.ORG Subject: Re: FreeBSD belly up with big config In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 5 Aug 2000, Doug White wrote: > Send patches to rewrite the interface list to use some other data > structure. > > Doug White | FreeBSD: The Power to Serve > dwhite@resnet.uoregon.edu | www.FreeBSD.org If my memory serves me right, someone who was working with doing squid benchmarks had such patches. Searching through the archive for -net for squid and/or freebsd 3.2 should find the message - he linked to a page with performance tuning tips. I'm not sure if there was much merit to most of the suggestions, but one of them was definitely related to the number of interfaces. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message