From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 01:59:19 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6BA6116A417 for ; Sun, 2 Sep 2007 01:59:19 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 9AF6913C459 for ; Sun, 2 Sep 2007 01:59:18 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l821waig031192; Sun, 2 Sep 2007 05:58:37 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l821wYqq031191; Sun, 2 Sep 2007 05:58:34 +0400 (MSD) (envelope-from yar) Date: Sun, 2 Sep 2007 05:58:33 +0400 From: Yar Tikhiy To: Julian Stacey Message-ID: <20070902015833.GA30502@comp.chem.msu.su> References: <20070901073440.GL85633@comp.chem.msu.su> <200709011240.l81CeTKd056036@fire.js.berklix.net> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200709011240.l81CeTKd056036@fire.js.berklix.net> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 01:59:19 -0000 On Sat, Sep 01, 2007 at 02:40:29PM +0200, Julian Stacey wrote: > Reference: > > From: Yar Tikhiy > > Date: Sat, 1 Sep 2007 11:34:40 +0400 > > Message-id: <20070901073440.GL85633@comp.chem.msu.su> > > Yar Tikhiy wrote: > > Hi all, > > > > I've had to use /rescue recently and felt lack of a few basic tools > > in it, namely pgrep(1), head(1), tail(1), tee(1), and a text filter, > > e.g., sed(1). Well, in fact most functionality of pgrep(1), head(1), > > tail(1), and even tee(1) can be emulated if one has sed(1), but the > > tools are so tiny and convenient that it's a pity not to have them > > all handy during hard times. > > > > In addition, there are chflags and chmod in /rescue, but there's > > no chown in it, so the toolset is a bit incomplete. > > > > Would anyone mind if I add those tools to /rescue? The size growth > > will be rather small: > > > > -r-xr-xr-x 121 root wheel 3715096 1 ÓÅÎ 10:22 /mnt2/rescue.old/rescue > > -r-xr-xr-x 129 root wheel 3761828 1 ÓÅÎ 11:22 /mnt2/rescue/rescue > > Don't do it without approval of re@ (who might be too busy just now Thanks for the reminder. ;-) > anyway) It might blow the limit on the tight packed rescue floppy. > (& though desk workstations have CDs, lost of small boxes still > just have floppies for rescue) Best try to build a rescue floppy > yourself before adding bloat. If you meant the fixit floppy, it is built separately. The rescue(8) binary is already bigger than a floppy and it isn't supposed to fit on that media. > BTW I've never used pgrep thus superfluous to rescue. Others also > not really needed, merely nice. True rescue is just to fix FS at > which point you can mount other FS or CDROM or NFS etc for more > tools. Unlike a fixit floppy, rescue(8) was introduced mostly to help when shared libraries were damaged badly. In that case, to prevent system malfunction, you may want to kill daemons starting other binaries, e.g., cron(8) and sendmail(8), if you don't want to, or just cannot, drop into single-user mode immediately. Of course, rescue(8) is also of use in other recovery tasks if one is lucky enough to be able to mount / and too lazy to reach for a fixit CD. > Before anyone else might discuss which tools might be nice, I'd > suggest build yourself a FIXIT floppy, & see what space is left, & > what you'd have to chuck out to make space for what you want to > add. Again, fixit is built using a different configuration file, please see src/release/${TARGET_ARCH}/fixit_crunch.conf. -- Yar From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 03:46:54 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EE6716A419 for ; Sun, 2 Sep 2007 03:46:54 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 245E913C458 for ; Sun, 2 Sep 2007 03:46:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l823j4uE087323; Sat, 1 Sep 2007 21:45:05 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 01 Sep 2007 21:45:07 -0600 (MDT) Message-Id: <20070901.214507.-345493889.imp@bsdimp.com> To: gahr@gahr.ch From: "M. Warner Losh" In-Reply-To: <46D71A16.6020005@gahr.ch> References: <46D7186D.8030508@gahr.ch> <200708302124.48899.max@love2party.net> <46D71A16.6020005@gahr.ch> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Sat, 01 Sep 2007 21:45:06 -0600 (MDT) Cc: max@love2party.net, freebsd-hackers@freebsd.org Subject: Re: what happened to make world? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 03:46:54 -0000 In message: <46D71A16.6020005@gahr.ch> Pietro Cerutti writes: : Max Laier wrote: : > On Thursday 30 August 2007, Pietro Cerutti wrote: : >> # make world : >> WARNING: make world will overwrite your existing FreeBSD : >> installation without also building and installing a new : >> kernel. This can be dangerous. Please read the handbook, : >> 'Rebuilding world', for how to upgrade your system. : >> Define DESTDIR to where you want to install FreeBSD, : >> including /, to override this warning and proceed as usual. : >> You may get the historical 'make world' behavior by defining : >> HISTORICAL_MAKE_WORLD. You should understand the implications : >> before doing this. : >> : >> Bailing out now... : >> *** Error code 1 : >> : >> Stop in /usr/src. : >> : >> : >> Now, THIS is quite funny... do you really thing that a person with : >> - root access : >> - the knowledge of the existence of "make world" : >> needs this sort of things? : >> : >> I didn't see anything about this new-wave-of-user-friendly-bsd going on : >> the list.. have I missed something? : > : > And your complaint would be ... what exactly? : > : : I don't want my OS to treat me like a stupid. I will note that since we switched to the multi-phase world with explicit reboot instructions, the support load for 'oh no, I shot myself in the foot' has gone way down. There are times that one must put a few safety rails in place. Since we have limited resources for support for users, it is better to make them make sure they know what they are doing so we can focus our resources better. Sometimes we have to optimize for developer time in the tradeoffs that are made. Warner From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 08:33:29 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C27D816A419; Sun, 2 Sep 2007 08:33:29 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from itchy.rabson.org (unknown [IPv6:2001:618:400::50b1:e8f2]) by mx1.freebsd.org (Postfix) with ESMTP id 2206B13C468; Sun, 2 Sep 2007 08:33:28 +0000 (UTC) (envelope-from dfr@rabson.org) Received: from [80.177.232.250] (herring.rabson.org [80.177.232.250]) by itchy.rabson.org (8.13.3/8.13.3) with ESMTP id l828XP7W018386; Sun, 2 Sep 2007 09:33:26 +0100 (BST) (envelope-from dfr@rabson.org) From: Doug Rabson To: Jin Guojun In-Reply-To: <46D734A1.2090700@george.lbl.gov> References: <46B245D5.1050606@george.lbl.gov> <20070803090530.GH2738@deviant.kiev.zoral.com.ua> <46D734A1.2090700@george.lbl.gov> Content-Type: text/plain Date: Sun, 02 Sep 2007 09:33:25 +0100 Message-Id: <1188722005.1058.32.camel@herring.rabson.org> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/4128/Sun Sep 2 06:54:56 2007 on itchy.rabson.org X-Virus-Status: Clean Cc: threads@freebsd.org, hackers@freebsd.org Subject: Re: How TLS is used in Kernel thread X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 08:33:29 -0000 On Thu, 2007-08-30 at 14:20 -0700, Jin Guojun wrote: > By looking through _pthread_create() code and find it uses a magic > cookie -- TLS -- created > by rtld_allocate_tls(), and passed into kernel by sysarch() via > _tcb_set() / _kcb_set(). > > The information seems to be set by rtld (ld-elf.so.1) in digest_phdr() > under tag PT_TLS. > But it is very magic for where the TLS object is created and how it is > passed to digest_phdr(). > > The whole object passed into kernel (as sd.gsbase) looks like this: > > TCB: ______________________________ > | TLS | TCB | > |______________|_______________| > > Can someone give some basic exaplain on following questions? > > 1) What TLS stand for? Its used to implement Thread-Local-Storage variables. These are global variables declared with the '__thread' keyword. Each variable declared in this way has a per-thread value (i.e. each thread has a private copy of the variable). > 2) Where TLS object is created? (below is the tls assigned, but I couls > not find where ph is from) > case PT_TLS: > obj->tlsindex = 1; > obj->tlssize = ph->p_memsz; > obj->tlsalign = ph->p_align; > obj->tlsinitsize = ph->p_filesz; > obj->tlsinit = (void*) ph->p_vaddr; Most of the work of dealing with TLS happens in the runtime linker /libexec/ld-elf.so.1. The runtime linker calculates the TLS size based on the TLS usage of all loaded libraries. The thread library uses an internal interface to rtld (_rtld_allocate_tls and _rtld_free_tls) during thread creation and destruction to allocate and free the TLS blocks. As you have seen, the memory allocated also includes the thread-library's control structures (which includes the saved register set etc.). Static programs have a slightly simpler mechanism (simpler because there is only the main program and no dynamic libraries). This is handled in src/lib/libc/gen/tls.c. > > 3) Where in kernel the TLS is used for thread operation? The kernel doesn't use this information at all. It simply provides support for the thread libraries needs. From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 10:50:19 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8797816A417 for ; Sun, 2 Sep 2007 10:50:19 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd2mo1so.prod.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 629A613C45D for ; Sun, 2 Sep 2007 10:50:19 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd2mr2so.prod.shaw.ca (pd2mr2so-qfe3.prod.shaw.ca [10.0.141.109]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JNQ009PYM1T9Q20@l-daemon> for freebsd-hackers@freebsd.org; Sun, 02 Sep 2007 04:49:05 -0600 (MDT) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd2mr2so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JNQ00I9WM1T4N00@pd2mr2so.prod.shaw.ca> for freebsd-hackers@freebsd.org; Sun, 02 Sep 2007 04:49:05 -0600 (MDT) Received: from soralx ([24.87.3.133]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JNQ00HY1M1RB071@l-daemon> for freebsd-hackers@freebsd.org; Sun, 02 Sep 2007 04:49:04 -0600 (MDT) Date: Sun, 02 Sep 2007 03:49:12 -0700 From: soralx@cydem.org In-reply-to: <20070901.214507.-345493889.imp@bsdimp.com> To: imp@bsdimp.com Message-id: <20070902034912.4b3b7af8@soralx> MIME-version: 1.0 X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit References: <46D7186D.8030508@gahr.ch> <200708302124.48899.max@love2party.net> <46D71A16.6020005@gahr.ch> <20070901.214507.-345493889.imp@bsdimp.com> Cc: max@love2party.net, freebsd-hackers@freebsd.org, gahr@gahr.ch Subject: Re: what happened to make world? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 10:50:19 -0000 > : > On Thursday 30 August 2007, Pietro Cerutti wrote: > : >> # make world > : >> WARNING: make world will overwrite your existing FreeBSD > : >> installation without also building and installing a new > : >> kernel. This can be dangerous. Please read the handbook, > : >> 'Rebuilding world', for how to upgrade your system. > : >> Define DESTDIR to where you want to install FreeBSD, > : >> including /, to override this warning and proceed as usual. > : >> You may get the historical 'make world' behavior by defining > : >> HISTORICAL_MAKE_WORLD. You should understand the implications > : >> before doing this. [...] > : I don't want my OS to treat me like a stupid. > > I will note that since we switched to the multi-phase world with > explicit reboot instructions, the support load for 'oh no, I shot > myself in the foot' has gone way down. There are times that one must > put a few safety rails in place. Since we have limited resources for > support for users, it is better to make them make sure they know what > they are doing so we can focus our resources better. > > Sometimes we have to optimize for developer time in the tradeoffs that > are made. Against any bit of modesty that's left in me, I'll crawl out of my cave for a second here -- to make a wise comment, no doubt ;) Not trying to start offtopic, just a little remark that's of importance to me (and to many other FreeBSD users, I bet). Not every FreeBSD user is [still] a "computer enthusiast". It just so happens that the OS at the time is the best one for many, many different uses, such as: server, router, research workstation, 'desktop', etc. It is basically an excellent universal tool for many (computer_science|IT)-unrelated tasks, e.g. machine in a physics lab. The ideal tool, of course, is the one that Just Works. Some of the folks using it can't afford the time expense of figuring out how exactly it's geared -- as long as things are working. If it Just Dies at any wrong move -- then, well, one can loose a lot of time, and be pretty screwed. I just hope that you developers won't be forgetting about the users. None of that "Are you sure?" nonsense is needed (it interferes with work as one gains experience), but just a helpful info message or a warning at the right moment is sure nice -- it makes things less painful and more productive. You see, it'd make me really sad to see FBSD go in the direction of Linux one day, and be geared towards (hackish) developers. Meaningless (to a mere mortal) error messages, obscure ways of doing things, chaotic development, and so on. Quite user-unfriendly. These things aren't "bad", they just tend to make the OS less useful as a tool. BTW, if this thread doesn't burn out, then perhaps it's about time it should start drifting in the general direction of -chat@... > Warner [SorAlx] ridin' VS1400 From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 11:50:30 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5271016A417 for ; Sun, 2 Sep 2007 11:50:30 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.pkgsrc-box.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id 15AFA13C48E for ; Sun, 2 Sep 2007 11:50:30 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.pkgsrc-box.org [127.0.0.1]) by www.pkgsrc-box.org (Postfix) with ESMTP id E992DE7A41D for ; Sun, 2 Sep 2007 10:45:08 +0000 (UTC) Received: by britannica.bec.de (Postfix, from userid 1000) id 49F87534F; Sun, 2 Sep 2007 12:45:09 +0200 (CEST) Date: Sun, 2 Sep 2007 12:45:09 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20070902104508.GB19678@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> <20070901183020.6a098955@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070901183020.6a098955@bhuda.mired.org> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: Exclusive binary files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 11:50:30 -0000 On Sat, Sep 01, 2007 at 06:30:20PM -0400, Mike Meyer wrote: > On Sat, 1 Sep 2007 14:27:42 -0300 "Klaus Schneider" wrote: > > Well, anybody know a way to make the FreeBSD run just binaries that I have > > compiled? > > In general, it's impossible. There's no way the system can know that > you compiled a binary. There are a number of things you could do with > a custom kernel and toolchain to indicate that you compiled the binary > (like Peter's changing of ELF OSABI), but that's just security through > obscurity. If someone figures out those changes and replicates them, > you lose. You mean using cryptographic hashes to ensure that binaries match those you compiled is impossible? Something like NetBSD's veriexec? Joerg From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 11:59:19 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18A8816A41B for ; Sun, 2 Sep 2007 11:59:19 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 5B0F613C458 for ; Sun, 2 Sep 2007 11:59:18 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from working (c-71-60-127-199.hsd1.pa.comcast.net [71.60.127.199]) (AUTH: LOGIN wmoran, SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Sun, 02 Sep 2007 07:58:50 -0400 id 00056407.46DAA57B.0000F344 Date: Sun, 2 Sep 2007 07:58:49 -0400 From: Bill Moran To: Joerg Sonnenberger Message-Id: <20070902075849.6ede3ade.wmoran@collaborativefusion.com> In-Reply-To: <20070902104508.GB19678@britannica.bec.de> References: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> <20070901183020.6a098955@bhuda.mired.org> <20070902104508.GB19678@britannica.bec.de> Organization: Collaborative Fusion Inc. X-Mailer: Sylpheed 2.4.4 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Exclusive binary files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 11:59:19 -0000 Joerg Sonnenberger wrote: > > On Sat, Sep 01, 2007 at 06:30:20PM -0400, Mike Meyer wrote: > > On Sat, 1 Sep 2007 14:27:42 -0300 "Klaus Schneider" wrote: > > > Well, anybody know a way to make the FreeBSD run just binaries that I have > > > compiled? > > > > In general, it's impossible. There's no way the system can know that > > you compiled a binary. There are a number of things you could do with > > a custom kernel and toolchain to indicate that you compiled the binary > > (like Peter's changing of ELF OSABI), but that's just security through > > obscurity. If someone figures out those changes and replicates them, > > you lose. > > You mean using cryptographic hashes to ensure that binaries match those > you compiled is impossible? Something like NetBSD's veriexec? Also, the situation can be actively _detected_ using something like tripwire or samhain. It'd be up to the admin to step in and stop things when a problem is detected, but at least you'd know. And those programs are available on all systems now. -- Bill Moran Collaborative Fusion Inc. wmoran@collaborativefusion.com Phone: 412-422-3463x4023 From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 14:51:29 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9DCCC16A418 for ; Sun, 2 Sep 2007 14:51:29 +0000 (UTC) (envelope-from klausps@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 3856B13C467 for ; Sun, 2 Sep 2007 14:51:29 +0000 (UTC) (envelope-from klausps@gmail.com) Received: by nf-out-0910.google.com with SMTP id k4so986850nfd for ; Sun, 02 Sep 2007 07:51:05 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=kzNdifKQnmK3wQIxmfxWawJjXe91lBpNPe1+9qcerOloHZsn0fGBZPhkK1qEGgVOMOclP+0yoDiOy3KwhdzG+12fQu2IJB+OGZRezbeskx/voXQDDGBfKgeGU/jzqYSmwwbqLNVKPeNBr43Fzk+cH1aq0igl0YvEG9SY3Ykj3Y0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=aj/UgKOucKRR63njsfzBYG8Wdn0z6YMwWr9RAn2rggHgG4T5Q+ckLJykkcOkIxSXYFEWt43XMOqYekt7pLd/q6qzltxB1Pt8zV9LFKo3IjRWxlULkKnfBhydtDrcTsQ5Z4cpsxnwsrPlZjIQl8Lk/9znZXAjkJ2oCRO0Eg18Aa0= Received: by 10.78.206.9 with SMTP id d9mr2651083hug.1188743118066; Sun, 02 Sep 2007 07:25:18 -0700 (PDT) Received: by 10.78.143.14 with HTTP; Sun, 2 Sep 2007 07:25:18 -0700 (PDT) Message-ID: <45910cf20709020725u1741704dn97c275489bc4c4e9@mail.gmail.com> Date: Sun, 2 Sep 2007 11:25:18 -0300 From: "Klaus Schneider" To: freebsd-hackers@freebsd.org In-Reply-To: <20070902104508.GB19678@britannica.bec.de> MIME-Version: 1.0 References: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> <20070901183020.6a098955@bhuda.mired.org> <20070902104508.GB19678@britannica.bec.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Exclusive binary files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 14:51:29 -0000 2007/9/2, Joerg Sonnenberger : > > On Sat, Sep 01, 2007 at 06:30:20PM -0400, Mike Meyer wrote: > > On Sat, 1 Sep 2007 14:27:42 -0300 "Klaus Schneider" > wrote: > > > Well, anybody know a way to make the FreeBSD run just binaries that I > have > > > compiled? > > > > In general, it's impossible. There's no way the system can know that > > you compiled a binary. There are a number of things you could do with > > a custom kernel and toolchain to indicate that you compiled the binary > > (like Peter's changing of ELF OSABI), but that's just security through > > obscurity. If someone figures out those changes and replicates them, > > you lose. > > You mean using cryptographic hashes to ensure that binaries match those > you compiled is impossible? Something like NetBSD's veriexec? > > Joerg > _______________________________________________ > 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" > Yes. The alternative would be somethink like veriexec, using hashes into elf binaries... -- /* * Klaus Schneider */ From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 16:13:45 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E0B6916A418; Sun, 2 Sep 2007 16:13:45 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mx1.freebsd.org (Postfix) with ESMTP id 8C30E13C4A5; Sun, 2 Sep 2007 16:13:45 +0000 (UTC) (envelope-from max@love2party.net) Received: from dslb-088-066-007-217.pools.arcor-ip.net [88.66.7.217] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis), id 0ML21M-1IRs4n3Jru-0006K2; Sun, 02 Sep 2007 18:13:30 +0200 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Sun, 2 Sep 2007 18:13:19 +0200 User-Agent: KMail/1.9.7 References: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> In-Reply-To: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1727724.D6U7MoWj6l"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200709021813.28332.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+Qg36DXlomV+2dIL3gDyGtK6ktb+zNrFjmp4a 6sqzEXwmPaqgp1UwIhsm6lAVuakP6QcRvQqGlP7uobm5YumidB SC/sLmfX773EO5+IqFIJV201SqQ3Jk/KusFeKNGXgw= Cc: Klaus Schneider Subject: Re: Exclusive binary files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 16:13:46 -0000 --nextPart1727724.D6U7MoWj6l Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 01 September 2007, Klaus Schneider wrote: > Hi. > > Well, anybody know a way to make the FreeBSD run just binaries that I > have compiled? > > For example: > A hacker get a access to a shell into my server, and then it put a > exploit code, but on the machine don't have a compiler, then he tries > to put the compiled exploit... supose that I can't mount the users > partition in "noexec" mode... > > Anybode knows a solution for these? IIRC csjp@ had some code to do this inside the MAC framework. Storing=20 hashes in extended attributes and only allowing execution of signed=20 executables ...=20 http://perforce.freebsd.org/fileLogView.cgi?FSPC=3D//depot/projects/trusted= bsd/mac/sys/security/mac%5fchkexec/mac%5fchkexec.c ...=20 not sure what became of it, though. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1727724.D6U7MoWj6l Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQBG2uEoXyyEoT62BG0RArzGAJ0e13bedFL4IK+2K6gfdbWn8W7dLACfYm9h J/RGXcALiuZ6xwpnMx3rhe8= =kuqD -----END PGP SIGNATURE----- --nextPart1727724.D6U7MoWj6l-- From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 17:14:26 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B739416A417 for ; Sun, 2 Sep 2007 17:14:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id A457813C4B5 for ; Sun, 2 Sep 2007 17:14:26 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 077D14710B; Sun, 2 Sep 2007 13:14:26 -0400 (EDT) Date: Sun, 2 Sep 2007 18:14:25 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Max Laier In-Reply-To: <200709021813.28332.max@love2party.net> Message-ID: <20070902181330.W21906@fledge.watson.org> References: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> <200709021813.28332.max@love2party.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Klaus Schneider Subject: Re: Exclusive binary files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 17:14:26 -0000 On Sun, 2 Sep 2007, Max Laier wrote: > On Saturday 01 September 2007, Klaus Schneider wrote: > >> Well, anybody know a way to make the FreeBSD run just binaries that I have >> compiled? >> >> For example: A hacker get a access to a shell into my server, and then it >> put a exploit code, but on the machine don't have a compiler, then he tries >> to put the compiled exploit... supose that I can't mount the users >> partition in "noexec" mode... >> >> Anybode knows a solution for these? > > IIRC csjp@ had some code to do this inside the MAC framework. Storing > hashes in extended attributes and only allowing execution of signed > executables ... > http://perforce.freebsd.org/fileLogView.cgi?FSPC=//depot/projects/trustedbsd/mac/sys/security/mac%5fchkexec/mac%5fchkexec.c > ... not sure what became of it, though. I believe he also was able to verify other things, such as shared libraries, which for modern binaries is the obvious next step given that a fair chunk of code run in many programs isn't in the main program binary. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 17:48:30 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 664DE16A468 for ; Sun, 2 Sep 2007 17:48:30 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id 2955E13C4B3 for ; Sun, 2 Sep 2007 17:48:30 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 54281 invoked by uid 1001); 2 Sep 2007 17:47:20 -0000 Received: from bhuda.mired.org (localhost.localdomain [127.0.0.1]) by bhuda.mired.org (tmda-ofmipd) with ESMTP; Sun, 02 Sep 2007 13:47:20 -0400 Date: Sun, 2 Sep 2007 13:47:19 -0400 To: freebsd-hackers@freebsd.org Message-ID: <20070902134719.271834f5@bhuda.mired.org> In-Reply-To: <20070902104508.GB19678@britannica.bec.de> References: <45910cf20709011027o546363e2h4f5646b15e0f84a2@mail.gmail.com> <20070901183020.6a098955@bhuda.mired.org> <20070902104508.GB19678@britannica.bec.de> Organization: Meyer Consulting X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; amd64-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Subject: Re: Exclusive binary files X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 17:48:30 -0000 On Sun, 2 Sep 2007 12:45:09 +0200 Joerg Sonnenberger wrote: > On Sat, Sep 01, 2007 at 06:30:20PM -0400, Mike Meyer wrote: > > On Sat, 1 Sep 2007 14:27:42 -0300 "Klaus Schneider" wrote: > > > Well, anybody know a way to make the FreeBSD run just binaries that I have > > > compiled? > > In general, it's impossible. There's no way the system can know that > > you compiled a binary. There are a number of things you could do with > > a custom kernel and toolchain to indicate that you compiled the binary > > (like Peter's changing of ELF OSABI), but that's just security through > > obscurity. If someone figures out those changes and replicates them, > > you lose. > You mean using cryptographic hashes to ensure that binaries match those > you compiled is impossible? Something like NetBSD's veriexec? Yes, that's possible, but "don't execute binaries I don't tell you are ok" is not (quite) the same thing as "don't execute binaries I compiled" or "don't execute binaries I didn't sign" or "don't execute ....". There are a number of things possible that are close to what he asked for, with different strengths and weaknesses. Valid responses include listing all of them, or guessing at his requirements and providing the best solution for the guess. However, I suspect that all those solutions are a lot more painful than solving whatever issues keep him from mounting his user partition noexec, so I chose another valid response, and asked for more information about his requirements. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 18:04:55 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32EF216A419 for ; Sun, 2 Sep 2007 18:04:55 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.freebsd.org (Postfix) with SMTP id E6DAA13C461 for ; Sun, 2 Sep 2007 18:04:54 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 54490 invoked by uid 1001); 2 Sep 2007 18:03:45 -0000 Received: from bhuda.mired.org (localhost.localdomain [127.0.0.1]) by bhuda.mired.org (tmda-ofmipd) with ESMTP; Sun, 02 Sep 2007 14:03:44 -0400 Date: Sun, 2 Sep 2007 14:03:44 -0400 To: soralx@cydem.org Message-ID: <20070902140344.263cd4e0@bhuda.mired.org> In-Reply-To: <20070902034912.4b3b7af8@soralx> References: <46D7186D.8030508@gahr.ch> <200708302124.48899.max@love2party.net> <46D71A16.6020005@gahr.ch> <20070901.214507.-345493889.imp@bsdimp.com> <20070902034912.4b3b7af8@soralx> Organization: Meyer Consulting X-Mailer: Claws Mail 2.9.1 (GTK+ 2.10.12; amd64-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) From: Mike Meyer Cc: max@love2party.net, gahr@gahr.ch, freebsd-hackers@freebsd.org Subject: Re: what happened to make world? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 18:04:55 -0000 On Sun, 02 Sep 2007 03:49:12 -0700 soralx@cydem.org wrote: > Not every FreeBSD user is [still] a "computer enthusiast". It just so > happens that the OS at the time is the best one for many, many different > uses, such as: server, router, research workstation, 'desktop', etc. > It is basically an excellent universal tool for many > (computer_science|IT)-unrelated tasks, e.g. machine in a physics lab. For me, FreeBSD is the best platform for developers and senior support personnel to build custom solutions to those problems on. It provides a basic platform on which you can build things with minimal effort. Developers love this. > You see, it'd make me really sad to see FBSD go in the direction of > Linux one day, and be geared towards (hackish) developers. You know, I see GNU/Linux (as RMS notes, most of the userland utilities are from GNU, and they, not Linus, deserve the credit - or in this case the blame) as being much more geared towards users than developers when compared to FreeBSD. GNU/Linux distros tend to come prebuilt to solve those problems the way the distributors think they should be solved. If that happens to work for you, great - you win. Users love this. If it doesn't work for you, you have to build your own. Of course, first you have to get the GNU/Linux distro to the point where you can build your own. The prepackaged solutions wind up getting in the way all along the path. Developers hate this. FreeBSD, on the other hand, doesn't have those solutions preinstalled - you have to at least navigate the packages or ports system. Users hate this. I won't go into the differences between the packages software for FreeBSD vs. RHE, I'll just note that software installed by RHE has a habit of not working the way I need it to, and getting it to do the right thing almost always involves something disgusting, obscene or both. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 18:34:38 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDBF116A419 for ; Sun, 2 Sep 2007 18:34:38 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id C2FEA13C4A3 for ; Sun, 2 Sep 2007 18:34:38 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id l82II4H7058467; Sun, 2 Sep 2007 11:18:04 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <46DAFE5C.6070806@freebsd.org> Date: Sun, 02 Sep 2007 11:18:04 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yar Tikhiy References: <20070901073440.GL85633@comp.chem.msu.su> In-Reply-To: <20070901073440.GL85633@comp.chem.msu.su> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 18:34:38 -0000 Yar Tikhiy wrote: > Hi all, > > I've had to use /rescue recently and felt lack of a few basic tools > in it, namely pgrep(1), head(1), tail(1), tee(1), and a text filter, > e.g., sed(1). Well, in fact most functionality of pgrep(1), head(1), > tail(1), and even tee(1) can be emulated if one has sed(1), but the > tools are so tiny and convenient that it's a pity not to have them > all handy during hard times. > > In addition, there are chflags and chmod in /rescue, but there's > no chown in it, so the toolset is a bit incomplete. Oh, my. chown was definitely an oversight. That should have been in there. My opinions: * head, tail, and tee are no-brainers; just do it. * sed would be a nice addition. (I atttempted to fit 'vi' in there, but curses is rather finicky; 'sed' would be more useful.) * I personally would not add pgrep/pkill because I never use them. Of course, it's hard to get worked up about 45k, so feel free to ignore the above. Cheers, Tim Kientzle From owner-freebsd-hackers@FreeBSD.ORG Sun Sep 2 19:00:07 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D906A16A41B; Sun, 2 Sep 2007 19:00:07 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from stella.fs.ei.tum.de (stella.fs.ei.tum.de [IPv6:2001:4ca0:22ff:10::7]) by mx1.freebsd.org (Postfix) with ESMTP id 4D9CE13C483; Sun, 2 Sep 2007 19:00:07 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id E645228932; Sun, 2 Sep 2007 21:00:04 +0200 (CEST) X-Virus-Scanned: by amavisd-new at fs.ei.tum.de Received: from stella.fs.ei.tum.de ([127.0.0.1]) by localhost (stella.fs.ei.tum.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 5PehRbyvhzHJ; Sun, 2 Sep 2007 21:00:04 +0200 (CEST) Received: from [128.178.149.21] (nslpc6.epfl.ch [128.178.149.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by stella.fs.ei.tum.de (Postfix) with ESMTP id 9B26E28931; Sun, 2 Sep 2007 21:00:04 +0200 (CEST) Message-ID: <46DB0834.1060109@fs.ei.tum.de> Date: Sun, 02 Sep 2007 21:00:04 +0200 From: Simon 'corecode' Schubert User-Agent: Thunderbird 1.5.0.12 (X11/20070604) MIME-Version: 1.0 To: Tim Kientzle References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> In-Reply-To: <46DAFE5C.6070806@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Yar Tikhiy , hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Sep 2007 19:00:07 -0000 Tim Kientzle wrote: > I atttempted to > fit 'vi' in there, but curses is rather finicky; > 'sed' would be more useful. Mined is a nice editor for this, running without curses. A statically linked, stripped binary is about 100k in size, so if crunched it would have a very small impact. cheers simon From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 00:36:05 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74E8116A420; Mon, 3 Sep 2007 00:36:05 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id D3A5C13C46C; Mon, 3 Sep 2007 00:36:04 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (dialup237.ach.sch.gr [81.186.70.237]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-8) with ESMTP id l830IAjK011166 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 3 Sep 2007 03:18:19 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l830I42J012016; Mon, 3 Sep 2007 03:18:05 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l830I3J6012015; Mon, 3 Sep 2007 03:18:03 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Mon, 3 Sep 2007 03:18:03 +0300 From: Giorgos Keramidas To: Tim Kientzle Message-ID: <20070903001803.GA8098@kobe.laptop> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46DAFE5C.6070806@freebsd.org> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.092, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.31, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: Yar Tikhiy , hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 00:36:05 -0000 On 2007-09-02 11:18, Tim Kientzle wrote: > Yar Tikhiy wrote: >> In addition, there are chflags and chmod in /rescue, but there's no >> chown in it, so the toolset is a bit incomplete. > > Oh, my. chown was definitely an oversight. That > should have been in there. Probably because chown is a relatively big binary. If build as a static binary here, it ends up being: $ pwd /home/keramida/bsd/src/usr.sbin/chown $ make DEBUG_FLAGS='' NO_SHARED=yes all [...] $ ls -ld chown -rwxrwxr-x 1 keramida users - 2297013 Sep 3 03:06 chown $ strip -s chown $ ls -ld chown -rwxrwxr-x 1 keramida users - 550624 Sep 3 03:06 chown $ This will get smaller when crunched, but it's still almost 4x the size of chmod: $ pwd /home/keramida/bsd/src/bin/chmod $ make DEBUG_FLAGS='' NO_SHARED=yes all [...] $ ls -ld chmod -rwxrwxr-x 1 keramida users - 662678 Sep 3 03:08 chmod $ strip -s chmod $ ls -ld chmod -rwxrwxr-x 1 keramida users - 165884 Sep 3 03:08 chmod $ Running nm(1) on the binaries, I see that they have the same symbols though: $ nm -S chmod | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chmod $ nm -S chown | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chown $ diff -u /tmp/symbols.chmod /tmp/symbols.chown $ Does this mean that adding chown to the already crunched binary will not cause a lot of bloat because of symbols/functions private to chown? - Giorgos From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 06:59:35 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F9A016A41A for ; Mon, 3 Sep 2007 06:59:35 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp5.yandex.ru (smtp5.yandex.ru [87.250.248.71]) by mx1.freebsd.org (Postfix) with ESMTP id 482CD13C46B for ; Mon, 3 Sep 2007 06:59:31 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:16124 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S1053645AbXICG64 (ORCPT + 1 other); Mon, 3 Sep 2007 10:58:56 +0400 X-Comment: RFC 2476 MSA function at smtp5.yandex.ru logged sender identity as: bu7cher Message-ID: <46DBB0AE.90106@yandex.ru> Date: Mon, 03 Sep 2007 10:58:54 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: grog@freebsd.org Subject: Remote GDB howto X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 06:59:35 -0000 Hi, I want to debug my kernel with modules through serial console. I have two machines with 7.0-CURRENT. What i do: hint.sio.0.flags="0x90" On the target system load all needed KLD. Make .asf output with patched asf(8). Why it don't create output for KERNFILE? Copy *.symbols files and .asf file from target machine. On second machine run: # du -l /dev/cuad0 ~^D # kgdb (kgdb) target remote /dev/cuad0 (kgdb) add-symbol-file /path/to/local/copy/of/file (kgdb) (kgdb) cont On target machine run into panic. Now on the second machine kgdb take a trap, but i only have the following: Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 0] 0x00000000 in ?? () (kgdb) bt #0 0x00000000 in ?? () What i've missed? -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 07:09:50 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D71E516A419 for ; Mon, 3 Sep 2007 07:09:50 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.freebsd.org (Postfix) with ESMTP id 8DAEA13C458 for ; Mon, 3 Sep 2007 07:09:50 +0000 (UTC) (envelope-from grog@lemis.com) Received: from dereel.lemis.com (ozlabs.org [203.10.76.45]) by ozlabs.org (Postfix) with ESMTP id 2C0FBDDE3C; Mon, 3 Sep 2007 17:09:35 +1000 (EST) Received: by dereel.lemis.com (Postfix, from userid 1004) id CF6CD1A98D7; Mon, 3 Sep 2007 17:09:52 +1000 (EST) Date: Mon, 3 Sep 2007 17:09:52 +1000 From: Greg 'groggy' Lehey To: "Andrey V. Elsukov" Message-ID: <20070903070952.GB32893@dereel.lemis.com> References: <46DBB0AE.90106@yandex.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IrhDeMKUP4DT/M7F" Content-Disposition: inline In-Reply-To: <46DBB0AE.90106@yandex.ru> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-3-5346-1370 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: freebsd-hackers@freebsd.org Subject: Re: Remote GDB howto X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 07:09:50 -0000 --IrhDeMKUP4DT/M7F Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 3 September 2007 at 10:58:54 +0400, Andrey V. Elsukov wrote: > Hi, > > I want to debug my kernel with modules through serial console. > I have two machines with 7.0-CURRENT. > What i do: > ... > > What i've missed? You're a bit sketchy on the details that I've omitted here. What happens between these two lines? > (kgdb) target remote /dev/cuad0 > (kgdb) add-symbol-file /path/to/local/copy/of/file You should have some communication with the remote machine between these two lines. Have you followed my tutorial? http://www.lemis.com/grog/Papers/Debug-tutorial/ Greg -- See complete headers for address and phone numbers. --IrhDeMKUP4DT/M7F Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFG27NAIubykFB6QiMRAqXcAJ9O61hfh/xh9oGdETaWBrtm7e/wwgCeNwoQ FRuKheHgfM2xEi3zr1Nh71g= =vTz0 -----END PGP SIGNATURE----- --IrhDeMKUP4DT/M7F-- From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 07:34:46 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C8D616A417; Mon, 3 Sep 2007 07:34:46 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp4.yandex.ru (smtp4.yandex.ru [213.180.223.136]) by mx1.freebsd.org (Postfix) with ESMTP id 86E2913C428; Mon, 3 Sep 2007 07:34:45 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:51396 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S737284AbXICHdl (ORCPT + 1 other); Mon, 3 Sep 2007 11:33:41 +0400 X-Comment: RFC 2476 MSA function at smtp4.yandex.ru logged sender identity as: bu7cher Message-ID: <46DBB8D3.8020702@yandex.ru> Date: Mon, 03 Sep 2007 11:33:39 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Greg 'groggy' Lehey References: <46DBB0AE.90106@yandex.ru> <20070903070952.GB32893@dereel.lemis.com> In-Reply-To: <20070903070952.GB32893@dereel.lemis.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Remote GDB howto X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 07:34:46 -0000 Greg 'groggy' Lehey wrote: > You're a bit sketchy on the details that I've omitted here. What > happens between these two lines? > >> (kgdb) target remote /dev/cuad0 Remote debugging using /dev/cuad0 0x00000000 in ?? () >> (kgdb) add-symbol-file /path/to/local/copy/of/file > > You should have some communication with the remote machine between > these two lines. > > Have you followed my tutorial? > http://www.lemis.com/grog/Papers/Debug-tutorial/ Yes, this is my primary manual. -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 07:41:30 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1164E16A419; Mon, 3 Sep 2007 07:41:30 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp3.yandex.ru (smtp3.yandex.ru [213.180.200.14]) by mx1.freebsd.org (Postfix) with ESMTP id 08BCB13C45E; Mon, 3 Sep 2007 07:41:28 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:46819 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S4747889AbXICHlD (ORCPT + 1 other); Mon, 3 Sep 2007 11:41:03 +0400 X-Comment: RFC 2476 MSA function at smtp3.yandex.ru logged sender identity as: bu7cher Message-ID: <46DBBA8A.2050403@yandex.ru> Date: Mon, 03 Sep 2007 11:40:58 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Greg 'groggy' Lehey References: <46DBB0AE.90106@yandex.ru> <20070903070952.GB32893@dereel.lemis.com> In-Reply-To: <20070903070952.GB32893@dereel.lemis.com> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Remote GDB howto [SOLVED] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 07:41:30 -0000 Greg 'groggy' Lehey wrote: > You're a bit sketchy on the details that I've omitted here. What > happens between these two lines? > >> (kgdb) target remote /dev/cuad0 >> (kgdb) add-symbol-file /path/to/local/copy/of/file I've solved my problem. I run on the second machine: # kgdb -r /dev/cuad0 /path/to/copy/of/target/kernel.symbols Sorry. -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 11:53:26 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FE3716A417 for ; Mon, 3 Sep 2007 11:53:26 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 232F913C459 for ; Mon, 3 Sep 2007 11:53:24 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l83Br01c058552; Mon, 3 Sep 2007 15:53:00 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l83BqwY8058547; Mon, 3 Sep 2007 15:52:58 +0400 (MSD) (envelope-from yar) Date: Mon, 3 Sep 2007 15:52:58 +0400 From: Yar Tikhiy To: "Simon 'corecode' Schubert" Message-ID: <20070903115258.GG30502@comp.chem.msu.su> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <46DB0834.1060109@fs.ei.tum.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46DB0834.1060109@fs.ei.tum.de> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org, Tim Kientzle Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 11:53:26 -0000 On Sun, Sep 02, 2007 at 09:00:04PM +0200, Simon 'corecode' Schubert wrote: > Tim Kientzle wrote: > >I atttempted to > >fit 'vi' in there, but curses is rather finicky; > >'sed' would be more useful. > > Mined is a nice editor for this, running without curses. A statically > linked, stripped binary is about 100k in size, so if crunched it would > have a very small impact. It even used to be in our src tree under release/picobsd. However, if we revive it, we'll have to support as many as 4 text editors in the base system, which can be a bit too many. The main problem with /rescue/vi is its being totally useless without the termcap file from /usr, as discussed under PR bin/80256. The solutions suggested there are more or less based on introducing additional trimmed down termcap files in the src tree, which is no better than having 4 editors to support. I'd rather write a small script to extract a subset of terminal types from the main termcap file, and install it as /rescue/termcap. -- Yar From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 12:04:22 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0243016A417; Mon, 3 Sep 2007 12:04:22 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 3E18013C442; Mon, 3 Sep 2007 12:04:20 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l83C3rn3058741; Mon, 3 Sep 2007 16:03:53 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l83C3rTv058740; Mon, 3 Sep 2007 16:03:53 +0400 (MSD) (envelope-from yar) Date: Mon, 3 Sep 2007 16:03:53 +0400 From: Yar Tikhiy To: Tim Kientzle Message-ID: <20070903120353.GH30502@comp.chem.msu.su> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46DAFE5C.6070806@freebsd.org> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 12:04:22 -0000 On Sun, Sep 02, 2007 at 11:18:04AM -0700, Tim Kientzle wrote: > Yar Tikhiy wrote: > >Hi all, > > > >I've had to use /rescue recently and felt lack of a few basic tools > >in it, namely pgrep(1), head(1), tail(1), tee(1), and a text filter, > >e.g., sed(1). Well, in fact most functionality of pgrep(1), head(1), > >tail(1), and even tee(1) can be emulated if one has sed(1), but the > >tools are so tiny and convenient that it's a pity not to have them > >all handy during hard times. > > > >In addition, there are chflags and chmod in /rescue, but there's > >no chown in it, so the toolset is a bit incomplete. > > Oh, my. chown was definitely an oversight. That > should have been in there. > > My opinions: > * head, tail, and tee are no-brainers; just do it. > * sed would be a nice addition. (I atttempted to > fit 'vi' in there, but curses is rather finicky; > 'sed' would be more useful.) Thank you for supporting my idea! > * I personally would not add pgrep/pkill because I > never use them. They can be handy if you find yourself with a botched system still in multi-user mode and want to fix the things w/o dropping to single-user mode. Now there are ps(1) and kill(1) in rescue, which together with sed(1) can do the same job, but pgrep/pkill is much more convenient. Another option can be killall(1), but pkill(1) has almost superseded it because it is more widely adopted and has richer features without code bloat. -- Yar From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 13:04:44 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0B49E16A417; Mon, 3 Sep 2007 13:04:44 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id BC7E713C45E; Mon, 3 Sep 2007 13:04:43 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.1/8.14.1/NETPLEX) with ESMTP id l83CawOi021609; Mon, 3 Sep 2007 08:36:58 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.netplex.net [204.213.176.10]); Mon, 03 Sep 2007 08:36:58 -0400 (EDT) Date: Mon, 3 Sep 2007 08:36:58 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Yar Tikhiy In-Reply-To: <20070903120353.GH30502@comp.chem.msu.su> Message-ID: References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903120353.GH30502@comp.chem.msu.su> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org, Tim Kientzle Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 13:04:44 -0000 On Mon, 3 Sep 2007, Yar Tikhiy wrote: > On Sun, Sep 02, 2007 at 11:18:04AM -0700, Tim Kientzle wrote: >> Yar Tikhiy wrote: >>> Hi all, >>> >>> I've had to use /rescue recently and felt lack of a few basic tools >>> in it, namely pgrep(1), head(1), tail(1), tee(1), and a text filter, >>> e.g., sed(1). Well, in fact most functionality of pgrep(1), head(1), >>> tail(1), and even tee(1) can be emulated if one has sed(1), but the >>> tools are so tiny and convenient that it's a pity not to have them >>> all handy during hard times. >>> >>> In addition, there are chflags and chmod in /rescue, but there's >>> no chown in it, so the toolset is a bit incomplete. >> >> Oh, my. chown was definitely an oversight. That >> should have been in there. >> >> My opinions: >> * head, tail, and tee are no-brainers; just do it. >> * sed would be a nice addition. (I atttempted to >> fit 'vi' in there, but curses is rather finicky; >> 'sed' would be more useful.) > > Thank you for supporting my idea! I'm surprised no one has mentioned ftp or fetch. I don't know how large they would be if static, but if you have to grab some files over the network, it can be quite convenient. -- DE From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 13:31:17 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2A9FD16A41B; Mon, 3 Sep 2007 13:31:17 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id 5A03C13C461; Mon, 3 Sep 2007 13:31:12 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l83DUVot060782; Mon, 3 Sep 2007 17:30:31 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l83DUUAr060781; Mon, 3 Sep 2007 17:30:30 +0400 (MSD) (envelope-from yar) Date: Mon, 3 Sep 2007 17:30:30 +0400 From: Yar Tikhiy To: Daniel Eischen Message-ID: <20070903133030.GJ30502@comp.chem.msu.su> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903120353.GH30502@comp.chem.msu.su> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org, Tim Kientzle Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 13:31:17 -0000 On Mon, Sep 03, 2007 at 08:36:58AM -0400, Daniel Eischen wrote: > On Mon, 3 Sep 2007, Yar Tikhiy wrote: > > >On Sun, Sep 02, 2007 at 11:18:04AM -0700, Tim Kientzle wrote: > >>Yar Tikhiy wrote: > >>>Hi all, > >>> > >>>I've had to use /rescue recently and felt lack of a few basic tools > >>>in it, namely pgrep(1), head(1), tail(1), tee(1), and a text filter, > >>>e.g., sed(1). Well, in fact most functionality of pgrep(1), head(1), > >>>tail(1), and even tee(1) can be emulated if one has sed(1), but the > >>>tools are so tiny and convenient that it's a pity not to have them > >>>all handy during hard times. > >>> > >>>In addition, there are chflags and chmod in /rescue, but there's > >>>no chown in it, so the toolset is a bit incomplete. > >> > >>Oh, my. chown was definitely an oversight. That > >>should have been in there. > >> > >>My opinions: > >> * head, tail, and tee are no-brainers; just do it. > >> * sed would be a nice addition. (I atttempted to > >>fit 'vi' in there, but curses is rather finicky; > >>'sed' would be more useful.) > > > >Thank you for supporting my idea! > > I'm surprised no one has mentioned ftp or fetch. I don't know how > large they would be if static, but if you have to grab some files over > the network, it can be quite convenient. It's just a matter of Someone(tm) building the new rescue with ftp or fetch, testing it, and reporting the size change. ;-) With network setup tools already in /rescue, it sounds as a good idea to consider, at least. The needed code pieces aren't giant: -r-xr-xr-x 1 root wheel 18956 26 Á×Ç 03:31 /usr/bin/fetch -r--r--r-- 1 root wheel 54750 26 Á×Ç 03:27 /usr/lib/libfetch.a But the crypto bits may need to be disabled: # ldd /usr/bin/fetch /usr/bin/fetch: libfetch.so.5 => /usr/lib/libfetch.so.5 (0x28080000) libssl.so.5 => /usr/lib/libssl.so.5 (0x2808d000) libcrypto.so.5 => /lib/libcrypto.so.5 (0x280ce000) libc.so.7 => /lib/libc.so.7 (0x28225000) Another option is tftp(1). :-) -- Yar From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 13:44:30 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3B18516A41B; Mon, 3 Sep 2007 13:44:30 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.freebsd.org (Postfix) with ESMTP id A13BC13C458; Mon, 3 Sep 2007 13:44:27 +0000 (UTC) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.4/8.13.4) with ESMTP id l83DKA35060568; Mon, 3 Sep 2007 17:20:10 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.4/8.13.4/Submit) id l83DKApl060567; Mon, 3 Sep 2007 17:20:10 +0400 (MSD) (envelope-from yar) Date: Mon, 3 Sep 2007 17:20:09 +0400 From: Yar Tikhiy To: Giorgos Keramidas Message-ID: <20070903132009.GI30502@comp.chem.msu.su> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903001803.GA8098@kobe.laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20070903001803.GA8098@kobe.laptop> User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org, Tim Kientzle Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 13:44:30 -0000 On Mon, Sep 03, 2007 at 03:18:03AM +0300, Giorgos Keramidas wrote: > On 2007-09-02 11:18, Tim Kientzle wrote: > > Yar Tikhiy wrote: > >> In addition, there are chflags and chmod in /rescue, but there's no > >> chown in it, so the toolset is a bit incomplete. > > > > Oh, my. chown was definitely an oversight. That > > should have been in there. > > Probably because chown is a relatively big binary. If build as a static > binary here, it ends up being: > > $ pwd > /home/keramida/bsd/src/usr.sbin/chown > $ make DEBUG_FLAGS='' NO_SHARED=yes all > [...] > $ ls -ld chown > -rwxrwxr-x 1 keramida users - 2297013 Sep 3 03:06 chown > $ strip -s chown > $ ls -ld chown > -rwxrwxr-x 1 keramida users - 550624 Sep 3 03:06 chown > $ > > This will get smaller when crunched, but it's still almost 4x the size > of chmod: > > $ pwd > /home/keramida/bsd/src/bin/chmod > $ make DEBUG_FLAGS='' NO_SHARED=yes all > [...] > $ ls -ld chmod > -rwxrwxr-x 1 keramida users - 662678 Sep 3 03:08 chmod > $ strip -s chmod > $ ls -ld chmod > -rwxrwxr-x 1 keramida users - 165884 Sep 3 03:08 chmod > $ > > Running nm(1) on the binaries, I see that they have the same symbols > though: > > $ nm -S chmod | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chmod > $ nm -S chown | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chown > $ diff -u /tmp/symbols.chmod /tmp/symbols.chown > $ > > Does this mean that adding chown to the already crunched binary will not > cause a lot of bloat because of symbols/functions private to chown? The difference in the static binary sizes is weird, but I don't have time now to dig the issue deeper, sorry. The rescue binary grows just slightly when chown is added to it: -r-xr-xr-x 121 root wheel 3715096 1 ÓÅÎ 10:22 /rescue.old/rescue -r-xr-xr-x 122 root wheel 3718192 3 ÓÅÎ 17:17 /rescue/rescue -- Yar From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 14:05:50 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B80C16A468; Mon, 3 Sep 2007 14:05:50 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 96FD913C46B; Mon, 3 Sep 2007 14:05:49 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (vader.bytemobile.ondsl.gr [83.235.244.135]) (authenticated bits=128) by igloo.linux.gr (8.14.1/8.14.1/Debian-8) with ESMTP id l83E5FCo025398 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 3 Sep 2007 17:05:24 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.1/8.14.1) with ESMTP id l83E4uQM005461; Mon, 3 Sep 2007 17:05:12 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.1/8.14.1/Submit) id l83E4tcj005460; Mon, 3 Sep 2007 17:04:55 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Mon, 3 Sep 2007 17:04:55 +0300 From: Giorgos Keramidas To: Yar Tikhiy Message-ID: <20070903140454.GB5265@kobe.laptop> References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903001803.GA8098@kobe.laptop> <20070903132009.GI30502@comp.chem.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070903132009.GI30502@comp.chem.msu.su> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.076, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.32, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: Tim Kientzle , hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 14:05:50 -0000 On 2007-09-03 17:20, Yar Tikhiy wrote: >On Mon, Sep 03, 2007 at 03:18:03AM +0300, Giorgos Keramidas wrote: >> Running nm(1) on the binaries, I see that they have the same symbols >> though: >> >> $ nm -S chmod | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chmod >> $ nm -S chown | awk '{print $2,$3,$4}' | sort > /tmp/symbols.chown >> $ diff -u /tmp/symbols.chmod /tmp/symbols.chown >> $ >> >> Does this mean that adding chown to the already crunched binary will not >> cause a lot of bloat because of symbols/functions private to chown? > > The difference in the static binary sizes is weird, but I don't > have time now to dig the issue deeper, sorry. The rescue binary > grows just slightly when chown is added to it: > > -r-xr-xr-x 121 root wheel 3715096 1 ??? 10:22 /rescue.old/rescue > -r-xr-xr-x 122 root wheel 3718192 3 ??? 17:17 /rescue/rescue It's probably a side-effect of the fact my userland was built with DEBUG_FLAGS='-g' and this was compiled without a full buildworld. Thus the binaries I compiled used debugging versions of the libs from /usr/lib but their own source was built with DEBUG_FLAGS=''. Nevermind about the binary difference in sizes; it's probably a local build-related issue. It's good to know that rescue doesn't grow a lot anyway :) From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 15:02:50 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 04ECA16A421 for ; Mon, 3 Sep 2007 15:02:50 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 72C5413C45D for ; Mon, 3 Sep 2007 15:02:49 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.1/8.14.1) with ESMTP id l83El3rM055217; Mon, 3 Sep 2007 18:47:03 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 3 Sep 2007 18:47:03 +0400 (MSD) From: Dmitry Morozovsky To: Julian Stacey In-Reply-To: <200709011240.l81CeTKd056036@fire.js.berklix.net> Message-ID: <20070903184218.B52310@woozle.rinet.ru> References: <200709011240.l81CeTKd056036@fire.js.berklix.net> X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=KOI8-r Content-Transfer-Encoding: 8BIT X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (woozle.rinet.ru [0.0.0.0]); Mon, 03 Sep 2007 18:47:04 +0400 (MSD) Cc: Yar Tikhiy , hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 15:02:50 -0000 On Sat, 1 Sep 2007, Julian Stacey wrote: JS> > I've had to use /rescue recently and felt lack of a few basic tools JS> > in it, namely pgrep(1), head(1), tail(1), tee(1), and a text filter, JS> > e.g., sed(1). Well, in fact most functionality of pgrep(1), head(1), JS> > tail(1), and even tee(1) can be emulated if one has sed(1), but the JS> > tools are so tiny and convenient that it's a pity not to have them JS> > all handy during hard times. JS> > JS> > In addition, there are chflags and chmod in /rescue, but there's JS> > no chown in it, so the toolset is a bit incomplete. JS> > JS> > Would anyone mind if I add those tools to /rescue? The size growth JS> > will be rather small: JS> > JS> > -r-xr-xr-x 121 root wheel 3715096 1 ÓÅÎ 10:22 /mnt2/rescue.old/rescue JS> > -r-xr-xr-x 129 root wheel 3761828 1 ÓÅÎ 11:22 /mnt2/rescue/rescue JS> JS> Don't do it without approval of re@ (who might be too busy just now JS> anyway) It might blow the limit on the tight packed rescue floppy. JS> (& though desk workstations have CDs, lost of small boxes still JS> just have floppies for rescue) Best try to build a rescue floppy JS> yourself before adding bloat. JS> JS> BTW I've never used pgrep thus superfluous to rescue. Others also JS> not really needed, merely nice. True rescue is just to fix FS at JS> which point you can mount other FS or CDROM or NFS etc for more JS> tools. What about adding support for zfs then (see below)? I found it especially useful when you have zfs-on-root and copy /rescue to /bootdisk and symlink bin and sbin to rescue - this allows emergency management of zfs when booting with /bootdisk as root. Trick with -lm seems to be needed because libzfs itself refers to pow(3) - or did I miss something trivial to resolve this? Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ Index: Makefile =================================================================== RCS file: /home/ncvs/src/rescue/rescue/Makefile,v retrieving revision 1.56 diff -u -r1.56 Makefile --- Makefile 14 Jul 2007 21:49:22 -0000 1.56 +++ Makefile 31 Aug 2007 11:24:34 -0000 @@ -71,7 +71,7 @@ CRUNCH_PROGS_bin= cat chflags chio chmod cp date dd df echo \ ed expr getfacl hostname kenv kill ln ls mkdir mv pax ps pwd \ realpath rm rmdir setfacl sh stty sync test -CRUNCH_LIBS+= -lcrypt -ledit -lkvm -ll -lm -ltermcap -lutil +CRUNCH_LIBS+= -lcrypt -ledit -lkvm -ll -ltermcap -lutil .if ${MK_OPENSSL} != "no" CRUNCH_LIBS+= -lcrypto .endif @@ -185,5 +185,17 @@ CRUNCH_PROGS_sbin+= dhclient CRUNCH_BUILDOPTS_dhclient= -DRELEASE_CRUNCH -Dlint +# zfs-related: zpool and zfs +.if ${MK_CDDL} != "no" && ${MK_ZFS} != "no" +CRUNCH_PROGS_sbin+= zfs zpool +CRUNCH_SRCDIR_zfs= $(.CURDIR)/../../cddl/sbin/zfs +CRUNCH_SRCDIR_zpool= $(.CURDIR)/../../cddl/sbin/zpool +CRUNCH_LIBS+= -lzfs -lavl -lnvpair -luutil +.endif + +# XXX libzfs needs pow() +CRUNCH_LIBS+= -lm + ################################################################## # Programs from stock /usr/bin # From owner-freebsd-hackers@FreeBSD.ORG Mon Sep 3 19:41:48 2007 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEF9916A421 for ; Mon, 3 Sep 2007 19:41:48 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id CD00C13C478 for ; Mon, 3 Sep 2007 19:41:48 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.222] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id l83JfUH7065673; Mon, 3 Sep 2007 12:41:30 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <46DC636A.1060109@freebsd.org> Date: Mon, 03 Sep 2007 12:41:30 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Giorgos Keramidas References: <20070901073440.GL85633@comp.chem.msu.su> <46DAFE5C.6070806@freebsd.org> <20070903001803.GA8098@kobe.laptop> In-Reply-To: <20070903001803.GA8098@kobe.laptop> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: Yar Tikhiy , hackers@freebsd.org Subject: Re: Useful tools missing from /rescue X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Sep 2007 19:41:49 -0000 Giorgos Keramidas wrote: > > ... [chown] is still almost 4x the size of chmod: > > $ ls -ld chown > -rwxrwxr-x 1 keramida users - 550624 Sep 3 03:06 chown > $ ls -ld chmod > -rwxrwxr-x 1 keramida users - 165884 Sep 3 03:08 chmod getpwuid() pulls in DNS, NIS, and a bunch of other network routines, which are quite large. chmod doesn't need to look up user or group names. Tim Kientzle P.S. Interesting experiment: for every function in libc, create a statically linked and stripped binary that references that one function and look at the sizes. From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 11:05:37 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B898E16A418; Tue, 4 Sep 2007 11:05:37 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 7F0B013C467; Tue, 4 Sep 2007 11:05:28 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id ABC08EB459A; Tue, 4 Sep 2007 19:05:09 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id HMEdkjfhYz43; Tue, 4 Sep 2007 19:04:39 +0800 (CST) Received: from LI-Xins-MacBook.local (sina152-194.staff.sina.com.cn [61.135.152.194]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 35621EB4592; Tue, 4 Sep 2007 19:04:07 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:cc:subject:references:in-reply-to: x-enigmail-version:openpgp:content-type; b=vjc1nOqA9DydQxLmr1MK7Ry0miNwlM9WECRthVqUJcDCFKo7vAZ2/qs5Zm47P6cvI oWzZvjB54En+VqTHcy9Og== Message-ID: <46DD3B97.1020205@delphij.net> Date: Tue, 04 Sep 2007 19:03:51 +0800 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Hans Petter Selasky References: <200709040755.l847tPbn003371@repoman.freebsd.org> <200709041121.45990.hselasky@c2i.net> In-Reply-To: <200709041121.45990.hselasky@c2i.net> X-Enigmail-Version: 0.95.3 OpenPGP: url=http://www.delphij.net/delphij.asc Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig7CBE5F8D6D5880C3862BF559" Cc: freebsd-hackers , Perforce Change Reviews , Xin LI Subject: Re: PERFORCE change 126033 for review X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 11:05:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7CBE5F8D6D5880C3862BF559 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi, Hans, Hans Petter Selasky wrote: > Hi, >=20 > In my opinion you should keep braces around single line if's . >=20 > if (xxx) { > yyy; > } >=20 > This will reduce the chance of error next time you add a statement to a= n if. I think I have some different understanding. My opinion is that with excessive use of these { and }'s the code could be sometimes confusing to human reader, especially if there are a lot of consecutive single line if's that can not be easily converted to case (e.g. in case we wanted to test bit masks, etc). Also to quote style(9): %%%%%%%%%%%%%%%%% No braces (`{' and `}') are used for control statements with zero or only a single statement unless that statement is more than a single line in which case they are permitted. Forever loops are done with for's, not while's. %%%%%%%%%%%%%%%%% Because msdosfs is considered as our own code (e.g. we don't want to sync it with a foreign vendor who has different style guidelines), I think it would be more appropriate to obey style(9)'s rules. Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------enig7CBE5F8D6D5880C3862BF559 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG3TuXOfuToMruuMARCvlbAJ9NPZr+Jbq/KoczUPGog+jyTwtlCQCfYD5y TclNtgRdzWFkUwqn0UYpgi8= =9PP6 -----END PGP SIGNATURE----- --------------enig7CBE5F8D6D5880C3862BF559-- From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 11:30:06 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2666716A4A7 for ; Tue, 4 Sep 2007 11:30:06 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id CB20A13C46C for ; Tue, 4 Sep 2007 11:30:03 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1ISWba-0005wr-6e for freebsd-hackers@freebsd.org; Tue, 04 Sep 2007 13:30:02 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2007 13:30:02 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2007 13:30:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Tue, 04 Sep 2007 12:31:57 +0200 Lines: 41 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enigA89CA92D0D512C901D3D7911" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) X-Enigmail-Version: 0.94.4.0 Sender: news Cc: freebsd-current@freebsd.org Subject: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 11:30:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA89CA92D0D512C901D3D7911 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi, As some of you may know, I'm maintaining a web page which aims to=20 enumerate and describe major new features for FreeBSD 7, located at=20 http://ivoras.sharanet.org/freebsd/freebsd7.html . Since 7.0 should be released "soon", I'd like to update the page with=20 the current status of the projects. In particular, I'd like to mark=20 projects that won't be ready for 7.0. To do so, I need input from the=20 projects' authors and maintainers. So if you are listed on the page and=20 your project status is updated and no longer matches what's written on=20 the page, please respond to this thread. Also, if a feature won't be=20 ready for 7.0 but will be sometime during 7.x, please state so. Of course, additions, corrections, etc. are also welcome. Thanks :) --------------enigA89CA92D0D512C901D3D7911 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG3TQdldnAQVacBcgRAxyXAKCKpIfn02G625JSdnc34jwT9OnmegCfbpK3 NYW+g5EXfHpY/detwGg+AsQ= =OXtA -----END PGP SIGNATURE----- --------------enigA89CA92D0D512C901D3D7911-- From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 11:55:20 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A909E16A41A; Tue, 4 Sep 2007 11:55:20 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 676FF13C467; Tue, 4 Sep 2007 11:55:20 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.5]) by phk.freebsd.dk (Postfix) with ESMTP id 38CF017105; Tue, 4 Sep 2007 11:32:20 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l84BWJ90003607; Tue, 4 Sep 2007 11:32:20 GMT (envelope-from phk@critter.freebsd.dk) To: Ivan Voras From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 04 Sep 2007 12:31:57 +0200." Date: Tue, 04 Sep 2007 11:32:19 +0000 Message-ID: <3606.1188905539@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 11:55:20 -0000 In message , Ivan Voras writes: >As some of you may know, I'm maintaining a web page which aims to=20 >enumerate and describe major new features for FreeBSD 7, located at=20 >http://ivoras.sharanet.org/freebsd/freebsd7.html . Feel free to add: ACPI suspend/resume does not work on SMP systems, including multi-core laptops. :-/ -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 13:49:20 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8617A16A41A for ; Tue, 4 Sep 2007 13:49:20 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.239]) by mx1.freebsd.org (Postfix) with ESMTP id 4053F13C465 for ; Tue, 4 Sep 2007 13:49:20 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: by nz-out-0506.google.com with SMTP id l8so900870nzf for ; Tue, 04 Sep 2007 06:49:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iskyy0MzbUvr55bGzucyO/ud+9cA+Uly6IJ3EcSnDxJKKBH8MGrYThOnX7DAtJbRXv9rdSMTEIDbGdkK1cRn+KLT7IPyo0prVTS0+qt5foX9VAcESHTPYfkcyh42RYsKCAGjfzN9mXtWMRIP9eNTqb9KkPPMI8ESkHUh5TCrI0Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Lr2OHIsP9Jr2EG5IpcM1WHezMoWpRSAGhXKEcyiiOUDoOEGbAI0QyLB77Fv+liK0RjFKkhOahFSSlD8p4YKXtHAK4dgveHOkIfkiO1AphAN36QJp4CylRX7bhlp3pKzLQ7eyc93BtHoBbQVSpXVNraV13RbRqVkOLW+QUun5M7g= Received: by 10.142.89.9 with SMTP id m9mr284560wfb.1188912019877; Tue, 04 Sep 2007 06:20:19 -0700 (PDT) Received: by 10.143.1.8 with HTTP; Tue, 4 Sep 2007 06:20:19 -0700 (PDT) Message-ID: <47d0403c0709040620u30ac2951x4b5f38fcfeb81f6e@mail.gmail.com> Date: Tue, 4 Sep 2007 09:20:19 -0400 From: "Ben Kaduk" To: "Ivan Voras" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 13:49:20 -0000 On 9/4/07, Ivan Voras wrote: > Hi, > > As some of you may know, I'm maintaining a web page which aims to > enumerate and describe major new features for FreeBSD 7, located at > http://ivoras.sharanet.org/freebsd/freebsd7.html . > > Since 7.0 should be released "soon", I'd like to update the page with > the current status of the projects. In particular, I'd like to mark > projects that won't be ready for 7.0. To do so, I need input from the > projects' authors and maintainers. So if you are listed on the page and > your project status is updated and no longer matches what's written on > the page, please respond to this thread. Also, if a feature won't be > ready for 7.0 but will be sometime during 7.x, please state so. > > Of course, additions, corrections, etc. are also welcome. > Would it be worth mentioning more prominently that NET_NEEDS_GIANT has been axed? It may be included in ``pushing GIANT farther back'', but it seems deserving of an explicit mention, to me. (Thanks to everyone who put the work in to get that done!) -Ben Kaduk From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 13:55:21 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F362216A417 for ; Tue, 4 Sep 2007 13:55:20 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id A8BCB13C45A for ; Tue, 4 Sep 2007 13:55:20 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1ISYru-0002Cc-Rr for freebsd-hackers@freebsd.org; Tue, 04 Sep 2007 15:55:02 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2007 15:55:02 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Sep 2007 15:55:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Tue, 04 Sep 2007 15:52:11 +0200 Lines: 29 Message-ID: References: <47d0403c0709040620u30ac2951x4b5f38fcfeb81f6e@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-ripemd160; protocol="application/pgp-signature"; boundary="------------enig9A29B4DE4A37DB09DC2F3C99" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) In-Reply-To: <47d0403c0709040620u30ac2951x4b5f38fcfeb81f6e@mail.gmail.com> X-Enigmail-Version: 0.94.4.0 Sender: news Cc: freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 13:55:21 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig9A29B4DE4A37DB09DC2F3C99 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Ben Kaduk wrote: > Would it be worth mentioning more prominently that NET_NEEDS_GIANT > has been axed? It may be included in ``pushing GIANT farther back'', > but it seems deserving of an explicit mention, to me. Ok, here's something like it. --------------enig9A29B4DE4A37DB09DC2F3C99 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFG3WMLldnAQVacBcgRA2OsAKDAjK8kHqXjW2zsl/bjUjUYvyfeogCfa3CJ VQamnKCaiWImyIzUVtb6OLo= =E1OC -----END PGP SIGNATURE----- --------------enig9A29B4DE4A37DB09DC2F3C99-- From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 16:51:14 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB50916A419; Tue, 4 Sep 2007 16:51:14 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmmtai104.cox.net (eastrmmtai104.cox.net [68.230.240.11]) by mx1.freebsd.org (Postfix) with ESMTP id 1D79B13C465; Tue, 4 Sep 2007 16:51:14 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao102.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070904152337.SJXP19980.eastrmmtao102.cox.net@eastrmimpo02.cox.net>; Tue, 4 Sep 2007 11:23:37 -0400 Received: from mezz.mezzweb.com ([24.255.149.218]) by eastrmimpo02.cox.net with bizsmtp id kFPc1X00C4iy4EG0000000; Tue, 04 Sep 2007 11:23:36 -0400 Date: Tue, 04 Sep 2007 10:27:33 -0500 To: "Ivan Voras" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: Content-Transfer-Encoding: Quoted-Printable Message-ID: In-Reply-To: User-Agent: Opera Mail/9.23 (Linux) Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: VirtualBox? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 16:51:14 -0000 On Tue, 04 Sep 2007 08:33:50 -0500, Ivan Voras wrot= e: > Hi, > > Is anyone working on porting VirtualBox? > > http://www.virtualbox.org/wiki/Porting_VirtualBox > > It mentions FreeBSD but nothing conclusive. It should be easier than > VMWare :) http://www.virtualbox.org/wiki/VBox_vs_Others (see in host box) http://www.virtualbox.org/wiki/FreeBSD%20build%20instructions http://www.virtualbox.org/search?q=3Dfreebsd&wiki=3Don&changeset=3Don&ti= cket=3Don It looks like they are working on it. Cheers, Mezz -- = mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 17:05:44 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F50E16A419; Tue, 4 Sep 2007 17:05:44 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id B895C13C465; Tue, 4 Sep 2007 17:05:43 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from srv.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1ISbSm-0003rL-CF; Tue, 04 Sep 2007 20:41:16 +0400 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1ISbVN-000F1s-Mm; Tue, 04 Sep 2007 20:43:57 +0400 To: Ivan Voras References: From: Boris Samorodov Date: Tue, 04 Sep 2007 20:43:57 +0400 In-Reply-To: (Ivan Voras's message of "Tue\, 04 Sep 2007 12\:31\:57 +0200") Message-ID: <22108082@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Tue, 04 Sep 2007 17:20:54 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 17:05:44 -0000 On Tue, 04 Sep 2007 12:31:57 +0200 Ivan Voras wrote: > Of course, additions, corrections, etc. are also welcome. It may be worth mentioning that iscsi_initiator appeared. WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 17:05:44 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B234216A417; Tue, 4 Sep 2007 17:05:44 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [194.62.233.102]) by mx1.freebsd.org (Postfix) with ESMTP id 6642413C46B; Tue, 4 Sep 2007 17:05:44 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from stat.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1ISbNk-0003qn-HE; Tue, 04 Sep 2007 20:36:04 +0400 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1ISbQL-000Esz-RB; Tue, 04 Sep 2007 20:38:45 +0400 To: Ivan Voras References: From: Boris Samorodov Date: Tue, 04 Sep 2007 20:38:45 +0400 In-Reply-To: (Ivan Voras's message of "Tue\, 04 Sep 2007 12\:31\:57 +0200") Message-ID: <98908394@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.99 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Tue, 04 Sep 2007 17:20:54 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, netchild@FreeBSD.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 17:05:44 -0000 Hi Ivan! On Tue, 04 Sep 2007 12:31:57 +0200 Ivan Voras wrote: > As some of you may know, I'm maintaining a web page which aims to > enumerate and describe major new features for FreeBSD 7, located at > http://ivoras.sharanet.org/freebsd/freebsd7.html . > Since 7.0 should be released "soon", I'd like to update the page with > the current status of the projects. In particular, I'd like to mark > projects that won't be ready for 7.0. To do so, I need input from the > projects' authors and maintainers. So if you are listed on the page > and your project status is updated and no longer matches what's > written on the page, please respond to this thread. Also, if a feature > won't be ready for 7.0 but will be sometime during 7.x, please state > so. > Of course, additions, corrections, etc. are also welcome. As for linuxulator. The default sysctl will be "compat.linux.osrelease: 2.4.2" and the port will be linux_base-fc4: http://lists.freebsd.org/pipermail/freebsd-emulation/2007-August/003914.html HTH & WBR -- bsam From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 17:30:30 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B677716A417 for ; Tue, 4 Sep 2007 17:30:30 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181]) by mx1.freebsd.org (Postfix) with ESMTP id 7069213C48E for ; Tue, 4 Sep 2007 17:30:30 +0000 (UTC) (envelope-from mnslinky@gmail.com) Received: by el-out-1112.google.com with SMTP id r27so383678ele for ; Tue, 04 Sep 2007 10:30:29 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=CJRQuiO9dUnDSzIvTEaTw27k3wCxFLtnlnKgQW8DgDjpeTh5/HePjn49kpQVxh1xQ5jHPqsCL536DZBfvGdGoZSHybvHrPiihsFQWoMV5cLcpg1A5ZIj9QJxzcemwzf1jceahz5b8DoI/7mISbuYzuxsjtjXbrxfEGvDZU9qHc4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:cc:content-transfer-encoding:from:subject:date:to:x-mailer; b=PLx4L1SPigVVocjhRUfEUm7KEntJMAAIuekHcc5I3UTmW/VdZg/m7qWxiPKu3gqX10LfnfMP4waLtrG9mMHRH1eza7V4ZvduNrjQbo+NmqbZPj44JI2hzv/iRYQp7emgWZy6OCUJWvMUZJNgOt4ER0uikwRzU0CKRDg/XBlfxEQ= Received: by 10.100.153.17 with SMTP id a17mr4916039ane.1188927029528; Tue, 04 Sep 2007 10:30:29 -0700 (PDT) Received: from ?10.0.0.14? ( [74.95.66.25]) by mx.google.com with ESMTPS id z80sm7104312pyg.2007.09.04.10.30.26 (version=SSLv3 cipher=OTHER); Tue, 04 Sep 2007 10:30:27 -0700 (PDT) In-Reply-To: <98908394@srv.sem.ipt.ru> References: <98908394@srv.sem.ipt.ru> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric Crist Date: Tue, 4 Sep 2007 12:30:24 -0500 To: Boris Samorodov X-Mailer: Apple Mail (2.752.3) Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 17:30:30 -0000 On Sep 4, 2007, at 11:38 AMSep 4, 2007, Boris Samorodov wrote: > As for linuxulator. The default sysctl will be > "compat.linux.osrelease: 2.4.2" and the port will be linux_base-fc4: > http://lists.freebsd.org/pipermail/freebsd-emulation/2007-August/ > 003914.html I'm sure I'm wrong, but I could have sworn I read something today about linuxolator being 2.6.16 kernel with Fedora Core 6? ----- Eric F Crist Secure Computing Networks From owner-freebsd-hackers@FreeBSD.ORG Tue Sep 4 18:15:43 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 820C216A419; Tue, 4 Sep 2007 18:15:43 +0000 (UTC) (envelope-from matt@ixsystems.com) Received: from mail.iXsystems.com (newknight.ixsystems.net [206.40.55.70]) by mx1.freebsd.org (Postfix) with ESMTP id 61FA913C428; Tue, 4 Sep 2007 18:15:43 +0000 (UTC) (envelope-from matt@ixsystems.com) Received: from localhost (localhost [127.0.0.1]) by mail.iXsystems.com (Postfix) with ESMTP id A17E4BE63; Tue, 4 Sep 2007 10:48:59 -0700 (PDT) Received: from mail.iXsystems.com ([127.0.0.1]) by localhost (mail.ixsystems.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12079-04; Tue, 4 Sep 2007 10:48:42 -0700 (PDT) Received: from client-173.nat.ixsystems.net (unknown [192.168.1.173]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.iXsystems.com (Postfix) with ESMTP id 80C6DBE22; Tue, 4 Sep 2007 10:48:42 -0700 (PDT) From: Matt Olander Organization: iXsystems To: freebsd-hackers@freebsd.org Date: Tue, 4 Sep 2007 10:48:41 -0700 User-Agent: KMail/1.9.5 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200709041048.41892.matt@ixsystems.com> X-Virus-Scanned: Maia Mailguard Cc: Jeremy Messenger , freebsd-current@freebsd.org, Ivan Voras Subject: Re: VirtualBox? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Sep 2007 18:15:43 -0000 On Tuesday 04 September 2007 8:27 am, Jeremy Messenger wrote: > On Tue, 04 Sep 2007 08:33:50 -0500, Ivan Voras wrote: > > Hi, > > > > Is anyone working on porting VirtualBox? > > > > http://www.virtualbox.org/wiki/Porting_VirtualBox > > > > It mentions FreeBSD but nothing conclusive. It should be easier than > > VMWare :) > > http://www.virtualbox.org/wiki/VBox_vs_Others (see in host box) > http://www.virtualbox.org/wiki/FreeBSD%20build%20instructions > http://www.virtualbox.org/search?q=3Dfreebsd&wiki=3Don&changeset=3Don&tic= ket=3Don > > It looks like they are working on it. I spoke with a couple of their devs on Freenode and while they are willing = to=20 assist contributors porting to FreeBSD, they are not actively working on it= =20 themselves. Their response to my inquiry was "check out source and start=20 porting!" A few of their devs hang out in #vbox-dev on Freenode. This would be an=20 excellent port for FreeBSD. best, =2Dmatt =2D-=20 Matt Olander CTO, iXsystems - "Servers for Open Source" =A0http://www.iXsystems.com Public Relations, The FreeBSD Project =A0 =A0 =A0 =A0 http://www.FreeBSD.org BSD on the Desktop! =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= http://www.pcbsd.org Phone: (408)943-4100 ext. 113 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Fax: = (408)943-4101 From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 5 06:51:40 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 85BCB16A420 for ; Wed, 5 Sep 2007 06:51:40 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.176]) by mx1.freebsd.org (Postfix) with ESMTP id 422C013C4B6 for ; Wed, 5 Sep 2007 06:51:40 +0000 (UTC) (envelope-from jrisom@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so5954087pyb for ; Tue, 04 Sep 2007 23:51:39 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; b=Eglb36DI6vBSqlf/bF/fdCf4Nq1rANR2yKY1lfl/EKz6ua6ACoIKjHznVN9ka0FTALx1LmYMstXr46wnANl12WNV9UxLA6w20ww8+mDt6J5WHMsnQPhp4Y72qdwtzISDXSuUeVUKA0CI3MI7AWHISqFBXHPlXO85va3EkaQBBPM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:in-reply-to:references:mime-version:content-type:message-id:content-transfer-encoding:cc:from:subject:date:to:x-mailer; b=lmZurA2D5jYKa/fbRnjwT5nBo5NIo7Fp2g7B5ziCiyLfLbKexMyoC29pVuz6qF53h/qD+E9J7n1K58S92HujTOvp2edkL5aiXiYPYhcEMF/LmaFtoK1rhSG8yXD7QLkACcZD/Sevc+cNDBpoS175kJu/gzAuSDJDXwkkQFVPeao= Received: by 10.35.87.8 with SMTP id p8mr8370729pyl.1188975096688; Tue, 04 Sep 2007 23:51:36 -0700 (PDT) Received: from ?192.168.1.3? ( [74.134.230.123]) by mx.google.com with ESMTPS id f55sm8297674pyh.2007.09.04.23.51.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Sep 2007 23:51:33 -0700 (PDT) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Joshua Isom Date: Wed, 5 Sep 2007 01:53:42 -0500 To: Ivan Voras X-Mailer: Apple Mail (2.624) Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 06:51:40 -0000 I think some mention of ATAPI SATA drives should be mentioned. I have an SATA DVD-RW drive that needs a 7.0 kernel to be recognized, and given some comments on the list, the problem seems to be have been support for ATAPI SATA drives on FreeBSD 6.x(it's not in -STABLE). The chipset on the motherboard is "supported" under 6.x and it's a generic DVD-RW drive, but combined it's not supported without -CURRENT. I think is related but I haven't tested the code(I'm currently on 6-STABLE and about to upgrade to 7-CURRENT kernel and 6-STABLE userland). On Sep 4, 2007, at 5:31 AM, Ivan Voras wrote: > Hi, > > As some of you may know, I'm maintaining a web page which aims to > enumerate and describe major new features for FreeBSD 7, located at > http://ivoras.sharanet.org/freebsd/freebsd7.html . > > Since 7.0 should be released "soon", I'd like to update the page with > the current status of the projects. In particular, I'd like to mark > projects that won't be ready for 7.0. To do so, I need input from the > projects' authors and maintainers. So if you are listed on the page > and your project status is updated and no longer matches what's > written on the page, please respond to this thread. Also, if a feature > won't be ready for 7.0 but will be sometime during 7.x, please state > so. > > Of course, additions, corrections, etc. are also welcome. > > Thanks :) > > > From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 5 09:07:52 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BEC1716A417; Wed, 5 Sep 2007 09:07:52 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [81.2.252.59]) by mx1.freebsd.org (Postfix) with ESMTP id 7758C13C474; Wed, 5 Sep 2007 09:07:52 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id 12AC6A49B68; Wed, 5 Sep 2007 10:49:36 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id zD2UxfwlX6KR; Wed, 5 Sep 2007 10:49:23 +0200 (CEST) Received: from [192.168.2.186] (catv-5063f539.catv.broadband.hu [80.99.245.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id 87B6AA49B3B; Wed, 5 Sep 2007 10:49:23 +0200 (CEST) Message-ID: <46DE6D82.7000904@FreeBSD.org> Date: Wed, 05 Sep 2007 10:49:06 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Ivan Voras References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Craig Rodrigues , freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 09:07:52 -0000 Ivan Voras escribió: > > Since 7.0 should be released "soon", I'd like to update the page with > the current status of the projects. In particular, I'd like to mark > projects that won't be ready for 7.0. To do so, I need input from the > projects' authors and maintainers. So if you are listed on the page > and your project status is updated and no longer matches what's > written on the page, please respond to this thread. Also, if a feature > won't be ready for 7.0 but will be sometime during 7.x, please state so. Read-only XFS support? Afaik it is only in -current. -- Gabor Kovesdan FreeBSD Volunteer EMAIL: gabor@FreeBSD.org .:|:. gabor@kovesdan.org WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 5 09:45:33 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2357716A419 for ; Wed, 5 Sep 2007 09:45:33 +0000 (UTC) (envelope-from zyf.zeroos@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id DC81F13C442 for ; Wed, 5 Sep 2007 09:45:32 +0000 (UTC) (envelope-from zyf.zeroos@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so2588882waf for ; Wed, 05 Sep 2007 02:45:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=CaisN8J9tjEOwGN1Vost7GacvN+uhl1jzVdBeB0rzHwHZkfU0KQi6JVlygyOe1zHvvgJ6FzwEjhLesH7cXIJd6QXjDBE4amzfeIJYiH1kqZndSvPWwlZzl2p8gA4cAHBYJQ3obi7YhvMY5Kj8qvWxi78+R1706fgYrs4y2Y7FGo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=fWoTyJyUSOgxaH+HZTady/1DDlM3oXIb4nRxpKrkteSjCSAM8PCj3+YO20wLDxsZrRKPVFGFdq4+wnQfCtDE9s5vtlek9PdvoElootjvnK5n/GcI90yiQAYVcV0khjIS7ZB8TxtRYG6COUIh/mHj03lciAmMcHIhQA+ITWDpZuE= Received: by 10.114.80.4 with SMTP id d4mr184353wab.1188983863804; Wed, 05 Sep 2007 02:17:43 -0700 (PDT) Received: by 10.114.61.11 with HTTP; Wed, 5 Sep 2007 02:17:43 -0700 (PDT) Message-ID: <4df04b840709050217j5d90edcas4d74f5eacccde57a@mail.gmail.com> Date: Wed, 5 Sep 2007 17:17:43 +0800 From: "yunfeng zhang" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: VM swap subsystem improvement on FreeBSD core code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 09:45:33 -0000 Dear core developers: I'm glad to show the ideas I got to you all in http://www.ussg.iu.edu/hypermail/linux/kernel/0708.2/2563.html -- the patch I done for Linux core. I think the key ideas in it is also enhancing FreeBSD vm system. The article includes three main ideas. 1) dftlb. 2) PrivatePage should be privatelized totally. 3) Swap nail arithmetic. Here is a brief description about the 1st idea. dftlb is designed for enhancing the performance of unmapping physical pages from their page tables on SMP. It can flush TLBs batchly without EVEN pausing other CPUs. The job is done by collecting all unmapping tasks mainly done by pageout deamon for page-reclamation purpose into a static core object struct { int start_addr; int end_addr; } dftlb_tasks[32]; when the object is full, send IPI to other CPUs to flush it by flush_tlb_range then continue to fill it. Contrast to current FreeBSD unmapping process, the efficience is at least 100+ times. dftlb is based on the conditions listed below 1) atomic cmpxchg instruction. 2) atomically set the access bit after CPU touches a pte firstly. Fortunately, the method can be implemented without shaking the infrastructure of FreeBSD vm at all. The idea can be done by a new core daemon -- kppsd in my patch totally. By the way, read the document I done at the head of the patch firstly by vim7.0. From owner-freebsd-hackers@FreeBSD.ORG Wed Sep 5 14:09:09 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 013DD16A421; Wed, 5 Sep 2007 14:09:09 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by mx1.freebsd.org (Postfix) with ESMTP id B91B813C457; Wed, 5 Sep 2007 14:09:08 +0000 (UTC) (envelope-from gallatin@cs.duke.edu) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.14.0/8.14.0) with ESMTP id l85E8rTj005859 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 5 Sep 2007 10:08:53 -0400 (EDT) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.12.9p2/8.12.9/Submit) id l85E8Pdf067908; Wed, 5 Sep 2007 10:08:25 -0400 (EDT) (envelope-from gallatin) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18142.47216.305394.719129@grasshopper.cs.duke.edu> Date: Wed, 5 Sep 2007 10:08:25 -0400 (EDT) To: Ivan Voras In-Reply-To: References: X-Mailer: VM 6.75 under 21.1 (patch 12) "Channel Islands" XEmacs Lucid Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Sep 2007 14:09:09 -0000 The TSO/LRO section needs a little updating. According to find sys/dev | xargs grep -l IFCAP_TSO, TSO is present in at least: bce, cxgb, em, ixgbe, msk, mxge, nfe, nxge, re Based on grepping for IFCAP_LRO, LRO is currently available only in mxge. Note that the LRO in mxge is currently a driver specific hack (I wrote it, so I can say it :), intended to tide us over until Andre finishes his more extensive LRO infastructure. Further, LRO is currently done in software. Jack Vogel was looking at porting the mxge LRO into something that could be used by several 10GbE drivers; I'm not sure what happened to that. Drew From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 6 18:01:17 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3A6216A41A for ; Thu, 6 Sep 2007 18:01:17 +0000 (UTC) (envelope-from kirc.gover@yahoo.com.au) Received: from n8a.bullet.mail.re3.yahoo.com (n8a.bullet.mail.re3.yahoo.com [68.142.236.46]) by mx1.freebsd.org (Postfix) with SMTP id 7605913C46E for ; Thu, 6 Sep 2007 18:01:17 +0000 (UTC) (envelope-from kirc.gover@yahoo.com.au) Received: from [68.142.237.88] by n8.bullet.re3.yahoo.com with NNFMP; 06 Sep 2007 17:48:17 -0000 Received: from [66.196.101.131] by t4.bullet.re3.yahoo.com with NNFMP; 06 Sep 2007 17:48:16 -0000 Received: from [127.0.0.1] by rrr2.mail.re1.yahoo.com with NNFMP; 06 Sep 2007 17:48:15 -0000 X-Yahoo-Newman-Property: ymail-5 X-Yahoo-Newman-Id: 852370.86584.bm@rrr2.mail.re1.yahoo.com Received: (qmail 34830 invoked by uid 60001); 6 Sep 2007 17:05:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.au; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=m+0fSFWt32qIKkTtONwnGxleK+Rxeq+kPuaiwa/2WIv5wNEorvlOXXun83BCCAshK0nNX38O3t1kmMuZAjxUQZPCzkmN6ezWVgeW1YlZA5Vzdiun7dygO1ilFeTo22HyWokVhTjhNacyV4bNO0CJ1PYuSFcXENBm9DSLJ0M8VNg=; X-YMail-OSG: G7_8dAMVM1lxQz82T8me42NFQOQJc6U2cd1cyGLQojLHZ1IB.mXgnu2KwyiX_oz0D3s4Pm.Pc_lYqiCnqupE6uPwIg-- Received: from [125.60.235.213] by web44804.mail.sp1.yahoo.com via HTTP; Fri, 07 Sep 2007 03:05:55 EST Date: Fri, 7 Sep 2007 03:05:55 +1000 (EST) From: Kirc Gover To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-ID: <167927.32637.qm@web44804.mail.sp1.yahoo.com> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: OS choice X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2007 18:01:17 -0000 We are in the stage of planning and research for a commercial development of an edge router that will be based mostly on OpenSource software. I would like to solicit for information and recommendation if FreeBSD is a suitable OS. The router is expected to withstand forwarding of sustained traffic from 10Mbps to 1Gbps and maybe more than that. Are there any known limitations of FreeBSD in terms of architecture and performance? Can I just take out a FreeBSD as is and put it with the hardware without any specific or major refinements in its code? I'm very much concerned with its capability in forwarding heavy sustained traffic. Packet loss should be at minimum and critical userland processes should working normally even under heavy load. Are there any known specific limitations of FreeBSD? I have browsed through the archives and found a lot of hangups, deadlocks and freeze issues. What is the usual or minimum hardware requirement? Is soekris box enough, or dual core or ASIC based platforms? I'm aware that there are so many FreeBSD based routers and network based devices in the market. Is this a way to go over realtime and embedded OS such as VxWorks and others (mostly commercial) without putting the licensing cost in picture? I really appreciate any help, suggestions and recommendations. More power to FreeBSD! Thanks Kirc --------------------------------- Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. Get it now. From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 6 18:57:11 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 664EE16A417; Thu, 6 Sep 2007 18:57:11 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from a.mail.sonic.net (a.mail.sonic.net [64.142.16.245]) by mx1.freebsd.org (Postfix) with ESMTP id 4F59113C458; Thu, 6 Sep 2007 18:57:11 +0000 (UTC) (envelope-from bmah@freebsd.org) Received: from dhcp-2-119.packetdesign.com (hornet.kitchenlab.org [64.142.31.105]) (authenticated bits=0) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l86Iuup3004415 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Sep 2007 11:56:56 -0700 Message-ID: <46E04D6D.9090501@freebsd.org> Date: Thu, 06 Sep 2007 11:56:45 -0700 From: "Bruce A. Mah" User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Ivan Voras References: <18142.47216.305394.719129@grasshopper.cs.duke.edu> In-Reply-To: X-Enigmail-Version: 0.95.3 OpenPGP: id=5ba052c3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig70EA247CB341381AE61A907E" Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2007 18:57:11 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig70EA247CB341381AE61A907E Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable If memory serves me right, Ivan Voras wrote: > Andrew Gallatin wrote: >> The TSO/LRO section needs a little updating. >> >> According to find sys/dev | xargs grep -l IFCAP_TSO, TSO is present in= >> at least: bce, cxgb, em, ixgbe, msk, mxge, nfe, nxge, re >> >> Based on grepping for IFCAP_LRO, LRO is currently available only in mx= ge. >=20 > Ok, I've updated this information, and most of the others given in this= =20 > thread. >=20 > Does anyone know what's going on with features like sun4v architecture = > and superpages? (Replying to a random message in this thread.) As you work on this, consider submitting changes to the release notes in case those of us who work on them have forgotten something. The audience and purpose of the release notes is a little different from your Web page, but some appropriate of overlap is a Good Thing (TM). Thanks! Bruce. --------------enig70EA247CB341381AE61A907E Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG4E1t2MoxcVugUsMRAjttAKDazpTAVsdbqEES5kvM0JcTO4Ve2gCgycsW JUvxwNAZF/CTYaoqxZQ3ZFA= =SGcA -----END PGP SIGNATURE----- --------------enig70EA247CB341381AE61A907E-- From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 6 21:04:32 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFFF616A418 for ; Thu, 6 Sep 2007 21:04:32 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: from mail.ud03.udmedia.de (ud03.udmedia.de [194.117.254.43]) by mx1.freebsd.org (Postfix) with ESMTP id 7180A13C459 for ; Thu, 6 Sep 2007 21:04:32 +0000 (UTC) (envelope-from mah@jump-ing.de) Received: (qmail 10388 invoked from network); 6 Sep 2007 22:37:52 +0200 Received: from unknown (HELO ?10.0.0.50?) (ud03?291p1@91.89.216.59) by mail.ud03.udmedia.de with ESMTPA; 6 Sep 2007 22:37:52 +0200 In-Reply-To: <167927.32637.qm@web44804.mail.sp1.yahoo.com> References: <167927.32637.qm@web44804.mail.sp1.yahoo.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Markus Hitter Date: Thu, 6 Sep 2007 22:37:49 +0200 To: Kirc Gover X-Mailer: Apple Mail (2.752.2) Cc: freebsd-hackers@freebsd.org Subject: Re: OS choice X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Sep 2007 21:04:32 -0000 Am 06.09.2007 um 19:05 schrieb Kirc Gover: > Can I just take out a FreeBSD as is and put it with the hardware > without any specific or major refinements in its code? In /usr/src/tools/tools/tinybsd you'll find a convenient script to build one-readonly-partition embedded systems. Another piece of work worth looking for is M0n0wall (http://m0n0.ch/wall/) Markus - - - - - - - - - - - - - - - - - - - Dipl. Ing. Markus Hitter http://www.jump-ing.de/ From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 7 02:35:01 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 329C216A417 for ; Fri, 7 Sep 2007 02:35:01 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: from smtpgate1.pacific.net.sg (smtpgate1.pacific.net.sg [203.120.90.31]) by mx1.freebsd.org (Postfix) with SMTP id 7D93613C467 for ; Fri, 7 Sep 2007 02:35:00 +0000 (UTC) (envelope-from oceanare@pacific.net.sg) Received: (qmail 13587 invoked from network); 7 Sep 2007 02:34:58 -0000 Received: from bb121-7-106-120.singnet.com.sg (HELO P2120.somewherefaraway.com) (oceanare@121.7.106.120) by smtpgate1.pacific.net.sg with ESMTPA; 7 Sep 2007 02:34:54 -0000 Message-ID: <46E0B8B4.3090303@pacific.net.sg> Date: Fri, 07 Sep 2007 10:34:28 +0800 From: Erich Dollansky User-Agent: Thunderbird 2.0.0.6 (X11/20070826) MIME-Version: 1.0 To: Kirc Gover References: <167927.32637.qm@web44804.mail.sp1.yahoo.com> In-Reply-To: <167927.32637.qm@web44804.mail.sp1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: OS choice X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2007 02:35:01 -0000 Hi, FreeBSD should not have anz limits zou will ever reach if zou provide the right hardware. You should also consider the licence. FreeBSD doesn't force you to publish any of your own work. Erich Kirc Gover wrote: > We are in the stage of planning and research for a commercial development of an edge router that will be based mostly on OpenSource software. I would like to solicit for information and recommendation if FreeBSD is a suitable OS. The router is expected to withstand forwarding of sustained traffic from 10Mbps to 1Gbps and maybe more than that. Are there any known limitations of FreeBSD in terms of architecture and performance? Can I just take out a FreeBSD as is and put it with the hardware without any specific or major refinements in its code? I'm very much concerned with its capability in forwarding heavy sustained traffic. Packet loss should be at minimum and critical userland processes should working normally even under heavy load. Are there any known specific limitations of FreeBSD? I have browsed through the archives and found a lot of hangups, deadlocks and freeze issues. What is the usual or minimum hardware requirement? Is soekris box enough, or dual core or ASIC > based platforms? I'm aware that there are so many FreeBSD based routers and network based devices in the market. Is this a way to go over realtime and embedded OS such as VxWorks and others (mostly commercial) without putting the licensing cost in picture? I really appreciate any help, suggestions and recommendations. More power to FreeBSD! > > Thanks > Kirc > > > --------------------------------- > Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. Get it now. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 7 13:04:23 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 620D216A419 for ; Fri, 7 Sep 2007 13:04:23 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 2B5DD13C465 for ; Fri, 7 Sep 2007 13:04:23 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id DF6C0209B; Fri, 7 Sep 2007 15:04:18 +0200 (CEST) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id D1B862095; Fri, 7 Sep 2007 15:04:18 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id B5F4384462; Fri, 7 Sep 2007 15:04:18 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Kirc Gover References: <167927.32637.qm@web44804.mail.sp1.yahoo.com> Date: Fri, 07 Sep 2007 15:04:18 +0200 In-Reply-To: <167927.32637.qm@web44804.mail.sp1.yahoo.com> (Kirc Gover's message of "Fri\, 7 Sep 2007 03\:05\:55 +1000 \(EST\)") Message-ID: <86tzq662zx.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: OS choice X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2007 13:04:23 -0000 Kirc Gover writes: > We are in the stage of planning and research for a commercial > development of an edge router that will be based mostly on OpenSource > software. I would like to solicit for information and recommendation > if FreeBSD is a suitable OS. Yes. > What is the usual or minimum hardware requirement? Is soekris box > enough, or dual core or ASIC based platforms? A soekris box probably doesn't have the I/O bandwidth nor the CPU power to process a full BGP feed. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 7 22:41:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 742DB16A419 for ; Fri, 7 Sep 2007 22:41:13 +0000 (UTC) (envelope-from votdev@gmx.de) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id BC36613C46E for ; Fri, 7 Sep 2007 22:41:12 +0000 (UTC) (envelope-from votdev@gmx.de) Received: (qmail 6850 invoked by uid 0); 7 Sep 2007 22:07:21 -0000 Received: from 79.210.109.131 by www120.gmx.net with HTTP; Sat, 08 Sep 2007 00:07:21 +0200 (CEST) Content-Type: text/plain; charset="us-ascii" Date: Sat, 08 Sep 2007 00:07:21 +0200 From: votdev@gmx.de Message-ID: <20070907220721.321830@gmx.net> MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Authenticated: #1412882 X-Flags: 0001 X-Mailer: WWW-Mail 6100 (Global Message Exchange) X-Priority: 3 X-Provags-ID: V01U2FsdGVkX1/iEy84DHfifz92vDBMEM8EFxCY1Z7P3sRPb8qaK/ yjjy1MHMZbgGgwu6K7j/k+V1tQxj9PRhAQrw== Content-Transfer-Encoding: 7bit X-GMX-UID: 9r6IdfozeWUkT2DpfG9n+lAjL0tsZk3X Subject: How to use GRUB on LiveCD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Sep 2007 22:41:13 -0000 Hi all, i want to use GRUB as bootloader for a LiveCD. I was able to install and run the LiveCD using GRUB, but the 'loader' app does not find the kernel because CDRom is not recognized, instead 'loader' lists floppy as disk0. Is it possible to force 'loader' via parameters in the menu.lst file to use CDRom to load kernel? Currently it looks like this: default=0 timeout=5 color yellow/blue white/black title FreeNAS root (cd) kernel /boot/loader The ISO is created using the following cmd: mkisofs -b "boot/grub/stage2_eltorito" -no-emul-boot -boot-load-size 4 -boot-info-table -c "boot/boot.catalog" -d -r ... Here are some post that has the same problem (nearly 2 years old) but with no solution: http://lists.freebsd.org/pipermail/freebsd-hackers/2005-December/014746.html http://lists.freebsd.org/pipermail/freebsd-hackers/2005-December/014891.html Does anyone has a tipp? Regards Volker -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 8 16:54:13 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F86B16A418 for ; Sat, 8 Sep 2007 16:54:13 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-11.arcor-online.net (mail-in-11.arcor-online.net [151.189.21.51]) by mx1.freebsd.org (Postfix) with ESMTP id D353C13C458 for ; Sat, 8 Sep 2007 16:54:12 +0000 (UTC) (envelope-from mailnull@mips.inka.de) Received: from mail-in-13-z2.arcor-online.net (mail-in-13-z2.arcor-online.net [151.189.8.30]) by mail-in-11.arcor-online.net (Postfix) with ESMTP id ECBF013462 for ; Sat, 8 Sep 2007 16:14:27 +0200 (CEST) Received: from mail-in-05.arcor-online.net (mail-in-05.arcor-online.net [151.189.21.45]) by mail-in-13-z2.arcor-online.net (Postfix) with ESMTP id D504A1B8E42 for ; Sat, 8 Sep 2007 16:14:27 +0200 (CEST) Received: from kemoauc.mips.inka.de (dslb-088-064-181-248.pools.arcor-ip.net [88.64.181.248]) by mail-in-05.arcor-online.net (Postfix) with ESMTP id A96E41C3326 for ; Sat, 8 Sep 2007 16:14:27 +0200 (CEST) Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.13.8/8.13.8) with ESMTP id l88EERVc025929 for ; Sat, 8 Sep 2007 16:14:27 +0200 (CEST) (envelope-from mailnull@kemoauc.mips.inka.de) Received: (from mailnull@localhost) by kemoauc.mips.inka.de (8.13.8/8.13.8/Submit) id l88EEQAn025928 for freebsd-hackers@freebsd.org; Sat, 8 Sep 2007 16:14:26 +0200 (CEST) (envelope-from mailnull) From: naddy@mips.inka.de (Christian Weisgerber) Date: Sat, 8 Sep 2007 14:14:26 +0000 (UTC) Message-ID: References: <167927.32637.qm@web44804.mail.sp1.yahoo.com> <86tzq662zx.fsf@ds4.des.no> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Originator: naddy@mips.inka.de (Christian Weisgerber) To: freebsd-hackers@freebsd.org X-Virus-Scanned: ClamAV 0.91.2/4195/Sat Sep 8 15:18:34 2007 on mail-in-05.arcor-online.net X-Virus-Status: Clean Subject: Re: OS choice X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2007 16:54:13 -0000 Dag-Erling Smørgrav wrote: > > What is the usual or minimum hardware requirement? Is soekris box > > enough, or dual core or ASIC based platforms? > > A soekris box probably doesn't have the I/O bandwidth nor the CPU power > to process a full BGP feed. "Henning and [Bob] holding up a running soekris, the significance of this is that this little box with 128 MB of ram and a 266 Mhz Geode CPU has a full BGP Feed and routing table happily running on it" http://bofh.cns.ualberta.ca/beck/pictures/pf2k4/img_1001.jpg -- Christian "naddy" Weisgerber naddy@mips.inka.de From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 8 20:20:57 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4DD7516A417 for ; Sat, 8 Sep 2007 20:20:57 +0000 (UTC) (envelope-from imrouter@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id 892F813C45B for ; Sat, 8 Sep 2007 20:20:56 +0000 (UTC) (envelope-from imrouter@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so990625mue for ; Sat, 08 Sep 2007 13:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=VNBxsZkTxJyQMD/p7VX8xctxC2dEfzSFz5U0XLKK6ac=; b=CCSO1HDWurPes0pIrxHpRf32LPwxm0mGXhrg6IzTIROo/sdZh0KesTUy3SuBgdxpuyMF8Ko0mp571MgmmgjT86bmZ7sLf4UzFUJ/uvXgoxbG4xV0ymiU1GTdqEpjT1/RbyvHfCcnVuTBr3F14jU9bg/GSDLVRjve83NNDo0mCn8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=Ia4PbKXB4mt2xItiZ4OnSlqI+Ss+xuF23NP/Zzf/4tZUAAIk91xFRC2kWTPyGMk1viTJ/g0FHnSqPEb7PtQEW+EdkQGre9kcZHvvvaIn+8sf4Dja4Lx5MqFP8uSjXzN5a92UzyTUwjqYp80S/ItYNwjis/SlGFeonA7oU08O4bs= Received: by 10.86.1.1 with SMTP id 1mr2439218fga.1189281313047; Sat, 08 Sep 2007 12:55:13 -0700 (PDT) Received: from ?203.148.76.102? ( [203.148.76.102]) by mx.google.com with ESMTPS id k29sm4314920fkk.2007.09.08.12.55.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 08 Sep 2007 12:55:12 -0700 (PDT) Message-ID: <46E2FDF6.3060402@gmail.com> Date: Sun, 09 Sep 2007 00:54:30 +0500 From: "Mr.Router" User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20070907120008.65F4616A50F@hub.freebsd.org> In-Reply-To: <20070907120008.65F4616A50F@hub.freebsd.org> X-Enigmail-Version: 0.95.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kirc.gover@yahoo.com.au Subject: Re: freebsd-hackers Digest, Vol 232, Issue 5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2007 20:20:57 -0000 FreeBSD-hackers-request@freebsd.org wrote: > Send freebsd-hackers mailing list submissions to > freebsd-hackers@freebsd.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > or, via email, send a message with subject or body 'help' to > freebsd-hackers-request@freebsd.org > > You can reach the person managing the list at > freebsd-hackers-owner@freebsd.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of freebsd-hackers digest..." > > > Today's Topics: > > 1. OS choice (Kirc Gover) > 2. Re: Progress for 7.0 - the "what's cooking" page (Bruce A. Mah) > 3. Re: OS choice (Markus Hitter) > 4. Re: OS choice (Erich Dollansky) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Fri, 7 Sep 2007 03:05:55 +1000 (EST) > From: Kirc Gover > Subject: OS choice > To: freebsd-hackers@freebsd.org > Message-ID: <167927.32637.qm@web44804.mail.sp1.yahoo.com> > Content-Type: text/plain; charset=iso-8859-1 > > We are in the stage of planning and research for a commercial development of an edge router that will be based mostly on OpenSource software. I would like to solicit for information and recommendation if FreeBSD is a suitable OS. The router is expected to withstand forwarding of sustained traffic from 10Mbps to 1Gbps and maybe more than that. Are there any known limitations of FreeBSD in terms of architecture and performance? Can I just take out a FreeBSD as is and put it with the hardware without any specific or major refinements in its code? I'm very much concerned with its capability in forwarding heavy sustained traffic. Packet loss should be at minimum and critical userland processes should working normally even under heavy load. Are there any known specific limitations of FreeBSD? I have browsed through the archives and found a lot of hangups, deadlocks and freeze issues. What is the usual or minimum hardware requirement? Is soekris box enough, or dual core or ASIC > based platforms? I'm aware that there are so many FreeBSD based routers and network based devices in the market. Is this a way to go over realtime and embedded OS such as VxWorks and others (mostly commercial) without putting the licensing cost in picture? I really appreciate any help, suggestions and recommendations. More power to FreeBSD! > > Thanks > Kirc > > > --------------------------------- > Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. Get it now. > > > ------------------------------ > > Message: 2 > Date: Thu, 06 Sep 2007 11:56:45 -0700 > From: "Bruce A. Mah" > Subject: Re: Progress for 7.0 - the "what's cooking" page > To: Ivan Voras > Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org > Message-ID: <46E04D6D.9090501@freebsd.org> > Content-Type: text/plain; charset="utf-8" > > If memory serves me right, Ivan Voras wrote: >> Andrew Gallatin wrote: >>> The TSO/LRO section needs a little updating. >>> >>> According to find sys/dev | xargs grep -l IFCAP_TSO, TSO is present in >>> at least: bce, cxgb, em, ixgbe, msk, mxge, nfe, nxge, re >>> >>> Based on grepping for IFCAP_LRO, LRO is currently available only in mxge. >> Ok, I've updated this information, and most of the others given in this >> thread. >> >> Does anyone know what's going on with features like sun4v architecture >> and superpages? > > (Replying to a random message in this thread.) > > As you work on this, consider submitting changes to the release notes in > case those of us who work on them have forgotten something. The > audience and purpose of the release notes is a little different from > your Web page, but some appropriate of overlap is a Good Thing (TM). > > Thanks! > > Bruce. > > > -------------- next part -------------- > A non-text attachment was scrubbed... > Name: signature.asc > Type: application/pgp-signature > Size: 249 bytes > Desc: OpenPGP digital signature > Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20070906/27bdf224/signature-0001.pgp > > ------------------------------ > > Message: 3 > Date: Thu, 6 Sep 2007 22:37:49 +0200 > From: Markus Hitter > Subject: Re: OS choice > To: Kirc Gover > Cc: freebsd-hackers@freebsd.org > Message-ID: > Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed > > > Am 06.09.2007 um 19:05 schrieb Kirc Gover: > >> Can I just take out a FreeBSD as is and put it with the hardware >> without any specific or major refinements in its code? > > In /usr/src/tools/tools/tinybsd you'll find a convenient script to > build one-readonly-partition embedded systems. Another piece of work > worth looking for is M0n0wall (http://m0n0.ch/wall/) > > > Markus > > - - - - - - - - - - - - - - - - - - - > Dipl. Ing. Markus Hitter > http://www.jump-ing.de/ > > > > > > > ------------------------------ > > Message: 4 > Date: Fri, 07 Sep 2007 10:34:28 +0800 > From: Erich Dollansky > Subject: Re: OS choice > To: Kirc Gover > Cc: freebsd-hackers@freebsd.org > Message-ID: <46E0B8B4.3090303@pacific.net.sg> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi, > > FreeBSD should not have anz limits zou will ever reach if zou provide > the right hardware. > > You should also consider the licence. > > FreeBSD doesn't force you to publish any of your own work. > > Erich > > Kirc Gover wrote: >> We are in the stage of planning and research for a commercial development of an edge router that will be based mostly on OpenSource software. I would like to solicit for information and recommendation if FreeBSD is a suitable OS. The router is expected to withstand forwarding of sustained traffic from 10Mbps to 1Gbps and maybe more than that. Are there any known limitations of FreeBSD in terms of architecture and performance? Can I just take out a FreeBSD as is and put it with the hardware without any specific or major refinements in its code? I'm very much concerned with its capability in forwarding heavy sustained traffic. Packet loss should be at minimum and critical userland processes should working normally even under heavy load. Are there any known specific limitations of FreeBSD? I have browsed through the archives and found a lot of hangups, deadlocks and freeze issues. What is the usual or minimum hardware requirement? Is soekris box enough, or dual core or ASI C >> based platforms? I'm aware that there are so many FreeBSD based routers and network based devices in the market. Is this a way to go over realtime and embedded OS such as VxWorks and others (mostly commercial) without putting the licensing cost in picture? I really appreciate any help, suggestions and recommendations. More power to FreeBSD! >> >> Thanks >> Kirc >> >> >> --------------------------------- >> Sick of deleting your inbox? Yahoo!7 Mail has free unlimited storage. Get it now. Kric, FreeBSD is most powerful free OS on the planet , as per your requirements the two variants of of FreeBSD are very perfect m0n0wall and pfsence, i personally admire pfsense it works well on my case for routing almost 100MB traffic of my network & i have tested it ob Gigabyte LAN too, though its web interface have few problems but it can be modified easily to make a perfect router / firewall / gateway .both m0n0wall and pfsense works fine with sokeris , but it is obvious depending on your that it can bear load or not , sokeris running Asterisk on Linux works very well fro routing almost 100 IP phones of my office very well. Regards Mr.Router From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 8 21:48:00 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 65CC516A41B for ; Sat, 8 Sep 2007 21:48:00 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.191]) by mx1.freebsd.org (Postfix) with ESMTP id DB97113C457 for ; Sat, 8 Sep 2007 21:47:59 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by mu-out-0910.google.com with SMTP id w9so1011477mue for ; Sat, 08 Sep 2007 14:47:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=l0yfcCvBkY62kaWqKXyDj5EBqY8cRiZn+vtJDPyY4vU=; b=p/WUGJH9iUFkBFPe4mJ0lReXioL2khXo0MUftof5vTOnorR+ddFME6uPMrgH5B5SVEv2qxdfXBVEx6GL+koW2L605D0VpM2DuC9H7AuKAl0aHPSEwF0cVfJBrDejbh+M7cHyZUht5OQTkdxHO/7xuXLFhMUN4U27Q+uc7dg1NXQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=idt5LkMIZGU8qhUKISRvuMOGpyuZWZWvXGV1NPFWANydaXhepHOz05IahEybZUQqQrSM4SrR4jH5YezrHfQIkEJ3e2dtHEIC3rIas05DyBjuCJdbiUXl4sMbJoSoLeN8Ks3bD8MHqlYn3LYPZyTMV/9bbF78RAM4o8lLrtoCFhY= Received: by 10.86.23.17 with SMTP id 17mr2458906fgw.1189286618740; Sat, 08 Sep 2007 14:23:38 -0700 (PDT) Received: by 10.86.2.1 with HTTP; Sat, 8 Sep 2007 14:23:38 -0700 (PDT) Message-ID: <499c70c0709081423m584a052en32e479c9bc248da2@mail.gmail.com> Date: Sun, 9 Sep 2007 00:23:38 +0300 From: "Abdullah Ibn Hamad Al-Marri" To: "Ivan Voras" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Subject: Re: Progress for 7.0 - the "what's cooking" page X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Sep 2007 21:48:00 -0000 On 9/4/07, Ivan Voras wrote: > Hi, > > As some of you may know, I'm maintaining a web page which aims to > enumerate and describe major new features for FreeBSD 7, located at > http://ivoras.sharanet.org/freebsd/freebsd7.html . Hello, I just need to know if this is still the state for SCHED_ULE or not in the your page. "ULE will not be enabled by default for 7.0 but it's an officially recommended performance optimization." If not is it going to be in the FreeBSD 7.1? -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/