From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 7 08:14:31 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2801316A4BF for ; Sun, 7 Sep 2003 08:14:31 -0700 (PDT) Received: from xeon.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7203443FE9 for ; Sun, 7 Sep 2003 08:14:30 -0700 (PDT) (envelope-from dan@langille.org) Received: by xeon.unixathome.org (Postfix, from userid 1000) id 5C7233E5F; Sun, 7 Sep 2003 11:14:30 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by xeon.unixathome.org (Postfix) with ESMTP id 50B3E3E5E; Sun, 7 Sep 2003 11:14:30 -0400 (EDT) Date: Sun, 7 Sep 2003 11:14:30 -0400 (EDT) From: Dan Langille X-X-Sender: dan@xeon.unixathome.org To: freebsd-hackers@FreeBSD.org Message-ID: <20030907110314.U78699@xeon.unixathome.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Dan Nelson cc: Nate Lawson cc: Kern Sibbald Subject: comments on proposed uthread_write.c changes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 15:14:31 -0000 A problem with pthreads and EOT has been identified. See PR 56274. It was suggested the solution was probably just a matter of changing one of the >0 tests to >=0 in uthread_write.c Any comments on that? Here's a diff I came up with after looking at src/lib/libc_r/uthreaduthread_write.c. Any suggestions/comments? I plan to apply and test this later in the week. --- uthread_write.c Sun Sep 7 11:01:13 2003 +++ uthread_write.c.org Sun Sep 7 10:58:31 2003 @@ -131,7 +131,7 @@ * If there was an error, return partial success * (if any bytes were written) or else the error: */ - } else if (n <= 0) { + } else if (n < 0) { if (num > 0) ret = num; else From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 7 09:32:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FE8616A4BF for ; Sun, 7 Sep 2003 09:32:19 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D53CB44005 for ; Sun, 7 Sep 2003 09:32:17 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h87GWCtp014178; Sun, 7 Sep 2003 12:32:12 -0400 (EDT) Date: Sun, 7 Sep 2003 12:32:12 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Dan Langille In-Reply-To: <20030907110314.U78699@xeon.unixathome.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@FreeBSD.org cc: Dan Nelson cc: Kern Sibbald cc: Nate Lawson Subject: Re: comments on proposed uthread_write.c changes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 16:32:19 -0000 On Sun, 7 Sep 2003, Dan Langille wrote: > A problem with pthreads and EOT has been identified. See PR 56274. It > was suggested the solution was probably just a matter of changing one of > the >0 tests to >=0 in uthread_write.c > > Any comments on that? I don't know that a return of 0 isn't valid for other devices. If this is the case, a return of 0 for blocking writes may break other applications. The patch isn't quite correct (at least looking at -current srcs). Lines 98-99 are: if (blocking && ((n < 0 && (errno == EWOULDBLOCK || errno == EAGAIN)) || (n >= 0 && num < nbytes))) { This will get entered first if n == 0, and I don't think your proposed patch would have any effect. I think you would have to change the "n >= 0" above to be "n > 0" in conjunction with your patch. I cannot comment on whether returns of 0 for blocking writes are valid in some cases or not. I would tend to be very careful because it's not something that is easily tested by running thread regression tests, kde, etc. This could be solved at the application level by selecting on the tape device and performing non-blocking writes to it. Since the application knows that a return of 0 is end-of-tape, it must also know the difference between talking to a tape device and talking to a regular file, socket, etc. -- Dan Eischen From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 7 12:46:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DDBE16A4BF for ; Sun, 7 Sep 2003 12:46:58 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A95243FF9 for ; Sun, 7 Sep 2003 12:46:57 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h87Jktqv018640 for ; Sun, 7 Sep 2003 23:46:55 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Sun, 7 Sep 2003 23:46:55 +0400 (MSD) From: Dmitry Morozovsky To: hackers@freebsd.org Message-ID: <20030907233940.M18589@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 19:46:58 -0000 Dear colleagues, [all below is for 4-STABLE] I'm trying to write effective arp scanner for multi-interface router (esp. multi-vlan); I plan to use multiple bpf devices attached to different interfaces emitting ARP requests and filters listening to ARP replies; the most natural way to multiplex them for me is select(). However, my tests show that select()ing bpf fd does not lead to trigger packets available to bpf filter; the process hangs in select state while parallel tcpdump process shows packets desired *and* is in bpf state. Am I missing something "base"? References (surely, I'd already read manpages for bpf, pcap and related -- but did I still missed something serious?) would be greatly appreciated. Thanks for your time, as always. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 7 16:03:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 325E216A4BF for ; Sun, 7 Sep 2003 16:03:07 -0700 (PDT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 562CA43FBD for ; Sun, 7 Sep 2003 16:03:06 -0700 (PDT) (envelope-from vlm@netli.com) Received: (qmail 29429 invoked by uid 84); 7 Sep 2003 23:03:06 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.147797 secs); 07 Sep 2003 23:03:06 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 7 Sep 2003 23:03:05 -0000 Message-ID: <3F5BB991.2050601@netli.com> Date: Sun, 07 Sep 2003 16:04:49 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030820 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Dmitry Morozovsky References: <20030907233940.M18589@woozle.rinet.ru> In-Reply-To: <20030907233940.M18589@woozle.rinet.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 23:03:07 -0000 Dmitry Morozovsky wrote: > Dear colleagues, > > [all below is for 4-STABLE] > > I'm trying to write effective arp scanner for multi-interface router (esp. > multi-vlan); I plan to use multiple bpf devices attached to different > interfaces emitting ARP requests and filters listening to ARP replies; the most > natural way to multiplex them for me is select(). > > However, my tests show that select()ing bpf fd does not lead to trigger packets > available to bpf filter; the process hangs in select state while parallel > tcpdump process shows packets desired *and* is in bpf state. > > Am I missing something "base"? References (surely, I'd already read > manpages for bpf, pcap and related -- but did I still missed something > serious?) would be greatly appreciated. Yes, you're missing the interactive mode. Refer to BIOCIMMEDIATE in the bpf(4) manual page. -- Lev Walkin vlm@netli.com From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 7 16:40:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8642416A4BF for ; Sun, 7 Sep 2003 16:40:44 -0700 (PDT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32A1243FFB for ; Sun, 7 Sep 2003 16:40:43 -0700 (PDT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id F12743D28; Sun, 7 Sep 2003 19:40:42 -0400 (EDT) From: "Dan Langille" To: Daniel Eischen Date: Sun, 07 Sep 2003 19:40:35 -0400 MIME-Version: 1.0 Message-ID: <3F5B89B3.11367.112C1E2D@localhost> Priority: normal References: <20030907110314.U78699@xeon.unixathome.org> In-reply-to: X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: freebsd-hackers@FreeBSD.org cc: Dan Nelson cc: Kern Sibbald cc: Nate Lawson Subject: Re: comments on proposed uthread_write.c changes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Sep 2003 23:40:44 -0000 On 7 Sep 2003 at 12:32, Daniel Eischen wrote: > On Sun, 7 Sep 2003, Dan Langille wrote: > > > A problem with pthreads and EOT has been identified. See PR 56274. It > > was suggested the solution was probably just a matter of changing one of > > the >0 tests to >=0 in uthread_write.c > > > > Any comments on that? > > I don't know that a return of 0 isn't valid for other devices. > If this is the case, a return of 0 for blocking writes may break > other applications. > > The patch isn't quite correct (at least looking at -current srcs). > Lines 98-99 are: > > if (blocking && ((n < 0 && (errno == EWOULDBLOCK || > errno == EAGAIN)) || (n >= 0 && num < nbytes))) { > > This will get entered first if n == 0, and I don't think your > proposed patch would have any effect. I think you would have > to change the "n >= 0" above to be "n > 0" in conjunction with > your patch. Ahh thank you. That explains why the test results with the original patch did not differ from -STABLE or 5.1-RELEASE. After adding your suggestions, we have had success. The points to note: 1. The status that stopped the writing was 0 2. It wrote 17,256 blocks, and read 17,256 blocks. Point 1 is key to determining EOT. Point 2 is what you always want to have... [dan@undef:~/tape-test] $ sudo ./tapetest /dev/nsa0 *rewind Rewound /dev/nsa0 *rawfill Begin writing blocks of 64512 bytes. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ +++++ weof_dev Wrote EOF to /dev/nsa0 Write failed. Last block written=17256. stat=0 ERR=Unknown error: 0 *rewind Rewound /dev/nsa0 *scan Starting scan at file 0 17256 blocks of 64512 bytes in file 0 End of File mark. End of File mark. End of tape Total files=1, blocks=17256, bytes = 1113219072 * > This could be solved at the application level by selecting on > the tape device and performing non-blocking writes to it. Since > the application knows that a return of 0 is end-of-tape, it > must also know the difference between talking to a tape device > and talking to a regular file, socket, etc. True. But *if* the code is wrong, it should be fixed. FWIW, the patch follows. As always, opinions and suggestions are welcome. --- uthread_write.c.org Sun Sep 7 10:58:31 2003 +++ uthread_write.c Sun Sep 7 15:41:34 2003 @@ -93,7 +93,7 @@ * write: */ if (blocking && ((n < 0 && (errno == EWOULDBLOCK || - errno == EAGAIN)) || (n >= 0 && num < nbytes))) { + errno == EAGAIN)) || (n > 0 && num < nbytes))) { curthread->data.fd.fd = fd; _thread_kern_set_timeout(NULL); @@ -131,7 +131,7 @@ * If there was an error, return partial success * (if any bytes were written) or else the error: */ - } else if (n < 0) { + } else if (n <= 0) { if (num > 0) ret = num; else -- Dan Langille : http://www.langille.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 00:05:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB7BC16A4BF for ; Mon, 8 Sep 2003 00:05:03 -0700 (PDT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 860F643FF5 for ; Mon, 8 Sep 2003 00:05:01 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 17789 invoked from network); 8 Sep 2003 06:57:12 -0000 Received: from office.sbnd.net (HELO straylight.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 8 Sep 2003 06:57:11 -0000 Received: (qmail 74838 invoked by uid 1000); 8 Sep 2003 07:04:54 -0000 Date: Mon, 8 Sep 2003 10:04:54 +0300 From: Peter Pentchev To: Lev Walkin Message-ID: <20030908070453.GO556@straylight.oblivion.bg> Mail-Followup-To: Lev Walkin , Dmitry Morozovsky , hackers@freebsd.org References: <20030907233940.M18589@woozle.rinet.ru> <3F5BB991.2050601@netli.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pWJxWxNlJUNgDlXi" Content-Disposition: inline In-Reply-To: <3F5BB991.2050601@netli.com> User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org cc: Dmitry Morozovsky Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 07:05:03 -0000 --pWJxWxNlJUNgDlXi Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Sep 07, 2003 at 04:04:49PM -0700, Lev Walkin wrote: > Dmitry Morozovsky wrote: > >Dear colleagues, > > > >[all below is for 4-STABLE] > > > >I'm trying to write effective arp scanner for multi-interface router (es= p. > >multi-vlan); I plan to use multiple bpf devices attached to different > >interfaces emitting ARP requests and filters listening to ARP replies; t= he=20 > >most > >natural way to multiplex them for me is select(). > > > >However, my tests show that select()ing bpf fd does not lead to trigger= =20 > >packets > >available to bpf filter; the process hangs in select state while parallel > >tcpdump process shows packets desired *and* is in bpf state. > > > >Am I missing something "base"? References (surely, I'd already read > >manpages for bpf, pcap and related -- but did I still missed something > >serious?) would be greatly appreciated. >=20 > Yes, you're missing the interactive mode. >=20 > Refer to BIOCIMMEDIATE in the bpf(4) manual page. Also, I believe that for a month or so bpf devices have been able to issue kqueue notifications, too, so - at least for FreeBSD - the "most natural" way might now be kqueue() and not select() :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 If wishes were fishes, the antecedent of this conditional would be true. --pWJxWxNlJUNgDlXi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQE/XCoV7Ri2jRYZRVMRAijiAJ9MfH/4jtyV9ygSVLWitgAd/Rj8GwCfTc37 G4nrkpJXcPV9XgS69R7dIxo= =iPjd -----END PGP SIGNATURE----- --pWJxWxNlJUNgDlXi-- From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 00:40:09 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90B6416A4BF for ; Mon, 8 Sep 2003 00:40:09 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8866D43FAF for ; Mon, 8 Sep 2003 00:40:08 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h887e6qv055857; Mon, 8 Sep 2003 11:40:06 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 8 Sep 2003 11:40:06 +0400 (MSD) From: Dmitry Morozovsky To: Lev Walkin In-Reply-To: <3F5BB991.2050601@netli.com> Message-ID: <20030908113632.R55683@woozle.rinet.ru> References: <20030907233940.M18589@woozle.rinet.ru> <3F5BB991.2050601@netli.com> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-424612981-1063006806=:55683" cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 07:40:09 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --0-424612981-1063006806=:55683 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sun, 7 Sep 2003, Lev Walkin wrote: LW> > [all below is for 4-STABLE] LW> > LW> > I'm trying to write effective arp scanner for multi-interface router (esp. LW> > multi-vlan); I plan to use multiple bpf devices attached to different LW> > interfaces emitting ARP requests and filters listening to ARP replies; the most LW> > natural way to multiplex them for me is select(). LW> > LW> > However, my tests show that select()ing bpf fd does not lead to trigger packets LW> > available to bpf filter; the process hangs in select state while parallel LW> > tcpdump process shows packets desired *and* is in bpf state. LW> > LW> > Am I missing something "base"? References (surely, I'd already read LW> > manpages for bpf, pcap and related -- but did I still missed something LW> > serious?) would be greatly appreciated. LW> LW> Yes, you're missing the interactive mode. LW> Refer to BIOCIMMEDIATE in the bpf(4) manual page. Unfortunately not ;-) My test program chich I suppose should catch any ARP packets around attached. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ --0-424612981-1063006806=:55683 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="bpfarpreply.c" Content-Transfer-Encoding: BASE64 Content-ID: <20030908114006.N55683@woozle.rinet.ru> Content-Description: bpfarp.c Content-Disposition: attachment; filename="bpfarpreply.c" I2luY2x1ZGUgPHN5cy90eXBlcy5oPg0KI2luY2x1ZGUgPHN5cy9pb2N0bC5o Pg0KI2luY2x1ZGUgPHN5cy9zb2NrZXQuaD4NCiNpbmNsdWRlIDxzeXMvdGlt ZS5oPg0KDQojaW5jbHVkZSA8bmV0L2JwZi5oPg0KI2luY2x1ZGUgPG5ldC9p Zi5oPg0KI2luY2x1ZGUgPG5ldC9pZl9hcnAuaD4NCiNpbmNsdWRlIDxuZXQv ZXRoZXJuZXQuaD4NCiNpbmNsdWRlIDxuZXRpbmV0L2luLmg+DQojaW5jbHVk ZSA8bmV0aW5ldC9pZl9ldGhlci5oPg0KDQojaW5jbHVkZSA8ZXJyLmg+DQoj aW5jbHVkZSA8ZmNudGwuaD4NCiNpbmNsdWRlIDxzdHJpbmcuaD4NCiNpbmNs dWRlIDx1bmlzdGQuaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KDQovKiBicGYg RlNNIHRvIGZpbHRlciBvbmx5IEFSUCByZXF1ZXN0cyAqLw0KLyoNCnN0cnVj dCBicGZfaW5zbiBpbnNuc1tdID0gew0KCUJQRl9TVE1UKEJQRl9MRCtCUEZf SCtCUEZfQUJTLCBFVEhFUl9BRERSX0xFTioyKSwNCglCUEZfSlVNUChCUEZf Sk1QK0JQRl9KRVErQlBGX0ssIEVUSEVSVFlQRV9BUlAsIDAsIDMpLA0KCUJQ Rl9TVE1UKEJQRl9MRCtCUEZfSCtCUEZfQUJTLCAyMCksDQoJQlBGX0pVTVAo QlBGX0pNUCtCUEZfSkVRK0JQRl9LLCBBUlBPUF9SRVFVRVNULCAwLCAxKSwN CglCUEZfU1RNVChCUEZfUkVUK0JQRl9LLCBzaXplb2Yoc3RydWN0IGV0aGVy X2FycCkgKw0KCQlzaXplb2Yoc3RydWN0IGV0aGVyX2hlYWRlcikpLA0KCUJQ Rl9TVE1UKEJQRl9SRVQrQlBGX0ssIDApLA0KfTsqLw0Kc3RydWN0IGJwZl9p bnNuIGluc25zW10gPSB7DQoJQlBGX1NUTVQoQlBGX0xEK0JQRl9IK0JQRl9B QlMsIEVUSEVSX0FERFJfTEVOKjIpLA0KCUJQRl9KVU1QKEJQRl9KTVArQlBG X0pFUStCUEZfSywgRVRIRVJUWVBFX0FSUCwgMCwgMSksDQoJQlBGX1NUTVQo QlBGX1JFVCtCUEZfSywgc2l6ZW9mKHN0cnVjdCBldGhlcl9hcnApICsNCgkJ c2l6ZW9mKHN0cnVjdCBldGhlcl9oZWFkZXIpKSwNCglCUEZfU1RNVChCUEZf UkVUK0JQRl9LLCAwKSwNCn07DQoNCnN0cnVjdCBicGZfcHJvZ3JhbSAgYnBm X2FycHJlcGx5ID0gew0KCXNpemVvZihpbnNucykgLyBzaXplb2Yoc3RydWN0 IGJwZl9pbnNuKSwNCglpbnNucw0KfTsNCg0KI2RlZmluZSBCVUZTWiA0MDk2 DQpzdGF0aWMgY2hhciBidWZbQlVGU1pdOw0KDQppbnQgbWFpbihpbnQgYXJn YywgY2hhciAqYXJndltdKQ0Kew0KCWludCBmZCwgc3o7DQoJdV9pbnQgeWVz Ow0KCWNoYXIgKmJwZm4sICppZm5hbWU7DQoJZmRfc2V0IGZkczsNCglzdHJ1 Y3QgaWZyZXEgaWZyOw0KDQoJYnBmbiA9ICIvZGV2L2JwZjEiOw0KCWlmbmFt ZSA9ICJybDAiOw0KDQoJaWYgKChmZCA9IG9wZW4oYnBmbiwgT19SRFdSKSkg PT0gLTEpDQoJCWVycigxLCAiY2FuJ3Qgb3BlbiAlcyIsIGJwZm4pOw0KCXN0 cm5jcHkoaWZyLmlmcl9uYW1lLCBpZm5hbWUsIHNpemVvZihpZnIuaWZyX25h bWUpKTsNCglpZiAoaW9jdGwoZmQsIEJJT0NTRVRJRiwgJmlmcikgPT0gLTEp DQoJCWVycigxLCAiY2FuJ3QgYXR0YWNoIHRvICVzIiwgaWZuYW1lKTsNCglp ZiAoaW9jdGwoZmQsIEJJT0NTRVRGLCAmYnBmX2FycHJlcGx5KSA9PSAtMSkN CgkJZXJyKDEsICJjYW4ndCBzZXQgQVJQIHJlcGx5IGZpbHRlciIpOw0KDQoJ aWYgKGlvY3RsKGZkLCBCSU9DUFJPTUlTQywgTlVMTCkgPT0gLTEpDQoJCWVy cigxLCAiY2FuJ3Qgc2V0IHByb21pc2MgbW9kZSIpOw0KCWlmIChpb2N0bChm ZCwgQklPQ0lNTUVESUFURSwgJnllcykgPT0gLTEpDQoJCWVycigxLCAiY2Fu J3Qgc2V0IElNTUVESUFURSBtb2RlIik7DQoNCglGRF9aRVJPKCZmZHMpOw0K CUZEX1NFVChmZCwgJmZkcyk7DQoJd2hpbGUgKHNlbGVjdCgxLCAmZmRzLCBO VUxMLCBOVUxMLCBOVUxMKSAhPSAtMSkgew0KCQkvKiBGRF9JU1NFVChmZCwg ZmRzKSBpcyBhbHdheXMgMSBoZXJlICovDQoJCXByaW50Zigid2UgaGF2ZSBw YWNrZXQgdG8gcmVhZCEiKTsNCgkJc3ogPSByZWFkKGZkLCBidWYsIEJVRlNa KTsNCgkJcHJpbnRmKCIgaXRzIGxlbiBpcyAlZCBieXRlcyFcbiIsIHN6KTsN Cgl9DQoNCgljbG9zZShmZCk7DQoJcmV0dXJuIDA7DQp9DQo= --0-424612981-1063006806=:55683-- From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 00:43:22 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A83D316A4BF for ; Mon, 8 Sep 2003 00:43:22 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 846EB43FE0 for ; Mon, 8 Sep 2003 00:43:20 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h887hJqv055898; Mon, 8 Sep 2003 11:43:19 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 8 Sep 2003 11:43:19 +0400 (MSD) From: Dmitry Morozovsky To: Peter Pentchev In-Reply-To: <20030908070453.GO556@straylight.oblivion.bg> Message-ID: <20030908114113.A55683@woozle.rinet.ru> References: <20030907233940.M18589@woozle.rinet.ru> <3F5BB991.2050601@netli.com> <20030908070453.GO556@straylight.oblivion.bg> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 07:43:22 -0000 On Mon, 8 Sep 2003, Peter Pentchev wrote: PP> On Sun, Sep 07, 2003 at 04:04:49PM -0700, Lev Walkin wrote: PP> > Dmitry Morozovsky wrote: PP> > >Dear colleagues, PP> > > PP> > >[all below is for 4-STABLE] PP> > > PP> > >I'm trying to write effective arp scanner for multi-interface router (esp. PP> > >multi-vlan); I plan to use multiple bpf devices attached to different PP> > >interfaces emitting ARP requests and filters listening to ARP replies; the PP> > >most PP> > >natural way to multiplex them for me is select(). PP> > > PP> > >However, my tests show that select()ing bpf fd does not lead to trigger PP> > >packets PP> > >available to bpf filter; the process hangs in select state while parallel PP> > >tcpdump process shows packets desired *and* is in bpf state. PP> > > PP> > >Am I missing something "base"? References (surely, I'd already read PP> > >manpages for bpf, pcap and related -- but did I still missed something PP> > >serious?) would be greatly appreciated. PP> > PP> > Yes, you're missing the interactive mode. PP> > PP> > Refer to BIOCIMMEDIATE in the bpf(4) manual page. PP> PP> Also, I believe that for a month or so bpf devices have been able to PP> issue kqueue notifications, too, so - at least for FreeBSD - the "most PP> natural" way might now be kqueue() and not select() :) Thanks Peter, I'm aware of these recent changes; however, I plan to support at least one or two previous security branches, so kqueue ()is not the first option for me. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 00:50:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9399F16A4C0 for ; Mon, 8 Sep 2003 00:50:56 -0700 (PDT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 873C343FF3 for ; Mon, 8 Sep 2003 00:50:55 -0700 (PDT) (envelope-from vlm@netli.com) Received: (qmail 9771 invoked by uid 84); 8 Sep 2003 07:50:54 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.14882 secs); 08 Sep 2003 07:50:54 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 8 Sep 2003 07:50:54 -0000 Message-ID: <3F5C3549.8050607@netli.com> Date: Mon, 08 Sep 2003 00:52:41 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030820 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Dmitry Morozovsky References: <20030907233940.M18589@woozle.rinet.ru> <3F5BB991.2050601@netli.com> <20030908113632.R55683@woozle.rinet.ru> In-Reply-To: <20030908113632.R55683@woozle.rinet.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 07:50:56 -0000 Dmitry Morozovsky wrote: > On Sun, 7 Sep 2003, Lev Walkin wrote: > > LW> > [all below is for 4-STABLE] > LW> > > LW> > I'm trying to write effective arp scanner for multi-interface router (esp. > LW> > multi-vlan); I plan to use multiple bpf devices attached to different > LW> > interfaces emitting ARP requests and filters listening to ARP replies; the most > LW> > natural way to multiplex them for me is select(). > LW> > > LW> > However, my tests show that select()ing bpf fd does not lead to trigger packets > LW> > available to bpf filter; the process hangs in select state while parallel > LW> > tcpdump process shows packets desired *and* is in bpf state. > LW> > > LW> > Am I missing something "base"? References (surely, I'd already read > LW> > manpages for bpf, pcap and related -- but did I still missed something > LW> > serious?) would be greatly appreciated. > LW> > LW> Yes, you're missing the interactive mode. > LW> Refer to BIOCIMMEDIATE in the bpf(4) manual page. > > Unfortunately not ;-) Fortunately, yes. > if (ioctl(fd, BIOCPROMISC, NULL) == -1) > err(1, "can't set promisc mode"); > if (ioctl(fd, BIOCIMMEDIATE, &yes) == -1) > err(1, "can't set IMMEDIATE mode"); Are you sure that "yes" variable holds the truth value? -- Lev Walkin vlm@netli.com From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 01:03:57 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 991C816A4BF for ; Mon, 8 Sep 2003 01:03:57 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E6BE43FBD for ; Mon, 8 Sep 2003 01:03:56 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h8883tqv056264; Mon, 8 Sep 2003 12:03:55 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 8 Sep 2003 12:03:55 +0400 (MSD) From: Dmitry Morozovsky To: Lev Walkin In-Reply-To: <3F5C3549.8050607@netli.com> Message-ID: <20030908120036.V55683@woozle.rinet.ru> References: <20030907233940.M18589@woozle.rinet.ru> <3F5BB991.2050601@netli.com> <20030908113632.R55683@woozle.rinet.ru> <3F5C3549.8050607@netli.com> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 08:03:57 -0000 On Mon, 8 Sep 2003, Lev Walkin wrote: [snip] LW> > LW> Yes, you're missing the interactive mode. LW> > LW> Refer to BIOCIMMEDIATE in the bpf(4) manual page. LW> > LW> > Unfortunately not ;-) LW> LW> Fortunately, yes. LW> LW> > if (ioctl(fd, BIOCPROMISC, NULL) == -1) LW> > err(1, "can't set promisc mode"); LW> > if (ioctl(fd, BIOCIMMEDIATE, &yes) == -1) LW> > err(1, "can't set IMMEDIATE mode"); LW> LW> Are you sure that "yes" variable holds the truth value? Yes. Just attaching file from wrong directory. However, I found a (really stupid, yeah) bug: the first parameter of select() in this test case should be fd+1, not 1 ;-) Thanks for the fresh look ;-) Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 01:09:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FC1116A4E9 for ; Mon, 8 Sep 2003 01:09:45 -0700 (PDT) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D3CF43FB1 for ; Mon, 8 Sep 2003 01:09:44 -0700 (PDT) (envelope-from vlm@netli.com) Received: (qmail 10487 invoked by uid 84); 8 Sep 2003 08:09:44 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.147954 secs); 08 Sep 2003 08:09:44 -0000 Received: from unknown (HELO netli.com) (172.17.1.12) by mx01-pal-lan.netli.lan with SMTP; 8 Sep 2003 08:09:44 -0000 Message-ID: <3F5C39B3.2010001@netli.com> Date: Mon, 08 Sep 2003 01:11:31 -0700 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030820 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: Dmitry Morozovsky References: <20030907233940.M18589@woozle.rinet.ru> <3F5BB991.2050601@netli.com> <20030908113632.R55683@woozle.rinet.ru> <3F5C3549.8050607@netli.com> <20030908120036.V55683@woozle.rinet.ru> In-Reply-To: <20030908120036.V55683@woozle.rinet.ru> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 08:09:45 -0000 Dmitry Morozovsky wrote: > On Mon, 8 Sep 2003, Lev Walkin wrote: > > [snip] > > LW> > LW> Yes, you're missing the interactive mode. > LW> > LW> Refer to BIOCIMMEDIATE in the bpf(4) manual page. > LW> > > LW> > Unfortunately not ;-) > LW> > LW> Fortunately, yes. > LW> > LW> > if (ioctl(fd, BIOCPROMISC, NULL) == -1) > LW> > err(1, "can't set promisc mode"); > LW> > if (ioctl(fd, BIOCIMMEDIATE, &yes) == -1) > LW> > err(1, "can't set IMMEDIATE mode"); > LW> > LW> Are you sure that "yes" variable holds the truth value? > > Yes. Just attaching file from wrong directory. > > However, I found a (really stupid, yeah) bug: the first parameter of select() > in this test case should be fd+1, not 1 ;-) Unfortunately, this could not possibly be the case, if your system's documentation is in sync with the reality: === select(2) === For historical reasons, select() will always examine the first 256 descriptors. === cut === -- Lev Walkin vlm@netli.com From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 01:18:17 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B71BA16A4BF for ; Mon, 8 Sep 2003 01:18:17 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 513AA43F85 for ; Mon, 8 Sep 2003 01:18:16 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.9/8.12.9) with ESMTP id h888IEqv056520; Mon, 8 Sep 2003 12:18:15 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 8 Sep 2003 12:18:14 +0400 (MSD) From: Dmitry Morozovsky To: Lev Walkin In-Reply-To: <3F5C39B3.2010001@netli.com> Message-ID: <20030908121326.R55683@woozle.rinet.ru> References: <20030907233940.M18589@woozle.rinet.ru> <3F5BB991.2050601@netli.com> <20030908113632.R55683@woozle.rinet.ru> <3F5C3549.8050607@netli.com> <20030908120036.V55683@woozle.rinet.ru> <3F5C39B3.2010001@netli.com> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 08:18:17 -0000 On Mon, 8 Sep 2003, Lev Walkin wrote: LW> > However, I found a (really stupid, yeah) bug: the first parameter of select() LW> > in this test case should be fd+1, not 1 ;-) LW> LW> Unfortunately, this could not possibly be the case, if your system's LW> documentation is in sync with the reality: LW> LW> === select(2) === LW> For historical reasons, LW> select() will always examine the first 256 descriptors. LW> === cut === Well, I suppose either this part of the documentation is obsolete, or something else went wrong, but: this select() works with fd+1 on both 4.8-R and 4.9-PRE, and does not work with both 1 and fd as nfd. I check the fd to be 3 in all cases. I did not dig into select() sources yet, though. Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 03:31:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E08616A4BF for ; Mon, 8 Sep 2003 03:31:56 -0700 (PDT) Received: from smtp-relay2.barrysworld.com (smtp-relay2.barrysworld.com [213.221.172.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45A6443FEC for ; Mon, 8 Sep 2003 03:31:55 -0700 (PDT) (envelope-from killing@barrysworld.com) Received: from [213.221.181.50] (helo=barrysworld.com) by smtp-relay2.barrysworld.com with esmtp (Exim 4.22) id 19wJJD-0002u6-3j for hackers@freebsd.org; Mon, 08 Sep 2003 11:31:47 +0100 Received: from vader [212.135.219.179] by barrysworld.com with ESMTP (SMTPD32-7.15) id AB8F1E4800D4; Mon, 08 Sep 2003 11:35:59 +0100 Message-ID: <00a301c375f4$66080ee0$b3db87d4@vader> From: "Steven Hartland" To: References: <20030907233940.M18589@woozle.rinet.ru><3F5BB991.2050601@netli.com> <20030908113632.R55683@woozle.rinet.ru><3F5C3549.8050607@netli.com> <20030908120036.V55683@woozle.rinet.ru> <3F5C39B3.2010001@netli.com> Date: Mon, 8 Sep 2003 11:31:43 +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 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: linprocfs issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Steven Hartland List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 10:31:56 -0000 For some strange reason linprocfs will mount multiple times to show this ensure you have the entry in fstab and then mount -a; mount -a You will now see 2 entries via df for linprocfs. Also it seems that linprocfs relies on procfs being mounted however I cant find any docs that mention this and see no reason why it should be the case. The problem I see is that I get errors from linux apps about /proc//file not existing. When trussing them they are never trying to open "file" I suspect it is happening when the access either cmdline or exe most likely exe. Steve / K From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 03:54:30 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 378A816A4BF; Mon, 8 Sep 2003 03:54:30 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A0864400B; Mon, 8 Sep 2003 03:54:24 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id AE92A3ABB2D; Mon, 8 Sep 2003 12:56:56 +0200 (CEST) Date: Mon, 8 Sep 2003 12:56:56 +0200 From: Pawel Jakub Dawidek To: freebsd-hackers@freebsd.org Message-ID: <20030908105656.GA47959@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Z95B/7ub16XurzO8" Content-Disposition: inline X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p3 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i Subject: GEOM Gate status. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 10:54:30 -0000 --Z95B/7ub16XurzO8 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello hackers... I've spend some time working on GEOM Gate, so... Cache was implemented, but only for reading (cache for write requests isn't good idea here, IMHO). Many workers can be used now. This will help to split requests. Requests are queued and always worker with minimal number of pending requests is choosen. Workers can be added at run-time with '-r' option. ggd(8) use now NFS-like exports file. Sample entries: 192.168.0.3 RD /dev/acd0 192.168.0.4 RW /test.img 192.168.0.5 RW /dev/ad0s1a I've also wrote some manual pages: - gg(4), - geom_gate(4) (exists, but isn't finished yet), - ggc(8), - ggd(8). There are few sysctls that could help in performace and memory consumption tuning and more to come. TODO. Errors handling needs more work. Maybe UDP (for now transport is done via TCP). Per-device sysctls created automatically. Regression tests. Performance benchmarks. GEOM Gate is avaliable at: http://garage.freebsd.pl/geom_gate.tbz http://garage.freebsd.pl/geom_gate.README See you all at BSDCon 2003!:) --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --Z95B/7ub16XurzO8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP1xgeD/PhmMH/Mf1AQHRVAP+MvozWC+DiNpYk1EoW4/tppbxjnPaI6wC R4DlTB1JCvFnLZi9i7TU0RkT1FWIOB58KNQgiDiS6xw5LssDy8Y7VJgmEb5b72zN I3Sq6Ejp4FEQ9MdlEETtdUKZQKjwoAdjYBjvfwQXDB+6t8DqziDRUF54LyPPTeyJ j7PYxPUbGKA= =pGLW -----END PGP SIGNATURE----- --Z95B/7ub16XurzO8-- From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 07:09:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66F9A16A4C0 for ; Mon, 8 Sep 2003 07:09:56 -0700 (PDT) Received: from rock.webonline.co.za (rock.webonline.co.za [196.25.84.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48DB743FAF for ; Mon, 8 Sep 2003 07:09:54 -0700 (PDT) (envelope-from ) Received: from rock.webonline.co.za (localhost [127.0.0.1]) by rock.webonline.co.za (8.12.9/8.12.9) with ESMTP id h88E9fmj018843 for ; Mon, 8 Sep 2003 16:09:41 +0200 Received: (from root@localhost) by rock.webonline.co.za (8.12.9/8.12.9/Submit) id h88E9eq8018840; Mon, 8 Sep 2003 16:09:40 +0200 Date: Mon, 8 Sep 2003 16:09:40 +0200 Message-Id: <200309081409.h88E9eq8018840@rock.webonline.co.za> From: "MailScanner" To: hackers@freebsd.org X-MailScanner: generated, Found to be clean X-MailScanner-Information: Please contact the ISP for more information Subject: Warning: E-mail viruses detected X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 14:09:56 -0000 Our virus detector has just been triggered by a message you sent:- To: michellevb@weddingvideos.co.za Subject: Re: Re: My details Date: Mon Sep 8 16:09:40 2003 One or more of the attachments (thank_you.pif) are on the list of unacceptable attachments for this site and will not have been delivered. Consider renaming the files or putting them into a "zip" file to avoid this constraint. The virus detector said this about the message: Report: Shortcuts to MS-Dos programs are very dangerous in email (thank_you.pif) No programs allowed (thank_you.pif) -- MailScanner Email Virus Scanner www.mailscanner.info Mailscanner thanks transtec Computers for their support From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 07:40:21 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3CA7B16A4BF for ; Mon, 8 Sep 2003 07:40:21 -0700 (PDT) Received: from sizone.org (mortar.sizone.org [65.126.154.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id E980943FE5 for ; Mon, 8 Sep 2003 07:40:19 -0700 (PDT) (envelope-from dgilbert@daveg.ca) Received: by sizone.org (Postfix, from userid 66) id 495082FFB2; Mon, 8 Sep 2003 10:40:19 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 00E271D1CE2; Mon, 8 Sep 2003 07:16:06 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16220.25846.816256.449580@canoe.dclg.ca> Date: Mon, 8 Sep 2003 07:16:06 -0400 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.14 under 21.4 (patch 12) "Portable Code" XEmacs Lucid Subject: Technical Snapshot questions X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 14:40:21 -0000 I've been using snapshots as the lowest level of my backup system on my laptop for awhile. I'm pretty sure that it's caused a little extra instability ... but I don't have hard evidence yet... it could just be normal -CURRENT churn... but that's not my question. If I have a large number of sparse files ... and I take a snapshot ... and then I fill in a previously unfilled block in the sparse file, do I have now two completely separate sparse files ... one in the snapshot and one in the filesystem proper ... or does the added block just merge itself in. If it's the latter, how much overhead would this cause? The sparse files are about 1G in size with most degrees of fullness being represented. That question brought to mind another: Does the inode of either the "real" file or the snapshot version of the file change? Or is the inode space of the snapshot separate from the filesystem proper? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can only be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 10:35:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8947216A4BF for ; Mon, 8 Sep 2003 10:35:42 -0700 (PDT) Received: from serl.cs.colorado.edu (serl-fs.cs.colorado.edu [128.138.242.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 719B044001 for ; Mon, 8 Sep 2003 10:35:39 -0700 (PDT) (envelope-from John.Giacomoni@colorado.edu) Received: from colorado.edu (serl.cs.colorado.edu [128.138.243.145]) by serl.cs.colorado.edu (8.12.9/8.12.6) with ESMTP id h88HZciQ017679 for ; Mon, 8 Sep 2003 11:35:38 -0600 (MDT) Date: Mon, 8 Sep 2003 11:35:37 -0600 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed From: John Giacomoni To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: X-Mailer: Apple Mail (2.552) Subject: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 17:35:42 -0000 How would one go about creating a kernel module which utilizes C++ code? I was planning on using the macro __cplusplus to toggle using extern "C" { }, however the bsd.kmod.mk style Makefiles seem to force the language to -std=c99 even when compiling with c++ . my initial steps have been as follows: take a functioning C based kernel module and rename to .cc added extern "C" around the includes. #defined key words such as new to xxx_new recompiled the new .cc file by hand without -std=c99, but keeping all the flags as the Makefile set them. then linked using the Makefile and finally loaded the module. as long as I do not make any calls into kernel functions things seem to work (load), however when I make a call to mtx_init then on load i get the following error: __gxx_personality_v0 undefined. thoughts/ideas/suggestions? thanks John G From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 12:38:32 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E286E16A4C0 for ; Mon, 8 Sep 2003 12:38:32 -0700 (PDT) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A28B43F93 for ; Mon, 8 Sep 2003 12:38:31 -0700 (PDT) (envelope-from dan@langille.org) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 849C43D28; Mon, 8 Sep 2003 15:38:24 -0400 (EDT) From: "Dan Langille" To: freebsd-hackers@FreeBSD.org Date: Mon, 08 Sep 2003 15:38:22 -0400 MIME-Version: 1.0 Message-ID: <3F5CA26E.18181.1574B67E@localhost> Priority: normal In-reply-to: <3F5B89B3.11367.112C1E2D@localhost> References: X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: Kern Sibbald Subject: Re: comments on proposed uthread_write.c changes X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 19:38:33 -0000 On 7 Sep 2003 at 19:40, Dan Langille wrote: > On 7 Sep 2003 at 12:32, Daniel Eischen wrote: > > > On Sun, 7 Sep 2003, Dan Langille wrote: > > > > > A problem with pthreads and EOT has been identified. See PR 56274. It > > > was suggested the solution was probably just a matter of changing one of > > > the >0 tests to >=0 in uthread_write.c > > > > > > Any comments on that? > > > > I don't know that a return of 0 isn't valid for other devices. > > If this is the case, a return of 0 for blocking writes may break > > other applications. > > > > The patch isn't quite correct (at least looking at -current srcs). > > Lines 98-99 are: > > > > if (blocking && ((n < 0 && (errno == EWOULDBLOCK || > > errno == EAGAIN)) || (n >= 0 && num < nbytes))) { > > > > This will get entered first if n == 0, and I don't think your > > proposed patch would have any effect. I think you would have > > to change the "n >= 0" above to be "n > 0" in conjunction with > > your patch. > > Ahh thank you. That explains why the test results with the original > patch did not differ from -STABLE or 5.1-RELEASE. After adding your > suggestions, we have had success. Oh I was wrong, very wrong. The test code I ran had not been compiled with pthreads. Kern found my mistake after he was unable to reproduce my [false] results. It appears the problem is not with uthread_write.c... Or at least not in the areas we are changing. Suggestions? -- Dan Langille : http://www.langille.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 13:30:04 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BFF4F16A4BF for ; Mon, 8 Sep 2003 13:30:04 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5527543FE0 for ; Mon, 8 Sep 2003 13:30:01 -0700 (PDT) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h88KTxQw040993 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 8 Sep 2003 22:29:59 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost)h88KTw5M040992; Mon, 8 Sep 2003 22:29:58 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1]) by klemm.apsfilter.org (8.12.9/8.12.9) with ESMTP id h88KRXpC050014; Mon, 8 Sep 2003 22:27:33 +0200 (CEST) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost) by titan.klemm.apsfilter.org (8.12.9/8.12.9/Submit) id h88KRRtw050013; Mon, 8 Sep 2003 22:27:28 +0200 (CEST) Date: Mon, 8 Sep 2003 22:27:27 +0200 From: Andreas Klemm To: Bruce M Simpson , freebsd-hackers@freebsd.org Message-ID: <20030908202727.GA49862@titan.klemm.apsfilter.org> References: <3F589E94.1080508@xwave.com> <20030905154646.GA59881@rot13.obsecurity.org> <20030906213428.GF29217@spc.org> <3F5A8FDB.3050507@newsguy.com> <20030907015510.GG29217@spc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030907015510.GG29217@spc.org> X-Operating-System: FreeBSD 5.1-CURRENT X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.4i Subject: Re: PUzzling sshd behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 20:30:04 -0000 On Sun, Sep 07, 2003 at 02:55:10AM +0100, Bruce M Simpson wrote: > On Sat, Sep 06, 2003 at 10:54:35PM -0300, Daniel C. Sobral wrote: > > Bruce M Simpson wrote: > > >On Fri, Sep 05, 2003 at 08:46:46AM -0700, Kris Kennaway wrote: > > >>The fact that sshd requires reverse IP resolution is well-known > > >>behaviour. It's probably the most common FAQ about sshd ("Why is my > > >>login taking 60 seconds to present the password prompt?"). > > > > > >But what about: > > > VerifyReverseMapping > > > Specifies whether sshd should try to verify the remote host > > > name > > > and check that the resolved host name for the remote IP > > > address > > > maps back to the very same IP address. The default is ``no''. > > > > AFAIK, that means the reverse mapping result will not be held against > > you. :-) > > This sounds like a bug. Does anyone else agree? Yes and I really needed this functionality in a project for 12 Suns... But it didn't work as expected from the description. And for me a functionality like being able to prevent reverse lookup would be completely logical ... Result was to create about 20 /etc/hosts entries on every sun, to prevent this 60 seconds timeout for our Out Of Band login via VPN and from sun to sun etc etc Andreas /// -- Andreas Klemm - Powered by FreeBSD 5.1-CURRENT Need a magic printfilter today ? -> http://www.apsfilter.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 14:00:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 85B5416A4DA; Mon, 8 Sep 2003 14:00:52 -0700 (PDT) Received: from lakemtao06.cox.net (lakemtao06.cox.net [68.1.17.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id E887843FE0; Mon, 8 Sep 2003 14:00:50 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.11]) by lakemtao06.cox.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with ESMTP id <20030908210050.LGBI7895.lakemtao06.cox.net@mezz.mezzweb.com>; Mon, 8 Sep 2003 17:00:50 -0400 To: Andreas Klemm References: <3F589E94.1080508@xwave.com> <20030905154646.GA59881@rot13.obsecurity.org> <20030906213428.GF29217@spc.org> <3F5A8FDB.3050507@newsguy.com> <20030907015510.GG29217@spc.org> <20030908202727.GA49862@titan.klemm.apsfilter.org> Message-ID: From: Jeremy Messenger Content-Type: text/plain; format=flowed; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Mon, 08 Sep 2003 15:59:51 -0500 In-Reply-To: <20030908202727.GA49862@titan.klemm.apsfilter.org> User-Agent: Opera7.20/Linux M2 build 459 cc: freebsd-hackers@freebsd.org Subject: Re: PUzzling sshd behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 21:00:52 -0000 On Mon, 8 Sep 2003 22:27:27 +0200, Andreas Klemm wrote: > On Sun, Sep 07, 2003 at 02:55:10AM +0100, Bruce M Simpson wrote: >> On Sat, Sep 06, 2003 at 10:54:35PM -0300, Daniel C. Sobral wrote: >> > Bruce M Simpson wrote: >> > >On Fri, Sep 05, 2003 at 08:46:46AM -0700, Kris Kennaway wrote: >> > >>The fact that sshd requires reverse IP resolution is well-known >> > >>behaviour. It's probably the most common FAQ about sshd ("Why is my >> > >>login taking 60 seconds to present the password prompt?"). >> > > >> > >But what about: >> > > VerifyReverseMapping >> > > Specifies whether sshd should try to verify the remote >> host >> > > name >> > > and check that the resolved host name for the remote IP >> > > address >> > > maps back to the very same IP address. The default is >> ``no''. >> > >> > AFAIK, that means the reverse mapping result will not be held against >> > you. :-) >> >> This sounds like a bug. Does anyone else agree? > > Yes and I really needed this functionality in a project for 12 Suns... > > But it didn't work as expected from the description. > > And for me a functionality like being able to prevent reverse lookup > would be completely logical ... > > Result was to create about 20 /etc/hosts entries on every sun, to > prevent this 60 seconds timeout for our Out Of Band login via VPN > and from sun to sun etc etc My solution is to install and setup dnscache to do the local DNS cache. Cheers, Mezz > Andreas /// -- bsdforums.org 's moderator, mezz. From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 14:15:09 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7376B16A4C0 for ; Mon, 8 Sep 2003 14:15:09 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C9F043F75 for ; Mon, 8 Sep 2003 14:15:07 -0700 (PDT) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h88LF2Qw041745 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 8 Sep 2003 23:15:02 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost)h88LF1UO041742; Mon, 8 Sep 2003 23:15:01 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1]) by klemm.apsfilter.org (8.12.9/8.12.9) with ESMTP id h88LD6pC050766; Mon, 8 Sep 2003 23:13:06 +0200 (CEST) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost) by titan.klemm.apsfilter.org (8.12.9/8.12.9/Submit) id h88LD6Pl050765; Mon, 8 Sep 2003 23:13:06 +0200 (CEST) Date: Mon, 8 Sep 2003 23:13:06 +0200 From: Andreas Klemm To: Jeremy Messenger Message-ID: <20030908211306.GA50616@titan.klemm.apsfilter.org> References: <3F589E94.1080508@xwave.com> <20030905154646.GA59881@rot13.obsecurity.org> <20030906213428.GF29217@spc.org> <3F5A8FDB.3050507@newsguy.com> <20030907015510.GG29217@spc.org> <20030908202727.GA49862@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 5.1-CURRENT X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: PUzzling sshd behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 21:15:09 -0000 On Mon, Sep 08, 2003 at 03:59:51PM -0500, Jeremy Messenger wrote: > My solution is to install and setup dnscache to do the local DNS cache. DNS cache sounds like it caches DNS records after a successfull DNS query, right ? The problem at my clients project was, that the DNS server a) wasn't reachable from time to time because they played around with a pix firewall in a cat6k b) these particular OOB IPs and the sun's IPs were not in DNS database So ... I assume a dns *cache* wouldn't have brought any better functionality. We still would have needed a functionality in sshd, to turn off reverse lookup entirely ... The suns have already been secured by firewalls so no real need for this reverse lookup feature. Andreas /// -- Andreas Klemm - Powered by FreeBSD 5.1-CURRENT Need a magic printfilter today ? -> http://www.apsfilter.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 14:19:36 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0BCB16A4BF for ; Mon, 8 Sep 2003 14:19:36 -0700 (PDT) Received: from episec.com (episec.com [198.78.65.141]) by mx1.FreeBSD.org (Postfix) with SMTP id ED8C143FAF for ; Mon, 8 Sep 2003 14:19:35 -0700 (PDT) (envelope-from edelkind-freebsd-hackers@episec.com) Received: (qmail 27593 invoked by uid 1024); 8 Sep 2003 21:17:10 -0000 Date: Mon, 8 Sep 2003 17:17:10 -0400 From: ari To: freebsd-hackers@freebsd.org Message-ID: <20030908211710.GH11860@episec.com> Mail-Followup-To: ari , freebsd-hackers@freebsd.org References: <3F589E94.1080508@xwave.com> <20030905154646.GA59881@rot13.obsecurity.org> <20030906213428.GF29217@spc.org> <3F5A8FDB.3050507@newsguy.com> <20030907015510.GG29217@spc.org> <20030908202727.GA49862@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030908202727.GA49862@titan.klemm.apsfilter.org> Subject: Re: PUzzling sshd behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 21:19:36 -0000 andreas@freebsd.org said this stuff: > On Sun, Sep 07, 2003 at 02:55:10AM +0100, Bruce M Simpson wrote: [...] > > > >But what about: > > > > VerifyReverseMapping > > > > Specifies whether sshd should try to verify the remote host > > > > name > > > > and check that the resolved host name for the remote IP > > > > address > > > > maps back to the very same IP address. The default is ``no''. [...] > > This sounds like a bug. Does anyone else agree? > > Yes and I really needed this functionality in a project for 12 Suns... > > But it didn't work as expected from the description. It's a common misconception that this option means the server should not attempt a reverse lookup. It doesn't. If the VerifyReverseMapping option is enabled, then after the server does a reverse lookup, it will then ensure that the hostname maps back to the same ip address that is associated with the socket, useful mainly for banning networks with lackluster admins or attackers who try to feign domain ownership using only reverse dns. The initial part of the description is a bit misleading, but the fact that setting this option to 'no' does not disable reverse lookups is not a bug. ari From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 14:55:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45FF716A4BF for ; Mon, 8 Sep 2003 14:55:19 -0700 (PDT) Received: from mail.rdslink.ro (mail.rdslink.ro [193.231.236.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 192C143FCB for ; Mon, 8 Sep 2003 14:55:17 -0700 (PDT) (envelope-from enache@rdslink.ro) Received: (qmail 22899 invoked from network); 8 Sep 2003 21:51:47 -0000 Received: from unknown (HELO ratsnest.hole) (81.196.247.66) by mail.rdslink.ro with SMTP; 8 Sep 2003 21:51:47 -0000 Date: Mon, 8 Sep 2003 23:48:43 +0300 From: Enache Adrian To: John Giacomoni Message-ID: <20030908204843.GB1347@ratsnest.hole> Mail-Followup-To: John Giacomoni , freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 21:55:19 -0000 On Mon, Sep 08, 2003 a.d., John Giacomoni wrote: > as long as I do not make any calls into kernel functions > things seem to work (load), however when I make a call to > mtx_init then on load i get the following error: > __gxx_personality_v0 undefined. > > thoughts/ideas/suggestions? That's nice. Your kernel module is needing libstdc++.so :-) Regards, Adi From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 15:03:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0DE3916A4BF; Mon, 8 Sep 2003 15:03:02 -0700 (PDT) Received: from lakemtao08.cox.net (lakemtao08.cox.net [68.1.17.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id CE05243FBF; Mon, 8 Sep 2003 15:03:00 -0700 (PDT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.11]) by lakemtao08.cox.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with ESMTP id <20030908220258.MADJ19774.lakemtao08.cox.net@mezz.mezzweb.com>; Mon, 8 Sep 2003 18:02:58 -0400 Date: Mon, 08 Sep 2003 17:02:02 -0500 To: Andreas Klemm References: <3F589E94.1080508@xwave.com> <20030905154646.GA59881@rot13.obsecurity.org> <20030906213428.GF29217@spc.org> <3F5A8FDB.3050507@newsguy.com> <20030907015510.GG29217@spc.org> <20030908202727.GA49862@titan.klemm.apsfilter.org> <20030908211306.GA50616@titan.klemm.apsfilter.org> From: Jeremy Messenger Content-Type: text/plain; format=flowed; charset=utf-8 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: <20030908211306.GA50616@titan.klemm.apsfilter.org> User-Agent: Opera7.20/Linux M2 build 459 cc: freebsd-hackers@freebsd.org Subject: Re: PUzzling sshd behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 22:03:02 -0000 On Mon, 8 Sep 2003 23:13:06 +0200, Andreas Klemm wrote: > On Mon, Sep 08, 2003 at 03:59:51PM -0500, Jeremy Messenger wrote: >> My solution is to install and setup dnscache to do the local DNS cache. > > DNS cache sounds like it caches DNS records after a successfull > DNS query, right ? > > The problem at my clients project was, that the DNS server > a) wasn't reachable from time to time because they played > around with a pix firewall in a cat6k > b) these particular OOB IPs and the sun's IPs were not in > DNS database > > So ... I assume a dns *cache* wouldn't have brought any better > functionality. We still would have needed a functionality in > sshd, to turn off reverse lookup entirely ... > The suns have already been secured by firewalls so no real need > for this reverse lookup feature. I use tinydns and dnscache to do the local DNS, so I don't have to touch the /etc/hosts anymore. The /etc/hosts is just pain in my ass. It solved all of my SSH and other reverse lookup problems. Current, I have the split horizon DNS[1] setup for the internal and external DNS queries separate. [1] http://www.fefe.de/djbdns/#splithorizon Great article about djbdns on FreeBSD can be found at http://ezine.daemonnews.org/200210/ezdjbdns.html .. Cheers, Mezz > Andreas /// -- bsdforums.org 's moderator, mezz. From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 16:10:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF46416A4BF for ; Mon, 8 Sep 2003 16:10:16 -0700 (PDT) Received: from hotmail.com (law11-f22.law11.hotmail.com [64.4.17.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC78843FA3 for ; Mon, 8 Sep 2003 16:10:15 -0700 (PDT) (envelope-from int0x80@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 8 Sep 2003 16:10:15 -0700 Received: from 24.202.207.215 by lw11fd.law11.hotmail.msn.com with HTTP; Mon, 08 Sep 2003 23:10:15 GMT X-Originating-IP: [24.202.207.215] X-Originating-Email: [int0x80@hotmail.com] From: "Raunchy McSmutbag" To: enache@rdslink.ro, John.Giacomoni@colorado.edu Date: Mon, 08 Sep 2003 23:10:15 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 08 Sep 2003 23:10:15.0629 (UTC) FILETIME=[5D079FD0:01C3765E] cc: freebsd-hackers@freebsd.org Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 23:10:16 -0000 would a -static when compiling fix it? >From: Enache Adrian >To: John Giacomoni >CC: freebsd-hackers@freebsd.org >Subject: Re: C++ code in a kernel module? >Date: Mon, 8 Sep 2003 23:48:43 +0300 >MIME-Version: 1.0 >Received: from mx2.freebsd.org ([216.136.204.119]) by mc10-f22 with >Microsoft SMTPSVC(5.0.2195.5600); Mon, 8 Sep 2003 14:56:20 -0700 >Received: from hub.freebsd.org (hub.freebsd.org [216.136.204.18])by >mx2.freebsd.org (Postfix) with ESMTPid 5473F5632E; Mon, 8 Sep 2003 >14:55:58 -0700 (PDT)(envelope-from owner-freebsd-hackers@freebsd.org) >Received: from hub.freebsd.org (localhost [127.0.0.1])by hub.freebsd.org >(Postfix) with ESMTPid 3F6A016A4F3; Mon, 8 Sep 2003 14:55:55 -0700 (PDT) >Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])by >hub.freebsd.org (Postfix) with ESMTP id 45FF716A4BFfor >;Mon, 8 Sep 2003 14:55:19 -0700 (PDT) >Received: from mail.rdslink.ro (mail.rdslink.ro [193.231.236.20])by >mx1.FreeBSD.org (Postfix) with SMTP id 192C143FCBfor >;Mon, 8 Sep 2003 14:55:17 -0700 >(PDT)(envelope-from enache@rdslink.ro) >Received: (qmail 22899 invoked from network); 8 Sep 2003 21:51:47 -0000 >Received: from unknown (HELO ratsnest.hole) (81.196.247.66) by >mail.rdslink.ro with SMTP; 8 Sep 2003 21:51:47 -0000 >X-Message-Info: EoYTbT2lH2OdDci6cl9DIoYWxDafPXZ9 >Delivered-To: freebsd-hackers@freebsd.org >Message-ID: <20030908204843.GB1347@ratsnest.hole> >Mail-Followup-To: John Giacomoni >,freebsd-hackers@freebsd.org >References: >In-Reply-To: >User-Agent: Mutt/1.4i >X-BeenThere: freebsd-hackers@freebsd.org >X-Mailman-Version: 2.1.1 >Precedence: list >List-Id: Technical Discussions relating to >FreeBSD >List-Unsubscribe: >, >List-Archive: >List-Post: >List-Help: >List-Subscribe: >, >Sender: owner-freebsd-hackers@freebsd.org >Errors-To: owner-freebsd-hackers@freebsd.org >Return-Path: owner-freebsd-hackers@freebsd.org >X-OriginalArrivalTime: 08 Sep 2003 21:56:21.0546 (UTC) >FILETIME=[0A1C40A0:01C37654] > >On Mon, Sep 08, 2003 a.d., John Giacomoni wrote: > > as long as I do not make any calls into kernel functions > > things seem to work (load), however when I make a call to > > mtx_init then on load i get the following error: > > __gxx_personality_v0 undefined. > > > > thoughts/ideas/suggestions? > >That's nice. Your kernel module is needing libstdc++.so :-) > >Regards, >Adi >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" _________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 16:18:40 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6767116A4E6 for ; Mon, 8 Sep 2003 16:18:40 -0700 (PDT) Received: from mail-out2.apple.com (mail-out2.apple.com [17.254.0.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FCDA43F75 for ; Mon, 8 Sep 2003 16:18:39 -0700 (PDT) (envelope-from guy@alum.mit.edu) Received: from mailgate1.apple.com (A17-128-100-225.apple.com [17.128.100.225]) by mail-out2.apple.com (8.12.9/8.12.9) with ESMTP id h88NIbiZ007197 for ; Mon, 8 Sep 2003 16:18:38 -0700 (PDT) Received: from scv1.apple.com (scv1.apple.com) by mailgate1.apple.com ; Mon, 8 Sep 2003 16:18:12 -0700 Received: from [17.202.40.208] (gharris.apple.com [17.202.40.208]) by scv1.apple.com (8.12.9/8.12.9) with ESMTP id h88NIIsH003523; Mon, 8 Sep 2003 16:18:18 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v594) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Guy Harris Date: Mon, 8 Sep 2003 16:18:37 -0700 To: Dmitry Morozovsky X-Mailer: Apple Mail (2.594) cc: hackers@freebsd.org Subject: Re: if bpf fd's select()able? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 23:18:40 -0000 > However, my tests show that select()ing bpf fd does not lead to > trigger packets > available to bpf filter; the process hangs in select state while > parallel > tcpdump process shows packets desired *and* is in bpf state. See PR kern/22063 "bpf when used with the select system call with timeout doesn't forward packets on timeout". That *should* work in 4-STABLE, as that fix is in 4-STABLE. You should not have to turn BIOCIMMEDIATE on (tcpdump doesn't). From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 16:25:40 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 54D9A16A4BF for ; Mon, 8 Sep 2003 16:25:40 -0700 (PDT) Received: from priv-edtnes51.telusplanet.net (defout.telus.net [199.185.220.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 209D843FE5 for ; Mon, 8 Sep 2003 16:25:39 -0700 (PDT) (envelope-from sh@bel.bc.ca) Received: from antalus ([154.5.106.237]) by priv-edtnes51.telusplanet.net (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with SMTP id <20030908223400.BMAW22247.priv-edtnes51.telusplanet.net@antalus> for ; Mon, 8 Sep 2003 16:34:00 -0600 Message-ID: <001c01c37659$4d38f090$0300000a@antalus> From: "Sean Hamilton" To: Date: Mon, 8 Sep 2003 15:32:16 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: mmap(2) questions, reads not caching X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Sep 2003 23:25:40 -0000 I have some code resembling: FILE * f = fopen (filename, "rb"); mmap (NULL, st.st_size, PROT_READ, MAP_PRIVATE, fileno (f), 0); I've found that reads are not brought into disk cache. Successive reads on the same file once again read from disk. If I cat the file to /dev/null, then the mmap(2) does indeed read the data from cache. What's going on here? Also, the man page states that the mapped region may be longer than the specified size. Does this have any implications for the size which is passed to munmap(2)? If I pass the same size to munmap(2), then will there still be leftover, or will the entire region be unmapped? And, should I be passing MAP_PRIVATE or MAP_SHARED to read-only mmaps? Does it make any difference at all? Running 5.1-RELEASE. From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 17:01:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 738DE16A4BF for ; Mon, 8 Sep 2003 17:01:45 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E6A043F85 for ; Mon, 8 Sep 2003 17:01:44 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9/8.12.3) with ESMTP id h8901XTX005565; Mon, 8 Sep 2003 18:01:33 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 08 Sep 2003 18:01:01 -0600 (MDT) Message-Id: <20030908.180101.71186801.imp@bsdimp.com> To: John.Giacomoni@colorado.edu From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 2.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 00:01:45 -0000 In message: John Giacomoni writes: : How would one go about creating a kernel module which utilizes : C++ code? That's a tough row to hoe. : I was planning on using the macro __cplusplus to toggle using : extern "C" { }, however the bsd.kmod.mk style Makefiles seem to : force the language to -std=c99 even when compiling with c++ . Sounds like a bug to me. : my initial steps have been as follows: : take a functioning C based kernel module and rename to .cc : added extern "C" around the includes. : #defined key words such as new to xxx_new : recompiled the new .cc file by hand without -std=c99, but : keeping all the flags as the Makefile set them. : then linked using the Makefile and finally loaded the module. Boom! That was the big booming sound I heard earlier in the day. : as long as I do not make any calls into kernel functions : things seem to work (load), however when I make a call to : mtx_init then on load i get the following error: : __gxx_personality_v0 undefined. You will need to add all the runtime support. You will need to compile w/o excetions in all likelihood, since it requires DWARF support, iirc. You may also to disable RTTI support. Templates may work, as long as they don't need run time linker support, best to avoid them. I don't know about __gxx_personaility_v0, but your best bet is to look at the .o's and find where it is referenced. Then back track it to what function, then to what construct and go from there. There be dragons here. You are about to become very familiar with the version of g++ that you are working with as well as subtle variations that happen with different compiler flags. I've tried it in the past and there are lots of issues. Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 17:03:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D59D16A4BF for ; Mon, 8 Sep 2003 17:03:19 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3509343FCB for ; Mon, 8 Sep 2003 17:03:18 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9/8.12.3) with ESMTP id h89038TX005596; Mon, 8 Sep 2003 18:03:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 08 Sep 2003 18:02:35 -0600 (MDT) Message-Id: <20030908.180235.25244023.imp@bsdimp.com> To: int0x80@hotmail.com From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 2.1 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: John.Giacomoni@colorado.edu cc: freebsd-hackers@freebsd.org Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 00:03:19 -0000 In message: "Raunchy McSmutbag" writes: : would a -static when compiling fix it? no. There are big issues that one needs to know about. C++ in the kernel is hard at best. Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 19:41:40 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B300416A4BF for ; Mon, 8 Sep 2003 19:41:40 -0700 (PDT) Received: from vivid.phpwebhosting.com (vivid.phpwebhosting.com [69.0.163.233]) by mx1.FreeBSD.org (Postfix) with SMTP id CC90644003 for ; Mon, 8 Sep 2003 19:41:39 -0700 (PDT) (envelope-from falieson@falsworld.com) Received: (qmail 12084 invoked from network); 9 Sep 2003 02:41:36 -0000 Received: from unknown (HELO ?192.168.2.102?) (12.245.246.70) by vivid.phpwebhosting.com with SMTP; 9 Sep 2003 02:41:36 -0000 From: florian mettetal To: freebsd-hackers@freebsd.org Content-Type: text/plain Organization: Message-Id: <1063075297.14383.42.camel@server.ltsp> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 08 Sep 2003 22:41:38 -0400 Content-Transfer-Encoding: 7bit Subject: Serial ATA 4.8 Installation -help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 02:41:40 -0000 Greetings, I have built a brand new system founded on an Asus P4PE motherboard, and using the FastTrack raid function I have turned my two Maxtor 80GB Serial ATA (now reffered to as SATA) hard drives into a Mirror raid. Proceeding to start the installation of FreeBSD 4.8-stable I selected Standard Install, Press ok at the pop up, then at the following popup I am confronted with FreeBSD telling me that "No disks found! Please verify that your disk controller is being properly probed at boot time". Has anyone else had this issue? Is this problem fixed in FreeBSD 5.X . What can I do to get this to work in FreeBSD 4.8? Thanks for all who reply! Best Regards, Florian Mettetal From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 19:46:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 29B9A16A4BF for ; Mon, 8 Sep 2003 19:46:16 -0700 (PDT) Received: from mx7.mail.ru (mx7.mail.ru [194.67.23.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FD1143FBD for ; Mon, 8 Sep 2003 19:46:15 -0700 (PDT) (envelope-from kabaev@mail.ru) Received: from [151.203.230.77] (port=49283 helo=kan.dnsalias.net) by mx7.mail.ru with esmtp id 19wYWH-000HPX-00; Tue, 09 Sep 2003 06:46:17 +0400 Received: from kan.dnsalias.net (ak03@localhost [127.0.0.1]) by kan.dnsalias.net (8.12.9/8.12.9) with ESMTP id h892kCk2005677; Mon, 8 Sep 2003 22:46:12 -0400 (EDT) (envelope-from kan@kan.dnsalias.net) Received: (from kan@localhost) by kan.dnsalias.net (8.12.9/8.12.9/Submit) id h892kB2A005676; Mon, 8 Sep 2003 22:46:11 -0400 (EDT) Date: Mon, 8 Sep 2003 22:46:11 -0400 From: Alexander Kabaev To: John Giacomoni Message-Id: <20030908224611.06027082.kabaev@mail.ru> In-Reply-To: References: X-Mailer: Sylpheed version 0.9.4claws33 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: Not detected cc: freebsd-hackers@freebsd.org Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 02:46:16 -0000 On Mon, 8 Sep 2003 11:35:37 -0600 John Giacomoni wrote: > I was planning on using the macro __cplusplus to toggle using > extern "C" { }, however the bsd.kmod.mk style Makefiles seem to > force the language to -std=c99 even when compiling with c++ . > > my initial steps have been as follows: > take a functioning C based kernel module and rename to .cc > added extern "C" around the includes. > #defined key words such as new to xxx_new > recompiled the new .cc file by hand without -std=c99, but > keeping all the flags as the Makefile set them. > then linked using the Makefile and finally loaded the module. -fno-rtti -fno-exceptions is probably a must unless you want to bring a whole libsupc++ library into the kernel. -- Alexander Kabaev From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 20:04:43 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D5CF16A4BF for ; Mon, 8 Sep 2003 20:04:43 -0700 (PDT) Received: from tomts5-srv.bellnexxia.net (tomts5.bellnexxia.net [209.226.175.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BAF143FBF for ; Mon, 8 Sep 2003 20:04:42 -0700 (PDT) (envelope-from matt@compar.com) Received: from hermes ([65.95.185.143]) by tomts5-srv.bellnexxia.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with SMTP id <20030909030441.RBUV11976.tomts5-srv.bellnexxia.net@hermes>; Mon, 8 Sep 2003 23:04:41 -0400 Message-ID: <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Alexander Kabaev" , "John Giacomoni" References: <20030908224611.06027082.kabaev@mail.ru> Date: Mon, 8 Sep 2003 23:02:33 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-hackers@freebsd.org Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 03:04:43 -0000 > On Mon, 8 Sep 2003 11:35:37 -0600 > John Giacomoni wrote: > > > I was planning on using the macro __cplusplus to toggle using > > extern "C" { }, however the bsd.kmod.mk style Makefiles seem to > > force the language to -std=c99 even when compiling with c++ . > > > > my initial steps have been as follows: > > take a functioning C based kernel module and rename to .cc > > added extern "C" around the includes. > > #defined key words such as new to xxx_new > > recompiled the new .cc file by hand without -std=c99, but > > keeping all the flags as the Makefile set them. > > then linked using the Makefile and finally loaded the module. > > -fno-rtti -fno-exceptions is probably a must unless you want to bring a > whole libsupc++ library into the kernel. I've been silently following this thread, and unless I missed something, has anyone asked John why he wants/needs to use C++ in the kernel? -- Matt Emmerton From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 20:13:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EC3316A4BF for ; Mon, 8 Sep 2003 20:13:03 -0700 (PDT) Received: from mx6.mail.ru (mx6.mail.ru [194.67.23.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D47643FE0 for ; Mon, 8 Sep 2003 20:13:02 -0700 (PDT) (envelope-from kabaev@mail.ru) Received: from [151.203.230.77] (port=49411 helo=kan.dnsalias.net) by mx6.mail.ru with esmtp id 19wYwC-000Dmg-00; Tue, 09 Sep 2003 07:13:04 +0400 Received: from kan.dnsalias.net (ak03@localhost [127.0.0.1]) by kan.dnsalias.net (8.12.9/8.12.9) with ESMTP id h893Cxk2006888; Mon, 8 Sep 2003 23:12:59 -0400 (EDT) (envelope-from kan@kan.dnsalias.net) Received: (from kan@localhost) by kan.dnsalias.net (8.12.9/8.12.9/Submit) id h893CxT7006887; Mon, 8 Sep 2003 23:12:59 -0400 (EDT) Date: Mon, 8 Sep 2003 23:12:59 -0400 From: Alexander Kabaev To: "Matthew Emmerton" Message-Id: <20030908231259.4392ce4e.kabaev@mail.ru> In-Reply-To: <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> References: <20030908224611.06027082.kabaev@mail.ru> <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> X-Mailer: Sylpheed version 0.9.4claws33 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: Not detected cc: freebsd-hackers@freebsd.org cc: John Giacomoni Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 03:13:03 -0000 On Mon, 8 Sep 2003 23:02:33 -0400 "Matthew Emmerton" wrote: > I've been silently following this thread, and unless I missed > something, has anyone asked John why he wants/needs to use C++ in the > kernel? > Tools, not policy :) -- Alexander Kabaev From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 20:36:47 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39D7C16A4BF for ; Mon, 8 Sep 2003 20:36:47 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8688C4400B for ; Mon, 8 Sep 2003 20:36:46 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.9/8.12.9) id h893aetc004539; Mon, 8 Sep 2003 22:36:40 -0500 (CDT) (envelope-from dan) Date: Mon, 8 Sep 2003 22:36:40 -0500 From: Dan Nelson To: Sean Hamilton Message-ID: <20030909033640.GO48339@dan.emsphone.com> References: <001c01c37659$4d38f090$0300000a@antalus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001c01c37659$4d38f090$0300000a@antalus> X-OS: FreeBSD 5.1-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: mmap(2) questions, reads not caching X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 03:36:47 -0000 In the last episode (Sep 08), Sean Hamilton said: > I have some code resembling: > > FILE * f = fopen (filename, "rb"); > mmap (NULL, st.st_size, PROT_READ, MAP_PRIVATE, fileno (f), 0); > > I've found that reads are not brought into disk cache. Successive > reads on the same file once again read from disk. If I cat the file > to /dev/null, then the mmap(2) does indeed read the data from cache. > What's going on here? mmap just maps a file to memory. It doesn't force the OS to cache the pages any more than it already does. You can try calling madvsize(M_WILLNEED) and see if that helps. > Also, the man page states that the mapped region may be longer than the > specified size. Does this have any implications for the size which is passed > to munmap(2)? If I pass the same size to munmap(2), then will there still be > leftover, or will the entire region be unmapped? It simply rounds up to the nearest pagesize. If you map 1 byte, you get a page. munmap does the same thing. > And, should I be passing MAP_PRIVATE or MAP_SHARED to read-only mmaps? Does > it make any difference at all? I don't think it matters. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 21:05:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8256016A4BF for ; Mon, 8 Sep 2003 21:05:06 -0700 (PDT) Received: from web13401.mail.yahoo.com (web13401.mail.yahoo.com [216.136.175.59]) by mx1.FreeBSD.org (Postfix) with SMTP id 066B943FF5 for ; Mon, 8 Sep 2003 21:05:06 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030909040505.20005.qmail@web13401.mail.yahoo.com> Received: from [200.91.194.139] by web13401.mail.yahoo.com via HTTP; Mon, 08 Sep 2003 21:05:05 PDT Date: Mon, 8 Sep 2003 21:05:05 -0700 (PDT) From: "Pedro F. Giffuni" To: freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: John Giacomoni cc: Matthew Emmerton Subject: OpenBFS (was Re: C++ code in a kernel module?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 04:05:06 -0000 Hi; Attached is a good reasons why someone my want to use C++ in the kernel. cheers, Pedro. (FWIW, OpenBFS is under an MIT license) _________________________ http://open-beos.sourceforge.net/tms/team.php?id=2 OpenBFS, as all file systems under BeOS, is being developed as a kernel add-on. Unlike all other file systems (and kernel add-ons in general), it is being developed in C++. Contrary to popular belief, it is possible to use C++ in the kernel provided you play by the book and follow some rules: * No exceptions * (Almost) no virtuals (well, the Query code in OpenBFS uses them) * It's basically only the C++ syntax, and type checking * Since one tend to encapsulate everything in classes, it has a slightly higher memory overhead This is acceptable as we get some benefits out of it: * Nicer code * Easier to maintain ______________________ __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 22:15:06 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9A1716A4BF for ; Mon, 8 Sep 2003 22:15:06 -0700 (PDT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id B95A743FF9 for ; Mon, 8 Sep 2003 22:15:04 -0700 (PDT) (envelope-from andreas@klemm.apsfilter.org) Received: from srv1.cosmo-project.de (localhost [IPv6:::1]) by srv1.cosmo-project.de (8.12.9/8.12.9) with ESMTP id h895ExQw048231 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 9 Sep 2003 07:14:59 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: (from uucp@localhost)h895Ewsf048230; Tue, 9 Sep 2003 07:14:58 +0200 (CEST) (envelope-from andreas@klemm.apsfilter.org) Received: from titan.klemm.apsfilter.org (localhost.klemm.apsfilter.org [127.0.0.1]) by klemm.apsfilter.org (8.12.9/8.12.9) with ESMTP id h895CLpC058165; Tue, 9 Sep 2003 07:12:22 +0200 (CEST) (envelope-from andreas@titan.klemm.apsfilter.org) Received: (from andreas@localhost) by titan.klemm.apsfilter.org (8.12.9/8.12.9/Submit) id h895CL7X058164; Tue, 9 Sep 2003 07:12:21 +0200 (CEST) Date: Tue, 9 Sep 2003 07:12:21 +0200 From: Andreas Klemm To: Jeremy Messenger Message-ID: <20030909051221.GA58133@titan.klemm.apsfilter.org> References: <3F589E94.1080508@xwave.com> <20030905154646.GA59881@rot13.obsecurity.org> <20030906213428.GF29217@spc.org> <3F5A8FDB.3050507@newsguy.com> <20030907015510.GG29217@spc.org> <20030908202727.GA49862@titan.klemm.apsfilter.org> <20030908211306.GA50616@titan.klemm.apsfilter.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Operating-System: FreeBSD 5.1-CURRENT X-Disclaimer: A free society is one where it is safe to be unpopular User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: PUzzling sshd behaviour X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 05:15:07 -0000 On Mon, Sep 08, 2003 at 05:02:02PM -0500, Jeremy Messenger wrote: > I use tinydns and dnscache to do the local DNS, so I don't have to touch > the /etc/hosts anymore. The /etc/hosts is just pain in my ass. It solved > all of my SSH and other reverse lookup problems. Current, I have the split > horizon DNS[1] setup for the internal and external DNS queries separate. Ah, this explains it more ;-) Thanks ! Andreas /// -- Andreas Klemm - Powered by FreeBSD 5.1-CURRENT Need a magic printfilter today ? -> http://www.apsfilter.org/ From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 23:30:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58B0A16A4C0 for ; Mon, 8 Sep 2003 23:30:25 -0700 (PDT) Received: from cirb503493.alcatel.com.au (c211-28-27-130.belrs2.nsw.optusnet.com.au [211.28.27.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0EF443FE0 for ; Mon, 8 Sep 2003 23:30:21 -0700 (PDT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1])h896U1gh003173; Tue, 9 Sep 2003 16:30:01 +1000 (EST) (envelope-from jeremyp@cirb503493.alcatel.com.au) Received: (from jeremyp@localhost) by cirb503493.alcatel.com.au (8.12.8/8.12.8/Submit) id h896Tu4R003169; Tue, 9 Sep 2003 16:29:56 +1000 (EST) Date: Tue, 9 Sep 2003 16:29:55 +1000 From: Peter Jeremy To: Alexander Kabaev Message-ID: <20030909062955.GA3139@cirb503493.alcatel.com.au> References: <20030908224611.06027082.kabaev@mail.ru> <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> <20030908231259.4392ce4e.kabaev@mail.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030908231259.4392ce4e.kabaev@mail.ru> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org cc: John Giacomoni cc: Matthew Emmerton Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 06:30:25 -0000 On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: >On Mon, 8 Sep 2003 23:02:33 -0400 >"Matthew Emmerton" wrote: > >> I've been silently following this thread, and unless I missed >> something, has anyone asked John why he wants/needs to use C++ in the >> kernel? >> >Tools, not policy :) True but if John explains more of what he is trying to do, maybe someone can suggest either a way to avoid C++ or some insights as to how he can get his C++ modules to work. Peter From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 23:51:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2B8C16A4BF for ; Mon, 8 Sep 2003 23:51:52 -0700 (PDT) Received: from corpmail.outblaze.com (corpmail.outblaze.com [203.86.166.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FBD743F93 for ; Mon, 8 Sep 2003 23:51:51 -0700 (PDT) (envelope-from yusufg@outblaze.com) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by corpmail.outblaze.com (Postfix) with ESMTP id 9E45537BA4 for ; Tue, 9 Sep 2003 06:51:50 +0000 (GMT) Received: from yusufg.portal2.com (210-177-227-130.outblaze.com [210.177.227.130]) by corpmail.outblaze.com (Postfix) with SMTP id 45DB216DD87 for ; Tue, 9 Sep 2003 06:51:50 +0000 (GMT) Received: (qmail 19439 invoked by uid 500); 9 Sep 2003 07:00:17 -0000 Date: Tue, 9 Sep 2003 15:00:17 +0800 From: Yusuf Goolamabbas To: freebsd-hackers@freebsd.org Message-ID: <20030909070017.GA19395@outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-AntiVirus: checked by Vexira MailArmor (version: 2.0.1.11; VAE: 6.21.0.1; VDF: 6.21.0.38; host: corpmail.outblaze.com) Subject: Perl 5.8.1-RC4 release notes mention FreeBSD malloc upto 200 times slower than perl malloc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 06:51:52 -0000 In the Perl 5.8.1-RC4 release notes posted here http://dev.perl.org/perl5/news/2003/perl-5.8.1-RC4.html it mentions about the Platform specific problems seen by the Perl development team. ---------------------------------------------------------------------- FreeBSD: malloc dilemma The choice of malloc (the C-level memory management interface) when building Perl is problematic in FreeBSD. Using FreeBSD's system malloc for Perl was found to be very slow: in some cases that was 200 times slower than using the Perl malloc. One such case is file input: for example # slurping the whole compressed Perl source code into $a if (open F,"perl-5.8.1.tar.gz") { local $/; $a= } is about 200-250 times slower with the system malloc than with the Perl malloc. One could use Perl's malloc (Configure -Dusemymalloc), but that was found to cause random core dumps in FreeBSD with multithreaded programs. No such problems were found in other platforms, however. A decision was made to stick with the system malloc, regardless of the performance problems. ---------------------------------------------------------------------- Maybe the test case can assist FreeBSD kernel hackers to make malloc faster. Regards, Yusuf From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 8 23:54:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F79016A4BF for ; Mon, 8 Sep 2003 23:54:55 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A346D43FCB for ; Mon, 8 Sep 2003 23:54:53 -0700 (PDT) (envelope-from sos@spider.deepcore.dk) Received: from spider.deepcore.dk (localhost [127.0.0.1]) by spider.deepcore.dk (8.12.9/8.12.9) with ESMTP id h896smIo053044; Tue, 9 Sep 2003 08:54:48 +0200 (CEST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.9/8.12.9/Submit) id h896smnF053043; Tue, 9 Sep 2003 08:54:48 +0200 (CEST) From: Soren Schmidt Message-Id: <200309090654.h896smnF053043@spider.deepcore.dk> In-Reply-To: <1063075297.14383.42.camel@server.ltsp> To: florian mettetal Date: Tue, 9 Sep 2003 08:54:47 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 X-mail-scanned: by DeepCore Virus & Spam killer v1.3 cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Serial ATA 4.8 Installation -help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 06:54:55 -0000 It seems florian mettetal wrote: > Greetings, > > I have built a brand new system founded on an Asus P4PE motherboard, and > using the FastTrack raid function I have turned my two Maxtor 80GB > Serial ATA (now reffered to as SATA) hard drives into a Mirror raid. > > Proceeding to start the installation of FreeBSD 4.8-stable I selected > Standard Install, Press ok at the pop up, then at the following popup I > am confronted with FreeBSD telling me that "No disks found! Please > verify that your disk controller is being properly probed at boot time". > Has anyone else had this issue? Is this problem fixed in FreeBSD 5.X . > What can I do to get this to work in FreeBSD 4.8? 4.x doesn't support the Promise SATA controllers, you need at least 5.1 for that. The -current ATA driver might be backported later this year, nothing definite yet. -Søren From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 00:35:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2008616A4BF for ; Tue, 9 Sep 2003 00:35:35 -0700 (PDT) Received: from mail.broadpark.no (mail.broadpark.no [217.13.4.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 292F743FDD for ; Tue, 9 Sep 2003 00:35:34 -0700 (PDT) (envelope-from des@des.no) Received: from smtp.des.no (37.80-203-228.nextgentel.com [80.203.228.37]) by mail.broadpark.no (Postfix) with ESMTP id 26623789B4; Tue, 9 Sep 2003 09:35:33 +0200 (MEST) Received: by smtp.des.no (Pony Express, from userid 666) id DEEA497B28; Tue, 9 Sep 2003 09:35:32 +0200 (CEST) Received: from dwp.des.no (dwp.des.no [10.0.0.4]) by smtp.des.no (Pony Express) with ESMTP id BF3649776E; Tue, 9 Sep 2003 09:35:28 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id 76B03B822; Tue, 9 Sep 2003 09:35:28 +0200 (CEST) To: Steven Hartland References: <00a301c375f4$66080ee0$b3db87d4@vader> From: des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=) Date: Tue, 09 Sep 2003 09:35:28 +0200 In-Reply-To: <00a301c375f4$66080ee0$b3db87d4@vader> (Steven Hartland's message of "Mon, 8 Sep 2003 11:31:43 +0100") Message-ID: User-Agent: Gnus/5.090024 (Oort Gnus v0.24) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-3.0 required=8.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_GNUS_UA version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: hackers@freebsd.org Subject: Re: linprocfs issues X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 07:35:35 -0000 "Steven Hartland" writes: > Also it seems that linprocfs relies on procfs being mounted > however I cant find any docs that mention this and see no > reason why it should be the case. The problem I see > is that I get errors from linux apps about /proc//file > not existing. When trussing them they are never trying to > open "file" I suspect it is happening when the access either > cmdline or exe most likely exe. linprocfs uses parts of the procfs code; for instance, linprocfs's /exe and procfs's /file are backed by the same code. In the case of /cmdline, which exists with the same name in both FreeBSD and Linux, linprocfs relies on procfs's cmdline to "show through" rather than duplicate it. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 01:08:44 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E848016A4BF for ; Tue, 9 Sep 2003 01:08:44 -0700 (PDT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EE0A44005 for ; Tue, 9 Sep 2003 01:08:42 -0700 (PDT) (envelope-from DougB@freebsd.org) Received: from master.dougb.net (12-234-22-23.client.attbi.com[12.234.22.23](untrusted sender)) by comcast.net (rwcrmhc12) with SMTP id <20030909080841014009g363e>; Tue, 9 Sep 2003 08:08:42 +0000 Date: Tue, 9 Sep 2003 01:08:41 -0700 (PDT) From: Doug Barton To: "Pedro F. Giffuni" In-Reply-To: <20030909040505.20005.qmail@web13401.mail.yahoo.com> Message-ID: <20030909010802.G26496@znfgre.qbhto.arg> References: <20030909040505.20005.qmail@web13401.mail.yahoo.com> Organization: http://www.FreeBSD.org/ X-message-flag: Outlook -- Not just for spreading viruses anymore! MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@FreeBSD.org cc: John Giacomoni cc: Matthew Emmerton Subject: Re: OpenBFS (was Re: C++ code in a kernel module?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 08:08:45 -0000 On Mon, 8 Sep 2003, Pedro F. Giffuni wrote: > Hi; > > Attached is a good reasons why someone my want to use C++ in the kernel. Sorry, I don't see anything here except "this is all we know how to do." But, I'm a curmudgeon. :) Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 07:22:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7979516A4BF; Tue, 9 Sep 2003 07:22:15 -0700 (PDT) Received: from sdf.lonestar.org (ol.freeshell.org [192.94.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FF8D43F93; Tue, 9 Sep 2003 07:22:14 -0700 (PDT) (envelope-from omestre@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:omestre@sdf.lonestar.org [192.94.73.1]) by sdf.lonestar.org (8.12.9/8.12.8) with ESMTP id h89EM9XZ029302; Tue, 9 Sep 2003 14:22:10 GMT Received: (from omestre@localhost) by sdf.lonestar.org (8.12.9/8.12.8/Submit) id h89EM9Gq005295; Tue, 9 Sep 2003 14:22:09 GMT Date: Tue, 9 Sep 2003 14:22:09 +0000 (UTC) From: omestre X-X-Sender: omestre@sdf.lonestar.org To: Josef Karthauser In-Reply-To: <20030902205418.GB30374@genius.tao.org.uk> Message-ID: References: <20030902205418.GB30374@genius.tao.org.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: Booting a machine over the network without pxe. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 14:22:15 -0000 On Tue, 2 Sep 2003, Josef Karthauser wrote: Here is How i have made this task: http://www.freebsd.org/cgi/query-pr.cgi?pr=54383 I guess that is exactly what you want. I have posted a PR, and maybe the FreeBSD devel team "think about it". :) []'s Leal > Date: Tue, 2 Sep 2003 21:54:18 +0100 > From: Josef Karthauser > To: hackers@freebsd.org > Subject: Booting a machine over the network without pxe. > > Does anyone have any experience of booting a machine over the > network, like pxeboot, but without running PXE on a network card. > I imagine that it should be possible to load pxeboot at the boot: > prompt and have everything just work. > > I could really do with booting my laptop into -stable, where it's only > got -current installed. I do however have a -stable server on site with > plenty of disk space. It would be really cool to remote boot of that > via NFS mounts, etc. > > Joe > -- > Josef Karthauser (joe@tao.org.uk) http://www.josef-k.net/ > FreeBSD (cvs meisterk admin and hacker) http://www.uk.FreeBSD.org/ > Physics Particle Theory (student) http://www.pact.cpes.sussex.ac.uk/ > ================ An eclectic mix of fact and theory. ================= > omestre@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 08:33:34 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F0FD916A4BF for ; Tue, 9 Sep 2003 08:33:34 -0700 (PDT) Received: from obsecurity.dyndns.org (adsl-64-169-107-253.dsl.lsan03.pacbell.net [64.169.107.253]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFC9343FE5 for ; Tue, 9 Sep 2003 08:33:30 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from rot13.obsecurity.org (rot13.obsecurity.org [10.0.0.5]) by obsecurity.dyndns.org (Postfix) with ESMTP id 856C366B04; Tue, 9 Sep 2003 08:33:30 -0700 (PDT) Received: by rot13.obsecurity.org (Postfix, from userid 1000) id 7363A4AB; Tue, 9 Sep 2003 08:33:30 -0700 (PDT) Date: Tue, 9 Sep 2003 08:33:30 -0700 From: Kris Kennaway To: Yusuf Goolamabbas Message-ID: <20030909153330.GA5372@rot13.obsecurity.org> References: <20030909070017.GA19395@outblaze.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <20030909070017.GA19395@outblaze.com> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: Re: Perl 5.8.1-RC4 release notes mention FreeBSD malloc upto 200 times slower than perl malloc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 15:33:35 -0000 --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Sep 09, 2003 at 03:00:17PM +0800, Yusuf Goolamabbas wrote: > Maybe the test case can assist FreeBSD kernel hackers to make malloc > faster. This is a FAQ. For any algorithm one can come up with a workload that makes it perform badly. The trick is making it perform well for common workloads, which FreeBSD's malloc does. Kris --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/XfLKWry0BWjoQKURAroyAKDmr/lAhJrkU8QubTe0gnz7OresRACg3uRk QuO7vVQ6ns2oZB59i+JSAFo= =6vZd -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu-- From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 08:58:24 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05C1B16A4BF for ; Tue, 9 Sep 2003 08:58:24 -0700 (PDT) Received: from serl.cs.colorado.edu (serl-fs.cs.colorado.edu [128.138.242.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 559AD43FD7 for ; Tue, 9 Sep 2003 08:58:21 -0700 (PDT) (envelope-from John.Giacomoni@colorado.edu) Received: from colorado.edu (serl.cs.colorado.edu [128.138.242.65]) by serl.cs.colorado.edu (8.12.9/8.12.6) with ESMTP id h89FwKiQ001362 for ; Tue, 9 Sep 2003 09:58:20 -0600 (MDT) Date: Tue, 9 Sep 2003 09:58:19 -0600 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: John Giacomoni To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <20030909062955.GA3139@cirb503493.alcatel.com.au> Message-Id: <6EB7BD63-E2DE-11D7-B54C-0003930719D8@colorado.edu> X-Mailer: Apple Mail (2.552) Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 15:58:24 -0000 On Tuesday, Sep 9, 2003, at 00:29 America/Denver, Peter Jeremy wrote: > On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: >> On Mon, 8 Sep 2003 23:02:33 -0400 >> "Matthew Emmerton" wrote: >> >>> I've been silently following this thread, and unless I missed >>> something, has anyone asked John why he wants/needs to use C++ in the >>> kernel? >>> >> Tools, not policy :) > > True but if John explains more of what he is trying to do, maybe > someone can suggest either a way to avoid C++ or some insights as to > how he can get his C++ modules to work. > > Peter simple, I have preexisting C++ code which we are currently using in userland and wish to push down into the kernel. It would be ideal to keep the source bases the same without a rewrite to C. Admitting of course the possibility of having to modify to be compatible with both use modes. At present I am attempting to see what we can and cannot do in the kernel with C++ John G From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 09:08:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 565C316A4BF for ; Tue, 9 Sep 2003 09:08:26 -0700 (PDT) Received: from smtpout.mac.com (A17-250-248-88.apple.com [17.250.248.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id A070243F93 for ; Tue, 9 Sep 2003 09:08:25 -0700 (PDT) (envelope-from justin@mac.com) Received: from mac.com (smtpin08-en2 [10.13.10.153]) by smtpout.mac.com (Xserve/MantshX 2.0) with ESMTP id h89G8Pib027071 for ; Tue, 9 Sep 2003 09:08:25 -0700 (PDT) Received: from mac.com (12-210-49-211.client.attbi.com [12.210.49.211]) (authenticated bits=0) by mac.com (Xserve/8.12.9/MantshX 2.0) with ESMTP id h89G8Lld017361 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 9 Sep 2003 09:08:23 -0700 (PDT) Date: Tue, 9 Sep 2003 09:08:20 -0700 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v552) From: "Justin C. Walker" To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit In-Reply-To: <6EB7BD63-E2DE-11D7-B54C-0003930719D8@colorado.edu> Message-Id: X-Mailer: Apple Mail (2.552) Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 16:08:26 -0000 On Tuesday, September 9, 2003, at 08:58 AM, John Giacomoni wrote: > > On Tuesday, Sep 9, 2003, at 00:29 America/Denver, Peter Jeremy wrote: > >> On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: >>> On Mon, 8 Sep 2003 23:02:33 -0400 >>> "Matthew Emmerton" wrote: >>> [snip] > simple, I have preexisting C++ code which we are currently > using in userland and wish to push down into the kernel. > > It would be ideal to keep the source bases the same without > a rewrite to C. Admitting of course the possibility of having > to modify to be compatible with both use modes. > > At present I am attempting to see what we can and cannot do > in the kernel with C++ FWIW, Darwin (the underpinnings for Mac OS X) uses C++ for its device drivers. This is done by hewing to a model roughly that of "Embedded C++", compiling statically, and having a separate library that differs from libstdc++ in significant ways. Getting this to work well was non-trivial, but it does work (sadly :-}). If you are trying to get user-mode code to work in the kernel, you are in for an enjoyable year... You can check Apple's Darwin site for available doc (http://developer.apple.com/darwin). The code is available under Apple's open source license (APSL 2.0). Regards, Justin -- /~\ The ASCII Justin C. Walker, Curmudgeon-at-Large \ / Ribbon Campaign X Help cure HTML Email / \ From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 09:59:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCFAE16A4BF for ; Tue, 9 Sep 2003 09:59:02 -0700 (PDT) Received: from mailgate.sri.com (mailgate.SRI.COM [128.18.243.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 8E54B43FD7 for ; Tue, 9 Sep 2003 09:59:01 -0700 (PDT) (envelope-from gilham@csl.sri.com) Received: (qmail 3310 invoked from network); 9 Sep 2003 16:58:50 -0000 Received: from unknown (HELO mailgate.SRI.COM) (127.0.0.1) by mailgate.sri.com with SMTP; 9 Sep 2003 16:58:50 -0000 Received: from quarter.csl.sri.com ([130.107.1.30]) by mailgate.SRI.COM (SAVSMTP 3.1.0.29) with SMTP id M2003090909585014421 for ; Tue, 09 Sep 2003 09:58:50 -0700 Received: from snapdragon.csl.sri.com (snapdragon.csl.sri.com [130.107.19.20]) by quarter.csl.sri.com (8.12.9/8.12.9) with ESMTP id h89GwoFv003456 for ; Tue, 9 Sep 2003 09:58:50 -0700 Message-Id: <200309091658.h89GwoFv003456@quarter.csl.sri.com> To: freebsd-hackers@freebsd.org In-Reply-To: Message from "M. Warner Losh" <20030908.180101.71186801.imp@bsdimp.com> Date: Tue, 09 Sep 2003 09:58:50 -0700 From: Fred Gilham Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 16:59:02 -0000 > I don't know about __gxx_personaility_v0, but your best bet is to > look at the .o's and find where it is referenced. Then back track > it to what function, then to what construct and go from there. The __gxx_personality_v0 stuff is actually related to distinguishing between C++ and Java exceptions. At least that's what I remember from my encounters with the same problem. I haven't been able to retrieve the documentation that explains it, though. It seems to come up when you try to link C++ code with the C linking convention. -- Fred Gilham gilham@csl.sri.com Lisp has jokingly been called "the most intelligent way to misuse a computer". I think that description is a great compliment because it transmits the full flavor of liberation: it has assisted a number of our most gifted fellow humans in thinking previously impossible thoughts. E. Dijkstra From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 10:12:45 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6CEBC16A4BF for ; Tue, 9 Sep 2003 10:12:45 -0700 (PDT) Received: from mail.rdslink.ro (mail.rdslink.ro [193.231.236.20]) by mx1.FreeBSD.org (Postfix) with SMTP id B981743FBD for ; Tue, 9 Sep 2003 10:12:43 -0700 (PDT) (envelope-from enache@rdslink.ro) Received: (qmail 13587 invoked from network); 9 Sep 2003 17:09:16 -0000 Received: from unknown (HELO ratsnest.hole) (81.196.245.219) by mail.rdslink.ro with SMTP; 9 Sep 2003 17:09:16 -0000 Date: Tue, 9 Sep 2003 19:10:23 +0300 From: Enache Adrian To: Yusuf Goolamabbas Message-ID: <20030909161023.GA1398@ratsnest.hole> Mail-Followup-To: Yusuf Goolamabbas , freebsd-hackers@freebsd.org References: <20030909070017.GA19395@outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030909070017.GA19395@outblaze.com> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: Perl 5.8.1-RC4 release notes mention FreeBSD malloc upto 200 times slower than perl malloc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 17:12:45 -0000 On Tue, Sep 09, 2003 a.d., Yusuf Goolamabbas wrote: > # slurping the whole compressed Perl source code into $a > if (open F,"perl-5.8.1.tar.gz") { local $/; $a= } I fortunately fixed that in perl 5.8.1, so when "slurping" regular files the buffer is no longer grown by little steps with realloc. Regards, Adi From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 10:21:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62DCE16A4BF for ; Tue, 9 Sep 2003 10:21:48 -0700 (PDT) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 974FC43FB1 for ; Tue, 9 Sep 2003 10:21:47 -0700 (PDT) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Tue, 9 Sep 2003 13:21:46 -0400 Message-ID: From: Don Bowman To: 'John Giacomoni' , freebsd-hackers@freebsd.org Date: Tue, 9 Sep 2003 13:21:42 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Subject: RE: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 17:21:48 -0000 > From: John Giacomoni [mailto:John.Giacomoni@colorado.edu] > On Tuesday, Sep 9, 2003, at 00:29 America/Denver, Peter Jeremy wrote: > > > On Mon, Sep 08, 2003 at 11:12:59PM -0400, Alexander Kabaev wrote: > >> On Mon, 8 Sep 2003 23:02:33 -0400 > >> "Matthew Emmerton" wrote: > >> > >>> I've been silently following this thread, and unless I missed > >>> something, has anyone asked John why he wants/needs to > use C++ in the > >>> kernel? > >>> > >> Tools, not policy :) > > > > True but if John explains more of what he is trying to do, maybe > > someone can suggest either a way to avoid C++ or some insights as to > > how he can get his C++ modules to work. > > > > Peter > > simple, I have preexisting C++ code which we are currently > using in userland and wish to push down into the kernel. > > It would be ideal to keep the source bases the same without > a rewrite to C. Admitting of course the possibility of having > to modify to be compatible with both use modes. > > At present I am attempting to see what we can and cannot do > in the kernel with C++ Speaking as someone who has implemented this for VxWorks [which is similar to BSD in some ways], its not easy, but its not impossible. here's the things you have to do: libstdc++/libgcc -> need to be linked in. static constructors/destructors need to be called, exception tables need to be linked. libgcc does this and is called from crt. If you want it to work for loadable modules, same deal, call the constructors/add the exception tables when module is loaded. thread-safety model in exception handling needs a .h file written for it and placed in the compiler. I think thr-vxworks.h was the one i wrote. none of this is impossible, or even particularly hard. it will just take some time. I think its very worthwhile, it would allow using e.g. STL, boost, etc in things like ipfw or other add-ins that have complex proprietary and often slower data structures. There's more to life than SLIST. From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 10:26:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BB53116A4BF for ; Tue, 9 Sep 2003 10:26:15 -0700 (PDT) Received: from web13404.mail.yahoo.com (web13404.mail.yahoo.com [216.136.175.62]) by mx1.FreeBSD.org (Postfix) with SMTP id C732244013 for ; Tue, 9 Sep 2003 10:26:14 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030909172614.85913.qmail@web13404.mail.yahoo.com> Received: from [200.91.194.34] by web13404.mail.yahoo.com via HTTP; Tue, 09 Sep 2003 10:26:14 PDT Date: Tue, 9 Sep 2003 10:26:14 -0700 (PDT) From: "Pedro F. Giffuni" To: Doug Barton In-Reply-To: <20030909010802.G26496@znfgre.qbhto.arg> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-hackers@FreeBSD.org Subject: Re: OpenBFS (was Re: C++ code in a kernel module?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 17:26:15 -0000 --- Doug Barton wrote: > On Mon, 8 Sep 2003, Pedro F. Giffuni wrote: > > > Hi; > > > > Attached is a good reasons why someone my want to use C++ in the kernel. > > Sorry, I don't see anything here except "this is all we know how to do." > But, I'm a curmudgeon. :) > To be good in C++ you have to be good in C first (at least in theory) and programmers that feel more "modern" tend to use OO techniques for the new stuff. I have to admit I don't find much of an advantage in C++, but it doesn't make much sense to rewrite existing code or change your programming style to maintain everything in C. Just my $0.02, Pedro. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 12:38:55 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F7D416A4BF for ; Tue, 9 Sep 2003 12:38:55 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4530344008 for ; Tue, 9 Sep 2003 12:38:49 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.9/8.12.3) with ESMTP id h89JcaTX014466; Tue, 9 Sep 2003 13:38:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 09 Sep 2003 13:38:25 -0600 (MDT) Message-Id: <20030909.133825.26534007.imp@bsdimp.com> To: matt@compar.com From: "M. Warner Losh" In-Reply-To: <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> References: <20030908224611.06027082.kabaev@mail.ru> <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> X-Mailer: Mew version 2.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: kabaev@mail.ru cc: John.Giacomoni@colorado.edu Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 19:38:55 -0000 In message: <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> "Matthew Emmerton" writes: : I've been silently following this thread, and unless I missed something, has : anyone asked John why he wants/needs to use C++ in the kernel? I refrained from posting the name of a good neurologist in Boulder that he could go see to get his head checked. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 12:44:49 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15B3E16A4BF for ; Tue, 9 Sep 2003 12:44:49 -0700 (PDT) Received: from mail.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id A8F9A43FE5 for ; Tue, 9 Sep 2003 12:44:47 -0700 (PDT) (envelope-from reichert@numachi.com) Received: (qmail 68931 invoked from network); 9 Sep 2003 19:44:45 -0000 Received: from natto.numachi.com (198.175.254.216) by meisai.numachi.com with SMTP; 9 Sep 2003 19:44:45 -0000 Received: (qmail 60532 invoked by uid 1001); 9 Sep 2003 19:44:45 -0000 Date: Tue, 9 Sep 2003 15:44:45 -0400 From: Brian Reichert To: freebsd-hackers@freebsd.org Message-ID: <20030909194445.GB49411@numachi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: NFS mounts and jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 19:44:49 -0000 I've successfully been exploring using NFS mounts within a jail. It's clear to me that a host box running multiple jails needs to expose that NFS mount to each jail. As far as I know, that means that NFS partition has to be mounted (redundantly?) for each jail, even in (in my case), they'll all be access in the the same way (eg. read-only). This seems to be that you'll quickly run into some effective upper limit as to how many NFS mounts a FreeBSD machine can handle (I'm using 4.7-R for my current experiments.) So, my question(s): - is my assertion correct; that is, do I need to redundantly mount the same NFS partition for each jail for each jail to access it? - if not, is there a mechanism for jails sharing a read-only NFS mountpoint? Thanks for any advice... -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 12:45:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9EEE16A4BF for ; Tue, 9 Sep 2003 12:45:16 -0700 (PDT) Received: from jkh-gw.queasyweasel.com (adsl-64-173-3-158.dsl.sntc01.pacbell.net [64.173.3.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AB0743FE5 for ; Tue, 9 Sep 2003 12:45:13 -0700 (PDT) (envelope-from jkh@queasyweasel.com) Received: from [64.173.15.99] (narcissus.queasyweasel.com [64.173.15.99]) h89JiBVg055151; Tue, 9 Sep 2003 12:44:11 -0700 (PDT) (envelope-from jkh@queasyweasel.com) In-Reply-To: <20030909.133825.26534007.imp@bsdimp.com> References: <20030908224611.06027082.kabaev@mail.ru> <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> <20030909.133825.26534007.imp@bsdimp.com> Mime-Version: 1.0 (Apple Message framework v596) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <192F9C42-E2FE-11D7-9AB2-000393BB9222@queasyweasel.com> Content-Transfer-Encoding: 7bit From: Jordan K Hubbard Date: Tue, 9 Sep 2003 12:45:00 -0700 To: "M. Warner Losh" X-Mailer: Apple Mail (2.596) cc: freebsd-hackers@freebsd.org cc: kabaev@mail.ru cc: John.Giacomoni@colorado.edu cc: matt@compar.com Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 19:45:16 -0000 I can't believe nobody has yet suggested that FreeBSD switch to IOKit... On Sep 9, 2003, at 12:38 PM, M. Warner Losh wrote: > In message: <006101c3767e$d0f48af0$1200a8c0@gsicomp.on.ca> > "Matthew Emmerton" writes: > : I've been silently following this thread, and unless I missed > something, has > : anyone asked John why he wants/needs to use C++ in the kernel? > > I refrained from posting the name of a good neurologist in Boulder > that he could go see to get his head checked. > > Warner > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > -- Jordan K. Hubbard Engineering Manager, BSD technology group Apple Computer From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 12:51:53 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B260016A4BF for ; Tue, 9 Sep 2003 12:51:53 -0700 (PDT) Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8692743FBF for ; Tue, 9 Sep 2003 12:51:52 -0700 (PDT) (envelope-from V.Haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id 6A7EB1B82A1; Tue, 9 Sep 2003 21:51:51 +0200 (CEST) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24108-05; Tue, 9 Sep 2003 21:51:51 +0200 (CEST) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service.sh.cvut.cz (Postfix) with ESMTP id 433031B829E; Tue, 9 Sep 2003 21:51:51 +0200 (CEST) Received: from logout (logout [147.32.127.203]) by logout.sh.cvut.cz (Postfix) with ESMTP id F3DAB3C0B7; Tue, 9 Sep 2003 21:51:58 +0200 (CEST) Date: Tue, 9 Sep 2003 21:51:58 +0200 (CEST) From: Vaclav Haisman To: John Giacomoni In-Reply-To: Message-ID: <20030909214852.K42582-100000@logout.sh.cvut.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at sh.cvut.cz cc: freebsd-hackers@freebsd.org Subject: Re: C++ code in a kernel module? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Sep 2003 19:51:53 -0000 Apart from -fno-rtti and -fno-exceptions you will probably need to use also -ffreestanding. Excerpt from gcc man page: -ffreestanding Assert that compilation takes place in a freestanding environment. This implies -fno-builtin. A freestanding environment is one in which the standard library may not exist, and program startup may not necessarily be at "main". The most obvious example is an OS kernel. This is equivalent to -fno-hosted. Vaclav Haisman From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 17:53:52 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 221F716A4BF for ; Tue, 9 Sep 2003 17:53:52 -0700 (PDT) Received: from serl.cs.colorado.edu (serl-fs.cs.colorado.edu [128.138.242.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B24943FF3 for ; Tue, 9 Sep 2003 17:53:49 -0700 (PDT) (envelope-from John.Giacomoni@colorado.edu) Received: from colorado.edu (serl.cs.colorado.edu [128.138.242.65]) by serl.cs.colorado.edu (8.12.9/8.12.6) with ESMTP id h8A0rmiQ003464 for ; Tue, 9 Sep 2003 18:53:48 -0600 (MDT) Date: Tue, 9 Sep 2003 18:53:48 -0600 Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed From: John Giacomoni To: freebsd-hackers@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <3CF46700-E329-11D7-B54C-0003930719D8@colorado.edu> X-Mailer: Apple Mail (2.552) Subject: Basic C++ fBSD 5.x kernel module X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 00:53:52 -0000 I have succeeded in getting a basic C++ module to function inside the FreeBSD 5.1 kernel. I figured I'd show the small example I have cooked up which uses basic C++ constructs such a new/delete and virtual inheritance. As suggested I have turned off exceptions have been turned off along with RTTI. the source and Makefile can be found at: http://www.cs.colorado.edu/~jgiacomo/fbsd_c++module Things to note are: a) I rolled my own .cc.o extension to the Makefile removed -std=c99 added -fno-exceptions -fno-rtti -fno-builtin -nostdinc++ (-fno-builtin should be implied by -ffreestanding but does not seem to be) b) __unused does not seem to work and needed to be #undef'ed * Any thoughts? c) Constructs of the form "static void const * const" seem to be silently ignored by the compiler. Possibly being 'inlined' in some fashion? * Any thoughts? part is 'c' is problem as various macros, such as MALLOC_DEFINE and DEV_MODULE, use that construct for initialization. thoughts? comments? suggestions? John G From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 18:30:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1024916A4C0 for ; Tue, 9 Sep 2003 18:30:15 -0700 (PDT) Received: from mail.npubs.com (mail.npubs.com [209.66.100.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2538543FDF for ; Tue, 9 Sep 2003 18:30:14 -0700 (PDT) (envelope-from nielsen@memberwebs.com) Resent-Message-Id: From: "Nielsen" To: "Brian Reichert" , References: <20030909194445.GB49411@numachi.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4922.1500 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4925.2800 Message-Id: <20030910011713.AA0FE3FF6C1@mail.npubs.com> Resent-Date: Wed, 10 Sep 2003 01:17:14 +0000 (GMT) Resent-From: nielsen@memberwebs.com (Postfix Filters) Subject: Re: NFS mounts and jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Wed, 10 Sep 2003 01:30:15 -0000 X-List-Received-Date: Wed, 10 Sep 2003 01:30:15 -0000 > As far as I know, that means that NFS partition has to be mounted > (redundantly?) for each jail, even in (in my case), they'll all be > access in the the same way (eg. read-only). Yup, that's right. > - is my assertion correct; that is, do I need to redundantly mount > the same NFS partition for each jail for each jail to access it? As far as I know, yes that's the case. If you're mounting the same system however you may want to look into mount_null. Yes, there are cache issues, and these have been discussed multiple times (see the archives), but I've used null mounts successfully in read-only mode for several years now without problems. Cheers, Nate From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 18:30:48 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8842A16A4BF for ; Tue, 9 Sep 2003 18:30:48 -0700 (PDT) Received: from vivid.phpwebhosting.com (vivid.phpwebhosting.com [69.0.163.233]) by mx1.FreeBSD.org (Postfix) with SMTP id 1FFD843FE3 for ; Tue, 9 Sep 2003 18:30:47 -0700 (PDT) (envelope-from falieson@falsworld.com) Received: (qmail 6446 invoked from network); 10 Sep 2003 01:30:43 -0000 Received: from unknown (HELO ?192.168.2.102?) (12.245.246.70) by vivid.phpwebhosting.com with SMTP; 10 Sep 2003 01:30:43 -0000 From: florian mettetal To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <200309090654.h896smnF053043@spider.deepcore.dk> References: <200309090654.h896smnF053043@spider.deepcore.dk> Content-Type: text/plain; charset=UTF-8 Organization: Message-Id: <1063157444.7313.11.camel@server.ltsp> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 09 Sep 2003 21:30:44 -0400 Content-Transfer-Encoding: 8bit Subject: Re: Serial ATA 4.8 Installation -help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 01:30:48 -0000 On Tue, 2003-09-09 at 02:54, Soren Schmidt wrote: > It seems florian mettetal wrote: > > Greetings, > > > > I have built a brand new system founded on an Asus P4PE motherboard, and > > using the FastTrack raid function I have turned my two Maxtor 80GB > > Serial ATA (now reffered to as SATA) hard drives into a Mirror raid. > > > > Proceeding to start the installation of FreeBSD 4.8-stable I selected > > Standard Install, Press ok at the pop up, then at the following popup I > > am confronted with FreeBSD telling me that "No disks found! Please > > verify that your disk controller is being properly probed at boot time". > > Has anyone else had this issue? Is this problem fixed in FreeBSD 5.X . > > What can I do to get this to work in FreeBSD 4.8? > > 4.x doesn't support the Promise SATA controllers, you need at least 5.1 > for that. The -current ATA driver might be backported later this year, > nothing definite yet. > > -Søren Hmm... I have never setup a mirror Raid before, especially never in FreeBSD 5.1 , I have always been using 4.8 =/ Now, I am at the Select Drives (Second screen) which menas that 5.1 does see my promise SATA raid controller. Now... I have 3 selections to use for drives, ad4, ad6, ar0 First, I have 2 drives, and one is just a mirror of the other. my presumption is to singularly use ar0, but... I really do not know. And as this will someday hopefully be my production server... I wanna set it up right. Any clues anyone? From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 21:40:50 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD2F416A4BF for ; Tue, 9 Sep 2003 21:40:50 -0700 (PDT) Received: from mail.numachi.com (meisai.numachi.com [198.175.254.6]) by mx1.FreeBSD.org (Postfix) with SMTP id B7EA543FAF for ; Tue, 9 Sep 2003 21:40:49 -0700 (PDT) (envelope-from reichert@numachi.com) Received: (qmail 76050 invoked from network); 10 Sep 2003 04:40:49 -0000 Received: from natto.numachi.com (198.175.254.216) by meisai.numachi.com with SMTP; 10 Sep 2003 04:40:49 -0000 Received: (qmail 64472 invoked by uid 1001); 10 Sep 2003 04:40:48 -0000 Date: Wed, 10 Sep 2003 00:40:48 -0400 From: Brian Reichert To: Nielsen Message-ID: <20030910044048.GC49411@numachi.com> References: <20030909194445.GB49411@numachi.com> <20030910011713.AA0FE3FF6C1@mail.npubs.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030910011713.AA0FE3FF6C1@mail.npubs.com> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: NFS mounts and jails X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 04:40:50 -0000 On Wed, Sep 10, 2003 at 01:08:50AM +0000, Nielsen wrote: > > - is my assertion correct; that is, do I need to redundantly mount > > the same NFS partition for each jail for each jail to access it? > > As far as I know, yes that's the case. If you're mounting the same system > however you may want to look into mount_null. Yes, there are cache issues, > and these have been discussed multiple times (see the archives), but I've > used null mounts successfully in read-only mode for several years now > without problems. Thanks for the feedback, let me explore that option... > Cheers, > Nate -- Brian 'you Bastard' Reichert 37 Crystal Ave. #303 Daytime number: (603) 434-6842 Derry NH 03038-1713 USA BSD admin/developer at large From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 21:58:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14E5516A4BF for ; Tue, 9 Sep 2003 21:58:05 -0700 (PDT) Received: from web13404.mail.yahoo.com (web13404.mail.yahoo.com [216.136.175.62]) by mx1.FreeBSD.org (Postfix) with SMTP id 9A01E43FE1 for ; Tue, 9 Sep 2003 21:58:04 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030910045803.1892.qmail@web13404.mail.yahoo.com> Received: from [200.91.194.237] by web13404.mail.yahoo.com via HTTP; Tue, 09 Sep 2003 21:58:03 PDT Date: Tue, 9 Sep 2003 21:58:03 -0700 (PDT) From: "Pedro F. Giffuni" To: freebsd-hackers@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: FYI: NetBSD mmap Improvements X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 04:58:05 -0000 taken from wine HQ: http://www.winehq.com/?issue=186#NetBSD mmap Improvements "On NetBSD (upcoming 1.6.2, and 1.7/2.0-current), there is a new extension flag MAP_TRYFIXED that essentially simulates current Linux mmap behavior: try the mmap() hint first, without clobbering mapped pages, even if the hint falls within traditionally "protected" malloc heap space. If the fixed mapping fails, the block is still mapped at a relocated address, as if mmap were called with no flags set. With this patch, mmapping PE files on NetBSD becomes an order of magnitude faster, as the vfork()-and-mincore() silly walk is avoided altogether. I've implemented the patch as forward-looking, allowing other platforms to add MAP_TRYFIXED to gain the same benefit. (This mmap flag name does not appear to be used in any divergent fashion on any other platform, per my research when picking the flag's name.) " __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 22:56:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FFA716A4BF; Tue, 9 Sep 2003 22:56:25 -0700 (PDT) Received: from mail.cyberonic.com (mail.cyberonic.com [4.17.179.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ABDB43F93; Tue, 9 Sep 2003 22:56:24 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (node-40244c0a.sfo.onnet.us.uu.net [64.36.76.10]) by mail.cyberonic.com (8.12.8/8.12.5) with ESMTP id h8A5xSbi025472; Wed, 10 Sep 2003 01:59:29 -0400 Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.9/8.11.6) id h8A5uLor008632; Tue, 9 Sep 2003 22:56:21 -0700 (PDT) (envelope-from jmg) Date: Tue, 9 Sep 2003 22:56:21 -0700 From: John-Mark Gurney To: omestre Message-ID: <20030910055621.GP39788@funkthat.com> Mail-Followup-To: omestre , Josef Karthauser , hackers@freebsd.org References: <20030902205418.GB30374@genius.tao.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: hackers@freebsd.org Subject: Re: Booting a machine over the network without pxe. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 05:56:25 -0000 omestre wrote this message on Tue, Sep 09, 2003 at 14:22 +0000: > On Tue, 2 Sep 2003, Josef Karthauser wrote: > > Here is How i have made this task: > > http://www.freebsd.org/cgi/query-pr.cgi?pr=54383 > > I guess that is exactly what you want. I have posted a > PR, and maybe the FreeBSD devel team "think about it". :) boot.netif.hostname already exists as kern.hostname. Why create yet another knob for the same value? Why don't you make it parse nfsroot.* from vfs.root.mountfrom? That way you can specify it as nfs:host:/path. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 9 23:13:42 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C32F16A4BF for ; Tue, 9 Sep 2003 23:13:42 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4AAFE43FBD for ; Tue, 9 Sep 2003 23:13:39 -0700 (PDT) (envelope-from sos@spider.deepcore.dk) Received: from spider.deepcore.dk (localhost [127.0.0.1]) by spider.deepcore.dk (8.12.9/8.12.9) with ESMTP id h8A6DYIo063820; Wed, 10 Sep 2003 08:13:34 +0200 (CEST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.9/8.12.9/Submit) id h8A6DXGI063819; Wed, 10 Sep 2003 08:13:33 +0200 (CEST) From: Soren Schmidt Message-Id: <200309100613.h8A6DXGI063819@spider.deepcore.dk> In-Reply-To: <1063157444.7313.11.camel@server.ltsp> To: florian mettetal Date: Wed, 10 Sep 2003 08:13:33 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL99f (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 X-mail-scanned: by DeepCore Virus & Spam killer v1.3 cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Serial ATA 4.8 Installation -help X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 06:13:42 -0000 It seems florian mettetal wrote: > > Now, I am at the Select Drives (Second screen) which menas that 5.1 does > see my promise SATA raid controller. Now... I have 3 selections to use > for drives, ad4, ad6, ar0 > First, I have 2 drives, and one is just a mirror of the other. my > presumption is to singularly use ar0, but... I really do not know. And > as this will someday hopefully be my production server... I wanna set it > up right. You want to use ar0, that's the array.. -Søren From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 06:06:20 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6363D16A4BF for ; Wed, 10 Sep 2003 06:06:20 -0700 (PDT) Received: from smtp.covadmail.net (mx04.covadmail.net [63.65.120.64]) by mx1.FreeBSD.org (Postfix) with SMTP id EEEA243FE0 for ; Wed, 10 Sep 2003 06:06:16 -0700 (PDT) (envelope-from strick@covad.net) Received: (covad.net 17017 invoked from network); 10 Sep 2003 13:06:12 -0000 Received: from unknown (HELO ice.nodomain) (68.164.194.1) by sun-qmail15 with SMTP; 10 Sep 2003 13:06:11 -0000 Received: from ice.nodomain (localhost [127.0.0.1]) by ice.nodomain (8.12.8p1/8.12.8) with ESMTP id h8AD6Ck5001549; Wed, 10 Sep 2003 06:06:12 -0700 (PDT) (envelope-from dan@ice.nodomain) Received: (from dan@localhost) by ice.nodomain (8.12.8p1/8.12.8/Submit) id h8AD6CaF001548; Wed, 10 Sep 2003 06:06:12 -0700 (PDT) Date: Wed, 10 Sep 2003 06:06:12 -0700 (PDT) From: Dan Strick Message-Id: <200309101306.h8AD6CaF001548@ice.nodomain> To: freebsd-hackers@FreeBSD.ORG cc: dan@ice.nodomain Subject: WINE and hyperthreaded P4s X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 13:06:20 -0000 I always get an error like this when I run wine on FreeBSD 5.1: % wine98 sol err:ntdll:RtlpWaitForCriticalSection section 0x5c0ebb00 "../../scheduler/syslevel.c: Win16Mutex" wait timed out in thread 000a, blocked by 0009, retrying (60 sec) My first thought was that I must have botched my kernel, but the generic kernel does the same thing. Then I double checked my kernel config options. It has all the required SYSVxxx options but not USER_LDT (which seems to have gone away in release 5.1). (Is this correct?) My next thought was that wine just didn't work on FreeBSD 5.1. Then I did a mailing list archive search and turned up a brief discussion of what people were using wine for on release 5.1. So why does wine work (more or less as usual) on other people's FreeBSD 5.1 systems but not on mine? What is different about my system? My most recent speculation, which I admit is rather speculative, is that wine somehow discovers that I have a hyperthreaded P4 cpu and tries to do some extra mutiple-threaded thing but fails since I have hyperthreading disabled in the BIOS and I don't run a multiprocessor kernel. I don't really believe this explanation, but at least it is interesting. Can anyone suggest a more likely reason for my wine failures? I guess I could just wait for release 5.2 and see if the problem goes away. Dan Strick strick@covad.net From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 09:41:58 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C57616A4EB for ; Wed, 10 Sep 2003 09:41:58 -0700 (PDT) Received: from unixbeast.com (unixbeast.com [208.210.149.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5054743FE3 for ; Wed, 10 Sep 2003 09:41:57 -0700 (PDT) (envelope-from freebsd@unixbeast.com) Received: from unixbeast.com (localhost [127.0.0.1]) by unixbeast.com (8.12.9/8.11.6) with ESMTP id h8AGfugQ013065 for ; Wed, 10 Sep 2003 11:41:56 -0500 (CDT) (envelope-from freebsd@unixbeast.com) Received: (from freebsd@localhost) by unixbeast.com (8.12.9/8.12.9/Submit) id h8AGfuFe013064 for freebsd-hackers@freebsd.org; Wed, 10 Sep 2003 11:41:56 -0500 (CDT) Date: Wed, 10 Sep 2003 11:41:56 -0500 From: freebsd@unixbeast.com To: freebsd-hackers@freebsd.org Message-ID: <20030910164156.GA13043@unixbeast.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: linksys USB200M X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 16:41:58 -0000 Hello all. I have FreeBSD 5.1 installed from the distribution CD's from FreeBSD.org. I also have a linksys USB200M usb ethernet device that doesn't seem to want to cooporate. It looks from the dmesg that it is almost working. I was just wondering if there is a fix for this yet ? School just started again and I need to access the internet from my machine. Posted is the part of the dmesg that shows whats going on. It just hangs on this forever. Thanks, Dave axe0: Linksys product 0x2226, rev 2.00/0.01, addr 2 axe0: Ethernet address: 00:ee:dd:c3:3c:f0 axe0: read PHY failed axe0: read PHY failed axe0: read PHY failed axe0: read PHY failed miibus1: on axe0 ukphy0: on miibus1 axe0: write PHY failed axe0: read PHY failed axe0: read PHY failed From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 10:36:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 866CA16A4BF for ; Wed, 10 Sep 2003 10:36:26 -0700 (PDT) Received: from hotmail.com (sea2-dav43.sea2.hotmail.com [207.68.164.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0581143FDF for ; Wed, 10 Sep 2003 10:36:23 -0700 (PDT) (envelope-from bnowaq@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 10 Sep 2003 10:36:22 -0700 Received: from 82.35.72.124 by sea2-dav43.sea2.hotmail.com with DAV; Wed, 10 Sep 2003 17:36:22 +0000 X-Originating-IP: [82.35.72.124] X-Originating-Email: [bnowaq@hotmail.com] From: "Hotmail" To: Date: Wed, 10 Sep 2003 18:36:21 +0100 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: X-OriginalArrivalTime: 10 Sep 2003 17:36:22.0746 (UTC) FILETIME=[0D53C3A0:01C377C2] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Debug - help please X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 17:36:26 -0000 Hello! My machine is rebooting everyday. Without reason? - YES, but after set = dumpdev=3D"/dev/ad0s1b" and dumpdir=3D"/var/crash" I've logs =3D = kernel.0 and vmcore.0 [root@box] (17:32) x /var/crash # gdb -k kernel.0 vmcore.0 GNU gdb 4.18 (FreeBSD) Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you = are welcome to change it and/or distribute copies of it under certain = conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for = details. This GDB was configured as "i386-unknown-freebsd"...(no debugging = symbols found)... IdlePTD at phsyical address 0x00591000 initial pcb at physical address 0x004b5fc0 panicstr: page fault panic messages: --- Fatal trap 12: page fault while in kernel mode fault virtual address =3D 0xd4 fault code =3D supervisor read, page not present instruction pointer =3D 0x8:0xc0367590 stack pointer =3D 0x10:0xe8e10e48 frame pointer =3D 0x10:0xe8e10e50 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, def32 1, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 62104 (libhttpd.ep) interrupt mask =3D none trap number =3D 12 panic: page fault syncing disks... 19 done Uptime: 1d6h35m54s dumping to dev #ad/0x20001, offset 1065088 dump ata0: resetting devices .. done 503 502 501 500 499 498 497 496 495 494 493 492 491 490 489 488 487 486 = 485 484 483 482 481 480 479 478 477 476 475 474 473 472 471 470 469 468 = 467 466 465 464 463 462 461 460 459 458 457 456 455 454 453 452 451 450 = 449 448 447 446 445 444 443 442 441 440 439 438 437 436 435 434 433 432 = 431 430 429 428 427 426 425 424 423 422 421 420 419 418 417 416 415 414 = 413 412 411 410 409 408 407 406 405 404 403 402 401 400 399 398 397 396 = 395 394 393 392 391 390 389 388 387 386 385 384 383 382 381 380 379 378 = 377 376 375 374 373 372 371 370 369 368 367 366 365 364 363 362 361 360 = 359 358 357 356 355 354 353 352 351 350 349 348 347 346 345 344 343 342 = 341 340 339 338 337 336 335 334 333 332 331 330 329 328 327 326 325 324 = 323 322 321 320 319 318 317 316 315 314 313 312 311 310 309 308 307 306 = 305 304 303 302 301 300 299 298 297 296 295 294 293 292 291 290 289 288 = 287 286 285 284 283 282 281 280 279 278 277 276 275 274 273 272 271 270 = 269 268 267 266 265 264 263 262 261 260 259 258 257 256 255 254 253 252 = 251 250 249 248 247 246 245 244 243 242 241 240 239 238 237 236 235 234 = 233 232 231 230 229 228 227 226 225 224 223 222 221 220 219 218 217 216 = 215 214 213 212 211 210 209 208 207 206 205 204 203 202 201 200 199 198 = 197 196 195 194 193 192 191 190 189 188 187 186 185 184 183 182 181 180 = 179 178 177 176 175 174 173 172 171 170 169 168 167 166 165 164 163 162 = 161 160 159 158 157 156 155 154 153 152 151 150 149 148 147 146 145 144 = 143 142 141 140 139 138 137 136 135 134 133 132 131 130 129 128 127 126 = 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 = 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 = 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 = 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 = 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 = 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 --- #0 0xc023cfbe in dumpsys () (kgdb) where #0 0xc023cfbe in dumpsys () #1 0xc023cd8f in boot () #2 0xc023d1cd in panic () #3 0xc03bc71b in trap_fatal () #4 0xc03bc3c9 in trap_pfault () #5 0xc03bbf43 in trap () #6 0xc0367590 in vm_page_lookup () #7 0xc03b9df8 in pmap_prefault () #8 0xc035fb66 in vm_fault () #9 0xc03bc35e in trap_pfault () #10 0xc03bbdef in trap () #11 0x8067531 in ?? () #12 0x8067544 in ?? () #13 0x809dd85 in ?? () #14 0x80a5914 in ?? () #15 0x28186fb6 in ?? () #16 0x2825389d in ?? () #17 0x28251c23 in ?? () #18 0x28251cb4 in ?? () #19 0x28261d32 in ?? () #20 0x282656a4 in ?? () #21 0x28265cc0 in ?? () #22 0x28266099 in ?? () #23 0x282667d5 in ?? () #24 0x28266fe3 in ?? () #25 0x8053f63 in ?? () #26 0x8053ea6 in ?? () [root@box] (17:36) x /var/crash # tail vmcore.0 kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled kernel trap 9 with interrupts disabled Could you help me with it? What can I do? What I have to do? From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 10:41:56 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4772316A4BF for ; Wed, 10 Sep 2003 10:41:56 -0700 (PDT) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB8FB44001 for ; Wed, 10 Sep 2003 10:41:55 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id 92C1A1B325; Wed, 10 Sep 2003 10:41:54 -0700 (PDT) From: Wes Peters Organization: Softweyr.com To: Lev Walkin , zera holladay Date: Fri, 5 Sep 2003 11:47:39 -0700 User-Agent: KMail/1.5.2 References: <20030830025645.37066.qmail@web41408.mail.yahoo.com> <3F501A86.4010805@netli.com> In-Reply-To: <3F501A86.4010805@netli.com> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200309051146.35868.wes@softweyr.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: Shared memory question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Sep 2003 17:41:56 -0000 On Friday 29 August 2003 20:31, Lev Walkin wrote: > zera holladay wrote: > > When one uses the term "shared memory" while > > discussing Unix, then what is generally the meaning of > > that term? I have read that some Unixes have "shared > > memory" for "shared objects." > > [...] > > Shared memory is just a chunk of memory which may be > created by one program and attached to (by) many other programs. > Yes, the management (allocation and deallocation) of shared > memory chunks are done in kernel. User space applications > have to use shmget(2), shmat(2), shmdt(2) system calls > to obtain, attach and release the chunk of shared memory. Or mmap(2) with the MAP_SHARED attribute set. -- "Where am I, and what am I doing in this handbasket?" Wes Peters wes@softweyr.com From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 18:24:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3F44916A4BF; Wed, 10 Sep 2003 18:24:07 -0700 (PDT) Received: from smtp6.andrew.cmu.edu (SMTP6.andrew.cmu.edu [128.2.10.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66FF343F75; Wed, 10 Sep 2003 18:24:06 -0700 (PDT) (envelope-from eno@andrew.cmu.edu) Received: from andrew.cmu.edu (BLISS.PDL.CMU.EDU [128.2.134.47]) (user=eno mech=PLAIN (0 bits))h8B1O4il015479 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NOT); Wed, 10 Sep 2003 21:24:05 -0400 Message-ID: <3F5FCEB5.9010407@andrew.cmu.edu> Date: Wed, 10 Sep 2003 21:24:05 -0400 From: Eno Thereska User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: flush on close X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 01:24:07 -0000 In FreeBSD 4.4, I am noticing a huge number of calls to ffs_fsync() (in /sys/ufs/ffs/ffs_vnops.c) when running a benchmark like Postmark. ffs_fsync() flushes all dirty buffers with an open file to disk. Normally this function would be called either because the application writer explicitly flushes the file, or if the syncer daemon or buffer daemon decide it's time for the dirty blocks to go to disk. Neither of these two options is happening. Files are opened and closed very frequently though. I have a suspicion that BSD is using the "flush-on-close" semantic. Could someone confirm or reject this claim? If confirmed, I am wondering how to get rid of it... Thanks Eno From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 19:14:16 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B30D516A4BF for ; Wed, 10 Sep 2003 19:14:16 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id BCF9243FBF for ; Wed, 10 Sep 2003 19:14:13 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 15605 invoked by uid 5013); 11 Sep 2003 02:10:42 -0000 Date: Thu, 11 Sep 2003 03:10:42 +0100 From: Bruce M Simpson To: "Pedro F. Giffuni" Message-ID: <20030911021042.GH29217@spc.org> Mail-Followup-To: Bruce M Simpson , "Pedro F. Giffuni" , freebsd-hackers@FreeBSD.org References: <20030910045803.1892.qmail@web13404.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030910045803.1892.qmail@web13404.mail.yahoo.com> User-Agent: Mutt/1.4.1i Organization: SPC cc: freebsd-hackers@FreeBSD.org Subject: Re: FYI: NetBSD mmap Improvements X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 02:14:16 -0000 On Tue, Sep 09, 2003 at 09:58:03PM -0700, Pedro F. Giffuni wrote: > taken from wine HQ: [snip] Does this make Wine significantly faster for you? Has anybody prepared benchmarks for this? I can take a look at implementing this if it's likely to offer benefits. BMS From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 19:18:22 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 587AD16A4BF for ; Wed, 10 Sep 2003 19:18:22 -0700 (PDT) Received: from hysteria.spc.org (hysteria.spc.org [195.206.69.234]) by mx1.FreeBSD.org (Postfix) with SMTP id 2C23F43FAF for ; Wed, 10 Sep 2003 19:18:21 -0700 (PDT) (envelope-from bms@hysteria.spc.org) Received: (qmail 15631 invoked by uid 5013); 11 Sep 2003 02:14:51 -0000 Date: Thu, 11 Sep 2003 03:14:51 +0100 From: Bruce M Simpson To: Hotmail Message-ID: <20030911021451.GI29217@spc.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Organization: SPC cc: hackers@FreeBSD.org Subject: Re: Debug - help please X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 02:18:22 -0000 On Wed, Sep 10, 2003 at 06:36:21PM +0100, Hotmail wrote: > Hello! > > My machine is rebooting everyday. Without reason? - YES, but after set dumpdev="/dev/ad0s1b" and dumpdir="/var/crash" I've logs = kernel.0 and vmcore.0 Can you try to replicate the problem with a debug kernel? This tells us that the failure happened when something was being prefaulted into a map, but it doesn't tell us which process the map belongs to. If you compile a kernel with debugging symbols, and DDB, you will be able to more accurately pinpoint the problem. BMS From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 10 20:36:29 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D954616A4BF for ; Wed, 10 Sep 2003 20:36:29 -0700 (PDT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04CCF43FAF for ; Wed, 10 Sep 2003 20:36:29 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9/8.12.6) with ESMTP id h8B3aSVI067290 for ; Wed, 10 Sep 2003 20:36:28 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9/8.12.6/Submit) id h8B3aSuG067289; Wed, 10 Sep 2003 20:36:28 -0700 (PDT) Date: Wed, 10 Sep 2003 20:36:28 -0700 (PDT) From: Matthew Dillon Message-Id: <200309110336.h8B3aSuG067289@apollo.backplane.com> To: hackers@freebsd.org Subject: BSDCon pictures available X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 03:36:30 -0000 BSDCon pictures are available as I have time to upload them: http://apollo.backplane.com/BSDCON2003/ -Matt Matthew Dillon From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 07:27:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E10116A4BF for ; Thu, 11 Sep 2003 07:27:05 -0700 (PDT) Received: from sdf.lonestar.org (ol.freeshell.org [192.94.73.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6654843F93 for ; Thu, 11 Sep 2003 07:27:04 -0700 (PDT) (envelope-from omestre@sdf.lonestar.org) Received: from sdf.lonestar.org (IDENT:omestre@sdf.lonestar.org [192.94.73.1]) by sdf.lonestar.org (8.12.9/8.12.8) with ESMTP id h8BEQxIn003506; Thu, 11 Sep 2003 14:26:59 GMT Received: (from omestre@localhost) by sdf.lonestar.org (8.12.9/8.12.8/Submit) id h8BEQxwc026104; Thu, 11 Sep 2003 14:26:59 GMT Date: Thu, 11 Sep 2003 14:26:59 +0000 (UTC) From: omestre X-X-Sender: omestre@sdf.lonestar.org To: John-Mark Gurney In-Reply-To: <20030910055621.GP39788@funkthat.com> Message-ID: References: <20030902205418.GB30374@genius.tao.org.uk> <20030910055621.GP39788@funkthat.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: Booting a machine over the network without pxe. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 14:27:05 -0000 On Tue, 9 Sep 2003, John-Mark Gurney wrote: > boot.netif.hostname already exists as kern.hostname. Why create yet > another knob for the same value? I have used the structures that already exists.. for bootp or pxe purposes... Maybe you did not understand my patch (terrible english :), but I'm using the loader.conf file to set that variables, and that ones (for bootp/pxe) have a pattern, i think that follow it is nice. The variables are (i guess) for autoconfiguration task (in boot)... So boot.netif.hostname is not the same as kern.hostname. But this decision for me is irrelevant, the devel man will decide what is better. :)) Thansk for your motivation. []'s > > Why don't you make it parse nfsroot.* from vfs.root.mountfrom? That way > you can specify it as nfs:host:/path. > > -- > John-Mark Gurney Voice: +1 415 225 5579 > > "All that I will do, has been done, All that I have, has not." > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > omestre@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 10:36:38 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 315E516A4BF for ; Thu, 11 Sep 2003 10:36:38 -0700 (PDT) Received: from bluebox.CS.Princeton.EDU (bluebox.CS.Princeton.EDU [128.112.136.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F15B44008 for ; Thu, 11 Sep 2003 10:36:37 -0700 (PDT) (envelope-from yruan@CS.Princeton.EDU) Received: from oakley (oakley [128.112.169.27])h8BHaZA7026221 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Thu, 11 Sep 2003 13:36:36 -0400 (EDT) Date: Thu, 11 Sep 2003 13:36:35 -0400 (EDT) From: Yaoping Ruan To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: FreeBSD on Intel Server Board SE7501WV2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 17:36:38 -0000 Hello, We plan to install FreeBSD on an Intel Server Board SE7501WV2 with 1 XEON 2.4GHz CPU, 4GB PC2100 DDR memory, and a Seagate 120GB ATA 7200RPM harddisk, and use the server box for high demand SpecWeb99 tests. Does anyone have any experience on this Server Board, and see any compatibility problem here? The reason I am asking is that we had some kernel compatibility issues on other Intel Board. An other question about this box is the two on-board Gigabit Network Controller. Do they work fine on FreeBSD? May I use fiber Giganet NCI like Netgear GA621 on it? Any thoughts/information are welcome. Thanks a lot - Yaoping Ruan ********************* Computer Science Dept. Princeton University ********************* From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 11:01:07 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7932516A4BF for ; Thu, 11 Sep 2003 11:01:07 -0700 (PDT) Received: from pimout1-ext.prodigy.net (pimout1-ext.prodigy.net [207.115.63.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2533D43FAF for ; Thu, 11 Sep 2003 11:01:06 -0700 (PDT) (envelope-from rsharpe@richardsharpe.com) Received: from ns.aus.com (adsl-63-206-121-21.dsl.snfc21.pacbell.net [63.206.121.21])h8BI13Dw161478; Thu, 11 Sep 2003 14:01:04 -0400 Received: from ns.aus.com (durable [127.0.0.1]) by ns.aus.com (8.12.8/8.12.8) with ESMTP id h8BI5F9i003819; Thu, 11 Sep 2003 11:05:16 -0700 Received: from localhost (rsharpe@localhost) by ns.aus.com (8.12.8/8.12.8/Submit) with ESMTP id h8BI5FVZ003815; Thu, 11 Sep 2003 11:05:15 -0700 X-Authentication-Warning: ns.aus.com: rsharpe owned process doing -bs Date: Thu, 11 Sep 2003 11:05:15 -0700 (PDT) From: Richard Sharpe X-X-Sender: rsharpe@ns.aus.com To: Yaoping Ruan In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD on Intel Server Board SE7501WV2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 18:01:07 -0000 On Thu, 11 Sep 2003, Yaoping Ruan wrote: > Hello, > > We plan to install FreeBSD on an Intel Server Board SE7501WV2 with 1 XEON > 2.4GHz CPU, 4GB PC2100 DDR memory, and a Seagate 120GB ATA 7200RPM > harddisk, and use the server box for high demand SpecWeb99 tests. Does > anyone have any experience on this Server Board, and see any compatibility > problem here? The reason I am asking is that we had some kernel > compatibility issues on other Intel Board. Is that the dual-processor-capable borad? If so, I have one of those at home, and it works with FreeBSD 4.7 or so. It certainly has the 7501 chipset in it and 2x1.8GHz Xeons. > An other question about this box is the two on-board Gigabit Network > Controller. Do they work fine on FreeBSD? May I use fiber Giganet NCI like > Netgear GA621 on it? They worked for me. I dunno about the fibre stuff. Regards ----- Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, sharpe[at]ethereal.com, http://www.richardsharpe.com From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 11:02:51 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0325916A4BF for ; Thu, 11 Sep 2003 11:02:51 -0700 (PDT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C7E143FF7 for ; Thu, 11 Sep 2003 11:02:50 -0700 (PDT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 4C87872DA3; Thu, 11 Sep 2003 11:02:50 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 4A59C72DA2; Thu, 11 Sep 2003 11:02:50 -0700 (PDT) Date: Thu, 11 Sep 2003 11:02:50 -0700 (PDT) From: Doug White To: Eno Thereska In-Reply-To: <3F5FCEB5.9010407@andrew.cmu.edu> Message-ID: <20030911110203.I61751@carver.gumbysoft.com> References: <3F5FCEB5.9010407@andrew.cmu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: flush on close X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 18:02:51 -0000 Remove -fs. Don't crosspost, please. On Wed, 10 Sep 2003, Eno Thereska wrote: > In FreeBSD 4.4, I am noticing a huge number of calls > to ffs_fsync() (in /sys/ufs/ffs/ffs_vnops.c) > when running a benchmark like Postmark. Were you using softupdates, or the sync or async mount options? I believe this is correct (and safe) behavior for the default case. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 11:32:14 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F62C16A52C for ; Thu, 11 Sep 2003 11:32:14 -0700 (PDT) Received: from smtp5.andrew.cmu.edu (SMTP5.andrew.cmu.edu [128.2.10.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A77E43F93 for ; Thu, 11 Sep 2003 11:32:13 -0700 (PDT) (envelope-from eno@andrew.cmu.edu) Received: from UNIX46.andrew.cmu.edu (UNIX46.andrew.cmu.edu [128.2.13.176]) (user=eno mech=GSSAPI (0 bits))h8BIWBuO017664; Thu, 11 Sep 2003 14:32:11 -0400 Date: Thu, 11 Sep 2003 14:32:11 -0400 (EDT) From: Eno Thereska To: Doug White In-Reply-To: <20030911110203.I61751@carver.gumbysoft.com> Message-ID: References: <3F5FCEB5.9010407@andrew.cmu.edu> <20030911110203.I61751@carver.gumbysoft.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: flush on close X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 18:32:14 -0000 Doung, Thanks for the quick reply. I am using the default options (noasync, which according to the man pages means that metadata I/O should be done synchronously, while data I/O is asynchronous). Unfortunately, with any of these options (nosync, async or using soft updates), I think the flush-on-close semantics is an orthogonal issue. For example, with the async option, with the flush-on-close semantics, data and metadata are flushed. Please let me know if you have any more hints on this. Thanks Eno On Thu, 11 Sep 2003, Doug White wrote: > Remove -fs. Don't crosspost, please. > > On Wed, 10 Sep 2003, Eno Thereska wrote: > > > In FreeBSD 4.4, I am noticing a huge number of calls > > to ffs_fsync() (in /sys/ufs/ffs/ffs_vnops.c) > > when running a benchmark like Postmark. > > Were you using softupdates, or the sync or async mount options? > > I believe this is correct (and safe) behavior for the default case. > > -- > Doug White | FreeBSD: The Power to Serve > dwhite@gumbysoft.com | www.FreeBSD.org > > From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 12:38:22 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B487716A4BF; Thu, 11 Sep 2003 12:38:22 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0104843FEC; Thu, 11 Sep 2003 12:38:21 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from gamplex.bde.org (katana.zip.com.au [61.8.7.246]) by mailman.zeta.org.au (8.9.3p2/8.8.7) with ESMTP id FAA20462; Fri, 12 Sep 2003 05:38:13 +1000 Date: Fri, 12 Sep 2003 05:38:12 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Eno Thereska In-Reply-To: <3F5FCEB5.9010407@andrew.cmu.edu> Message-ID: <20030912051818.B1339@gamplex.bde.org> References: <3F5FCEB5.9010407@andrew.cmu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-fs@freebsd.org cc: freebsd-hackers@freebsd.org Subject: Re: flush on close X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 19:38:22 -0000 On Wed, 10 Sep 2003, Eno Thereska wrote: > In FreeBSD 4.4, I am noticing a huge number of calls > to ffs_fsync() (in /sys/ufs/ffs/ffs_vnops.c) > when running a benchmark like Postmark. > > ffs_fsync() flushes all dirty buffers with an open file > to disk. Normally this function would be called > either because the application writer explicitly > flushes the file, or if the syncer daemon or buffer daemon > decide it's time for the dirty blocks to go to disk. > > Neither of these two options is happening. Files are opened and closed > very frequently though. I have a suspicion that BSD is using the > "flush-on-close" semantic. > > Could someone confirm or reject this claim? > If confirmed, I am wondering how to get rid of it... ffs_fsync() is (or should be) rarely called except as a result of applications calling fsync(2) or sync(2). It is not normally called by the syncer daemon or buffer daemon (seems to be not at all in 4.4, though -current calls it from vfs-bio.c when there are too many dirty buffers, and benchmarks like postmark might trigger this). In 4.4 the only relevant VOP_FSYNC() seems to be the one in vinvalbuf(). Using lots of vnodes might cause this to be called a lot, but this should only cause a lot of i/o in ffs_fsync() if a lot is really needed. Dirty buffers for vnodes which will soon be deleted are supposed to be discarded in ffs_fsync(). Benchmarks that do lots of i/o to short-lived files tend to cause too much physical i/o, but this is because the i/o is done by the buffer (?) deamon before ffs_fsync() can discard it. Bruce From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 15:43:11 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C5A916A4BF for ; Thu, 11 Sep 2003 15:43:11 -0700 (PDT) Received: from web20504.mail.yahoo.com (web20504.mail.yahoo.com [216.136.226.139]) by mx1.FreeBSD.org (Postfix) with SMTP id EF36E43FE0 for ; Thu, 11 Sep 2003 15:43:10 -0700 (PDT) (envelope-from vijjus@rocketmail.com) Message-ID: <20030911224310.9331.qmail@web20504.mail.yahoo.com> Received: from [63.78.179.4] by web20504.mail.yahoo.com via HTTP; Thu, 11 Sep 2003 15:43:10 PDT Date: Thu, 11 Sep 2003 15:43:10 -0700 (PDT) From: vijay singh To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: help with sendfile code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Sep 2003 22:43:11 -0000 Hello hackers. What would be the FreeBSD 2.1 equivalent of the following sendfile code from uipc_syscalls.c for (off = uap->offset; ; off += xfsize, sbytes += xfsize) { vm_pindex_t pindex; vm_offset_t pgoff; pindex = OFF_TO_IDX(off); retry_lookup: /* * Calculate the amount to transfer. Not to exceed a page, * the EOF, or the passed in nbytes. */ xfsize = obj->un_pager.vnp.vnp_size - off; I have: for (off = uap->offset; ; off += xfsize, sbytes += xfsize) { vm_offset_t pindex; vm_offset_t pgoff; register vn_pager_t vnp = (vn_pager_t) obj->pager->pg_data; pindex = OFF_TO_IDX(off); retry_lookup: /* * Calculate the amount to transfer. Not to exceed a page, * the EOF, or the passed in nbytes. */ xfsize = vnp->vnp_size - off; with OFF_TO_IDX defined as: #define OFF_TO_IDX(off) ((vm_pindex_t)(((int64_t)(off)) >> PAGE_SHIFT)) However this seems to result in xfsize = 0. Could someome please point out what I'm doing wrong? Any help will be greatly appreciated. Kindly CC me. thanks vijay ===== Everytime I scream, I'm killing pain. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 17:04:18 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 656F716A4C0 for ; Thu, 11 Sep 2003 17:04:18 -0700 (PDT) Received: from mail2.dbitech.ca (radius.wavefire.com [64.141.13.252]) by mx1.FreeBSD.org (Postfix) with SMTP id 1913643FEA for ; Thu, 11 Sep 2003 17:04:17 -0700 (PDT) (envelope-from darcy@wavefire.com) Received: (qmail 8388 invoked from network); 12 Sep 2003 00:29:58 -0000 Received: from dbitech.wavefire.com (HELO dbitech) (darcy@64.141.15.253) by radius.wavefire.com with SMTP; 12 Sep 2003 00:29:58 -0000 Content-Type: text/plain; charset="us-ascii" From: Darcy Buskermolen Organization: Wavefire Technologies Corp. To: freebsd-hackers@freebsd.org, freebsd-stable@FreeBSD.org Date: Thu, 11 Sep 2003 17:04:15 -0700 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200309111704.15017.darcy@wavefire.com> Subject: ASUS P4P8x with Intel 865P chipset Boot problems X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 00:04:18 -0000 I have just aquired a few systems based around ASUS P4P8x motherboard wit= h=20 Intel 865P chipset. Attempt to install both 5.1-R and 4.8-20030810 snap h= ave=20 failed. I've turned off every onboard device in the BIOS that is possible= =2E During the install of 5.1 the system hangs at acpi_cpu0: throttling enabled: 8 steps (100% to 12.5%), currently 100%. ad4: DMA limited to UDMA33, non ATA66 cable or device ad4: 156334MB (Maxtor 6Y160L0) [3912632/16/63] at ata2-master UDMA33 acd0: DVD-ROM () at ata3-master UDMA33 Mounting root from UFS:/dev/md0 (at this point the system just sits here) This drive has been tested in another system and does come up as UDMA100 = on=20 this cable. in 4.8 the system hangs at sio0 at port 0x3f8-0x3ff Irq4 flags 0x10 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap or probed irqs 0 ppc0: parallel port not found (at this point it's hung) I'm available all day tomorrow to work through this problem if anybody ne= eds=20 more information please let me know. I'm assuming that this is a problem= =20 with poor/no support for the 865P chipset . Also please cc me on response= s as=20 that I'm not on -hackers --=20 Darcy Buskermolen Wavefire Technologies Corp. ph: 250.717.0200 fx: 250.763.1759 http://www.wavefire.com From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 11 21:34:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B412716A4BF for ; Thu, 11 Sep 2003 21:34:26 -0700 (PDT) Received: from mx1.freebsdsystems.com (mx1.FreeBSDsystems.COM [216.138.197.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9208D43FE3 for ; Thu, 11 Sep 2003 21:34:24 -0700 (PDT) (envelope-from lnb@FreeBSDsystems.COM) Received: (qmail 50351 invoked by uid 0); 12 Sep 2003 04:34:21 -0000 Received: from mx1.freebsdsystems.com (HELO mail.freebsdsystems.com) (lnb@freebsdsystems.com@216.138.197.66) by mx1.freebsdsystems.com with SMTP; 12 Sep 2003 04:34:21 -0000 Received: from h35.c218.tor.velocet.net ([216.138.218.35]) (SquirrelMail authenticated user lnb@freebsdsystems.com) by mail.freebsdsystems.com with HTTP; Fri, 12 Sep 2003 00:34:21 -0400 (EDT) Message-ID: <49202.216.138.218.35.1063341261.squirrel@mail.freebsdsystems.com> In-Reply-To: References: Date: Fri, 12 Sep 2003 00:34:21 -0400 (EDT) From: "Lanny Baron" To: "Richard Sharpe" User-Agent: SquirrelMail/1.4.1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-hackers@freebsd.org cc: Yaoping Ruan Subject: Re: FreeBSD on Intel Server Board SE7501WV2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 04:34:26 -0000 Hi, Personally, Linksys and netgear are pure grade 1 childrens toys. Or pure adulterated CRAP. If you want performance use Intel Pro/1000 Server NICs If you are going to use Fibre, check the hardware list. We use QLogic. Mind you we build the Cadillac of PC Servers :) Regards, Lanny Richard you have SCSI the other person seems to have ATA. Richard Sharpe in the last message apparantly wrote: > On Thu, 11 Sep 2003, Yaoping Ruan wrote: > >> Hello, >> >> We plan to install FreeBSD on an Intel Server Board SE7501WV2 with 1 >> XEON >> 2.4GHz CPU, 4GB PC2100 DDR memory, and a Seagate 120GB ATA 7200RPM >> harddisk, and use the server box for high demand SpecWeb99 tests. Does >> anyone have any experience on this Server Board, and see any >> compatibility >> problem here? The reason I am asking is that we had some kernel >> compatibility issues on other Intel Board. > > Is that the dual-processor-capable borad? If so, I have one of those at > home, and it works with FreeBSD 4.7 or so. It certainly has the 7501 > chipset in it and 2x1.8GHz Xeons. > >> An other question about this box is the two on-board Gigabit Network >> Controller. Do they work fine on FreeBSD? May I use fiber Giganet NCI >> like >> Netgear GA621 on it? > > They worked for me. I dunno about the fibre stuff. > > Regards > ----- > Richard Sharpe, rsharpe[at]ns.aus.com, rsharpe[at]samba.org, > sharpe[at]ethereal.com, http://www.richardsharpe.com > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Lanny Baron Proud to be 100% FreeBSD http://www.FreeBSDsystems.COM Toll Free: 1.877.963.1900 =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 01:58:08 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AE0816A4BF for ; Fri, 12 Sep 2003 01:58:08 -0700 (PDT) Received: from mail.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30F6543F3F for ; Fri, 12 Sep 2003 01:58:07 -0700 (PDT) (envelope-from freebsd@soith.com) Received: from www.fastmail.fm (localhost [127.0.0.1]) by localhost.localdomain (Postfix) with ESMTP id 411EA1C1F04; Fri, 12 Sep 2003 04:58:06 -0400 (EDT) Received: from 10.202.2.132 ([10.202.2.132] helo=www.fastmail.fm) by messagingengine.com with SMTP; Fri, 12 Sep 2003 04:58:06 -0400 Received: by www.fastmail.fm (Postfix, from userid 99) id F0D0B3AF2B; Fri, 12 Sep 2003 04:58:05 -0400 (EDT) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.2 (F2.71; T1.001; A1.51; B2.12; Q2.03) From: "Aaron Wohl" To: "Yaoping Ruan" , freebsd-hackers@freebsd.org Date: Fri, 12 Sep 2003 02:58:05 -0600 X-Epoch: 1063357086 X-Sasl-enc: 4laWRrqbGBfnw74Os71qZw References: In-Reply-To: Message-Id: <20030912085805.F0D0B3AF2B@www.fastmail.fm> Subject: Re: FreeBSD on Intel Server Board SE7501WV2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 08:58:08 -0000 We have two systems with this motherboard. Id recommend looking for a different motherboard. If you find one in the same class let me know what you find Im looking too for our next set of servers. -If you touch anything the bios resets to the default boot order. Its impossible to keep it from renabling PXE boot on both ethernet cards on a regular basis. If one of your interfaces is on a public net anyone nearby subnet wise can take over your machine with a boot server. For years I popped the boot roms out of intel ethernet cards. But now they are soldered in so you can't make them safe. I hope your behind a router if your getting this motherboard. -If you boot the system without a keyboard attached then latter attach one the keyboard doesnt work until next boot -IPMI bios redirect doesnt work for us (lets you fiddle with the bios settings via IPMI) -Compatability issues with AMI g2 card remote console. AMI thought it was compatability problems with the bios -Lockups on reboot -Reset button doesnt work sometimes -IPMI reset doesnt work sometimes (IPMI power off then on usualy works ok) -If using serial bios redirection reset/reboot doesnt fix the baudrate to what the bios settings are -Intel IPMI client doesnt work over an IPSEC tunnel -Intel has a list of certified boards to use in this server. If there is a problem they will only help fix it if you use only these cards -USB cdroms show up as a bootable device but cant be booted. We tried a bunch from compusa and it wont boot off of USB -The 2U chassis we have it in only really has 3 accessible slots for PCI if the cards have connectors. It uses risers where each riser has its own PCI buss segment. We have an adaptec raid controller on one segment. That leaves two PCI slots, one of which the machines wont power up if we have a card in that 2nd slot. Make sure if you get one of these that it comes with all the cards you ever want to put in it and the cards working. Hyperthreading works ok The dual gigabit nics work ok. The ping timeing is a bit wierd (slow on gigabit) dont know why yet, but transfer rate seemed ok. It shows up as em0 and em1. You just need "device em" in your kernel config for it to work right. I havent tried fiber yet. On Thu, 11 Sep 2003 13:36:35 -0400 (EDT), "Yaoping Ruan" said: > Hello, > > We plan to install FreeBSD on an Intel Server Board SE7501WV2 with 1 XEON > 2.4GHz CPU, 4GB PC2100 DDR memory, and a Seagate 120GB ATA 7200RPM > harddisk, and use the server box for high demand SpecWeb99 tests. Does > anyone have any experience on this Server Board, and see any > compatibility > problem here? The reason I am asking is that we had some kernel > compatibility issues on other Intel Board. > > An other question about this box is the two on-board Gigabit Network > Controller. Do they work fine on FreeBSD? May I use fiber Giganet NCI > like > Netgear GA621 on it? > > Any thoughts/information are welcome. > > Thanks a lot > > - Yaoping Ruan > ********************* > Computer Science Dept. > Princeton University > ********************* > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 02:42:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A5EA16A4BF for ; Fri, 12 Sep 2003 02:42:41 -0700 (PDT) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id D10D343FE5 for ; Fri, 12 Sep 2003 02:42:39 -0700 (PDT) (envelope-from kai@freshx.de) Received: from localhost (localhost.freshx.de [127.0.0.1]) by dust.freshx.de (Postfix) with ESMTP id 1D14415E2C0; Fri, 12 Sep 2003 11:42:34 +0200 (CEST) Received: from 127.0.0.1 ( [127.0.0.1]) as user dust0005@localhost by localhost with HTTP; Fri, 12 Sep 2003 11:42:34 +0200 Message-ID: <1063359754.3f61950a074e1@localhost> Date: Fri, 12 Sep 2003 11:42:34 +0200 From: "sapdb@komadev.de" To: Aaron Wohl References: <20030912085805.F0D0B3AF2B@www.fastmail.fm> In-Reply-To: <20030912085805.F0D0B3AF2B@www.fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.0 cc: freebsd-hackers@freebsd.org cc: Yaoping Ruan Subject: Re: FreeBSD on Intel Server Board SE7501WV2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 09:42:41 -0000 Zitat von Aaron Wohl : > We have two systems with this motherboard. Id recommend looking for a > different motherboard. If you find one in the same class let me know > what you find Im looking too for our next set of servers. There are several ones i think : With GB-NIC: ASUS PP-DLW, amibios 8.00.08, seems to eat PC2100 RAM nonECC Intel SE7505VB2, ATI RAGE, SATA, Phoenix server Bios MSI E7505 Master LS2 (msi9121), LSI53c1030 U320 SCSI, Award WKS 6.00 MSI 7505 Master2-F (msi9141), Award WKS 6.00, seems to eat PC2100 RAM nonECC Supermicro Super X5DAL-G,Phonix Bios 4.06, seems to eat PC2100 RAM nonECC Tyan Thunder i7505, firewire, Phoenix Bios 4.06, seems to eat PC2100 RAM nonECC 100 MB NIC: Tyan Tiger i7505, Phoenix Bios 4.06, seems to eat PC2100 RAM nonECC I have no experience though, so any experience infos welcome ! cheers Kai From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 04:43:25 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00FCD16A4BF for ; Fri, 12 Sep 2003 04:43:25 -0700 (PDT) Received: from cs.huji.ac.il (cs.huji.ac.il [132.65.16.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 473EA43FFD for ; Fri, 12 Sep 2003 04:43:24 -0700 (PDT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32] ident=danny) by cs.huji.ac.il with esmtp id 19xmKf-000Meg-00; Fri, 12 Sep 2003 14:43:21 +0300 X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Yaoping Ruan In-reply-to: Your message of Thu, 11 Sep 2003 13:36:35 -0400 (EDT) . Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 12 Sep 2003 14:43:21 +0300 From: Danny Braniss Message-Id: cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD on Intel Server Board SE7501WV2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 11:43:25 -0000 we have some 50 of these, all in intel boxes, SR-something. 80% are runing Mosix/Linux, the rest Freebsd 4.8 and 5.1 so far had few hardware problems, but they were all solved. the bios is not realy for the weak-hearted but i've seen worse. btw, i just installed 2 120GB disks and im getting around 60MGB/s for writing. the onboard nics are RJ45, but maybe there is an option for fiber. danny PS: the console redirect is different between BIOS vers. > Hello, > > We plan to install FreeBSD on an Intel Server Board SE7501WV2 with 1 XEON > 2.4GHz CPU, 4GB PC2100 DDR memory, and a Seagate 120GB ATA 7200RPM > harddisk, and use the server box for high demand SpecWeb99 tests. Does > anyone have any experience on this Server Board, and see any compatibility > problem here? The reason I am asking is that we had some kernel > compatibility issues on other Intel Board. > > An other question about this box is the two on-board Gigabit Network > Controller. Do they work fine on FreeBSD? May I use fiber Giganet NCI like > Netgear GA621 on it? > > Any thoughts/information are welcome. > > Thanks a lot > > - Yaoping Ruan > ********************* > Computer Science Dept. > Princeton University > ********************* > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 12:39:02 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA11216A4BF for ; Fri, 12 Sep 2003 12:39:02 -0700 (PDT) Received: from malasada.lava.net (malasada.lava.net [64.65.64.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id F24ED43F93 for ; Fri, 12 Sep 2003 12:39:01 -0700 (PDT) (envelope-from cliftonr@lava.net) Received: by malasada.lava.net (Postfix, from userid 102) id 1EBA1153A9B; Fri, 12 Sep 2003 09:38:58 -1000 (HST) Date: Fri, 12 Sep 2003 09:38:58 -1000 From: Clifton Royston To: freebsd-hackers@freebsd.org Message-ID: <20030912093858.A15775@tikitechnologies.com> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20030912190042.E0FAD16A4C3@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030912190042.E0FAD16A4C3@hub.freebsd.org>; 12:00:42PM -0700 Subject: Re: flush on close X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Sep 2003 19:39:03 -0000 > Date: Fri, 12 Sep 2003 05:38:12 +1000 (EST) > From: Bruce Evans > Subject: Re: flush on close > To: Eno Thereska > Cc: freebsd-fs@freebsd.org > Message-ID: <20030912051818.B1339@gamplex.bde.org> > Content-Type: TEXT/PLAIN; charset=US-ASCII > > On Wed, 10 Sep 2003, Eno Thereska wrote: > > > In FreeBSD 4.4, I am noticing a huge number of calls > > to ffs_fsync() (in /sys/ufs/ffs/ffs_vnops.c) > > when running a benchmark like Postmark. > > > > ffs_fsync() flushes all dirty buffers with an open file > > to disk. Normally this function would be called > > either because the application writer explicitly > > flushes the file, or if the syncer daemon or buffer daemon > > decide it's time for the dirty blocks to go to disk. > > > > Neither of these two options is happening. Files are opened and closed > > very frequently though. I have a suspicion that BSD is using the > > "flush-on-close" semantic. > > > > Could someone confirm or reject this claim? > > If confirmed, I am wondering how to get rid of it... > > ffs_fsync() is (or should be) rarely called except as a result of > applications calling fsync(2) or sync(2). It is not normally called > by the syncer daemon or buffer daemon (seems to be not at all in 4.4, > though -current calls it from vfs-bio.c when there are too many dirty > buffers, and benchmarks like postmark might trigger this). In 4.4 > the only relevant VOP_FSYNC() seems to be the one in vinvalbuf(). > Using lots of vnodes might cause this to be called a lot, but this > should only cause a lot of i/o in ffs_fsync() if a lot is really needed. > Dirty buffers for vnodes which will soon be deleted are supposed to be > discarded in ffs_fsync(). Benchmarks that do lots of i/o to short-lived > files tend to cause too much physical i/o, but this is because the i/o > is done by the buffer (?) deamon before ffs_fsync() can discard it. > > Bruce Postmark does specifically try to exercise these aspects of the file system by randomly creating/writing/closing/reading/deleting many very small short-lived files in nested directories, causing a lot of meta-data updates. IOW, it will use a lot of both vnodes and inodes, and cause directory data to be updated at an unusually high rate. Its specific intent is to simulate very high volume mail delivery and mail access traffic to a maildir-style format, but it was also written (by Netapp staff) to demonstrate the superiority of NetApp's WAFL file system (over NFS) versus UNIX FFS under this usage pattern. That's a factor to keep in mind, though not a reason to ignore the results as long as they're honest. BSD shouldn't use flush-on-close for the files, but IIRC the volume of file creation and deletion may be triggering extra flushes of directory blocks even under softupdates. It's not the opens and closes, it's the creation and deletion which will get you. -- Clifton -- Clifton Royston -- cliftonr@tikitechnologies.com Tiki Technologies Lead Programmer/Software Architect Did you ever fly a kite in bed? Did you ever walk with ten cats on your head? Did you ever milk this kind of cow? Well we can do it. We know how. If you never did, you should. These things are fun, and fun is good. -- Dr. Seuss From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 19:55:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69CA716A4BF; Fri, 12 Sep 2003 19:55:01 -0700 (PDT) Received: from mail.fs.ei.tum.de (stella.fs.ei.tum.de [129.187.54.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECCE544008; Fri, 12 Sep 2003 19:54:55 -0700 (PDT) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id 8A9B4302A2; Sat, 13 Sep 2003 04:54:49 +0200 (CEST) Received: from hydra.fs.ei.tum.de (hydra.fs.ei.tum.de [192.168.113.23]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by mail.fs.ei.tum.de (Postfix) with ESMTP id F1AD330010; Sat, 13 Sep 2003 04:54:47 +0200 (CEST) Date: Sat, 13 Sep 2003 04:54:44 +0200 From: Simon 'corecode' Schubert Newsgroups: dragonfly.kernel Message-Id: <20030913045444.407b1cd6.corecode@fs.ei.tum.de> X-Newsreader: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="B7CRjE+L9/X=.J3x" X-Virus-Scanned: by AMaViS 0.3.12 cc: stable@freebsd.org cc: hackers@freebsd.org cc: bsd@ibotty.net Subject: Prebinding for DragonFly/FreeBSD-4 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 02:55:01 -0000 --B7CRjE+L9/X=.J3x Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I created patch for DragonFly/FreeBSD-4 for prebinding, based on mdodd@'s patch for FreeBSD-5. The main difference (apart from the target platform) is that the linker needn't be patched. Rtld now uses a hash function to get an unique ID for every ELF object. This has been tested under DragonFly, but should run on FreeBSD-4 too. Feedback appreciated :) cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --B7CRjE+L9/X=.J3x Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/Yob3r5S+dk6z85oRAv2bAJ96rAXnehD4BEYF1H31GA9k4cnfvgCeNYvu /+Uc89wBYEtfNDdFodKmSTY= =YGFU -----END PGP SIGNATURE----- --B7CRjE+L9/X=.J3x-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 19:56:26 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0002D16A4BF; Fri, 12 Sep 2003 19:56:25 -0700 (PDT) Received: from mail.fs.ei.tum.de (stella.fs.ei.tum.de [129.187.54.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EDE943FBD; Fri, 12 Sep 2003 19:56:23 -0700 (PDT) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id 68E31302A2; Sat, 13 Sep 2003 04:56:22 +0200 (CEST) Received: from hydra.fs.ei.tum.de (hydra.fs.ei.tum.de [192.168.113.23]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client did not present a certificate) by mail.fs.ei.tum.de (Postfix) with ESMTP id D5A7E30010; Sat, 13 Sep 2003 04:56:20 +0200 (CEST) Date: Sat, 13 Sep 2003 04:56:17 +0200 From: Simon 'corecode' Schubert Newsgroups: dragonfly.kernel Message-Id: <20030913045617.1533c556.corecode@fs.ei.tum.de> In-Reply-To: <20030913045444.407b1cd6.corecode@fs.ei.tum.de> References: <20030913045444.407b1cd6.corecode@fs.ei.tum.de> X-Newsreader: Sylpheed version 0.9.0claws (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="=.OmJwuvzQ93Hrdv" X-Virus-Scanned: by AMaViS 0.3.12 cc: stable@freebsd.org cc: hackers@freebsd.org cc: bsd@ibotty.net Subject: Re: Prebinding for DragonFly/FreeBSD-4 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 02:56:26 -0000 --=.OmJwuvzQ93Hrdv Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit No-brainer. Get the patch from here: http://chlamydia.fs.ei.tum.de/~corecode/prebind.diff -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.OmJwuvzQ93Hrdv Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/YodUr5S+dk6z85oRAiusAJwLF1nnSvqQM7GRbAx4ED6qYpmBCwCfTIXV unX2oSlpU8u2I2IF3sqRM5s= =PE5J -----END PGP SIGNATURE----- --=.OmJwuvzQ93Hrdv-- From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 20:58:19 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 164EB16A4BF for ; Fri, 12 Sep 2003 20:58:19 -0700 (PDT) Received: from arbornet.org (m-net.arbornet.org [209.142.209.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5869643FF7 for ; Fri, 12 Sep 2003 20:58:18 -0700 (PDT) (envelope-from junsu@m-net.arbornet.org) Received: from m-net.arbornet.org (localhost [127.0.0.1]) by arbornet.org (8.12.3p2/8.11.2) with ESMTP id h8D3wpcE018710 for ; Fri, 12 Sep 2003 23:58:51 -0400 (EDT) (envelope-from junsu@m-net.arbornet.org) Received: (from junsu@localhost) by m-net.arbornet.org (8.12.3p2/8.12.3/Submit) id h8D3wpTR018707; Fri, 12 Sep 2003 23:58:51 -0400 (EDT) Date: Fri, 12 Sep 2003 23:58:51 -0400 (EDT) Message-Id: <200309130358.h8D3wpTR018707@m-net.arbornet.org> From: Jun Su To: hackers@freebsd.org Subject: FW: new pid allocation code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 03:58:19 -0000 Did anyone looke at this new allocation code in the NETBSD. Is it worth porting it to -Current? You can read the major diff here: http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/kern/kern_proc.c.diff?r1=1.60&r2=1.61&f=h Thanks, Jun Su ====================================== Subject: new pid allocation code To: None From: David Laight List: tech-kern Date: 03/11/2003 14:36:30 Hackers, The code below implements a different pid allocation and proc/pgrp lookup algorithm. The main benefits are: - pid and pgrp lookup (by id) doesn't require a search - no dependency on MAXUSERS - automatically scales well to large numbers of processes - small data footprint for small systems - ability to enumerate through all the processes without holding a lock for the entire duration, or having very messy locking rules. (the allproc list and p_list fields could be depracted later). - Largely MP clean The basic idea is to ensure that you allocate a pid number which references an empty slot in the lookup table. To do this a FIFO freelist is linked through the free slots of the lookup table. To avoid reusing pid numbers, the top bits of the pid are incremented each time the slot is reused (the last value is kept in the table). If the table is getting full (ie a pid would be reused in a relatively small number of forks), then the table size is doubled. Orphaned pgrps correctly stop the pid being reused, orphaned sessions keep the pgrp allocated. Below is the main part of the change, there are other bits lurking in fork and exit. If people think this code is ok, I'll sort out a full diff against 'current' (and fix for sparc64). (I've been running this code for months!) David From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 22:29:12 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8673016A4BF; Fri, 12 Sep 2003 22:29:12 -0700 (PDT) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id 898C743F93; Fri, 12 Sep 2003 22:29:11 -0700 (PDT) (envelope-from winter@jurai.net) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h8D5T1kL024924; Sat, 13 Sep 2003 01:29:10 -0400 (EDT) (envelope-from winter@jurai.net) Date: Sat, 13 Sep 2003 01:29:01 -0400 (EDT) From: "Matthew N. Dodd" To: "Simon 'corecode' Schubert" In-Reply-To: <20030913045444.407b1cd6.corecode@fs.ei.tum.de> Message-ID: <20030913012449.Y27896@sasami.jurai.net> References: <20030913045444.407b1cd6.corecode@fs.ei.tum.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: bsd@ibotty.net cc: stable@freebsd.org cc: hackers@freebsd.org Subject: Re: Prebinding for DragonFly/FreeBSD-4 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 05:29:12 -0000 On Sat, 13 Sep 2003, Simon 'corecode' Schubert wrote: > Feedback appreciated :) Prebinding on a per executable basis rather than a per "object" (ELF executable or library) means that when you go to prebind KDE (for example) you run /var out of diskspace :/ I don't yet have a totally satisfactory solution (mostly because I haven't really worked on prebinding for some time.) Hopefully you get some use out of this though. :) -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever | From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 12 22:56:41 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33D5E16A4BF for ; Fri, 12 Sep 2003 22:56:41 -0700 (PDT) Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by mx1.FreeBSD.org (Postfix) with SMTP id C82D543FF2 for ; Fri, 12 Sep 2003 22:56:40 -0700 (PDT) (envelope-from giffunip@yahoo.com) Message-ID: <20030913055640.43397.qmail@web13405.mail.yahoo.com> Received: from [200.91.194.165] by web13405.mail.yahoo.com via HTTP; Fri, 12 Sep 2003 22:56:40 PDT Date: Fri, 12 Sep 2003 22:56:40 -0700 (PDT) From: "Pedro F. Giffuni" To: freebsd-hackers@freebsd.org In-Reply-To: <20030831091544.GA86421@cirb503493.alcatel.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Non-executable mappings now in NetBSD too X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 05:56:41 -0000 Hi again; FWIW, I found the NetBSD commit log: http://mail-index.netbsd.org/source-changes/2003/08/24/0027.html (The OpenBSD i386 specific hacks are pending an update to binutils) cheers, Pedro. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 13 12:16:15 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EA6416A4BF for ; Sat, 13 Sep 2003 12:16:15 -0700 (PDT) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DD1B43FE3 for ; Sat, 13 Sep 2003 12:16:15 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9/8.12.6) with ESMTP id h8DJGEVI085063 for ; Sat, 13 Sep 2003 12:16:14 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9/8.12.6/Submit) id h8DJGEPX085062; Sat, 13 Sep 2003 12:16:14 -0700 (PDT) Date: Sat, 13 Sep 2003 12:16:14 -0700 (PDT) From: Matthew Dillon Message-Id: <200309131916.h8DJGEPX085062@apollo.backplane.com> To: hackers@freebsd.org Subject: FreeBSD DevSummit Pics Available X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 19:16:15 -0000 FreeBSD DevSummit pics are available at: http://apollo.backplane.com/BSDCON2003/ The links at the bottom. About 31 people are attending. -Matt From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 13 08:53:03 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D51116A4BF for ; Sat, 13 Sep 2003 08:53:03 -0700 (PDT) Received: from relay1.softcomca.com (relay1.softcomca.com [168.144.1.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id C734243F75 for ; Sat, 13 Sep 2003 08:53:02 -0700 (PDT) (envelope-from port@lifehost.org) Received: from M2W079.mail2web.com ([168.144.251.189]) by relay1.softcomca.com with Microsoft SMTPSVC(5.0.2195.6713); Sat, 13 Sep 2003 11:53:01 -0400 Message-ID: <157240-22003961315531989@M2W079.mail2web.com> X-Priority: 3 X-Originating-IP: 212.103.167.226 X-URL: http://mail2web.com/ From: "port@lifehost.org" To: hackers@freebsd.org Date: Sat, 13 Sep 2003 11:53:01 -0400 MIME-Version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 13 Sep 2003 15:53:02.0098 (UTC) FILETIME=[1CB13720:01C37A0F] X-Mailman-Approved-At: Sat, 13 Sep 2003 19:23:18 -0700 Subject: FW: Re: ipfw X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: port@lifehost.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Sep 2003 15:53:03 -0000 check down the IPFW part Original Message: ----------------- From: Murray Stokely murray@freebsdmall=2Ecom Date: Fri, 5 Sep 2003 23:58:21 -0700 To: port@lifehost=2Eorg, re@freebsd=2Eorg Subject: Re: ipfw Hi please post to net@ or hackers@FreeBSD=2Eorg or something, this email alias has nothing to do with ipfw support or development=2E - Murray On Fri, Sep 05, 2003 at 04:22:59PM -0700, port@lifehost=2Eorg wrote: > Dear Sir, > I was always thinking if this can be done with > ipfw a mix of the limit set like one rule to set both > dsr-port limit and src-addr limit so in case I want to > allow 50 connection to a port and limit them to be from > unique source address (src-addr 1)=2EI hope this can be > done=2E > regards, -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web=2Ecom/ =2E