From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 4 09:39:42 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1F21F16A405 for ; Sun, 4 Mar 2007 09:39:42 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id AAA0D13C49D for ; Sun, 4 Mar 2007 09:39:41 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l249deTe083275 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 4 Mar 2007 10:39:40 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l249devb083274; Sun, 4 Mar 2007 10:39:40 +0100 (CET) Date: Sun, 4 Mar 2007 10:39:40 +0100 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20070304093940.GA82483@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: Subject: inconsistency in using vn_fullpath1() 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, 04 Mar 2007 09:39:42 -0000 hi I noticed that kern___getcwd() calls vn_fullpath1() with Giant held like this: mtx_lock(&Giant); FILEDESC_LOCK(fdp); error = vn_fullpath1(td, fdp->fd_cdir, fdp->fd_rdir, tmpbuf, &bp, buflen); FILEDESC_UNLOCK(fdp); mtx_unlock(&Giant); on the other hand vn_fullpath() calls it without Giant held like this: FILEDESC_LOCK(fdp); error = vn_fullpath1(td, vn, fdp->fd_rdir, buf, retbuf, MAXPATHLEN); FILEDESC_UNLOCK(fdp); I dont see much difference in the callings so I wonder if holding Giant is necessary when calling vn_fullpath1(). Because we either - do one unecessary locking operation or unsufficiently lock it. thnx for explaining to me and possibly fixing it. roman From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 4 10:00:18 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E674E16A400 for ; Sun, 4 Mar 2007 10:00:18 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id A240613C442 for ; Sun, 4 Mar 2007 10:00:18 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so1835386wri for ; Sun, 04 Mar 2007 02:00:18 -0800 (PST) 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=kyT668QGJq+o1XKMf1IKAwopddXfc9W24/bd2zUY916rqvmrI49arfIWXqSpKGN1zrfbVk9ya1UoIK7BhwznvbHP3Geh6K89pDfR9Y2LscaQb/0ZqlktCFUpn9sT1yFwFpGri2VBkVnzFyKHIkXI3AQ5Wmo4KBhmMAZy82xqrhc= 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=NDvh1OEBjTjdltHQVKo2AI+ENrzpaB2NeQfa1nh3rzWPQYzjd8pD1SqCLQ0C2yXa7/mm875PpWT+rDFy4PbuHk5vUzhDbzInM7cGR4KBlhjMegIMEI8bVji+R06wNZleb0vYDagTHIfFZDW99Xv0te14Biue1EDyoMJ6DpHDS4g= Received: by 10.115.61.1 with SMTP id o1mr881918wak.1173002417282; Sun, 04 Mar 2007 02:00:17 -0800 (PST) Received: by 10.115.17.9 with HTTP; Sun, 4 Mar 2007 02:00:17 -0800 (PST) Message-ID: Date: Sun, 4 Mar 2007 15:30:17 +0530 From: "ajay gopalakrishnan" To: glarkin@sourcehosting.net, freebsd-hackers@freebsd.org In-Reply-To: <008101c75cf7$c990b550$0901a8c0@TWEETY> MIME-Version: 1.0 References: <008101c75cf7$c990b550$0901a8c0@TWEETY> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Are there any known issues for installing FreeBSD on Vmware onwindows XP ? 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, 04 Mar 2007 10:00:19 -0000 Hi Greg, I am facing with some issues in getting FreeBSD installed on my machine. I am using Vmware workstation version 5. I am using an evaluation version of it. I downloaded the FreeBSD Release 6.2 from freebsd.org. I downloaded all the 3 ISO images. cd1 , cd2 and docs . I did not write these images on the CD but i mounted them directly on the CD drive of Vmware. I had selected OS Type as Other/FreeBSD at the time of installation. My basic installation got over properly and smoothly without any pains. But, i faced an error when i selected some packages for installation and kde from the packages list. It said 'Could not load package libiconv-1.9.2_2 and gettext... etc'. What could be the issue here? Also what mode should i select when installing the network adapter. Which one should i select. lance/Slip/ppp ? I am using DSL cable internet modem internet connection and the modem is connected to my computer using an ethernet. Further, after installation how should i ensure that all the required kernel sources are installed? Is there any way by which i can install a specific package from from CD and let the OS determine and install all the dependencies automatically? Is there any command for this like we have apt-get in debian? Thanks, Ajay. On 3/2/07, Greg Larkin wrote: > > > > > Hey all, > > > > Are there any known issues for installing FreeBSD on Vmware > > on windows XP ? > > I have never tried installiing FreeBSD earlier and i just saw > > a mail in this > > mailing list regarding some problems while installing on > > vmware. Could not > > make out much. Can someone just elaborate on the issues faced while > > installing on Vmware. > > > > Regards, > > ajay. > > Hi Ajay, > > I wrote in to the list a little while back about VMware installation > problems that I had with FreeBSD 6.2, but the issue was completely > related to the CPU architecture (Via C3 Nehemiah) that I was using. > VMware doesn't officially support that processor, even though it's > supposed to be Intel compatible. Another list member sent me a kernel > patch that fixed the problem (thanks ghozzy). > > I also have a WinXP box with a Celeron processor in it and VMware > Server installed, and FreeBSD 4.x and 6.x both install and run with no > problems at all. > > If you have any specific questions, let me know and I'll try to answer > them. I'm going to be learning a lot more about VMware Server and > FreeBSD in the coming months, as I'm working on redeploying my > company's service using those tools as the foundation. I hope to > share that knowledge with the list as I proceed. > > I also found this thread > (http://lists.freebsd.org/pipermail/freebsd-questions/2006-October/132 > 716.html) with some information in it about issues to be aware of > while running FreeBSD as a guest OS under VMware. Follow the thread a > little way, and you'll see an example kernel config file, too. > > Best of luck, > Greg Larkin > > > > From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 4 11:27:41 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7886816A405 for ; Sun, 4 Mar 2007 11:27:41 +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 52D9B13C46B for ; Sun, 4 Mar 2007 11:27:41 +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 0437546EE1; Sun, 4 Mar 2007 06:27:41 -0500 (EST) Date: Sun, 4 Mar 2007 11:27:40 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Divacky Roman In-Reply-To: <20070304093940.GA82483@stud.fit.vutbr.cz> Message-ID: <20070304112652.V60688@fledge.watson.org> References: <20070304093940.GA82483@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org Subject: Re: inconsistency in using vn_fullpath1() 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, 04 Mar 2007 11:27:41 -0000 On Sun, 4 Mar 2007, Divacky Roman wrote: > I noticed that kern___getcwd() calls vn_fullpath1() with Giant held like > this: > > mtx_lock(&Giant); > FILEDESC_LOCK(fdp); > error = vn_fullpath1(td, fdp->fd_cdir, fdp->fd_rdir, tmpbuf, > &bp, buflen); > FILEDESC_UNLOCK(fdp); > mtx_unlock(&Giant); > > on the other hand vn_fullpath() calls it without Giant held like this: > > FILEDESC_LOCK(fdp); > error = vn_fullpath1(td, vn, fdp->fd_rdir, buf, retbuf, MAXPATHLEN); > FILEDESC_UNLOCK(fdp); > > I dont see much difference in the callings so I wonder if holding Giant is > necessary when calling vn_fullpath1(). Because we either - do one unecessary > locking operation or unsufficiently lock it. > > thnx for explaining to me and possibly fixing it. I suspect that the Giant acquisition there is a conservative acquisition based on VFS not having been MPSAFE, and can be removed. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 4 11:50:11 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7FB5B16A402 for ; Sun, 4 Mar 2007 11:50:11 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.228]) by mx1.freebsd.org (Postfix) with ESMTP id 3C1E013C428 for ; Sun, 4 Mar 2007 11:50:11 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1188671wxc for ; Sun, 04 Mar 2007 03:50:10 -0800 (PST) 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=jMi0a/iLF+6Sd1HboSXWaSWx3FwJ7LJCk4YLpyAGXw9L4UhvJyjWs80qEz0T3uMH6orVPX7sBrpWZeB41Z4LFZRXYlXhY47KMqtac002/hYzhAy3xHaI8mZbRj9IZ915Hh5wKiuc3ee/Nq89xfKg2UfN0BJA6zrV+zE1FmXzeQU= 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=Imy42Q1xh+/Jkdj1xfMtlLjoxcGQNLQTd2ms6ZMCqOYhZUxzygxphPh3fQV44ahrhRaVtpi6sMxzjvOsQrmLY6+PPRmh0KLO4Edf4F3ySw+qJ9cItGs5AlsmRQhGAmbJzhgfcR/PFxX0oVqW3UVNlUJ8h9Sg8se7oUZHruyqLHw= Received: by 10.114.183.1 with SMTP id g1mr916828waf.1173009010144; Sun, 04 Mar 2007 03:50:10 -0800 (PST) Received: by 10.115.23.9 with HTTP; Sun, 4 Mar 2007 03:50:09 -0800 (PST) Message-ID: <84dead720703040350q70fcb66dice41c8ffc28388a5@mail.gmail.com> Date: Sun, 4 Mar 2007 17:20:09 +0530 From: "Joseph Koshy" To: "ajay gopalakrishnan" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <008101c75cf7$c990b550$0901a8c0@TWEETY> Cc: freebsd-hackers@freebsd.org Subject: Re: Are there any known issues for installing FreeBSD on Vmware onwindows XP ? 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, 04 Mar 2007 11:50:11 -0000 > Further, after installation how should i ensure that all the > required kernel sources are installed? You want the sources to the complete system, not just the "kernel", and you would want to keep these upto-date too. See: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html and, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html > Is there any way by which i can install a specific > package from from CD and let the OS determine and > install all the dependencies automatically? Is > there any command for this like we have apt-get in debian? 'pkg_add' should be installing dependencies automatically. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 4 14:11:38 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6FE0616A400 for ; Sun, 4 Mar 2007 14:11:38 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0AE6813C47E for ; Sun, 4 Mar 2007 14:11:37 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l24EBasZ006934 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 4 Mar 2007 15:11:36 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l24EBaIj006932 for hackers@freebsd.org; Sun, 4 Mar 2007 15:11:36 +0100 (CET) Date: Sun, 4 Mar 2007 15:11:36 +0100 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20070304141136.GA4935@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: Subject: investigation of Giant usage in kernel 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, 04 Mar 2007 14:11:38 -0000 hi I looked at where Giant is held in the kernel and I found these interesting things: 1) in fs/fifofs/fifo_vnops.c we lock Giant when calling sorecieve()/sosend() this is a bandaid for fixing a race that doesnt have to exist anymore. ie. it needs some testing and can be remvoed 2) in geom/geom_dev.c we lock Giant for: 2a) calling make_dev() which seems unecessary because make_dev protects itself with devmtx 2b) setting a flag in cdev which I think is unecessary as well 3) in kern/kern_descrip.c we lock Giant for the whole life of flock() I dont see a need for this protection becuase 3a) access to fp is protected with FILE_LOCK()ing 3b) otherwise it operates on local variables 3c) it also calls VOP_* functions but those dont require Giant, right? 4) in kern/kern_lockf.c we lock Giant for the whole life of lf_advlock() I dont think this is necessary because 4a) it operates on local variables 4b) it calls various lf_*lock() functions which seems to either protect themselves or not needed protection at all 5) in kern/kern_time.c we lock Giant to protect 5a) tc_setclock() call - I dont know if this is necessary or not 5b) lease_updatetime call which is a function pointer that seems to be only assigned at one place (line 119 in kern_time.c) to a NOP function. can this be removed? 6) in vm/device_pager.c we lock Giant to (also) protect cdevsw->d_mmap but the device mmap is either MPSAFE or assigned to giant_mmap (a wrapper that locks GIant and calls the original d_mmap) so this seems unecessary. These are just my impressions on the code and I'd like to hear some comments if its correct and if its I'd like to see some fixes. thnx roman From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 4 16:48:00 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 302AB16A402 for ; Sun, 4 Mar 2007 16:48:00 +0000 (UTC) (envelope-from raggen@passagen.se) Received: from av9-2-sn2.hy.skanova.net (av9-2-sn2.hy.skanova.net [81.228.8.180]) by mx1.freebsd.org (Postfix) with ESMTP id BCFD913C48E for ; Sun, 4 Mar 2007 16:47:59 +0000 (UTC) (envelope-from raggen@passagen.se) Received: by av9-2-sn2.hy.skanova.net (Postfix, from userid 502) id 7045137F35; Sun, 4 Mar 2007 17:15:13 +0100 (CET) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av9-2-sn2.hy.skanova.net (Postfix) with ESMTP id 2E1C137EF7; Sun, 4 Mar 2007 17:15:13 +0100 (CET) Received: from [192.168.1.6] (81-231-90-251-no41.tbcn.telia.com [81.231.90.251]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id D03D837E51; Sun, 4 Mar 2007 17:15:12 +0100 (CET) Message-ID: <45EAF108.5000507@passagen.se> Date: Sun, 04 Mar 2007 17:17:12 +0100 From: Roger Olofsson User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: ajay gopalakrishnan References: <008101c75cf7$c990b550$0901a8c0@TWEETY> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Are there any known issues for installing FreeBSD on Vmware onwindows XP ? 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, 04 Mar 2007 16:48:00 -0000 ajay gopalakrishnan skrev: > Hi Greg, > > I am facing with some issues in getting FreeBSD installed on my machine. > I am using Vmware workstation version 5. I am using an evaluation > version of > it. > I downloaded the FreeBSD Release 6.2 from freebsd.org. > I downloaded all the 3 ISO images. cd1 , cd2 and docs . > I did not write these images on the CD but i mounted them directly on > the CD > drive of Vmware. > > I had selected OS Type as Other/FreeBSD at the time of installation. > My basic installation got over properly and smoothly without any pains. > But, i faced an error when i selected some packages for installation and > kde > from the packages list. It said 'Could not load package libiconv-1.9.2_2 > and > gettext... etc'. What could be the issue here? > > Also what mode should i select when installing the network adapter. Which > one should i select. lance/Slip/ppp ? I am using DSL cable internet modem > internet connection and the modem is connected to my computer using an > ethernet. > I set the nics to bridge when I ran this way. > Further, after installation how should i ensure that all the required > kernel > sources are installed? > This is only necessary if you want to build a kernel of your own. If you are satisfied with the kernel shipped with the cds (called GENERIC) there is no need. The handbook at www.freebsd.org is a very good starting point and answers many questions. > Is there any way by which i can install a specific package from from CD and > let the OS determine and install all the dependencies automatically? Is > there any command for this like we have apt-get in debian? > Yes, this is done automagically when you either add the binary package or when you do make install clean in the source code for it. Again, the handbook answers all this. > Thanks, > Ajay. > > On 3/2/07, Greg Larkin wrote: >> >> > >> > Hey all, >> > >> > Are there any known issues for installing FreeBSD on Vmware >> > on windows XP ? >> > I have never tried installiing FreeBSD earlier and i just saw >> > a mail in this >> > mailing list regarding some problems while installing on >> > vmware. Could not >> > make out much. Can someone just elaborate on the issues faced while >> > installing on Vmware. >> > >> > Regards, >> > ajay. >> >> Hi Ajay, >> >> I wrote in to the list a little while back about VMware installation >> problems that I had with FreeBSD 6.2, but the issue was completely >> related to the CPU architecture (Via C3 Nehemiah) that I was using. >> VMware doesn't officially support that processor, even though it's >> supposed to be Intel compatible. Another list member sent me a kernel >> patch that fixed the problem (thanks ghozzy). >> >> I also have a WinXP box with a Celeron processor in it and VMware >> Server installed, and FreeBSD 4.x and 6.x both install and run with no >> problems at all. >> >> If you have any specific questions, let me know and I'll try to answer >> them. I'm going to be learning a lot more about VMware Server and >> FreeBSD in the coming months, as I'm working on redeploying my >> company's service using those tools as the foundation. I hope to >> share that knowledge with the list as I proceed. >> >> I also found this thread >> (http://lists.freebsd.org/pipermail/freebsd-questions/2006-October/132 >> 716.html) with some information in it about issues to be aware of >> while running FreeBSD as a guest OS under VMware. Follow the thread a >> little way, and you'll see an example kernel config file, too. >> >> Best of luck, >> Greg Larkin >> >> >> >> > _______________________________________________ > 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 Sun Mar 4 18:22:15 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 13B7016A400 for ; Sun, 4 Mar 2007 18:22:15 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id CF5C213C4A6 for ; Sun, 4 Mar 2007 18:22:14 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 2C7381CE74; Sun, 4 Mar 2007 18:55:50 +0100 (CET) Date: Sun, 4 Mar 2007 18:55:50 +0100 From: Ed Schouten To: hackers@freebsd.org Message-ID: <20070304175550.GA18397@hoeg.nl> References: <20070304141136.GA4935@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fUYQa+Pmc3FrFX/N" Content-Disposition: inline In-Reply-To: <20070304141136.GA4935@stud.fit.vutbr.cz> User-Agent: Mutt/1.5.14 (2007-02-12) Cc: Divacky Roman Subject: Re: investigation of Giant usage in kernel 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, 04 Mar 2007 18:22:15 -0000 --fUYQa+Pmc3FrFX/N Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I took a grep on the kernel source and took a look to Giant usage as well. I too have a question about locking in uipc_domain.c: The file has a mutex, dom_mtx, which protects the 'domain list lock', which could be declared static by the way. The strange thing is that it isn't used to lock the domain list lock in any way. It is only used to lock the domain_init_status variable. Wouldn't it be better to rename it to something better? The pf_proto_register() routine locks and unlocks Giant. It looks like s/Giant/dom_mtx/ would be enough to remove the usage of Giant from uipc_domain.c. Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --fUYQa+Pmc3FrFX/N Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF6wgm52SDGA2eCwURAqCjAJ9ejEph3fcgNKhV+iJICaEJnZ2pQgCfWOMQ SAbzWmXW4chApkynYUVLBv4= =rEjn -----END PGP SIGNATURE----- --fUYQa+Pmc3FrFX/N-- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 5 01:57:38 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 44C2B16A407 for ; Mon, 5 Mar 2007 01:57:38 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by mx1.freebsd.org (Postfix) with ESMTP id 01FE013C48E for ; Mon, 5 Mar 2007 01:57:37 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so2086372wri for ; Sun, 04 Mar 2007 17:57:35 -0800 (PST) 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; b=fGUdH9TPMrLglHb3Mobw29is1mfuhRKDo5wH/cOFz3bcFiN3Sr+wKBP1vbXuznIPKRHEHZtqgGXZURIPIVYf/FWQa4iD8ME5Yh4wbcB/IGOO+RlvMO9+lxYX7W4E1p/CQsmUeQvy2DLuFuIvSvv0blOv9A4vy81IcfrpuFROrp4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=cieRfZge74UomnNWv2+Hdo4+ZMVzYt7RUHZ7MlltWje7M+2Tk9VO1kwEi0HZLQOaDWnr6He80uqp7CphzgmGQHJ4pJpfhdzT3M/r7DnL/iDxVDf0Os/n7oPC4fm44FOiIxRRvt2SxA655/7TAZZdNREGk8bz00fpJ/vg3HpK/00= Received: by 10.114.111.1 with SMTP id j1mr1092493wac.1173059853336; Sun, 04 Mar 2007 17:57:33 -0800 (PST) Received: by 10.115.17.9 with HTTP; Sun, 4 Mar 2007 17:57:33 -0800 (PST) Message-ID: Date: Mon, 5 Mar 2007 07:27:33 +0530 From: "ajay gopalakrishnan" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Keyboard not working except "Enter" Key and getting monochrome color with Vmware on HP Pavillio dv6000 series notebook 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, 05 Mar 2007 01:57:38 -0000 Hi, I'm trying to install FreeBSD on Vmware on windows XP Media Center Edition on my notebook HP Pavillion dv6000 series. The installation is proper. Everything gets installed perfectly. KDE starts also but the resolution is not OK. I'm not getting a colored output for KDE. everything is black and white. Keyboard does not work except the "Enter" Key. Mouse Works properly. I have a NVidia GForce Go 7400 Graphics card with 256MB memory. My settings on Windows XP currently are 1280x800 and color quality is highest 32bit and refresh rate is 60Hz. I had ran xorgconfig and xorgcfg. But, here i am not able to find any keyboard looks like the layout of my notebook keyboard layout. The closest match would be the Winbook and the IBM Thinkpad series. I had selected the color to highest possible value 24bit (16 million colors). I dont know the HSync and VSync values of my notebook since the manual of the notebook doesnt have these values. I had performed the same installation procedures on my desktop machine which is a DELL Optiplex. It is working perfectly there. So i think that my xorgconfig is wrong. Thanks in advance, Ajay. On 3/4/07, Roger Olofsson wrote: > > > > ajay gopalakrishnan skrev: > > Hi Greg, > > > > I am facing with some issues in getting FreeBSD installed on my machine. > > I am using Vmware workstation version 5. I am using an evaluation > > version of > > it. > > I downloaded the FreeBSD Release 6.2 from freebsd.org. > > I downloaded all the 3 ISO images. cd1 , cd2 and docs . > > I did not write these images on the CD but i mounted them directly on > > the CD > > drive of Vmware. > > > > I had selected OS Type as Other/FreeBSD at the time of installation. > > My basic installation got over properly and smoothly without any pains. > > But, i faced an error when i selected some packages for installation and > > kde > > from the packages list. It said 'Could not load package libiconv-1.9.2_2 > > and > > gettext... etc'. What could be the issue here? > > > > Also what mode should i select when installing the network adapter. > Which > > one should i select. lance/Slip/ppp ? I am using DSL cable internet > modem > > internet connection and the modem is connected to my computer using an > > ethernet. > > > > I set the nics to bridge when I ran this way. > > > Further, after installation how should i ensure that all the required > > kernel > > sources are installed? > > > > This is only necessary if you want to build a kernel of your own. If you > are satisfied with the kernel shipped with the cds (called GENERIC) > there is no need. The handbook at www.freebsd.org is a very good > starting point and answers many questions. > > > > Is there any way by which i can install a specific package from from CD > and > > let the OS determine and install all the dependencies automatically? Is > > there any command for this like we have apt-get in debian? > > > > Yes, this is done automagically when you either add the binary package > or when you do make install clean in the source code for it. Again, the > handbook answers all this. > > > Thanks, > > Ajay. > > > > On 3/2/07, Greg Larkin wrote: > >> > >> > > >> > Hey all, > >> > > >> > Are there any known issues for installing FreeBSD on Vmware > >> > on windows XP ? > >> > I have never tried installiing FreeBSD earlier and i just saw > >> > a mail in this > >> > mailing list regarding some problems while installing on > >> > vmware. Could not > >> > make out much. Can someone just elaborate on the issues faced while > >> > installing on Vmware. > >> > > >> > Regards, > >> > ajay. > >> > >> Hi Ajay, > >> > >> I wrote in to the list a little while back about VMware installation > >> problems that I had with FreeBSD 6.2, but the issue was completely > >> related to the CPU architecture (Via C3 Nehemiah) that I was using. > >> VMware doesn't officially support that processor, even though it's > >> supposed to be Intel compatible. Another list member sent me a kernel > >> patch that fixed the problem (thanks ghozzy). > >> > >> I also have a WinXP box with a Celeron processor in it and VMware > >> Server installed, and FreeBSD 4.x and 6.x both install and run with no > >> problems at all. > >> > >> If you have any specific questions, let me know and I'll try to answer > >> them. I'm going to be learning a lot more about VMware Server and > >> FreeBSD in the coming months, as I'm working on redeploying my > >> company's service using those tools as the foundation. I hope to > >> share that knowledge with the list as I proceed. > >> > >> I also found this thread > >> (http://lists.freebsd.org/pipermail/freebsd-questions/2006-October/132 > >> 716.html) with some information in it about issues to be aware of > >> while running FreeBSD as a guest OS under VMware. Follow the thread a > >> little way, and you'll see an example kernel config file, too. > >> > >> Best of luck, > >> Greg Larkin > >> > >> > >> > >> > > _______________________________________________ > > 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 Mon Mar 5 20:58:19 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9A58B16A404 for ; Mon, 5 Mar 2007 20:58:19 +0000 (UTC) (envelope-from cynical.nihilist@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id 54DC013C428 for ; Mon, 5 Mar 2007 20:58:19 +0000 (UTC) (envelope-from cynical.nihilist@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1451303ana for ; Mon, 05 Mar 2007 12:58:18 -0800 (PST) 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=tiyscxG6aZLRBEhqjQrthoglBL+XvIFH6dhDhLJoP+9useRLEYVhAAdH62BdVg2oPbj1H7pQQ4GRpTlYArPZyfWi05QkdLPahKyZDoajd5HD6JV+jKfPnBLJVdvJypoT5Q2YVbpUbRpvMewBBMkm6mxTwe2+r0ezXIX7wYOghYU= 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=aHFtGRBQ9uVgiVx4y/0WRc0sQ4JO9u9Wa9nbYp4oa79XbmJqmKtxqcT/SAE4MKu772juGW9M7SSn+527S4vqFF3QL4HOvN5jDHOTrhtN2qGsTaZ3zNrnVXw55fJH46waGWWA3JTIL4b6v2TGlsnE/mjGtEY563NHBW7PGpetqtk= Received: by 10.100.107.2 with SMTP id f2mr2890429anc.1173126670014; Mon, 05 Mar 2007 12:31:10 -0800 (PST) Received: by 10.100.124.20 with HTTP; Mon, 5 Mar 2007 12:31:09 -0800 (PST) Message-ID: <2f029c1c0703051231k7bc917d3ybb4bd236a242e6c1@mail.gmail.com> Date: Mon, 5 Mar 2007 15:31:09 -0500 From: "Dave Arsenault" To: freebsd-hackers@freebsd.org In-Reply-To: <20070303102954.GE9421@turion.vk2pj.dyndns.org> MIME-Version: 1.0 References: <20070303102954.GE9421@turion.vk2pj.dyndns.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: How should i start working on kernel programming? 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, 05 Mar 2007 20:58:19 -0000 How would I go about debugging a LKM. I am currently working on a simple kernel module that overwrites the open() syscall and sends the output through a parsing routine. I've read many articles talking about using the (gdb) add-symbol-file lkm.ko
and in fact that works but as far as I know I can set breakpoints that never break and that's pretty much it. Thanks On 3/3/07, Peter Jeremy wrote: > > On 2007-Mar-03 10:21:27 +0530, ajay gopalakrishnan > wrote: > >I am new to FreeBSD and I would like to know how to start off with kernel > >level programming. > > Apart from the links Sam gave you, I'd suggest you look at "The Design > and Implementation of the FreeBSD Operating System" by Kirk McKusick > and George Neville-Neil. > > As a general introduction, you might like to look through "The Complete > FreeBSD" by Greg Lehey (http://www.lemis.com/grog/Documentation/CFBSD/). > > > Also, the header packages used at the system level code and > >kernel level code were different. > > Yes. The internal kernel interfaces are defined in the section 9 man > pages. > > -- > Peter Jeremy > > From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 6 00:15:57 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6E55016A401; Tue, 6 Mar 2007 00:15:57 +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 48B4E13C4AC; Tue, 6 Mar 2007 00:15:57 +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 AEFE1470F9; Mon, 5 Mar 2007 19:15:56 -0500 (EST) Date: Tue, 6 Mar 2007 00:15:56 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Divacky Roman In-Reply-To: <20070304141136.GA4935@stud.fit.vutbr.cz> Message-ID: <20070306001251.N31701@fledge.watson.org> References: <20070304141136.GA4935@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: kris@FreeBSD.org, hackers@freebsd.org Subject: Re: investigation of Giant usage in kernel 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, 06 Mar 2007 00:15:57 -0000 On Sun, 4 Mar 2007, Divacky Roman wrote: > I looked at where Giant is held in the kernel and I found these interesting > things: > > 1) in fs/fifofs/fifo_vnops.c we lock Giant when calling sorecieve()/sosend() > this is a bandaid for fixing a race that doesnt have to exist anymore. ie. > it needs some testing and can be remvoed Hmm. I think that conclusion is a bit premature. Per our conversation on IRC, the workaround was added back prior to a release due to our being unable to resolve a very difficult to debug race condition. There is no evidence the race doesn't exist anymore: what is needed is testing to determine if it does or not. The race condition occurred under high make -j load on SMP; FYI, make uses a fifo to implement a concurrency limiting token scheme in order to bound total simultaneous jobs despite many make instances running. I've CC'd Kris since I know that he was able to reproduce the problem, so might be able to provide advice on how to do so. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 6 00:27:47 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A9CF616A401; Tue, 6 Mar 2007 00:27:47 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 9917013C467; Tue, 6 Mar 2007 00:27:47 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 7E85C1A4D83; Mon, 5 Mar 2007 16:27:47 -0800 (PST) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id BE000514E7; Mon, 5 Mar 2007 19:27:46 -0500 (EST) Date: Mon, 5 Mar 2007 19:27:46 -0500 From: Kris Kennaway To: Robert Watson Message-ID: <20070306002745.GA21890@xor.obsecurity.org> References: <20070304141136.GA4935@stud.fit.vutbr.cz> <20070306001251.N31701@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070306001251.N31701@fledge.watson.org> User-Agent: Mutt/1.4.2.2i Cc: Divacky Roman , hackers@freebsd.org, kris@FreeBSD.org Subject: Re: investigation of Giant usage in kernel 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, 06 Mar 2007 00:27:47 -0000 On Tue, Mar 06, 2007 at 12:15:56AM +0000, Robert Watson wrote: > On Sun, 4 Mar 2007, Divacky Roman wrote: > > >I looked at where Giant is held in the kernel and I found these > >interesting things: > > > >1) in fs/fifofs/fifo_vnops.c we lock Giant when calling > >sorecieve()/sosend() this is a bandaid for fixing a race that doesnt have > >to exist anymore. ie. it needs some testing and can be remvoed > > Hmm. I think that conclusion is a bit premature. Per our conversation on > IRC, the workaround was added back prior to a release due to our being > unable to resolve a very difficult to debug race condition. There is no > evidence the race doesn't exist anymore: what is needed is testing to > determine if it does or not. The race condition occurred under high make > -j load on SMP; FYI, make uses a fifo to implement a concurrency limiting > token scheme in order to bound total simultaneous jobs despite many make > instances running. > > I've CC'd Kris since I know that he was able to reproduce the problem, so > might be able to provide advice on how to do so. It was probably the big package dispatch makefile, which is an enormous (20MB) makefile with all of the dependency ordering data for the entire ports tree, which is used to dispatch builds in t he correct order using make -j${LARGENUM}, where that is typically 60 or so depending on the size of the client pool. In addition about half a dozen or more of these things might be running at any one time. Kris From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 6 06:02:05 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 77F7816A400 for ; Tue, 6 Mar 2007 06:02:05 +0000 (UTC) (envelope-from rick@napalmriot.com) Received: from outbound-mail-28.bluehost.com (outbound-mail-28.bluehost.com [69.89.17.198]) by mx1.freebsd.org (Postfix) with SMTP id 3BEB013C4BA for ; Tue, 6 Mar 2007 06:02:05 +0000 (UTC) (envelope-from rick@napalmriot.com) Received: (qmail 29442 invoked by uid 0); 6 Mar 2007 05:35:25 -0000 Received: from unknown (HELO box29.bluehost.com) (69.89.18.29) by mailproxy2.bluehost.com with SMTP; 6 Mar 2007 05:35:25 -0000 Received: from cpe-76-176-10-125.san.res.rr.com ([76.176.10.125] helo=[192.168.1.4]) by box29.bluehost.com with esmtpa (Exim 4.63) (envelope-from ) id 1HOSKb-0002bj-47 for hackers@freebsd.org; Mon, 05 Mar 2007 22:35:25 -0700 Message-ID: <45ECFDED.8070009@napalmriot.com> Date: Mon, 05 Mar 2007 21:36:45 -0800 From: Rick Olson User-Agent: Thunderbird 1.5.0.7 (X11/20061027) MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {32447:box29.bluehost.com:neogence:napalmriot.com} {sentby:smtp auth 76.176.10.125 authed with rick+napalmriot.com} Cc: Subject: Mouse + KVM Issues [with fix] 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, 06 Mar 2007 06:02:05 -0000 I'm really not sure which list to post this to, and this is my first post on any of the official FreeBSD mailing lists, so pardon my ignorance. This was a tossup between arch & hackers. A long time ago, way back in May of 2005, there was a bug/change-request posted by a Tim H. regarding increasing compatibility of the psm driver with KVM switches. That post is located at: http://lists.freebsd.org/pipermail/freebsd-bugs/2005-May/012848.html Recently, I was blessed (and cursed) with a new KVM to switch between Windows, my glorified music player, and FreeBSD. That's when the very issue Tim brought up started happening, and caused me countless hours of frustration and researching (without a scrollwheel, mind you). Finally, after finding that post and doing as instructed, (psm.c was located at /usr/src/sys/dev/atkbdc/psm.c for me), I was able to get things back to bearable. Is there any way that simple change could be implemented into the base, or are there other issues that would arise by implementing that fix? I can verify that it works, and I've noticed there are quite a few people that experienced the same issue. Thanks, Rick http://www.sensual.jp || From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 6 06:47:32 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5573216A401 for ; Tue, 6 Mar 2007 06:47:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-3-125.belrs4.nsw.optusnet.com.au [220.239.3.125]) by mx1.freebsd.org (Postfix) with ESMTP id DB83413C467 for ; Tue, 6 Mar 2007 06:47:31 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.8/8.13.8) with ESMTP id l266lUgm001201; Tue, 6 Mar 2007 17:47:30 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.8/8.13.8/Submit) id l266lUnx001200; Tue, 6 Mar 2007 17:47:30 +1100 (EST) (envelope-from peter) Date: Tue, 6 Mar 2007 17:47:30 +1100 From: Peter Jeremy To: Dave Arsenault Message-ID: <20070306064730.GB875@turion.vk2pj.dyndns.org> References: <20070303102954.GE9421@turion.vk2pj.dyndns.org> <2f029c1c0703051231k7bc917d3ybb4bd236a242e6c1@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="jho1yZJdad60DJr+" Content-Disposition: inline In-Reply-To: <2f029c1c0703051231k7bc917d3ybb4bd236a242e6c1@mail.gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.13 (2006-08-11) Cc: freebsd-hackers@freebsd.org Subject: Re: How should i start working on kernel programming? 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, 06 Mar 2007 06:47:32 -0000 --jho1yZJdad60DJr+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Mar-05 15:31:09 -0500, Dave Arsenault = wrote: >How would I go about debugging a LKM. I am currently working on a simple >kernel module that overwrites the open() syscall and sends the output >through a parsing routine. Have a read of /usr/src/tools/debugscripts/README I haven't tried setting breakpoints but other kgdb functions work with KLDs. --=20 Peter Jeremy --jho1yZJdad60DJr+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFF7Q6C/opHv/APuIcRAi4QAJ9aS5C+oMDDYyQdkvrXXw7DMz20zwCfdyO6 ZwLQS40ODIt6sO/6v12PWv0= =8W9d -----END PGP SIGNATURE----- --jho1yZJdad60DJr+-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 6 07:14:06 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 25E8D16A400 for ; Tue, 6 Mar 2007 07:14:06 +0000 (UTC) (envelope-from psionic@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.228]) by mx1.freebsd.org (Postfix) with ESMTP id D406C13C441 for ; Tue, 6 Mar 2007 07:14:05 +0000 (UTC) (envelope-from psionic@gmail.com) Received: by wr-out-0506.google.com with SMTP id 55so2715512wri for ; Mon, 05 Mar 2007 23:14:05 -0800 (PST) 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=L3ToTBMuMa8Epi+oZB2dOFMp2+wsSSrKwf8gK5NzuRl6H2T6RQe58nZMxzfQ6jwdUa2ozEbZwsB4XwZhHofz/oBC2Hku7+LYbOXWTRGYNYkDjZDgCrc+THnBolewqOx6+NQQn102dICvphl+p0SQhXE61PmdCDNLa8hAwBQU8Ts= 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=XF85LhEv5BTjvctJC3xdIKe2UZUiklJZ7GuEkZ6rgBuwW7VXbu9d5jYPbKAo3pxFvD9pqSB/1zv37L25thm8x1G6tCznEOIeaZpPTlieQMjavW86rTJVUJAKWzB7EnFQPCHhg+ScejhYq73J61Shb6nWznItQ4FBeS+MoaR9Qq0= Received: by 10.114.179.1 with SMTP id b1mr1640774waf.1173165244759; Mon, 05 Mar 2007 23:14:04 -0800 (PST) Received: by 10.114.126.6 with HTTP; Mon, 5 Mar 2007 23:14:04 -0800 (PST) Message-ID: <5ad23a300703052314n491be435l29e03065fade1325@mail.gmail.com> Date: Mon, 5 Mar 2007 23:14:04 -0800 From: "Jordan Sissel" To: "Rick Olson" In-Reply-To: <45ECFDED.8070009@napalmriot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45ECFDED.8070009@napalmriot.com> Cc: hackers@freebsd.org Subject: Re: Mouse + KVM Issues [with fix] 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, 06 Mar 2007 07:14:06 -0000 On 3/5/07, Rick Olson wrote: > I'm really not sure which list to post this to, and this is my first > post on any of the official FreeBSD mailing lists, so pardon my > ignorance. This was a tossup between arch & hackers. > > A long time ago, way back in May of 2005, there was a bug/change-request > posted by a Tim H. regarding increasing compatibility of the psm driver > with KVM switches. That post is located at: > http://lists.freebsd.org/pipermail/freebsd-bugs/2005-May/012848.html > > > Is there any way that simple change could be implemented into the base, > or are there other issues that would arise by implementing that fix? I > can verify that it works, and I've noticed there are quite a few people > that experienced the same issue. kern/80844 changes probe order. However, probe order is important, and this will break people who have mouseman ps/2 mice and want to use horizontal scrolling. Mouseman protocol supports horizontal scrolling. Intellimouse does not. Maybe a sysctl knob to say "I'm behind a kvm" that always makes it use either generic ps/2 or intellimouse? Most mice support one or both, it seems, along with whatever other proprietary protocol they use. -Jordan From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 6 08:13:33 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 15B8716A401 for ; Tue, 6 Mar 2007 08:13:33 +0000 (UTC) (envelope-from rick@napalmriot.com) Received: from outbound-mail-72.bluehost.com (outbound-mail-72.bluehost.com [69.89.20.7]) by mx1.freebsd.org (Postfix) with SMTP id E3C6313C467 for ; Tue, 6 Mar 2007 08:13:32 +0000 (UTC) (envelope-from rick@napalmriot.com) Received: (qmail 6926 invoked by uid 0); 6 Mar 2007 08:13:32 -0000 Received: from unknown (HELO box29.bluehost.com) (69.89.18.29) by mailproxy4.bluehost.com with SMTP; 6 Mar 2007 08:13:32 -0000 Received: from cpe-76-176-10-125.san.res.rr.com ([76.176.10.125] helo=[192.168.1.4]) by box29.bluehost.com with esmtpa (Exim 4.63) (envelope-from ) id 1HOUnc-0001HN-1e; Tue, 06 Mar 2007 01:13:32 -0700 Message-ID: <45ED2302.6050203@napalmriot.com> Date: Tue, 06 Mar 2007 00:14:58 -0800 From: Rick Olson User-Agent: Thunderbird 1.5.0.7 (X11/20061027) MIME-Version: 1.0 To: Jordan Sissel References: <45ECFDED.8070009@napalmriot.com> <5ad23a300703052314n491be435l29e03065fade1325@mail.gmail.com> In-Reply-To: <5ad23a300703052314n491be435l29e03065fade1325@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {32447:box29.bluehost.com:neogence:napalmriot.com} {sentby:smtp auth 76.176.10.125 authed with rick+napalmriot.com} Cc: hackers@freebsd.org Subject: Re: Mouse + KVM Issues [with fix] 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, 06 Mar 2007 08:13:33 -0000 Hi Jordan, Thanks for the explanation, makes complete sense. The primary scenario that I've been reading on this issue, which matches my setup, is people behind a _cheap_ KVM using a USB mouse with a PS/2 converter (maybe also vice versa). A sysctl setting would be a sufficient workaround, if it's even applicable (not sure that it is). Something like: sysctl hw.my_cheap_kvm_and_usb_to_ps2_converted_mouse_makes_my_scrollwheel_stop_working_please_fix=1 Obviously a less verbose and more catchy name would be used. My personal favourite is the dev.emujoy family, perhaps *.scrollwheeljoy.* would be appropriate. :p Alternatively, is there currently any way for me to force my box to use what I know to be my mouse, and not do any form of autodetection that it appears to be doing at the time of my KVM switching? Something that wouldn't require myself or someone else to recompile the kernel (even though I already did)... Thanks, Rick http://www.sensual.jp Jordan Sissel wrote: > On 3/5/07, Rick Olson wrote: >> I'm really not sure which list to post this to, and this is my first >> post on any of the official FreeBSD mailing lists, so pardon my >> ignorance. This was a tossup between arch & hackers. >> >> A long time ago, way back in May of 2005, there was a bug/change-request >> posted by a Tim H. regarding increasing compatibility of the psm driver >> with KVM switches. That post is located at: >> http://lists.freebsd.org/pipermail/freebsd-bugs/2005-May/012848.html >> > >> >> Is there any way that simple change could be implemented into the base, >> or are there other issues that would arise by implementing that fix? I >> can verify that it works, and I've noticed there are quite a few people >> that experienced the same issue. > > kern/80844 changes probe order. However, probe order is important, and > this will break people who have mouseman ps/2 mice and want to use > horizontal scrolling. > > Mouseman protocol supports horizontal scrolling. Intellimouse does > not. Maybe a sysctl knob to say "I'm behind a kvm" that always makes > it use either generic ps/2 or intellimouse? Most mice support one or > both, it seems, along with whatever other proprietary protocol they > use. > > -Jordan > _______________________________________________ > 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 Tue Mar 6 19:09:13 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C903716A40B for ; Tue, 6 Mar 2007 19:09:13 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.250]) by mx1.freebsd.org (Postfix) with ESMTP id 8AADB13C4B9 for ; Tue, 6 Mar 2007 19:09:13 +0000 (UTC) (envelope-from pietro.cerutti@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so1737475ana for ; Tue, 06 Mar 2007 11:09:13 -0800 (PST) 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=H1vBGBFYB8sfZ9RfdPy/x/zdz/za8btFz7EOFIPlWhIjBhTu89khE3eTT40N+JMwfonZKo1BNEgUChyKHKBHLAL20coXrPuITf38Etiealy1BzaBlvDISZ0caF3+VlprhWdDwP+jTmnCKLkGSZiCPMZEWx0ULxXP7OqKwEC4Tg0= 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=cstI1xkhGdJ084jN7vlwd6wiFJvqlfpcFIKPr0CtFqbkYOzC4S9uLvl7q2AX+cxP94q6M77fmu/5aGB3uc+8BZWR0sDeLchGuea8l/g6EH0ogF+V+sGpJ380KogDGlM0XUismc8MfkKQfKP8UwGOw0R5J9AhxNAr+sjo7kVjQYA= Received: by 10.100.112.19 with SMTP id k19mr3803945anc.1173208153310; Tue, 06 Mar 2007 11:09:13 -0800 (PST) Received: by 10.100.33.5 with HTTP; Tue, 6 Mar 2007 11:09:13 -0800 (PST) Message-ID: Date: Tue, 6 Mar 2007 20:09:13 +0100 From: "Pietro Cerutti" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: bluetooth: which modules are mandatory? 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, 06 Mar 2007 19:09:13 -0000 Hi there, sorry for cross posting: I realized that this could be of interest for freebsd-hackers@ too (and I'm likely to get an answer from you, too). ---------- Forwarded message ---------- From: Pietro Cerutti Date: Mar 6, 2007 6:44 PM Subject: which modules are mandatory? To: freebsd-bluetooth@freebsd.org Hi list, I have this built-in bluetooth dongle on my laptop: ubt0: vendor 0x0a12 product 0x0001, rev 2.00/15.93, addr 2 ubt0: vendor 0x0a12 product 0x0001, rev 2.00/15.93, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 My laptop is a MSI-1034 (http://www.msicomputer.com/NB/product_spec.asp?model=MS-1034_(Core2_Duo)) but unfortunately the manufacturer doesn't give many information about the bluetooth device. I would like to keep my kernel at a minimum, and thus I'd like to know which parts of it should be built in order for bluetooth to work. The thing that's misleading me is the following: if I compile my kernel with only the /sys/modules/netgraph/netgraph and /sys/modules/netgraph/bluetooth modules, I get the following error while trying to enable bluetooth: # sh -x /etc/rc.bluetooth start ubt0 + logger=/usr/bin/logger -i -s -p user.err + kldstat=/sbin/kldstat + kldload=/sbin/kldload + sysctl=/sbin/sysctl + ngctl=/usr/sbin/ngctl + hcseriald=/usr/sbin/hcseriald + hccontrol=/usr/sbin/hccontrol + hci_debug_level=3 + l2cap_debug_level=3 + [ 2 -lt 2 ] + startstop=start + shift + dev=ubt0 + shift + load_module ng_bluetooth + module=ng_bluetooth + shift + /sbin/kldstat -n ng_bluetooth + [ 0 -ne 0 ] + load_module ng_hci + module=ng_hci + shift + /sbin/kldstat -n ng_hci + [ 0 -ne 0 ] + load_module ng_l2cap + module=ng_l2cap + shift + /sbin/kldstat -n ng_l2cap + [ 0 -ne 0 ] + load_module ng_btsocket + module=ng_btsocket + shift + /sbin/kldstat -n ng_btsocket + [ 0 -ne 0 ] + /etc/rc.bluetooth stop ubt0 + hook=hook + expr ubt0 : ubt\([0-9]\{1,\}\) + unit=0 + [ -z 0 ] + setup_stack ubt0 hook + dev=ubt0 + shift + hook=hook + shift + /usr/sbin/ngctl mkpeer ubt0: hci hook drv ngctl: can't create node: No such file or directory + exit 1 On the other hand, if I compile and install the whole /sys/modules/netgraph directory, the output is the following, and bluetooth works like a charm! # sh -x /etc/rc.bluetooth start ubt0 + logger=/usr/bin/logger -i -s -p user.err + kldstat=/sbin/kldstat + kldload=/sbin/kldload + sysctl=/sbin/sysctl + ngctl=/usr/sbin/ngctl + hcseriald=/usr/sbin/hcseriald + hccontrol=/usr/sbin/hccontrol + hci_debug_level=3 + l2cap_debug_level=3 + [ 2 -lt 2 ] + startstop=start + shift + dev=ubt0 + shift + load_module ng_bluetooth + module=ng_bluetooth + shift + /sbin/kldstat -n ng_bluetooth + [ 0 -ne 0 ] + load_module ng_hci + module=ng_hci + shift + /sbin/kldstat -n ng_hci + [ 0 -ne 0 ] + load_module ng_l2cap + module=ng_l2cap + shift + /sbin/kldstat -n ng_l2cap + [ 0 -ne 0 ] + load_module ng_btsocket + module=ng_btsocket + shift + /sbin/kldstat -n ng_btsocket + [ 0 -ne 0 ] + /etc/rc.bluetooth stop ubt0 + hook=hook + expr ubt0 : ubt\([0-9]\{1,\}\) + unit=0 + [ -z 0 ] + setup_stack ubt0 hook + dev=ubt0 + shift + hook=hook + shift + /usr/sbin/ngctl mkpeer ubt0: hci hook drv + /usr/sbin/ngctl name ubt0:hook ubt0hci + /usr/sbin/ngctl msg ubt0hci: set_debug 3 + /usr/sbin/ngctl mkpeer ubt0hci: l2cap acl hci + /usr/sbin/ngctl name ubt0hci:acl ubt0l2cap + /usr/sbin/ngctl msg ubt0l2cap: set_debug 3 + /usr/sbin/ngctl connect ubt0hci: btsock_hci_raw: raw ubt0raw + /usr/sbin/ngctl connect ubt0l2cap: btsock_l2c_raw: ctl ubt0ctl + /usr/sbin/ngctl connect ubt0l2cap: btsock_l2c: l2c ubt0l2c + /usr/sbin/hccontrol -n ubt0hci reset + /usr/sbin/hccontrol -n ubt0hci read_bd_addr BD_ADDR: 00:0d:f0:2d:1d:e9 + /usr/sbin/hccontrol -n ubt0hci read_local_supported_features Features: 0xff 0xff 0x8f 0xf8 0x18 0x18 00 0x80 <3-Slot> <5-Slot> + /usr/sbin/hccontrol -n ubt0hci read_buffer_size Max. ACL packet size: 192 bytes Number of ACL packets: 8 Max. SCO packet size: 64 bytes Number of SCO packets: 8 + /usr/sbin/hccontrol -n ubt0hci write_scan_enable 3 + /usr/sbin/hccontrol -n ubt0hci write_class_of_device ff:01:0c + uname -n + /usr/sbin/hccontrol -n ubt0hci change_local_name gahrtop.localhost (ubt0) + /usr/sbin/hccontrol -n ubt0hci initialize Now, the weird thing is that in both cases, the kernel modules being loaded are the same: 8 1 0xc727f000 7000 ng_ubt.ko 9 4 0xc7286000 b000 netgraph.ko 10 4 0xc7295000 2000 ng_bluetooth.ko 11 1 0xc7297000 d000 ng_hci.ko 12 1 0xc72a4000 10000 ng_l2cap.ko 13 1 0xc72b4000 19000 ng_btsocket.ko and also the relevant outputs in /var/log/messages are the same: ubt0: vendor 0x0a12 product 0x0001, rev 2.00/15.93, addr 2 ubt0: vendor 0x0a12 product 0x0001, rev 2.00/15.93, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 What I would like to know is: 1) why doesn't netgraph/netgraph and netgraph/bluetooth suffice? 2) what else should I include, if I want to avoid compiling the whole /sys/modules/netgraph directory? Thanks in advance! Please CC me since I'm not on the list! -- Pietro Cerutti - ASCII Ribbon Campaign - against HTML e-mail and proprietary attachments www.asciiribbon.org From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 11:35:35 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BE57F16A402 for ; Wed, 7 Mar 2007 11:35:35 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by mx1.freebsd.org (Postfix) with ESMTP id 3EC1413C4C7 for ; Wed, 7 Mar 2007 11:35:35 +0000 (UTC) (envelope-from geek.dwells@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so482811ugh for ; Wed, 07 Mar 2007 03:35:34 -0800 (PST) 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; b=t1k58eRBDzj2vg0Y+Chv+lX6xyKvKiORyPaZEVRMwJSkCj3b1u4LfmNWc1jWnlvoAXzl1IfMAPr+Uvcrtknlzl43sDNXM76utVWoyywmaCF3Lf/yUmzZhRK0cRAkmXJ1nzv/iIE8zhMzatX3WKpeIORtCiIAPkckkRr0prFf6ws= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=UAMkFSJLTQxx91w6uH5rijIT8Zl75PWuwBgKbXO5OR4rBA/Gx1yloAUoKfuQpfkW9/sRUqJZeGQHtGdbOv53WzcMbUGp6wT2MmmNQKvIbXBs7KWPXqnwmTVZD+QMKlMZexrC8wczwcpS5Wm0bosOXNDHMK8rwrQmbhLEpFS/XIk= Received: by 10.114.153.18 with SMTP id a18mr2126051wae.1173267332863; Wed, 07 Mar 2007 03:35:32 -0800 (PST) Received: by 10.115.17.9 with HTTP; Wed, 7 Mar 2007 03:35:32 -0800 (PST) Message-ID: Date: Wed, 7 Mar 2007 17:05:32 +0530 From: "ajay gopalakrishnan" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Installation issues on Vmware 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, 07 Mar 2007 11:35:35 -0000 hi, GUI,colors,Screen size not coming correctly on FreeBSD Release-6.2 installed on Vmware. I think my xorgconfig is incorrect. I dont know the HSync and VSync values of my notebook monitor. My notebook config: HP Pavillion dv6000 series Nvidia GForce Go7400 - 256MB Max Resolution: 1280x800 How should i resolve this issue? Thanks, Ajay. From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 15:38:45 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3113016A402 for ; Wed, 7 Mar 2007 15:38:45 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id A2F4413C4AA for ; Wed, 7 Mar 2007 15:38:44 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (fgjajc@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l27FcV2O036027; Wed, 7 Mar 2007 16:38:36 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l27FcVBG036009; Wed, 7 Mar 2007 16:38:31 +0100 (CET) (envelope-from olli) Date: Wed, 7 Mar 2007 16:38:31 +0100 (CET) Message-Id: <200703071538.l27FcVBG036009@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, freebsd-hackers@adam.gs In-Reply-To: <4D3F70BA-53C3-4A22-99F4-728592F2DB84@adam.gs> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 07 Mar 2007 16:38:36 +0100 (CET) Cc: Subject: Re: FreeBSD available disk space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, freebsd-hackers@adam.gs List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Mar 2007 15:38:45 -0000 Adam Jacob Muller wrote: > When using php's disk_free_space() function to determine the amount > of free space on a partition that has a negative amount of free > space, PHP returns an unreasonably large number, for example: > > > > [root@cube]# php -r 'var_dump(disk_free_space("/some/partition/ > > > with/negative/free/space"));' > > > float(3.7778931863E+22) > > this is the comment from one of the PHP developers who has been > helping me to debug this issue: > > > Well, this is actually quite interesting. > > The problem is that according to POSIX statvfs struct's field > > f_bavail must be . > > But FreeBSD stores negative values in this field and I don't see > > any hint on how to detect if this is a negative value or just a > > huge positive one. > > I can of course cast it to signed long, but that would effectively > > break it on other platforms, which do conform POSIX standard and do > > not store negative values in unsigned variables. > > > > I guess FreeBSD developers might help here, since that should be a > > known problem for them. > > as well as: > > > I can see that libstatgrab uses #ifdef's for all *BSD flavours and > > casts f_bavail to (long long). > > Not sure if this is the correct solution, my previous suspicions > > that it may not work with really big filesystems still aply. Well, POSIX doesn't specify at all how the values are to interpreted. It's up to the implementation to fill them with numbers that are useful, and the FreeBSD developers decided that the f_bavail value could be negative, so they reflect the numbers from the df(1) output correctly. Therefore, FreeBSD is in conformance with the strict letter of the POSIX standard. One possible solution would be to look at both the f_bfree and f_bavail numbers. If the former is less than the latter, then f_bavail obviously needs to be interpreted as a signed value. But even simply interpreting it as a signed value in every case won't break anything, even "with really big file- systems". A signed long long will handle as much as 2^63 (minus one, to be exact) which is 8 EB (exabyte), which is 8 million TB. Yeah, sure, I know "640 KB should be enough for everybody" and so on, but I honestly doubt that a file system of 8 million TB will exist in the near future. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd I suggested holding a "Python Object Oriented Programming Seminar", but the acronym was unpopular. -- Joseph Strout From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 16:21:50 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C3A0316A404 for ; Wed, 7 Mar 2007 16:21:50 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 580CA13C4B3 for ; Wed, 7 Mar 2007 16:21:49 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so223560nfc for ; Wed, 07 Mar 2007 08:21:49 -0800 (PST) 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=P2fRVf91p/2orLjl2snYfT+FFgm5UqosC3Vgp/YUx5b7Be6ZhiqBnHDqjvD/J4Ie5J4XtO9sOuhdbbV/8zN7BvCEE1PIJ7hVwU+Lc6gpHoQDHu0vp0c06rVsMhC82IsPIifdatVwzP5TvgsJIxQjsY++o+gHNIF9dr4/T5HM85A= 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=oFzm/XlOyt73kZWcuDZidLbf+eMJm4Zq8Wh0ZiKf6HrFJ71t2ct6g44wYqM0JnPNQ+nko+SzJo6W+RqBgDDAjONEbxgb+HySt/S8vG/W+tEtkjNAzHyc9DOXuvU+py9z6ugzx0oI0kQMJd010AbvV1R/TwySpPT3E9O75Kjj+YQ= Received: by 10.82.114.3 with SMTP id m3mr9534574buc.1173282851372; Wed, 07 Mar 2007 07:54:11 -0800 (PST) Received: by 10.82.155.14 with HTTP; Wed, 7 Mar 2007 07:54:11 -0800 (PST) Message-ID: Date: Wed, 7 Mar 2007 12:54:11 -0300 From: "Eduardo Meyer" To: hackers@freebsd.org, current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: How PMAP_SHPGPERPROC relate to vm.v_free_min, vm.v_free_reserved and vm.v_free_target? 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, 07 Mar 2007 16:21:50 -0000 Heavy Apache usage is demanding a higher PMAP_SHPGPERPROC kernel option in my system. However I keep getting the NOTES-documented panic at boot time, meaning I need to adequately do vm.v_free_min, vm.v_free_reserved and vm.v_free_target sysctl tuning. However, this sysctl vars dont have a description and I simply can't find any further documentation regarding how the vars relate among themselves and how they related to PMAP_SHPGPERPROC. Can anyone please explain some basics about how they relate and how I can do the tuning? It is a 5.5-STABLE with 9GB of memory and PAE enable (sure). Hackers' feedback or sysadmins' personal experiences are heavily appreciated. Sorry for cross-posting, I was not sure which list was more adequated. -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 16:53:43 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E6BC916A405; Wed, 7 Mar 2007 16:53:43 +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 93BBC13C4AA; Wed, 7 Mar 2007 16:53:43 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.pgh.priv.collaborativefusion.com (vanquish.pgh.priv.collaborativefusion.com [192.168.2.61]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Wed, 07 Mar 2007 11:43:41 -0500 id 0005641C.45EEEBBD.00004F80 Date: Wed, 7 Mar 2007 11:43:38 -0500 From: Bill Moran To: "Eduardo Meyer" Message-Id: <20070307114338.344304f9.wmoran@collaborativefusion.com> In-Reply-To: References: Organization: Collaborative Fusion X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.9; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org, current@freebsd.org Subject: Re: How PMAP_SHPGPERPROC relate to vm.v_free_min, vm.v_free_reserved and vm.v_free_target? 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, 07 Mar 2007 16:53:44 -0000 In response to "Eduardo Meyer" : > Heavy Apache usage is demanding a higher PMAP_SHPGPERPROC kernel > option in my system. However I keep getting the NOTES-documented panic > at boot time, meaning I need to adequately do vm.v_free_min, > vm.v_free_reserved and vm.v_free_target sysctl tuning. > > However, this sysctl vars dont have a description and I simply can't > find any further documentation regarding how the vars relate among > themselves and how they related to PMAP_SHPGPERPROC. Can anyone please > explain some basics about how they relate and how I can do the tuning? > > It is a 5.5-STABLE with 9GB of memory and PAE enable (sure). > > Hackers' feedback or sysadmins' personal experiences are heavily appreciated. How high did you raise PMAP_SHPGPERPROC? We raised it to 250 on our stock PostgreSQL systems and did not have to tweak any other values. Note that we're running 6.x on these systems, so YMMV. > Sorry for cross-posting, I was not sure which list was more adequate. Probably -hackers@. Although I would have started with -questions@ -- Bill Moran Collaborative Fusion Inc. From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 17:24:45 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4C52616A402 for ; Wed, 7 Mar 2007 17:24:45 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.190]) by mx1.freebsd.org (Postfix) with ESMTP id B40A613C478 for ; Wed, 7 Mar 2007 17:24:44 +0000 (UTC) (envelope-from dudu.meyer@gmail.com) Received: by mu-out-0910.google.com with SMTP id g7so253051muf for ; Wed, 07 Mar 2007 09:24:42 -0800 (PST) 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=ASuC34byBS/A0VMrdznfweHF7xou1kKiAmviIYCWpBN0s6L6k4Mc5IkroHbPxrTSs8506vlNCGQt+dsKPwNa2Ct7LNXU79DLZgaBl4Ahas+hlMU+lxRU8wHcuf6fLyp2Wctd/s4ypvFFLL2WcYFFRi/hLZ1sBal0xJdL0/LYKiE= 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=MR2P/WSrzOWRixT7VNNDmOlfJ5JmIHvKxVW+eZodTfkR4USGqZCSsMzU+xPygspmKluS5P7MzOx2t9eMt9BITOJ6E3RbwFoV/UQe8vIkXt13i0NmA+wbp8Hf75FyBCdjSbE+NISaYxp4wlrh6xbHCr3dUSba6vwVA475m2nQgv8= Received: by 10.82.163.13 with SMTP id l13mr9682746bue.1173288282285; Wed, 07 Mar 2007 09:24:42 -0800 (PST) Received: by 10.82.155.14 with HTTP; Wed, 7 Mar 2007 09:24:41 -0800 (PST) Message-ID: Date: Wed, 7 Mar 2007 14:24:41 -0300 From: "Eduardo Meyer" To: "Bill Moran" In-Reply-To: <20070307114338.344304f9.wmoran@collaborativefusion.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070307114338.344304f9.wmoran@collaborativefusion.com> Cc: hackers@freebsd.org, current@freebsd.org Subject: Re: How PMAP_SHPGPERPROC relate to vm.v_free_min, vm.v_free_reserved and vm.v_free_target? 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, 07 Mar 2007 17:24:45 -0000 > > Heavy Apache usage is demanding a higher PMAP_SHPGPERPROC kernel > > option in my system. However I keep getting the NOTES-documented panic > > at boot time, meaning I need to adequately do vm.v_free_min, > > vm.v_free_reserved and vm.v_free_target sysctl tuning. > > > > However, this sysctl vars dont have a description and I simply can't > > find any further documentation regarding how the vars relate among > > themselves and how they related to PMAP_SHPGPERPROC. Can anyone please > > explain some basics about how they relate and how I can do the tuning? > > > > It is a 5.5-STABLE with 9GB of memory and PAE enable (sure). > > > > Hackers' feedback or sysadmins' personal experiences are heavily appreciated. > > How high did you raise PMAP_SHPGPERPROC? We raised it to 250 on our > stock PostgreSQL systems and did not have to tweak any other values. > > Note that we're running 6.x on these systems, so YMMV. > > > Sorry for cross-posting, I was not sure which list was more adequate. > > Probably -hackers@. Although I would have started with -questions@ > > -- > Bill Moran > Collaborative Fusion Inc. > Mr Moran, did you set up any other sysctl mib such as the mentioned ones? I have raised it to "500". If I set lower values, around 400 I start getting a huge flood of: collecting pv entries -- suggest increasing PMAP_SHPGPERPROC collecting pv entries -- suggest increasing PMAP_SHPGPERPROC Specially on "apachectl graceful" signaling. If I raise it over 500 my system panics on boot. I still get "collecting pv entries -- suggest increasing PMAP_SHPGPERPROC" at the current setup value, however not very often. -- =========== Eduardo Meyer pessoal: dudu.meyer@gmail.com profissional: ddm.farmaciap@saude.gov.br From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 22:38:46 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EB29016A408 for ; Wed, 7 Mar 2007 22:38:46 +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 A999B13C4BA for ; Wed, 7 Mar 2007 22:38:46 +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 C7961213F; Wed, 7 Mar 2007 23:38:42 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id B72BD2136; Wed, 7 Mar 2007 23:38:42 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id 2DE37B88E; Wed, 7 Mar 2007 23:38:42 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Mike Meyer References: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk> <17896.23312.980989.68558@bhuda.mired.org> Date: Wed, 07 Mar 2007 23:38:42 +0100 In-Reply-To: <17896.23312.980989.68558@bhuda.mired.org> (Mike Meyer's message of "Fri, 2 Mar 2007 12:12:48 -0500") Message-ID: <86lki8u1al.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Steven Hartland Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 07 Mar 2007 22:38:47 -0000 Mike Meyer writes: > Steven Hartland writes: > > Another observation from my recent dealings with using > > NFS based /usr is that the remote critical mounts via > > nfs dont always give the network enough time to > > initialise before running. The first error displayed > > is: > > Mounting NFS file systems:mount_nfs: nfs1: hostname nor servname provid= ed, or not known > > [...] > How about an extra flag in your fstab? The default behavior for > mount_nfs is to keep retrying until the mount succeeds. No, it will fail immediately (as seen above) if it can't resolve the server name. The only way to fix this is to modify mount_nfs to sleep and retry in such cases. The *current* sleep-and-retry code is in the NFS mount code in the kernel, which doesn't come into play until after DNS lookup. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 19:50:37 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4350616A404 for ; Wed, 7 Mar 2007 19:50:37 +0000 (UTC) (envelope-from peter_holmes2003@yahoo.com) Received: from web32910.mail.mud.yahoo.com (web32910.mail.mud.yahoo.com [209.191.69.110]) by mx1.freebsd.org (Postfix) with SMTP id E42F513C467 for ; Wed, 7 Mar 2007 19:50:36 +0000 (UTC) (envelope-from peter_holmes2003@yahoo.com) Received: (qmail 87549 invoked by uid 60001); 7 Mar 2007 19:23:55 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=hKSzZAUVoRDk9ZUb6GIEIjyILAuv+aarf4DxESO6zqyVMK6rFGThmW3D9BEtkeID0RTP5vY3d4x/B/pohChFeKxUA4t170nRDwowZZQsk+EE264SXqmegz+53C18hqfQpizdde2N2By36GJoB96HfH9Dmp84JOzF+8Q2RLuifwE=; X-YMail-OSG: I2aZKC0VM1klcEmgXyghsTSdfAl2zaErQbJ3GniohViecDI1fWw3BbsX419HS2ujJIuBRszhai9Wq4CSGgwr7PKGNqwoCELx7ckUJnSF0zBlClLAygYtsFdTSCjPrDMFumBZDI71aoQSUGm4Ve_aCHiEKw-- Received: from [66.129.224.36] by web32910.mail.mud.yahoo.com via HTTP; Wed, 07 Mar 2007 11:23:54 PST Date: Wed, 7 Mar 2007 11:23:54 -0800 (PST) From: Peter Holmes To: hackers@freebsd.org MIME-Version: 1.0 Message-ID: <90458.71803.qm@web32910.mail.mud.yahoo.com> X-Mailman-Approved-At: Wed, 07 Mar 2007 22:56:01 +0000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: SMP Kernel profiling 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, 07 Mar 2007 19:50:37 -0000 Just wanted to know if kernel profiling with gprof is known to work reliably with SMP kernels. Thanks, Peter --------------------------------- Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out. From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 23:19:33 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2FA7116A400 for ; Wed, 7 Mar 2007 23:19:33 +0000 (UTC) (envelope-from emaste@phaedrus.sandvine.ca) Received: from gw.sandvine.com (sandvine.com [199.243.201.138]) by mx1.freebsd.org (Postfix) with ESMTP id E2C0113C48E for ; Wed, 7 Mar 2007 23:19:32 +0000 (UTC) (envelope-from emaste@phaedrus.sandvine.ca) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by gw.sandvine.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 7 Mar 2007 18:07:31 -0500 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id 8C54511708; Wed, 7 Mar 2007 18:07:31 -0500 (EST) Date: Wed, 7 Mar 2007 18:07:31 -0500 From: Ed Maste To: freebsd-hackers@freebsd.org Message-ID: <20070307230731.GA71684@sandvine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 07 Mar 2007 23:07:31.0770 (UTC) FILETIME=[6275B9A0:01C7610D] Subject: Hung kernel from sysv semaphore semu_list corruption 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, 07 Mar 2007 23:19:33 -0000 Nightly tests on our 6.1-based installation using pgsql have resulted in a number of kernel hangs, due to a corrupt semu_list (the list ended up with a loop). It seems there are a few holes in the locking in the semaphore code. The issue we've encountered comes from semexit_myhook. It obtains a pointer to a list element after acquiring SEMUNDO_LOCK, and after dropping the lock manipulates the next pointer to remove the element from the list. The fix below solves our current problem. Any comments? --- RELENG_6/src/sys/kern/sysv_sem.c Tue Jun 7 01:03:27 2005 +++ swbuild_plt_boson/src/sys/kern/sysv_sem.c Tue Mar 6 16:13:45 2007 @@ -1259,16 +1259,17 @@ struct proc *p; { struct sem_undo *suptr; - struct sem_undo **supptr; /* * Go through the chain of undo vectors looking for one * associated with this process. */ SEMUNDO_LOCK(); - SLIST_FOREACH_PREVPTR(suptr, supptr, &semu_list, un_next) { - if (suptr->un_proc == p) + SLIST_FOREACH(suptr, &semu_list, un_next) { + if (suptr->un_proc == p) { + SLIST_REMOVE(&semu_list, suptr, sem_undo, un_next); break; + } } SEMUNDO_UNLOCK(); @@ -1328,8 +1329,9 @@ * Deallocate the undo vector. */ DPRINTF(("removing vector\n")); + SEMUNDO_LOCK(); suptr->un_proc = NULL; - *supptr = SLIST_NEXT(suptr, un_next); + SEMUNDO_UNLOCK(); } static int From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 23:47:12 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id AEC2B16A405 for ; Wed, 7 Mar 2007 23:47:12 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail4out.barnet.com.au (mail4.barnet.com.au [202.83.178.125]) by mx1.freebsd.org (Postfix) with ESMTP id 2A32013C4A6 for ; Wed, 7 Mar 2007 23:47:11 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail4out.barnet.com.au (Postfix, from userid 1001) id 2794237CAA1; Thu, 8 Mar 2007 10:31:21 +1100 (EST) X-Viruscan-Id: <45EF4B48000004BE14289B@BarNet> Received: from mail4auth.barnet.com.au (mail4.barnet.com.au [202.83.178.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail4.barnet.com.au (Postfix) with ESMTP id AEA99422089; Thu, 8 Mar 2007 10:31:20 +1100 (EST) Received: from k7.mavetju (k7.mavetju.org [10.251.1.18]) by mail4auth.barnet.com.au (Postfix) with ESMTP id 6EF5137CA95; Thu, 8 Mar 2007 10:31:20 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 34A1A123; Thu, 8 Mar 2007 10:31:20 +1100 (EST) Date: Thu, 8 Mar 2007 10:31:20 +1100 From: Edwin Groothuis To: Ed Maste Message-ID: <20070307233120.GE90167@k7.mavetju> Mail-Followup-To: Edwin Groothuis , Ed Maste , freebsd-hackers@freebsd.org References: <20070307230731.GA71684@sandvine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070307230731.GA71684@sandvine.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Hung kernel from sysv semaphore semu_list corruption 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, 07 Mar 2007 23:47:12 -0000 On Wed, Mar 07, 2007 at 06:07:31PM -0500, Ed Maste wrote: > Nightly tests on our 6.1-based installation using pgsql have resulted in > a number of kernel hangs, due to a corrupt semu_list (the list ended up > with a loop). Sounds like an issue we have for a long time. Unfortunately it only happens on the active database, not on the replicated ones. Once it is blessed I'm going to try it. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/ From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 7 23:55:01 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 894EB16A402; Wed, 7 Mar 2007 23:55:01 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 9D34F13C48D; Wed, 7 Mar 2007 23:55:00 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from archangel.daleco.biz ([69.27.149.254]) by ezekiel.daleco.biz (8.13.4/8.13.1) with ESMTP id l27NYAjE029186; Wed, 7 Mar 2007 17:34:10 -0600 (CST) (envelope-from kdk@daleco.biz) Message-ID: <45EF4BEC.5060705@daleco.biz> Date: Wed, 07 Mar 2007 17:34:04 -0600 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2pre) Gecko/20070221 SeaMonkey/1.1 MIME-Version: 1.0 To: Steven Hartland References: <00cb01c75c5b$4205e390$b3db87d4@multiplay.co.uk> <45E82660.4030107@freebsd.org> <008101c75cd1$42a4df10$b3db87d4@multiplay.co.uk> <45E830A8.8020104@freebsd.org> <20070302144409.GA4431@icarus.home.lan> <00eb01c75ce0$b0430380$b3db87d4@multiplay.co.uk> <20070302162042.GA6019@icarus.home.lan> <017901c75cec$4a20f6a0$b3db87d4@multiplay.co.uk> <20070302212506.GA9990@icarus.home.lan> <003c01c75d1c$972fd3f0$b3db87d4@multiplay.co.uk> In-Reply-To: <003c01c75d1c$972fd3f0$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Jeremy Chadwick , freebsd-stable@freebsd.org Subject: Re: sysinstall creates corrupt filesystems after repartitioning 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, 07 Mar 2007 23:55:01 -0000 Steven Hartland wrote: > Jeremy Chadwick wrote: > ... >> Is there something I'm missing? > > I can't see anything missing there from the reproduction steps. > > Was ad0s1g also ok? The slight differences I did here where > the following but I cant seem them being significant: > 1. dump -a0uL -C 32 -f /nfs/usr.dmp /usr > 2. restore rf usr.dmp > 3. fstab entry: /nfs/usr -maproot=root testbox > > Other differences which spring to mind: > 1. machines where both using areca controllers on RAID6 arrays. > 2. This was a real machine and not a VM > > One other thing of note when I first repaired this I booted from > Install Disk #1 and used the same procedure for the sysinstall > part from fixit and no corruption occured. > Pardon me showing up on hackers@ (I ain't one), but I have to ask .... So, when you do this, you are using /stand/sysinstall, or **/usr**/sbin/sysinstall? Kevin Kinsey -- God made the integers; all else is the work of Man. -- Kronecker From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 00:08:02 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CAB5B16A401; Thu, 8 Mar 2007 00:08:02 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 13BAB13C428; Thu, 8 Mar 2007 00:08:01 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003593209.msg; Thu, 08 Mar 2007 00:03:08 +0000 Message-ID: <000c01c76115$210c2500$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Kevin Kinsey" References: <00cb01c75c5b$4205e390$b3db87d4@multiplay.co.uk> <45E82660.4030107@freebsd.org> <008101c75cd1$42a4df10$b3db87d4@multiplay.co.uk> <45E830A8.8020104@freebsd.org> <20070302144409.GA4431@icarus.home.lan> <00eb01c75ce0$b0430380$b3db87d4@multiplay.co.uk> <20070302162042.GA6019@icarus.home.lan> <017901c75cec$4a20f6a0$b3db87d4@multiplay.co.uk> <20070302212506.GA9990@icarus.home.lan><003c01c75d1c$972fd3f0$b3db87d4@multiplay.co.uk> <45EF4BEC.5060705@daleco.biz> Date: Thu, 8 Mar 2007 00:02:48 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Thu, 08 Mar 2007 00:03:09 +0000 X-MDAV-Processed: multiplay.co.uk, Thu, 08 Mar 2007 00:03:10 +0000 Cc: freebsd-hackers@freebsd.org, Jeremy Chadwick , freebsd-stable@freebsd.org Subject: Re: sysinstall creates corrupt filesystems after repartitioning 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, 08 Mar 2007 00:08:02 -0000 Kevin Kinsey wrote: > Pardon me showing up on hackers@ (I ain't one), but I have > to ask .... > > So, when you do this, you are using /stand/sysinstall, or > **/usr**/sbin/sysinstall? /usr/sbin/sysinstall as /stand doesnt exist on recent versions of FreeBSD. Although I see where you are going and that's already been covered by the discussion about /data Besides the bin is in memory by that time so shouldn't be affected by the "loss" of /usr anyway. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 04:34:17 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 143E216A405 for ; Thu, 8 Mar 2007 04:34:17 +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 9537E13C4AA for ; Thu, 8 Mar 2007 04:34:16 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 27111 invoked by uid 1001); 8 Mar 2007 04:35:55 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Wed, 07 Mar 2007 23:35:55 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <17903.37547.207909.316479@bhuda.mired.org> Date: Wed, 7 Mar 2007 23:35:55 -0500 To: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) In-Reply-To: <86lki8u1al.fsf@dwp.des.no> References: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk> <17896.23312.980989.68558@bhuda.mired.org> <86lki8u1al.fsf@dwp.des.no> X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.1.5 (Fettercairn) From: Mike Meyer Cc: freebsd-hackers@freebsd.org, Steven Hartland Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 08 Mar 2007 04:34:17 -0000 In <86lki8u1al.fsf@dwp.des.no>, Dag-Erling Sm=F8rgrav type= d: > Mike Meyer writes: > > Steven Hartland writes: > > > Another observation from my recent dealings with using > > > NFS based /usr is that the remote critical mounts via > > > nfs dont always give the network enough time to > > > initialise before running. The first error displayed > > > is: > > > Mounting NFS file systems:mount_nfs: nfs1: hostname nor servname = provided, or not known > > > [...] > > How about an extra flag in your fstab? The default behavior for > > mount_nfs is to keep retrying until the mount succeeds. >=20 > No, it will fail immediately (as seen above) if it can't resolve the > server name. The only way to fix this is to modify mount_nfs to slee= p > and retry in such cases. The *current* sleep-and-retry code is in th= e > NFS mount code in the kernel, which doesn't come into play until afte= r > DNS lookup. In that case, there's a bug in the mount_nfs man page, which just says that it keeps retrying until it succeeds. PR #110062 =09=09=09http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more informatio= n. From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 07:26:02 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8E8F316A400 for ; Thu, 8 Mar 2007 07:26:02 +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 4E4F013C4CE for ; Thu, 8 Mar 2007 07:26:02 +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 DFCFD2087; Thu, 8 Mar 2007 08:25:55 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: 0.0/3.0 X-Spam-Checker-Version: SpamAssassin 3.1.7 (2006-10-05) on tim.des.no Received: from dwp.des.no (des.no [80.203.243.180]) by tim.des.no (Postfix) with ESMTP id CF8882085; Thu, 8 Mar 2007 08:25:55 +0100 (CET) Received: by dwp.des.no (Postfix, from userid 1001) id AE7A7B88E; Thu, 8 Mar 2007 08:25:55 +0100 (CET) From: des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=) To: Mike Meyer References: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk> <17896.23312.980989.68558@bhuda.mired.org> <86lki8u1al.fsf@dwp.des.no> <17903.37547.207909.316479@bhuda.mired.org> Date: Thu, 08 Mar 2007 08:25:55 +0100 In-Reply-To: <17903.37547.207909.316479@bhuda.mired.org> (Mike Meyer's message of "Wed, 7 Mar 2007 23:35:55 -0500") Message-ID: <86fy8gw60s.fsf@dwp.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org, Steven Hartland Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 08 Mar 2007 07:26:02 -0000 Mike Meyer writes: > Dag-Erling Sm=F8rgrav writes: > > Mike Meyer writes: > > > How about an extra flag in your fstab? The default behavior for > > > mount_nfs is to keep retrying until the mount succeeds. > > No, it will fail immediately (as seen above) if it can't resolve the > > server name. The only way to fix this is to modify mount_nfs to sleep > > and retry in such cases. The *current* sleep-and-retry code is in the > > NFS mount code in the kernel, which doesn't come into play until after > > DNS lookup. > In that case, there's a bug in the mount_nfs man page, which just says > that it keeps retrying until it succeeds. PR #110062 Technically, that's correct if you specify the server by IP address or have it listed in /etc/hosts... but I guess the man page could be clearer. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 10:11:36 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2CF0616A403 for ; Thu, 8 Mar 2007 10:11:36 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id B874113C48D for ; Thu, 8 Mar 2007 10:11:35 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l289tNPB015566 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 8 Mar 2007 10:55:23 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l289tMTZ015565; Thu, 8 Mar 2007 10:55:22 +0100 (CET) Date: Thu, 8 Mar 2007 10:55:22 +0100 From: Divacky Roman To: Ed Maste Message-ID: <20070308095522.GA14973@stud.fit.vutbr.cz> References: <20070307230731.GA71684@sandvine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070307230731.GA71684@sandvine.com> User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: freebsd-hackers@freebsd.org Subject: Re: Hung kernel from sysv semaphore semu_list corruption 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, 08 Mar 2007 10:11:36 -0000 On Wed, Mar 07, 2007 at 06:07:31PM -0500, Ed Maste wrote: > Nightly tests on our 6.1-based installation using pgsql have resulted in > a number of kernel hangs, due to a corrupt semu_list (the list ended up > with a loop). > > It seems there are a few holes in the locking in the semaphore code. The > issue we've encountered comes from semexit_myhook. It obtains a pointer > to a list element after acquiring SEMUNDO_LOCK, and after dropping the > lock manipulates the next pointer to remove the element from the list. > > The fix below solves our current problem. Any comments? > > --- RELENG_6/src/sys/kern/sysv_sem.c Tue Jun 7 01:03:27 2005 > +++ swbuild_plt_boson/src/sys/kern/sysv_sem.c Tue Mar 6 16:13:45 2007 > @@ -1259,16 +1259,17 @@ > struct proc *p; > { > struct sem_undo *suptr; > - struct sem_undo **supptr; > > /* > * Go through the chain of undo vectors looking for one > * associated with this process. > */ > SEMUNDO_LOCK(); > - SLIST_FOREACH_PREVPTR(suptr, supptr, &semu_list, un_next) { > - if (suptr->un_proc == p) > + SLIST_FOREACH(suptr, &semu_list, un_next) { > + if (suptr->un_proc == p) { > + SLIST_REMOVE(&semu_list, suptr, sem_undo, un_next); this is wrong.. you cannot remove element from a *LIST when its iterated using *LIST_FOREACH. Use *LIST_FOREACH_SAFE instead... thnx for the patch! roman From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 06:57:59 2007 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3E4E816A402 for ; Thu, 8 Mar 2007 06:57:59 +0000 (UTC) (envelope-from rudyrockstar@hotmail.com) Received: from bay0-omc3-s16.bay0.hotmail.com (bay0-omc3-s16.bay0.hotmail.com [65.54.246.216]) by mx1.freebsd.org (Postfix) with ESMTP id 2B44213C4A3 for ; Thu, 8 Mar 2007 06:57:59 +0000 (UTC) (envelope-from rudyrockstar@hotmail.com) Received: from hotmail.com ([207.46.8.113]) by bay0-omc3-s16.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Wed, 7 Mar 2007 22:45:59 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 7 Mar 2007 22:45:59 -0800 Message-ID: Received: from 207.46.8.123 by by117fd.bay117.hotmail.msn.com with HTTP; Thu, 08 Mar 2007 06:45:54 GMT X-Originating-IP: [66.110.197.20] X-Originating-Email: [rudyrockstar@hotmail.com] X-Sender: rudyrockstar@hotmail.com From: "Rudy Rockstar" To: hackers@FreeBSD.org Date: Thu, 08 Mar 2007 01:45:54 -0500 X-OriginalArrivalTime: 08 Mar 2007 06:45:59.0406 (UTC) FILETIME=[6E49E0E0:01C7614D] X-Mailman-Approved-At: Thu, 08 Mar 2007 12:23:09 +0000 MIME-Version: 1.0 Content-Type: text/plain; format="flowed" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: harddrive no memory ---FreeBSD scenario 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, 08 Mar 2007 06:57:59 -0000 If I had say a 15k rpm drive, would it be possible to configure the FreeBSD kernel to not use system memory and ONLY the hard drive for caching instructions and executing operations? Can FreeBSD be built to run on a system memory free system (can we also circumvent the system cache for that matter), if not is it very difficult to make it run on such a systemme. regardz, ~Rudy _____________________________________________ .!@#$%&% ---_---- http://www.[1]rudyrockstar.com -_-----_--------_--- ------------------------------------------------------ ----------------- -----------CELLY--678.984.3831: RiP 1997 -2004---- -AIM:rudyrockstar- ------- ----------- --------- -ICQ:6636643-- --- -- -- --------------- -------- -YahoO:rudyrockstar- ----------- --------------------- -MSN:rudyrockstar@hotmail.com ------------------------ ~~~~~~~!~!~~~~~~~~~!~~~~~~~~~~~~~~~!~~~~~~~!!!!~~~~~~~ _________________________________________________________________ [2]Find what you need at prices youll love. Compare products and save at MSN® Shopping. References 1. http://www.rudyrockstar.com/ 2. http://g.msn.com/8HMAENUS/2728??PS=47575 From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 14:04:13 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 95CCC16A404 for ; Thu, 8 Mar 2007 14:04:13 +0000 (UTC) (envelope-from devon.odell@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.170]) by mx1.freebsd.org (Postfix) with ESMTP id F020213C442 for ; Thu, 8 Mar 2007 14:04:12 +0000 (UTC) (envelope-from devon.odell@gmail.com) Received: by ug-out-1314.google.com with SMTP id 71so897006ugh for ; Thu, 08 Mar 2007 06:04:12 -0800 (PST) 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=SatLkMae8ZFlmgDelBlsCXWhnD3vHLDJtTUDrTtCWbCFtb0efTpQMghoclhSe3xhSqw9cqdavgS6LoeBIE6eYSmyJRqjMtS85pH/jf5ZEdQMPUp9q+AIsTDoIzP2G6RpzBVoI4O0SPTuTGqi6jv5YnZ5L0bY0cJglVZN+bu+7cs= 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=N3M26dGOAHL7/24p4JPYC4ZMnyRlLkPZA0qOaVlfQLmjAHMR8qgNG0B61q7Lk7Ms5ShXySJFJXvxwbzpvZHsVISeXDv2LxzNphU0RlLu0uTMGZKLBsGPUQ2CDYVaom/8pxVP3ouFqJjdk5NR7Rk4qc/tI5wKhojy+7QtJ37+LOU= Received: by 10.66.243.2 with SMTP id q2mr6963726ugh.1173361034419; Thu, 08 Mar 2007 05:37:14 -0800 (PST) Received: by 10.66.244.4 with HTTP; Thu, 8 Mar 2007 05:37:14 -0800 (PST) Message-ID: <9ab217670703080537oec16256hb9275ff392d96098@mail.gmail.com> Date: Thu, 8 Mar 2007 08:37:14 -0500 From: "Devon H. O'Dell" To: "Rudy Rockstar" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: hackers@freebsd.org Subject: Re: harddrive no memory ---FreeBSD scenario 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, 08 Mar 2007 14:04:13 -0000 2007/3/8, Rudy Rockstar : > > If I had say a 15k rpm drive, would it be possible to configure the > FreeBSD kernel to not use system memory and ONLY the hard drive for > caching instructions and executing operations? No, probably not. Also, a 15K RPM drive still isn't very fast (compared to RAM) > Can FreeBSD be built to run on a system memory free system (can we > also circumvent the system cache for that matter), if not is it very > difficult to make it run on such a systemme. Apart from wondering how you're getting the motherboard to get past POST without RAM, I'm wondering how you'd get the bootloader and kernel to load in a RAM-less system. You could probably do it for a system with a minimal amount of RAM and let (most) everything run in swap, but that's just going to be ridiculously slow. > regardz, > ~Rudy Any particular reason you're looking into doing this? Kind regards, Devon H. O'Dell > _____________________________________________ .!@#$%&% > ---_---- http://www.[1]rudyrockstar.com -_-----_--------_--- > ------------------------------------------------------ > ----------------- > -----------CELLY--678.984.3831: RiP 1997 -2004---- > -AIM:rudyrockstar- ------- ----------- --------- > -ICQ:6636643-- --- -- -- --------------- -------- > -YahoO:rudyrockstar- ----------- --------------------- > -MSN:rudyrockstar@hotmail.com ------------------------ > ~~~~~~~!~!~~~~~~~~~!~~~~~~~~~~~~~~~!~~~~~~~!!!!~~~~~~~ > _________________________________________________________________ > > [2]Find what you need at prices youll love. Compare products and save > at MSN(r) Shopping. > > References > > 1. http://www.rudyrockstar.com/ > 2. http://g.msn.com/8HMAENUS/2728??PS=47575 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 14:08:16 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F1DD416A401 for ; Thu, 8 Mar 2007 14:08:16 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 8982413C441 for ; Thu, 8 Mar 2007 14:08:16 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003594927.msg for ; Thu, 08 Mar 2007 14:04:06 +0000 Message-ID: <00c901c7618a$9b795630$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: =?iso-8859-1?Q?Dag-Erling_=22Sm=F8rgrav=22?= , "Mike Meyer" References: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk><17896.23312.980989.68558@bhuda.mired.org><86lki8u1al.fsf@dwp.des.no> <17903.37547.207909.316479@bhuda.mired.org> Date: Thu, 8 Mar 2007 14:03:45 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-Spam-Processed: multiplay.co.uk, Thu, 08 Mar 2007 14:04:07 +0000 X-MDAV-Processed: multiplay.co.uk, Thu, 08 Mar 2007 14:04:07 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 08 Mar 2007 14:08:17 -0000 Mike Meyer wrote: >> No, it will fail immediately (as seen above) if it can't resolve the >> server name. The only way to fix this is to modify mount_nfs to >> sleep and retry in such cases. The *current* sleep-and-retry code >> is in the NFS mount code in the kernel, which doesn't come into play >> until after DNS lookup. > > In that case, there's a bug in the mount_nfs man page, which just says > that it keeps retrying until it succeeds. PR #110062 Given that it sounds like a potential workaround is to use the machines IP instead of name until this is fixed, thanks for the info guys. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 14:42:49 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8179E16A415 for ; Thu, 8 Mar 2007 14:42:49 +0000 (UTC) (envelope-from emaste@phaedrus.sandvine.ca) Received: from gw.sandvine.com (sandvine.com [199.243.201.138]) by mx1.freebsd.org (Postfix) with ESMTP id 3DA6313C4A6 for ; Thu, 8 Mar 2007 14:42:47 +0000 (UTC) (envelope-from emaste@phaedrus.sandvine.ca) Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by gw.sandvine.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 8 Mar 2007 09:42:46 -0500 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id 38EAB11608; Thu, 8 Mar 2007 09:42:46 -0500 (EST) Date: Thu, 8 Mar 2007 09:42:46 -0500 From: Ed Maste To: Divacky Roman Message-ID: <20070308144245.GA69780@sandvine.com> References: <20070307230731.GA71684@sandvine.com> <20070308095522.GA14973@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070308095522.GA14973@stud.fit.vutbr.cz> User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 08 Mar 2007 14:42:46.0412 (UTC) FILETIME=[096494C0:01C76190] Cc: freebsd-hackers@freebsd.org Subject: Re: Hung kernel from sysv semaphore semu_list corruption 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, 08 Mar 2007 14:42:49 -0000 On Thu, Mar 08, 2007 at 10:55:22AM +0100, Divacky Roman wrote: > this is wrong.. you cannot remove element from a *LIST when its iterated using *LIST_FOREACH. > Use *LIST_FOREACH_SAFE instead... We're not freeing the item in the loop so it would work unless QUEUE_MACRO_DEBUG is turned on to intentionally trash the link pointer on _REMOVE. You're right though it's not the correct approach. There's an efficiency issue with the previous patch anyhow in that SLIST_REMOVE walks the list again to find the element to remove. How about the patch below instead: Index: sysv_sem.c =================================================================== RCS file: /usr/cvs/src/sys/kern/sysv_sem.c,v retrieving revision 1.85 diff -u -r1.85 sysv_sem.c --- sysv_sem.c 22 Oct 2006 11:52:13 -0000 1.85 +++ sysv_sem.c 8 Mar 2007 14:22:43 -0000 @@ -1301,8 +1301,10 @@ */ SEMUNDO_LOCK(); SLIST_FOREACH_PREVPTR(suptr, supptr, &semu_list, un_next) { - if (suptr->un_proc == p) + if (suptr->un_proc == p) { + *supptr = SLIST_NEXT(suptr, un_next); break; + } } SEMUNDO_UNLOCK(); @@ -1362,8 +1364,9 @@ * Deallocate the undo vector. */ DPRINTF(("removing vector\n")); + SEMUNDO_LOCK(); suptr->un_proc = NULL; - *supptr = SLIST_NEXT(suptr, un_next); + SEMUNDO_UNLOCK(); } From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 15:22:34 2007 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BABE16A403 for ; Thu, 8 Mar 2007 15:22:34 +0000 (UTC) (envelope-from m@FreeBSD.org) Received: from esperanza.rebooten.de (esperanza.rebooten.de [83.136.81.141]) by mx1.freebsd.org (Postfix) with ESMTP id 629EB13C441 for ; Thu, 8 Mar 2007 15:22:33 +0000 (UTC) (envelope-from m@FreeBSD.org) Received: from [IPv6:::1] (esperanza.rebooten.de [83.136.81.141]) by esperanza.rebooten.de (8.13.6/8.13.6) with ESMTP id l28ErCtw034252; Thu, 8 Mar 2007 15:53:12 +0100 (CET) (envelope-from m@FreeBSD.org) In-Reply-To: <9ab217670703080537oec16256hb9275ff392d96098@mail.gmail.com> References: <9ab217670703080537oec16256hb9275ff392d96098@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <3DC2398C-8637-4FF1-90B4-3B752B3A496A@FreeBSD.org> Content-Transfer-Encoding: 7bit From: Markus Boelter Date: Thu, 8 Mar 2007 15:53:18 +0100 To: "Devon H. O'Dell" X-Mailer: Apple Mail (2.752.2) Cc: hackers@FreeBSD.org, Rudy Rockstar Subject: Re: harddrive no memory ---FreeBSD scenario 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, 08 Mar 2007 15:22:34 -0000 Hi! > Apart from wondering how you're getting the motherboard to get past > POST without RAM, I'm wondering how you'd get the bootloader and > [...] The guys at Linux/OpenBIOS did some Cache-as-RAM stuff. Maybe you can also put (burn) the kernel directly into the BIOS chip and bott with that kernel. This is just an idea out of my head - nothing tested and no research done in this field. :-) Cheers Markus From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 17:05:17 2007 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B52716A407 for ; Thu, 8 Mar 2007 17:05:17 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outL.internet-mail-service.net (outL.internet-mail-service.net [216.240.47.235]) by mx1.freebsd.org (Postfix) with ESMTP id 542C013C461 for ; Thu, 8 Mar 2007 17:05:17 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Thu, 08 Mar 2007 08:36:28 -0800 Received: from [192.168.2.5] (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 177E0125B55; Thu, 8 Mar 2007 09:02:46 -0800 (PST) Message-ID: <45F041B5.2000300@elischer.org> Date: Thu, 08 Mar 2007 09:02:45 -0800 From: Julian Elischer User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Markus Boelter References: <9ab217670703080537oec16256hb9275ff392d96098@mail.gmail.com> <3DC2398C-8637-4FF1-90B4-3B752B3A496A@FreeBSD.org> In-Reply-To: <3DC2398C-8637-4FF1-90B4-3B752B3A496A@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Rudy Rockstar , hackers@FreeBSD.org, "Devon H. O'Dell" Subject: Re: harddrive no memory ---FreeBSD scenario 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, 08 Mar 2007 17:05:17 -0000 Markus Boelter wrote: > Hi! > > >> Apart from wondering how you're getting the motherboard to get past >> POST without RAM, I'm wondering how you'd get the bootloader and >> > [...] > > The guys at Linux/OpenBIOS did some Cache-as-RAM stuff. Maybe you can > also put (burn) the kernel directly into the BIOS chip and bott with > that kernel. This is just an idea out of my head - nothing tested and no > research done in this field. :-) A modern CPU with 4Mb of cache and no ram has more ram than my first system. If you wanted to you might be able to get FreeBSD 1.1 up in such an environment. (Just no DMA capability, so no floppies). > > Cheers > Markus > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 17:04:12 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 101D516A403 for ; Thu, 8 Mar 2007 17:04:12 +0000 (UTC) (envelope-from rudyrockstar@hotmail.com) Received: from bay0-omc3-s38.bay0.hotmail.com (bay0-omc3-s38.bay0.hotmail.com [65.54.246.238]) by mx1.freebsd.org (Postfix) with ESMTP id EE26413C4B3 for ; Thu, 8 Mar 2007 17:04:11 +0000 (UTC) (envelope-from rudyrockstar@hotmail.com) Received: from hotmail.com ([207.46.8.87]) by bay0-omc3-s38.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Thu, 8 Mar 2007 09:04:11 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 8 Mar 2007 09:04:11 -0800 Message-ID: Received: from 207.46.8.123 by by117fd.bay117.hotmail.msn.com with HTTP; Thu, 08 Mar 2007 17:04:03 GMT X-Originating-IP: [66.110.197.20] X-Originating-Email: [rudyrockstar@hotmail.com] X-Sender: rudyrockstar@hotmail.com In-Reply-To: <3DC2398C-8637-4FF1-90B4-3B752B3A496A@FreeBSD.org> From: "Rudy Rockstar" To: m@FreeBSD.org Date: Thu, 08 Mar 2007 12:04:03 -0500 X-OriginalArrivalTime: 08 Mar 2007 17:04:11.0281 (UTC) FILETIME=[CAC4D810:01C761A3] X-Mailman-Approved-At: Thu, 08 Mar 2007 17:46:39 +0000 MIME-Version: 1.0 Content-Type: text/plain; format="flowed" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: harddrive no memory ---FreeBSD scenario 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, 08 Mar 2007 17:04:12 -0000 Marcus, Thanks! A chip level loading of the core kernel would be the only way. So its not possible todo without a completly new hardware infrastructre design. - I'm wanting todo this because computers are too slow. regardz, ~Rudy _____________________________________________ .!@#$%&% ---_---- http://www.[1]rudyrockstar.com -_-----_--------_--- ------------------------------------------------------ ----------------- -----------CELLY--678.984.3831: RiP 1997 -2004---- -AIM:rudyrockstar- ------- ----------- --------- -ICQ:6636643-- --- -- -- --------------- -------- -YahoO:rudyrockstar- ----------- --------------------- -MSN:rudyrockstar@hotmail.com ------------------------ ~~~~~~~!~!~~~~~~~~~!~~~~~~~~~~~~~~~!~~~~~~~!!!!~~~~~~~ ______________________________________________________________ From: Markus Boelter To: "Devon H. O'Dell" CC: "Rudy Rockstar" , hackers@FreeBSD.org Subject: Re: harddrive no memory ---FreeBSD scenario Date: Thu, 8 Mar 2007 15:53:18 +0100 >Hi! > > >>Apart from wondering how you're getting the motherboard to get past >>POST without RAM, I'm wondering how you'd get the bootloader and >> >[...] > >The guys at Linux/OpenBIOS did some Cache-as-RAM stuff. Maybe you >can also put (burn) the kernel directly into the BIOS chip and bott >with that kernel. This is just an idea out of my head - nothing >tested and no research done in this field. :-) > >Cheers > Markus > _________________________________________________________________ [2]Win a Zunemake MSN® your homepage for your chance to win! References 1. http://www.rudyrockstar.com/ 2. http://g.msn.com/8HMBENUS/2743??PS=47575 From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 8 19:18:21 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 833E716A403 for ; Thu, 8 Mar 2007 19:18:21 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.freebsd.org (Postfix) with ESMTP id 5F3EF13C494 for ; Thu, 8 Mar 2007 19:18:21 +0000 (UTC) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.8/8.13.8) with ESMTP id l28In3LR041706; Thu, 8 Mar 2007 10:49:08 -0800 (PST) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.8/8.13.8/Submit) id l28In32I041705; Thu, 8 Mar 2007 10:49:03 -0800 (PST) (envelope-from steve) Message-Id: <200703081849.l28In32I041705@wattres.watt.com> X-Newsgroups: local.freebsd-hackers In-Reply-To: From: steve@Watt.COM (Steve Watt) Organization: Watt Consultants, San Jose, CA, USA Date: Thu, 8 Mar 2007 10:49:03 -0800 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: rudyrockstar@hotmail.com X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wattres.watt.com [127.0.0.1]); Thu, 08 Mar 2007 10:49:08 -0800 (PST) X-Archived: 1173379748.162329194@wattres.Watt.COM Cc: freebsd-hackers@freebsd.org Subject: Re: harddrive no memory ---FreeBSD scenario 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, 08 Mar 2007 19:18:21 -0000 In , Rudy wrote: > > A chip level loading of the core kernel would be the only way. > > So its not possible todo without a completly new hardware > infrastructre design. > > - I'm wanting todo this because computers are too slow. You need to learn a little more about the parts of a computer. Perhaps go to Google groups, and read comp.arch for a couple of months, making sure you understand all of the references. Disk drives are about 6 orders of magnitude (1,000,000x) slower than DDR memory. It takes a few tens of nanoseconds to read a random address from DDR, a few tens of milliseconds to read a random address from a disk. Note that DDR isn't the fastest memory in the system, either -- there are the L1 and L2 (and sometimes L3) caches as well. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.5" / 37N 20' 15.3" Internet: steve @ Watt.COM Whois: SW32-ARIN Free time? There's no such thing. It just comes in varying prices... From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 00:48:32 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 309E916A401 for ; Fri, 9 Mar 2007 00:48:32 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id C367313C4A6 for ; Fri, 9 Mar 2007 00:48:31 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 1896 invoked by uid 399); 9 Mar 2007 00:48:31 -0000 Received: from localhost (HELO lap.dougb.net) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 9 Mar 2007 00:48:31 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45F0AEDD.7050709@FreeBSD.org> Date: Thu, 08 Mar 2007 16:48:29 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (X11/20070116) MIME-Version: 1.0 To: Steven Hartland References: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk><17896.23312.980989.68558@bhuda.mired.org><86lki8u1al.fsf@dwp.des.no> <17903.37547.207909.316479@bhuda.mired.org> <00c901c7618a$9b795630$b3db87d4@multiplay.co.uk> In-Reply-To: <00c901c7618a$9b795630$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: =?ISO-8859-1?Q?=22Dag-Erling_=5C=22Sm=F8rgrav=5C=22=22?= , Mike Meyer , freebsd-hackers@freebsd.org Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 09 Mar 2007 00:48:32 -0000 Steven Hartland wrote: > Given that it sounds like a potential workaround is to use the machines > IP instead of name until this is fixed, thanks for the info guys. For as long as I can remember, it's been a Best Practice to have entries for critical NFS servers in /etc/hosts. Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 01:13:32 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8D54A16A401 for ; Fri, 9 Mar 2007 01:13:32 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 2B3B013C48D for ; Fri, 9 Mar 2007 01:13:31 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003597022.msg; Fri, 09 Mar 2007 01:10:32 +0000 Message-ID: <00ac01c761e7$b5c75e30$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Doug Barton" References: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk><17896.23312.980989.68558@bhuda.mired.org><86lki8u1al.fsf@dwp.des.no> <17903.37547.207909.316479@bhuda.mired.org><00c901c7618a$9b795630$b3db87d4@multiplay.co.uk> <45F0AEDD.7050709@FreeBSD.org> Date: Fri, 9 Mar 2007 01:10:12 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Fri, 09 Mar 2007 01:10:33 +0000 X-MDAV-Processed: multiplay.co.uk, Fri, 09 Mar 2007 01:10:34 +0000 Cc: "=?iso-8859-1?Q?=22Dag-Erling_\\\\=22Sm=F8rgrav\\\\=22=22?=" , Mike Meyer , freebsd-hackers@freebsd.org Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 09 Mar 2007 01:13:32 -0000 Doug Barton wrote: > Steven Hartland wrote: > >> Given that it sounds like a potential workaround is to use the >> machines IP instead of name until this is fixed, thanks for the info >> guys. > > For as long as I can remember, it's been a Best Practice to have > entries for critical NFS servers in /etc/hosts. Hmm sounds more like a workaround for something thats not been fixed to me but thats just my opinion. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 08:12:00 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A29F416A402 for ; Fri, 9 Mar 2007 08:12:00 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: from smtp805.mail.ird.yahoo.com (smtp805.mail.ird.yahoo.com [217.146.188.65]) by mx1.freebsd.org (Postfix) with SMTP id 18CA313C467 for ; Fri, 9 Mar 2007 08:11:59 +0000 (UTC) (envelope-from tom@tomjudge.com) Received: (qmail 89256 invoked from network); 9 Mar 2007 07:45:18 -0000 Received: from unknown (HELO ?192.168.1.2?) (thomasjudge@btinternet.com@81.157.42.3 with plain) by smtp805.mail.ird.yahoo.com with SMTP; 9 Mar 2007 07:45:18 -0000 X-YMail-OSG: DJJJFPUVM1n9oerGVNsBtZBTBn9SUQUz_h9Czz82x21Z40fnaBG_sBGtc44GOXtY1QEfGIInGrXc65j4iiuEpb_n.Hh79VFU0E33oAaBfOixA.npFj6yx_wFwr_HKg-- Message-ID: <45F1110C.1070709@tomjudge.com> Date: Fri, 09 Mar 2007 07:47:24 +0000 From: Tom Judge User-Agent: Thunderbird 1.5.0.9 (X11/20070104) MIME-Version: 1.0 To: Steven Hartland References: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk> In-Reply-To: <015601c75ce9$d0263a10$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 09 Mar 2007 08:12:00 -0000 Steven Hartland wrote: > Another observation from my recent dealings with using > NFS based /usr is that the remote critical mounts via > nfs dont always give the network enough time to > initialise before running. The first error displayed > is: > Mounting NFS file systems:mount_nfs: nfs1: hostname nor servname > provided, or not known > > This is particularly noticeable when the machine is > connected to Cisco equipment as they take quite a > while link to the connected host after initialisation. > > The result of this is that other services such as > ldconfig fail to initialise properly due to the > mount not being available until some point later > in the boot process once link has been established. > > Has anyone else experienced this? > > Should mountcritremote use "mount -a -t nfs" when this > appears to return after a short period without said FS's > being successfully mounted? Is there a way to ensure that > mount doesnt return without success i.e. a missing flag > in my fstab or should mountcritremote be updated to test > for failure and retry? > > This was bought up some time ago on the current > list but no answers where forth coming: > http://lists.freebsd.org/pipermail/freebsd-current/2005-December/058935.html > > > Test details: > Network card: bge0 > Switch: Cisco 6509 > Switch Blade: WS-X6748-GE-TX > fstab line: nfs1:/fs/usr /usr nfs rw 0 0 > On our systems I have modified /etc/rc.d/mountcritremote to have a 15 second sleep at the beginning to allow for slow port setup time. Its not really a nice fix but it does the job. Tom From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 09:44:26 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7218816A402 for ; Fri, 9 Mar 2007 09:44:26 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id 04F8E13C46B for ; Fri, 9 Mar 2007 09:44:25 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so911026nfc for ; Fri, 09 Mar 2007 01:44:25 -0800 (PST) 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=GTN4qECYc1FiWzYv5L7/QY4twJCek0AbpyDHhTlm5XPLLKlBj4EfWWyRMOnazJ4/ZV9p/sLs7TJNNndo68hlwzFiuoKdGnJGDhgbckNR4pZVq4p0ixNGdxFcU/naFeBSIieO2RIp09+SuyRSTxWGfTqSqka4Y/soCFmhyYngCrc= 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=HEAsHjr/mup9JuzlU9Vib3X8DQQ0yluVbIyMs96Qq/AHuBnmnyym9UZjfziL/f1adzUv3YvP25K3XI0H8+yGN6ACJbsRcvCbaRxzE1k4AXRUZh13Ix1Xopmq7S8L8lkHDUiLTNchnxCzCU0Dx+x87NofKeXj3uw6mrux4/YRx7c= Received: by 10.78.124.13 with SMTP id w13mr177456huc.1173431807234; Fri, 09 Mar 2007 01:16:47 -0800 (PST) Received: by 10.78.31.15 with HTTP; Fri, 9 Mar 2007 01:16:47 -0800 (PST) Message-ID: <319cceca0703090116p7e768630qd055be57bbe4953@mail.gmail.com> Date: Fri, 9 Mar 2007 11:16:47 +0200 From: Maslan To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Floating-point in kernel space 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, 09 Mar 2007 09:44:26 -0000 Hello, I think i've seen somewhere but i don't remember that floating point arithmetic is not allowed in kernel space, if that's right, can anyone please tell why ??? and why not not emulate the floating point in kernel space ??? Thanks -- I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) http://libosdk.berlios.de From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 09:57:22 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F416E16A400; Fri, 9 Mar 2007 09:57:21 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 5B5AE13C428; Fri, 9 Mar 2007 09:57:21 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (tmlifo@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l299vDUS066076; Fri, 9 Mar 2007 10:57:19 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l299vCEi066075; Fri, 9 Mar 2007 10:57:12 +0100 (CET) (envelope-from olli) Date: Fri, 9 Mar 2007 10:57:12 +0100 (CET) Message-Id: <200703090957.l299vCEi066075@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, killing@multiplay.co.uk, dougb@FreeBSD.ORG, des@des.no, mwm@mired.org In-Reply-To: <00ac01c761e7$b5c75e30$b3db87d4@multiplay.co.uk> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 09 Mar 2007 10:57:19 +0100 (CET) Cc: Subject: Re: NFS based /usr prevents normal startup due to slow net init X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, killing@multiplay.co.uk, dougb@FreeBSD.ORG, des@des.no, mwm@mired.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 09:57:22 -0000 Steven Hartland wrote: > Doug Barton wrote: > > Steven Hartland wrote: > > > > > Given that it sounds like a potential workaround is to use the > > > machines IP instead of name until this is fixed, thanks for the info > > > guys. > > > > For as long as I can remember, it's been a Best Practice to have > > entries for critical NFS servers in /etc/hosts. > > Hmm sounds more like a workaround for something thats not been > fixed to me but thats just my opinion. I agree with both of you ... I also always have critical NFS servers in /etc/hosts in order to make them independent of working DNS. It is recommended as Best Practice, not only on FreeBSD. But indeed it really feels like a work- around rather than a solution. However, the problem isn't easy to solve in general. For FreeBSD, I think a workable solution would be to write a new RC script (e.g. /etc/rc.d/port_up) that polls the configured interfaces and waits until they are up. It should have a configurable timeout so it won't hang forever. Then add it to the REQUIRE line of the /etc/rc.d/mountcritremote script. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "[...] one observation we can make here is that Python makes an excellent pseudocoding language, with the wonderful attribute that it can actually be executed." -- Bruce Eckel From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 10:09:30 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D305E16A405 for ; Fri, 9 Mar 2007 10:09:30 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 3A3E013C441 for ; Fri, 9 Mar 2007 10:09:30 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (qtedgn@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l29A9EPY066641; Fri, 9 Mar 2007 11:09:19 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l29A9DeS066640; Fri, 9 Mar 2007 11:09:13 +0100 (CET) (envelope-from olli) Date: Fri, 9 Mar 2007 11:09:13 +0100 (CET) Message-Id: <200703091009.l29A9DeS066640@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, julian@elischer.org, m@FreeBSD.ORG, rudyrockstar@hotmail.com, devon.odell@gmail.com In-Reply-To: <45F041B5.2000300@elischer.org> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 09 Mar 2007 11:09:20 +0100 (CET) Cc: Subject: Re: harddrive no memory ---FreeBSD scenario X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, julian@elischer.org, m@FreeBSD.ORG, rudyrockstar@hotmail.com, devon.odell@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 10:09:30 -0000 Julian Elischer wrote: > Markus Boelter wrote: > > > > > Apart from wondering how you're getting the motherboard to get past > > > POST without RAM, I'm wondering how you'd get the bootloader and > > > > > [...] > > > > The guys at Linux/OpenBIOS did some Cache-as-RAM stuff. Maybe you can > > also put (burn) the kernel directly into the BIOS chip and bott with > > that kernel. This is just an idea out of my head - nothing tested and no > > research done in this field. :-) > > A modern CPU with 4Mb of cache and no ram has more ram than my first system. > If you wanted to you might be able to get FreeBSD 1.1 up in such an > environment. I had FreeBSD 2.2-stable installed on an old notebook with 4 MB RAM (actually less, because ~ 0.5 MB was lost VGA mappings and registers etc.). It was very usable for simple things like text editing and as a terminal. > (Just no DMA capability, so no floppies). You can access the FDC in PIO mode, no DMA necessary. It won't be very efficient, but a floppy drive is slow anyway. You'll have to access the hard disk in PIO mode, too, so that will also be slow. You'll probably want to avoid swapping / paging at all. That means that your whole working set has to fit in 4 MB (minus what the kernel needs). That'll probably be difficult, depending on what you're planning to use the machine for. Bottom line: I think it's useless. :-) It makes more sense to eliminate the hard disk instead of the RAM. And running diskless is perfectly possible (and quite easy) with FreeBSD; I've done such setups in the past. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "If Java had true garbage collection, most programs would delete themselves upon execution." -- Robert Sewell From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 10:21:28 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E48AF16A402 for ; Fri, 9 Mar 2007 10:21:28 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 4ECE213C49D for ; Fri, 9 Mar 2007 10:21:28 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (ipknwl@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l29ALM8L067286; Fri, 9 Mar 2007 11:21:27 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l29ALLVw067285; Fri, 9 Mar 2007 11:21:21 +0100 (CET) (envelope-from olli) Date: Fri, 9 Mar 2007 11:21:21 +0100 (CET) Message-Id: <200703091021.l29ALLVw067285@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, maslanbsd@gmail.com In-Reply-To: <319cceca0703090116p7e768630qd055be57bbe4953@mail.gmail.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 09 Mar 2007 11:21:27 +0100 (CET) Cc: Subject: Re: Floating-point in kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, maslanbsd@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 10:21:29 -0000 Maslan wrote: > I think i've seen somewhere but i don't remember that floating point > arithmetic is not allowed in kernel space, if that's right, can anyone > please tell why ??? Because the overhead of swapping the contents of the FPU registers on every context switch within the kernel. So far there has been no compelling reason for having FP support in kernel code that would justify to pay that price. > and why not not emulate the floating point in kernel space ??? First, FPU emulation is rather slow, and second, someone would have to write the code. In the past, the FreeBSD kernel had two FPU emulation libraries (for emulation of FPU instructions in userland). One was BSD-licensed, but incomplete and not 100% compatible, and the second was GPL, so it couldn't be enabled by default. As far as I know, both of them were removed because hardware without an FPU was considered obsolete, and nobody was willing to improve and maintain the code. Let me ask you, why would you want to have floating point support in the kernel? Most of such typical uses can easily be replaced by simple fixed-point arithmetic with integer instructions. There are several examples of such code, e.g. in ALTQ, DUMMYNET and in the NTP support code. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "I have stopped reading Stephen King novels. Now I just read C code instead." -- Richard A. O'Keefe From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 12:37:43 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8CBB816A400; Fri, 9 Mar 2007 12:37:43 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id EED0613C46B; Fri, 9 Mar 2007 12:37:42 +0000 (UTC) (envelope-from killing@multiplay.co.uk) X-Spam-Checker-Version: SpamAssassin 3.1.5 (2006-08-29) on core6.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-24.7 required=6.0 tests=BAYES_00, USER_IN_WHITELIST, USER_IN_WHITELIST_TO autolearn=ham version=3.1.5 Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.5.4) with ESMTP id md50003598117.msg; Fri, 09 Mar 2007 12:35:07 +0000 Message-ID: <00f801c76247$55fbe4c0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: , , , , References: <200703090957.l299vCEi066075@lurza.secnetix.de> Date: Fri, 9 Mar 2007 12:34:42 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-Spam-Processed: multiplay.co.uk, Fri, 09 Mar 2007 12:35:08 +0000 X-MDAV-Processed: multiplay.co.uk, Fri, 09 Mar 2007 12:35:09 +0000 Cc: Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 09 Mar 2007 12:37:43 -0000 Oliver Fromme wrote: > For FreeBSD, I think a workable solution would be to > write a new RC script (e.g. /etc/rc.d/port_up) that > polls the configured interfaces and waits until they > are up. It should have a configurable timeout so it > won't hang forever. Then add it to the REQUIRE line > of the /etc/rc.d/mountcritremote script. Although that sounds like a possible solution I wouldnt be suprised if there are other services which REQUIRE "NETWORKING" and make assumptions about the network state which are currently invalid. Given this perhaps NETWORKING is where this fix should really be implemented? Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 13:28:53 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 23C5116A403 for ; Fri, 9 Mar 2007 13:28:53 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.176.14]) by mx1.freebsd.org (Postfix) with ESMTP id A60E213C49D for ; Fri, 9 Mar 2007 13:28:52 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.8/8.13.7) with ESMTP id l29DSpkW053331 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Mar 2007 14:28:51 +0100 (CET) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.8/8.13.3/Submit) id l29DSp5B053330; Fri, 9 Mar 2007 14:28:51 +0100 (CET) Date: Fri, 9 Mar 2007 14:28:51 +0100 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20070309132851.GA52655@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Scanned-By: MIMEDefang 2.57 on 147.229.176.14 Cc: alc@freebsd.org Subject: possibly missed wakeup in swap_pager_getpages() 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, 09 Mar 2007 13:28:53 -0000 hi when looking at PR103455 I found this and I have a question.. code: swp_pager_strategy(bp); /* * wait for the page we want to complete. VPO_SWAPINPROG is always * cleared on completion. If an I/O error occurs, SWAPBLK_NONE * is set in the meta-data. */ VM_OBJECT_LOCK(object); while ((mreq->oflags & VPO_SWAPINPROG) != 0) { mreq->oflags |= VPO_WANTED; vm_page_lock_queues(); vm_page_flag_set(mreq, PG_REFERENCED); vm_page_unlock_queues(); cnt.v_intrans++; if (msleep(mreq, VM_OBJECT_MTX(object), PSWP, "swread", hz*20)) { the swp_pager_strategy() initiates IO (which should issue the wakeup() necessary for the msleep()). the problem in the PR is that the msleep() is never (within the specified 20 seconds) woken up. I wonder if this is because the wakeup arrives BEFORE the actual msleep() is issued. the page queue locking can take some time so there is a space for a missed wakeup. is my analysis correct? if so, can the race be mitigated by moving the flag setting (hence also the locking) after the msleep()? thnx roman From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 14:57:51 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05BB916A400 for ; Fri, 9 Mar 2007 14:57:51 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.ipt.ru (mail.ipt.ru [80.253.10.82]) by mx1.freebsd.org (Postfix) with ESMTP id 7181613C491 for ; Fri, 9 Mar 2007 14:57:50 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from admin.sem.ipt.ru ([192.168.12.1] helo=ipt.ru) by mail.ipt.ru with esmtp (Exim 4.62 (FreeBSD)) (envelope-from ) id 1HPfyO-00085g-7h; Fri, 09 Mar 2007 17:21:32 +0300 Received: from bsam by ipt.ru with local (Exim 4.63 (FreeBSD)) (envelope-from ) id 1HPg2Q-000A1L-SG; Fri, 09 Mar 2007 17:25:42 +0300 To: Eugene Grosbein References: <20070220182113.GC853@turion.vk2pj.dyndns.org> <200702211113.l1LBDbQn006859@lurza.secnetix.de> <5f67a8c40702220937h21dc6963r77637ba369549e25@mail.gmail.com> <20070223035617.GA18955@svzserv.kemerovo.su> From: Boris Samorodov Date: Fri, 09 Mar 2007 17:25:42 +0300 In-Reply-To: <20070223035617.GA18955@svzserv.kemerovo.su> (Eugene Grosbein's message of "Fri, 23 Feb 2007 10:56:17 +0700") Message-ID: <11989769@srv.sem.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Fri, 09 Mar 2007 15:07:38 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Fwd: Abyssmal dump cache efficiency 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, 09 Mar 2007 14:57:51 -0000 On Fri, 23 Feb 2007 10:56:17 +0700 Eugene Grosbein wrote: > On Thu, Feb 22, 2007 at 12:37:00PM -0500, Zaphod Beeblebrox wrote: > > >Peter Jeremy wrote: > > >> I've found that you do get a worthwhile improvement in dump|restore > > >> performance by introducing a large (10's of MB) fifo between them. > > >> This helps reduce synchronisation between dump and restore (so that > > >> dump can continue to read whilst restore is busy writing a batch of > > >> small files and vice versa). There's a suitable port but I can't > > >> recall the name because I wrote my own. > > > > > >There are several. The most popular ones are probably > > >misc/team and misc/buffer. > > > > I can certainly vouch for that , too. I generally use "team 1m 32" (total > > of 32meg of buffer). Team seems to not want to buffer more than 1m per > > process and I think 32 is the max # of processes. > Someone, please take a look at trivial patch for team's buffer size here: > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/106806 > The maintainer timeout for the PR has occured long time ago. Committed, thanks for both your patches and patience. ;-) 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 Fri Mar 9 17:07:38 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C5BFF16A400; Fri, 9 Mar 2007 17:07:38 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 3414413C428; Fri, 9 Mar 2007 17:07:37 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (qnunef@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l29H7U55046218; Fri, 9 Mar 2007 18:07:35 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l29H7Tfj046217; Fri, 9 Mar 2007 18:07:29 +0100 (CET) (envelope-from olli) Date: Fri, 9 Mar 2007 18:07:29 +0100 (CET) Message-Id: <200703091707.l29H7Tfj046217@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, killing@multiplay.co.uk, dougb@FreeBSD.ORG, des@des.no, mwm@mired.org In-Reply-To: <00f801c76247$55fbe4c0$b3db87d4@multiplay.co.uk> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 09 Mar 2007 18:07:35 +0100 (CET) Cc: Subject: Re: NFS based /usr prevents normal startup due to slow net init X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, killing@multiplay.co.uk, dougb@FreeBSD.ORG, des@des.no, mwm@mired.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 17:07:38 -0000 Steven Hartland wrote: > Oliver Fromme wrote: > > For FreeBSD, I think a workable solution would be to > > write a new RC script (e.g. /etc/rc.d/port_up) that > > polls the configured interfaces and waits until they > > are up. It should have a configurable timeout so it > > won't hang forever. Then add it to the REQUIRE line > > of the /etc/rc.d/mountcritremote script. > > Although that sounds like a possible solution I wouldnt > be suprised if there are other services which REQUIRE > "NETWORKING" and make assumptions about the network > state which are currently invalid. Possibly. > Given this perhaps NETWORKING is where this fix should > really be implemented? I thought about that, too. However, there are people who don't need the network to be up right at boot time. For example my notebook and my workstation at home. For those it would be annoying to have a 15 seconds delay during boot for no good reason. Therefore I would suggest to implement such a polling in a separate RC script and add it as a requirement only to thos scripts which absolutely need to have a working net- work for successful start-up. mountcritremote is certainly the most prominent example, as this thread shows. Another solution for that particular problem would be to add a feature to mount_nfs(8) to wait for a certain time and try again if a hostname lookup fails and the "bg" flag was specified for a mount. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "C++ is over-complicated nonsense. And Bjorn Shoestrap's book a danger to public health. I tried reading it once, I was in recovery for months." -- Cliff Sarginson From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 18:24:57 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 943E716A400 for ; Fri, 9 Mar 2007 18:24:57 +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 4E7B613C474 for ; Fri, 9 Mar 2007 18:24:57 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HPjlW-0004cc-By for freebsd-hackers@freebsd.org; Fri, 09 Mar 2007 19:24:31 +0100 Received: from 83-131-163-54.adsl.net.t-com.hr ([83.131.163.54]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 19:24:30 +0100 Received: from ivoras by 83-131-163-54.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Mar 2007 19:24:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Fri, 09 Mar 2007 19:23:44 +0100 Lines: 35 Message-ID: References: <45F041B5.2000300@elischer.org> <200703091009.l29A9DeS066640@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig08FA20EB42C6915BEE0F0C29" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 83-131-163-54.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) In-Reply-To: <200703091009.l29A9DeS066640@lurza.secnetix.de> X-Enigmail-Version: 0.94.1.2 Sender: news Subject: Re: harddrive no memory ---FreeBSD scenario 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, 09 Mar 2007 18:24:57 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig08FA20EB42C6915BEE0F0C29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Oliver Fromme wrote: > I had FreeBSD 2.2-stable installed on an old notebook with > 4 MB RAM (actually less, because ~ 0.5 MB was lost VGA > mappings and registers etc.). It was very usable for > simple things like text editing and as a terminal. High end Xeons and Itaniums have 18MB - 24MB of internal L1+L2+L3 caches. That's enough to fit *and run* entire Doom 2 and similar games :)= I can just imagine it... Doom2 run from the CPU caches, running at something like 10,000 FPS in 320x200 :) --------------enig08FA20EB42C6915BEE0F0C29 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.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFF8aYwldnAQVacBcgRAnkAAJ0QNumIy5iVJmoVtbWLvcF+g8UvWgCg0Iaw H3t98Cl8AXWaqHXHAJnUWYs= =cRra -----END PGP SIGNATURE----- --------------enig08FA20EB42C6915BEE0F0C29-- From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 18:09:23 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A5B0116A406 for ; Fri, 9 Mar 2007 18:09:23 +0000 (UTC) (envelope-from mrsaraiva@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.238]) by mx1.freebsd.org (Postfix) with ESMTP id 5453913C494 for ; Fri, 9 Mar 2007 18:09:21 +0000 (UTC) (envelope-from mrsaraiva@gmail.com) Received: by wr-out-0506.google.com with SMTP id i30so1375963wra for ; Fri, 09 Mar 2007 10:09:20 -0800 (PST) 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=uUuvfUnx5OxZzW9ASJSobjghSbxDft81noKxUsJnKGhsBjz2W72nNb4XG4VU1OUNUewmRpKpUlCfMxLsfoefyXosCQ0y1WsLPVfSsdr4QgFM/GW1jngpvAN+5xR1pwo2hba/Hv0URl2J1kIllzcc7z3E2u5uHDyfXPEvLLHUY+0= 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=g7a5hlZi1f5ZONB1VfVGb3I4IgSDnvwNOU+RwFPQSVstBiBAcd18NGk0BWwDdU4SuEXNMK4L/c6OFWSvi3qBIXXilp4sxStFzVmExeS3uzECyj8HNiHBNAnc1MDZAUo/SGyYFY9fsU8jVs2AK/sF291bqomSWJfR1wEWFKk9kts= Received: by 10.100.195.10 with SMTP id s10mr1531400anf.1173462215137; Fri, 09 Mar 2007 09:43:35 -0800 (PST) Received: by 10.100.191.13 with HTTP; Fri, 9 Mar 2007 09:43:35 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 17:43:35 +0000 From: "Mario Saraiva" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mailman-Approved-At: Fri, 09 Mar 2007 18:25:06 +0000 Subject: Need Help - pam_radius 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, 09 Mar 2007 18:09:23 -0000 Hi Community, I hope that i send this mail to the rigth place. I'm trying to make authentication using the pam_radius, but i have some issues that i don't know if it possible to manage. Is that possible to configure this module to send also other attributes like "Calling-Station-Id" on the request authentication? I was google around and didn't find any way how to do it. Second, after a successful authentication i want to send accounting information to the server but to the server, the messages "acct-start" and "acct-stop", but is not working in order to control a PIX firewall to open and close access to the authenticated user. At this moment i can authenticate users by ssh but is not sending the "acct-start" and "acct-stop". On the log's a receive the following messages: Mar 9 17:33:31 marte sshd[1237]: Accepted keyboard-interactive/pam for xmario from 192.168.1.2 port 52923 ssh2 Mar 9 17:33:32 marte sshd[1239]: in openpam_dispatch(): pam_radius.so: no pam_sm_open_session() Mar 9 17:34:31 marte su: xmario to root on /dev/ttyp0 I'm using FreeBSD 5.4 and i manage the following configuration files: /etc/radius.conf auth 10.10.10.1:1812 secret 10 acct 10.10.10.1:1813 secret 10 /etc/pam.d/sshd # # $FreeBSD: src/etc/pam.d/sshd,v 1.15 2003/04/30 21:57:54 markm Exp $ # # PAM configuration for the "sshd" service # # auth auth required pam_nologin.so auth required pam_radius.so # account #account required pam_krb5.so account required pam_login_access.so account required pam_unix.so # session #session optional pam_ssh.so session required pam_radius.so session required pam_permit.so # password #password sufficient pam_krb5.so no_warn try_first_pass password required pam_unix.so no_warn try_first_pass Kind Regards Mario From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 18:44:50 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 40F5716A401 for ; Fri, 9 Mar 2007 18:44:50 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.freebsd.org (Postfix) with ESMTP id 5C16413C491 for ; Fri, 9 Mar 2007 18:44:49 +0000 (UTC) (envelope-from zombyfork@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1092197nfc for ; Fri, 09 Mar 2007 10:44:48 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=pWEXmibiJT/0dBCxhMSQfpcI5v6saJC/KIXMuY/FmgtUK4JyhnK6sVU4sXOF/S80L+uicao/dbzvu/CS6Y6de/TZcPOSJiSoV0GxxKth4E6sA1ii2Bz0I7EHI+2+va7ZeDQJbF2jep92I6x93fTTql7PViPK9q/EQNxebVMArbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=Z4B75V2chsYaWJrsD3U7Ii4Lvl8qBUsrVw5ot69w70lE1Az+PeBwLD+RaQoh1piQWYWkyH9+I3GQx4PqCSi5+VgkhN3GNpArlM3UhD/c+dpd77NNFbrKPcRBRVEgIl6XGUubsMq0WvJcQ1GeB1Gfza5up2uqbSskqGn72OlY5mE= Received: by 10.114.151.13 with SMTP id y13mr634278wad.1173465886803; Fri, 09 Mar 2007 10:44:46 -0800 (PST) Received: by 10.115.108.15 with HTTP; Fri, 9 Mar 2007 10:44:46 -0800 (PST) Message-ID: <346a80220703091044p5759e6do521065203299c26b@mail.gmail.com> Date: Fri, 9 Mar 2007 11:44:46 -0700 From: "Coleman Kane" To: freebsd-hackers@freebsd.org, maslanbsd@gmail.com In-Reply-To: <200703091021.l29ALLVw067285@lurza.secnetix.de> MIME-Version: 1.0 References: <319cceca0703090116p7e768630qd055be57bbe4953@mail.gmail.com> <200703091021.l29ALLVw067285@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Re: Floating-point in kernel space X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: cokane@cokane.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 18:44:50 -0000 On 3/9/07, Oliver Fromme wrote: > > Maslan wrote: > > I think i've seen somewhere but i don't remember that floating point > > arithmetic is not allowed in kernel space, if that's right, can anyone > > please tell why ??? > > Because the overhead of swapping the contents of the FPU > registers on every context switch within the kernel. > So far there has been no compelling reason for having FP > support in kernel code that would justify to pay that > price. > > > and why not not emulate the floating point in kernel space ??? > > First, FPU emulation is rather slow, and second, someone > would have to write the code. In the past, the FreeBSD > kernel had two FPU emulation libraries (for emulation > of FPU instructions in userland). One was BSD-licensed, > but incomplete and not 100% compatible, and the second > was GPL, so it couldn't be enabled by default. As far as > I know, both of them were removed because hardware without > an FPU was considered obsolete, and nobody was willing to > improve and maintain the code. > > Let me ask you, why would you want to have floating point > support in the kernel? Most of such typical uses can > easily be replaced by simple fixed-point arithmetic with > integer instructions. There are several examples of such > code, e.g. in ALTQ, DUMMYNET and in the NTP support code. > > Best regards > Oliver > > -- > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. > Handelsregister: Registergericht Muenchen, HRA 74606, Gesch=E4ftsfuehrun= g: > secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht M=FC= n- > chen, HRB 125758, Gesch=E4ftsf=FChrer: Maik Bachmann, Olaf Erb, Ralf Geb= hart > > FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd > > "I have stopped reading Stephen King novels. > Now I just read C code instead." > -- Richard A. O'Keefe It would be helpful to know why you need this support as well. For many projects that I've done, the kernel code is used for transferring the "binary" data from the computer system (hardware or kernel) to a userland daemon that would do the FP processing (which is likely significantly time consuming) and then this daemon would provide a listening socket that other software could use to retrieve said data. I would imagine that if you are needing FP processing in the kernel, then you'll be doing a serious amount of work and may not want to be hogging up = a lot of kernel time doing it. However, there are Real-Time applications for such an implementation. Perhaps posting about the problem would be more helpful. -- Coleman Kane From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 19:01:56 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9AD8A16A401 for ; Fri, 9 Mar 2007 19:01:56 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (mail.cs.rice.edu [128.42.1.31]) by mx1.freebsd.org (Postfix) with ESMTP id 78ACA13C428 for ; Fri, 9 Mar 2007 19:01:56 +0000 (UTC) (envelope-from alc@cs.rice.edu) Received: from mail.cs.rice.edu (localhost.localdomain [127.0.0.1]) by mail.cs.rice.edu (Postfix) with ESMTP id DE5CE2C2AB6; Fri, 9 Mar 2007 12:37:51 -0600 (CST) X-Virus-Scanned: by amavis-2.4.0 at mail.cs.rice.edu Received: from mail.cs.rice.edu ([127.0.0.1]) by mail.cs.rice.edu (mail.cs.rice.edu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id qGpXwbIH2vvx; Fri, 9 Mar 2007 12:37:51 -0600 (CST) Received: from [216.63.78.18] (adsl-216-63-78-18.dsl.hstntx.swbell.net [216.63.78.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cs.rice.edu (Postfix) with ESMTP id 27CDE2C2AAF; Fri, 9 Mar 2007 12:37:51 -0600 (CST) Message-ID: <45F1A97D.7090608@cs.rice.edu> Date: Fri, 09 Mar 2007 12:37:49 -0600 From: Alan Cox User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20061115 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Divacky Roman References: <20070309132851.GA52655@stud.fit.vutbr.cz> In-Reply-To: <20070309132851.GA52655@stud.fit.vutbr.cz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: alc@freebsd.org, hackers@freebsd.org Subject: Re: possibly missed wakeup in swap_pager_getpages() 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, 09 Mar 2007 19:01:56 -0000 Divacky Roman wrote: >hi > > > [snip] >is my analysis correct? if so, can the race be mitigated by moving the flag setting (hence >also the locking) after the msleep()? > > > No. When the wakeup is performed, the VPO_SWAPINPROG flag is also cleared. Both operations occur in the I/O completion handler with the object locked. Thus, if the I/O completion handler runs first, the msleep on the page within the while loop will not occur because the page's VPO_SWAPINPROG flag is already cleared. Regards, Alan From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 19:13:34 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BB1CD16A401 for ; Fri, 9 Mar 2007 19:13:34 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id 4689313C441 for ; Fri, 9 Mar 2007 19:13:34 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (qxabuf@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id l29JDQF4063219; Fri, 9 Mar 2007 20:13:31 +0100 (CET) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id l29JDQoI063218; Fri, 9 Mar 2007 20:13:26 +0100 (CET) (envelope-from olli) Date: Fri, 9 Mar 2007 20:13:26 +0100 (CET) Message-Id: <200703091913.l29JDQoI063218@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, ivoras@fer.hr In-Reply-To: X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.2-20060425 ("Shillay") (UNIX) (FreeBSD/4.11-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Fri, 09 Mar 2007 20:13:32 +0100 (CET) Cc: Subject: Re: harddrive no memory ---FreeBSD scenario X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, ivoras@fer.hr List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2007 19:13:34 -0000 Ivan Voras wrote: > Oliver Fromme wrote: > > > I had FreeBSD 2.2-stable installed on an old notebook with > > 4 MB RAM (actually less, because ~ 0.5 MB was lost VGA > > mappings and registers etc.). It was very usable for > > simple things like text editing and as a terminal. > > High end Xeons and Itaniums have 18MB - 24MB of internal L1+L2+L3 > caches. That's enough to fit *and run* entire Doom 2 and similar games :)= > > I can just imagine it... Doom2 run from the CPU caches, running at > something like 10,000 FPS in 320x200 :) Yes, but you can do that with a normal RAM-equipped machine, so you don't need a special BIOS or special patches to FreeBSD. Just make sure that your running code set fits into the caches. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "If you aim the gun at your foot and pull the trigger, it's UNIX's job to ensure reliable delivery of the bullet to where you aimed the gun (in this case, Mr. Foot)." -- Terry Lambert, FreeBSD-hackers mailing list. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 19:19:33 2007 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07C9716A401 for ; Fri, 9 Mar 2007 19:19:33 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.freebsd.org (Postfix) with SMTP id 987EE13C474 for ; Fri, 9 Mar 2007 19:19:32 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 27927 invoked by uid 399); 9 Mar 2007 19:19:24 -0000 Received: from localhost (HELO ?192.168.0.4?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 9 Mar 2007 19:19:24 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <45F1B33A.5080606@FreeBSD.org> Date: Fri, 09 Mar 2007 11:19:22 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0b2 (Windows/20070116) MIME-Version: 1.0 To: Steven Hartland References: <200703090957.l299vCEi066075@lurza.secnetix.de> <00f801c76247$55fbe4c0$b3db87d4@multiplay.co.uk> In-Reply-To: <00f801c76247$55fbe4c0$b3db87d4@multiplay.co.uk> X-Enigmail-Version: 0.94.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@FreeBSD.ORG, mwm@mired.org, des@des.no Subject: Re: NFS based /usr prevents normal startup due to slow net init 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, 09 Mar 2007 19:19:33 -0000 Steven Hartland wrote: > Although that sounds like a possible solution I wouldnt > be suprised if there are other services which REQUIRE > "NETWORKING" and make assumptions about the network > state which are currently invalid. > > Given this perhaps NETWORKING is where this fix should > really be implemented? The scripts whose names are in all caps are just placeholders, so they don't have any real code. This idea of a wait state for networking to come up has been discussed before on freebsd-rc@, and the conclusion reached was more or less on the lines of: 1. It should happen in netif 2. Whether to wait or not should be configurable, and default to off 3. How long to wait should be configurable (n seconds, minutes, hours, infinity) So, if someone wants to code up some patches, and send them to freebsd-rc@ to review, please feel free. Also see http://www.freebsd.org/cgi/query-pr.cgi?pr=90863 for an interesting related discussion. hth, Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 20:54:52 2007 Return-Path: X-Original-To: FreeBSD-Hackers@FreeBSD.org Delivered-To: FreeBSD-Hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0480C16A401 for ; Fri, 9 Mar 2007 20:54:52 +0000 (UTC) (envelope-from jan@digitaldaemon.com) Received: from digitaldaemon.com (digitaldaemon.com [63.105.9.34]) by mx1.freebsd.org (Postfix) with SMTP id A2FF713C442 for ; Fri, 9 Mar 2007 20:54:51 +0000 (UTC) (envelope-from jan@digitaldaemon.com) Received: (qmail 2069 invoked by uid 98); 9 Mar 2007 20:28:09 -0000 Received: from 63.105.9.34 by digitaldaemon.com (envelope-from , uid 89) with qmail-scanner-1.25 (clamdscan: 0.87/1195. Clear:RC:1(63.105.9.34):. Processed in 0.114337 secs); 09 Mar 2007 20:28:09 -0000 X-Qmail-Scanner-Mail-From: jan@digitaldaemon.com via digitaldaemon.com X-Qmail-Scanner: 1.25 (Clear:RC:1(63.105.9.34):. Processed in 0.114337 secs) Received: from digitaldaemon.com (HELO ?200.63.100.2?) (63.105.9.34) by digitaldaemon.com with SMTP; 9 Mar 2007 20:28:09 -0000 Message-ID: <45F1C355.8030504@digitaldaemon.com> Date: Fri, 09 Mar 2007 15:28:05 -0500 From: Jan Knepper User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: FreeBSD Hackers Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Multiple IP Jail's patch for FreeBSD 6.2 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, 09 Mar 2007 20:54:52 -0000 Any change this can be included officially at some point? I did not write the code. Just patched it so it would compile in 6.2 Thanks! Jan http://www.digitaldaemon.com/FreeBSD/FreeBSD/index.html From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 21:58:37 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B1B8E16A405 for ; Fri, 9 Mar 2007 21:58:37 +0000 (UTC) (envelope-from peter_holmes2003@yahoo.com) Received: from web32913.mail.mud.yahoo.com (web32913.mail.mud.yahoo.com [209.191.69.113]) by mx1.freebsd.org (Postfix) with SMTP id 64CA713C46B for ; Fri, 9 Mar 2007 21:58:37 +0000 (UTC) (envelope-from peter_holmes2003@yahoo.com) Received: (qmail 82130 invoked by uid 60001); 9 Mar 2007 21:58:37 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=UhBVtnBPq6iGXZjRBpX+yY9EhsrjlpjkEZ/mOa/oapSuPJ8gybRauUUUtaGTLkR845yljpGYPwl0A7CGO4PFXjiBLdhIKzaElfqQI9xYsRU1l1/s/mS1QdVtBuWGtOtHVaO51kPYisWEjO+rMrgEiBmpyVlA+4ya6x6+Kmrvwb4=; X-YMail-OSG: DG7h.pYVM1k.q6HMPaFFLytt7HPvY0bosZx2UHIaql2XEBhIVrPu7Nv2QGuiyrzn_fmgYj4uFbTppz3otpGias7gOcYPqnWYjdgCPKKdS2sGpDAaZLW6RwtwK__7bkRg7tcalXd_w1i9ylM0dVwxsCChDQ-- Received: from [66.129.224.36] by web32913.mail.mud.yahoo.com via HTTP; Fri, 09 Mar 2007 13:58:36 PST Date: Fri, 9 Mar 2007 13:58:36 -0800 (PST) From: Peter Holmes To: hackers@freebsd.org In-Reply-To: <45F1A97D.7090608@cs.rice.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <989648.79906.qm@web32913.mail.mud.yahoo.com> X-Mailman-Approved-At: Fri, 09 Mar 2007 22:44:01 +0000 Cc: Subject: user-space locks 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, 09 Mar 2007 21:58:37 -0000 Does FreeBSD have anything similar to Futexes for Linux. Thanks, Peter ____________________________________________________________________________________ Looking for earth-friendly autos? Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. http://autos.yahoo.com/green_center/ From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 22:55:14 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7F5F616A400 for ; Fri, 9 Mar 2007 22:55:14 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.227]) by mx1.freebsd.org (Postfix) with ESMTP id 3F44A13C4AC for ; Fri, 9 Mar 2007 22:55:14 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wr-out-0506.google.com with SMTP id 58so1548120wri for ; Fri, 09 Mar 2007 14:55:13 -0800 (PST) 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=n8dkr2kWgBSX++0o6tg4qnBYQ0yZq/4X+8eGHv9sDGPMyzLYgKWYTLhel+J1CXGGJcHaGxOPqCjlONYK2zvDAThZAywOZh5UdpRlAqqjHKo0/7q9838qldEJh9Gy6xi8SkoimP9rbWKckkyb9mIMh1zLaOH2Sul4K4HV9UodZmw= 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=B2flDKrQpK/Grq94/fvgXIrFjKkBfXwHbqK0TCMC1vLrMgp7zzUsArLh6qrgJiAzW2TUZm2mL3jKuc2dgaOaiXKnCLv9+rX+YVm1g+50UknEtPib9aGN9dakXcCDZIk2NdZAIASziZ7qUxUUF9Cxa0PP4+f3s+9AAEdJ3f2HA9Q= Received: by 10.90.56.14 with SMTP id e14mr2488918aga.1173480913766; Fri, 09 Mar 2007 14:55:13 -0800 (PST) Received: by 10.90.25.1 with HTTP; Fri, 9 Mar 2007 14:55:13 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 14:55:13 -0800 From: "Kip Macy" To: "Peter Holmes" In-Reply-To: <989648.79906.qm@web32913.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> Cc: hackers@freebsd.org Subject: Re: user-space locks 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, 09 Mar 2007 22:55:14 -0000 umtx On 3/9/07, Peter Holmes wrote: > Does FreeBSD have anything similar to Futexes for > Linux. > > Thanks, > Peter > > > > ____________________________________________________________________________________ > Looking for earth-friendly autos? > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. > http://autos.yahoo.com/green_center/ > _______________________________________________ > 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 Mar 9 23:34:50 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1615816A402 for ; Fri, 9 Mar 2007 23:34:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outI.internet-mail-service.net (outI.internet-mail-service.net [216.240.47.232]) by mx1.freebsd.org (Postfix) with ESMTP id EE09813C48D for ; Fri, 9 Mar 2007 23:34:49 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Fri, 09 Mar 2007 15:08:20 -0800 Received: from [192.168.2.5] (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id DC2CA125BC3; Fri, 9 Mar 2007 15:34:04 -0800 (PST) Message-ID: <45F1EEEC.3090506@elischer.org> Date: Fri, 09 Mar 2007 15:34:04 -0800 From: Julian Elischer User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Kip Macy References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Holmes , hackers@freebsd.org Subject: Re: user-space locks 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, 09 Mar 2007 23:34:50 -0000 Kip Macy wrote: > umtx julian@trafmon1:man -k umtx umtx: nothing appropriate julian@trafmon1: also if you use umtx I think you limit yourself to libthr. > > On 3/9/07, Peter Holmes wrote: >> Does FreeBSD have anything similar to Futexes for >> Linux. >> >> Thanks, >> Peter >> >> >> >> ____________________________________________________________________________________ >> >> Looking for earth-friendly autos? >> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. >> http://autos.yahoo.com/green_center/ >> _______________________________________________ >> 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" >> > _______________________________________________ > 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 Mar 9 23:35:43 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4073B16A400 for ; Fri, 9 Mar 2007 23:35:43 +0000 (UTC) (envelope-from deathjestr@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.229]) by mx1.freebsd.org (Postfix) with ESMTP id F161613C442 for ; Fri, 9 Mar 2007 23:35:42 +0000 (UTC) (envelope-from deathjestr@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so943393wxc for ; Fri, 09 Mar 2007 15:35:42 -0800 (PST) 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:content-transfer-encoding:content-disposition:references; b=YaGW59B6fLTnDhOPb+o9Pd0HTRgtzuFDeHl8MJZuPnw4TEcCJG5csmpKHhtLztJhY7wTDiinXEPpk2TgTaWtxkFeexGkvMnARzj9qozgnO2kVZvgeX/GycnVRHfshWLGgApgqGyssVv1bBRPIPyh5bGox9+9ADl97TYMgvsPfJ8= 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:content-transfer-encoding:content-disposition:references; b=JAdPmwM3ZhvWe8RmMlFPLf7bEbXa6/aqFghSEg7+zLCbhyUJSWV8jyzBwsOXI4exjyfsN+rZiVO/VqfebmBLOCK9z9l1Ub0ADoERYn3AKH9BTv69W8cLNG98F9/qcYTeRuxARvI+G+PpHfClIfXuMcXPfTCu8HFnguNZKzcP0Rg= Received: by 10.90.84.17 with SMTP id h17mr2528677agb.1173481825250; Fri, 09 Mar 2007 15:10:25 -0800 (PST) Received: by 10.90.78.13 with HTTP; Fri, 9 Mar 2007 15:10:25 -0800 (PST) Message-ID: <44b564930703091510r35e8c56eke0c8761fa5f234e9@mail.gmail.com> Date: Fri, 9 Mar 2007 18:10:25 -0500 From: "Michael M. Press" To: cokane@cokane.org, maslanbsd@gmail.com, freebsd-hackers@freebsd.org In-Reply-To: <346a80220703091044p5759e6do521065203299c26b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <319cceca0703090116p7e768630qd055be57bbe4953@mail.gmail.com> <200703091021.l29ALLVw067285@lurza.secnetix.de> <346a80220703091044p5759e6do521065203299c26b@mail.gmail.com> Cc: Subject: Re: Floating-point in kernel space 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, 09 Mar 2007 23:35:43 -0000 > I think i've seen somewhere but i don't remember that floating point > arithmetic is not allowed in kernel space, if that's right, can anyone > please tell why ??? > and why not not emulate the floating point in kernel space ??? That's nonsense! Floating point arithmetic is absolutely allowed in kernel space, it's just that user space applications don't tend to like their data being mangled very much. I remember this topic coming up a short while ago on this list. Perhaps if there is sufficient need someone could implement a pair of floating-point save/restore functions to allow floating-point (or MMX) calculations to be used in the kernel only when needed. Something like the EngSaveFloatingPointState/ EngRestoreFloatingPointState functions that Windows has. --Mike From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 9 23:44:12 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C6B3116A401 for ; Fri, 9 Mar 2007 23:44:12 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.freebsd.org (Postfix) with ESMTP id 846C313C4B2 for ; Fri, 9 Mar 2007 23:44:12 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so945600wxc for ; Fri, 09 Mar 2007 15:44:11 -0800 (PST) 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=SyRC1sa9oNwComagGNQDfUkseDMbDU65n31lO21WOz3o8oaDg13QzdWWcbQQew4U53CvvxH5FOcpzIuHrCCKxm3tvN9DQT4DZK1zFqcPiR+PJDjbk9Ra/TceN9NHx8cK198BpcBtyjdsw3uykdqEvQKTeiFgLczE0Rj7ZQb7DH0= 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=ZS/HfhyluMZxhZ8vLu4Ux74cm2WUBnyP8ZEuHRRm/g3fhcwZEcuKlsbsfsrugj/4mAJHkMb8CWaNGw4PG9xL+z0EJoV6xqRx7J/TvRU7kUZ2P3U/cWHlkDrzTltc8dgjf/g2ShhTn/eiqdDIYc0tBPoKtFrf7OKCc8OqQ/nFmvU= Received: by 10.90.33.16 with SMTP id g16mr32483agg.1173483851485; Fri, 09 Mar 2007 15:44:11 -0800 (PST) Received: by 10.90.25.1 with HTTP; Fri, 9 Mar 2007 15:44:11 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 15:44:11 -0800 From: "Kip Macy" To: "Julian Elischer" In-Reply-To: <45F1EEEC.3090506@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> <45F1EEEC.3090506@elischer.org> Cc: Peter Holmes , hackers@freebsd.org Subject: Re: user-space locks 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, 09 Mar 2007 23:44:12 -0000 And? With futexes you limit yourself to whatever library provides pthread wrappers around them. He asked for the FreeBSD equivalent and the answer is umtx. Can you provide us with some concrete examples where libkse is preferable? -Kip On 3/9/07, Julian Elischer wrote: > Kip Macy wrote: > > umtx > > julian@trafmon1:man -k umtx > umtx: nothing appropriate > julian@trafmon1: > > also if you use umtx I think you limit yourself to libthr. > > > > > > On 3/9/07, Peter Holmes wrote: > >> Does FreeBSD have anything similar to Futexes for > >> Linux. > >> > >> Thanks, > >> Peter > >> > >> > >> > >> ____________________________________________________________________________________ > >> > >> Looking for earth-friendly autos? > >> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. > >> http://autos.yahoo.com/green_center/ > >> _______________________________________________ > >> 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" > >> > > _______________________________________________ > > 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 Sat Mar 10 00:02:32 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0809616A409 for ; Sat, 10 Mar 2007 00:02:32 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.237]) by mx1.freebsd.org (Postfix) with ESMTP id BA3CE13C4AA for ; Sat, 10 Mar 2007 00:02:31 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so950209wxc for ; Fri, 09 Mar 2007 16:02:31 -0800 (PST) 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=CP8eII8kdCQlggei1Cjvh90ulOSy4fp4SoX9VH+ZR0il/ZahqZeWAP/wPbu0CeYxKnuh5/M4wmX5VzCeFgiI4iB+ZlKQWLAN2Ej53OBVogQG+GJ4KGjYpl3QnO8LQwGDypxz4YGdlbmoWYn/dJHkGl/qBb5I+BIrcFL+5y3bLRs= 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=Mejlmaxu1wdsP8aAxOdWQSpazrM+/FyanUmn8oQlrYNEn5l6k3VTRRhw3IeWeV4Wm3wfwBldh4XJ19CXS5QUHAyQjoqqLcmwcbLnFTCO2qi7WIYJ7BAZEhTBgYU8c6bqs91HKSJZpVf69+tYDt6pLmSulvUhJCqlHoR0Zcoy2ow= Received: by 10.90.79.6 with SMTP id c6mr50530agb.1173484951574; Fri, 09 Mar 2007 16:02:31 -0800 (PST) Received: by 10.90.25.1 with HTTP; Fri, 9 Mar 2007 16:02:31 -0800 (PST) Message-ID: Date: Fri, 9 Mar 2007 16:02:31 -0800 From: "Kip Macy" To: "David Xu" In-Reply-To: <45F1EEEC.3090506@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> <45F1EEEC.3090506@elischer.org> Cc: hackers@freebsd.org Subject: Fwd: user-space locks 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, 10 Mar 2007 00:02:32 -0000 Do you think that the umtx KPI may have reached the appropriate level of maturity for writing up a man page? The KSE equivalent has had a substantive man page for quite some time. I would be more than happy to do any of the necessary technical copy-editing for the English. At this point I think you may be the only person well acquainted with the KPI. Thanks. -Kip Kip Macy wrote: > umtx julian@trafmon1:man -k umtx umtx: nothing appropriate julian@trafmon1: also if you use umtx I think you limit yourself to libthr. > > On 3/9/07, Peter Holmes wrote: >> Does FreeBSD have anything similar to Futexes for >> Linux. >> >> Thanks, >> Peter >> >> >> >> ____________________________________________________________________________________ >> >> Looking for earth-friendly autos? >> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. >> http://autos.yahoo.com/green_center/ >> _______________________________________________ >> 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" >> > _______________________________________________ > 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 Sat Mar 10 00:04:42 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8059916A403 for ; Sat, 10 Mar 2007 00:04:42 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 22CBD13C461 for ; Sat, 10 Mar 2007 00:04:41 +0000 (UTC) (envelope-from dudu@dudu.ro) Received: by nf-out-0910.google.com with SMTP id k27so1182768nfc for ; Fri, 09 Mar 2007 16:04:41 -0800 (PST) Received: by 10.82.177.3 with SMTP id z3mr3786971bue.1173483512569; Fri, 09 Mar 2007 15:38:32 -0800 (PST) Received: by 10.82.148.5 with HTTP; Fri, 9 Mar 2007 15:38:32 -0800 (PST) Message-ID: Date: Sat, 10 Mar 2007 01:38:32 +0200 From: "Vlad GALU" To: hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> Cc: Subject: Re: user-space locks 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, 10 Mar 2007 00:04:42 -0000 On 3/10/07, Kip Macy wrote: > umtx > Is it safe/recommended to use spinlocks, like in jemalloc, for very small portions of code? I'm particularly interested in protecting writes to a couple of word sized ints on amd64, so the critical section wouldn't be longer than two assignments. Of course, I could use a lockless queue for my purposes, but I'm asking anyway. > On 3/9/07, Peter Holmes wrote: > > Does FreeBSD have anything similar to Futexes for > > Linux. > > > > Thanks, > > Peter > > > > > > > > ____________________________________________________________________________________ > > Looking for earth-friendly autos? > > Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. > > http://autos.yahoo.com/green_center/ > > _______________________________________________ > > 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" > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 10 03:49:09 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D78B716A549 for ; Sat, 10 Mar 2007 03:49:09 +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 3274B13C471 for ; Sat, 10 Mar 2007 03:49:09 +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 B230C46C14; Fri, 9 Mar 2007 22:49:08 -0500 (EST) Date: Sat, 10 Mar 2007 03:49:08 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Kip Macy In-Reply-To: Message-ID: <20070310034755.S30274@fledge.watson.org> References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> <45F1EEEC.3090506@elischer.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org, David Xu Subject: Re: Fwd: user-space locks 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, 10 Mar 2007 03:49:09 -0000 On Fri, 9 Mar 2007, Kip Macy wrote: > Do you think that the umtx KPI may have reached the appropriate level of > maturity for writing up a man page? The KSE equivalent has had a substantive > man page for quite some time. I would be more than happy to do any of the > necessary technical copy-editing for the English. > > At this point I think you may be the only person well acquainted with the > KPI. Thanks. During our threading discussion and code-reading session at the dev summit, the KSE man page was very helpful in understanding what was going on; having similar man pages for the libthr and umtx system calls would have been very helpful. The interfaces are a lot less complicated, but man pages are very useful generally. :-) Robert N M Watson Computer Laboratory University of Cambridge > > -Kip > > > Kip Macy wrote: >> umtx > > julian@trafmon1:man -k umtx > umtx: nothing appropriate > julian@trafmon1: > > also if you use umtx I think you limit yourself to libthr. > > >> >> On 3/9/07, Peter Holmes wrote: >>> Does FreeBSD have anything similar to Futexes for >>> Linux. >>> >>> Thanks, >>> Peter >>> >>> >>> >>> ____________________________________________________________________________________ >>> >>> Looking for earth-friendly autos? >>> Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center. >>> http://autos.yahoo.com/green_center/ >>> _______________________________________________ >>> 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" >>> >> _______________________________________________ >> 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" > _______________________________________________ > 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 Sat Mar 10 03:51:04 2007 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7622616A401 for ; Sat, 10 Mar 2007 03:51:04 +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 5111813C461 for ; Sat, 10 Mar 2007 03:51:04 +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 ED80B46D58; Fri, 9 Mar 2007 22:51:03 -0500 (EST) Date: Sat, 10 Mar 2007 03:51:03 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Vlad GALU In-Reply-To: Message-ID: <20070310034922.R30274@fledge.watson.org> References: <45F1A97D.7090608@cs.rice.edu> <989648.79906.qm@web32913.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org Subject: Re: user-space locks 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, 10 Mar 2007 03:51:04 -0000 On Sat, 10 Mar 2007, Vlad GALU wrote: > On 3/10/07, Kip Macy wrote: >> umtx > > Is it safe/recommended to use spinlocks, like in jemalloc, for very small > portions of code? I'm particularly interested in protecting writes to a > couple of word sized ints on amd64, so the critical section wouldn't be > longer than two assignments. Of course, I could use a lockless queue for my > purposes, but I'm asking anyway. I believe that the system malloc library is forced to use low level locking primitives because the pthread library depends on malloc. I would suggest using the pthread mutex primitives where at all possible. We might want to consider adding "adaptive" mutex support to the pthread libraries if we don't have it. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 10 07:54:47 2007 Return-Path: X-Original-To: FreeBSD-Hackers@FreeBSD.org Delivered-To: FreeBSD-Hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3A8116A400 for ; Sat, 10 Mar 2007 07:54:47 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: from mail.ki.iif.hu (mail.ki.iif.hu [193.6.222.241]) by mx1.freebsd.org (Postfix) with ESMTP id A80D013C428 for ; Sat, 10 Mar 2007 07:54:47 +0000 (UTC) (envelope-from mohacsi@niif.hu) Received: by mail.ki.iif.hu (Postfix, from userid 1003) id 7DA795621; Sat, 10 Mar 2007 08:24:23 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.ki.iif.hu (Postfix) with ESMTP id 7964355E5; Sat, 10 Mar 2007 08:24:23 +0100 (CET) Date: Sat, 10 Mar 2007 08:24:23 +0100 (CET) From: Mohacsi Janos X-X-Sender: mohacsi@mignon.ki.iif.hu To: Jan Knepper In-Reply-To: <45F1C355.8030504@digitaldaemon.com> Message-ID: <20070310082316.K64466@mignon.ki.iif.hu> References: <45F1C355.8030504@digitaldaemon.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers Subject: Re: Multiple IP Jail's patch for FreeBSD 6.2 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, 10 Mar 2007 07:54:48 -0000 Hi Jan, The problem with your patch is the missing IPv6 support. The drafonfly version already supports it. Regards, Janos Mohacsi Network Engineer, Research Associate, Head of Network Planning and Projects NIIF/HUNGARNET, HUNGARY Key 70EF9882: DEC2 C685 1ED4 C95A 145F 4300 6F64 7B00 70EF 9882 On Fri, 9 Mar 2007, Jan Knepper wrote: > Any change this can be included officially at some point? > I did not write the code. Just patched it so it would compile in 6.2 > > Thanks! > Jan > > > > http://www.digitaldaemon.com/FreeBSD/FreeBSD/index.html > > > > _______________________________________________ > 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 Sat Mar 10 09:27:59 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4ED5A16A400 for ; Sat, 10 Mar 2007 09:27:59 +0000 (UTC) (envelope-from tyler@bleepsoft.com) Received: from zeus.lunarpages.com (zeus.lunarpages.com [216.193.211.2]) by mx1.freebsd.org (Postfix) with ESMTP id 321F313C467 for ; Sat, 10 Mar 2007 09:27:59 +0000 (UTC) (envelope-from tyler@bleepsoft.com) Received: from cpe-70-112-219-150.austin.res.rr.com ([70.112.219.150] helo=[192.168.15.102]) by zeus.lunarpages.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1HPwbe-0000EF-Cv for freebsd-hackers@freebsd.org; Sat, 10 Mar 2007 00:07:10 -0800 Mime-Version: 1.0 (Apple Message framework v752.3) To: FreeBSD Hackers Message-Id: From: "R. Tyler Ballance" Date: Sat, 10 Mar 2007 02:07:08 -0600 X-Mailer: Apple Mail (2.752.3) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zeus.lunarpages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - bleepsoft.com X-Source: X-Source-Args: X-Source-Dir: X-Mailman-Approved-At: Sat, 10 Mar 2007 12:29:09 +0000 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: FreeBSD at SXSW 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, 10 Mar 2007 09:27:59 -0000 I just thought that I'd throw this out there, I've run into some folks running FreeBSD on various systems here at SXSW in Austin, and would certainly like to coordinate a meetup with any users or hackers as there's some folks here touting OpenSolaris' ZFS, and containers in contrast to the experimental ZFS support on FreeBSD and jails. It'd be nice to meet with any hackers in the area that were also too poor to make it out to AsiaBSDCon ;) Cheers R. Tyler Ballance: Lead Mac Developer at bleep. software contact: tyler@bleepsoft.com | jabber: tyler@jabber.geekisp.com From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 10 17:46:05 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C3A2616A402 for ; Sat, 10 Mar 2007 17:46:05 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id 1955513C47E for ; Sat, 10 Mar 2007 17:46:04 +0000 (UTC) (envelope-from maslanbsd@gmail.com) Received: by nf-out-0910.google.com with SMTP id k27so1369657nfc for ; Sat, 10 Mar 2007 09:46:03 -0800 (PST) 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=Ep7xeFV65Mj0ziScHueZ1SJpNFRWcQA4ldZ2+50t9P9xHJwmXFt/VCI/j4XRcFUynmGzOnkmkYJkZEhOAgSQewu1O5Gzix2pwyAzwy5uzZ37GFPKYawmuKA8ePLhXfXedW3OLHMWl0ZqvbPJDzdcRgRxnYszJ+oQJF3jJveLyzg= 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=nUW1tPOyUOGzoaR+qX8S0k7VZM8NEabf9IAnjdeDccs7GicjE0nfLEPj6PHYcP8bUARqcn7li52m+xOTJkeCUimFcIAyKwAOJvG3cyj9R85HeDb1mH0pE83gw1H1f1GQ34yjKGHowTf89GCKu6NMjb7cX3nA5Pby/pUjAAxiNF4= Received: by 10.78.97.7 with SMTP id u7mr406291hub.1173548763301; Sat, 10 Mar 2007 09:46:03 -0800 (PST) Received: by 10.78.31.15 with HTTP; Sat, 10 Mar 2007 09:46:02 -0800 (PST) Message-ID: <319cceca0703100946r624a461dl267e20f43af85664@mail.gmail.com> Date: Sat, 10 Mar 2007 19:46:02 +0200 From: Maslan To: cokane@cokane.org In-Reply-To: <346a80220703091044p5759e6do521065203299c26b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <319cceca0703090116p7e768630qd055be57bbe4953@mail.gmail.com> <200703091021.l29ALLVw067285@lurza.secnetix.de> <346a80220703091044p5759e6do521065203299c26b@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Floating-point in kernel space 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, 10 Mar 2007 17:46:05 -0000 > It would be helpful to know why you need this support as well I just wanted to know the idea behind not having FP in kernel-space. Thanks, Maslan From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 10 17:49:54 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5C7F16A401 for ; Sat, 10 Mar 2007 17:49:54 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.239]) by mx1.freebsd.org (Postfix) with ESMTP id 9243813C481 for ; Sat, 10 Mar 2007 17:49:54 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: by wr-out-0506.google.com with SMTP id 58so1720900wri for ; Sat, 10 Mar 2007 09:49:54 -0800 (PST) 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=FXzbwPmn+2ImI36QR2gwwnTqBFWlGCzzWBuZR0Bfv0qwd00YCyrNEV9WUHSMK1jtk8m+gvgN17YzaOp8TSmFGCqERRHB49lMaQpF80bMcSfocqrrZ6phFa0qvgXUkGqtKl7zQLs2rlTQNo1ZthHc5rDsFDMKgtgPUwE7ZEjCM2g= 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=J/vi3/N4ejtrRV4Xgcg/7NpGY48+NWbNuvG/wVLaCM7xAxDJFQEaVaB6QWsXVY+6L7kI1CpZo8Fh9yUhFcFfNyr+Vx8TNPciMgrOH1/e6IXa33A+3hmTXsu9H1wR6LbaDLfl5DTNj/piM1yqqxkpD3fIhpn23OO/u5wE333dpZA= Received: by 10.90.32.14 with SMTP id f14mr1155548agf.1173548994006; Sat, 10 Mar 2007 09:49:54 -0800 (PST) Received: by 10.90.25.1 with HTTP; Sat, 10 Mar 2007 09:49:53 -0800 (PST) Message-ID: Date: Sat, 10 Mar 2007 09:49:53 -0800 From: "Kip Macy" To: Maslan In-Reply-To: <319cceca0703100946r624a461dl267e20f43af85664@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <319cceca0703090116p7e768630qd055be57bbe4953@mail.gmail.com> <200703091021.l29ALLVw067285@lurza.secnetix.de> <346a80220703091044p5759e6do521065203299c26b@mail.gmail.com> <319cceca0703100946r624a461dl267e20f43af85664@mail.gmail.com> Cc: freebsd-hackers@freebsd.org, cokane@cokane.org Subject: Re: Floating-point in kernel space 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, 10 Mar 2007 17:49:54 -0000 On 3/10/07, Maslan wrote: > > It would be helpful to know why you need this support as well > > I just wanted to know the idea behind not having FP in kernel-space. Saving and restoring FPU registers adds overhead to thread context switching and there has never been a legitimate need for it. -Kip From owner-freebsd-hackers@FreeBSD.ORG Sat Mar 10 17:54:39 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 19D8116A400 for ; Sat, 10 Mar 2007 17:54:39 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from redbull.bpaserver.net (redbullneu.bpaserver.net [213.198.78.217]) by mx1.freebsd.org (Postfix) with ESMTP id C7BF013C461 for ; Sat, 10 Mar 2007 17:54:38 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p54A5F36D.dip.t-dialin.net [84.165.243.109]) by redbull.bpaserver.net (Postfix) with ESMTP id 5FA602E1AB; Sat, 10 Mar 2007 18:54:31 +0100 (CET) Received: from Magellan.Leidinger.net (Magellan.Leidinger.net [192.168.1.1]) by outgoing.leidinger.net (Postfix) with ESMTP id 552455B4817; Sat, 10 Mar 2007 18:54:28 +0100 (CET) Date: Sat, 10 Mar 2007 18:54:27 +0100 From: Alexander Leidinger To: "Michael M. Press" Message-ID: <20070310185427.4fc3c033@Magellan.Leidinger.net> In-Reply-To: <44b564930703091510r35e8c56eke0c8761fa5f234e9@mail.gmail.com> References: <319cceca0703090116p7e768630qd055be57bbe4953@mail.gmail.com> <200703091021.l29ALLVw067285@lurza.secnetix.de> <346a80220703091044p5759e6do521065203299c26b@mail.gmail.com> <44b564930703091510r35e8c56eke0c8761fa5f234e9@mail.gmail.com> X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.9; i686-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BPAnet-MailScanner-Information: Please contact the ISP for more information X-BPAnet-MailScanner: Found to be clean X-BPAnet-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-14.864, required 8, autolearn=not spam, BAYES_00 -15.00, DK_POLICY_SIGNSOME 0.00, FORGED_RCVD_HELO 0.14) X-BPAnet-MailScanner-From: alexander@leidinger.net X-Spam-Status: No X-Mailman-Approved-At: Sat, 10 Mar 2007 17:57:05 +0000 Cc: maslanbsd@gmail.com, freebsd-hackers@freebsd.org, cokane@cokane.org Subject: Re: Floating-point in kernel space 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, 10 Mar 2007 17:54:39 -0000 Quoting "Michael M. Press" (Fri, 9 Mar 2007 18:10:25 -0500): > > I think i've seen somewhere but i don't remember that floating point > > arithmetic is not allowed in kernel space, if that's right, can anyone > > please tell why ??? > > and why not not emulate the floating point in kernel space ??? > > That's nonsense! Floating point arithmetic is absolutely allowed in > kernel space, it's just that user space applications don't tend to > like their data being mangled very much. > > I remember this topic coming up a short while ago on this list. > Perhaps if there is sufficient need someone could implement a pair > of floating-point save/restore functions to allow floating-point > (or MMX) calculations to be used in the kernel only when needed. > Something like the EngSaveFloatingPointState/ > EngRestoreFloatingPointState functions that Windows has. Have a look at the FPU item on the ideas page. There you find a patch for something like this. Bye, Alexander. -- If there was any justice, my face would be on a bunch of crappy merchandise! -- Homer Simpson Flaming Moe's http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137