From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 00:34:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56D8D16A4CE for ; Sun, 30 May 2004 00:34:15 -0700 (PDT) Received: from VARK.homeunix.com (ar59.lsanca2-4.27.98.47.lsanca2.dsl-verizon.net [4.27.98.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAB2B43D2F for ; Sun, 30 May 2004 00:34:14 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from VARK.homeunix.com (localhost [127.0.0.1]) by VARK.homeunix.com (8.12.10/8.12.10) with ESMTP id i4U7YDaG034931; Sun, 30 May 2004 00:34:13 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by VARK.homeunix.com (8.12.10/8.12.10/Submit) id i4U7YDdb034930; Sun, 30 May 2004 00:34:13 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sun, 30 May 2004 00:34:13 -0700 From: David Schultz To: Geert Hendrickx Message-ID: <20040530073413.GA34869@VARK.homeunix.com> Mail-Followup-To: Geert Hendrickx , freebsd-hackers@FreeBSD.ORG References: <20040529200748.GA87145@lori.mine.nu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040529200748.GA87145@lori.mine.nu> cc: freebsd-hackers@FreeBSD.ORG Subject: Re: documentation on sysctl vm.defer_swapspace_pageouts? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 07:34:15 -0000 On Sat, May 29, 2004, Geert Hendrickx wrote: > where can I find documentation on the vm.defer_swapspace_pageouts > sysctl? LINT only mentions it, without explaining, man sysctl doesn't > mention it at all, and even Google yields very few useful results... vm.defer_swapspace_pageouts causes the system to avoid using swap, if possible. With the option enabled, the VM system will still evict clean pages and read them in again from the filesystem when necessary, but it will only write dirty pages to the swap partition as a last resort. > I was looking for a way to tune swap-usage a bit, I heard Linux has a > "swappiness" setting (telling the kernel how easy it should go with > paging out), and I hoped FreeBSD would have something similar. > vm.defer_swapspace_pageouts might do the trick, but so it seems to be > poorly documented... Take a look at vm.swap_idle_enabled. With that option enabled, the VM system is more proactive in swapping out idle processes, rather than waiting for a low-memory situation to materialize before taking action. From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 02:07:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F6B816A4CE; Sun, 30 May 2004 02:07:20 -0700 (PDT) Received: from asterix.rsu.ru (asterix.rsu.ru [195.208.245.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D36C43D5F; Sun, 30 May 2004 02:07:19 -0700 (PDT) (envelope-from bushman@rsu.ru) Received: from [195.208.252.82] (stinger.cc.rsu.ru [195.208.252.82]) by asterix.rsu.ru (8.12.11/8.12.11) with ESMTP id i4U970hF090924; Sun, 30 May 2004 13:07:00 +0400 (MSD) (envelope-from bushman@rsu.ru) From: Michael Bushkov To: freebsd-hackers@freebsd.org, freebsd-arch@freebsd.org Content-Type: text/plain Organization: Rostov State University Message-Id: <1085908242.2006.44.camel@stinger.cc.rsu.ru> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Sun, 30 May 2004 13:10:42 +0400 Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-104.9 required=5.0 tests=AWL,BAYES_00, USER_IN_WHITELIST autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on asterix.rsu.ru cc: and@rsu.ru cc: bmilekic@technokratis.com cc: nectar@freebsd.org cc: csjp@freebsd.org cc: os@rsu.ru cc: bork@rsu.ru Subject: lookupd 0.2a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: bushman@rsu.ru List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 09:07:20 -0000 Good day! We are glad to anounce a 0.2 version of LookupD implementation for FreeBSD. It was released under BSD license. Currently it has caching system and such modules as: files, dns and ldap. Besides, our modules structure is quite similar to current FreeBSD nsswitch modules structure, so it's quite easy to port existing modules. So as our ldap module is a port of nss_ldap. And it uses the same nss_ldap.conf file. You can download it from here: sources: http://www.rsu.ru/~bushman/lookupd/downloads/0_2_a/lookupd-0.2a.tar.gz port: http://www.rsu.ru/~bushman/lookupd/downloads/0_2_a/lookupd.tar.gz You can use lookupd by plugging it to the FreeBSD nsswitch system as a module (copy nss_lookupd.so to you libraries folder). If you install from port, it will be done automatically. For more information see manual for lookupd(8). We'll be very thankful for any help with testing and developing of this project. Michael Bushkov Rostov State University From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 11:34:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FF4A16A4CE for ; Sun, 30 May 2004 11:34:59 -0700 (PDT) Received: from [192.168.1.2] (AVelizy-151-1-20-232.w82-120.abo.wanadoo.fr [82.120.154.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1266043D31 for ; Sun, 30 May 2004 11:34:58 -0700 (PDT) (envelope-from rmkml@wanadoo.fr) Date: Sun, 30 May 2004 20:35:49 +0200 (CEST) From: rmkml X-X-Sender: rmkml@hp To: hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: question freebsd v4.10 (v4.9.1 ?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 18:34:59 -0000 Hi, I use last freebsd v4.10, and found this : /sbin# /usr/bin/file ./adjkerntz ./adjkerntz: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 4.9.1, statically linked, stripped 4.9.1 ? same binary in /bin /sbin ... Regards Rmkml@Wanadoo.fr From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 12:43:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE7C516A4CE for ; Sun, 30 May 2004 12:43:04 -0700 (PDT) Received: from tx3.oucs.ox.ac.uk (tx3.oucs.ox.ac.uk [163.1.2.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 45AE143D49 for ; Sun, 30 May 2004 12:43:04 -0700 (PDT) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from scan3.oucs.ox.ac.uk ([163.1.2.166] helo=localhost) by tx3.oucs.ox.ac.uk with esmtp (Exim 4.24) id 1BUWD1-0007Jm-NV for hackers@freebsd.org; Sun, 30 May 2004 20:43:03 +0100 Received: from rx3.oucs.ox.ac.uk ([163.1.2.165]) by localhost (scan3.oucs.ox.ac.uk [163.1.2.166]) (amavisd-new, port 25) with ESMTP id 26926-08 for ; Sun, 30 May 2004 20:43:03 +0100 (BST) Received: from gateway.wadham.ox.ac.uk ([163.1.161.253]) by rx3.oucs.ox.ac.uk with smtp (Exim 4.24) id 1BUWD1-0007Jh-A6 for hackers@freebsd.org; Sun, 30 May 2004 20:43:03 +0100 Received: (qmail 8311 invoked by uid 1004); 30 May 2004 19:43:03 -0000 Received: from colin.percival@wadham.ox.ac.uk by gateway by uid 71 with qmail-scanner-1.20 (clamscan: 0.67. sweep: 2.18/3.79. Clear:RC:1(163.1.161.131):. Processed in 0.354376 secs); 30 May 2004 19:43:03 -0000 Received: from dhcp1131.wadham.ox.ac.uk (HELO piii600.wadham.ox.ac.uk) (163.1.161.131) by gateway.wadham.ox.ac.uk with SMTP; 30 May 2004 19:43:02 -0000 Message-Id: <6.1.0.6.1.20040530203643.02e35620@popserver.sfu.ca> X-Sender: cperciva@popserver.sfu.ca (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 6.1.0.6 Date: Sun, 30 May 2004 20:42:55 +0100 To: rmkml From: Colin Percival In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" cc: hackers@freebsd.org Subject: Re: question freebsd v4.10 (v4.9.1 ?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 19:43:05 -0000 At 19:35 30/05/2004, rmkml wrote: >I use last freebsd v4.10, > >and found this : > >/sbin# /usr/bin/file ./adjkerntz >./adjkerntz: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 4.9.1, statically linked, stripped > >4.9.1 ? Yes. Similarly, FreeBSD 5.x binaries are identified as FreeBSD 5.0.x. Simply put, the format of __FreeBSD_version changed, and file(1) hasn't been fixed. Colin Percival From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 14:08:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95E5E16A4CE for ; Sun, 30 May 2004 14:08:09 -0700 (PDT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5FDE43D58 for ; Sun, 30 May 2004 14:08:08 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i4UL65rr086584; Sun, 30 May 2004 15:06:05 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 30 May 2004 15:06:30 -0600 (MDT) Message-Id: <20040530.150630.101560519.imp@bsdimp.com> To: rmkml@wanadoo.fr From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: question freebsd v4.10 (v4.9.1 ?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 21:08:09 -0000 In message: rmkml writes: : Hi, : : I use last freebsd v4.10, : : and found this : : : /sbin# /usr/bin/file ./adjkerntz : ./adjkerntz: ELF 32-bit LSB executable, Intel 80386, version 1 : (FreeBSD), for FreeBSD 4.9.1, statically linked, stripped : : 4.9.1 ? : : same binary in /bin /sbin ... __FreeBSD_version is encoded into the headers. 4.10 is encoded as 4.9.1 because there's no way to encode 4.10. There should be code in file to cope with this anomaly (5.x encodes differently than 4.x, but only just a little), but there isn't. Warner From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 14:51:58 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2164E16A4CE; Sun, 30 May 2004 14:51:58 -0700 (PDT) Received: from ioskeha.hittite.isp.9tel.net (ioskeha.hittite.isp.9tel.net [62.62.156.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95EE343D41; Sun, 30 May 2004 14:51:57 -0700 (PDT) (envelope-from clefevre-lists@9online.fr) Received: from pc2k (200-62-118-80.kaptech.net [80.118.62.200]) by ioskeha.hittite.isp.9tel.net (Postfix) with SMTP id 374A517B465; Sun, 30 May 2004 23:52:43 +0200 (CEST) Message-ID: <027001c44690$4cefb7b0$7890a8c0@dyndns.org> From: "Cyrille Lefevre" To: "Robert Watson" References: Date: Sun, 30 May 2004 23:51:44 +0200 Organization: ACME 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.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 cc: Hackers FreeBSD Subject: Re: Darwin cmd import? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 May 2004 21:51:58 -0000 "Robert Watson" wrote: > On Fri, 28 May 2004, Cyrille Lefevre wrote: > > > regarding the APSL (http://www.opensource.apple.com/apsl/), do you think > > it is possible to import some darwin commands w/ mods. [snip] > The FreeBSD Core Team took a look at the APSL a while back, and decided > that similar to LGPL/GPL, it was an acceptable license for use in > userspace for stand-alone tools, but that similar protections to LGPL/GPL > would be required for kernel code (not built by default, carefully marked, > etc). That said, Apple tends to release only code they've heavily > rewritten or created from scratch under APSL; code they modify tends to > remain under the existing license (CMU, BSD, etc). Generally they're > careful to label the license on the download page. thanks for lighting me :) Cyrille Lefevre. -- home: mailto:cyrille.lefevre@laposte.net From owner-freebsd-hackers@FreeBSD.ORG Sun May 30 19:24:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFE1116A4CE for ; Sun, 30 May 2004 19:24:20 -0700 (PDT) Received: from sana.init-main.com (104.194.138.210.bn.2iij.net [210.138.194.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 30C1E43D5A for ; Sun, 30 May 2004 19:24:16 -0700 (PDT) (envelope-from takawata@init-main.com) Received: from init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.12.11/8.12.11) with ESMTP id i4V2M1YQ040116 for ; Mon, 31 May 2004 11:22:01 +0900 (JST) (envelope-from takawata@init-main.com) Message-Id: <200405310222.i4V2M1YQ040116@sana.init-main.com> To: freebsd-hackers@freebsd.org From: takawata@jp.freebsd.org Date: Mon, 31 May 2004 11:22:01 +0900 Sender: takawata@init-main.com Subject: uaudio patch for accepts only fixed sampling rate X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 02:24:21 -0000 Hi, I bought a USB speaker that accepts 48khz audio bitrate only. And current uaudio code try to set if device cannot accept bitrate change request. So I wrote a patch http://www.init-main.com/uaudio.diff This code is partly copy-n-paste from NetBSD specific part now. With this code, upper layer can see it is not acceptable and invoke format converter. From owner-freebsd-hackers@FreeBSD.ORG Mon May 31 10:20:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F069216A4CE for ; Mon, 31 May 2004 10:20:44 -0700 (PDT) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8088D43D5A for ; Mon, 31 May 2004 10:20:44 -0700 (PDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id i4VHL1K0093510; Mon, 31 May 2004 13:21:01 -0400 (EDT) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id i4VHKv5L093509; Mon, 31 May 2004 13:20:57 -0400 (EDT) Date: Mon, 31 May 2004 13:20:57 -0400 From: Mathew Kanner To: takawata@jp.freebsd.org Message-ID: <20040531172057.GD92188@cnd.mcgill.ca> References: <200405310222.i4V2M1YQ040116@sana.init-main.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200405310222.i4V2M1YQ040116@sana.init-main.com> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=no version=2.62 X-Spam-Checker-Version: SpamAssassin 2.62 (2004-01-11) on hak.cnd.mcgill.ca cc: freebsd-hackers@freebsd.org Subject: Re: uaudio patch for accepts only fixed sampling rate X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 17:20:45 -0000 On May 30, takawata@jp.freebsd.org wrote: > Hi, I bought a USB speaker that accepts > 48khz audio bitrate only. And current uaudio code > try to set if device cannot accept bitrate change request. > > So I wrote a patch > > http://www.init-main.com/uaudio.diff > > This code is partly copy-n-paste from NetBSD specific > part now. With this code, upper layer can see it is > not acceptable and invoke format converter. Hey, I'm also working on USB audio. It just doesn't work for me and I'm getting a ton locking issues. At the moment, I've merged most of the netbsd uaudio stuff. My question to you is, does uaudio work in fbsd 5+ for you? --Mat -- In general, a standard is very useful, whether it's de facto or du jour. - Microsoft's Greg Sullivan as misquoted by News.Com From owner-freebsd-hackers@FreeBSD.ORG Mon May 31 14:51:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA0C316A4CE; Mon, 31 May 2004 14:51:01 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D97043D55; Mon, 31 May 2004 14:51:01 -0700 (PDT) (envelope-from bmilekic@FreeBSD.org) Received: from freefall.freebsd.org (bmilekic@localhost [127.0.0.1]) i4VLp1Ih060519; Mon, 31 May 2004 14:51:01 -0700 (PDT) (envelope-from bmilekic@freefall.freebsd.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i4VLp1MW060518; Mon, 31 May 2004 14:51:01 -0700 (PDT) (envelope-from bmilekic) Date: Mon, 31 May 2004 14:51:01 -0700 From: Bosko Milekic To: freebsd-current@freebsd.org Message-ID: <20040531215101.GA60299@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org Subject: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 21:51:01 -0000 (Hello Chris Haalboom? :-)) Hello, In order to avoid having to type everything again, I'll refer to the commit log. PLEASE READ IT IN FULL: Bring in mbuma to replace mballoc. mbuma is an Mbuf & Cluster allocator built on top of a number of extensions to the UMA framework, all included herein. Extensions to UMA worth noting: - Better layering between slab <-> zone caches; introduce Keg structure which splits off slab cache away from the zone structure and allows multiple zones to be stacked on top of a single Keg (single type of slab cache); perhaps we should look into defining a subset API on top of the Keg for special use by malloc(9), for example. - UMA_ZONE_REFCNT zones can now be added, and reference counters automagically allocated for them within the end of the associated slab structures. uma_find_refcnt() does a kextract to fetch the slab struct reference from the underlying page, and lookup the corresponding refcnt. mbuma things worth noting: - integrates mbuf & cluster allocations with extended UMA and provides caches for commonly-allocated items; defines several zones (two primary, one secondary) and two kegs. - change up certain code paths that always used to do: m_get() + m_clget() to instead just use m_getcl() and try to take advantage of the newly defined secondary Packet zone. - netstat(1) and systat(1) quickly hacked up to do basic stat reporting but additional stats work needs to be done once some other details within UMA have been taken care of and it becomes clearer to how stats will work within the modified framework. >From the user perspective, one implication is that the NMBCLUSTERS compile-time option is no longer used. The maximum number of clusters is still capped off according to maxusers, but it can be made unlimited by setting the kern.ipc.nmbclusters boot-time tunable to zero. Work should be done to write an appropriate sysctl handler allowing dynamic tuning of kern.ipc.nmbclusters at runtime. Additional things worth noting/known issues (READ): - One report of 'ips' (ServeRAID) driver acting really slow in conjunction with mbuma. Need more data. Latest report is that ips is equally sucking with and without mbuma. - Giant leak in NFS code sometimes occurs, can't reproduce but currently analyzing; brueffer is able to reproduce but THIS IS NOT an mbuma-specific problem and currently occurs even WITHOUT mbuma. - Issues in network locking: there is at least one code path in the rip code where one or more locks are acquired and we end up in m_prepend() with M_WAITOK, which causes WITNESS to whine from within UMA. Current temporary solution: force all UMA allocations to be M_NOWAIT from within UMA for now to avoid deadlocks unless WITNESS is defined and we can determine with certainty that we're not holding any locks when we're M_WAITOK. - I've seen at least one weird socketbuffer empty-but- mbuf-still-attached panic. I don't believe this to be related to mbuma but please keep your eyes open, turn on debugging, and capture crash dumps. This change removes more code than it adds. A paper is available detailing the change and considering various performance issues, it was presented at BSDCan2004: http://www.unixdaemons.com/~bmilekic/netbuf_bmilekic.pdf Please read the paper for Future Work and implementation details, as well as credits. Testing and Debugging: rwatson, brueffer, Ketrien I. Saihr-Kesenchedra, ... Reviewed by: Lots of people (for different parts) SHOULD YOU HAVE ANY ISSUES: - Turn on INVARIANTS - Turn on WITNESS - Send stack trace and if possible capture crash dump - Might require further information from you, please provide reachable Email address. - When you Email me, please include "MBUMA" in the Subject line. Cheers, Bosko From owner-freebsd-hackers@FreeBSD.ORG Mon May 31 15:56:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D056416A4CE for ; Mon, 31 May 2004 15:56:27 -0700 (PDT) Received: from sana.init-main.com (104.194.138.210.bn.2iij.net [210.138.194.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B49143D48 for ; Mon, 31 May 2004 15:56:25 -0700 (PDT) (envelope-from takawata@init-main.com) Received: from init-main.com (localhost [127.0.0.1]) by sana.init-main.com (8.12.11/8.12.11) with ESMTP id i4VMrd4C044360; Tue, 1 Jun 2004 07:53:39 +0900 (JST) (envelope-from takawata@init-main.com) Message-Id: <200405312253.i4VMrd4C044360@sana.init-main.com> To: Mathew Kanner From: takawata@jp.freebsd.org In-reply-to: Your message of "Mon, 31 May 2004 13:20:57 -0400." <20040531172057.GD92188@cnd.mcgill.ca> Date: Tue, 01 Jun 2004 07:53:39 +0900 Sender: takawata@init-main.com cc: freebsd-hackers@freebsd.org Subject: Re: uaudio patch for accepts only fixed sampling rate X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 May 2004 22:56:27 -0000 In message <20040531172057.GD92188@cnd.mcgill.ca>, Mathew Kanner wrote: >On May 30, takawata@jp.freebsd.org wrote: >> Hi, I bought a USB speaker that accepts >> 48khz audio bitrate only. And current uaudio code >> try to set if device cannot accept bitrate change request. >> >> So I wrote a patch >> >> http://www.init-main.com/uaudio.diff >> >> This code is partly copy-n-paste from NetBSD specific >> part now. With this code, upper layer can see it is >> not acceptable and invoke format converter. > > Hey, > I'm also working on USB audio. It just doesn't work for me >and I'm getting a ton locking issues. At the moment, I've merged most >of the netbsd uaudio stuff. My question to you is, does uaudio work >in fbsd 5+ for you? Yes, it works for me. And I found a bug that will break unit management for pcm layer. It is already committed. From owner-freebsd-hackers@FreeBSD.ORG Mon May 31 22:37:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E8AB16A4CE for ; Mon, 31 May 2004 22:37:02 -0700 (PDT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1382B43D46 for ; Mon, 31 May 2004 22:37:01 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i515aJZQ059086; Tue, 1 Jun 2004 15:06:19 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 1 Jun 2004 15:05:58 +0930 User-Agent: KMail/1.6.2 References: <200405310222.i4V2M1YQ040116@sana.init-main.com> <20040531172057.GD92188@cnd.mcgill.ca> In-Reply-To: <20040531172057.GD92188@cnd.mcgill.ca> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406011506.13985.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Mathew Kanner Subject: Re: uaudio patch for accepts only fixed sampling rate X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 05:37:02 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 1 Jun 2004 02:50, Mathew Kanner wrote: > I'm also working on USB audio. It just doesn't work for me > and I'm getting a ton locking issues. At the moment, I've merged most > of the netbsd uaudio stuff. My question to you is, does uaudio work > in fbsd 5+ for you? Not that I am doing development on it, but "me too" :) I have an M-Audio USB audio device which used to work OK in stable, but=20 doesn't in -current :( I am cvsup'ing to get the latest stuff and I will try it out and see how it= =20 goes. =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAvBXN5ZPcIHs/zowRAhgIAKClWFLB9jy9Q9duFXZl3r8ny/+ELgCeLeI+ +DzySy/MOw4stpBdgPsjRQM=3D =3DUqnF =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 1 12:59:34 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1069516A4CE for ; Tue, 1 Jun 2004 12:59:34 -0700 (PDT) Received: from mail2.vcu.edu (mail2.vcu.edu [128.172.1.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DBB043D2D for ; Tue, 1 Jun 2004 12:59:31 -0700 (PDT) (envelope-from martes.wigglesworth@earthlink.net) Received: from Micronet2.local ([207.226.46.5]) by mail2.vcu.edu (8.12.0/8.11.3) with ESMTP id i51JxOqh508496 for ; Tue, 1 Jun 2004 15:59:27 -0400 From: Martes G Wigglesworth To: freebsd-hackers@freebsd.org In-Reply-To: <20040527190044.7477916A4D5@hub.freebsd.org> References: <20040527190044.7477916A4D5@hub.freebsd.org> Content-Type: text/plain Message-Id: <1085928129.1614.16.camel@Micronet2.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 01 Jun 2004 23:59:15 -0300 Content-Transfer-Encoding: 7bit Subject: Good Information about ipfw X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: martes.wigglesworth@us.army.mil List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 19:59:34 -0000 Is there a good, definitive, source of information for implementing ipfw firewall rules. I had to research for almost a week just to find out how to do bandwidth limiting with freebsd. (3days just to find out if freebsd does this, and then another two just to find out what dummynet is, and then I found out that it was in the man page.) Where is the list of all these obscure programs, and features, that are not a unreadable as most man pages. I would also like to know what the point of most manpages are. 90 percent of them just list abitrary commands, as though you are supposed to know how to use the program in the first place. There are almost never any useful informatin about implementing the program that the manpage is supposed to explain, but does not. I have not been able to locate any book on the one firewall, that seems to be at the heart of any good Freebsd firewall setup. Please help this wayward soul. Thanks fellow bsders. From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 1 12:59:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2537716A4CE for ; Tue, 1 Jun 2004 12:59:40 -0700 (PDT) Received: from mail2.vcu.edu (mail2.vcu.edu [128.172.1.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id DBBDC43D39 for ; Tue, 1 Jun 2004 12:59:39 -0700 (PDT) (envelope-from martes.wigglesworth@earthlink.net) Received: from Micronet2.local ([207.226.46.5]) by mail2.vcu.edu (8.12.0/8.11.3) with ESMTP id i51JxYqh382942 for ; Tue, 1 Jun 2004 15:59:37 -0400 From: Martes G Wigglesworth To: freebsd-hackers@freebsd.org In-Reply-To: <20040527190044.7477916A4D5@hub.freebsd.org> References: <20040527190044.7477916A4D5@hub.freebsd.org> Content-Type: text/plain Message-Id: <1086145154.1725.5.camel@Micronet2.local> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4 Date: Tue, 01 Jun 2004 23:59:25 -0300 Content-Transfer-Encoding: 7bit Subject: Good Information about ipfw X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: martes.wigglesworth@us.army.mil List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 19:59:40 -0000 Is there a good, definitive, source of information for implementing ipfw firewall rules. I am familiar with the man pages, howerver, a list of arbitrary functionality, without any clue as to how to actually empliment them is of no use to me. I am in Mozul, Iraq, and I have limited time on the Internet, and far less resources than I did before I got activated to come over here. I would also like to know what the point of most man pages are. 90 percent of them just list arbitrary commands, as though you are supposed to know how to use the program in the first place. There are almost never any useful information about implementing the program that the manpage is supposed to explain, but does not. I have not been able to locate any book on the one firewall, that seems to be at the heart of any good Freebsd firewall setup. Please help this wayward soul. Thanks fellow BSDers. System: HP Pavilion ze5700 w/ Inetel Celeron 2.8ghz; 256MB ram; 30gig hdd OS: FreeBSD 5.2.1-RELEASE From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 1 13:22:00 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C46C216A4CE for ; Tue, 1 Jun 2004 13:22:00 -0700 (PDT) Received: from shaolin.wccnet.org (shaolin.wccnet.org [198.111.176.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62B7843D48 for ; Tue, 1 Jun 2004 13:22:00 -0700 (PDT) (envelope-from anthony@shaolin.wccnet.org) Received: from shaolin.wccnet.org (localhost.wccnet.org [127.0.0.1]) by shaolin.wccnet.org (8.12.11/8.12.2) with ESMTP id i51KL1ox036836; Tue, 1 Jun 2004 16:21:01 -0400 (EDT) Received: (from anthony@localhost) by shaolin.wccnet.org (8.12.11/8.12.3/Submit) id i51KL1Cl036835; Tue, 1 Jun 2004 16:21:01 -0400 (EDT) Date: Tue, 1 Jun 2004 16:21:01 -0400 From: Anthony Schneider To: Cyrille Lefevre Message-ID: <20040601202101.GA35734@x-anthony.com> References: <00ce01c44458$8a28d880$7890a8c0@dyndns.org> <20040527212759.77c409a7@vixen42.24-119-122-191.cpe.cableone.net> <022301c4449f$df350820$7890a8c0@dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <022301c4449f$df350820$7890a8c0@dyndns.org> User-Agent: Mutt/1.4i cc: Hackers FreeBSD cc: Vulpes Velox Subject: Re: Darwin cmd import? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 20:22:00 -0000 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 28, 2004 at 12:38:10PM +0200, Cyrille Lefevre wrote: > "Vulpes Velox" wrote: > > On Fri, 28 May 2004 04:07:32 +0200 > > "Cyrille Lefevre" wrote: =2E..=20 > http://www.opensource.apple.com/darwinsource/10.3.4/bootstrap_cmds-44/ > http://www.opensource.apple.com/darwinsource/10.3.4/system_cmds-279.6/ >=20 > if the above link need to be registered, > let's try google "darwin +decomment" :) >=20 > > If decomment does what it sounds like, then it can be solved using > > grep... iirc it is possible to tell it to kick out all lines that do > > not match a patern... >=20 > thank you, but decomment isn't just a grep oneliner :P >=20 > relpath - calculate the relative path between two path. > decomment - get rid of C/C++ comments. > sadc/sar - system activity reporter (ac like, but more powerfull). decomment, assuming it simply strips c/c++ comments from source files, could be implemented with a few lines of a lex spec. -Anthony. > Cyrille Lefevre. > --=20 > home: mailto:cyrille.lefevre@laposte.net > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAvOUsKUeW47UGY2kRAhOBAKCABc6XMVTKtyCxci8xFnp8m3tQ4gCfdbbY czeIuDOKoqgZRncTRSzH1B4= =wMYp -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 1 13:33:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BA2516A4CE for ; Tue, 1 Jun 2004 13:33:47 -0700 (PDT) Received: from smtp.k12us.com (smtp.k12us.com [65.112.222.15]) by mx1.FreeBSD.org (Postfix) with SMTP id D768043D54 for ; Tue, 1 Jun 2004 13:33:46 -0700 (PDT) (envelope-from csw@k12hq.com) Received: (qmail 33534 invoked by uid 1001); 1 Jun 2004 20:33:46 -0000 Date: Tue, 1 Jun 2004 16:33:46 -0400 From: Christopher Weimann To: martes.wigglesworth@us.army.mil Message-ID: <20040601203346.GA7362@smtp.k12us.com> References: <20040527190044.7477916A4D5@hub.freebsd.org> <1085928129.1614.16.camel@Micronet2.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1085928129.1614.16.camel@Micronet2.local> User-Agent: Mutt/1.5.4i cc: freebsd-hackers@freebsd.org Subject: Re: Good Information about ipfw X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 20:33:47 -0000 On 06/01/2004-11:59PM, Martes G Wigglesworth wrote: > Is there a good, definitive, source of information for implementing ipfw > firewall rules. I had to research for almost a week just to find out > how to do bandwidth limiting with freebsd. (3days just to find out if > freebsd does this, and then another two just to find out what dummynet > is, and then I found out that it was in the man page.) Where is the > list of all these obscure programs, and features, that are not a > unreadable as most man pages. > Where did you look? I just spent about 2 minutes and found question 12.22 in the FreeBSD FAQ "Where can I get a bandwidth management tool?" http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/networking.html#BANDWIDTH-MGR-TOOL > I would also like to know what the point of most manpages are. 90 > percent of them just list abitrary commands, as though you are supposed > to know how to use the program in the first place. There are almost > never any useful informatin about implementing the program that the > manpage is supposed to explain, but does not. > Man pages typically references not tutorials. They list ALL the command line options for the programs they document not arbitrary ones. > I have not been able to locate any book on the one firewall, that seems > to be at the heart of any good Freebsd firewall setup. > Try 'man firewall'. I would also suggest browse the FreeBSD FAQ http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/index.html and the FreeBSD handbook. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ If these things don't cover what you are looking for they will at least piont you in the right direction. Next would be google. For example... A google search for 'FreeBSD ipfw' comes up with several related hits specifically http://www.freebsd-howto.com/HOWTO/Ipfw-HOWTO looks like it may help you ( I have not read it so I don't know how good it is ) A google for 'FreeBSD dummynet' yeilds this page about dummynet. http://info.iet.unipi.it/~luigi/ip_dummynet/ From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 1 21:35:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A871A16A4CE; Tue, 1 Jun 2004 21:35:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id A51B943D3F; Tue, 1 Jun 2004 21:35:37 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: from freefall.freebsd.org (csjp@localhost [127.0.0.1]) i524ZbfW047609; Tue, 1 Jun 2004 21:35:37 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: (from csjp@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i524Zb9S047608; Tue, 1 Jun 2004 21:35:37 -0700 (PDT) (envelope-from csjp@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: csjp set sender to csjp@freebsd.org using -f Date: Tue, 1 Jun 2004 21:35:37 -0700 From: "Christian S.J. Peron" To: hackers@freebsd.org Message-ID: <20040602043537.GA42327@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: ipfw@freebsd.org Subject: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 04:35:37 -0000 All, Currently, when you have any rules which contain UID/GID constraints, ipfw will lock the pcb hash and do a lookup to find the pcb associated with that packet -- One for each constraint. I have written a patch in attempt to minimize the impact of PCB related lookups for these type of firewall rules. This patch will have the following effects on firewalls which contain UID/GID constraints: o Greatly reduce the locking contention associated with PCB lookups. o Increase the performance of firewall in general by making PCB lookups O(1) rather than O(n) (where n represents number of UID/GID constraints in the ruleset) It would be greatly appriciated if people who are running ipfw rules sets containing UID/GID constraints tested this patch and reported any success or failures. The patch can be downloaded from: http://people.freebsd.org/~csjp/ip_fw2_cached_ucred.patch NOTE: It also appears that ip_output passes a reference to the PCB. Perhaps we can hold a reference to the ucred stored in that entry and do away with lookups on outgoing packets all-together? -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 02:26:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6588516A4CF for ; Wed, 2 Jun 2004 02:26:30 -0700 (PDT) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86C1743D3F for ; Wed, 2 Jun 2004 02:26:29 -0700 (PDT) (envelope-from andre@freebsd.org) Received: (qmail 77616 invoked from network); 2 Jun 2004 09:26:27 -0000 Received: from unknown (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 2 Jun 2004 09:26:27 -0000 Message-ID: <40BD9D3F.7090100@freebsd.org> Date: Wed, 02 Jun 2004 11:26:23 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Christian S.J. Peron" References: <20040602043537.GA42327@freefall.freebsd.org> In-Reply-To: <20040602043537.GA42327@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org cc: ipfw@freebsd.org Subject: Re: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 09:26:30 -0000 Christian S.J. Peron wrote: > All, > > Currently, when you have any rules which contain UID/GID > constraints, ipfw will lock the pcb hash and do a lookup > to find the pcb associated with that packet -- > One for each constraint. > > I have written a patch in attempt to minimize the impact > of PCB related lookups for these type of firewall rules. > > This patch will have the following effects on firewalls which > contain UID/GID constraints: > > o Greatly reduce the locking contention associated > with PCB lookups. > > o Increase the performance of firewall in general by making > PCB lookups O(1) rather than O(n) (where n represents > number of UID/GID constraints in the ruleset) > > It would be greatly appriciated if people who are running ipfw > rules sets containing UID/GID constraints tested this patch > and reported any success or failures. > > The patch can be downloaded from: > > http://people.freebsd.org/~csjp/ip_fw2_cached_ucred.patch You can optimize it even further by directly copying the uid/gid from the ucred while you hold the INP_LOCK. There is no need to hold on to the entire ucred. It should be sufficient to do the ucred lookup only once per packet in the ipfw code. If you don't find an INPCB for the packet you'll do a negative lookup for every uid/gid rule. > It also appears that ip_output passes a reference to the PCB. > Perhaps we can hold a reference to the ucred stored in that > entry and do away with lookups on outgoing packets all-together? Yes, that would be possible but that weaves ipfw even tighter with ip_output and I'm currently converting it to go through the pfil_hooks mechanism. Pfil_hooks does not allow such additional information to be passed along directly. What you could do is to pass a m_tag with the numerical uid/gid along with locally generated packets to get the same effect. Here it would be good to co-ordinate with pf/ipfilter guys so that they can use this m_tag too. However for a first step just redo the lookup once per packet if neccessary. -- Andre From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 1 13:09:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA27216A4CE for ; Tue, 1 Jun 2004 13:09:54 -0700 (PDT) Received: from usw2.natel.net (2b.bz [209.152.117.190]) by mx1.FreeBSD.org (Postfix) with SMTP id 95D7943D49 for ; Tue, 1 Jun 2004 13:09:53 -0700 (PDT) (envelope-from WD@US-Webmasters.com) Received: (qmail 97296 invoked from network); 1 Jun 2004 20:09:50 -0000 Received: from batv-01-031.dialup.netins.net (HELO xyz.US-Webmasters.com) (216.248.109.32) by us-webmasters.com with SMTP; 1 Jun 2004 20:09:50 -0000 Message-Id: <5.1.0.14.2.20040601150643.060b2120@209.152.117.178> X-Sender: wd@209.152.117.178 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Tue, 01 Jun 2004 15:09:11 -0500 To: freebsd-hackers@freebsd.org From: "W. D." In-Reply-To: <1086145154.1725.5.camel@Micronet2.local> References: <20040527190044.7477916A4D5@hub.freebsd.org> <20040527190044.7477916A4D5@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Wed, 02 Jun 2004 04:48:52 -0700 Subject: Re: Good Information about ipfw X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2004 20:09:54 -0000 At 21:59 6/1/2004, Martes G Wigglesworth, wrote: >Is there a good, definitive, source of information for implementing ipfw=20 >firewall rules. I am familiar with the man pages, howerver, a list of=20 >arbitrary functionality, without any clue as to how to actually empliment= =20 >them is of no use to me. >I am in Mozul, Iraq, and I have limited time on the Internet, and far less= =20 >resources than I did before I got activated to come over here.=20 >I would also like to know what the point of most man pages are. 90 percent= =20 >of them just list arbitrary commands, as though you are supposed >to know how to use the program in the first place. There are almost never= =20 >any useful information about implementing the program that the manpage is= =20 >supposed to explain, but does not.=20 > >I have not been able to locate any book on the one firewall, that seems >to be at the heart of any good Freebsd firewall setup.=20 > >Please help this wayward soul. > >Thanks fellow BSDers. > >System: HP Pavilion ze5700 w/ Inetel Celeron 2.8ghz; 256MB ram; 30gig hdd= =20 >OS: FreeBSD 5.2.1-RELEASE Here's some info below. Perhaps once you figure it all out, you could write up a "cheatsheet" to help others. http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/firewalls.html http://lists.freebsd.org/pipermail/freebsd-ipfw/ http://marc.theaimsgroup.com/?l=3Dfreebsd-ipfw&r=3D1&w=3D2 http://marc.theaimsgroup.com/?l=3Dfreebsd-ipfw&w=3D2&r=3D1&s=3Dnewbie&q=3Db http://www.onlamp.com/pub/a/bsd/2001/04/25/FreeBSD_Basics.html http://www.onlamp.com/pub/a/bsd/2001/05/09/FreeBSD_Basics.html http://freebsd.hanirc.org/holyboard/holyboard.cgi?db=3Dipfw http://www.Google.com/search?q=3D%22ipfw_rules%22+Richard+Caley http://www.Google.com/search?q=3Dipfw+firewall+rules http://www.Google.com/search?q=3D%22ipfw_rules%22 http://www.Google.com/search?q=3Dipfw+firewall+rules+primer http://dva.dyndns.org/faq.html Start Here to Find It Fast!=99 ->= http://www.US-Webmasters.com/best-start-page/ $8.77 Domain Names -> http://domains.us-webmasters.com/ From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 1 20:41:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 493BA16A4CE for ; Tue, 1 Jun 2004 20:41:52 -0700 (PDT) Received: from TYO202.gate.nec.co.jp (TYO202.gate.nec.co.jp [202.32.8.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9FD643D3F for ; Tue, 1 Jun 2004 20:41:50 -0700 (PDT) (envelope-from aldinson@ntsp.nec.co.jp) Received: from mailgate4.nec.co.jp (mailgate54.nec.co.jp [10.7.69.195]) i523fnY10481 for ; Wed, 2 Jun 2004 12:41:49 +0900 (JST) Received: (from root@localhost) by mailgate4.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id i523fmo06384 for hackers@freebsd.org; Wed, 2 Jun 2004 12:41:48 +0900 (JST) Received: from fireball.ntsp.nec.co.jp (postfix@[172.28.58.1]) by isgw1.nec.co.jp (8.11.7/3.7W-ISGW-NEC) with ESMTP id i523flA18504 for ; Wed, 2 Jun 2004 12:41:47 +0900 (JST) Received: from the-one (localhost [127.0.0.1]) by fireball.ntsp.nec.co.jp (Postfix) with ESMTP id 3CB5229B0D for ; Wed, 2 Jun 2004 11:42:09 +0800 (HKT) Received: from 172.28.58.4 ([172.28.58.4] helo=galadriel.ntsp.nec.co.jp) by the-one ; 2 Jun 04 03:42:09 -0000 Received: from hq.ntsp.nec.co.jp (frytrix.hq.ntsp.nec.co.jp [172.28.58.129]) by galadriel.ntsp.nec.co.jp (Postfix) with ESMTP id 0BD3F40203 for ; Wed, 2 Jun 2004 11:39:46 +0800 (PHT) Received: (from smtp@localhost) by hq.ntsp.nec.co.jp (8.9.2/8.9.2) id LAA29984 for ; Wed, 2 Jun 2004 11:41:44 +0800 (HKT) Received: from UNKNOWN(172.28.59.176), claiming to be "demeter" via SMTP by frytrix, id smtpdAAA0KpAvj; Wed Jun 2 03:41:38 2004 From: "Aldinson C. Esto" To: Date: Wed, 2 Jun 2004 11:42:27 +0800 Message-ID: <003e01c44853$9ff27910$b03b1cac@demeter> MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Mailman-Approved-At: Wed, 02 Jun 2004 04:48:52 -0700 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: ifconfig.c developer manual X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 03:41:52 -0000 Hello Everyone, I know most of you here already have extreme knowledge about freeBSD's ins and outs. I just want to ask specifically regarding FreeBSD's ifconfig.c's functions and what does each function do. No one can give me a developer's manual for such and I really need someone to interpret each function for me. Any help would be very much appreciated. Thank you and best regards to one and all. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.693 / Virus Database: 454 - Release Date: 5/31/2004 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 02:49:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9F3216A4CE; Wed, 2 Jun 2004 02:49:46 -0700 (PDT) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5683643D1D; Wed, 2 Jun 2004 02:49:45 -0700 (PDT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.9/8.12.8) with ESMTP id i529nevw080418 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Jun 2004 13:49:41 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.9/8.12.6/Submit) id i529nev8080417; Wed, 2 Jun 2004 13:49:40 +0400 (MSD) Date: Wed, 2 Jun 2004 13:49:40 +0400 From: Gleb Smirnoff To: Bosko Milekic Message-ID: <20040602094940.GA80394@cell.sick.ru> References: <20040531215101.GA60299@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20040531215101.GA60299@freefall.freebsd.org> User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Wed, 02 Jun 2004 04:48:52 -0700 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 09:49:47 -0000 Bosko, On Mon, May 31, 2004 at 02:51:01PM -0700, Bosko Milekic wrote: B> mbuma is an Mbuf & Cluster allocator built on top of a number of B> extensions to the UMA framework, all included herein. are you going to convert mbuf tag allocator to UMA? Now tags are allocated with malloc(). AFAIK, tags are used heavily in pf, and forthcoming ALTQ. Moving to UMA should affect their performance positively. -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 06:51:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A0CB16A4CE; Wed, 2 Jun 2004 06:51:55 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F49843D4C; Wed, 2 Jun 2004 06:51:55 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: from freefall.freebsd.org (csjp@localhost [127.0.0.1]) i52DpteE031886; Wed, 2 Jun 2004 06:51:55 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: (from csjp@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i52DptCx031885; Wed, 2 Jun 2004 06:51:55 -0700 (PDT) (envelope-from csjp@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: csjp set sender to csjp@freebsd.org using -f Date: Wed, 2 Jun 2004 06:51:55 -0700 From: "Christian S.J. Peron" To: Andre Oppermann Message-ID: <20040602135155.GA31642@freefall.freebsd.org> References: <20040602043537.GA42327@freefall.freebsd.org> <40BD9D3F.7090100@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40BD9D3F.7090100@freebsd.org> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org cc: ipfw@freebsd.org Subject: Re: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 13:51:55 -0000 On 2 Jun 2004 Andre Oppermann wrote: > Christian S.J. Peron wrote: > >All, > > > >Currently, when you have any rules which contain UID/GID > >constraints, ipfw will lock the pcb hash and do a lookup > >to find the pcb associated with that packet -- > >One for each constraint. > > > >I have written a patch in attempt to minimize the impact > >of PCB related lookups for these type of firewall rules. > > > >This patch will have the following effects on firewalls which > >contain UID/GID constraints: > > > > o Greatly reduce the locking contention associated > > with PCB lookups. > > > > o Increase the performance of firewall in general by making > > PCB lookups O(1) rather than O(n) (where n represents > > number of UID/GID constraints in the ruleset) > > > >It would be greatly appriciated if people who are running ipfw > >rules sets containing UID/GID constraints tested this patch > >and reported any success or failures. > > > >The patch can be downloaded from: > > > >http://people.freebsd.org/~csjp/ip_fw2_cached_ucred.patch > > You can optimize it even further by directly copying the uid/gid > from the ucred while you hold the INP_LOCK. There is no need to > hold on to the entire ucred. It should be sufficient to do the > ucred lookup only once per packet in the ipfw code. If you don't > find an INPCB for the packet you'll do a negative lookup for every > uid/gid rule. I thought about this to, however in order to implement GID contraints properly, we need to use groupmember(9) which requires the entire cr_groups[16] located in the ucred. I thought it was more elegant and cheaper to avoid the memcpy(sizeof(gid_t) * NGROUPS) and stick with the mutex. Anyone else have other ideas? -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 06:58:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B83016A4CE; Wed, 2 Jun 2004 06:58:01 -0700 (PDT) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1D5A43D39; Wed, 2 Jun 2004 06:58:00 -0700 (PDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1])i52Dvv3o089922; Wed, 2 Jun 2004 09:57:57 -0400 (EDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost)i52DvvYM089921; Wed, 2 Jun 2004 09:57:57 -0400 (EDT) (envelope-from mwlucas) Date: Wed, 2 Jun 2004 09:57:57 -0400 From: "Michael W. Lucas" To: Robert Watson Message-ID: <20040602135757.GC89452@bewilderbeast.blackhelicopters.org> References: <00ce01c44458$8a28d880$7890a8c0@dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 cc: Cyrille Lefevre cc: Hackers FreeBSD Subject: general Darwin imports (was Re: Darwin cmd import?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 13:58:01 -0000 On Sat, May 29, 2004 at 07:55:21PM -0400, Robert Watson wrote: > The FreeBSD Core Team took a look at the APSL a while back, and decided > that similar to LGPL/GPL, it was an acceptable license for use in > userspace for stand-alone tools, but that similar protections to LGPL/GPL > would be required for kernel code (not built by default, carefully marked, > etc). That said, Apple tends to release only code they've heavily > rewritten or created from scratch under APSL; code they modify tends to > remain under the existing license (CMU, BSD, etc). Generally they're > careful to label the license on the download page. I'm writing an article about Apple's licensing and returning code to the community, but if you want to become a committer read this: Apple has made a lot of improvements to various FreeBSD utilities, and re-released them under the original licensing. This provides an excellent source of patches. People may gripe about Apple not returning stuff to the open source community. The truth is, they have. They aren't responsible for converting what they return into a format we can use, but they haven't deliberately obfuscated their code. Sorting out the diffs would be a pain, but not horribly difficult. According to Jordan Hubbard, the best source of low-hanging fruit is their modified libc. They've had people work out all sorts of bugs, clean up functions, performance improvements, etc. Libc changes require extensive testing. They also have wide-reaching benefits. It's still BSDL'd, so we can take back whatever we want. If you want a commit bit, go and pick some of this fruit and send-pr it. ==ml -- Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org "I'm sorry, but 'Social Darwinism' is no excuse for killing all of your co-workers." -- Ivan Brunetti http://www.BlackHelicopters.org/~mwlucas/ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 07:12:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A3DF16A4D9; Wed, 2 Jun 2004 07:12:37 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2115343D2F; Wed, 2 Jun 2004 07:12:37 -0700 (PDT) (envelope-from bmilekic@FreeBSD.org) Received: from freefall.freebsd.org (bmilekic@localhost [127.0.0.1]) i52ECbrX037145; Wed, 2 Jun 2004 07:12:37 -0700 (PDT) (envelope-from bmilekic@freefall.freebsd.org) Received: (from bmilekic@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i52ECYrK037144; Wed, 2 Jun 2004 07:12:34 -0700 (PDT) (envelope-from bmilekic) Date: Wed, 2 Jun 2004 07:12:34 -0700 From: Bosko Milekic To: Gleb Smirnoff Message-ID: <20040602141234.GA33162@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 14:12:37 -0000 > Bosko, [deletia] > are you going to convert mbuf tag allocator to UMA? Now >tags are allocated with malloc(). AFAIK, tags are used heavily in pf, >and forthcoming ALTQ. Moving to UMA should affect their performance >positively. First off, malloc() *is* UMA. With mbuma in the tree, I don't believe we have any remaining custom-allocators in the tree. As for what to do with m_tags, it is still unclear to me. Personally, I'm conflicted about their use. On one hand, they offer a clean way to attach metadata to packets, but on the other hand they are quite expensive. If you read the paper on mbuma, you'll notice that I point out that it would be worth investigating whether, in scenarios where an m_tag is ALWAYS required per packet (e.g., MAC), providing a secondary zone with pre-allocated m_tags for packet headers might be worth it. Prior to this work, however, I suggest we investigate the possibility of using smaller mini-mbufs whenever clusters are used so that space wastage is reduced. -Bosko From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 08:09:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C737316A4CE for ; Wed, 2 Jun 2004 08:09:27 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AC8143D55 for ; Wed, 2 Jun 2004 08:09:27 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.10) with ESMTP id i52F9RSK011846; Wed, 2 Jun 2004 08:09:27 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i52F9Qra011844; Wed, 2 Jun 2004 08:09:26 -0700 Date: Wed, 2 Jun 2004 08:09:26 -0700 From: Brooks Davis To: "Aldinson C. Esto" Message-ID: <20040602150926.GB31510@Odin.AC.HMC.Edu> References: <003e01c44853$9ff27910$b03b1cac@demeter> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UHN/qo2QbUvPLonB" Content-Disposition: inline In-Reply-To: <003e01c44853$9ff27910$b03b1cac@demeter> User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: ifconfig.c developer manual X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 15:09:27 -0000 --UHN/qo2QbUvPLonB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 02, 2004 at 11:42:27AM +0800, Aldinson C. Esto wrote: > Hello Everyone, > =20 > I know most of you here already have extreme knowledge about freeBSD's > ins and outs. I just want to ask specifically regarding FreeBSD's > ifconfig.c's functions and what does each function do. > > No one can give me a developer's manual for such and I really need > someone to interpret each function for me. UTSL. There is no developer's manual. All the documentation that exists is in the form of the source. If you have specific questions are particular functions, you can ask them, but don't expect other people to spend a lot of time explaining how to read the code. The code is a mess, but it's not all that hard to understand parts of it if you really sit down and work your way through it. Just start with main and understand what it does. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --UHN/qo2QbUvPLonB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAve2mXY6L6fI4GtQRAjmeAKCTcwgX8TXL/BDdmAT3UYAlvX4e0wCg4UB0 do2agtcUI+EyIPfGhsbxPEg= =JNJi -----END PGP SIGNATURE----- --UHN/qo2QbUvPLonB-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 08:34:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44F6616A4CE for ; Wed, 2 Jun 2004 08:34:35 -0700 (PDT) Received: from mail0.jaist.ac.jp (mail0.jaist.ac.jp [150.65.5.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4356343D58 for ; Wed, 2 Jun 2004 08:34:34 -0700 (PDT) (envelope-from zrelli@jaist.ac.jp) Received: from smtp.jaist.ac.jp (proxy-isc.jaist.ac.jp [150.65.5.30]) by mail0.jaist.ac.jp (3.7W-jaist_mail) with ESMTP id i52FYWt13859 for ; Thu, 3 Jun 2004 00:34:32 +0900 (JST) Received: from jaist.ac.jp (kt-dhcp07.jaist.ac.jp [150.65.239.70]) by smtp.jaist.ac.jp (3.7W-smtp) with ESMTP id i52FXv228897 for ; Thu, 3 Jun 2004 00:33:57 +0900 (JST) Message-ID: <40BDF377.4000900@jaist.ac.jp> Date: Thu, 03 Jun 2004 00:34:15 +0900 From: Saber ZRELLI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 15:34:35 -0000 Hello Dear Seniors , i was looking for some interesting issue related to FreeBSD networking , to make it my master thesis , but i couldn't find such a topic , certainly because i'm not a FreeBSD expert ( but i will be =) ) , so could any member here , especially contributors , i'm sure you have very rich ideas and cool stuff to offer ... i was thinking about implementing Robust TCP/IP connections .. but somebody told me that is not very consistent , and i think so also , this master thesis will take 1 year ... Plz help . MANY many thanks. -- Saber ZRELLI. Japana Advanced Institute of Science and Technology School of Information Sience. Katayama Lab mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm url : www.jaist.ac.jp/~zrelli gpg-id : 0x7119EA78 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 08:41:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 02F5416A4CE for ; Wed, 2 Jun 2004 08:41:51 -0700 (PDT) Received: from diaspar.rdsnet.ro (diaspar.rdsnet.ro [213.157.165.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2028243D48 for ; Wed, 2 Jun 2004 08:41:50 -0700 (PDT) (envelope-from dudu@diaspar.rdsnet.ro) Received: (qmail 61505 invoked by uid 89); 2 Jun 2004 15:42:52 -0000 Received: from unknown (HELO diaspar.rdsnet.ro) (dudu@diaspar.rdsnet.ro@213.157.165.224) by 0 with AES256-SHA encrypted SMTP; 2 Jun 2004 15:42:52 -0000 Date: Wed, 2 Jun 2004 18:42:49 +0300 From: Vlad GALU To: freebsd-hackers@freebsd.org Message-Id: <20040602184249.1c1aff41.dudu@diaspar.rdsnet.ro> In-Reply-To: <40BDF377.4000900@jaist.ac.jp> References: <40BDF377.4000900@jaist.ac.jp> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="Signature=_Wed__2_Jun_2004_18_42_49_+0300_6aeL.DGuSMACaDNA" Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 15:41:51 -0000 --Signature=_Wed__2_Jun_2004_18_42_49_+0300_6aeL.DGuSMACaDNA Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit Saber ZRELLI writes: |Hello Dear Seniors , |i was looking for some interesting issue related to FreeBSD networking |, to make it my master thesis , but i couldn't find such a topic , |certainly because i'm not a FreeBSD expert ( but i will be =) ) , |so could any member here , especially contributors , i'm sure you have |very rich ideas and cool stuff to offer ... | |i was thinking about implementing Robust TCP/IP connections .. but |somebody told me that is not very consistent , and i think so also , | |this master thesis will take 1 year ... Some of the things I mostly enjoyed playing with after turning to FreeBSD: kqueue(2)/netgraph(4)/divert(4)/net.inet.tcp.syncache.*/accept_filter(9 ). Perhaps these would give you some slight hints. | |Plz help . | |MANY many thanks. | | | | | |-- |Saber ZRELLI. | |Japana Advanced Institute of Science and Technology |School of Information Sience. |Katayama Lab |mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm |url : www.jaist.ac.jp/~zrelli |gpg-id : 0x7119EA78 | |_______________________________________________ |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" | ---- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. --Signature=_Wed__2_Jun_2004_18_42_49_+0300_6aeL.DGuSMACaDNA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAvfV7P5WtpVOrzpcRAq96AJ9oDdCAd+0Bnn6XONel1hdqkfsDrACfYxAv iy4wmwD893yySBcd7jp2hlk= =OBue -----END PGP SIGNATURE----- --Signature=_Wed__2_Jun_2004_18_42_49_+0300_6aeL.DGuSMACaDNA-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 08:44:43 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E43A16A4CE for ; Wed, 2 Jun 2004 08:44:43 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80F6A43D39 for ; Wed, 2 Jun 2004 08:44:42 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i52FhrIu017692; Wed, 2 Jun 2004 11:43:54 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i52FhrLs017689; Wed, 2 Jun 2004 11:43:53 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Wed, 2 Jun 2004 11:43:53 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: "Michael W. Lucas" In-Reply-To: <20040602135757.GC89452@bewilderbeast.blackhelicopters.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Cyrille Lefevre cc: Hackers FreeBSD Subject: Re: general Darwin imports (was Re: Darwin cmd import?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 15:44:43 -0000 On Wed, 2 Jun 2004, Michael W. Lucas wrote: > On Sat, May 29, 2004 at 07:55:21PM -0400, Robert Watson wrote: > > The FreeBSD Core Team took a look at the APSL a while back, and decided > > that similar to LGPL/GPL, it was an acceptable license for use in > > userspace for stand-alone tools, but that similar protections to LGPL/GPL > > would be required for kernel code (not built by default, carefully marked, > > etc). That said, Apple tends to release only code they've heavily > > rewritten or created from scratch under APSL; code they modify tends to > > remain under the existing license (CMU, BSD, etc). Generally they're > > careful to label the license on the download page. > > I'm writing an article about Apple's licensing and returning code to the > community, but if you want to become a committer read this: > > Apple has made a lot of improvements to various FreeBSD utilities, and > re-released them under the original licensing. This provides an > excellent source of patches. > > People may gripe about Apple not returning stuff to the open source > community. The truth is, they have. They aren't responsible for > converting what they return into a format we can use, but they haven't > deliberately obfuscated their code. Sorting out the diffs would be a > pain, but not horribly difficult. > > According to Jordan Hubbard, the best source of low-hanging fruit is > their modified libc. They've had people work out all sorts of bugs, > clean up functions, performance improvements, etc. Libc changes require > extensive testing. They also have wide-reaching benefits. It's still > BSDL'd, so we can take back whatever we want. > > If you want a commit bit, go and pick some of this fruit and send-pr it. I would also add that Apple has worked hard to improve their interaction on the open source licensing front. APSLv2 is a dramatic improvement over APSLv1. They've also been working internally to improve their ability to return changes under non-APSL licenses, and recently released several new components in the new Darwin drop under the Berkeley at my request. There are some areas where I don't think we'll see any license movement (HFS+, for one thing), but there are other areas where (at least from the outside) it appears Apple recognizes the benefit of widespread use of the code, community participation, etc. And I'm happy for us to prove Apple right by adopting their pieces in sensible ways, improving them, and pointing them at the improvements. :-) Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 09:06:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 73E9216A4CE for ; Wed, 2 Jun 2004 09:06:21 -0700 (PDT) Received: from mail0.jaist.ac.jp (mail0.jaist.ac.jp [150.65.5.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7213343D46 for ; Wed, 2 Jun 2004 09:06:20 -0700 (PDT) (envelope-from zrelli@jaist.ac.jp) Received: from smtp.jaist.ac.jp (proxy-isc.jaist.ac.jp [150.65.5.30]) by mail0.jaist.ac.jp (3.7W-jaist_mail) with ESMTP id i52G6Jt25390 for ; Thu, 3 Jun 2004 01:06:19 +0900 (JST) Received: from jaist.ac.jp (kt-dhcp07.jaist.ac.jp [150.65.239.70]) by smtp.jaist.ac.jp (3.7W-smtp) with ESMTP id i52G5i229104 for ; Thu, 3 Jun 2004 01:05:44 +0900 (JST) Message-ID: <40BDFAEA.4060009@jaist.ac.jp> Date: Thu, 03 Jun 2004 01:06:02 +0900 From: Saber ZRELLI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-hackers@freebsd.org References: <40BDF377.4000900@jaist.ac.jp> <20040602184249.1c1aff41.dudu@diaspar.rdsnet.ro> In-Reply-To: <20040602184249.1c1aff41.dudu@diaspar.rdsnet.ro> X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 16:06:21 -0000 I read about netgraph when i was looking for the Netfilter equivalent in FreeBSD . and u r right , that's the orientation i wannta take. Vlad GALU wrote: > Saber ZRELLI writes: > > |Hello Dear Seniors , > |i was looking for some interesting issue related to FreeBSD networking > |, to make it my master thesis , but i couldn't find such a topic , > |certainly because i'm not a FreeBSD expert ( but i will be =) ) , > |so could any member here , especially contributors , i'm sure you have > |very rich ideas and cool stuff to offer ... > | > |i was thinking about implementing Robust TCP/IP connections .. but > |somebody told me that is not very consistent , and i think so also , > | > |this master thesis will take 1 year ... > > Some of the things I mostly enjoyed playing with after turning to > FreeBSD: > kqueue(2)/netgraph(4)/divert(4)/net.inet.tcp.syncache.*/accept_filter(9 > ). Perhaps these would give you some slight hints. > > | > |Plz help . > | > |MANY many thanks. > | > | > | > | > | > |-- > |Saber ZRELLI. > | > |Japana Advanced Institute of Science and Technology > |School of Information Sience. > |Katayama Lab > |mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm > |url : www.jaist.ac.jp/~zrelli > |gpg-id : 0x7119EA78 > | > |_______________________________________________ > |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" > | > > > ---- > If it's there, and you can see it, it's real. > If it's not there, and you can see it, it's virtual. > If it's there, and you can't see it, it's transparent. > If it's not there, and you can't see it, you erased it. -- Saber ZRELLI. Japana Advanced Institute of Science and Technology School of Information Sience. Katayama Lab mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm url : www.jaist.ac.jp/~zrelli gpg-id : 0x7119EA78 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 09:52:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FA0616A4CE for ; Wed, 2 Jun 2004 09:52:30 -0700 (PDT) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id 1698D43D46 for ; Wed, 2 Jun 2004 09:52:29 -0700 (PDT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 12912 invoked from network); 2 Jun 2004 16:52:27 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by santiago with SMTP; 2 Jun 2004 16:52:26 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell6.pacific.net.sg with ESMTP id <20040602165226.QPNW8220.maxwell6.pacific.net.sg@pacific.net.sg>; Thu, 3 Jun 2004 00:52:26 +0800 Message-ID: <40BE05C0.1090807@pacific.net.sg> Date: Thu, 03 Jun 2004 00:52:16 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Saber ZRELLI References: <40BDF377.4000900@jaist.ac.jp> In-Reply-To: <40BDF377.4000900@jaist.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 16:52:30 -0000 Hi, Saber ZRELLI wrote: > Hello Dear Seniors , > i was looking for some interesting issue related to FreeBSD networking , > to make it my master thesis , but i couldn't find such a topic , > certainly because i'm not a FreeBSD expert ( but i will be =) ) , > so could any member here , especially contributors , i'm sure you have > very rich ideas and cool stuff to offer ... > > i was thinking about implementing Robust TCP/IP connections .. but > somebody told me that is not very consistent , and i think so also , > Did you consider fault-tolerant TCP/IP connections to multiple servers? This would make it very easy to implement fault-tolerant systems with FreeBSD if the communication is TCP/IP based. Erich From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 10:02:03 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6E0D16A4CE for ; Wed, 2 Jun 2004 10:02:03 -0700 (PDT) Received: from dragon.rutgers.edu (dragon.rutgers.edu [128.6.25.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B97B43D1D for ; Wed, 2 Jun 2004 10:02:03 -0700 (PDT) (envelope-from bohra@cs.rutgers.edu) X-Virus-Scanned: by dragon-cgpav-clamav-v1.3b Received: from [165.230.44.70] (account bohra HELO cs.rutgers.edu) by dragon.rutgers.edu (CommuniGate Pro SMTP 4.1.8) with ESMTP id 15576735; Wed, 02 Jun 2004 13:02:03 -0400 Message-ID: <40BE0747.2050405@cs.rutgers.edu> Date: Wed, 02 Jun 2004 12:58:47 -0400 From: Aniruddha Bohra User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erich Dollansky References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> In-Reply-To: <40BE05C0.1090807@pacific.net.sg> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:02:03 -0000 >> i was thinking about implementing Robust TCP/IP connections .. but >> somebody told me that is not very consistent , and i think so also , >> > Did you consider fault-tolerant TCP/IP connections to multiple servers? See these : This one is heavy-weight, whole process wrapping etc. Also the implementation is on Linux. Engineering fault-tolerant TCP/IP servers using FT-TCP. D. Zagorodnov, K. Marzullo, L. Alvisi, and T.C. Bressoud. In Proc. IEEE Intl. Conf. on Dependable Systems and Networks (DSN), http://www.cs.ucsd.edu/~dzagorod/research/pubs/zagorodnov_et_al-fttcp-dsn03.pdf This one is lightweight(in place logging), works for TCP/IP and for pipes and the implementation is on FreeBSD. Service Continuations: An Operating System Mechanism for Dynamic Migration of Internet Service Sessions. F. Sultan, A. Bohra, L. Iftode. The 22nd Symposium on Reliable Distributed Systems (SRDS), October 2003. http://discolab.rutgers.edu/sc/srds03.ps Cheers Aniruddha > > This would make it very easy to implement fault-tolerant systems with > FreeBSD if the communication is TCP/IP based. > > Erich > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 10:05:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FB4816A5DD for ; Wed, 2 Jun 2004 10:05:23 -0700 (PDT) Received: from salvador.pacific.net.sg (salvador.pacific.net.sg [203.120.90.219]) by mx1.FreeBSD.org (Postfix) with SMTP id 4AA7D43D1F for ; Wed, 2 Jun 2004 10:05:22 -0700 (PDT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 13679 invoked from network); 2 Jun 2004 17:05:08 -0000 Received: from unknown (HELO maxwell2.pacific.net.sg) (203.120.90.192) by salvador with SMTP; 2 Jun 2004 17:05:07 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell2.pacific.net.sg with ESMTP id <20040602170507.ZLPM1277.maxwell2.pacific.net.sg@pacific.net.sg>; Thu, 3 Jun 2004 01:05:07 +0800 Message-ID: <40BE08B9.8070807@pacific.net.sg> Date: Thu, 03 Jun 2004 01:04:57 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Aniruddha Bohra References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE0747.2050405@cs.rutgers.edu> In-Reply-To: <40BE0747.2050405@cs.rutgers.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:05:23 -0000 Hi, Aniruddha Bohra wrote: >>> i was thinking about implementing Robust TCP/IP connections .. but >>> somebody told me that is not very consistent , and i think so also , >>> >> Did you consider fault-tolerant TCP/IP connections to multiple servers? > > > See these : > This one is heavy-weight, whole process wrapping etc. > Also the implementation is on Linux. > Engineering fault-tolerant TCP/IP servers using FT-TCP. > D. Zagorodnov, K. Marzullo, L. Alvisi, and T.C. Bressoud. > In Proc. IEEE Intl. Conf. on Dependable Systems and Networks (DSN), > > http://www.cs.ucsd.edu/~dzagorod/research/pubs/zagorodnov_et_al-fttcp-dsn03.pdf > > > > This one is lightweight(in place logging), > works for TCP/IP and for pipes and the implementation is on > FreeBSD. > Service Continuations: An Operating System Mechanism for Dynamic > Migration of Internet Service Sessions. > F. Sultan, A. Bohra, L. Iftode. > The 22nd Symposium on Reliable Distributed Systems (SRDS), October 2003. > > http://discolab.rutgers.edu/sc/srds03.ps > I did not know of them. Thanks! Erich > Cheers > Aniruddha > >> >> This would make it very easy to implement fault-tolerant systems with >> FreeBSD if the communication is TCP/IP based. >> >> Erich >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" > > > From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 10:07:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A45516A4CE for ; Wed, 2 Jun 2004 10:07:22 -0700 (PDT) Received: from mail0.jaist.ac.jp (mail0.jaist.ac.jp [150.65.5.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6888143D58 for ; Wed, 2 Jun 2004 10:07:21 -0700 (PDT) (envelope-from zrelli@jaist.ac.jp) Received: from smtp.jaist.ac.jp (proxy-isc.jaist.ac.jp [150.65.5.30]) by mail0.jaist.ac.jp (3.7W-jaist_mail) with ESMTP id i52H7Dt17522; Thu, 3 Jun 2004 02:07:13 +0900 (JST) Received: from jaist.ac.jp (kt-dhcp07.jaist.ac.jp [150.65.239.70]) by smtp.jaist.ac.jp (3.7W-smtp) with ESMTP id i52H6a229528; Thu, 3 Jun 2004 02:06:36 +0900 (JST) Message-ID: <40BE092F.9090402@jaist.ac.jp> Date: Thu, 03 Jun 2004 02:06:55 +0900 From: Saber ZRELLI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Erich Dollansky References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> In-Reply-To: <40BE05C0.1090807@pacific.net.sg> X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:07:22 -0000 Erich Dollansky wrote: > Hi, > > Saber ZRELLI wrote: > >> Hello Dear Seniors , >> i was looking for some interesting issue related to FreeBSD networking , >> to make it my master thesis , but i couldn't find such a topic , >> certainly because i'm not a FreeBSD expert ( but i will be =) ) , >> so could any member here , especially contributors , i'm sure you have >> very rich ideas and cool stuff to offer ... >> >> i was thinking about implementing Robust TCP/IP connections .. but >> somebody told me that is not very consistent , and i think so also , >> > Did you consider fault-tolerant TCP/IP connections to multiple servers? i don't see the difference between connections to one or to multiple servers , it's still TCP/IP connections between two nodes. I'm i wrong ? > > This would make it very easy to implement fault-tolerant systems with > FreeBSD if the communication is TCP/IP based. > > Erich > _______________________________________________ > 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" > > -- Saber ZRELLI. Japana Advanced Institute of Science and Technology School of Information Sience. Katayama Lab mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm url : www.jaist.ac.jp/~zrelli gpg-id : 0x7119EA78 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 10:19:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D98AE16A4CE for ; Wed, 2 Jun 2004 10:19:28 -0700 (PDT) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id C574D43D49 for ; Wed, 2 Jun 2004 10:19:27 -0700 (PDT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 19218 invoked from network); 2 Jun 2004 17:19:26 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by santiago with SMTP; 2 Jun 2004 17:19:25 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell6.pacific.net.sg with ESMTP id <20040602171925.QRWJ8220.maxwell6.pacific.net.sg@pacific.net.sg>; Thu, 3 Jun 2004 01:19:25 +0800 Message-ID: <40BE0C13.309@pacific.net.sg> Date: Thu, 03 Jun 2004 01:19:15 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Saber ZRELLI References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> In-Reply-To: <40BE092F.9090402@jaist.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:19:29 -0000 Hi, Saber ZRELLI wrote: > > Erich Dollansky wrote: > > >>Hi, >> >>Saber ZRELLI wrote: >> >> >>>Hello Dear Seniors , >>>i was looking for some interesting issue related to FreeBSD networking , >>>to make it my master thesis , but i couldn't find such a topic , >>>certainly because i'm not a FreeBSD expert ( but i will be =) ) , >>>so could any member here , especially contributors , i'm sure you have >>>very rich ideas and cool stuff to offer ... >>> >>>i was thinking about implementing Robust TCP/IP connections .. but >>>somebody told me that is not very consistent , and i think so also , >>> >> >>Did you consider fault-tolerant TCP/IP connections to multiple servers? > > > i don't see the difference between connections to one or to multiple > servers , it's still TCP/IP connections between two nodes. > I'm i wrong ? > If multiple servers provide the data, it should not matter which server provides it. But it must made sure that only servers are taken to deliver the data which have their data updated. It is a pretty complex process to keep the data consistent on all servers. If the connection is only to a single server and this single server fails, the client does not get any data any more. If the connection is to multiple servers and at least one of the servers is still up and running, the client still has a chance to get its data. Erich From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 10:32:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B52C16A4CE for ; Wed, 2 Jun 2004 10:32:21 -0700 (PDT) Received: from mail0.jaist.ac.jp (mail0.jaist.ac.jp [150.65.5.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1A1C43D45 for ; Wed, 2 Jun 2004 10:32:17 -0700 (PDT) (envelope-from zrelli@jaist.ac.jp) Received: from smtp.jaist.ac.jp (proxy-isc.jaist.ac.jp [150.65.5.30]) by mail0.jaist.ac.jp (3.7W-jaist_mail) with ESMTP id i52HWHt26191 for ; Thu, 3 Jun 2004 02:32:17 +0900 (JST) Received: from jaist.ac.jp (kt-dhcp07.jaist.ac.jp [150.65.239.70]) by smtp.jaist.ac.jp (3.7W-smtp) with ESMTP id i52HVe200049 for ; Thu, 3 Jun 2004 02:31:40 +0900 (JST) Message-ID: <40BE0F0F.6030805@jaist.ac.jp> Date: Thu, 03 Jun 2004 02:31:59 +0900 From: Saber ZRELLI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-hackers@freebsd.org References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> In-Reply-To: <40BE0C13.309@pacific.net.sg> X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 17:32:21 -0000 Erich Dollansky wrote: > Hi, > > Saber ZRELLI wrote: > >> >> Erich Dollansky wrote: >> >> >>> Hi, >>> >>> Saber ZRELLI wrote: >>> >>> >>>> Hello Dear Seniors , >>>> i was looking for some interesting issue related to FreeBSD >>>> networking , >>>> to make it my master thesis , but i couldn't find such a topic , >>>> certainly because i'm not a FreeBSD expert ( but i will be =) ) , >>>> so could any member here , especially contributors , i'm sure you have >>>> very rich ideas and cool stuff to offer ... >>>> >>>> i was thinking about implementing Robust TCP/IP connections .. but >>>> somebody told me that is not very consistent , and i think so also , >>>> >>> >>> Did you consider fault-tolerant TCP/IP connections to multiple servers? >> >> >> >> i don't see the difference between connections to one or to multiple >> servers , it's still TCP/IP connections between two nodes. >> I'm i wrong ? >> > If multiple servers provide the data, it should not matter which server > provides it. I see what you mean , you are talking at higher level , when i mentioned Robust TCP/IP i meant TCP connections in the kernel network stack level , the architecture you are talking about is like a middle ware handeling all TCP/IP connections for a client to multiple servers. the mechanism is something like buffereing data in the network stack as prevention for eventual connection problem , when that problem happens and is detected , the Net. stack will try to reconnect ( while buffering the user data ) , once the connection is reistablished the buffered data will be sent and the user wont notice nothing ( if the outage time is not huge of course ). that may sounds stupid , but that's what i'm thinking about. But it must made sure that only servers are taken to > deliver the data which have their data updated. It is a pretty complex > process to keep the data consistent on all servers. > > If the connection is only to a single server and this single server > fails, the client does not get any data any more. If the connection is > to multiple servers and at least one of the servers is still up and > running, the client still has a chance to get its data. > > Erich > > -- Saber ZRELLI. Japana Advanced Institute of Science and Technology School of Information Sience. Katayama Lab mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm url : www.jaist.ac.jp/~zrelli gpg-id : 0x7119EA78 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 11:04:18 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDDFE16A4CF for ; Wed, 2 Jun 2004 11:04:18 -0700 (PDT) Received: from dragon.rutgers.edu (dragon.rutgers.edu [128.6.25.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6584D43D1D for ; Wed, 2 Jun 2004 11:04:18 -0700 (PDT) (envelope-from bohra@cs.rutgers.edu) X-Virus-Scanned: by dragon-cgpav-clamav-v1.3b Received: from [165.230.44.70] (account bohra HELO cs.rutgers.edu) by dragon.rutgers.edu (CommuniGate Pro SMTP 4.1.8) with ESMTP id 15578505; Wed, 02 Jun 2004 14:04:18 -0400 Message-ID: <40BE15DE.9020502@cs.rutgers.edu> Date: Wed, 02 Jun 2004 14:01:02 -0400 From: Aniruddha Bohra User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Saber ZRELLI References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> In-Reply-To: <40BE0F0F.6030805@jaist.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 18:04:19 -0000 Hello, > > I see what you mean , you are talking at higher level , > when i mentioned Robust TCP/IP i meant TCP connections in the kernel > network stack level , > the architecture you are talking about is like a middle ware handeling > all TCP/IP connections for a client to multiple servers. > > the mechanism is something like buffereing data in the network stack as > prevention for eventual connection problem , when that problem happens > and is detected , the Net. stack will try to reconnect ( while buffering > the user data ) , once the connection is reistablished the buffered data > will be sent and the user wont notice nothing ( if the outage time is > not huge of course ). > > that may sounds stupid , but that's what i'm thinking about. The links that I sent earlier do exactly that. However there are two basic problems : 1) Synchronization of the stream This problem arises if there is a reconnection, you do not know where the stream was cut (disconnect) at both the client and the server. If the client receives a byte of data, and ACKs it, the server discards the buffer transparent to the application. In order to keep the stream consistent, you need to copy every byte sent on the connection and synchronize on reconnect. This kills performance. FT-TCP linked in the previous mail takes this approach. There are others e.g. TESLA[4], ROCKS[5] etc. that provide user level logging to create consistent socket streams. Another approach is to modify the server and keep a log in the kernel (not discard the socket buffer until the application asks you to). This requires modifications to the server but is low overhead, since there is no extra copy and migration is lightweight. Service Continuations[1], and M-TCP[3] take this approach. You can find more details from http://discolab.rutgers.edu/sc. 2) Fault-tolerance : If by fault tolerance you mean a machine crash, then recovering state is not possible by traditional means. We do that (in a separate paper) by using a programmable NIC (Myrinet) to remotely read the memory of the machine. This allows us to recover connections from a dead machine (OS crash) [2] (http://discolab.rutgers.edu/bda). If you mean network level, then TCP provides that, unless you want geographical separation, in which case, the client TCP must be modified to route packets to the alternate route. This is again used in Service Continuations and M-TCP[3]. I hope this helps. Cheers Aniruddha [1]Service Continuations: An Operating System Mechanism for Dynamic Migration of Internet Service Sessions. F. Sultan, A. Bohra, L. Iftode. http://discolab.rutgers.edu/sc/srds03.ps [2]System Support for Nonintrusive Failure Detection and Recovery using Backdoors. F. Sultan, A. Bohra, P. Gallard, I. Neamtiu, S. Smaldone, Y. Pan, and L. Iftode. http://discolab.rutgers.edu/bda/remrecov04.pdf [3] Migratory TCP: Highly Available Internet Services Using Connection Migration. Florin Sultan, Kiran Srinivasan, Deepa Iyer, Liviu Iftode. http://discolab.rutgers.edu/mtcp/dcs-tr-462.ps [4] TESLA : http://nms.lcs.mit.edu/projects/migrate/ [5]ROCKS: http://www.cs.wisc.edu/~zandy/rocks/ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 11:23:07 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F46016A4CE for ; Wed, 2 Jun 2004 11:23:07 -0700 (PDT) Received: from mail0.jaist.ac.jp (mail0.jaist.ac.jp [150.65.5.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5FCAA43D48 for ; Wed, 2 Jun 2004 11:23:06 -0700 (PDT) (envelope-from zrelli@jaist.ac.jp) Received: from smtp.jaist.ac.jp (proxy-isc.jaist.ac.jp [150.65.5.30]) by mail0.jaist.ac.jp (3.7W-jaist_mail) with ESMTP id i52IN5t14347; Thu, 3 Jun 2004 03:23:05 +0900 (JST) Received: from jaist.ac.jp (kt-dhcp07.jaist.ac.jp [150.65.239.70]) by smtp.jaist.ac.jp (3.7W-smtp) with ESMTP id i52IMS200401; Thu, 3 Jun 2004 03:22:28 +0900 (JST) Message-ID: <40BE1AF6.6050904@jaist.ac.jp> Date: Thu, 03 Jun 2004 03:22:46 +0900 From: Saber ZRELLI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Aniruddha Bohra References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> <40BE15DE.9020502@cs.rutgers.edu> In-Reply-To: <40BE15DE.9020502@cs.rutgers.edu> X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 18:23:07 -0000 Thank y ouvery much Mr.Bohra , I have here a lot of materials a interesting all new issues for me to discover ... I'll get my self informed by reading those papers then i'll have some comments and questions if you dont mind. although ,i want to know , when you said > If you mean network level, then TCP provides that, maybe you are talking about timeouts in TCP/IP ? > unless you > want geographical separation, in which case, the client TCP must be > modified to route packets to the alternate route. This is again used > in Service Continuations and M-TCP[3]. > > > I hope this helps. > Cheers > Aniruddha > > [1]Service Continuations: An Operating System Mechanism for Dynamic > Migration of Internet Service Sessions. > F. Sultan, A. Bohra, L. Iftode. > http://discolab.rutgers.edu/sc/srds03.ps > > [2]System Support for Nonintrusive Failure Detection and Recovery using > Backdoors. > F. Sultan, A. Bohra, P. Gallard, I. Neamtiu, S. Smaldone, Y. Pan, and L. > Iftode. > http://discolab.rutgers.edu/bda/remrecov04.pdf > > [3] Migratory TCP: Highly Available Internet Services Using Connection > Migration. > Florin Sultan, Kiran Srinivasan, Deepa Iyer, Liviu Iftode. > http://discolab.rutgers.edu/mtcp/dcs-tr-462.ps > > [4] TESLA : http://nms.lcs.mit.edu/projects/migrate/ > > [5]ROCKS: http://www.cs.wisc.edu/~zandy/rocks/ > _______________________________________________ > 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" > > -- Saber ZRELLI. Japan Advanced Institute of Science and Technology School of Information Sience. Katayama Lab mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm url : www.jaist.ac.jp/~zrelli gpg-id : 0x7119EA78 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 11:31:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D53E816A4CE for ; Wed, 2 Jun 2004 11:31:16 -0700 (PDT) Received: from dragon.rutgers.edu (dragon.rutgers.edu [128.6.25.118]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2086343D41 for ; Wed, 2 Jun 2004 11:31:16 -0700 (PDT) (envelope-from bohra@cs.rutgers.edu) X-Virus-Scanned: by dragon-cgpav-clamav-v1.3b Received: from [165.230.44.70] (account bohra HELO cs.rutgers.edu) by dragon.rutgers.edu (CommuniGate Pro SMTP 4.1.8) with ESMTP id 15579318; Wed, 02 Jun 2004 14:31:15 -0400 Message-ID: <40BE1C2F.9000700@cs.rutgers.edu> Date: Wed, 02 Jun 2004 14:27:59 -0400 From: Aniruddha Bohra User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Saber ZRELLI References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> <40BE15DE.9020502@cs.rutgers.edu> <40BE1AF6.6050904@jaist.ac.jp> In-Reply-To: <40BE1AF6.6050904@jaist.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 18:31:16 -0000 > I'll get my self informed by reading those papers then i'll have some > comments and questions if you dont mind. Questions are always welcome > > although ,i want to know , when you said > > >> If you mean network level, then TCP provides that, > > > maybe you are talking about timeouts in TCP/IP ? TCP retransmits data that it thinks is not delivered. If there is a network problem downstream (not at the end hosts), and you try to reconnect, you may end up in the same situation as trying to retransmit. Overlay networks try to route around network problems to provide alternative paths. But that again is a whole list of references ;) Cheers Aniruddha From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 11:54:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0765F16A4CE for ; Wed, 2 Jun 2004 11:54:49 -0700 (PDT) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id E94B043D48 for ; Wed, 2 Jun 2004 11:54:47 -0700 (PDT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 4742 invoked from network); 2 Jun 2004 18:54:46 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by santiago with SMTP; 2 Jun 2004 18:54:45 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell6.pacific.net.sg with ESMTP id <20040602185445.QXQA8220.maxwell6.pacific.net.sg@pacific.net.sg>; Thu, 3 Jun 2004 02:54:45 +0800 Message-ID: <40BE226A.4000109@pacific.net.sg> Date: Thu, 03 Jun 2004 02:54:34 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Saber ZRELLI References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> In-Reply-To: <40BE0F0F.6030805@jaist.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 18:54:49 -0000 Hi, Saber ZRELLI wrote: > > Erich Dollansky wrote: >>If multiple servers provide the data, it should not matter which server >>provides it. > > > > I see what you mean , you are talking at higher level , It does not have to be at a higher level. > when i mentioned Robust TCP/IP i meant TCP connections in the kernel > network stack level , > the architecture you are talking about is like a middle ware handeling > all TCP/IP connections for a client to multiple servers. > Yes. The client sees only one TCP/IP connection. It also does not see which server provided the real data. > the mechanism is something like buffereing data in the network stack as > prevention for eventual connection problem , when that problem happens > and is detected , the Net. stack will try to reconnect ( while buffering > the user data ) , once the connection is reistablished the buffered data > will be sent and the user wont notice nothing ( if the outage time is > not huge of course ). > It is a bit more complex because as long as one server is able to provide the data the client gets the data immediatly but the software must make sure now that the failed server does not damage data. It is not this simple as it sounds at the start. The other papers will give you some inside information how things like this are done already and it also could give you some ideas to improve them further by hiding the fault-tolerance from the client. Erich From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 12:32:58 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18C8016A4CE for ; Wed, 2 Jun 2004 12:32:58 -0700 (PDT) Received: from mail0.jaist.ac.jp (mail0.jaist.ac.jp [150.65.5.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id F339343D4C for ; Wed, 2 Jun 2004 12:32:56 -0700 (PDT) (envelope-from zrelli@jaist.ac.jp) Received: from smtp.jaist.ac.jp (proxy-isc.jaist.ac.jp [150.65.5.30]) by mail0.jaist.ac.jp (3.7W-jaist_mail) with ESMTP id i52JWut00509 for ; Thu, 3 Jun 2004 04:32:56 +0900 (JST) Received: from jaist.ac.jp (kt-dhcp07.jaist.ac.jp [150.65.239.70]) by smtp.jaist.ac.jp (3.7W-smtp) with ESMTP id i52JWJ200799 for ; Thu, 3 Jun 2004 04:32:19 +0900 (JST) Message-ID: <40BE2B55.2020709@jaist.ac.jp> Date: Thu, 03 Jun 2004 04:32:37 +0900 From: Saber ZRELLI User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-hackers@freebsd.org References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> <40BE226A.4000109@pacific.net.sg> In-Reply-To: <40BE226A.4000109@pacific.net.sg> X-Enigmail-Version: 0.83.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 19:32:58 -0000 Erich Dollansky wrote: > Hi, > > Saber ZRELLI wrote: > >> >> Erich Dollansky wrote: > > >>> If multiple servers provide the data, it should not matter which server >>> provides it. >> >> >> >> >> I see what you mean , you are talking at higher level , > > > It does not have to be at a higher level. > >> when i mentioned Robust TCP/IP i meant TCP connections in the kernel >> network stack level , >> the architecture you are talking about is like a middle ware handeling >> all TCP/IP connections for a client to multiple servers. >> > Yes. The client sees only one TCP/IP connection. I cannot understand how all connections can be fused ? > It also does not see which server provided the real data. if my browser is connected to google and yahoo , then i need to distinguish what data is coming from whish server , so it can be treated correctly ... I think i'm missing something ... > >> the mechanism is something like buffereing data in the network stack as >> prevention for eventual connection problem , when that problem happens >> and is detected , the Net. stack will try to reconnect ( while buffering >> the user data ) , once the connection is reistablished the buffered data >> will be sent and the user wont notice nothing ( if the outage time is >> not huge of course ). >> > It is a bit more complex because as long as one server is able to > provide the data the client gets the data immediatly but the software > must make sure now that the failed server does not damage data. what kind of applications could use this architecture ( anonymous servers multiplexed into one TCP/IP connection ) ? looks like peer 2 peer , no ? > > It is not this simple as it sounds at the start. > > The other papers will give you some inside information how things like > this are done already and it also could give you some ideas to improve > them further by hiding the fault-tolerance from the client. > > Erich > _______________________________________________ > 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" > > -- Saber ZRELLI. Japan Advanced Institute of Science and Technology School of Information Sience. Katayama Lab mail : zrelli@jaist.ac.jp, saber_z@fastmail.fm url : www.jaist.ac.jp/~zrelli gpg-id : 0x7119EA78 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 14:23:08 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 235B416A4CE for ; Wed, 2 Jun 2004 14:23:08 -0700 (PDT) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A8EB43D5C for ; Wed, 2 Jun 2004 14:23:07 -0700 (PDT) (envelope-from andre@freebsd.org) Received: (qmail 88195 invoked from network); 2 Jun 2004 21:23:06 -0000 Received: from unknown (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 2 Jun 2004 21:23:06 -0000 Message-ID: <40BE4536.4050905@freebsd.org> Date: Wed, 02 Jun 2004 23:23:02 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Christian S.J. Peron" References: <20040602043537.GA42327@freefall.freebsd.org> <40BD9D3F.7090100@freebsd.org> <20040602135155.GA31642@freefall.freebsd.org> In-Reply-To: <20040602135155.GA31642@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org cc: ipfw@freebsd.org Subject: Re: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 21:23:08 -0000 Christian S.J. Peron wrote: > On 2 Jun 2004 Andre Oppermann wrote: > >>Christian S.J. Peron wrote: >> >>>All, >>> >>>Currently, when you have any rules which contain UID/GID >>>constraints, ipfw will lock the pcb hash and do a lookup >>>to find the pcb associated with that packet -- >>>One for each constraint. >>> >>>I have written a patch in attempt to minimize the impact >>>of PCB related lookups for these type of firewall rules. >>> >>>This patch will have the following effects on firewalls which >>>contain UID/GID constraints: >>> >>>o Greatly reduce the locking contention associated >>> with PCB lookups. >>> >>>o Increase the performance of firewall in general by making >>> PCB lookups O(1) rather than O(n) (where n represents >>> number of UID/GID constraints in the ruleset) >>> >>>It would be greatly appriciated if people who are running ipfw >>>rules sets containing UID/GID constraints tested this patch >>>and reported any success or failures. >>> >>>The patch can be downloaded from: >>> >>>http://people.freebsd.org/~csjp/ip_fw2_cached_ucred.patch >> >>You can optimize it even further by directly copying the uid/gid >>from the ucred while you hold the INP_LOCK. There is no need to >>hold on to the entire ucred. It should be sufficient to do the >>ucred lookup only once per packet in the ipfw code. If you don't >>find an INPCB for the packet you'll do a negative lookup for every >>uid/gid rule. > > I thought about this to, however in order to implement GID contraints > properly, we need to use groupmember(9) which requires the > entire cr_groups[16] located in the ucred. I thought it was more > elegant and cheaper to avoid the memcpy(sizeof(gid_t) * NGROUPS) > and stick with the mutex. I see. Hmmm... Actually I'm only concerned that someone later misses a crfree() call and starts to leak ucred structures. ipfw is not the first place you are going to look for it. The more you can keep together in one place the better it is. This kind of error has already happend once with the initial implementation of verrevpath in ifpw. The fuction did not correctly do the ref- counting leading to a hefty rtentry leak. -- Andre From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 14:35:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D477D16A4CE; Wed, 2 Jun 2004 14:35:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8549843D3F; Wed, 2 Jun 2004 14:35:15 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: from freefall.freebsd.org (csjp@localhost [127.0.0.1]) i52LZFEK091522; Wed, 2 Jun 2004 14:35:15 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: (from csjp@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i52LZFJr091521; Wed, 2 Jun 2004 14:35:15 -0700 (PDT) (envelope-from csjp@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: csjp set sender to csjp@freebsd.org using -f Date: Wed, 2 Jun 2004 14:35:15 -0700 From: "Christian S.J. Peron" To: Andre Oppermann Message-ID: <20040602213515.GA90619@freefall.freebsd.org> References: <20040602043537.GA42327@freefall.freebsd.org> <40BD9D3F.7090100@freebsd.org> <20040602135155.GA31642@freefall.freebsd.org> <40BE4536.4050905@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40BE4536.4050905@freebsd.org> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org cc: ipfw@freebsd.org Subject: Re: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 21:35:16 -0000 Agreed, This was a concern for me as well, I was pretty carefull about managing the reference counts, I am currently testing this patch with a variety of rule types to check for ucred leaks. If/before this patch gets committed, I plan on doing another carefull scrutinization of the ipfw code to make sure there are no return, continues or breaks etc which could cause the ucred to be leaked. On 2 Jun 2004 Andre Oppermann wrote: > Christian S.J. Peron wrote: > >On 2 Jun 2004 Andre Oppermann wrote: > > > >>Christian S.J. Peron wrote: > >> > >>>All, > >>> > >>>Currently, when you have any rules which contain UID/GID > >>>constraints, ipfw will lock the pcb hash and do a lookup > >>>to find the pcb associated with that packet -- > >>>One for each constraint. > >>> > >>>I have written a patch in attempt to minimize the impact > >>>of PCB related lookups for these type of firewall rules. > >>> > >>>This patch will have the following effects on firewalls which > >>>contain UID/GID constraints: > >>> > >>>o Greatly reduce the locking contention associated > >>> with PCB lookups. > >>> > >>>o Increase the performance of firewall in general by making > >>> PCB lookups O(1) rather than O(n) (where n represents > >>> number of UID/GID constraints in the ruleset) > >>> > >>>It would be greatly appriciated if people who are running ipfw > >>>rules sets containing UID/GID constraints tested this patch > >>>and reported any success or failures. > >>> > >>>The patch can be downloaded from: > >>> > >>>http://people.freebsd.org/~csjp/ip_fw2_cached_ucred.patch > >> > >>You can optimize it even further by directly copying the uid/gid > >>from the ucred while you hold the INP_LOCK. There is no need to > >>hold on to the entire ucred. It should be sufficient to do the > >>ucred lookup only once per packet in the ipfw code. If you don't > >>find an INPCB for the packet you'll do a negative lookup for every > >>uid/gid rule. > > > >I thought about this to, however in order to implement GID contraints > >properly, we need to use groupmember(9) which requires the > >entire cr_groups[16] located in the ucred. I thought it was more > >elegant and cheaper to avoid the memcpy(sizeof(gid_t) * NGROUPS) > >and stick with the mutex. > > I see. Hmmm... Actually I'm only concerned that someone later > misses a crfree() call and starts to leak ucred structures. ipfw > is not the first place you are going to look for it. The more you > can keep together in one place the better it is. This kind > of error has already happend once with the initial implementation > of verrevpath in ifpw. The fuction did not correctly do the ref- > counting leading to a hefty rtentry leak. > > -- > Andre > -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 14:52:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 089D916A4CE for ; Wed, 2 Jun 2004 14:52:05 -0700 (PDT) Received: from mailtoaster1.pipeline.ch (mailtoaster1.pipeline.ch [62.48.0.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1674043D46 for ; Wed, 2 Jun 2004 14:52:04 -0700 (PDT) (envelope-from andre@freebsd.org) Received: (qmail 90081 invoked from network); 2 Jun 2004 21:52:02 -0000 Received: from unknown (HELO [62.48.0.47]) ([62.48.0.47]) (envelope-sender ) by mailtoaster1.pipeline.ch (qmail-ldap-1.03) with SMTP for ; 2 Jun 2004 21:52:02 -0000 Message-ID: <40BE4BFE.70204@freebsd.org> Date: Wed, 02 Jun 2004 23:51:58 +0200 From: Andre Oppermann User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040514 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Christian S.J. Peron" References: <20040602043537.GA42327@freefall.freebsd.org> <40BD9D3F.7090100@freebsd.org> <20040602135155.GA31642@freefall.freebsd.org> <40BE4536.4050905@freebsd.org> <20040602213515.GA90619@freefall.freebsd.org> In-Reply-To: <20040602213515.GA90619@freefall.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org cc: ipfw@freebsd.org Subject: Re: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 21:52:05 -0000 Christian S.J. Peron wrote: > Agreed, > > This was a concern for me as well, I was pretty carefull about > managing the reference counts, I am currently testing this patch > with a variety of rule types to check for ucred leaks. If/before this patch > gets committed, I plan on doing another carefull scrutinization > of the ipfw code to make sure there are no return, continues or breaks > etc which could cause the ucred to be leaked. This is exactly the problem I try to avoid. If there is the need to double and triple check then I think there is a design error. If that happens to any work I do I start over again unless I'm constrained by external code. For example when I replied to your original email with the patch I read it and said you'd re-do the lookup every time when there is a miss. This is actually not the case. However it is not really obvious what is going on there, even less so from just reading the patch. And I'm well familiar with the ipfw2 code. Only after putting it next to the full ip_fw2.c code and reading it slowly I saw the roundabout of the function and how it does its thing. What I want to say is that it is not obvious how it works and the next one working on this code is almost certainly breaking it or leaking ucreds. I am fully certain that you have tested it in any way to make sure it is correct and I can tell you that it is correct now that I have checked all function returns as well. But this is not write once and let it be but write once, modify often and read all the time. I have stumbled across too many 'short-cuts' in the past year and it made and makes locking the network stack a real pain. I do not object to your patch. I'm just highlighting the grief it might cause later on. ;-) -- Andre From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 14:58:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53CC916A4CE for ; Wed, 2 Jun 2004 14:58:40 -0700 (PDT) Received: from web60207.mail.yahoo.com (web60207.mail.yahoo.com [216.109.118.102]) by mx1.FreeBSD.org (Postfix) with SMTP id DB9B243D54 for ; Wed, 2 Jun 2004 14:58:39 -0700 (PDT) (envelope-from freebsder51@yahoo.com) Message-ID: <20040602215839.43373.qmail@web60207.mail.yahoo.com> Received: from [67.69.62.45] by web60207.mail.yahoo.com via HTTP; Wed, 02 Jun 2004 14:58:39 PDT Date: Wed, 2 Jun 2004 14:58:39 -0700 (PDT) From: aussie gal To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Network config on FreeBSD 5.1 - 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, 02 Jun 2004 21:58:40 -0000 Hi - I'm trying to configure my network card on a newly installed freebsd 5.1. BUT - I can get the system to come on line. It recoginizes the hardware as being UP ... I've been hitting several TCP/IP how-tos on the web and doing lots of reading and tweaking to no avail. Please advise. Does anyone have experience with 5.1? Regards, fb51 --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 15:14:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0F91116A4CE; Wed, 2 Jun 2004 15:14:44 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 078F943D49; Wed, 2 Jun 2004 15:14:44 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: from freefall.freebsd.org (csjp@localhost [127.0.0.1]) i52MEhJp096572; Wed, 2 Jun 2004 15:14:43 -0700 (PDT) (envelope-from csjp@freebsd.org) Received: (from csjp@localhost) by freefall.freebsd.org (8.12.11/8.12.11/Submit) id i52MEhAH096571; Wed, 2 Jun 2004 15:14:43 -0700 (PDT) (envelope-from csjp@freebsd.org) X-Authentication-Warning: freefall.freebsd.org: csjp set sender to csjp@freebsd.org using -f Date: Wed, 2 Jun 2004 15:14:43 -0700 From: "Christian S.J. Peron" To: Andre Oppermann Message-ID: <20040602221443.GA92431@freefall.freebsd.org> References: <20040602043537.GA42327@freefall.freebsd.org> <40BD9D3F.7090100@freebsd.org> <20040602135155.GA31642@freefall.freebsd.org> <40BE4536.4050905@freebsd.org> <20040602213515.GA90619@freefall.freebsd.org> <40BE4BFE.70204@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <40BE4BFE.70204@freebsd.org> User-Agent: Mutt/1.4.1i cc: hackers@freebsd.org cc: ipfw@freebsd.org Subject: Re: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 22:14:44 -0000 I understand what you are saying. The only real other choice would be to copy out the entire cr_groups array. Do you know if this copy would be more expensive then the mutex lock/unlock associated with grabbing a reference to the ucred? -- Christian S.J. Peron csjp@FreeBSD.ORG FreeBSD Committer From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 15:29:47 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5A3816A4CE; Wed, 2 Jun 2004 15:29:47 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90A8E43D2F; Wed, 2 Jun 2004 15:29:47 -0700 (PDT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i52MTlgd017656; Wed, 2 Jun 2004 15:29:47 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i52MTl9i017655; Wed, 2 Jun 2004 15:29:47 -0700 (PDT) (envelope-from rizzo) Date: Wed, 2 Jun 2004 15:29:47 -0700 From: Luigi Rizzo To: "Christian S.J. Peron" Message-ID: <20040602152947.B17332@xorpc.icir.org> References: <20040602043537.GA42327@freefall.freebsd.org> <20040602135155.GA31642@freefall.freebsd.org> <20040602213515.GA90619@freefall.freebsd.org> <40BE4BFE.70204@freebsd.org> <20040602221443.GA92431@freefall.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: <20040602221443.GA92431@freefall.freebsd.org>; from csjp@freebsd.org on Wed, Jun 02, 2004 at 03:14:43PM -0700 cc: hackers@freebsd.org cc: Andre Oppermann cc: ipfw@freebsd.org Subject: Re: ipfw cached ucred patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 22:29:47 -0000 On Wed, Jun 02, 2004 at 03:14:43PM -0700, Christian S.J. Peron wrote: > > I understand what you are saying. The only real other choice > would be to copy out the entire cr_groups array. Do you know > if this copy would be more expensive then the mutex lock/unlock > associated with grabbing a reference to the ucred? i bet the copy it would be cheaper almost on any architecture -- it is only 64 bytes anyways, with these sizes what kills you in memory accesses is the latency, not the throughput. cheers luigi From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 15:39:01 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B1A816A4CE for ; Wed, 2 Jun 2004 15:39:01 -0700 (PDT) Received: from web41410.mail.yahoo.com (web41410.mail.yahoo.com [66.218.93.76]) by mx1.FreeBSD.org (Postfix) with SMTP id 1224C43D2F for ; Wed, 2 Jun 2004 15:39:01 -0700 (PDT) (envelope-from zera_holladay@yahoo.com) Message-ID: <20040602223901.65332.qmail@web41410.mail.yahoo.com> Received: from [68.252.234.36] by web41410.mail.yahoo.com via HTTP; Wed, 02 Jun 2004 15:39:01 PDT Date: Wed, 2 Jun 2004 15:39:01 -0700 (PDT) From: zera holladay To: aussie gal , freebsd-hackers@freebsd.org In-Reply-To: <20040602215839.43373.qmail@web60207.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Network config on FreeBSD 5.1 - 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, 02 Jun 2004 22:39:01 -0000 Have you read this yet? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html -zh --- aussie gal wrote: > Hi - I'm trying to configure my network card on a > newly installed freebsd 5.1. > BUT - I can get the system to come on line. It > recoginizes the hardware as being UP ... > > I've been hitting several TCP/IP how-tos on the web > and doing lots of reading and tweaking to no avail. > > Please advise. Does anyone have experience with > 5.1? > > Regards, > > fb51 > > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > _______________________________________________ > 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" __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 22:54:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE5B216A4CF for ; Wed, 2 Jun 2004 22:54:56 -0700 (PDT) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id 8324843D55 for ; Wed, 2 Jun 2004 22:54:55 -0700 (PDT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 7562 invoked from network); 3 Jun 2004 05:54:53 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by santiago with SMTP; 3 Jun 2004 05:54:52 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell6.pacific.net.sg with ESMTP id <20040603055452.UMNW8220.maxwell6.pacific.net.sg@pacific.net.sg>; Thu, 3 Jun 2004 13:54:52 +0800 Message-ID: <40BEBD19.1060501@pacific.net.sg> Date: Thu, 03 Jun 2004 13:54:33 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Saber ZRELLI References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> <40BE226A.4000109@pacific.net.sg> <40BE2B55.2020709@jaist.ac.jp> In-Reply-To: <40BE2B55.2020709@jaist.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 05:54:56 -0000 Hi, Saber ZRELLI wrote: > > Erich Dollansky wrote: > > if my browser is connected to google and yahoo , then i need to > distinguish what data is coming from whish server , so it can be treated > correctly ... > It will not work for google or yahoo how they work currently. > I think i'm missing something ... > Yes. As simple example is a government site handling some government task like duty collection or purchase orders for the whole country. There is one system which does it all for the government. The impact of a system like this going down will be massive. But we learned since the WTC attack that it can happen. The solution is currently to have fault-tolerant machines on single sites with a very low chance to fail plus some spare sites to take over if the main site really fails. The switch over takes some time and will make the government lose money as the whole country cannot process the data during this period of time. If the clients are now linked via an additional layer in the TCP/IP stack to all sites and it is made sure that all sites are updated concurrently, it will not matter if a site goes down because the other sites will take over automatically On the other side, after having a system like this, there is no need anymore for fault-tolerant hardware on the individual sites as the switch-over to the other sites is done automatically from outside. As a result the cost of such systems will drop. I know that such systems exist but they are tailor made and they are not off-the-shelve solution integrated somewhere into the operating system. Erich From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 00:15:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9082416A4CE for ; Thu, 3 Jun 2004 00:15:20 -0700 (PDT) Received: from santiago.pacific.net.sg (santiago.pacific.net.sg [203.120.90.135]) by mx1.FreeBSD.org (Postfix) with SMTP id 4D27943D31 for ; Thu, 3 Jun 2004 00:15:19 -0700 (PDT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 22852 invoked from network); 3 Jun 2004 07:14:58 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by santiago with SMTP; 3 Jun 2004 07:14:58 -0000 Received: from pacific.net.sg ([210.24.202.26]) by maxwell6.pacific.net.sg with ESMTP id <20040603071457.VDXS8220.maxwell6.pacific.net.sg@pacific.net.sg>; Thu, 3 Jun 2004 15:14:57 +0800 Message-ID: <40BECFF1.7000906@pacific.net.sg> Date: Thu, 03 Jun 2004 15:14:57 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7b) Gecko/20040409 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Saber ZRELLI References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> <40BE15DE.9020502@cs.rutgers.edu> <40BE1AF6.6050904@jaist.ac.jp> In-Reply-To: <40BE1AF6.6050904@jaist.ac.jp> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 07:15:20 -0000 Hi, talk about the devil: http://news3.xinhuanet.com/english/2004-06/03/content_1506278.htm This is a potential target application. Erich From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 16:26:51 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5575316A4CF for ; Wed, 2 Jun 2004 16:26:51 -0700 (PDT) Received: from gwyn.kn-bremen.de (gwyn.kn-bremen.de [212.63.36.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D81A43D3F for ; Wed, 2 Jun 2004 16:26:47 -0700 (PDT) (envelope-from nox@saturn.kn-bremen.de) Received: from gwyn.kn-bremen.de (uucp@gwyn [127.0.0.1]) i52NQi5Y009597 for ; Thu, 3 Jun 2004 01:26:44 +0200 Received: from saturn.kn-bremen.de (uucp@localhost)i52NQiaY009595 for freebsd-hackers@freebsd.org; Thu, 3 Jun 2004 01:26:44 +0200 Received: (from nox@localhost) by saturn.kn-bremen.de (8.11.4/8.8.5) id i52NZ7U41185 for freebsd-hackers@freebsd.org; Thu, 3 Jun 2004 01:35:07 +0200 (CEST) From: Juergen Lock Date: Thu, 3 Jun 2004 01:34:59 +0200 To: freebsd-hackers@freebsd.org Message-ID: <20040603013459.A40942@saturn.kn-bremen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i X-Mailman-Approved-At: Thu, 03 Jun 2004 05:09:33 -0700 Subject: qemu; emulators/rtc doesnt send SIGIO, is this patch right? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 23:26:51 -0000 Hi! Is the following patch to the emulators/rtc port right? qemu (see http://www.freebsd.org/cgi/query-pr.cgi?pr=67506) expects it to send SIGIO and i'm not that good at kernel hacking to know if the following is correct... it seems to work for me tho. (Anyone interested in helping fixing the other problems mentioned in the pkg-descr is welcome also. This looks like a coool project...) Index: files/rtc.c =================================================================== RCS file: /home/ncvs/ports/emulators/rtc/files/rtc.c,v retrieving revision 1.15 diff -u -r1.15 rtc.c --- files/rtc.c 13 Mar 2004 21:20:03 -0000 1.15 +++ files/rtc.c 1 Jun 2004 15:46:19 -0000 @@ -74,6 +74,11 @@ int opened:1; int enabled:1; } flags; +#if __FreeBSD_version >= 500023 + struct thread *sproc; +#else + struct proc *sproc; +#endif struct callout rtc_handle; struct timespec lasttime; struct selinfo sip; @@ -207,6 +212,7 @@ if (sc->var.flags.opened) return (EBUSY); + sc->var.sproc = NULL; sc->var.flags.opened = 1; return 0; @@ -222,6 +228,7 @@ struct rtc_softc *sc = (struct rtc_softc *) dev->si_drv1; rtc_detach(dev, sc); + sc->var.sproc = NULL; sc->var.flags.opened = 0; return 0; } @@ -261,6 +268,7 @@ break; case RTCIO_PIE_ON: sc->var.flags.enabled = 1; + sc->var.sproc = p; DLog(Linfo, "Enable interrupts"); break; default: @@ -394,6 +402,7 @@ return; /* Wakeup sleepers */ sc->var.woken++; + psignal(sc->var.sproc, SIGIO); selwakeup(&sc->var.sip); wakeup(&sc->var.rtc_ident); Thanks, Juergen From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 2 11:00:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DCD116A4CE; Wed, 2 Jun 2004 11:00:54 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id EC57B43D54; Wed, 2 Jun 2004 11:00:53 -0700 (PDT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i52I0lWR035814 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 2 Jun 2004 11:00:47 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-current@freebsd.org Date: Wed, 2 Jun 2004 10:56:52 -0700 User-Agent: KMail/1.6.1 References: <20040531215101.GA60299@freefall.freebsd.org> <20040602094940.GA80394@cell.sick.ru> In-Reply-To: <20040602094940.GA80394@cell.sick.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <200406021056.53005.sam@errno.com> X-Mailman-Approved-At: Thu, 03 Jun 2004 05:09:54 -0700 cc: freebsd-hackers@freebsd.org cc: Gleb Smirnoff cc: Bosko Milekic Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jun 2004 18:00:54 -0000 On Wednesday 02 June 2004 02:49 am, Gleb Smirnoff wrote: > Bosko, > > On Mon, May 31, 2004 at 02:51:01PM -0700, Bosko Milekic wrote: > B> mbuma is an Mbuf & Cluster allocator built on top of a number of > B> extensions to the UMA framework, all included herein. > > are you going to convert mbuf tag allocator to UMA? Now > tags are allocated with malloc(). AFAIK, tags are used heavily in pf, > and forthcoming ALTQ. Moving to UMA should affect their performance > positively. You probably meant you wanted to use a UMA zone. m_tag's can already be allocated using this mechanism. I did it once for vlan tags but botched it (didn't handle module references properly) so backed it. But there's no reason someone cannot redo it or convert other heavily used fixed size tags to use a zone. Sam From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 02:46:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 450DD16A4CE; Thu, 3 Jun 2004 02:46:52 -0700 (PDT) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0C5143D60; Thu, 3 Jun 2004 02:46:50 -0700 (PDT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.9/8.12.8) with ESMTP id i539kSvw089941 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 3 Jun 2004 13:46:28 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.9/8.12.6/Submit) id i539kQUh089940; Thu, 3 Jun 2004 13:46:26 +0400 (MSD) Date: Thu, 3 Jun 2004 13:46:26 +0400 From: Gleb Smirnoff To: Sam Leffler Message-ID: <20040603094626.GA89838@cell.sick.ru> References: <20040531215101.GA60299@freefall.freebsd.org> <20040602094940.GA80394@cell.sick.ru> <200406021056.53005.sam@errno.com> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <200406021056.53005.sam@errno.com> User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Thu, 03 Jun 2004 05:09:54 -0700 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Bosko Milekic Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 09:46:52 -0000 On Wed, Jun 02, 2004 at 10:56:52AM -0700, Sam Leffler wrote: S> > are you going to convert mbuf tag allocator to UMA? Now S> > tags are allocated with malloc(). AFAIK, tags are used heavily in pf, S> > and forthcoming ALTQ. Moving to UMA should affect their performance S> > positively. S> S> You probably meant you wanted to use a UMA zone. m_tag's can already be Exactly. What about using its own UMA zone for each m_tag consumer: pf, ALTQ, divert, vlan? Each module allocates its zone on startup, and later a reference to this zone is passed to m_tag_alloc(). S> allocated using this mechanism. I did it once for vlan tags but botched it S> (didn't handle module references properly) so backed it. But there's no S> reason someone cannot redo it or convert other heavily used fixed size tags S> to use a zone. Have you saved your efforts? May I look at them? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 05:28:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0294216A4CF for ; Thu, 3 Jun 2004 05:28:09 -0700 (PDT) Received: from mail0.jaist.ac.jp (mail0.jaist.ac.jp [150.65.5.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id B80F843D48 for ; Thu, 3 Jun 2004 05:28:07 -0700 (PDT) (envelope-from zrelli@jaist.ac.jp) Received: from smtp.jaist.ac.jp (proxy-isc.jaist.ac.jp [150.65.5.30]) by mail0.jaist.ac.jp (3.7W-jaist_mail) with ESMTP id i53CS1t06583; Thu, 3 Jun 2004 21:28:02 +0900 (JST) Received: from www.jaist.ac.jp (www.jaist.ac.jp [150.65.5.208]) by smtp.jaist.ac.jp (3.7W-smtp) with ESMTP id i53CRO215238; Thu, 3 Jun 2004 21:27:24 +0900 (JST) Received: from dm6302.jaist.ac.jp ([150.65.42.41]) (SquirrelMail authenticated user zrelli); by www.jaist.ac.jp with HTTP; Thu, 3 Jun 2004 21:28:01 +0900 (JST) Message-ID: <4100.150.65.42.41.1086265681.squirrel@150.65.42.41> In-Reply-To: <40BECFF1.7000906@pacific.net.sg> References: <40BDF377.4000900@jaist.ac.jp> <40BE05C0.1090807@pacific.net.sg> <40BE092F.9090402@jaist.ac.jp> <40BE0C13.309@pacific.net.sg> <40BE0F0F.6030805@jaist.ac.jp> <40BE15DE.9020502@cs.rutgers.edu> <40BE1AF6.6050904@jaist.ac.jp> <40BECFF1.7000906@pacific.net.sg> Date: Thu, 3 Jun 2004 21:28:01 +0900 (JST) From: "Saber Zrelli" To: "Erich Dollansky" User-Agent: SquirrelMail/1.4.3-RC1 X-Mailer: SquirrelMail/1.4.3-RC1 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal cc: freebsd-hackers@freebsd.org cc: Saber ZRELLI Subject: Re: suggestions ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: zrelli@jaist.ac.jp List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 12:28:09 -0000 thanks Erich , i knew that i was missing some thing :-) i got better idea about what you meant. > Hi, > > talk about the devil: > > http://news3.xinhuanet.com/english/2004-06/03/content_1506278.htm > > This is a potential target application. > > Erich > ------------------------------------------------------------------- Saber Zrelli Japan Advanced Institute of Science and Technology School of Informations Science , Katayama Lab. Url : www.jaist.ac.jp/~zrelli Gpg key-id : E3A7EC6C From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 06:10:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43C9416A4CE for ; Thu, 3 Jun 2004 06:10:27 -0700 (PDT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9ABE343D48 for ; Thu, 3 Jun 2004 06:10:26 -0700 (PDT) (envelope-from killing@multiplay.co.uk) Received: from steven ([193.123.241.40]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.1.0.R) with ESMTP id md50000259305.msg for ; Thu, 03 Jun 2004 14:07:15 +0100 Message-ID: <184b01c4496c$4ea3a6a0$7b07000a@int.mediasurface.com> From: "Steven Hartland" To: Date: Thu, 3 Jun 2004 14:11:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Processed: multiplay.co.uk, Thu, 03 Jun 2004 14:07:15 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 193.123.241.40 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 03 Jun 2004 14:07:15 +0100 Subject: FreeBSD vs Linux cpu usage measurements X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 13:10:27 -0000 I've been trying to do a direct comparison of game server cpu usages across various OS. Our current primary OS is FreeBSD 5.X running a 200HZ kernel. Initial tests on a dual boot opteron showed Linux using 0% CPU for 32 player servers so I got suspicious. >From talking to people it appears that Linux only registers cpu usage on the click tick so if a process was scheduled on the previous tick but yielded before the current tick it would have 0% cpu usage. In and extreme case could mean a process using 90% cpu or more could still be show in top as using 0% This seemed to be extremely noticeable on a 2.4.15 kernel but the values seem to me "more" correct on 2.6.5 but I believe this will be entirely down to the increase from 100Hz in 2.4 -> 1000Hz in 2.6. Anyway that's the background now to the question. Is there a fundamental difference in the way that FreeBSD records process cpu usage as I've seen this behaviour while running FreeBSD ever. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 07:54:06 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B5B016A4CE for ; Thu, 3 Jun 2004 07:54:06 -0700 (PDT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 231F443D48 for ; Thu, 3 Jun 2004 07:54:06 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id i53Es5YA069029; Thu, 3 Jun 2004 09:54:05 -0500 (CDT) (envelope-from dan) Date: Thu, 3 Jun 2004 09:54:05 -0500 From: Dan Nelson To: Steven Hartland Message-ID: <20040603145405.GD80605@dan.emsphone.com> References: <184b01c4496c$4ea3a6a0$7b07000a@int.mediasurface.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <184b01c4496c$4ea3a6a0$7b07000a@int.mediasurface.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD vs Linux cpu usage measurements X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 14:54:06 -0000 In the last episode (Jun 03), Steven Hartland said: > I've been trying to do a direct comparison of game server cpu usages > across various OS. Our current primary OS is FreeBSD 5.X running a > 200HZ kernel. Initial tests on a dual boot opteron showed Linux using > 0% CPU for 32 player servers so I got suspicious. > > >From talking to people it appears that Linux only registers cpu usage > on the click tick so if a process was scheduled on the previous tick > but yielded before the current tick it would have 0% cpu usage. In > and extreme case could mean a process using 90% cpu or more could > still be show in top as using 0% I haven't seen this myself on any of my Linux boxes, but then again, I never use procps top. I always install unixtop (www.unixtop.org), to maintain the same top across all OSes. > This seemed to be extremely noticeable on a 2.4.15 kernel but the > values seem to me "more" correct on 2.6.5 but I believe this will be > entirely down to the increase from 100Hz in 2.4 -> 1000Hz in 2.6. > > Anyway that's the background now to the question. Is there a > fundamental difference in the way that FreeBSD records process cpu > usage as I've seen this behaviour while running FreeBSD ever. The "%CPU" column as shown by top is pretty much whatever the person that wrote the scheduler decides it is :) On AIX, for example, it's a number that starts at 0 every scheduling interval and ramps up to 120 slowly. Both of FreeBSD's schedulers use a decaying average for their %CPU. What unixtop does for about 25% of the platforms it supports is dig into the rusage data for each process and remember the last value, which gives you instantaneous %CPU over the previous sampling interval. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 08:19:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71B0E16A4CE; Thu, 3 Jun 2004 08:19:31 -0700 (PDT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 590BF43D45; Thu, 3 Jun 2004 08:19:31 -0700 (PDT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.10/8.12.10) with ESMTP id i53FJBSK013777; Thu, 3 Jun 2004 08:19:11 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.10/8.12.3/Submit) id i53FJBVs013776; Thu, 3 Jun 2004 08:19:11 -0700 Date: Thu, 3 Jun 2004 08:19:11 -0700 From: Brooks Davis To: Gleb Smirnoff Message-ID: <20040603151911.GB12727@Odin.AC.HMC.Edu> References: <20040531215101.GA60299@freefall.freebsd.org> <20040602094940.GA80394@cell.sick.ru> <200406021056.53005.sam@errno.com> <20040603094626.GA89838@cell.sick.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mojUlQ0s9EVzWg2t" Content-Disposition: inline In-Reply-To: <20040603094626.GA89838@cell.sick.ru> User-Agent: Mutt/1.5.4i cc: Sam Leffler cc: freebsd-current@freebsd.org cc: Bosko Milekic cc: freebsd-hackers@freebsd.org Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 15:19:31 -0000 --mojUlQ0s9EVzWg2t Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 03, 2004 at 01:46:26PM +0400, Gleb Smirnoff wrote: > On Wed, Jun 02, 2004 at 10:56:52AM -0700, Sam Leffler wrote: > S> allocated using this mechanism. I did it once for vlan tags but botch= ed it=20 > S> (didn't handle module references properly) so backed it. But there's n= o=20 > S> reason someone cannot redo it or convert other heavily used fixed size= tags=20 > S> to use a zone. >=20 > Have you saved your efforts? May I look at them? They are in the CVS history of sys/net/if_vlan.c. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --mojUlQ0s9EVzWg2t Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFAv0FvXY6L6fI4GtQRAu62AKCoo+M3sbTkKnDUEjSKStgnT2hMjgCfQwkC zxYRQ/aH9mF8aD+BxaSafXI= =NLkg -----END PGP SIGNATURE----- --mojUlQ0s9EVzWg2t-- From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 08:58:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D65D16A4CE; Thu, 3 Jun 2004 08:58:55 -0700 (PDT) Received: from smtp.omnis.com (smtp.omnis.com [216.239.128.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id A118C43D1D; Thu, 3 Jun 2004 08:58:54 -0700 (PDT) (envelope-from wes@softweyr.com) Received: from softweyr.homeunix.net (24-161-166-146.san.rr.com [24.161.166.146]) by smtp-relay.omnis.com (Postfix) with ESMTP id CA4081880C38; Thu, 3 Jun 2004 08:58:48 -0700 (PDT) From: Wes Peters Organization: Softweyr.COM To: freebsd-hackers@freebsd.org Date: Thu, 3 Jun 2004 08:58:47 -0700 User-Agent: KMail/1.6.1 References: <20040602141234.GA33162@freefall.freebsd.org> In-Reply-To: <20040602141234.GA33162@freefall.freebsd.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200406030858.47817.wes@softweyr.com> cc: Gleb Smirnoff cc: freebsd-current@freebsd.org cc: Bosko Milekic Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 15:58:55 -0000 On Wednesday 02 June 2004 07:12, Bosko Milekic wrote: > > If you read the paper on mbuma, you'll notice that I point out that it > would be worth investigating whether, in scenarios where an m_tag is > ALWAYS required per packet (e.g., MAC), providing a secondary zone with > pre-allocated m_tags for packet headers might be worth it. Prior to > this work, however, I suggest we investigate the possibility of using > smaller mini-mbufs whenever clusters are used so that space wastage > is reduced. It may also be worthwhile investigating eliminating clusters entirely. This is the point Poul-Henning, Robert and I were trying to make at the end of you talk at BSDCan. Since the double allocation required to create a cluster makes the locking (and cache slushing) requirements go up, it is probably worthwhile to investigate if raising the nominal mbuf size doesn't end up decreasing overall memory pressure. If you allocate more memory, but the allocation takes less time due to the simpler locking, you may actually decrease the total memory need. This is worth investigating partly because it is such a simple change. I propose investigating with mbuf size of 2K, large enough to fit standard ethernet frames, and a cluster size of 8K, which means a cluster mbuf is large enough to hold a 9K jumbo frame. Now that you've got mbuma in the tree, I can test this for you, unless this proposal catches your interest enough to give it a try. I'll see if I can't get a couple of our beefier machines at work updated to -CURRENT in the next week. Thanks for the good work. -- Where am I, and what am I doing in this handbasket? Wes Peters wes@softweyr.com From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 09:08:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35E1616A4CE for ; Thu, 3 Jun 2004 09:08:12 -0700 (PDT) Received: from web60201.mail.yahoo.com (web60201.mail.yahoo.com [216.109.118.96]) by mx1.FreeBSD.org (Postfix) with SMTP id DA35443D2F for ; Thu, 3 Jun 2004 09:08:11 -0700 (PDT) (envelope-from freebsder51@yahoo.com) Message-ID: <20040603160811.89450.qmail@web60201.mail.yahoo.com> Received: from [67.69.62.45] by web60201.mail.yahoo.com via HTTP; Thu, 03 Jun 2004 09:08:11 PDT Date: Thu, 3 Jun 2004 09:08:11 -0700 (PDT) From: aussie gal To: zera holladay , freebsd-hackers@freebsd.org In-Reply-To: <20040602223901.65332.qmail@web41410.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: Network config on FreeBSD 5.1 - 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: Thu, 03 Jun 2004 16:08:12 -0000 Yeah - I have read it. when I do the ifconfig i get: vr0: flags=8843 mtu 1500 inet6 fe80::20e:a6ff:..[hexidecimal ipv6 address]%vr0 prefixlen 64 scopid 0x1 inet 0.0.0.0 netmask 0xff0000000 broadcast 255.255.255.255 ether 00:0e:a6:.. [hexidecimal ipv4 address] media: Ethernet autoselect (10baseT/UTP) status: active The one thing that I noticed was that the example on the website has all the addresses in non-hexcedecimal format and my output has them all in hex ipv6/4. Do I really need ipv6? If not, how do I get rid of it or does it matter? This poses a problem because I am suppose to include my IP address as per the example on the website: ifconfig_dc0="inet 192.168.1.3 netmask 255.255.255.0" ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 media 10baseT/UTP" BUT these addresses are not in hexidecimal whereas my inet #s are. Any ideas what is going on here? Btw, my rc.conf file includes the following: font8x14 ="NO" font8X16 = "NO" gateway_enable="YES" inetd_enable="YES" linux_enable="YES" moused_enable="YES" moused_port="/dev/psm0" moused_type="auto" nfs_client_enable="YES" nfs_server_enable="YES" rpcbind_enable="YES" saver="rain" scrnmap="NO" usbd_enable="YES" sendmail_enable="YES" #ifconfig_vr0="inet6 hex address netmask 255.255.255.0" #ipv6_enable="NO" hostname= "..." ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="bellnet.ca" sendmail_enable="YES" gateway_enable="YES" rpc_statd_enable="YES" tcp_extensions="YES" hostname="..." ifconfig_vr0="DHCP" Thanks! fb51 zera holladay wrote: Have you read this yet? http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html -zh --- aussie gal wrote: > Hi - I'm trying to configure my network card on a > newly installed freebsd 5.1. > BUT - I can get the system to come on line. It > recoginizes the hardware as being UP ... > > I've been hitting several TCP/IP how-tos on the web > and doing lots of reading and tweaking to no avail. > > Please advise. Does anyone have experience with > 5.1? > > Regards, > > fb51 > > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > _______________________________________________ > 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" __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 11:59:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F8DC16A4CE for ; Thu, 3 Jun 2004 11:59:20 -0700 (PDT) Received: from web41412.mail.yahoo.com (web41412.mail.yahoo.com [66.218.93.78]) by mx1.FreeBSD.org (Postfix) with SMTP id 691E243D58 for ; Thu, 3 Jun 2004 11:59:18 -0700 (PDT) (envelope-from zera_holladay@yahoo.com) Message-ID: <20040603185916.38672.qmail@web41412.mail.yahoo.com> Received: from [68.252.234.36] by web41412.mail.yahoo.com via HTTP; Thu, 03 Jun 2004 11:59:16 PDT Date: Thu, 3 Jun 2004 11:59:16 -0700 (PDT) From: zera holladay To: aussie gal , freebsd-hackers@freebsd.org In-Reply-To: <20040603160811.89450.qmail@web60201.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Network config on FreeBSD 5.1 - 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: Thu, 03 Jun 2004 18:59:20 -0000 How do you connect (or want to connect) to your network or to the internet? Do you have your own private network and you connect through a gateway or router, or do you have a DSL modem attached directly to your ethernet card? You are not getting an IP address and your netmask is for a very, very large network. Networking is like cooking -- you have to first decide what you want to cook with the ingredients you have, then you have to get a recipe and follow it. -zh --- aussie gal wrote: > Yeah - I have read it. > > when I do the ifconfig i get: > vr0: flags=8843 MULTICAST> mtu 1500 > inet6 fe80::20e:a6ff:..[hexidecimal ipv6 > address]%vr0 prefixlen 64 scopid 0x1 > inet 0.0.0.0 netmask 0xff0000000 broadcast > 255.255.255.255 > ether 00:0e:a6:.. [hexidecimal ipv4 address] > media: Ethernet autoselect (10baseT/UTP) > status: active > > The one thing that I noticed was that the example on > the website has all the addresses in > non-hexcedecimal format and my output has them all > in hex ipv6/4. > Do I really need ipv6? If not, how do I get rid of > it or does it matter? > > This poses a problem because I am suppose to include > my IP address as per the example on the website: > > ifconfig_dc0="inet 192.168.1.3 netmask > 255.255.255.0" > ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 > media 10baseT/UTP" > > BUT these addresses are not in hexidecimal whereas > my inet #s are. > > Any ideas what is going on here? > > Btw, my rc.conf file includes the following: > > font8x14 ="NO" > font8X16 = "NO" > gateway_enable="YES" > inetd_enable="YES" > linux_enable="YES" > moused_enable="YES" > moused_port="/dev/psm0" > moused_type="auto" > nfs_client_enable="YES" > nfs_server_enable="YES" > rpcbind_enable="YES" > saver="rain" > > scrnmap="NO" > usbd_enable="YES" > sendmail_enable="YES" > #ifconfig_vr0="inet6 hex address netmask > 255.255.255.0" > #ipv6_enable="NO" > hostname= "..." > ppp_enable="YES" > ppp_mode="ddial" > ppp_nat="YES" > ppp_profile="bellnet.ca" > sendmail_enable="YES" > gateway_enable="YES" > rpc_statd_enable="YES" > tcp_extensions="YES" > hostname="..." > ifconfig_vr0="DHCP" > > > Thanks! > fb51 > > > zera holladay wrote: > Have you read this yet? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html > > -zh > > --- aussie gal wrote: > > Hi - I'm trying to configure my network card on a > > newly installed freebsd 5.1. > > BUT - I can get the system to come on line. It > > recoginizes the hardware as being UP ... > > > > I've been hitting several TCP/IP how-tos on the > web > > and doing lots of reading and tweaking to no > avail. > > > > Please advise. Does anyone have experience with > > 5.1? > > > > Regards, > > > > fb51 > > > > > > > > --------------------------------- > > Do you Yahoo!? > > Friends. Fun. Try the all-new Yahoo! Messenger > > _______________________________________________ > > 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" > > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > _______________________________________________ > 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" __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 13:00:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9E7716A4CE for ; Thu, 3 Jun 2004 13:00:45 -0700 (PDT) Received: from web60206.mail.yahoo.com (web60206.mail.yahoo.com [216.109.118.101]) by mx1.FreeBSD.org (Postfix) with SMTP id 6704E43D55 for ; Thu, 3 Jun 2004 13:00:26 -0700 (PDT) (envelope-from freebsder51@yahoo.com) Message-ID: <20040603200025.20108.qmail@web60206.mail.yahoo.com> Received: from [67.69.62.45] by web60206.mail.yahoo.com via HTTP; Thu, 03 Jun 2004 13:00:25 PDT Date: Thu, 3 Jun 2004 13:00:25 -0700 (PDT) From: aussie gal To: zera holladay , freebsd-hackers@freebsd.org In-Reply-To: <20040603185916.38672.qmail@web41412.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Re: Network config on FreeBSD 5.1 - 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: Thu, 03 Jun 2004 20:00:46 -0000 This is the set-up: I have a High-Speed Internet connection. What you would call a DSL modem connection. I have the main modem connection hooked up to a 4-port hub. Two ports are connected to WinXP boxes and the third one is connected to my freebsd box into the ethernet port supplied by the Asus motherboard (it has a build-in RJ port). I have the other two XP boxes up and running but my freebsd box is (as you can see) struggling. Longterm prospects: 1) After I can get freebsd networked, I would like to eventually install some security and then take over the world with a cluster of boxes designed by top secret software. 2) Just kidding. I want to set up a small network of computers running off of this freebsd server, a mail server, and a half decent web server with Perl/php/etc and maybe some other cook bells and whistles. But yes, I will probably want some security via a firewall at some point as well. Maybe sooner rather than later. But I first need to pick-up the networking fundementals Btw, In the initial Sysinstall > Network configuation dialogs I specified that I did not want Ipv6 and that I wanted dchp. For the "network configuration" screen i filled in the following: Host: host.name.com domain: name.com ipv4 gateway: blank Name server: this is my isp's dns server's ip address and for the "Configuration for Interface vr0" dialog I write: ipv4 address: Blank Netmask: 255.255.255.0 <- I just changed this to 255.255.0.0 as per your suggestion extra options: blank I hope this helps. Any thoughts on how to help me find my IP address? Thanks for your suggestion. Regards, Nav zera holladay wrote: How do you connect (or want to connect) to your network or to the internet? Do you have your own private network and you connect through a gateway or router, or do you have a DSL modem attached directly to your ethernet card? You are not getting an IP address and your netmask is for a very, very large network. Networking is like cooking -- you have to first decide what you want to cook with the ingredients you have, then you have to get a recipe and follow it. -zh --- aussie gal wrote: > Yeah - I have read it. > > when I do the ifconfig i get: > vr0: flags=8843> MULTICAST> mtu 1500 > inet6 fe80::20e:a6ff:..[hexidecimal ipv6 > address]%vr0 prefixlen 64 scopid 0x1 > inet 0.0.0.0 netmask 0xff0000000 broadcast > 255.255.255.255 > ether 00:0e:a6:.. [hexidecimal ipv4 address] > media: Ethernet autoselect (10baseT/UTP) > status: active > > The one thing that I noticed was that the example on > the website has all the addresses in > non-hexcedecimal format and my output has them all > in hex ipv6/4. > Do I really need ipv6? If not, how do I get rid of > it or does it matter? > > This poses a problem because I am suppose to include > my IP address as per the example on the website: > > ifconfig_dc0="inet 192.168.1.3 netmask > 255.255.255.0" > ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 > media 10baseT/UTP" > > BUT these addresses are not in hexidecimal whereas > my inet #s are. > > Any ideas what is going on here? > > Btw, my rc.conf file includes the following: > > font8x14 ="NO" > font8X16 = "NO" > gateway_enable="YES" > inetd_enable="YES" > linux_enable="YES" > moused_enable="YES" > moused_port="/dev/psm0" > moused_type="auto" > nfs_client_enable="YES" > nfs_server_enable="YES" > rpcbind_enable="YES" > saver="rain" > > scrnmap="NO" > usbd_enable="YES" > sendmail_enable="YES" > #ifconfig_vr0="inet6 hex address netmask > 255.255.255.0" > #ipv6_enable="NO" > hostname= "..." > ppp_enable="YES" > ppp_mode="ddial" > ppp_nat="YES" > ppp_profile="bellnet.ca" > sendmail_enable="YES" > gateway_enable="YES" > rpc_statd_enable="YES" > tcp_extensions="YES" > hostname="..." > ifconfig_vr0="DHCP" > > > Thanks! > fb51 > > > zera holladay wrote: > Have you read this yet? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html > > -zh > > --- aussie gal wrote: > > Hi - I'm trying to configure my network card on a > > newly installed freebsd 5.1. > > BUT - I can get the system to come on line. It > > recoginizes the hardware as being UP ... > > > > I've been hitting several TCP/IP how-tos on the > web > > and doing lots of reading and tweaking to no > avail. > > > > Please advise. Does anyone have experience with > > 5.1? > > > > Regards, > > > > fb51 > > > > > > > > --------------------------------- > > Do you Yahoo!? > > Friends. Fun. Try the all-new Yahoo! Messenger > > _______________________________________________ > > 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" > > > > > > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ > > > --------------------------------- > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger > _______________________________________________ > 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" __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ --------------------------------- Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 15:16:16 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2375A16A4D1 for ; Thu, 3 Jun 2004 15:16:16 -0700 (PDT) Received: from web41406.mail.yahoo.com (web41406.mail.yahoo.com [66.218.93.72]) by mx1.FreeBSD.org (Postfix) with SMTP id BAADF43D3F for ; Thu, 3 Jun 2004 15:16:15 -0700 (PDT) (envelope-from zera_holladay@yahoo.com) Message-ID: <20040603221615.19060.qmail@web41406.mail.yahoo.com> Received: from [68.252.234.36] by web41406.mail.yahoo.com via HTTP; Thu, 03 Jun 2004 15:16:15 PDT Date: Thu, 3 Jun 2004 15:16:15 -0700 (PDT) From: zera holladay To: aussie gal , freebsd-hackers@freebsd.org In-Reply-To: <20040603200025.20108.qmail@web60206.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Network config on FreeBSD 5.1 - 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: Thu, 03 Jun 2004 22:16:16 -0000 How do your Windows XP computers get their ip addresses: are they statically assigned ip addresses or do you have a DHCP server? If you have not configured your Windows XP computers with static ip addresses or you don't know what a static ip address is, then your hub is probably taking care of DHCP for you. The best way to determine how ip addresses are assigned is to check your Windows computers since they seem to be working fine. I won't explain how to check this on Windows (if you e-mail me independent of this mailing list, I will help you out). rc.conf file is a sequence of instructions and variables. rc.conf is executed as FreeBSD boots, so try commenting out everything you don't need except for ifconfig_vr0="DHCP" and rebooting. If you don't know what the problem is, then eliminate variables unit you isolate the problem. -zh --- aussie gal wrote: > This is the set-up: > > I have a High-Speed Internet connection. What you > would call a DSL modem connection. I have the main > modem connection hooked up to a 4-port hub. Two > ports are connected to WinXP boxes and the third one > is connected to my freebsd box into the ethernet > port supplied by the Asus motherboard (it has a > build-in RJ port). I have the other two XP boxes up > and running but my freebsd box is (as you can see) > struggling. > > Longterm prospects: > > 1) After I can get freebsd networked, I would like > to eventually install some security and then take > over the world with a cluster of boxes designed by > top secret software. > > 2) Just kidding. I want to set up a small > network of computers running off of this freebsd > server, a mail server, and a half decent web server > with Perl/php/etc and maybe some other cook bells > and whistles. But yes, I will probably want some > security via a firewall at some point as well. > Maybe sooner rather than later. But I first need to > pick-up the networking fundementals > > Btw, In the initial Sysinstall > Network > configuation dialogs I specified that I did not want > Ipv6 and that I wanted dchp. > > For the "network configuration" screen i filled in > the following: > Host: host.name.com > domain: name.com > ipv4 gateway: blank > Name server: this is my isp's dns server's ip > address > > and for the "Configuration for Interface vr0" dialog > I write: > ipv4 address: Blank > Netmask: 255.255.255.0 <- I just changed this to > 255.255.0.0 as per your suggestion > extra options: blank > > I hope this helps. Any thoughts on how to help me > find my IP address? > > Thanks for your suggestion. > > Regards, > Nav > zera holladay wrote: > How do you connect (or want to connect) to your > network or to the internet? Do you have your own > private network and you connect through a gateway or > router, or do you have a DSL modem attached directly > to your ethernet card? You are not getting an IP > address and your netmask is for a very, very large > network. Networking is like cooking -- you have to > first decide what you want to cook with the > ingredients you have, then you have to get a recipe > and follow it. > > -zh > > > --- aussie gal wrote: > > Yeah - I have read it. > > > > when I do the ifconfig i get: > > vr0: flags=8843> MULTICAST> mtu 1500 > > inet6 fe80::20e:a6ff:..[hexidecimal ipv6 > > address]%vr0 prefixlen 64 scopid 0x1 > > inet 0.0.0.0 netmask 0xff0000000 broadcast > > 255.255.255.255 > > ether 00:0e:a6:.. [hexidecimal ipv4 address] > > media: Ethernet autoselect (10baseT/UTP) > > status: active > > > > The one thing that I noticed was that the example > on > > the website has all the addresses in > > non-hexcedecimal format and my output has them all > > in hex ipv6/4. > > Do I really need ipv6? If not, how do I get rid of > > it or does it matter? > > > > This poses a problem because I am suppose to > include > > my IP address as per the example on the website: > > > > ifconfig_dc0="inet 192.168.1.3 netmask > > 255.255.255.0" > > ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 > > media 10baseT/UTP" > > > > BUT these addresses are not in hexidecimal whereas > > my inet #s are. > > > > Any ideas what is going on here? > > > > Btw, my rc.conf file includes the following: > > > > font8x14 ="NO" > > font8X16 = "NO" > > gateway_enable="YES" > > inetd_enable="YES" > > linux_enable="YES" > > moused_enable="YES" > > moused_port="/dev/psm0" > > moused_type="auto" > > nfs_client_enable="YES" > > nfs_server_enable="YES" > > rpcbind_enable="YES" > > saver="rain" > > > > scrnmap="NO" > > usbd_enable="YES" > > sendmail_enable="YES" > > #ifconfig_vr0="inet6 hex address netmask > > 255.255.255.0" > > #ipv6_enable="NO" > > hostname= "..." > > ppp_enable="YES" > > ppp_mode="ddial" > > ppp_nat="YES" > > ppp_profile="bellnet.ca" > > sendmail_enable="YES" > > gateway_enable="YES" > > rpc_statd_enable="YES" > > tcp_extensions="YES" > > hostname="..." > > ifconfig_vr0="DHCP" > > > > > > Thanks! > > fb51 > > > > > > zera holladay wrote: > > Have you read this yet? > > > > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html > > > > -zh > > > > --- aussie gal wrote: > > > Hi - I'm trying to configure my network card on > a > > > newly installed freebsd 5.1. > > > BUT - I can get the system to come on line. It > > > recoginizes the hardware as being UP ... > > > > > > I've been hitting several TCP/IP how-tos on the > > web > > > and doing lots of reading and tweaking to no > > avail. > > > > > > Please advise. Does anyone have experience with > > > 5.1? > > > > > > Regards, > > > > > > fb51 > > > > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > Friends. Fun. Try the all-new Yahoo! Messenger > > > _______________________________________________ > > > 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" > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Friends. Fun. Try the all-new Yahoo! Messenger. > > http://messenger.yahoo.com/ > > > > > > --------------------------------- > > Do you Yahoo!? > > Friends. Fun. Try the all-new Yahoo! Messenger > > _______________________________________________ > > 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" > === message truncated === __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 14:43:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1931F16A4CE for ; Thu, 3 Jun 2004 14:43:22 -0700 (PDT) Received: from relay.transip.nl (relay.transip.nl [80.69.66.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACE3D43D49 for ; Thu, 3 Jun 2004 14:43:21 -0700 (PDT) (envelope-from ali@transip.nl) Received: from redguy (peris.demon.nl [212.238.139.202]) by relay.transip.nl (Postfix) with SMTP id 5D45C34A71A for ; Thu, 3 Jun 2004 23:43:19 +0200 (CEST) Message-ID: <00dd01c449b3$ca5a0f90$0400a8c0@redguy> From: "Ali Niknam" To: Date: Thu, 3 Jun 2004 23:43:18 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Mailman-Approved-At: Fri, 04 Jun 2004 05:16:33 -0700 Subject: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 21:43:22 -0000 Hi Guys, First of all: this is my first posting in this group so please be gentil :) The other day I was upgrading a system from FreeBSD 4.5 single CPU to FreeBSD 5.2.1 dual CPU and I came across a terrible problem. The system is used as a rather busy webserver, with continuesly about 1200 apache processes, and about 200 mysql pthreads. The problem i ran into is that when apache starts it needs to create a lot of childs quickly. When it does so at a given time, after about a minute or so, a couple of childs go into "Giant" status mode. After a few seconds more and more processes go into Giant mode up until the point that the system will become totally unresponsive (even for keyboard innput). The only remedy is to disconnect the utp and wait a few seconds; then kill everything. Now the nice part is: this happens only if i set apache's maxclients > 1250. Under 1250 the same scenario happens but after a minute or so the system recovers! Now i unfortunately do not know enough about the internals of BSD to do a very estimated guess, but i'll give a shot nevertheless: my estimate is that due to the tremendous amount of 'locked' processes the system simply starves of CPU to do anything. My guess is the Locking mechanism probably uses some kind of 'spin' to wait until the resource is unlocked (whichever resource it is, probably something network related, though). This is based upon the fact that this does not happen if you slightly decrease the number of apache's; what happens in that case is that the same scenario goes on; however after a minute or so the system recovers! (probably because it has just enough CPU to handle everything as apache hits its limit?) Now if this is indeed the case i was thinking of something like a sysctl MUTEX_BLOCK_THRESHOLD set to something like 50. If the system detects that the number of processes locked is higher than this number, then it stops 'spinning' for resources, but instead uses a 'blocking' mechanism (simply puts the processes in a 'waiting' queue). I would be very interested to hear what this problem could be; perhaps i can test a little if someone has solutions (i cant test much unfortunately, it's a production system). Best Regards, Ali Niknam From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 3 15:15:02 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4068716A4CE for ; Thu, 3 Jun 2004 15:15:02 -0700 (PDT) Received: from therub.org (pantheon-ws-13.direct.hickorytech.net [216.114.200.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21F2843D2F for ; Thu, 3 Jun 2004 15:15:01 -0700 (PDT) (envelope-from drue@therub.org) Received: from drue by therub.org with local (Exim 3.35 #1 (Debian)) id 1BW0UA-0005g9-00 for ; Thu, 03 Jun 2004 17:14:54 -0500 Date: Thu, 3 Jun 2004 17:14:54 -0500 To: freebsd-hackers@freebsd.org Message-ID: <20040603221454.GA21622@therub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i From: Dan Rue X-Mailman-Approved-At: Fri, 04 Jun 2004 05:16:33 -0700 Subject: chmod features: +RW? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Jun 2004 22:15:02 -0000 Hey, I searched the archives, but haven't seen anything regarding this. I am interested in a feature addition to chmod for the equivalent of +X (Add x bit only if it's a dir), except for read and write (R and W?). I'm not sure how useful W would be - but R would be quite useful for allowing the reading and traversing of dirs without giving read permission to the contents of the dirs. I know you can do this with a find - that's what I've done in the past. I'm just wondering if this have been discussed, if it's a horrible idea, etc. If it's a good idea, I'll gladly write a patch - just let me know who to send it to. If this is the wrong mailing list, let me know that too. thanks, dan From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 04:27:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8DF216A4CE; Fri, 4 Jun 2004 04:27:48 -0700 (PDT) Received: from cell.sick.ru (cell.sick.ru [217.72.144.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE6D43D1D; Fri, 4 Jun 2004 04:27:48 -0700 (PDT) (envelope-from glebius@cell.sick.ru) Received: from cell.sick.ru (glebius@localhost [127.0.0.1]) by cell.sick.ru (8.12.9/8.12.8) with ESMTP id i54BRZvw098375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 4 Jun 2004 15:27:36 +0400 (MSD) (envelope-from glebius@cell.sick.ru) Received: (from glebius@localhost) by cell.sick.ru (8.12.9/8.12.6/Submit) id i54BRYWF098374; Fri, 4 Jun 2004 15:27:34 +0400 (MSD) Date: Fri, 4 Jun 2004 15:27:33 +0400 From: Gleb Smirnoff To: Brooks Davis Message-ID: <20040604112733.GC98227@cell.sick.ru> References: <20040531215101.GA60299@freefall.freebsd.org> <20040602094940.GA80394@cell.sick.ru> <200406021056.53005.sam@errno.com> <20040603094626.GA89838@cell.sick.ru> <20040603151911.GB12727@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20040603151911.GB12727@Odin.AC.HMC.Edu> User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Fri, 04 Jun 2004 05:16:33 -0700 cc: Sam Leffler cc: freebsd-current@freebsd.org cc: Bosko Milekic cc: freebsd-hackers@freebsd.org Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 11:27:49 -0000 On Thu, Jun 03, 2004 at 08:19:11AM -0700, Brooks Davis wrote: B> > On Wed, Jun 02, 2004 at 10:56:52AM -0700, Sam Leffler wrote: B> > S> allocated using this mechanism. I did it once for vlan tags but botched it B> > S> (didn't handle module references properly) so backed it. But there's no B> > S> reason someone cannot redo it or convert other heavily used fixed size tags B> > S> to use a zone. B> > B> > Have you saved your efforts? May I look at them? B> B> They are in the CVS history of sys/net/if_vlan.c. I see now, thanks. Question to Sam: have you performed any tests? Is this definitely true, that UMAllocing in special zone is faster than general malloc()? -- Totus tuus, Glebius. GLEBIUS-RIPN GLEB-RIPE From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 06:58:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F8BF16A4CE for ; Fri, 4 Jun 2004 06:58:27 -0700 (PDT) Received: from moutvdomng.kundenserver.de (moutvdom.kundenserver.de [212.227.126.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EFF643D1D for ; Fri, 4 Jun 2004 06:58:27 -0700 (PDT) (envelope-from liamfoy@sepulcrum.org) Received: from [212.227.126.224] (helo=mrvdomng.kundenserver.de) by moutvdomng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BWFDG-0007Qg-00 for hackers@freebsd.org; Fri, 04 Jun 2004 15:58:26 +0200 Received: from [81.153.214.95] (helo=liamfoy.ath.cx) by mrvdomng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BWFDG-0005UI-00 for hackers@freebsd.org; Fri, 04 Jun 2004 15:58:26 +0200 Date: Fri, 4 Jun 2004 14:57:17 +0100 From: "Liam J. Foy" To: hackers@freebsd.org Message-Id: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Orinoco Gold and Linksys AP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 13:58:27 -0000 Hey guys, I have also emailed this to freebsd-mobile@, so just writing to see if any of you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. They seem to both work fine in windows, just unable to ping each other in freebsd. Here is the output of ifconfig wi0: wi0: flags=8843 mtu 1500 inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 inet 192.168.0.20 netmask 0xffffff00 broadcast 255.255.255.0 ether 00:02:2d:c0:2a:58 media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) status: associated ssid Anduril 1:Anduril stationname "FreeBSD WaveLAN/IEEE node" channel 3 authmode OPEN powersavemode OFF powersavesleep 100 rtsthreshold 2312 protmode CTS wepmode OFF weptxkey 1 The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled also on the AP. Any hints or ideas are greatly thanked, Regards, -- -Liam Foy http://liamfoy.kerneled.org "Do only what only you can do." From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 08:14:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3BC4A16A4CE for ; Fri, 4 Jun 2004 08:14:13 -0700 (PDT) Received: from relay2.metrocom.ru (relay2.metrocom.ru [195.5.128.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35D1F43D1F for ; Fri, 4 Jun 2004 08:14:12 -0700 (PDT) (envelope-from alex@metrocom.ru) Received: from apache.metrocom.ru (apache.metrocom.ru [195.5.128.150]) by relay2.metrocom.ru (8.12.10/8.12.10) with ESMTP id i54FE5rm017346; Fri, 4 Jun 2004 19:14:05 +0400 (MSD) Date: Fri, 4 Jun 2004 19:14:12 +0400 (MSD) From: Varshavchick Alexander To: Ali Niknam In-Reply-To: <00dd01c449b3$ca5a0f90$0400a8c0@redguy> Message-ID: <20040604190859.D98354@apache.metrocom.ru> References: <00dd01c449b3$ca5a0f90$0400a8c0@redguy> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 15:14:13 -0000 Hi Ali, I can't say anything as how the issue can be connected with the mutexes and so on, but to solve your problem with apache, I'd look into 'hold_off_on_exponential_spawning' and 'MAX_SPAWN_RATE' parameters in src/main/http_main.c of the apache source tree (presuming you're using apache 1.3.*), and I'm sure some similar options can be found for apache 2.0. What you need is to make apache forking rate more slower, so the server will not suffer from a sudden load peak. Just my $0.02 :) ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)118-3322, 118-3115(fax) On Thu, 3 Jun 2004, Ali Niknam wrote: > Hi Guys, > > First of all: this is my first posting in this group so please be gentil :) > > The other day I was upgrading a system from FreeBSD 4.5 single CPU to > FreeBSD 5.2.1 dual CPU and I came across a terrible problem. > > The system is used as a rather busy webserver, with continuesly about 1200 > apache processes, and about 200 mysql pthreads. > > The problem i ran into is that when apache starts it needs to create a lot > of childs quickly. When it does so at a given time, after about a minute or > so, a couple of childs go into "Giant" status mode. After a few seconds more > and more processes go into Giant mode up until the point that the system > will become totally unresponsive (even for keyboard innput). The only remedy > is to disconnect the utp and wait a few seconds; then kill everything. > > Now the nice part is: this happens only if i set apache's maxclients > 1250. > Under 1250 the same scenario happens but after a minute or so the system > recovers! > > Now i unfortunately do not know enough about the internals of BSD to do a > very estimated guess, but i'll give a shot nevertheless: my estimate is that > due to the tremendous amount of 'locked' processes the system simply starves > of CPU to do anything. My guess is the Locking mechanism probably uses > some kind of 'spin' to wait until the resource is unlocked (whichever > resource it is, probably something network related, though). > > This is based upon the fact that this does not happen if you slightly > decrease the number of apache's; what happens in that case is that the same > scenario goes on; however after a minute or so the system recovers! > (probably because it has just enough CPU to handle everything as apache > hits its limit?) > > Now if this is indeed the case i was thinking of something like a sysctl > MUTEX_BLOCK_THRESHOLD set to something like 50. If the system detects that > the number of processes locked is higher than this number, then it stops > 'spinning' for resources, but instead uses a 'blocking' mechanism (simply > puts the processes in a 'waiting' queue). > > I would be very interested to hear what this problem could be; perhaps i can > test a little if someone has solutions (i cant test much unfortunately, > it's a production system). > > Best Regards, > Ali Niknam > > _______________________________________________ > 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 Jun 4 13:09:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33E8316A4CE for ; Fri, 4 Jun 2004 13:09:45 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 914CE43D2F for ; Fri, 4 Jun 2004 13:09:44 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i54K8LhU094564; Fri, 4 Jun 2004 16:08:21 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i54K8LfX094561; Fri, 4 Jun 2004 16:08:21 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 4 Jun 2004 16:08:21 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ali Niknam In-Reply-To: <00dd01c449b3$ca5a0f90$0400a8c0@redguy> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 20:09:45 -0000 On Thu, 3 Jun 2004, Ali Niknam wrote: > First of all: this is my first posting in this group so please be gentil > :) Welcome :-). > Now i unfortunately do not know enough about the internals of BSD to do a > very estimated guess, but i'll give a shot nevertheless: my estimate is that > due to the tremendous amount of 'locked' processes the system simply starves > of CPU to do anything. My guess is the Locking mechanism probably uses > some kind of 'spin' to wait until the resource is unlocked (whichever > resource it is, probably something network related, though). Actually, by default, most mutexes in the system are sleep mutexes, so they sleep on contention rather than spinning. In some cases, this actually hurts more than spinning, because if the mutex is released quickly by the holder, then you pay the context switches which cost more than spinning for the short period of time. You might want to try adding "options ADAPTIVE_MUTEXES" to your kernel configuration, which will cause mutexes to spin briefly on SMP systems before sleeping, and has been observed to improve performance quite a bit. > I would be very interested to hear what this problem could be; perhaps i > can test a little if someone has solutions (i cant test much > unfortunately, it's a production system). As you may or may not be aware, improving locking and parallelism in FreeBSD 5.x is a big on-going task, with a lot of activity. A moderate quantity of recent locking work has occurred since 5.2.1 release, so depending on your tolerance for experimentation on this system, you might wish to give 5-CURRENT a try. Be warned that 5-CURRENT, while having a number of performance enhancements, also has some stability regressions, more recent ACPI code, etc. I'm using older snapshots of 5-CURRENT in production today, but generally not newer than about April or early May. If you do try -CURRENT, take a look at UPDATING, and make sure to disable a lot of the debugging features present if you're interested specifically in performance. If you have a lower tolerance for instability, there are a number of minor performance tweaks that can be easily back-ported to 5.2.1, such as the change to proc.h to make grabbing and releasing the proc lock conditional on p_stops having events defined. This removes several mutex operations from each system call, and I've observed the difference in a pretty measurable way on micro-benchmarks. It's also pretty low risk. The change is src/sys/sys/proc.h:1.366. There are some other related changes that can probably be dug up, including changes to improve the performance of the scheduler in the presence of threads, etc. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 13:28:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 186F316A4CE; Fri, 4 Jun 2004 13:28:41 -0700 (PDT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F6CB43D1F; Fri, 4 Jun 2004 13:28:38 -0700 (PDT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.1.0.R) with ESMTP id md50000263262.msg; Fri, 04 Jun 2004 21:21:11 +0100 Message-ID: <00fb01c44a71$c7f26d10$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Robert Watson" , "Ali Niknam" References: Date: Fri, 4 Jun 2004 21:23:17 +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.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Processed: multiplay.co.uk, Fri, 04 Jun 2004 21:21:11 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Fri, 04 Jun 2004 21:21:12 +0100 cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 20:28:41 -0000 ----- Original Message ----- From: "Robert Watson" > You might want to try adding "options ADAPTIVE_MUTEXES" to your kernel > configuration, which will cause mutexes to spin briefly on SMP systems > before sleeping, and has been observed to improve performance quite a bit. Thats very interesting is there a specific set off conditions where it would pay off that you guys know of or is it more a try it and see? We run ~ 100 dual machines here the vast majority FreeBSD as game servers and would consider upgrading the kernels if you thought it would help. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 13:31:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50B6416A4CF for ; Fri, 4 Jun 2004 13:31:41 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDD5A43D2F for ; Fri, 4 Jun 2004 13:31:40 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i54KUSHE098785; Fri, 4 Jun 2004 16:30:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i54KUSi2098782; Fri, 4 Jun 2004 16:30:28 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Fri, 4 Jun 2004 16:30:28 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Steven Hartland In-Reply-To: <00fb01c44a71$c7f26d10$b3db87d4@multiplay.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: Ali Niknam Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 20:31:41 -0000 On Fri, 4 Jun 2004, Steven Hartland wrote: > > You might want to try adding "options ADAPTIVE_MUTEXES" to your kernel > > configuration, which will cause mutexes to spin briefly on SMP systems > > before sleeping, and has been observed to improve performance quite a bit. > > Thats very interesting is there a specific set off conditions where it > would pay off that you guys know of or is it more a try it and see? > > We run ~ 100 dual machines here the vast majority FreeBSD as game > servers and would consider upgrading the kernels if you thought it would > help. Well, I know a bit about the general conditions -- situations where mutexes are held for short periods of time, rather than over long transactions. I know from experience that adaptive mutexes can make an observable difference for system builds and IPC activities. To what extent do you have systems where you can reproduce your production load without impacting production quality? I may have some interesting patches for you to try running with, if so :-). Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 13:32:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 358E816A4CE for ; Fri, 4 Jun 2004 13:32:12 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0840B43D2D for ; Fri, 4 Jun 2004 13:32:11 -0700 (PDT) (envelope-from sos@DeepCore.dk) Received: from DeepCore.dk (sos.deepcore.dk [194.192.25.130]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i54KVeDw039427; Fri, 4 Jun 2004 22:31:45 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <40C0DC2C.5050903@DeepCore.dk> Date: Fri, 04 Jun 2004 22:31:40 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.5 (X11/20040329) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Liam J. Foy" References: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> In-Reply-To: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-mail-scanned: by DeepCore Virus & Spam killer v1.4 cc: hackers@freebsd.org Subject: Re: Orinoco Gold and Linksys AP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 20:32:12 -0000 Liam J. Foy wrote: > Hey guys, > > I have also emailed this to freebsd-mobile@, so just writing to see if any of you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. They seem to both work fine in windows, just unable to ping each other in freebsd. Here is the output of ifconfig wi0: > > wi0: flags=8843 mtu 1500 > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 > inet 192.168.0.20 netmask 0xffffff00 broadcast 255.255.255.0 > ether 00:02:2d:c0:2a:58 > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > status: associated > ssid Anduril 1:Anduril > stationname "FreeBSD WaveLAN/IEEE node" > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 > rtsthreshold 2312 protmode CTS > wepmode OFF weptxkey 1 > > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled also on the AP. > > Any hints or ideas are greatly thanked, My orinoco's hasn't worked since the if_wi driver was redone over a year ago (yeah time flies. You might have better luck with if_owi though, but it didn't help mine either. -- -Søren From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 13:51:12 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FC5916A4CE; Fri, 4 Jun 2004 13:51:12 -0700 (PDT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D04043D39; Fri, 4 Jun 2004 13:51:11 -0700 (PDT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.1.0.R) with ESMTP id md50000263316.msg; Fri, 04 Jun 2004 21:48:12 +0100 Message-ID: <011301c44a75$8d7ee830$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Robert Watson" References: Date: Fri, 4 Jun 2004 21:50:05 +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.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Processed: multiplay.co.uk, Fri, 04 Jun 2004 21:48:12 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Fri, 04 Jun 2004 21:48:14 +0100 cc: freebsd-hackers@freebsd.org cc: Ali Niknam Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 20:51:12 -0000 ----- Original Message ----- From: "Robert Watson" > Well, I know a bit about the general conditions -- situations where > mutexes are held for short periods of time, rather than over long > transactions. I know from experience that adaptive mutexes can make an > observable difference for system builds and IPC activities. > > To what extent do you have systems where you can reproduce your production > load without impacting production quality? I may have some interesting > patches for you to try running with, if so :-). Got two online Dev boxes I can play with, remote console backup etc so would defo be willing to give them a shot and we run full performance stats on all the machines so that would help determine any gain. As you would expect a game server is constantly doing net IO small amounts of disk IO and quite a chunk of logic processing. The other thing of note is virtually all gameservers run via the linux BC layer as game dev's dont generally have a native port for FreeBSD. I'm also currently benchmarking a dual opteron across a number of OS's any changes you have could also be tested on that bed vs 5.2.1-RELEASE along with the rest. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 16:03:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E66616A4CE for ; Fri, 4 Jun 2004 16:03:19 -0700 (PDT) Received: from moutvdomng.kundenserver.de (moutvdom.kundenserver.de [212.227.126.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6EF043D31 for ; Fri, 4 Jun 2004 16:03:18 -0700 (PDT) (envelope-from liamfoy@sepulcrum.org) Received: from [212.227.126.224] (helo=mrvdomng.kundenserver.de) by moutvdomng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BWNiE-00045I-00 for freebsd-hackers@freebsd.org; Sat, 05 Jun 2004 01:02:58 +0200 Received: from [81.153.214.95] (helo=liamfoy.ath.cx) by mrvdomng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BWNiE-00041T-00 for freebsd-hackers@freebsd.org; Sat, 05 Jun 2004 01:02:59 +0200 Date: Sat, 5 Jun 2004 00:01:50 +0100 From: "Liam J. Foy" To: freebsd-hackers@freebsd.org Message-Id: <20040605000150.482a8f5f.liamfoy@sepulcrum.org> In-Reply-To: <40C0DC2C.5050903@DeepCore.dk> References: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> <40C0DC2C.5050903@DeepCore.dk> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: Orinoco Gold and Linksys AP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 23:03:19 -0000 On Fri, 04 Jun 2004 22:31:40 +0200 S=F8ren Schmidt wrote: > Liam J. Foy wrote: > > Hey guys, > >=20 > > I have also emailed this to freebsd-mobile@, so just writing to see if= any of you guys have had any problems with an Orinoco Gold and a Linksys A= P in -CURRENT. They seem to both work fine in windows, just unable to ping = each other in freebsd. Here is the output of ifconfig wi0: > >=20 > > wi0: flags=3D8843 mtu 1500 > > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5=20 > > inet 192.168.0.20 netmask 0xffffff00 broadcast 255.255.255.0 > > ether 00:02:2d:c0:2a:58 > > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > > status: associated > > ssid Anduril 1:Anduril > > stationname "FreeBSD WaveLAN/IEEE node" > > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 > > rtsthreshold 2312 protmode CTS > > wepmode OFF weptxkey 1 > >=20 > > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is di= sabled also on the AP. > >=20 > > Any hints or ideas are greatly thanked, >=20 > My orinoco's hasn't worked since the if_wi driver was redone over a year= =20 > ago (yeah time flies. You might have better luck with if_owi though, but= =20 > it didn't help mine either. >=20 Hi, I have seem to have fixed it. Was because I had two interfaces for the = same route. Thanks for responding anyway, > --=20 > -S=F8ren >=20 > _______________________________________________ > 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" --=20 -Liam Foy http://liamfoy.kerneled.org "Do only what only you can do." From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 21:50:38 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 659E516A4CE for ; Fri, 4 Jun 2004 21:50:38 -0700 (PDT) Received: from vanilla.cyber.com.au (vanilla.cyber.com.au [203.7.155.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E358643D5C for ; Fri, 4 Jun 2004 21:50:37 -0700 (PDT) (envelope-from army@cyber.com.au) Received: by vanilla.cyber.com.au (Postfix, from userid 1103) id 55A1157BADF; Sat, 5 Jun 2004 14:48:35 +1000 (EST) Date: Sat, 5 Jun 2004 14:48:35 +1000 From: Paul Armstrong To: Dan Rue Message-ID: <20040605044834.GP13012@vanilla.office.cyber.com.au> References: <20040603221454.GA21622@therub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040603221454.GA21622@therub.org> User-Agent: Mutt/1.4i cc: freebsd-hackers@freebsd.org Subject: Re: chmod features: +RW? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 04:50:38 -0000 On Thu, Jun 03, 2004 at 05:14:54PM -0500, Dan Rue wrote: > I am interested in a feature addition to chmod for the equivalent of +X > (Add x bit only if it's a dir), except for read and write (R and W?). > > I'm not sure how useful W would be - but R would be quite useful for > allowing the reading and traversing of dirs without giving read > permission to the contents of the dirs. You've got a misunderstanding here. The reason the +X feature is there is for exactly the prupose you propose above: > mkdir -p foo/bar > ls -al foo total 6 drwxr-xr-x 3 army army 512 Jun 4 21:45 . drwxr-xr-x 3 army army 512 Jun 4 21:45 .. drwxr-xr-x 2 army army 512 Jun 4 21:45 bar > chmod 111 foo > ls -al foo ls: foo: Permission denied > cd foo > ls -al . ls: .: Permission denied > ls -al bar total 4 drwxr-xr-x 2 army army 512 Jun 4 21:45 . d--x--x--x 3 army army 512 Jun 4 21:45 .. > chmod 400 bar > cd bar bar: Permission denied. > ls -al bar ls: .: Permission denied ls: ..: Permission denied > chmod 700 . > ls -al . total 6 drwx------ 3 army army 512 Jun 4 21:45 . drwxr-xr-x 3 army army 512 Jun 4 21:45 .. dr-------- 2 army army 512 Jun 4 21:45 bar From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 03:29:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E097216A4CE for ; Sat, 5 Jun 2004 03:29:56 -0700 (PDT) Received: from imap.multamedio.de (imap.multamedio.de [62.52.48.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ED6843D31 for ; Sat, 5 Jun 2004 03:29:56 -0700 (PDT) (envelope-from alex@6by9.org) Received: by imap.multamedio.de (Postfix, from userid 65534) id 9D60830E4C; Sat, 5 Jun 2004 12:29:30 +0200 (CEST) Received: from 6by9.org (pD9542FF3.dip.t-dialin.net [217.84.47.243]) by imap.multamedio.de (Postfix) with ESMTP id B1EE630E4A; Sat, 5 Jun 2004 12:29:28 +0200 (CEST) Message-ID: <40C1A089.20707@6by9.org> Date: Sat, 05 Jun 2004 12:29:29 +0200 From: Alexander Mueller User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040425 X-Accept-Language: de-de, en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on imap.multamedio.de X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=none autolearn=ham version=2.61 Subject: How to build lint libraries, e.g. llib-lc.ln? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 10:29:57 -0000 Hi folks, when writing C applications I'd like to check them using lint. Unfortunately FreeBSD comes with only "llib-lposix.ln" and "llib-lstdc.ln" in "/usr/libdata/lint". Is there an easy, i.e. automated, way to create lint libraries (e.g. llib-lc.ln) for all the libs in "/usr/src/lib"? Cheers, Alexander Mueller From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 08:30:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E19A716A4CF for ; Fri, 4 Jun 2004 08:30:55 -0700 (PDT) Received: from relay.transip.nl (relay.transip.nl [80.69.66.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7FAF843D3F for ; Fri, 4 Jun 2004 08:30:55 -0700 (PDT) (envelope-from ali@transip.nl) Received: from redguy (peris.demon.nl [212.238.139.202]) by relay.transip.nl (Postfix) with SMTP id 7D54034A77B; Fri, 4 Jun 2004 17:30:41 +0200 (CEST) Message-ID: <010701c44a48$e64d68b0$0400a8c0@redguy> From: "Ali Niknam" To: "Varshavchick Alexander" References: <00dd01c449b3$ca5a0f90$0400a8c0@redguy> <20040604190859.D98354@apache.metrocom.ru> Date: Fri, 4 Jun 2004 17:30:41 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Mailman-Approved-At: Sat, 05 Jun 2004 04:47:53 -0700 cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 15:30:56 -0000 Hi Alexander, > I can't say anything as how the issue can be connected with the > mutexes and so on, but to solve your problem with apache, I'd look > into 'hold_off_on_exponential_spawning' and 'MAX_SPAWN_RATE' > parameters in src/main/http_main.c of the apache source tree > (presuming you're using apache 1.3.*), and I'm sure some similar > options can be found for apache > 2.0. What you need is to make apache forking rate more slower, so the > server will not suffer from a sudden load peak. That was my first thought exactly! I halved the MAX_SPAWN_RATE to 16 (from 32) and then *exactly* the same thing happened; it only took a minute longer to happen .... If i recall correctly (not sure anymore since it was middle of the night) other processes also got blocked (hence i couldnt use keyboard anymore). That was why i figured it was some kind of lock/block/mutex/whatever inside the kernel.... Best Regards, Ali Niknam From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 12:03:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C55C716A4CE; Fri, 4 Jun 2004 12:03:40 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D9C843D2F; Fri, 4 Jun 2004 12:03:40 -0700 (PDT) (envelope-from sam@errno.com) Received: from [66.127.85.91] ([66.127.85.91]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i54J3AWR046258 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 4 Jun 2004 12:03:10 -0700 (PDT) (envelope-from sam@errno.com) From: Sam Leffler Organization: Errno Consulting To: freebsd-hackers@freebsd.org Date: Fri, 4 Jun 2004 11:59:02 -0700 User-Agent: KMail/1.6.1 References: <20040531215101.GA60299@freefall.freebsd.org> <20040603151911.GB12727@Odin.AC.HMC.Edu> <20040604112733.GC98227@cell.sick.ru> In-Reply-To: <20040604112733.GC98227@cell.sick.ru> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Message-Id: <200406041159.02229.sam@errno.com> X-Mailman-Approved-At: Sat, 05 Jun 2004 04:47:53 -0700 cc: Gleb Smirnoff cc: freebsd-current@freebsd.org cc: Bosko Milekic Subject: Re: [HEADS-UP] mbuma is in the tree X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 19:03:40 -0000 On Friday 04 June 2004 04:27 am, Gleb Smirnoff wrote: > On Thu, Jun 03, 2004 at 08:19:11AM -0700, Brooks Davis wrote: > B> > On Wed, Jun 02, 2004 at 10:56:52AM -0700, Sam Leffler wrote: > B> > S> allocated using this mechanism. I did it once for vlan tags but > botched it B> > S> (didn't handle module references properly) so backed it. > But there's no B> > S> reason someone cannot redo it or convert other > heavily used fixed size tags B> > S> to use a zone. > B> > > B> > Have you saved your efforts? May I look at them? > B> > B> They are in the CVS history of sys/net/if_vlan.c. > > I see now, thanks. > > Question to Sam: have you performed any tests? Is this definitely > true, that UMAllocing in special zone is faster than general malloc()? Allocating from a zone was noticeable for gige interfaces, especially on my SMP configuration (which was running w/o Giant). For non-gige interfaces the overhead of using malloc is not noticeable (as I reported when I first converted vlan handling over to use tags). Regardless the point was that you can already use a zone for tags if you want. Sam From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 13:38:24 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5622616A4CF; Fri, 4 Jun 2004 13:38:24 -0700 (PDT) Received: from relay.transip.nl (relay.transip.nl [80.69.66.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2258143D39; Fri, 4 Jun 2004 13:38:24 -0700 (PDT) (envelope-from ali@transip.nl) Received: from redguy (peris.demon.nl [212.238.139.202]) by relay.transip.nl (Postfix) with SMTP id 1968E34A36B; Fri, 4 Jun 2004 22:37:36 +0200 (CEST) Message-ID: <017001c44a73$c64d5db0$0400a8c0@redguy> From: "Ali Niknam" To: "Robert Watson" References: Date: Fri, 4 Jun 2004 22:37:36 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Mailman-Approved-At: Sat, 05 Jun 2004 04:47:53 -0700 cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 5.2.1: Mutex/Spinlock starvation? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Jun 2004 20:38:24 -0000 > Welcome :-). > Thank you :) > Actually, by default, most mutexes in the system are sleep mutexes, so > they sleep on contention rather than spinning. In some cases, this > actually hurts more than spinning, because if the mutex is released > quickly by the holder, then you pay the context switches which cost > more than spinning for the short period of time. > > You might want to try adding "options ADAPTIVE_MUTEXES" to your kernel > configuration, which will cause mutexes to spin briefly on SMP systems > before sleeping, and has been observed to improve performance quite a > bit. > Interesting; could switching to SCHED_ULE help as well ? Since afaik the processes get re-scheduled? Also could this be the reason that system gets to use so much cpu (like 70% of overal cpu)? That it needs to reschedule ~1000 processes continuesly ? > If you have a lower tolerance for instability, there are a number of > minor performance tweaks that can be easily back-ported to 5.2.1, > such as the change to proc.h to make grabbing and releasing the proc > lock conditional on p_stops having events defined. This removes > several mutex operations from each system call, and I've observed the > difference in a pretty measurable way on micro-benchmarks. It's also > pretty low risk. The change is src/sys/sys/proc.h:1.366. There are > some other related changes that can probably be dug up, including > changes to improve the performance of the scheduler in the presence > of threads, etc. if all else fails i'll start doing this, thanks for the suggestion! -- Ali Niknam | tel 0182-504424 | fax 0182-504460 Transip B.V. | http://www.transip.nl/ | Mensen met verstand van zaken. From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 15:32:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 429E016A4CE for ; Fri, 4 Jun 2004 15:32:20 -0700 (PDT) Received: from fever.boogie.com (cpe-66-87-52-132.co.sprintbbd.net [66.87.52.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id C512C43D41 for ; Fri, 4 Jun 2004 15:32:19 -0700 (PDT) (envelope-from durian@shadetreesoftware.com) Received: from man.boogie.com (man.boogie.com [192.168.1.3]) by fever.boogie.com (8.12.11/8.12.11) with ESMTP id i54MVkYh064978 for ; Fri, 4 Jun 2004 16:31:46 -0600 (MDT) (envelope-from durian@shadetreesoftware.com) From: Mike Durian To: hackers@freebsd.org Date: Fri, 4 Jun 2004 16:31:45 -0600 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Organization: Shade Tree Software, LLC Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200406041631.46071.durian@shadetreesoftware.com> X-Mailman-Approved-At: Sat, 05 Jun 2004 04:47:53 -0700 Subject: patch to add additional devices to uftdi(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: Fri, 04 Jun 2004 22:32:20 -0000 I couldn't find a maintainer for uftdi(4), so I sent the patch in as a PR. It is available here: http://www.freebsd.org/cgi/query-pr.cgi?pr=67357 It adds support for the Intrepid Control Systems USB based vehicle bus interfaces. Earlier, I submited a PR that contains a patch that should be ignored (a subset of the later patch), but also a bug that results in a system panic. A USB and/or uftdi person might want to take a look at it: http://www.freebsd.org/cgi/query-pr.cgi?pr=67301 mike From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 4 20:41:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E365816A4CE for ; Fri, 4 Jun 2004 20:41:48 -0700 (PDT) Received: from hotmail.com (bay9-f21.bay9.hotmail.com [64.4.47.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D69B743D2D for ; Fri, 4 Jun 2004 20:41:48 -0700 (PDT) (envelope-from jfhe@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 4 Jun 2004 20:41:28 -0700 Received: from 141.157.8.97 by by9fd.bay9.hotmail.msn.com with HTTP; Sat, 05 Jun 2004 03:41:28 GMT X-Originating-IP: [141.157.8.97] X-Originating-Email: [jfhe@hotmail.com] X-Sender: jfhe@hotmail.com From: "JiaFu He" To: freebsd-hackers@freebsd.org Date: Sat, 05 Jun 2004 03:41:28 +0000 Message-ID: X-OriginalArrivalTime: 05 Jun 2004 03:41:28.0737 (UTC) FILETIME=[FC175910:01C44AAE] X-Mailman-Approved-At: Sat, 05 Jun 2004 04:47:53 -0700 MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Network config on FreeBSD 5.1 - Help! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 03:41:49 -0000 As what have been pointed out, It may help if you comment out the lines in rc.conf as below: #ifconfig_vr0="inet6 hex address netmask 255.255.255.0" ipv6_enable="NO" #hostname= "..." #ppp_enable="YES" #ppp_mode="ddial" #ppp_nat="YES" #ppp_profile="bellnet.ca" sendmail_enable="YES" gateway_enable="YES" rpc_statd_enable="YES" tcp_extensions="YES" hostname="..." ifconfig_vr0="DHCP" Since your modem is taking care of the PPPoE stuff, you don't need "ppp" on your freebsd. Comment them out. Now as root, you can do the following: # /stand/sysinstall Then choose menu: "Configure" => "Networking" => "Interfaces" => "vr0". Then select: "No" for IPV6 if you don't want IPV6; "Yes" for DHCP; "hostname.yourdomain.com" for host; "yourdomain.com" for domain; Upto this point, if your DHCP server (should be on the DSL modem which usually is bundled with a router) is working, you should have seen other information like "Gateway", "name server", "IPV4 address" and "netmask" shown on the screen. Simply press "OK". If no error message seen, your network MUST work now. You dont' even need to input the IP address, netmask, DNS server blah blah... The DHCP server will populate you with such information. To find out whether your DHCP server is on, get the IP addresses of your two XP machines by running "ipconfig" on a DoS prompt, which will tell you the IP address and gateway IP (also the DHCP server IP). The IP addresses of your two XPs should have the same subnet. i.e., the first two or three bytes are often the same (like 192.168.0.x). Last, make sure your Ethernet cable is not broken and your modem and hub are powered on when you'r configuring. Check whether the lights on both the hub and freebsd machine is on. A reboot often helps too. Wish it helps. --- aussie gal wrote: > This is the set-up: > > I have a High-Speed Internet connection. What you > would call a DSL modem connection. I have the main > modem connection hooked up to a 4-port hub. Two > ports are connected to WinXP boxes and the third one > is connected to my freebsd box into the ethernet > port supplied by the Asus motherboard (it has a > build-in RJ port). I have the other two XP boxes up > and running but my freebsd box is (as you can see) > struggling. > > Longterm prospects: > > 1) After I can get freebsd networked, I would like > to eventually install some security and then take > over the world with a cluster of boxes designed by > top secret software. > > 2) Just kidding. I want to set up a s mall > network of computers running off of this freebsd > server, a mail server, and a half decent web server > with Perl/php/etc and maybe some other cook bells > and whistles. But yes, I will probably want some > security via a firewall at some point as well. > Maybe sooner rather than later. But I first need to > pick-up the networking fundementals > > Btw, In the initial Sysinstall > Network > configuation dialogs I specified that I did not want > Ipv6 and that I wanted dchp. > > For the "network configuration" screen i filled in > the following: > Host: host.name.com > domain: name.com > ipv4 gateway: blank > Name server: this is my isp's dns server's ip > address > > and for the "Configuration for Interface vr0" dialog > I write: > ipv4 address: Blank > Netmask: 255.255.255.0 < ;- I just changed this to > 255.255.0.0 as per your suggestion > extra options: blank > > I hope this helps. Any thoughts on how to help me > find my IP address? > > Thanks for your suggestion. > > Regards, > Nav > zera holladay wrote: > How do you connect (or want to connect) to your > network or to the internet? Do you have your own > private network and you connect through a gateway or > router, or do you have a DSL modem attached directly > to your ethernet card? You are not getting an IP > address and your netmask is for a very, very large > network. Networking is like cooking -- you have to > first decide what you want to cook with the > ingredients you have, then you have to get a recipe > and follow it. > > -zh > > > --- aussie gal wrote: > > Yeah - I have read it. > > > > when I do the ifconfig i get: > > vr0: flags=8843> MULTICAST> mtu 1500 > > inet6 fe80::20e:a6ff:..[hexidecimal ipv6 > > address]%vr0 prefixlen 64 scopid 0x1 > > inet 0.0.0.0 netmask 0xff0000000 broadcast > > 255.255.255.255 > > ether 00:0e:a6:.. [hexidecimal ipv4 address] > > media: Ethernet autoselect (10baseT/UTP) > > status: active > > > > The one thing that I noticed was that the example > on > > the website has all the addresses in > > non-hexcedecimal format and my output has them all > > in hex ipv6/4. > > Do I really need ipv6? If not, how do I get rid of > > it or does it matter? > > > > This poses a problem because I am suppose to > include > > my IP address as per the example on the website: > > > > ifconfig_dc0="inet 1 92.168.1.3 netmask > > 255.255.255.0" > > ifconfig_dc1="inet 10.0.0.1 netmask 255.255.255.0 > > media 10baseT/UTP" > > > > BUT these addresses are not in hexidecimal whereas > > my inet #s are. > > > > Any ideas what is going on here? > > > > Btw, my rc.conf file includes the following: > > > > font8x14 ="NO" > > font8X16 = "NO" > > gateway_enable="YES" > > inetd_enable="YES" > > linux_enable="YES" > > moused_enable="YES" > > moused_port="/dev/psm0" > > moused_type="auto" > > nfs_client_enable="YES" > > nfs_server_enable="YES" > > rpcbind_enable="YES" > > saver="rain" > > > > scrnmap="NO" > > usbd_enable="YES" > > sendmail_enable="YES" > > #ifconfig_vr0="inet6 hex address netmask > > 255.255.255.0" > > #i pv6_enable="NO" > > hostname= "..." > > ppp_enable="YES" > > ppp_mode="ddial" > > ppp_nat="YES" > > ppp_profile="bellnet.ca" > > sendmail_enable="YES" > > gateway_enable="YES" > > rpc_statd_enable="YES" > > tcp_extensions="YES" > > hostname="..." > > ifconfig_vr0="DHCP" > > > > > > Thanks! > > fb51 > > > > > > zera holladay wrote: > > Have you read this yet? > > > > > [1]http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-ne twork-setup.html > > > > -zh > > > > --- aussie gal wrote: > > > Hi - I'm trying to configure my network card on > a > > > newly installed freebsd 5.1. > > > BUT - I can get the system to come on line. It > > > recoginizes the hardware as being UP ... > > > > > > I've been hitting several TCP/IP how-tos on the > > web > > > and doing lots of reading and tweaking to no > > avail. > > > > > > Please advise. Does anyone have experience with > > > 5.1? > > > > > > Regards, > > > > > > fb51 > > > _________________________________________________________________ [2]Looking to buy a house? Get informed with the Home Buying Guide from MSN House & Home. References 1. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/config-network-setup.html 2. http://g.msn.com/8HMBENUS/2746??PS=47575 From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 05:00:14 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0FBD316A4CE; Sat, 5 Jun 2004 05:00:14 -0700 (PDT) Received: from mailout2.barnet.com.au (mailout2.barnet.com.au [218.185.88.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 58CBD43D54; Sat, 5 Jun 2004 05:00:12 -0700 (PDT) (envelope-from edwin@mavetju.org) Received: by mailout2.barnet.com.au (Postfix, from userid 27) id 39BF9AA621C; Sat, 5 Jun 2004 21:59:39 +1000 (EST) X-Viruscan-Id: <40C1B5AB00009C30B7E04C@BarNet> Received: from mail2-auth.barnet.com.au (localhost [127.0.0.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id D437BB29D01; Sat, 5 Jun 2004 21:59:38 +1000 (EST) Received: from k7.mavetju (unknown [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (verified OK)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id 91D6119330; Sat, 5 Jun 2004 21:59:37 +1000 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 98B6960E7; Sat, 5 Jun 2004 21:59:15 +1000 (EST) Date: Sat, 5 Jun 2004 21:59:15 +1000 From: Edwin Groothuis To: "Michael W. Lucas" Message-ID: <20040605115915.GA1149@k7.mavetju> Mail-Followup-To: Edwin Groothuis , "Michael W. Lucas" , Robert Watson , Cyrille Lefevre , Hackers FreeBSD References: <00ce01c44458$8a28d880$7890a8c0@dyndns.org> <20040602135757.GC89452@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040602135757.GC89452@bewilderbeast.blackhelicopters.org> User-Agent: Mutt/1.5.6i cc: Cyrille Lefevre cc: Robert Watson cc: Hackers FreeBSD Subject: Re: general Darwin imports (was Re: Darwin cmd import?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 12:00:14 -0000 On Wed, Jun 02, 2004 at 09:57:57AM -0400, Michael W. Lucas wrote: > People may gripe about Apple not returning stuff to the open source > community. The truth is, they have. They aren't responsible for > converting what they return into a format we can use, but they haven't > deliberately obfuscated their code. Sorting out the diffs would be a > pain, but not horribly difficult. > > According to Jordan Hubbard, the best source of low-hanging fruit is > their modified libc. They've had people work out all sorts of bugs, > clean up functions, performance improvements, etc. Libc changes > require extensive testing. They also have wide-reaching benefits. > It's still BSDL'd, so we can take back whatever we want. Now the question of course is: where can I find it? It is somewhere in a CVS repository (that would be nicest), or are it raw sourcefiles only? Edwin, now owning a Mac so not really familiar with things -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/ From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 05:58:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C97216A4CE; Sat, 5 Jun 2004 05:58:19 -0700 (PDT) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id B573A43D4C; Sat, 5 Jun 2004 05:58:18 -0700 (PDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1])i55CvxuF017095; Sat, 5 Jun 2004 08:57:59 -0400 (EDT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost)i55CvxSu017094; Sat, 5 Jun 2004 08:57:59 -0400 (EDT) (envelope-from mwlucas) Date: Sat, 5 Jun 2004 08:57:59 -0400 From: "Michael W. Lucas" To: Edwin Groothuis , "Michael W. Lucas" , Robert Watson , Cyrille Lefevre , Hackers FreeBSD Message-ID: <20040605125759.GA17077@bewilderbeast.blackhelicopters.org> References: <00ce01c44458$8a28d880$7890a8c0@dyndns.org> <20040602135757.GC89452@bewilderbeast.blackhelicopters.org> <20040605115915.GA1149@k7.mavetju> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040605115915.GA1149@k7.mavetju> User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Subject: Re: general Darwin imports (was Re: Darwin cmd import?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 12:58:19 -0000 On Sat, Jun 05, 2004 at 09:59:15PM +1000, Edwin Groothuis wrote: > On Wed, Jun 02, 2004 at 09:57:57AM -0400, Michael W. Lucas wrote: > > People may gripe about Apple not returning stuff to the open source > > community. The truth is, they have. They aren't responsible for > > converting what they return into a format we can use, but they haven't > > deliberately obfuscated their code. Sorting out the diffs would be a > > pain, but not horribly difficult. > > > > According to Jordan Hubbard, the best source of low-hanging fruit is > > their modified libc. They've had people work out all sorts of bugs, > > clean up functions, performance improvements, etc. Libc changes > > require extensive testing. They also have wide-reaching benefits. > > It's still BSDL'd, so we can take back whatever we want. > > Now the question of course is: where can I find it? It is somewhere > in a CVS repository (that would be nicest), or are it raw sourcefiles > only? The URL of the source was referenced earlier in this thread, IIRC. > Edwin, now owning a Mac so not really familiar with things Neither am I. You might check out the opendarwin.org web site and see what they have to say on the issue. I suspect if you asked on their mailing list and said you wanted to start bringing stuff back to FreeBSD, they'd be happy to give you all the pointers you need. ==ml -- Michael Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org "I'm sorry, but 'Social Darwinism' is no excuse for killing all of your co-workers." -- Ivan Brunetti http://www.BlackHelicopters.org/~mwlucas/ From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 11:36:21 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5AF4B16A4CE for ; Sat, 5 Jun 2004 11:36:21 -0700 (PDT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFF0543D2D for ; Sat, 5 Jun 2004 11:36:20 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i55Ia5eB003132; Sat, 5 Jun 2004 12:36:10 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 05 Jun 2004 12:36:13 -0600 (MDT) Message-Id: <20040605.123613.41949686.imp@bsdimp.com> To: liamfoy@sepulcrum.org From: "M. Warner Losh" In-Reply-To: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> References: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: hackers@freebsd.org Subject: Re: Orinoco Gold and Linksys AP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 18:36:21 -0000 In message: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> "Liam J. Foy" writes: : Hey guys, : : I have also emailed this to freebsd-mobile@, so just writing to see if any of you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. They seem to both work fine in windows, just unable to ping each other in freebsd. Here is the output of ifconfig wi0: : : wi0: flags=8843 mtu 1500 : inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 : inet 192.168.0.20 netmask 0xffffff00 broadcast 255.255.255.0 : ether 00:02:2d:c0:2a:58 : media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) : status: associated : ssid Anduril 1:Anduril : stationname "FreeBSD WaveLAN/IEEE node" : channel 3 authmode OPEN powersavemode OFF powersavesleep 100 : rtsthreshold 2312 protmode CTS : wepmode OFF weptxkey 1 : : The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled also on the AP. : : Any hints or ideas are greatly thanked, Does the owi driver work for you where the wi driver fails? Warner From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 11:39:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4398B16A4CE for ; Sat, 5 Jun 2004 11:39:40 -0700 (PDT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3DC143D55 for ; Sat, 5 Jun 2004 11:39:39 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i55IbKAS003159; Sat, 5 Jun 2004 12:37:21 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 05 Jun 2004 12:37:28 -0600 (MDT) Message-Id: <20040605.123728.58652129.imp@bsdimp.com> To: sos@DeepCore.dk From: "M. Warner Losh" In-Reply-To: <40C0DC2C.5050903@DeepCore.dk> References: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> <40C0DC2C.5050903@DeepCore.dk> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable cc: liamfoy@sepulcrum.org cc: hackers@freebsd.org Subject: Re: Orinoco Gold and Linksys AP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 18:39:40 -0000 In message: <40C0DC2C.5050903@DeepCore.dk> S=F8ren Schmidt writes: : Liam J. Foy wrote: : > Hey guys, : > = : > I have also emailed this to freebsd-mobile@, so just writing to se= e if any of you guys have had any problems with an Orinoco Gold and a L= inksys AP in -CURRENT. They seem to both work fine in windows, just una= ble to ping each other in freebsd. Here is the output of ifconfig wi0: : > = : > wi0: flags=3D8843 mtu 1500 : > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 = : > inet 192.168.0.20 netmask 0xffffff00 broadcast 255.255.255.0 : > ether 00:02:2d:c0:2a:58 : > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) : > status: associated : > ssid Anduril 1:Anduril : > stationname "FreeBSD WaveLAN/IEEE node" : > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 : > rtsthreshold 2312 protmode CTS : > wepmode OFF weptxkey 1 : > = : > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast i= s disabled also on the AP. : > = : > Any hints or ideas are greatly thanked, : = : My orinoco's hasn't worked since the if_wi driver was redone over a y= ear = : ago (yeah time flies. You might have better luck with if_owi though, = but = : it didn't help mine either. What firmware level do you have? Both wi and owi works for all my lucent/wavelan/orinoco cards. :-( Warner From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 11:44:05 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEA5516A4CE for ; Sat, 5 Jun 2004 11:44:05 -0700 (PDT) Received: from moutvdomng.kundenserver.de (moutvdom.kundenserver.de [212.227.126.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id E934643D48 for ; Sat, 5 Jun 2004 11:44:04 -0700 (PDT) (envelope-from liamfoy@sepulcrum.org) Received: from [212.227.126.224] (helo=mrvdomng.kundenserver.de) by moutvdomng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BWg8q-0002mV-00; Sat, 05 Jun 2004 20:43:40 +0200 Received: from [81.153.214.77] (helo=liamfoy.ath.cx) by mrvdomng.kundenserver.de with esmtp (Exim 3.35 #1) id 1BWg8q-00073G-00; Sat, 05 Jun 2004 20:43:40 +0200 Date: Sat, 5 Jun 2004 19:42:30 +0100 From: "Liam J. Foy" To: "M. Warner Losh" Message-Id: <20040605194230.21c9bb5c.liamfoy@sepulcrum.org> In-Reply-To: <20040605.123728.58652129.imp@bsdimp.com> References: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> <40C0DC2C.5050903@DeepCore.dk> <20040605.123728.58652129.imp@bsdimp.com> X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i386-portbld-freebsd5.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable cc: hackers@freebsd.org cc: sos@DeepCore.dk Subject: Re: Orinoco Gold and Linksys AP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 18:44:05 -0000 On Sat, 05 Jun 2004 12:37:28 -0600 (MDT) "M. Warner Losh" wrote: > In message: <40C0DC2C.5050903@DeepCore.dk> > S=F8ren Schmidt writes: > : Liam J. Foy wrote: > : > Hey guys, > : >=20 > : > I have also emailed this to freebsd-mobile@, so just writing to see = if any of you guys have had any problems with an Orinoco Gold and a Linksys= AP in -CURRENT. They seem to both work fine in windows, just unable to pin= g each other in freebsd. Here is the output of ifconfig wi0: > : >=20 > : > wi0: flags=3D8843 mtu 1500 > : > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5=20 > : > inet 192.168.0.20 netmask 0xffffff00 broadcast 255.255.255.0 > : > ether 00:02:2d:c0:2a:58 > : > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > : > status: associated > : > ssid Anduril 1:Anduril > : > stationname "FreeBSD WaveLAN/IEEE node" > : > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 > : > rtsthreshold 2312 protmode CTS > : > wepmode OFF weptxkey 1 > : >=20 > : > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is = disabled also on the AP. > : >=20 > : > Any hints or ideas are greatly thanked, > :=20 > : My orinoco's hasn't worked since the if_wi driver was redone over a yea= r=20 > : ago (yeah time flies. You might have better luck with if_owi though, bu= t=20 > : it didn't help mine either. Is your card an Orinoco Classic Gold? >=20 > What firmware level do you have? Both wi and owi works for all my > lucent/wavelan/orinoco cards. :-( >=20 Hi Warner, I have managed to get mine working. netstat -rn showed my problem, I was ro= uting to the same point on two up interfaces. Disabling the one I dont used= fixed it. Thanks for replying ! > Warner --=20 -Liam Foy http://liamfoy.kerneled.org "Do only what only you can do." From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 11:44:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 756B216A4CE for ; Sat, 5 Jun 2004 11:44:56 -0700 (PDT) Received: from spider.deepcore.dk (cpe.atm2-0-53484.0x50a6c9a6.abnxx9.customer.tele.dk [80.166.201.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 441FF43D41 for ; Sat, 5 Jun 2004 11:44:55 -0700 (PDT) (envelope-from sos@DeepCore.dk) Received: from DeepCore.dk ([192.168.0.130]) by spider.deepcore.dk (8.12.11/8.12.10) with ESMTP id i55IiNM9050866; Sat, 5 Jun 2004 20:44:28 +0200 (CEST) (envelope-from sos@DeepCore.dk) Message-ID: <40C21486.70906@DeepCore.dk> Date: Sat, 05 Jun 2004 20:44:22 +0200 From: =?ISO-8859-1?Q?S=F8ren_Schmidt?= User-Agent: Mozilla Thunderbird 0.5 (X11/20040329) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "M. Warner Losh" References: <20040604145717.37fd31ea.liamfoy@sepulcrum.org> <40C0DC2C.5050903@DeepCore.dk> <20040605.123728.58652129.imp@bsdimp.com> In-Reply-To: <20040605.123728.58652129.imp@bsdimp.com> Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-mail-scanned: by DeepCore Virus & Spam killer v1.4 cc: liamfoy@sepulcrum.org cc: hackers@freebsd.org Subject: Re: Orinoco Gold and Linksys AP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 18:44:56 -0000 M. Warner Losh wrote: > In message: <40C0DC2C.5050903@DeepCore.dk> > Søren Schmidt writes: > : Liam J. Foy wrote: > : > Hey guys, > : > > : > I have also emailed this to freebsd-mobile@, so just writing to see if any of you guys have had any problems with an Orinoco Gold and a Linksys AP in -CURRENT. They seem to both work fine in windows, just unable to ping each other in freebsd. Here is the output of ifconfig wi0: > : > > : > wi0: flags=8843 mtu 1500 > : > inet6 fe80::202:2dff:fec0:2a58%wi0 prefixlen 64 scopeid 0x5 > : > inet 192.168.0.20 netmask 0xffffff00 broadcast 255.255.255.0 > : > ether 00:02:2d:c0:2a:58 > : > media: IEEE 802.11 Wireless Ethernet autoselect (DS/11Mbps) > : > status: associated > : > ssid Anduril 1:Anduril > : > stationname "FreeBSD WaveLAN/IEEE node" > : > channel 3 authmode OPEN powersavemode OFF powersavesleep 100 > : > rtsthreshold 2312 protmode CTS > : > wepmode OFF weptxkey 1 > : > > : > The AP has WEP disabled, and whos SSID is Anduril. SSID Broadcast is disabled also on the AP. > : > > : > Any hints or ideas are greatly thanked, > : > : My orinoco's hasn't worked since the if_wi driver was redone over a year > : ago (yeah time flies. You might have better luck with if_owi though, but > : it didn't help mine either. > > What firmware level do you have? Both wi and owi works for all my > lucent/wavelan/orinoco cards. :-( Startet out with 4.something which almost worked in adhoc mode. Then I was told to upgrade as that should fix everything and the kitchen sink, so I went for 8.something, which was totally hopeless :} So I went out and bought me an accesspoint and now use ndis on my laptop, which works excelent... -- -Søren From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 12:56:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2259E16A4CE for ; Sat, 5 Jun 2004 12:56:42 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C8BE043D1F for ; Sat, 5 Jun 2004 12:56:41 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i55JtOsO093569; Sat, 5 Jun 2004 15:55:24 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i55JtDFV093449; Sat, 5 Jun 2004 15:55:24 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sat, 5 Jun 2004 15:55:13 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Edwin Groothuis In-Reply-To: <20040605115915.GA1149@k7.mavetju> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Cyrille Lefevre cc: Hackers FreeBSD Subject: Re: general Darwin imports (was Re: Darwin cmd import?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 19:56:42 -0000 On Sat, 5 Jun 2004, Edwin Groothuis wrote: > Now the question of course is: where can I find it? It is somewhere in a > CVS repository (that would be nicest), or are it raw sourcefiles only? > > Edwin, now owning a Mac so not really familiar with things The Open Darwin web site has a web-based CVS browser, but there are some differences between the Apple Darwin and Open Darwin source bits. For our TrustedBSD work affecting Darwin, we generally work from the drops on Apple's www.opensource.apple.com web page, which are available as tarballs. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Senior Research Scientist, McAfee Research From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 13:35:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FF7316A4CE for ; Sat, 5 Jun 2004 13:35:49 -0700 (PDT) Received: from pickering.cc.nd.edu (pickering.cc.nd.edu [129.74.250.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F8E943D3F for ; Sat, 5 Jun 2004 13:35:49 -0700 (PDT) (envelope-from dmschei@attglobal.net) Received: from [10.0.1.2] (scheidt-rout.canopy.nd.edu [129.74.98.169]) i55KZl06001628 for ; Sat, 5 Jun 2004 15:35:47 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v618) In-Reply-To: References: Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Scheidt Date: Sat, 5 Jun 2004 15:35:50 -0500 To: Hackers FreeBSD X-Mailer: Apple Mail (2.618) X-ND-MTA-Date: Sat, 05 Jun 2004 15:35:48 -0500 (EST) X-ND-Virus-Scan: engine v4.3.20; dat v4364 Subject: Re: general Darwin imports (was Re: Darwin cmd import?) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jun 2004 20:35:49 -0000 On Jun 5, 2004, at 2:55 PM, Robert Watson wrote: > On Sat, 5 Jun 2004, Edwin Groothuis wrote: > >> Now the question of course is: where can I find it? It is somewhere >> in a >> CVS repository (that would be nicest), or are it raw sourcefiles only? >> >> Edwin, now owning a Mac so not really familiar with things > > The Open Darwin web site has a web-based CVS browser, but there are > some > differences between the Apple Darwin and Open Darwin source bits. For > our > TrustedBSD work affecting Darwin, we generally work from the drops on > Apple's www.opensource.apple.com web page, which are available as > tarballs. > > Just about all of that is listed as covered by the APSL. (Except GPL'd stuff, it looks like.) From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 5 18:08:31 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E93FF16A4CE for ; Sat, 5 Jun 2004 18:08:31 -0700 (PDT) Received: from web80106.mail.yahoo.com (web80106.mail.yahoo.com [66.163.169.79]) by mx1.FreeBSD.org (Postfix) with SMTP id BF0FE43D1F for ; Sat, 5 Jun 2004 18:08:31 -0700 (PDT) (envelope-from evans.alan@sbcglobal.net) Message-ID: <20040606010831.85923.qmail@web80106.mail.yahoo.com> Received: from [66.124.150.210] by web80106.mail.yahoo.com via HTTP; Sat, 05 Jun 2004 18:08:31 PDT Date: Sat, 5 Jun 2004 18:08:31 -0700 (PDT) From: Alan Evans To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: machine is unusable with panic: vrele: negative ref cnt X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2004 01:08:32 -0000 On boot I see the following on an IBM T30 laptop: Mounting root from ufs:/dev/ad0s1a WARNING: / was not properly dismounted ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 ad0: FAILURE - READ_MUL status=59 error=40 LBA=376639 panic: vrele: negative ref cnt syncing disks, buffers remaining... 9 9 9 9 9 9 9 9 9 9 \giving up on 9 buffers. And the same occurs on every reboot and the machine isn't usable anymore. I'd like to salvage the data that's in the hard disk. Any ideas on how ro recover data from the hard disk? The disk is only 4 months old. Thanks, Alan Evans