From owner-freebsd-hackers Sun Feb 23 0:51:53 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1E0737B429 for ; Sun, 23 Feb 2003 00:51:50 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5665643FD7 for ; Sun, 23 Feb 2003 00:51:50 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0405.cvx40-bradley.dialup.earthlink.net ([216.244.43.150] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18mrrP-00074X-00; Sun, 23 Feb 2003 00:51:47 -0800 Message-ID: <3E588B1B.484C4D61@mindspring.com> Date: Sun, 23 Feb 2003 00:49:31 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Byunghyun Oh Cc: freebsd-hackers@freebsd.org Subject: Re: Replacement for get_user_pages() of Linux References: <20030223163746.A19421@shell.postech.ac.kr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a421d7f1cfc20fe28cee678c32ae67e608667c3043c0873f7e350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Byunghyun Oh wrote: > I'm porting Plex86 x86 VM, which uses get_user_pages() function at > Linux-version kernel module to find and pin physical pages of memory > in user space (according to its documentation). I tried many > candidates as its replacement (PHYS_TO_VM_PAGE() macro in vm/vm_page.h > seems most useful now), but they haven't worked at all. > > Any experience about porting VM-related things in Linux will be > appreciated. :) I've been unable to find any documentation on get_user_pages(), and you didn't provide a link to any. But looking at the source code, the reason for doing this is to permit DMA directly into user pages. I don't understand what you mean by "pin", in this context. You are aware that FreeBSD has a unified VM and buffer cache, and all user pages for the current process are automatically visible in th kernel address space, with no need to call something like get_user_pages() to establish a mapping, right? Is the intent of this to allow the process memory to be addressed, even though the process is not active? If so, then what you want to do is establish a kernel mapping for the pages, and mark them non-swappable. Otherwise, what you want is automatic (see uiomove). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 1:50: 6 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 15D5437B401 for ; Sun, 23 Feb 2003 01:50:05 -0800 (PST) Received: from phoenix.infradead.org (phoenix.infradead.org [195.224.96.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2519C43F75 for ; Sun, 23 Feb 2003 01:50:04 -0800 (PST) (envelope-from hch@infradead.org) Received: from hch by phoenix.infradead.org with local (Exim 4.10) id 18msli-00041Z-00; Sun, 23 Feb 2003 09:49:58 +0000 Date: Sun, 23 Feb 2003 09:49:58 +0000 From: Christoph Hellwig To: Terry Lambert Cc: Byunghyun Oh , freebsd-hackers@freebsd.org Subject: Re: Replacement for get_user_pages() of Linux Message-ID: <20030223094958.A15347@infradead.org> References: <20030223163746.A19421@shell.postech.ac.kr> <3E588B1B.484C4D61@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3E588B1B.484C4D61@mindspring.com>; from tlambert2@mindspring.com on Sun, Feb 23, 2003 at 12:49:31AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 23, 2003 at 12:49:31AM -0800, Terry Lambert wrote: > I've been unable to find any documentation on get_user_pages(), > and you didn't provide a link to any. > > But looking at the source code, the reason for doing this is to > permit DMA directly into user pages. > > I don't understand what you mean by "pin", in this context. get_user_pages() does the following: (1) force all pages into physical memory if they weren't before (2) increment the usage count on the to avoid paging them out The latter is usually called page pinning. > You are aware that FreeBSD has a unified VM and buffer cache, and > all user pages for the current process are automatically visible > in th kernel address space, with no need to call something like > get_user_pages() to establish a mapping, right? get_user_pages() does not establish a mapping, in Linux you don't need a kernel mapping to perform DMA on memory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 2:24:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6FA637B401 for ; Sun, 23 Feb 2003 02:24:41 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F41A43FBD for ; Sun, 23 Feb 2003 02:24:41 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0405.cvx40-bradley.dialup.earthlink.net ([216.244.43.150] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18mtJ7-0004ad-00; Sun, 23 Feb 2003 02:24:30 -0800 Message-ID: <3E589FB3.46C1AAB2@mindspring.com> Date: Sun, 23 Feb 2003 02:17:23 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Christoph Hellwig Cc: Byunghyun Oh , freebsd-hackers@freebsd.org Subject: Re: Replacement for get_user_pages() of Linux References: <20030223163746.A19421@shell.postech.ac.kr> <3E588B1B.484C4D61@mindspring.com> <20030223094958.A15347@infradead.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4fb61dcc9d46451ebb942bedb903de293a2d4e88014a4647c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Christoph Hellwig wrote: > On Sun, Feb 23, 2003 at 12:49:31AM -0800, Terry Lambert wrote: > > I've been unable to find any documentation on get_user_pages(), > > and you didn't provide a link to any. > > > > But looking at the source code, the reason for doing this is to > > permit DMA directly into user pages. > > > > I don't understand what you mean by "pin", in this context. > > get_user_pages() does the following: > (1) force all pages into physical memory if they weren't before > (2) increment the usage count on the to avoid paging them out > > The latter is usually called page pinning. OK, you mean "make non-pageable". The question, I guess, is "why?". Are you trying to do a delayed operation that will complete when the process has otherwise been swapped out? Is this something that's going to be initiated by the process itself, or does it have to work on a process that is not the current process (e.g. P1 sets up the operation to happen to pages in P2, vs. P1 sets up the operation to happen to pages in P1, and P2 sets up the operation to happen to pages in P2)? In other words, are you trying to pin pages that have resident mappings at the time you want pin them, or are you trying to pin pages that may not have resident mappings at the time you want to pin them? > > You are aware that FreeBSD has a unified VM and buffer cache, and > > all user pages for the current process are automatically visible > > in th kernel address space, with no need to call something like > > get_user_pages() to establish a mapping, right? > > get_user_pages() does not establish a mapping, in Linux you don't need > a kernel mapping to perform DMA on memory. In FreeBSD, you generally do. First off, the VM and buffer cache is unified. That means that's there's no such thing as a buffer that exists seperately from the VM system. Second off, you aren't really telling us who is doing the DMA; if it's something for which there's an existing device driver, like a disk or whatever, then that's the way it is. Thirdly, when you do demand paged I/O, you always do it into a mapped page, which is then COW mapped into the process (e.g. via mmap(), or mapped directly because it's a page in a process). In other words, there's no such thing as an uncached page. Mabe it would be useful for you to tell us what problem you were trying to solve; I'm sure if you were to do that, then you would get a lot of suggestions of how to go about solving it. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 2:35:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14D2737B407 for ; Sun, 23 Feb 2003 02:35:43 -0800 (PST) Received: from phoenix.infradead.org (phoenix.infradead.org [195.224.96.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5F6D43FCB for ; Sun, 23 Feb 2003 02:35:41 -0800 (PST) (envelope-from hch@infradead.org) Received: from hch by phoenix.infradead.org with local (Exim 4.10) id 18mtTt-0004Aq-00; Sun, 23 Feb 2003 10:35:37 +0000 Date: Sun, 23 Feb 2003 10:35:37 +0000 From: Christoph Hellwig To: Terry Lambert Cc: Byunghyun Oh , freebsd-hackers@freebsd.org Subject: Re: Replacement for get_user_pages() of Linux Message-ID: <20030223103537.A16012@infradead.org> References: <20030223163746.A19421@shell.postech.ac.kr> <3E588B1B.484C4D61@mindspring.com> <20030223094958.A15347@infradead.org> <3E589FB3.46C1AAB2@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3E589FB3.46C1AAB2@mindspring.com>; from tlambert2@mindspring.com on Sun, Feb 23, 2003 at 02:17:23AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sun, Feb 23, 2003 at 02:17:23AM -0800, Terry Lambert wrote: > OK, you mean "make non-pageable". Well, I didn't write the initial mail :) > The question, I guess, is "why?". Are you trying to do a delayed > operation that will complete when the process has otherwise been > swapped out? well, I don't plan to do anything. The usual way get_user_pages is used on linux is: get_user_pages() perform scatter gatter dma to some device on the pages unping pages as linux VM scanning is fully mutithreaded pages could get paged out during the dma if you didn't pin them so this is needed. > > get_user_pages() does not establish a mapping, in Linux you don't need > > a kernel mapping to perform DMA on memory. > > In FreeBSD, you generally do. First off, the VM and buffer cache is > unified. That means that's there's no such thing as a buffer that > exists seperately from the VM system. Who talks about buffers? And yes, in Linux you can have buffers that have pages attached to it that aren't mapped into kernel virtual space, in fact that's usual for pages used for actual filesystem data if you have enough memory. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 6:40:40 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2DBD37B401; Sun, 23 Feb 2003 06:40:38 -0800 (PST) Received: from smtp.inode.at (goliath.inode.at [195.58.161.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0E7E43FBD; Sun, 23 Feb 2003 06:40:37 -0800 (PST) (envelope-from mranner@inode.at) Received: from line157.adsl-dynamic.inode.at ([213.229.7.157]) by smtp.inode.at with esmtp (Exim 3.34 #1) id 18mxIx-0000CJ-00; Sun, 23 Feb 2003 15:40:35 +0100 From: Michael Ranner To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org Subject: Re: scan_ffs for UFS2 Date: Sun, 23 Feb 2003 15:40:20 +0100 User-Agent: KMail/1.5 References: <200302192220.12731.mranner@inode.at> In-Reply-To: Cc: Garance A Drosihn MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302231540.20166.mranner@inode.at> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Am Freitag, 21. Februar 2003 22:38 schrieben Sie: > At 10:20 PM +0100 2/19/03, Michael Ranner wrote: > > For what it's worth, we (FreeBSD) have a simple SuperBlock recovery > program in /usr/src/tools/tools/find-sb. I picked up some updates > from Dave Cross for that, and have a few more of my own. I just > have to sit down and get them all together into a single version. > I don't know how find-sb compares to the program you're talking > about, but they sound kind of similar. Scan_ffs can print the lost disklabel for use with disklabel(8). Find-sb, that version from cvs, seems only to print info about the superblocks of each file system and you have to rebuild the lost disklabel for your self. I was on the search for a simple tool for everybody, and found scan_ffs several months ago in the OpenBSD distribution (so it seems find-sb was like reinventing the wheel) and Robert Watson suggested in a posting december last year to adopt scan_ffs for UFS2. IMHO we should reuse a already written program with existing man pages, so we have the same sounding tools for the same tasks. I don't know what find-sb could do with your patches applied. If it's superior to scan_ffs, we can forget scan_ffs. -- /\/\ichael Ranner mranner@jawa.at - mranner@bitonline.cc - webmaster@mariazell.at ---------------------------------------------------------------------- JAWA Management Software GmbH - http://www.jawa.at/ Liebenauer Hauptstrasse 2oo - A-8041 Graz Tel +43 316 403274 21 - Fax +43 316 403274 10 ---------------------------------------------------------------------- Mariazell Online - http://www.mariazell.at/ ---------------------------------------------------------------------- -----BEGIN GEEK CODE BLOCK----- GIT/CS/AT dx(-) s+:(++:) a- C++ UBLVS++++$ P++>+++$ L-(+)$ E--- W+++$ N+(++) o-- K- w--()$ O-(--) M@ V-(--) PS+>++ PE(-) Y+ PGP(-) t+ 5+ X+++(++++) R* tv++ b+(++) DI++ D-(--) G- e h--(*) r++ y? ------END GEEK CODE BLOCK------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 10:18:23 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 214CA37B401 for ; Sun, 23 Feb 2003 10:18:22 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC58743F93 for ; Sun, 23 Feb 2003 10:18:21 -0800 (PST) (envelope-from wes@softweyr.com) Received: from 204.68.178.4 (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id 3312043C40; Sun, 23 Feb 2003 10:09:00 -0800 (PST) From: Wes Peters Organization: Softweyr LLC To: Clemens Hermann , hackers@freebsd.org Subject: Re: C coding editor Date: Sun, 23 Feb 2003 10:17:16 -0800 User-Agent: KMail/1.5 References: <20030221122103.GA2073@asterix.local> In-Reply-To: <20030221122103.GA2073@asterix.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302231017.16894.wes@softweyr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday 21 February 2003 04:21 am, Clemens Hermann wrote: > Hi, > > what are your favourite editors for coding C? While vi on the first > terminal, cc on second and runs on the third is fine for very small > things I doubt it is the way people do it here. Terminal? You have heard of this really cool thing called windowing software? ;^) I completely utterly fail to understand why some young developers attach some sort of romance to writing code on an 80x25 screen, when all the haxxors my age or older waited (or slaved away) for years, even decades, to get something better and more flexible. I've seen vim, emacs/xemacs, and kdevelop all mentioned in this thread. I'd just like to point out that the first three have great advantages under X and the last runs exclusively on X (at least on UNIX it does). X is for programmers, too. Try it, you'll like it. You might even find a use for that mouse. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 11:21:37 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7251C37B401 for ; Sun, 23 Feb 2003 11:21:35 -0800 (PST) Received: from rutger.owt.com (rutger.owt.com [204.118.6.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73EC943FBD for ; Sun, 23 Feb 2003 11:21:34 -0800 (PST) (envelope-from kstewart@owt.com) Received: from topaz-out (owt-207-41-94-233.owt.com [207.41.94.233]) by rutger.owt.com (8.9.3/8.9.3) with ESMTP id LAA10603; Sun, 23 Feb 2003 11:21:29 -0800 From: Kent Stewart To: Wes Peters , Clemens Hermann , hackers@FreeBSD.ORG Subject: Re: C coding editor Date: Sun, 23 Feb 2003 11:21:29 -0800 User-Agent: KMail/1.5 References: <20030221122103.GA2073@asterix.local> <200302231017.16894.wes@softweyr.com> In-Reply-To: <200302231017.16894.wes@softweyr.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302231121.29255.kstewart@owt.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 23 February 2003 10:17 am, Wes Peters wrote: > On Friday 21 February 2003 04:21 am, Clemens Hermann wrote: > > Hi, > > > > what are your favourite editors for coding C? While vi on the first > > terminal, cc on second and runs on the third is fine for very small > > things I doubt it is the way people do it here. > > Terminal? You have heard of this really cool thing called windowing > software? ;^) > > I completely utterly fail to understand why some young developers > attach some sort of romance to writing code on an 80x25 screen, when > all the haxxors my age or older waited (or slaved away) for years, > even decades, to get something better and more flexible. > I love comments like this. We used Microsoft's developer environment to update Unix (HPs and a Cray) for years because that was all we had other than vi. You could click something in Microsoft, right click it and you would see sample code, the headers you needed, and etc. The programs were under strict code control that was acceptable to the USA NRC. I see the same thing more or less using the 'Crusader', 'Code Warrior', or kdevelop environment. In a co-conversion effort using DEC Fortran and f77 on FreeBSD, msdbg would roll over and die but kdbg would show you the signal error. Unfortunately, it wouldn't show you why the line was dying. Writing a one line message of parameters produced a 70 MB file with no clue why it was dying. Msdbg would actually debug the line and show you which pointer went out of range but it would die if you just let it run and not tell you where. Combining the effort produced a solution neither was capable of by themselves in a reasonable amount of time. It all goes under my heading of "what part of making your life easier don't you understand". Have a good day, Kent > I've seen vim, emacs/xemacs, and kdevelop all mentioned in this > thread. I'd just like to point out that the first three have great > advantages under X and the last runs exclusively on X (at least on > UNIX it does). X is for programmers, too. Try it, you'll like it. > You might even find a use for that mouse. -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 15:35: 7 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 754AB37B401; Sun, 23 Feb 2003 15:35:04 -0800 (PST) Received: from ms-smtp-02.texas.rr.com (ms-smtp-02.texas.rr.com [24.93.36.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7081343FA3; Sun, 23 Feb 2003 15:35:03 -0800 (PST) (envelope-from incomingforward@cs.com) Received: from mail.satx.rr.com (mcis-12.texas.rr.com [24.93.36.42]) by ms-smtp-02.texas.rr.com (8.12.5/8.12.2) with ESMTP id h1J5HTTu010269; Wed, 19 Feb 2003 00:20:16 -0500 (EST) Received: from smtp0351.mail.yahoo.com ([200.33.156.37]) by mail.satx.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 18 Feb 2003 22:55:50 -0600 Date: Wed, 19 Feb 2003 04:54:38 GMT From: incomingforward@cs.com X-Priority: 3 To: freebsd-hackers@freebsd.org Subject: freebsd-hackers, LIVE FROM WALL STREET: VICC Test Results Are In... Mime-Version: 1.0 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <011815055041323MCIS-12@mail.satx.rr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG freebsd-hackers@freebsd.org

If you bought into our last recommendation (CIMG) early enough you had an excellent opportunity to make substantial gains (from .90 to 1.65 in just the first day). Now is your chance to do the same with our newest pick: VICC. To find out more go to Live From the Street.

If you no longer want to receive information from us just go to tallrhe@cs.com.

  To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 15:54:55 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2056537B401; Sun, 23 Feb 2003 15:54:54 -0800 (PST) Received: from smtp3.server.rpi.edu (smtp3.server.rpi.edu [128.113.2.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F88A43F3F; Sun, 23 Feb 2003 15:54:53 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp3.server.rpi.edu (8.12.7/8.12.7) with ESMTP id h1NNsp0H004682; Sun, 23 Feb 2003 18:54:51 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200302231540.20166.mranner@inode.at> References: <200302192220.12731.mranner@inode.at> <200302231540.20166.mranner@inode.at> Date: Sun, 23 Feb 2003 18:54:49 -0500 To: Michael Ranner , freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org From: Garance A Drosihn Subject: Re: scan_ffs for UFS2 Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-RPI-Spam-Score: -0.5 () IN_REP_TO,REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_03_05 X-Scanned-By: MIMEDefang 2.28 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 3:40 PM +0100 2/23/03, Michael Ranner wrote: >Am Freitag, 21. Februar 2003 Garance wrote: > > > > I don't know how find-sb compares to the program you're > > talking about, but they sound kind of similar. > >Scan_ffs can print the lost disklabel for use with disklabel(8). >Find-sb, that version from cvs, seems only to print info about >the superblocks of each file system and you have to rebuild the >lost disklabel for your self. [...] > >I don't know what find-sb could do with your patches applied. >If it's superior to scan_ffs, we can forget scan_ffs. It sounds like you should go with scan_ffs, and when I have the time to sort out my updates I'll see how they apply to that. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sun Feb 23 21:16:59 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93AAD37B401 for ; Sun, 23 Feb 2003 21:16:57 -0800 (PST) Received: from echunga.lemis.com (gregl1.lnk.telstra.net [139.130.136.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D88643FBF for ; Sun, 23 Feb 2003 21:16:52 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id C157A51A3A; Fri, 21 Feb 2003 11:29:00 +1030 (CST) Date: Fri, 21 Feb 2003 11:29:00 +1030 From: Greg 'groggy' Lehey To: Wes Peters Cc: Peter Jeremy , Paul Herman , FreeBSD Hackers Subject: Re: arc4random() range Message-ID: <20030221005900.GG84517@wantadilla.lemis.com> References: <20030219013247.GA10910@x-anthony.com> <20030218180736.L240-100000@mammoth.eat.frenchfries.net> <20030219063646.GB62020@cirb503493.alcatel.com.au> <200302190922.18146.wes@softweyr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8bBEDOJVaa9YlTAt" Content-Disposition: inline In-Reply-To: <200302190922.18146.wes@softweyr.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --8bBEDOJVaa9YlTAt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wednesday, 19 February 2003 at 9:22:18 -0800, Wes Peters wrote: > On Tuesday 18 February 2003 22:36, Peter Jeremy wrote: >> >> I see this as a major advantage of arc4random() - if I want 32-bit >> random numbers I don't have to call random() twice and merge the >> results. I've never understood why random() was specified to return >> a '0' in the MSB. > > It probably had something to do with the PDP-11 architecture. This > rings a bell, but I can't recall what it was. Greg Lehey might be > able to help here, he has far better knowlege of the Good Old Days(tm) > than I do.=20 Difficult to say. I don't think that random() was in the Seventh Edition. They used rand() instead. Read the code and shudder: static long randx =3D 1; srand(x) unsigned x; { randx =3D x; } rand() { return(((randx =3D randx*1103515245 + 12345)>>16) & 077777); } That's the entire content of Seventh Edition /usr/src/libc/gen/rand.c. Greg -- See complete headers for address and phone numbers Please note: we block mail from major spammers, notably yahoo.com. See http://www.lemis.com/yahoospam.html for further details. --8bBEDOJVaa9YlTAt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+VXnUIubykFB6QiMRAk2/AKCD2dlaSVKw2X87WIt4pn/q+P4kXQCePaG8 JHbCPtSKY4TS8RfFQtbbKmY= =FBKr -----END PGP SIGNATURE----- --8bBEDOJVaa9YlTAt-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 2: 3:51 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2953837B401 for ; Mon, 24 Feb 2003 02:03:50 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61DA943FD7 for ; Mon, 24 Feb 2003 02:03:49 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h1OA3m3W006611; Mon, 24 Feb 2003 02:03:48 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h1OA3kxs006610; Mon, 24 Feb 2003 02:03:46 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Mon, 24 Feb 2003 02:03:46 -0800 From: David Schultz To: Byunghyun Oh Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Replacement for get_user_pages() of Linux Message-ID: <20030224100346.GA6374@HAL9000.homeunix.com> Mail-Followup-To: Byunghyun Oh , freebsd-hackers@FreeBSD.org References: <20030223163746.A19421@shell.postech.ac.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030223163746.A19421@shell.postech.ac.kr> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Byunghyun Oh : > I'm porting Plex86 x86 VM, which uses get_user_pages() function at > Linux-version kernel module to find and pin physical pages of memory > in user space (according to its documentation). I tried many > candidates as its replacement (PHYS_TO_VM_PAGE() macro in vm/vm_page.h > seems most useful now), but they haven't worked at all. > > Any experience about porting VM-related things in Linux will be > appreciated. :) Glancing at the Linux source, it looks like you want vm_map_wire(). BTW, in the future, it helps if you can describe what you're looking for, since we're not all Linux experts. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 2:58:16 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D7FF37B401; Mon, 24 Feb 2003 02:58:14 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0616243F93; Mon, 24 Feb 2003 02:58:14 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0041.cvx40-bradley.dialup.earthlink.net ([216.244.42.41] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18nGJI-0005G4-00; Mon, 24 Feb 2003 02:58:13 -0800 Message-ID: <3E59FA6C.CF8CB852@mindspring.com> Date: Mon, 24 Feb 2003 02:56:44 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Schultz Cc: Byunghyun Oh , freebsd-hackers@FreeBSD.ORG Subject: Re: Replacement for get_user_pages() of Linux References: <20030223163746.A19421@shell.postech.ac.kr> <20030224100346.GA6374@HAL9000.homeunix.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a49bc7e577ba53e3c123e48e9157758690387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Schultz wrote: > Thus spake Byunghyun Oh : > > I'm porting Plex86 x86 VM, which uses get_user_pages() function at > > Linux-version kernel module to find and pin physical pages of memory > > in user space (according to its documentation). I tried many > > candidates as its replacement (PHYS_TO_VM_PAGE() macro in vm/vm_page.h > > seems most useful now), but they haven't worked at all. > > > > Any experience about porting VM-related things in Linux will be > > appreciated. :) > > Glancing at the Linux source, it looks like you want vm_map_wire(). > BTW, in the future, it helps if you can describe what you're > looking for, since we're not all Linux experts. I'm pretty sure this isn't what he really wants, it's just what he thinks he wants, and he's wrong about it, but he hasn't told us what problem he's trying to solve, so that we can correct his misconception. In general, FreeBSD drivers DMA to pages for which there is an established kernel mapping, period. With specific exceptions, kernel pages are not pageable, and so they do not need to be wired (you have to go way out of your way to get pageable kernel memory; most people don't do it, and I'm not even sure UMA allows you to get this type of memory any more). No FreeBSD driver DMA's into user space address space directly, bypassing kernel space address space; either there is a kernel mapping AND a user mapping, or there is ONLY a kernel mapping. The closest FreeBSD ever comes to this is to map a set of kernel space allocated pages into a user process address space, by the process opening a device node, and calling mmap() on it. In a pinch, you can force this on the process from kernel space, so you don't have to rewrite your code (e.g. the code is running under Linux or other emulation), but this is really frowned upon. In this case, the memory is usually allocated directly to the device at the time the device is attached, e.g. the video memory in a VGA card, or the memory window onto the AGP in the agpart device. Then it is mapped into the user process address space (e.g. the XFree86 server process), and DMAs into that memory are implicitly DMAs into the user process address space. Again, it would be really, really nice to know what problem he is trying to solve, so that people who know FreeBSD can tell him the FreeBSD way of solving the problem. I suspect that he wants to use bus_dmamem_alloc(), bus_dmamap_create(), bus_dma_tag_create(), etc., and write a standard FreeBSD device driver for his device, so that it will work on things like Alpha, SPARC64, IA64, PPC, and other platforms which care about memory windows onto main memory via "bus space". Without knowing the problem he's trying to solve though... you get the point... -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 4:48:38 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDA9B37B401 for ; Mon, 24 Feb 2003 04:48:37 -0800 (PST) Received: from sdf.lonestar.org (sdf.lonestar.org [216.162.208.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67A8843F3F for ; Mon, 24 Feb 2003 04:48:37 -0800 (PST) (envelope-from omestre@sdf.lonestar.org) Received: (from omestre@localhost) by sdf.lonestar.org (8.11.6+3.4W/8.11.6) id h1OCmV327257; Mon, 24 Feb 2003 12:48:31 GMT Date: Mon, 24 Feb 2003 12:48:31 +0000 (UTC) From: omestre To: freebsd-hackers@freebsd.org Subject: bootp_subr.c forget it. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thanks Terry Lambert, for your time. But i will not try help the FreeBSD community anymore... First of all, i have posted the diff file to you look the important parts, that construct my solution. NOt the constants ones... Of course that the FreeBSD code will not have my name, and company! That is the code that i did for MY company! What i wanted was share is the solution! If you will supress my name or everything, is not my problem. If i change a bit, a letter... in a source code, i will allways put my name. Not because the rights, but because the errors! Then i break the software, the errors are mine, this is justice. But the more important thing, is the idea, the solution. That i was trying to share. If someone like the solution, and implement it, is better for me, i'm not a devel man... Thanks again. omestre@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 6:43: 0 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7AD6437B401; Mon, 24 Feb 2003 06:42:58 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id A574443FDD; Mon, 24 Feb 2003 06:42:55 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (hiten@localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h1OEgreG029717; Mon, 24 Feb 2003 09:42:53 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h1OEgqo3029712; Mon, 24 Feb 2003 09:42:52 -0500 (EST) (envelope-from hiten) Date: Mon, 24 Feb 2003 09:42:52 -0500 From: Hiten Pandya To: Michael Ranner Cc: freebsd-hackers@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG, Garance A Drosihn Subject: Re: scan_ffs for UFS2 Message-ID: <20030224144252.GC74746@unixdaemons.com> References: <200302192220.12731.mranner@inode.at> <200302231540.20166.mranner@inode.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302231540.20166.mranner@inode.at> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michael Ranner (Sun, Feb 23, 2003 at 03:40:20PM +0100) wrote: > Am Freitag, 21. Februar 2003 22:38 schrieben Sie: > > At 10:20 PM +0100 2/19/03, Michael Ranner wrote: > > > > For what it's worth, we (FreeBSD) have a simple SuperBlock recovery > > program in /usr/src/tools/tools/find-sb. I picked up some updates > > from Dave Cross for that, and have a few more of my own. I just > > have to sit down and get them all together into a single version. > > I don't know how find-sb compares to the program you're talking > > about, but they sound kind of similar. > > Scan_ffs can print the lost disklabel for use with disklabel(8). > Find-sb, that version from cvs, seems only to print info about > the superblocks of each file system and you have to rebuild the > lost disklabel for your self. I was on the search for a simple > tool for everybody, and found scan_ffs several months ago > in the OpenBSD distribution (so it seems find-sb was like > reinventing the wheel) and Robert Watson suggested in a posting > december last year to adopt scan_ffs for UFS2. IMHO we should > reuse a already written program with existing man pages, so > we have the same sounding tools for the same tasks. > > I don't know what find-sb could do with your patches applied. > If it's superior to scan_ffs, we can forget scan_ffs. FWIW, I did make scan_ffs work with UFS2 at one point in time, but I lost my stuff in a disk crash. It's a pretty good utility with good documentation. The only thing you need to worry about in the scan_ffs code is the opendisk() routine, or something like that, but it shouldn't be hard. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 7:25:39 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C91C37B401 for ; Mon, 24 Feb 2003 07:25:37 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC4AD43FBD for ; Mon, 24 Feb 2003 07:25:36 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h1OFPOP4035525; Mon, 24 Feb 2003 10:25:24 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Mon, 24 Feb 2003 10:25:23 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Kevin Fogleman Cc: freebsd-hackers@freebsd.org Subject: Re: Monitoring changes in extended attributes? In-Reply-To: <3E4AEEBF.8020308@comcast.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 12 Feb 2003, Kevin Fogleman wrote: > Is there an existing way to monitor the entire filesystem for changes to > any file, particularly changes in extended attributes? > > I'm looking to write a program that builds an index of all > user-accessable extended attributes for every file in the filesystem and > then updates that index in real time according to modifications to > existing files' attributes, creation of new files and deletion of files. > I've read over the documentation for kqueue, but some things were left > unclear. For example, it appears that kqueue needs a file descriptor > for each file that one would want to monitor, making any large-scale > file monitoring impractical. Is there any other way in FreeBSD to be > notified of file modifications in a way that would allow one to monitor > the whole file system or large portions of it? Also, I'm not very > knowledgable about file system conventions, so I'm wondering how one > would detect the creation of new files? I don't really need to know > whether a particular attribute changed, but rather just whether any of > them changed. > > BTW, I have posted this question earlier to freebsd-questions, but > nobody answered and, judging by the content of the other questions on > that list, I thought that my question would be more appropriate here. Currently, you can monitor particular files for meta-data changes, which include extended attribute modifications, and you can monitor directories for changes, which might include the addition of a new name (and hence possibly a file). However, currently there's no way to monitor at the granularity of a file system for events such as "Some EA changed" or "A new file was allocated". I guess such primitives haven't generally been needed in the past, although I can certainly imagine scenarios where they might be used. Kqueue is the vehicle the two events I identified above can be monitored with, and it's certainly possible to imagine adding new event categories to monitor a file system for global events, assuming it's a local file system. However, then the question becomes "Once I know that a file has been added, how do I find it", which I would guess generally results in a recursive search, at which point I suspect you might as well just re-search the entire fs once in a while anyway. The functionality you're looking for sounds a bit more database-esque than in line with a traditional file store. FWIW, Apple has a searchfs() system call and vnode operation to permit more efficient meta-data searches on HFS+; this makes some sense for HFS+ because it has a notion of a centralized meta-data store, whereas ours is laid out pretty sparsely over the tree and works a bit differently. They don't support generalized meta-data extended attributes right now, though, although they do have a few specific attributes beyond the standard set. Well, we actually have local patches to add EA's to their UFS file system that would probably work on HFS+, but they aren't in the central Darwin tree. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 8: 3:58 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 902CE37B401 for ; Mon, 24 Feb 2003 08:03:57 -0800 (PST) Received: from Millions.Ca (h24-79-52-254.sbm.shawcable.net [24.79.52.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91FEF43FB1 for ; Mon, 24 Feb 2003 08:03:55 -0800 (PST) (envelope-from stacy@Millions.Ca) Received: (from uucp@localhost) by Millions.Ca (8.11.1/8.9.3) id h1OG3rL75730 for ; Mon, 24 Feb 2003 09:03:53 -0700 (MST) (envelope-from stacy@Millions.Ca) Received: from Cedar.Millions.Ca(192.168.64.8) via SMTP by mail-gw-0.millions.ca, id smtpdv75728; Mon Feb 24 09:03:49 2003 Received: from millions.ca (Bonsai.Millions.Ca [192.168.64.4]) by cedar.millions.ca (8.12.6/8.12.6) with ESMTP id h1OG3m3P064670 for ; Mon, 24 Feb 2003 09:03:49 -0700 (MST) (envelope-from stacy@millions.ca) Message-ID: <3E5A4264.2010801@millions.ca> Date: Mon, 24 Feb 2003 09:03:48 -0700 From: Stacy Millions Organization: Millions Consulting Limited User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <200302231017.16894.wes@softweyr.com> In-Reply-To: <200302231017.16894.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wes Peters wrote: > Terminal? You have heard of this really cool thing called windowing > software? ;^) > > I completely utterly fail to understand why some young developers attach > some sort of romance to writing code on an 80x25 screen, when all the > haxxors my age or older waited (or slaved away) for years, even > decades, to get something better and more flexible. Terminal? 80x25 screen? Bloody luxury. How 'bout ed on a 300 baud DecWriter? You could even have more then 80 columns, if you had the wide paper :-) -stacy -- If they keep lowering education standards and raising the price of gasoline, there are going to be a lot of stupid people walking around. Stacy Millions stacy@millions.ca Millions Consulting Limited To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 8:11:34 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B371037B401 for ; Mon, 24 Feb 2003 08:11:31 -0800 (PST) Received: from shell.postech.ac.kr (shell.postech.ac.kr [141.223.6.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26D9F43FAF for ; Mon, 24 Feb 2003 08:11:30 -0800 (PST) (envelope-from octphial@shell.postech.ac.kr) Received: (from octphial@localhost) by shell.postech.ac.kr (8.9.3/8.9.3) id BAA18932 for freebsd-hackers@freebsd.org; Tue, 25 Feb 2003 01:10:32 +0900 (KST) Date: Tue, 25 Feb 2003 01:10:31 +0900 From: Byunghyun Oh To: freebsd-hackers@freebsd.org Subject: Re: Replacement for get_user_pages() of Linux Message-ID: <20030225011031.A18917@shell.postech.ac.kr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I am so sorry that I couldn't (and maybe can't) explain what I want, because I don't know it exactly due to my poor knowledge of VM system and Plex86 itself (http://plex86.sourceforge.net/). But I'll try to explain here. Plex86 is a kind of VMWare or so, but it limits its focus to userland operation (many things had been said, but I only remember 'ring 3' and blah). Anyway, Plex86 originally allocated some memory places for some logging and VM guest's CPU info, and this allocation occured in kernel module. However, it changed to allocate in host application part, and kernel module just find user pages from their addresses (I'm not sure whether they are virtual or they are physical) and pin them (someone here already explained what pinning is). Of course, here is an un-pinning function also. I'm neither Linux expert nor FreeBSD expert, so I sought Linux-2.4.20 source, FreeBSD VM things, vmmon (VMWare kernel module part) for FreeBSD, and Google. However, I couldn't find no clear document and usage. Fortunately, many arguments from my question helped me so much, and I think its solution is so close. For now, thanks for answering my silly question. :) Byunghyun Oh octphial _at_ postech.ac.kr ps. Is DMA means just 'Direct Memory Access', and shall I understand it literally? On Mon, Feb 24, 2003 at 02:56:44AM -0800, Terry Lambert wrote: > David Schultz wrote: > > Thus spake Byunghyun Oh : > > > I'm porting Plex86 x86 VM, which uses get_user_pages() function at > > > Linux-version kernel module to find and pin physical pages of memory > > > in user space (according to its documentation). I tried many > > > candidates as its replacement (PHYS_TO_VM_PAGE() macro in vm/vm_page.h > > > seems most useful now), but they haven't worked at all. > > > > > > Any experience about porting VM-related things in Linux will be > > > appreciated. :) > > > > Glancing at the Linux source, it looks like you want vm_map_wire(). > > BTW, in the future, it helps if you can describe what you're > > looking for, since we're not all Linux experts. > > > I'm pretty sure this isn't what he really wants, it's just what > he thinks he wants, and he's wrong about it, but he hasn't told > us what problem he's trying to solve, so that we can correct his > misconception. > > In general, FreeBSD drivers DMA to pages for which there is an > established kernel mapping, period. > > With specific exceptions, kernel pages are not pageable, and so > they do not need to be wired (you have to go way out of your way > to get pageable kernel memory; most people don't do it, and I'm > not even sure UMA allows you to get this type of memory any more). > > No FreeBSD driver DMA's into user space address space directly, > bypassing kernel space address space; either there is a kernel > mapping AND a user mapping, or there is ONLY a kernel mapping. > > The closest FreeBSD ever comes to this is to map a set of kernel > space allocated pages into a user process address space, by the > process opening a device node, and calling mmap() on it. In a > pinch, you can force this on the process from kernel space, so > you don't have to rewrite your code (e.g. the code is running > under Linux or other emulation), but this is really frowned upon. > > In this case, the memory is usually allocated directly to the > device at the time the device is attached, e.g. the video memory > in a VGA card, or the memory window onto the AGP in the agpart > device. Then it is mapped into the user process address space > (e.g. the XFree86 server process), and DMAs into that memory are > implicitly DMAs into the user process address space. > > > Again, it would be really, really nice to know what problem he > is trying to solve, so that people who know FreeBSD can tell him > the FreeBSD way of solving the problem. > > > I suspect that he wants to use bus_dmamem_alloc(), bus_dmamap_create(), > bus_dma_tag_create(), etc., and write a standard FreeBSD device driver > for his device, so that it will work on things like Alpha, SPARC64, > IA64, PPC, and other platforms which care about memory windows onto > main memory via "bus space". > > Without knowing the problem he's trying to solve though... you get > the point... > > -- Terry > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 8:42:57 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46A8E37B401 for ; Mon, 24 Feb 2003 08:42:55 -0800 (PST) Received: from fump.kawo2.rwth-aachen.de (fump.kawo2.RWTH-Aachen.DE [134.130.181.148]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44B7C43FDD for ; Mon, 24 Feb 2003 08:42:53 -0800 (PST) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: from fump.kawo2.rwth-aachen.de (localhost.kawo2.rwth-aachen.de [127.0.0.1]) by fump.kawo2.rwth-aachen.de (8.12.7/8.12.6) with ESMTP id h1OGgqVX036052 for ; Mon, 24 Feb 2003 17:42:52 +0100 (CET) (envelope-from alex@fump.kawo2.rwth-aachen.de) Received: (from alex@localhost) by fump.kawo2.rwth-aachen.de (8.12.7/8.12.6/Submit) id h1OGgq9m036051 for hackers@FreeBSD.org; Mon, 24 Feb 2003 17:42:52 +0100 (CET) Date: Mon, 24 Feb 2003 17:42:52 +0100 From: Alexander Langer To: hackers@FreeBSD.org Subject: mysql endless loops Message-ID: <20030224164252.GD33820@fump.kawo2.rwth-aachen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-PGP-Fingerprint: 7EC1 5B98 4554 2A63 9079 2B2F 9A94 CD6F 7F14 EFA4 X-PGP-at: finger alex@big.endian.de X-Verwirrung: Dieser Header dient der allgemeinen Verwirrung. User-Agent: Mutt/1.5.3i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi! A known bug with MySQL 3.x is that it sometimes enters a 100% cpu usage loop if you stress it too much (I can repeat this every 2-3 weeks). I just attached a ktrace, and it shows this: 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 57486 mysqld CALL gettimeofday(0x283fddec,0) 57486 mysqld RET gettimeofday 0 57486 mysqld CALL poll(0x8382000,0x4,0xb8c) 57486 mysqld RET poll 1 ... (approx. 80 MB of these lines, then I killed the process). It seem the thread handling is broken for mysql (this gettimeofday happens in the "while (select_thread_in_use)" in mysqld.cc I believe. Anyways, I'm going to try mysql 4.0 now, maybe someone can use the information above. Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 8:45:25 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E99637B401 for ; Mon, 24 Feb 2003 08:45:24 -0800 (PST) Received: from smtpproxy2.mitre.org (smtpproxy2.mitre.org [192.80.55.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 669BF43F85 for ; Mon, 24 Feb 2003 08:45:23 -0800 (PST) (envelope-from jandrese@mitre.org) Received: from avsrv2.mitre.org (avsrv2.mitre.org [128.29.154.4]) by smtpproxy2.mitre.org (8.11.3/8.11.3) with ESMTP id h1OGhSc18895 for ; Mon, 24 Feb 2003 11:43:33 -0500 (EST) Received: from MAILHUB2 (mailhub2.mitre.org [129.83.221.18]) by smtpsrv2.mitre.org (8.11.3/8.11.3) with ESMTP id h1OGhPo02642 for ; Mon, 24 Feb 2003 11:43:26 -0500 (EST) Received: from mm112324-2k.mitre.org (128.29.3.65) by mailhub2.mitre.org with SMTP id 1237771; Mon, 24 Feb 2003 11:43:20 -0500 Message-ID: <3E5A4BA9.5010700@mitre.org> Date: Mon, 24 Feb 2003 11:43:21 -0500 From: Jason Andresen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <200302231017.16894.wes@softweyr.com> <3E5A4264.2010801@millions.ca> In-Reply-To: <3E5A4264.2010801@millions.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Stacy Millions wrote: > Wes Peters wrote: > >> Terminal? You have heard of this really cool thing called windowing >> software? ;^) >> >> I completely utterly fail to understand why some young developers >> attach some sort of romance to writing code on an 80x25 screen, when >> all the haxxors my age or older waited (or slaved away) for years, >> even decades, to get something better and more flexible. > > > Terminal? 80x25 screen? Bloody luxury. How 'bout ed on a 300 baud > DecWriter? > You could even have more then 80 columns, if you had the wide paper :-) Heh, I started with XEmacs on FreeBSD 2.0.5 and the first thing I did was resize the window so it was a full 800 pixels wide. This was a school assignment and we had to print out our programs to turn them in (with the disk, apparently they didn't trust those floppies). Turns out that my printer (an old 24 pin dot matrix deal[1]) only supported 80 columns, and I ended up wasting a LOT of paper (although the assignment was impressively thick when I turned it in. :) After that I relegated myself to never exceeding 80 columns unless absolutely necessary. [1] Kids these days have never overheated a printer in their life. -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 8:49:25 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EF5D37B401 for ; Mon, 24 Feb 2003 08:49:24 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B7D943FA3 for ; Mon, 24 Feb 2003 08:49:23 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0419.cvx40-bradley.dialup.earthlink.net ([216.244.43.164] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18nLn7-000108-00; Mon, 24 Feb 2003 08:49:22 -0800 Message-ID: <3E5A4CC1.F96C7191@mindspring.com> Date: Mon, 24 Feb 2003 08:48:01 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: omestre Cc: freebsd-hackers@freebsd.org Subject: Re: bootp_subr.c forget it. References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a402afb412788e4bd491994a3784973875350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG omestre wrote: > Thanks Terry Lambert, for your time. You asked for opinions. I gave my opinion. I am one person, and what I say has little or nothing to do with whether your code will be committed. However, realize that when you ask for a review of a patch, you are going to get all softs of comments on the style, whitespace changes, printfs, or copyright modifications (particularly if it's not obvious whether the code is significant enough to constitute a copyrightable derivative work. > Of course that the FreeBSD code will not have my name, and company! > That is the code that i did for MY company! What i wanted was share is > the solution! If you will supress my name or everything, is not my > problem. > If i change a bit, a letter... in a source code, i will allways put my > name. Not because the rights, but because the errors! Then i break the > software, the errors are mine, this is justice. The license issues are very serious to the community. FreeBSD could not, in good conscience, rip off your code without giving you the credit you asked for in your patch. I think that the community would be willing to take responsibility for any bugs that it was willing to commit to the source tree. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 9:23:28 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5061537B401 for ; Mon, 24 Feb 2003 09:23:26 -0800 (PST) Received: from stork.mail.pas.earthlink.net (stork.mail.pas.earthlink.net [207.217.120.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61D5443F85 for ; Mon, 24 Feb 2003 09:23:25 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0419.cvx40-bradley.dialup.earthlink.net ([216.244.43.164] helo=mindspring.com) by stork.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18nMK0-00002N-00; Mon, 24 Feb 2003 09:23:21 -0800 Message-ID: <3E5A54B6.CC1639F1@mindspring.com> Date: Mon, 24 Feb 2003 09:21:58 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Byunghyun Oh Cc: freebsd-hackers@freebsd.org Subject: Re: Replacement for get_user_pages() of Linux References: <20030223163746.A19421@shell.postech.ac.kr> <20030224100346.GA6374@HAL9000.homeunix.com> <3E59FA6C.CF8CB852@mindspring.com> <20030224143911.GA645@localhost.postech.ac.kr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4e66010e690b72fffd123ab9f06eec65f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Byunghyun Oh wrote: > ps. Is DMA means just 'Direct Memory Access', and shall I understand it > literally? Yes, DMA stands for "Direct Memory Access". The purpose of DMA is to allow devices other than the main CPU to directly access regions of physical memory by using a DMA line (DRQ) to arbitrate access to the physical memory bus, and then perform reads (DMA out) or writes (DMA in) to physical RAM belonging to system memory, rather than to the device. The reason to do permit this is so that the main CPU can keep processing whatever is in it's I and D (Instruction and Data) caches, without introducing a stall while the main CPU does its work. In this way, copy processing can be offloaded from the main CPU to chips on devices ("DMA engines"), instead. - In the context of Plex86, the reason for having this would be to permit physical devices to be assigned to the virtual machine, and not interact with the host system (I think). This idea ia somewhat flawed, and I don't think you can avoid the host system interaction. VMWare handles this by creating virtual hardware that then bridges to the real hardware (e.g. for serial ports and network adapters). In any case, what this would imply is that the kernel running under the Plex86 that has had the resource assigned to it would need *its* pages wired down, so that *its* driver(s) for the real hardware that has been assigned to it can pass "kernel" addresses to the DMA engines on the hardware, and have the hardware able to DMA into the "kernel" memory for the host OS. It seems to me that direct assignment of hardware resources is a bad idea, in this context, and that additional modifications to the hosted OS would be required in order to permit these addresses to be exported to real hardware, for DMA purposes. Specifically, you would need to translate from the virtual address to the physical address, given that the physical address is virtualized by the hardware, and this would not be automatic. A useful resource for someone porting Plex86 to FreeBSD is probably the NetBSD port of the code, back in December of last year (though the Plex86 web site claims that the code is significantly changed, as of February of this year, to mostly run in user space). See: http://slashdot.org/article.pl?sid=00/12/14/1041230 Also, FWIW, it looks like it already runs on FreeBSD?!?: -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 10: 1:24 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72AE837B405 for ; Mon, 24 Feb 2003 10:01:18 -0800 (PST) Received: from chanintr.com (TruPPPv92-225-174.inet.co.th [203.151.225.174]) by mx1.FreeBSD.org (Postfix) with SMTP id BFF7143FD7 for ; Mon, 24 Feb 2003 10:01:00 -0800 (PST) (envelope-from service@chanintr.com) Content-Type: text/html; charset="US-ASCII" Date: Tue, 25 Feb 2003 01:00:55 +0700 To: freebsd-hackers@freebsd.org From: service@chanintr.com X-Mailer: Version 5.0 Subject: Exclusive Preview for Preferred Customers Organization: Chanintr Fine Furnishings Message-Id: <20030224180100.BFF7143FD7@mx1.FreeBSD.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Chanintr exclusive Preview 01
 
WE ARE PLEASED TO ANNOUNCE THAT OUR NEWEST SHIPMENT HAS ARRIVED. PLEASE BE INVITED TO OUR EXCLUSIVE PREVIEW BETWEEN FEBRUARY 24 TILL MARCH 1, 2003.
AS BEING OUR PREFERRED CUSTOMERS, YOU WILL BE THE FIRST TO BE INTRODUCED TO OUR NEWLY ADJUSTED PRICING (ON NEW ARRIVALS ONLY). FIND OUT MORE AT OUR SHOWROOM.
 
RIBBON & BOWS OFFERS BEAUTIFULLY CRAFTED BEDROOM FURNISHINGS THAT CAN ADAPT TO YOUR DEVELOPING CHILD'S NEEDS.
01.TWIN BED (PANEL HEADBOARD,
FOOTBOARD, PANEL HEADBOARD RAILS)

W104 H122cm
Baht 24,940
02. NIGHT STAND
W64 D43 H61cm
Baht 16,340/pc
 
03. STUDENT DESK AND CHAIR ( DESK, HUTCH, CHAIR)
W107 D48 H190cm
Baht 58,910
04. TWIN BED WITH TRUNDLE FRONT
(PANEL HEADBOARD,FOOTBOARD, PANEL HEADBOARD RAILS, TRUNDLE FRONT)
 
W104 H122cm
Baht 30,400
05. DRAWER CHEST
W102 D48 H114cm
Baht 36,120
 
 

06.SOFA BED
A633-1180SL
Lancaster Sleep Sofa
Fabric No.: 1360-90 Gr. G
W203 D91 H84cm
Baht 132,000

 

 

 
ESPRESSO, A DARK RICH SATIN FINISH
07.1 SLAT HEADBOARD
H127cm
Baht 38,700
07.2 SLAT FOOTBOARD
W71cm
Baht 46,440
07 TOTAL SET: BAHT 85,140
 
08 NIGHT STAND
W71 D45 H66cm
Baht 30,315 /pc
09.1 MIRROR
W101 D4 H111cm
Baht 28,380
09.2 DRAWER DRESSER
W162 D50 H100cm
Baht 84,495
09 TOTAL SET: BAHT 112,875
 
 
 
MAPLE WOOD, CHERRY FINISH
10.SOFA TABLE
W132 D40 H71cm
Baht 35,475
11.SQUARE COCKTAIL TABLE
W97 D97 H45cm
Baht 38,700
12.BOOK TABLE
W59 D50 H63cm
Baht 35,475 /pc
 
If you no longer wish to receive our mail please click here.
 
To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 10:40: 0 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E39237B401 for ; Mon, 24 Feb 2003 10:39:55 -0800 (PST) Received: from ghostwheel.tribble.net (ghostwheel.tribble.net [198.49.247.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB10743FAF for ; Mon, 24 Feb 2003 10:39:54 -0800 (PST) (envelope-from gder@ghostwheel.tribble.net) Received: from ghostwheel.tribble.net (gder@localhost.tribble.net [127.0.0.1]) by ghostwheel.tribble.net (8.12.6/8.12.6) with ESMTP id h1OIdrOq081337 for ; Mon, 24 Feb 2003 11:39:53 -0700 (MST) (envelope-from gder@ghostwheel.tribble.net) Received: (from gder@localhost) by ghostwheel.tribble.net (8.12.6/8.12.7/Submit) id h1OIdrr8081336 for freebsd-hackers@freebsd.org; Mon, 24 Feb 2003 11:39:53 -0700 (MST) Date: Mon, 24 Feb 2003 11:39:53 -0700 From: G-der To: freebsd-hackers@freebsd.org Subject: Properly reaping children from a fork() Message-ID: <20030224183953.GB80651@gder.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I wasn't sure which group to send this too but -hackers seemed more appropriate than -questions. I've started to play with sockets under FreeBSD and have created a very simple server. All it does is listens (on port 2525 by default) and when it receives a connection fork()s. The only purpose it is accept a string, print it to stdout along with the number of bytes received. This is a first attempt for me but I seem to have problems when it comes to ensuring that all the children exit like they should. What happens is that each child process remains in a zombied state (as seen through ps). Also if you check sockstat you can see that each zombied process still has a connection open. I'm not sure if the problem is how I am trying to close the socket or if it is with my signal handling. I'm currently reading through intro(2) to see if there is something simple I've missed. I've attached the code for your enjoyment...I'm sure someone will be able to point out my mistake pretty quickly. Also I've found a couple of web pages that kind of explain socket handling but am looking for other resources that I can consult. Thanks in advance, I'm not a normal subscriber to -hackers so a cc to gder@gder.net would be appreciated. Regards Gene Dinkey gder@gder.net --CUT HERE-- #include #include #include #include #include #include #include #include #define MYPORT 2525 #define MAXRECV 5 #define MAXBUFSIZE 50 int main ( void ); int establish ( unsigned short portnum ); int get_connect ( int sockfd ); int get_data ( int sockfd ); void sigchld_handler ( int s ); int main ( void ) { int s; // struct sigaction sa; if ((s=establish(MYPORT)) < 0) //establish the socket exit(-1); s = get_connect(s); //wait for a connection /* The commented code was supposed to reap the children in but it didn't the call to signal() is supposed to do the same thing, but it doesn't */ /* sa.sa_handler = sigchld_handler; sigemptyset(&sa.sa_mask); sa.sa_flags = SA_RESTART; if (sigaction(SIGCHLD, &sa, NULL) == -1) { perror("main:sigaction"); exit(-1); } */ signal(SIGCHLD, sigchld_handler); if (s != -1) { get_data(s); // get the incoming data close(s); // finally close the socket } exit(0); } /*handles zombied processes*/ void sigchld_handler ( int s ) { while(waitpid(-1, NULL, WNOHANG) > 0); } /* Establishses a socket and starts to listen */ int establish ( unsigned short portnum ) { int sockfd; struct sockaddr_in my_addr; if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { //establish the socket perror("establish:socket"); return(-1); } /* host information */ my_addr.sin_family = AF_INET; my_addr.sin_port = htons(portnum); my_addr.sin_addr.s_addr = htonl(INADDR_ANY); memset(&(my_addr.sin_zero), '\0', 8); /* bid the socket to a port */ if (bind(sockfd, (struct sockaddr *) &my_addr, sizeof(struct sockaddr)) < 0) { perror("establish:bind"); return(-1); } /* finally tell the socket to start listening */ if (listen(sockfd, MAXRECV) < 0) { perror("establish:listen"); close(sockfd); return(-1); } return(sockfd); // return the socket handler } /*accepts connections*/ int get_connect ( int sockfd ) { int sin_size, new_fd; struct sockaddr_in their_addr; sin_size = sizeof(struct sockaddr_in); for(;;) { //begin the accept loop /* accept the new connection and get the new socket id */ if ((new_fd = accept(sockfd, (struct sockaddr *)&their_addr, &sin_size)) < 0) { perror("get_connect:accept"); return(-1); } printf("Server got connection\n"); /* fork the new connection */ if(!fork()) { close(sockfd); // close the listener, child doesn't need it return(new_fd); // return the new active socket } } return(-1); } /*gets some data and prints it out*/ int get_data ( int sockfd ) { char buffer[MAXBUFSIZE]; int datain; for (;;) { //begin the retreival loop /* get the incoming data and check a few things */ if ((datain = recv(sockfd, buffer, MAXBUFSIZE, 0)) < 0) { perror("get_data:recv"); return(-1); } else if (datain > 0) { //print number of bytes received printf("Received %d bytes\n", datain); buffer[datain] = '\0'; } else if (datain == 0) //if 0 then return and close the socket return(0); printf("%s", buffer); //otherwise print the buffer } return(0); } --EOF-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 11:18:39 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ED2B37B401; Mon, 24 Feb 2003 11:18:37 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F73D43FA3; Mon, 24 Feb 2003 11:18:34 -0800 (PST) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id 5DD7543C33; Mon, 24 Feb 2003 11:18:29 -0800 (PST) From: Wes Peters Organization: Softweyr.com To: Robert Watson , Kevin Fogleman Subject: Re: Monitoring changes in extended attributes? Date: Mon, 24 Feb 2003 11:18:26 -0800 User-Agent: KMail/1.5 Cc: freebsd-hackers@freebsd.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302241118.26679.wes@softweyr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 24 February 2003 07:25, Robert Watson wrote: > On Wed, 12 Feb 2003, Kevin Fogleman wrote: > > Is there an existing way to monitor the entire filesystem for changes > > to any file, particularly changes in extended attributes? > > > > I'm looking to write a program that builds an index of all > > user-accessable extended attributes for every file in the filesystem > > and then updates that index in real time according to modifications to > > existing files' attributes, creation of new files and deletion of > > files. I've read over the documentation for kqueue, but some things > > were left unclear. For example, it appears that kqueue needs a file > > descriptor for each file that one would want to monitor, making any > > large-scale file monitoring impractical. Is there any other way in > > FreeBSD to be notified of file modifications in a way that would allow > > one to monitor the whole file system or large portions of it? Also, > > I'm not very knowledgable about file system conventions, so I'm > > wondering how one would detect the creation of new files? I don't > > really need to know whether a particular attribute changed, but rather > > just whether any of them changed. > > > > BTW, I have posted this question earlier to freebsd-questions, but > > nobody answered and, judging by the content of the other questions on > > that list, I thought that my question would be more appropriate here. > > Currently, you can monitor particular files for meta-data changes, which > include extended attribute modifications, and you can monitor directories > for changes, which might include the addition of a new name (and hence > possibly a file). However, currently there's no way to monitor at the > granularity of a file system for events such as "Some EA changed" or "A > new file was allocated". I guess such primitives haven't generally been > needed in the past, although I can certainly imagine scenarios where they > might be used. Kqueue is the vehicle the two events I identified above > can be monitored with, and it's certainly possible to imagine adding new > event categories to monitor a file system for global events, assuming > it's a local file system. However, then the question becomes "Once I > know that a file has been added, how do I find it", which I would guess > generally results in a recursive search, at which point I suspect you > might as well just re-search the entire fs once in a while anyway. The > functionality you're looking for sounds a bit more database-esque than in > line with a traditional file store. BeFS (in BeOS) had some interesting capabilities along these lines. It seems to me that the ability to monitor a mounted filesystem for inode changes would be a big plus. If you need to get from the inode number back to the filename or directory entry, you could either search or maintain an in-memory cache of the directory structure. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 12: 5:59 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0705837B401 for ; Mon, 24 Feb 2003 12:05:58 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id E48EE43FA3 for ; Mon, 24 Feb 2003 12:05:56 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Mon, 24 Feb 2003 20:05:38 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 18nOoB-0000a8-00; Mon, 24 Feb 2003 20:02:39 +0000 Date: Mon, 24 Feb 2003 20:02:39 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: G-der Cc: freebsd-hackers@freebsd.org Subject: Re: Properly reaping children from a fork() In-Reply-To: <20030224183953.GB80651@gder.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, 24 Feb 2003, G-der wrote: > I've attached the code for your enjoyment...I'm sure someone will be able > to point out my mistake pretty quickly. Also I've found a couple of web > pages that kind of explain socket handling but am looking for other > resources that I can consult. You never establish the signal handler. > Thanks in advance, I'm not a normal subscriber to -hackers so a cc to > gder@gder.net would be appreciated. If you've got a bit of spare cash, you might want to peruse a couple of excellent texts: Advanced Programming in the Unix Environment (APUE) and Unix Network Programming (particularly volume 1); both by the late W. Richard Stevens. Well worth the money (and you'll probably receive several recommendations along the same lines). Cheers, jan -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ You know something's gone badly wrong when your algorithm takes O(n^2) time but uses O(2^n) space. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 12:27:15 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F04037B401 for ; Mon, 24 Feb 2003 12:27:14 -0800 (PST) Received: from ghostwheel.tribble.net (ghostwheel.tribble.net [198.49.247.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61C5E43FA3 for ; Mon, 24 Feb 2003 12:27:13 -0800 (PST) (envelope-from gder@ghostwheel.tribble.net) Received: from ghostwheel.tribble.net (gder@localhost.tribble.net [127.0.0.1]) by ghostwheel.tribble.net (8.12.6/8.12.6) with ESMTP id h1OKR7Oq003514; Mon, 24 Feb 2003 13:27:07 -0700 (MST) (envelope-from gder@ghostwheel.tribble.net) Received: (from gder@localhost) by ghostwheel.tribble.net (8.12.6/8.12.7/Submit) id h1OKR72c003513; Mon, 24 Feb 2003 13:27:07 -0700 (MST) Date: Mon, 24 Feb 2003 13:27:06 -0700 From: G-der To: Jan Grant Cc: wgrim@siue.edu, kla@tu-sofia.acad.bg, freebsd-hackers@freebsd.org Subject: Re: Properly reaping children from a fork() Message-ID: <20030224202706.GA99643@gder.net> References: <20030224183953.GB80651@gder.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thank you everyone for your replies. The bug was a pretty silly one and one that I should have caught just stepping through the code. The call to signal() to install the handler was beging made after the fork(). So the children had a handler installed but not the parent. I moved the signal() call above the accept loop and before the fork and that seems to have cleared up that issue. Again, thanks for the prompt responses... Regards Gene Dinkey To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 13:20:13 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58AE437B401 for ; Mon, 24 Feb 2003 13:20:12 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8DE143FE3 for ; Mon, 24 Feb 2003 13:20:10 -0800 (PST) (envelope-from wes@softweyr.com) Received: from homer.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id AF03143F39; Mon, 24 Feb 2003 13:17:04 -0800 (PST) From: Wes Peters Organization: Softweyr LLC To: Terry Lambert , omestre Subject: Re: bootp_subr.c forget it. Date: Mon, 24 Feb 2003 13:25:37 -0800 User-Agent: KMail/1.5 Cc: freebsd-hackers@freebsd.org References: <3E5A4CC1.F96C7191@mindspring.com> In-Reply-To: <3E5A4CC1.F96C7191@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302241325.38020.wes@softweyr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 24 February 2003 08:48 am, Terry Lambert wrote: > omestre wrote: > > > Of course that the FreeBSD code will not have my name, and > > company! That is the code that i did for MY company! What i wanted > > was share is the solution! If you will supress my name or > > everything, is not my problem. > > If i change a bit, a letter... in a source code, i will allways > > put my name. Not because the rights, but because the errors! Then i > > break the software, the errors are mine, this is justice. > > The license issues are very serious to the community. FreeBSD > could not, in good conscience, rip off your code without giving you > the credit you asked for in your patch. We have other ways of noting donations to the project as well. The primary one is the "Obtained From:" header in the CVS commit, where sponsored changes like this can be noted without affecting the copyright in any way. Please consider using this if it is sufficient for you and your employers needs. > I think that the community would be willing to take responsibility > for any bugs that it was willing to commit to the source tree. Yes, we are, and we are also very willing to give credit. We don't want to create anymore licensing nightmare than we already have if we can avoid it. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 13:53:10 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B10D137B401 for ; Mon, 24 Feb 2003 13:53:07 -0800 (PST) Received: from bluejay.mail.pas.earthlink.net (bluejay.mail.pas.earthlink.net [207.217.120.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 26DBA43F3F for ; Mon, 24 Feb 2003 13:53:07 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0300.cvx22-bradley.dialup.earthlink.net ([209.179.199.45] helo=mindspring.com) by bluejay.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18nQWx-0007Bk-00; Mon, 24 Feb 2003 13:53:00 -0800 Message-ID: <3E5A93EC.E8083957@mindspring.com> Date: Mon, 24 Feb 2003 13:51:40 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: G-der Cc: freebsd-hackers@freebsd.org Subject: Re: Properly reaping children from a fork() References: <20030224183953.GB80651@gder.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a409041a3bcf13789aecab6dc5bd236428548b785378294e88350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG G-der wrote: > This is a first attempt for me but I seem to have problems when it comes > to ensuring that all the children exit like they should. What happens is > that each child process remains in a zombied state (as seen through ps). > Also if you check sockstat you can see that each zombied process still has > a connection open. Unless you explicitly close the connection, it's open. In the case of a zombie, though, there is a zombie status structure, and the files are in fact closed. Probably what you are seeing is the TCP connection is not being properly closed by the client, or the connection rate is high enough that the 2MSL timer has not expired by the time you are looking at it, so they appear open. > I'm not sure if the problem is how I am trying to close the socket or if > it is with my signal handling. I'm currently reading through intro(2) to > see if there is something simple I've missed. Who is closing the socket, the client or the server? If the client is closing the socket, it must call "shutdown(2)" on the socket, and then explicitly call close. This is because certain user space TCP implementations, such as those in Windows, do not have proper resource tracking for sockets, which are implemented in user space, instead of being implemented in kernel space. There are also a number fo "test" applications, which are nothing more than "SYN-guns", i.e. they do not implement the full handshake, and their only purpose is to connection-load the server. Many of these send RST, and then drop all knowledge of the connection. This will, over time, result in a large number of outstanding open sockets on the server, since RST packets do not time out and repeat, since they do not require ACK'ing: because of that, if they get lost, then they are lost forever. This can happen even on a local wire, if you get a collision or some other event (for example). > /* The commented code was supposed to reap the children in but it didn't > the call to signal() is supposed to do the same thing, but it doesn't */ > > /* sa.sa_handler = sigchld_handler; > sigemptyset(&sa.sa_mask); > sa.sa_flags = SA_RESTART; > if (sigaction(SIGCHLD, &sa, NULL) == -1) { > perror("main:sigaction"); > exit(-1); > } */ > > signal(SIGCHLD, sigchld_handler); This is bogus. You don't want SA_RESTART behaviour here, since it's not like you have to worry about a system call. Calling the old "signal" code overrides pretty much everything you do with the sigaction() in any case. Your main() exits, instead of hanging in wait() or sleep(), and looping forever, in order to reap connections. Your fork() returns the wrong way to main() (i.e. child exits and parent stays around forever), so you have some identity confusion. NB: An alternate way of setting up automatic reaping, since your handler seems to not care about exit status, is to set SIG_IGN as the handler for SIGCLD. Actually, you'd do well to get a copy of "UNIX Network Programming" by Stevens, or, minimally, download the example source code from the publisher's web site. It would help you out by providing you working "simple server" example source code. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 16:27:57 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE8AD37B401; Mon, 24 Feb 2003 16:27:55 -0800 (PST) Received: from mgw1-out.MEIway.com (mgw1.meiway.com [212.73.210.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB4F243FBD; Mon, 24 Feb 2003 16:27:53 -0800 (PST) (envelope-from LConrad@Go2France.com) Received: from VirusGate.MEIway.com (virus-gate.meiway.com [212.73.210.91]) by mgw1-out.MEIway.com (Postfix Relay Hub) with ESMTP id C4932EF6AA; Tue, 25 Feb 2003 01:15:47 +0100 (CET) Received: from localhost (localhost.meiway.com [127.0.0.1]) by VirusGate.MEIway.com (Postfix) with SMTP id A574E5D009; Tue, 25 Feb 2003 01:30:55 +0100 (CET) Received: from mail.Go2France.com (ms1.meiway.com [212.73.210.73]) by VirusGate.MEIway.com (Postfix) with ESMTP id 227E35D008; Tue, 25 Feb 2003 01:30:55 +0100 (CET) Received: from tx0-go2france-c.Go2France.com [66.64.14.18] by mail.Go2France.com with ESMTP (SMTPD32-6.06) id AC9BC5F00EC; Tue, 25 Feb 2003 01:45:15 +0100 Message-Id: <5.2.0.9.0.20030224181445.04d77270@mail.go2france.com> X-Sender: LConrad@Go2France.com@mail.go2france.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 24 Feb 2003 18:27:45 -0600 To: freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org From: Len Conrad Subject: booting from Promise tx2000: FIXED In-Reply-To: <5.2.0.9.0.20030224022306.02105760@mail.go2france.com> References: <5.2.0.9.0.20030223184703.03e52cc0@mail.go2france.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Since we only had one ATA133 on each TX2000 ATA channel, we skipped the TX2000 setup utility to define an "array" (we didn't want to run RAID or want any stinking arrays at all). We were able to boot from mobo ATA CDROM and install fbsd through the TX2000. ( btw, we always install fbsd boot mgr, since without the boot mgr, we more often than not, cannot get any boot at all ) But, no boot from TX2000 fbsd disk. Nothing, no errors, from TX200, nothing from fbsd bootblock. When we did define an array as "span", but only had one disk per ATA channel in the "span", we were finally able to get a boot but with a failure : Mounting Root from ufs:/dev/ad4s1a Root Mount Failed: 16 We figured the fbsd install pre-array/span wasn't accessible after we did defined array/span. So with the array mode + span now on, we re-installed fbsd via the TX2000 to the same disk. And now, we can boot just fine. .... while waiting for Soeren Schmidt to get the Promise SX4000 driver done! :)) Len To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 16:57:32 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21AD537B401 for ; Mon, 24 Feb 2003 16:57:31 -0800 (PST) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 444CB43F3F for ; Mon, 24 Feb 2003 16:57:30 -0800 (PST) (envelope-from mb@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.12.6/8.12.3) with ESMTP id h1P0vNXN042666; Tue, 25 Feb 2003 01:57:23 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Tue, 25 Feb 2003 01:57:23 +0100 (CET) From: Martin Blapp To: Alexander Langer Cc: hackers@FreeBSD.org Subject: Re: mysql endless loops Message-ID: <20030225014854.X1778@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Alex, This is a well known bug. You should consider to use linuxthreads. I hope it will be usable for 4.8R. Else look for patches at http://people.freebsd.org/~mbr/patches I run now all production servers with linuxthreads and hangs have gone. This document here describes the main problems with mysql on FreeBSD linked with libc_r: Short version of problems with native threading support (userland threads): 1. Non-thread safe DNS Lookups 2. Unfair Scheduling 3. High Load 4. No SMP Support 5. Missing Locks http://jeremy.zawodny.com/blog/archives/000203.html Martin Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 61 826 93 00 Fax: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 19:38:19 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B6E537B401 for ; Mon, 24 Feb 2003 19:38:17 -0800 (PST) Received: from echunga.lemis.com (gregl1.lnk.telstra.net [139.130.136.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBB5B43FBF for ; Mon, 24 Feb 2003 19:38:12 -0800 (PST) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by kondoparinga.lemis.com (Postfix) with ESMTP id 1051C3EE62; Tue, 25 Feb 2003 13:44:00 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id C157A51A3A; Fri, 21 Feb 2003 11:29:00 +1030 (CST) Date: Fri, 21 Feb 2003 11:29:00 +1030 From: Greg 'groggy' Lehey To: Wes Peters Cc: Peter Jeremy , Paul Herman , FreeBSD Hackers Subject: Re: arc4random() range Message-ID: <20030221005900.GG84517@wantadilla.lemis.com> References: <20030219013247.GA10910@x-anthony.com> <20030218180736.L240-100000@mammoth.eat.frenchfries.net> <20030219063646.GB62020@cirb503493.alcatel.com.au> <200302190922.18146.wes@softweyr.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8bBEDOJVaa9YlTAt" Content-Disposition: inline In-Reply-To: <200302190922.18146.wes@softweyr.com> User-Agent: Mutt/1.4i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --8bBEDOJVaa9YlTAt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wednesday, 19 February 2003 at 9:22:18 -0800, Wes Peters wrote: > On Tuesday 18 February 2003 22:36, Peter Jeremy wrote: >> >> I see this as a major advantage of arc4random() - if I want 32-bit >> random numbers I don't have to call random() twice and merge the >> results. I've never understood why random() was specified to return >> a '0' in the MSB. > > It probably had something to do with the PDP-11 architecture. This > rings a bell, but I can't recall what it was. Greg Lehey might be > able to help here, he has far better knowlege of the Good Old Days(tm) > than I do.=20 Difficult to say. I don't think that random() was in the Seventh Edition. They used rand() instead. Read the code and shudder: static long randx =3D 1; srand(x) unsigned x; { randx =3D x; } rand() { return(((randx =3D randx*1103515245 + 12345)>>16) & 077777); } That's the entire content of Seventh Edition /usr/src/libc/gen/rand.c. Greg -- See complete headers for address and phone numbers Please note: we block mail from major spammers, notably yahoo.com. See http://www.lemis.com/yahoospam.html for further details. --8bBEDOJVaa9YlTAt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+VXnUIubykFB6QiMRAk2/AKCD2dlaSVKw2X87WIt4pn/q+P4kXQCePaG8 JHbCPtSKY4TS8RfFQtbbKmY= =FBKr -----END PGP SIGNATURE----- --8bBEDOJVaa9YlTAt-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Mon Feb 24 23:58:41 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5839837B401 for ; Mon, 24 Feb 2003 23:58:40 -0800 (PST) Received: from 60hz.org (60hz.org [198.144.199.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5500943FAF for ; Mon, 24 Feb 2003 23:58:39 -0800 (PST) (envelope-from mdl@60hz.org) Received: from urusai.60hz.org (mdl@localhost [127.0.0.1]) by 60hz.org (8.12.6/8.12.6) with ESMTP id h1P7wbOS021984 for ; Mon, 24 Feb 2003 23:58:37 -0800 (PST) (envelope-from mdl@urusai.60hz.org) Received: (from mdl@localhost) by urusai.60hz.org (8.12.6/8.12.6/Submit) id h1P7waEk021983 for freebsd-hackers@freebsd.org; Mon, 24 Feb 2003 23:58:36 -0800 (PST) Date: Mon, 24 Feb 2003 23:58:36 -0800 From: Mark Laws To: freebsd-hackers@freebsd.org Subject: /bin/loader panic Message-ID: <20030225075836.GA21972@urusai.60hz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG During the boot sequence, /boot/loader panics with something about "guard1" and reboots. The system in question is a Pentium running 4.7-STABLE from February 12, 2003; however, this problem has been occurring for at _least_ six months now. I have tried installing new boot code into the slice using disklabel as well as updating the MBR. Do any of you know what may be causing this and/or how to fix it? Any help would be appreciated. I am unable to provide the text that appears around the time that it panics; it reboots too fast. Is there is a way to get it to pause before it reboots or wait for a keypress or something? -- Mark Laws mdl@60hz.org http://www.60hz.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 4: 9:31 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7EEA37B401; Tue, 25 Feb 2003 04:09:30 -0800 (PST) Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7C1E43FB1; Tue, 25 Feb 2003 04:09:29 -0800 (PST) (envelope-from des@ofug.org) Received: by flood.ping.uio.no (Postfix, from userid 2602) id F2B8E5308; Tue, 25 Feb 2003 13:09:27 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: Len Conrad Cc: freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: booting from Promise tx2000: FIXED From: Dag-Erling Smorgrav Date: Tue, 25 Feb 2003 13:09:26 +0100 In-Reply-To: <5.2.0.9.0.20030224181445.04d77270@mail.go2france.com> (Len Conrad's message of "Mon, 24 Feb 2003 18:27:45 -0600") Message-ID: User-Agent: Gnus/5.090014 (Oort Gnus v0.14) Emacs/21.2 (i386--freebsd) References: <5.2.0.9.0.20030223184703.03e52cc0@mail.go2france.com> <5.2.0.9.0.20030224181445.04d77270@mail.go2france.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Len Conrad writes: > .... while waiting for Soeren Schmidt to get the Promise SX4000 driver done! I was under the impression that the SX4000 and SX6000 were already supported? I know that phk has an SX6000 which he says works fine. OTOH, it's possible that this hasn't percolated down to -STABLE yet. DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 4: 9:46 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3B70337B401 for ; Tue, 25 Feb 2003 04:09:45 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id A33CD43FAF for ; Tue, 25 Feb 2003 04:09:44 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from ra.dweebsoft.com (localhost [127.0.0.1]) by ra.dweebsoft.com (8.12.6/8.12.6) with ESMTP id h1PC9is4056678 for ; Tue, 25 Feb 2003 04:09:44 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: (from http@localhost) by ra.dweebsoft.com (8.12.6/8.12.3/Submit) id h1PC9iID056677 for freebsd-hackers@freebsd.org; Tue, 25 Feb 2003 04:09:44 -0800 (PST) X-Authentication-Warning: ra.dweebsoft.com: http set sender to daxbert_news@dweebsoft.com using -f Received: from 64.81.58.36 ( [64.81.58.36]) as user daxbert@localhost by ra.dweebsoft.com with HTTP; Tue, 25 Feb 2003 04:09:44 -0800 Message-ID: <1046174984.3e5b5d084ef50@ra.dweebsoft.com> Date: Tue, 25 Feb 2003 04:09:44 -0800 From: Daxbert To: "" Subject: HOWTO track resource leaks in kernel modules ? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 64.81.58.36 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi - I was thinking about making some changes to if_de.c to support a tulip card which isn't being recognized properly. To begin this process, I need to make if_de.c export a detach function so it could be unloaded from the kernel to make debugging of the module a little easier. I've implemented a detach function, which at first glance seems ok. I've run an extremely crude test by kldload / kldunload in an infinte loop for about an hour... and the system hasn't panic-ed. And memory utilization doesn't appear to have grown. However, I'd like something a bit more accurate. Where would I look for resource leaks? Is there a library or toolkit to track such things for kernel modules? Sorry for my ignorance, but most of my Unix development experience has been centered around apache modules. Thanks, --daxbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 4:10:43 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3FECF37B401; Tue, 25 Feb 2003 04:10:42 -0800 (PST) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 986B344033; Tue, 25 Feb 2003 04:10:28 -0800 (PST) (envelope-from mb@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.12.6/8.12.3) with ESMTP id h1PCAQXN061253; Tue, 25 Feb 2003 13:10:27 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Tue, 25 Feb 2003 13:10:25 +0100 (CET) From: Martin Blapp To: hackers@freebsd.org Cc: re@freebsd.org Subject: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix needs to be committed. Message-ID: <20030225123525.J8604@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, To tell the short story. Linux-mozilla works like a charm as root, but it doesn't as a user if you have a java-applet. Some solutions are mentioned for jdk4 but they applly to jdk13 too: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&th=5dfc5db60b48af3f&rnum=1 http://docs.freebsd.org/cgi/getmsg.cgi?fetch=132728+0+archive/2002/freebsd-java/20020714.freebsd-java Started as user: 55909 java_vm RET mprotect 0 55909 java_vm CALL mprotect(0x28b21000,0x9000,0x5) 55909 java_vm RET mprotect 0 55909 java_vm CALL linux_brk(0x8050000) 55909 java_vm RET linux_brk 134545408/0x8050000 55909 java_vm CALL linux_sched_getscheduler(0xda65) 55909 java_vm RET linux_sched_getscheduler RESTART -> BOOM Started as root: 55836 java_vm RET mprotect 0 55836 java_vm CALL mprotect(0x28b21000,0x9000,0x5) 55836 java_vm RET mprotect 0 55836 java_vm CALL linux_brk(0x8050000) 55836 java_vm RET linux_brk 134545408/0x8050000 55836 java_vm CALL linux_sched_getscheduler(0xda1c) 55836 java_vm RET linux_sched_getscheduler 0 55836 java_vm CALL sched_getparam(0xda1c,0xbfbf9444) 55836 java_vm RET sched_getparam 0 55836 java_vm CALL linux_sched_getscheduler(0xda1c) 55836 java_vm RET linux_sched_getscheduler 0 55836 java_vm CALL sched_getparam(0xda1c,0xbfbf9444) 55836 java_vm RET sched_getparam 0 [...] Martin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 4:23:33 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB14B37B401; Tue, 25 Feb 2003 04:23:31 -0800 (PST) Received: from mgw1-out.MEIway.com (mgw1.meiway.com [212.73.210.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 921EA43F93; Tue, 25 Feb 2003 04:23:30 -0800 (PST) (envelope-from LConrad@Go2France.com) Received: from VirusGate.MEIway.com (virus-gate.meiway.com [212.73.210.91]) by mgw1-out.MEIway.com (Postfix Relay Hub) with ESMTP id 68384EF90C; Tue, 25 Feb 2003 13:11:19 +0100 (CET) Received: from localhost (localhost.meiway.com [127.0.0.1]) by VirusGate.MEIway.com (Postfix) with SMTP id 9BC475D00A; Tue, 25 Feb 2003 13:26:32 +0100 (CET) Received: from mail.Go2France.com (ms1.meiway.com [212.73.210.73]) by VirusGate.MEIway.com (Postfix) with ESMTP id 1B78F5D008; Tue, 25 Feb 2003 13:26:32 +0100 (CET) Received: from tx0-go2france-c.Go2France.com [66.64.14.18] by mail.Go2France.com with ESMTP (SMTPD32-6.06) id A443F10100; Tue, 25 Feb 2003 13:40:35 +0100 Message-Id: <5.2.0.9.0.20030225061922.046fd588@mail.go2france.com> X-Sender: LConrad@Go2France.com@mail.go2france.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Tue, 25 Feb 2003 06:22:56 -0600 To: freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org From: Len Conrad Subject: Re: booting from Promise tx2000: FIXED In-Reply-To: References: <5.2.0.9.0.20030224181445.04d77270@mail.go2france.com> <5.2.0.9.0.20030223184703.03e52cc0@mail.go2france.com> <5.2.0.9.0.20030224181445.04d77270@mail.go2france.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >Len Conrad writes: > > .... while waiting for Soeren Schmidt to get the Promise SX4000 driver > done! > >I was under the impression that the SX4000 and SX6000 were already >supported? I know that phk has an SX6000 which he says works fine. >OTOH, it's possible that this hasn't percolated down to -STABLE yet. Last autumn, SS and I tried to get SX4000 docs from Promise and I was told by Promise .tw that the "Promise doesn't support FreeBSD", and SS has lost his earlier contact person at Promise. So it's a happy surprise that I learn this week that SS now has coop from Promise. He didn't say the driver was ready. Len To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 4:45:15 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C8D637B401; Tue, 25 Feb 2003 04:45:14 -0800 (PST) Received: from spider.deepcore.dk (cpe.atm2-0-56339.0x50c6aa0a.abnxx2.customer.tele.dk [80.198.170.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F97E43F75; Tue, 25 Feb 2003 04:45:11 -0800 (PST) (envelope-from sos@spider.deepcore.dk) Received: (from sos@localhost) by spider.deepcore.dk (8.12.5/8.12.6) id h1PCjALc074520; Tue, 25 Feb 2003 13:45:10 +0100 (CET) (envelope-from sos) From: Soeren Schmidt Message-Id: <200302251245.h1PCjALc074520@spider.deepcore.dk> Subject: Re: booting from Promise tx2000: FIXED In-Reply-To: To: Dag-Erling Smorgrav Date: Tue, 25 Feb 2003 13:45:10 +0100 (CET) Cc: Len Conrad , freebsd-hardware@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL98b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG It seems Dag-Erling Smorgrav wrote: > Len Conrad writes: > > .... while waiting for Soeren Schmidt to get the Promise SX4000 driver done! > > I was under the impression that the SX4000 and SX6000 were already > supported? I know that phk has an SX6000 which he says works fine. > OTOH, it's possible that this hasn't percolated down to -STABLE yet. The SX6000 is supported, the SX4000 is quite a different animal and is not supported yet. However I'm working with Promise to write support for it... -Sшren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 6:45:50 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A70B37B401; Tue, 25 Feb 2003 06:45:39 -0800 (PST) Received: from freebsd.org (TN218-187-123-89.2-3.pl.apol.com.tw [218.187.123.89]) by mx1.FreeBSD.org (Postfix) with SMTP id 04CBC43FDF; Tue, 25 Feb 2003 06:44:42 -0800 (PST) (envelope-from 224952@freebsd.org) From: =?Big5?B?p9qmYrRNp+QuLi4uLi4u?= Subject: =?Big5?B?p0G3UcX9rmGkSLlMp/Ombqq6pc2sobbcPw==?= Content-Type: text/html Date: Tue, 25 Feb 2003 22:22:08 +0800 X-Priority: 3 X-Library: Indy 9.0.3-B Message-Id: <20030225144442.04CBC43FDF@mx1.FreeBSD.org> To: undisclosed-recipients: ; Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG І`©]1ВI¤F

І`©]1ВI¤F

Ѕц¦b§Й¤WЄє§Ъ¤ЈВ_Єє«дЇБ...µLЄk¤JєО

ёЈ¤¤ҐXІ{Єє¬O¤чҐАїЛЇhѕОЄєЁ­Ей...

§ЪєО¤ЈµЫ...єО¤ЈµЫ.......

ґїёg...§ЪёШ¤U®ь¤f­nЕэҐL­М№L¦n¤й¤l

Ґi¬O·LБЎБ~¤ф«oµLЄkЕэ§Ъјi¦ж©УїХ

ґX­У¤л«e...§Ъ±µДІЁм¤F¤@¤щҐъєР...

µuµuЄє40ґX¤АДБ...§Ъ¬ЭЁм¤F§Ж±ж

§Ъ¤@ЁB¤@ЁBЄє¦b№пЄє¦a¤и¬°®a§V¤O

¦У§ЪЄє©УїХ¤]±N§IІ{

¦pЄG§A¤]·QЕэ®a¤H№L§у¦nЄєҐН¬Ў

ЅРЇd¤Uёк®Ж,§Ъ±N§віo¤щҐъєР±Hµ№§A

§Ъ«OГТ,Ґu­n§A¬ЭАґ¤F,¤@©w·|¬°§A¶}±Т«GДRЄє¤HҐН

©m¦W
©m§O
¦~ДЦ
®a¤¤№qёЬ
¦ж°К№qёЬ
¶l±H¦a§}
¶l»ј°Пё№
ЅР±HЁмpop99917@yahoo.com.tw

To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 6:56:21 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3829837B401; Tue, 25 Feb 2003 06:56:20 -0800 (PST) Received: from builder.freebsdmall.com (builder.freebsdmall.com [65.86.180.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7E5A43F93; Tue, 25 Feb 2003 06:56:19 -0800 (PST) (envelope-from murray@builder.freebsdmall.com) Received: (from root@localhost) by builder.freebsdmall.com (8.12.7/8.11.6) id h1PEuIec030066; Tue, 25 Feb 2003 06:56:18 -0800 (PST) (envelope-from murray) Date: Tue, 25 Feb 2003 06:56:17 -0800 From: Murray Stokely To: Martin Blapp Cc: hackers@FreeBSD.ORG, re@FreeBSD.ORG Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix needs to be committed. Message-ID: <20030225065617.U625@freebsdmall.com> References: <20030225123525.J8604@levais.imp.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="NQTVMVnDVuULnIzU" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030225123525.J8604@levais.imp.ch>; from mb@imp.ch on Tue, Feb 25, 2003 at 01:10:25PM +0100 X-GPG-Key-ID: 1024D/0E451F7D X-GPG-Key-Fingerprint: E2CA 411D DD44 53FD BB4B 3CB5 B4D7 10A2 0E45 1F7D Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --NQTVMVnDVuULnIzU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 25, 2003 at 01:10:25PM +0100, Martin Blapp wrote: > To tell the short story. Linux-mozilla works like a charm as root, but it > doesn't as a user if you have a java-applet. This has been a problem for years and it affects other Linux appications such as LabView. There is some commented out code in linux_sched_getscheduler() function that provides the proper functionality. It's unclear to me why the code was commented out in the first place, but it would be really nice to get that resolved once and for all. - Murray --NQTVMVnDVuULnIzU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQE+W4QRtNcQog5FH30RAi+hAJ4isrArLzRudfiKH7lPQbdNHefWgACgkvBv D0po4VwnRANdMaMwa9LnWRU= =dJPN -----END PGP SIGNATURE----- --NQTVMVnDVuULnIzU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 7:42:14 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D94AB37B401; Tue, 25 Feb 2003 07:42:13 -0800 (PST) Received: from gidgate.gid.co.uk (gid.co.uk [194.32.164.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 92E7143FA3; Tue, 25 Feb 2003 07:42:11 -0800 (PST) (envelope-from rb@gid.co.uk) Received: (from rb@localhost) by gidgate.gid.co.uk (8.11.6/8.11.6) id h1PFgAW47497; Tue, 25 Feb 2003 15:42:10 GMT (envelope-from rb) Message-Id: <4.3.2.7.2.20030225153039.02124980@gid.co.uk> X-Sender: rbmail@gid.co.uk X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 25 Feb 2003 15:39:38 +0000 To: Murray Stokely From: Bob Bishop Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix needs to be committed. Cc: hackers@FreeBSD.ORG, re@FreeBSD.ORG, Martin Blapp In-Reply-To: <20030225065617.U625@freebsdmall.com> References: <20030225123525.J8604@levais.imp.ch> <20030225123525.J8604@levais.imp.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 14:56 25/2/03, Murray Stokely wrote: >This has been a problem for years and it affects other Linux >appications such as LabView. There is some commented out code in >linux_sched_getscheduler() function that provides the proper >functionality. It's unclear to me why the code was commented out in >the first place, but it would be really nice to get that resolved once >and for all. According to kern/40611, the problem is in posix4/p1003_1b.c not in the linux wrapper. The updated patch in the PR audit trail seems to work. -- Bob Bishop +44 (0)118 977 4017 rb@gid.co.uk fax +44 (0)118 989 4254 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 8:20:27 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE4DD37B482 for ; Tue, 25 Feb 2003 08:20:24 -0800 (PST) Received: from mail.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7072243F3F for ; Tue, 25 Feb 2003 08:20:21 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 23192 invoked from network); 25 Feb 2003 16:20:23 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 25 Feb 2003 16:20:23 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h1PGJ8hT020081; Tue, 25 Feb 2003 11:19:08 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <4.3.2.7.2.20030225153039.02124980@gid.co.uk> Date: Tue, 25 Feb 2003 11:20:34 -0500 (EST) From: John Baldwin To: Bob Bishop Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need Cc: Martin Blapp , re@FreeBSD.ORG, hackers@FreeBSD.ORG, Murray Stokely Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 25-Feb-2003 Bob Bishop wrote: > At 14:56 25/2/03, Murray Stokely wrote: >>This has been a problem for years and it affects other Linux >>appications such as LabView. There is some commented out code in >>linux_sched_getscheduler() function that provides the proper >>functionality. It's unclear to me why the code was commented out in >>the first place, but it would be really nice to get that resolved once >>and for all. > > According to kern/40611, the problem is in posix4/p1003_1b.c not in the > linux wrapper. The updated patch in the PR audit trail seems to work. There is a much simpler patch one can do: Index: p1003_1b.c =================================================================== RCS file: /usr/cvs/src/sys/posix4/p1003_1b.c,v retrieving revision 1.5.2.1 diff -u -r1.5.2.1 p1003_1b.c --- p1003_1b.c 3 Aug 2000 01:09:59 -0000 1.5.2.1 +++ p1003_1b.c 25 Feb 2003 16:17:55 -0000 @@ -62,7 +62,7 @@ * only root can do this. */ -#if 0 +#if 1 /* * This is stolen from CANSIGNAL in kern_sig: * Basically, it changes p31b_proc() to not always return an error for non-root. If rwaston@ signs off on the security implications (should be minimal, basically means that you can change your own scheduling params and can change the params of other processes you own) then I would prefer this patch. I don't know why the check was turned off. The entire #if 0 / #else / #endif seems to have been around since revision 1.1. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 8:44:22 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3530B37B401; Tue, 25 Feb 2003 08:44:21 -0800 (PST) Received: from builder.freebsdmall.com (builder.freebsdmall.com [65.86.180.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4400943FD7; Tue, 25 Feb 2003 08:44:20 -0800 (PST) (envelope-from murray@builder.freebsdmall.com) Received: (from root@localhost) by builder.freebsdmall.com (8.12.7/8.11.6) id h1PGiJkI030516; Tue, 25 Feb 2003 08:44:19 -0800 (PST) (envelope-from murray) Date: Tue, 25 Feb 2003 08:44:19 -0800 From: Murray Stokely To: John Baldwin Cc: Bob Bishop , Martin Blapp , re@FreeBSD.org, hackers@FreeBSD.org Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need Message-ID: <20030225084419.X625@freebsdmall.com> References: <4.3.2.7.2.20030225153039.02124980@gid.co.uk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="t4apE7yKrX2dGgJC" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from jhb@FreeBSD.org on Tue, Feb 25, 2003 at 11:20:34AM -0500 X-GPG-Key-ID: 1024D/0E451F7D X-GPG-Key-Fingerprint: E2CA 411D DD44 53FD BB4B 3CB5 B4D7 10A2 0E45 1F7D Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --t4apE7yKrX2dGgJC Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 25, 2003 at 11:20:34AM -0500, John Baldwin wrote: > Basically, it changes p31b_proc() to not always return an error > for non-root. If rwaston@ signs off on the security implications > (should be minimal, basically means that you can change your own > scheduling params and can change the params of other processes > you own) then I would prefer this patch. Yes this is the one I was thinking about when I said the commented out code. I've run a kernel with this patch for months, and I didn't see any problems with it in my (unqualified) review. ;) - Murray --t4apE7yKrX2dGgJC Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQE+W51itNcQog5FH30RAlBDAJ4vZ8XvLSafyXhmjJ2ykjHwqJ3rCACeNwSo 7hSh5DCxEYEFic/pYIyq/KU= =M7i7 -----END PGP SIGNATURE----- --t4apE7yKrX2dGgJC-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 10:13:47 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A81E937B408 for ; Tue, 25 Feb 2003 10:13:45 -0800 (PST) Received: from home.galileo.edu (mail.galileo.edu [168.234.203.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3C3843F93 for ; Tue, 25 Feb 2003 10:13:43 -0800 (PST) (envelope-from rocket@galileo.edu) Received: (qmail 25595 invoked by uid 48); 25 Feb 2003 18:09:05 -0000 Received: from 216.230.149.5 ( [216.230.149.5]) as user rocket@mail.galileo.edu by mail.galileo.edu with HTTP; Tue, 25 Feb 2003 12:09:05 -0600 Message-ID: <1046196545.3e5bb1412430f@mail.galileo.edu> Date: Tue, 25 Feb 2003 12:09:05 -0600 From: rocket@galileo.edu To: freebsd-hackers@freebsd.org Cc: freebsd-hardware@freebsd.org Subject: Touchpad program MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 216.230.149.5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I want to make a program (or pseudo-device) to emulate the scrolling wheel in my laptop touchpad (alps), the same way it is done in the windows drivers: if you drag your finger along the right side it will act as the wheel scrolling. I had been looking into psm, atkbd and atkbdc but I still don't know where to really start. If some one could give me a basic help to where to start looking or to what files I shoul look at, it would be very helpfull. Thanks in advance. Please CC to my address as I am not currently subscribed to this list. Rodrigo F. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 10:30: 8 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F98E37B401 for ; Tue, 25 Feb 2003 10:30:06 -0800 (PST) Received: from mail.mailfreeway.com (216-210-205-21.atgi.net [216.210.205.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFDFD43FBD for ; Tue, 25 Feb 2003 10:30:05 -0800 (PST) (envelope-from elcott@mailfreeway.com) Received: by mail.mailfreeway.com (Postfix, from userid 1002) id 5BFED211FB9; Tue, 25 Feb 2003 10:29:52 -0800 (PST) From: "elcott" To: hackers@freebsd.org Cc: chat@freebsd.FreeBSD.ORG Subject: FreeBSD 5.0 roadmap Date: Tue, 25 Feb 2003 10:29:52 X-Priority: 3 MIME-Version: 1.0 X-Originating-IP: [67.123.169.193] X-Domain-Source: [www.mailfreeway.com] webmail service X-URL-Source: [http://www.mailfreeway.com/mailbin/umm.cgi] Content-Type: text/plain Message-Id: <20030225182952.5BFED211FB9@mail.mailfreeway.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Fellow committers, let's have a look at the 5.0 planned roadmap: 1) KSE KSE is a joke at best. Is one of those over-engineered ideas that will never be finished. Too bad, it looked good some months ago. 2) GEOM GEOM is another ego trip for Poul-Henning Kamp. He won't let anyone touch it or improve it. Another piece of code that will rot, like phkmalloc and devd. 3) devfs and devd Like Bruce Evans, I don't see what the advantage of having this is. Another ego trip Poul? 4) UFS2 Unlike other parts of FreeBSD, UFS2 is now a reality, kudos to you Mr. McKusick. 5) gcc + toolchain Until Troll Glass brings us TenDRA, we'll have to do with Gah! Nu's proprietary software. Thankfully, we have Mr. O'Brien on board to take care of it. Also Mr. Kabaev as well. 6) Ports The ports people have done an excellent job, kudos to them. 7) PowerPC port Little progress in this area, come on Benno, you can do better. 8) IA-64 Mr. LNUX Torvalds thinks it's not good, so it must be a heck of a cpu. As we all know, Linux is pure hore sh*t. 9) RAIDframe Pathetic!!!! Those RAIDframes are *crap*. Scott, not only you fscked up with the release, but your patches are crap! Sincerely, Elcott Song, RE --------------------- Tired of spam? Get advanced junk mail protection with MailFreeway.com Join today its FREE! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 12:30:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CCAB37B401; Tue, 25 Feb 2003 12:30:43 -0800 (PST) Received: from mail.mailfreeway.com (216-210-205-21.atgi.net [216.210.205.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFD7C43FF5; Tue, 25 Feb 2003 12:30:42 -0800 (PST) (envelope-from elcott@mailfreeway.com) Received: by mail.mailfreeway.com (Postfix, from userid 1002) id D7D10211FC2; Tue, 25 Feb 2003 12:30:34 -0800 (PST) From: "elcott" To: hackers@freebsd.org Cc: chat@freebsd.org Subject: Isn't today Troll Tuesday? Date: Tue, 25 Feb 2003 12:30:34 X-Priority: 3 MIME-Version: 1.0 X-Originating-IP: [67.123.169.193] X-Domain-Source: [www.mailfreeway.com] webmail service X-URL-Source: [http://www.mailfreeway.com/mailbin/umm.cgi] Content-Type: text/plain Message-Id: <20030225203034.D7D10211FC2@mail.mailfreeway.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ________________ ( Brett Glass!!! ) ---------------- o ^__^ o (oo)\_______ (__)\ )\/\ ||----w | || || --------------------- Tired of spam? Get advanced junk mail protection with MailFreeway.com Join today its FREE! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 12:30:58 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4F9537B405; Tue, 25 Feb 2003 12:30:56 -0800 (PST) Received: from mail.mailfreeway.com (216-210-205-21.atgi.net [216.210.205.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D9BA43FFB; Tue, 25 Feb 2003 12:30:55 -0800 (PST) (envelope-from elcott@mailfreeway.com) Received: by mail.mailfreeway.com (Postfix, from userid 1002) id 74DE9211FC2; Tue, 25 Feb 2003 12:30:47 -0800 (PST) From: "elcott" To: hackers@freebsd.org Cc: chat@freebsd.org Subject: Isn't today Troll Tuesday? Date: Tue, 25 Feb 2003 12:30:47 X-Priority: 3 MIME-Version: 1.0 X-Originating-IP: [67.123.169.193] X-Domain-Source: [www.mailfreeway.com] webmail service X-URL-Source: [http://www.mailfreeway.com/mailbin/umm.cgi] Content-Type: text/plain Message-Id: <20030225203047.74DE9211FC2@mail.mailfreeway.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ________________ ( Brett Glass!!! ) ---------------- o ^__^ o (oo)\_______ (__)\ )\/\ ||----w | || || --------------------- Tired of spam? Get advanced junk mail protection with MailFreeway.com Join today its FREE! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 12:31:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6F8337B405; Tue, 25 Feb 2003 12:31:42 -0800 (PST) Received: from mail.mailfreeway.com (216-210-205-21.atgi.net [216.210.205.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F39C44020; Tue, 25 Feb 2003 12:31:42 -0800 (PST) (envelope-from elcott@mailfreeway.com) Received: by mail.mailfreeway.com (Postfix, from userid 1002) id 5C9EB211FF5; Tue, 25 Feb 2003 12:31:34 -0800 (PST) From: "elcott" To: hackers@freebsd.org Cc: chat@freebsd.org Subject: i386 tinderbox failure Date: Tue, 25 Feb 2003 12:31:34 X-Priority: 3 MIME-Version: 1.0 X-Originating-IP: [67.123.169.193] X-Domain-Source: [www.mailfreeway.com] webmail service X-URL-Source: [http://www.mailfreeway.com/mailbin/umm.cgi] Content-Type: text/plain Message-Id: <20030225203134.5C9EB211FF5@mail.mailfreeway.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ________________ ( Brett Glass!!! ) ---------------- o ^__^ o (oo)\_______ (__)\ )\/\ ||----w | || || --------------------- Tired of spam? Get advanced junk mail protection with MailFreeway.com Join today its FREE! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 12:31:53 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1066537B406; Tue, 25 Feb 2003 12:31:50 -0800 (PST) Received: from mail.mailfreeway.com (216-210-205-21.atgi.net [216.210.205.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AC0C44045; Tue, 25 Feb 2003 12:31:21 -0800 (PST) (envelope-from elcott@mailfreeway.com) Received: by mail.mailfreeway.com (Postfix, from userid 1002) id EC172211FC2; Tue, 25 Feb 2003 12:31:13 -0800 (PST) From: "elcott" To: hackers@freebsd.org Cc: chat@freebsd.org Subject: IA-64 tinderbox failure Date: Tue, 25 Feb 2003 12:31:13 X-Priority: 3 MIME-Version: 1.0 X-Originating-IP: [67.123.169.193] X-Domain-Source: [www.mailfreeway.com] webmail service X-URL-Source: [http://www.mailfreeway.com/mailbin/umm.cgi] Content-Type: text/plain Message-Id: <20030225203113.EC172211FC2@mail.mailfreeway.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG ________________ ( Brett Glass!!! ) ---------------- o ^__^ o (oo)\_______ (__)\ )\/\ ||----w | || || --------------------- Tired of spam? Get advanced junk mail protection with MailFreeway.com Join today its FREE! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 12:43:13 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88E0E37B405 for ; Tue, 25 Feb 2003 12:43:09 -0800 (PST) Received: from habitat-thailand.com (TruPPPv92-225-18.inet.co.th [203.151.225.18]) by mx1.FreeBSD.org (Postfix) with SMTP id A509943FA3 for ; Tue, 25 Feb 2003 12:43:06 -0800 (PST) (envelope-from info@habitat-thailand.com) Content-Type: text/html; charset="US-ASCII" Date: Wed, 26 Feb 2003 03:43:00 +0700 To: freebsd-hackers@freebsd.org From: info@habitat-thailand.com X-Mailer: Version 5.0 Subject: Newest Arrivals Organization: Harvest Enterprises Limited Message-Id: <20030225204306.A509943FA3@mx1.FreeBSD.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG HBT Newsletter FEB 03
   
 
 
 
 
Did someone forward you this? Opt in to hear it first. Please click.
If You no no longger wish to receive our mail, please click here.
To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 14: 2:15 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5548037B407; Tue, 25 Feb 2003 14:02:12 -0800 (PST) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9445C43FAF; Tue, 25 Feb 2003 14:02:11 -0800 (PST) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (fledge.pr.watson.org [192.0.2.3]) by fledge.watson.org (8.12.6/8.12.5) with SMTP id h1PM1uP4075448; Tue, 25 Feb 2003 17:01:57 -0500 (EST) (envelope-from robert@fledge.watson.org) Date: Tue, 25 Feb 2003 17:01:56 -0500 (EST) From: Robert Watson X-Sender: robert@fledge.watson.org To: Martin Blapp Cc: John Baldwin , Bob Bishop , re@FreeBSD.org, hackers@FreeBSD.org Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Per Martin's request, I'm forwarding this response to the broader group involved in this thread. Basically, I think broadening the scope of processes permitted to make the scheduler call is fine, but you don't want to use the CANSIGNAL() code that's currently present for several reasons. The simplist solution might be to only allow the scheduler change if the requesting process is targetting itself. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories ---------- Forwarded message ---------- Date: Tue, 25 Feb 2003 12:53:53 -0500 (EST) From: Robert Watson To: Martin Blapp Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need (fwd) On Tue, 25 Feb 2003, Martin Blapp wrote: > Basically, it changes p31b_proc() to not always return an error for > non-root. If rwaston@ signs off on the security implications (should be > minimal, basically means that you can change your own scheduling params > and can change the params of other processes you own) then I would > prefer this patch. Hmm. I think the check there is a bit on the unsafe side, that could be why it was disabled. Basically, it permits the scheduler change in the following four circumstances: (0) Superuser always wins (1) Subject real uid is object real uid E.g., any process I should randomly start or own (2) Subject effective uid is object real uid If a tool is temporarily switched to my uid to exercise my privileges, sounds OK. (3) Subject real uid is object effective uid (uh oh) (4) Subject effective uid is object effective uid (uh oh) The reason (3) and (4) are problems is that they affect daemons temporarily switching to a user's privileges to carry out a task -- such as mail delivery, or a userland NFS server or the like. It could be that these are poor handling of the loopback process case, wherein a process can always modify its own scheduling. Take a look at p_cansched() in 5.x for a bit more what I think the check should be. In summary, the rules are: (0) You can always reschedule the current process. (1) If you're in a different jail, deny. (2) Optionally call out to MAC. (3) If the "seeotheruids" support says you can't see the other process, you can't reschedule it either, regardless of uids. (4) If the real uids are the same, it's OK -- i.e., any arbitrary shell process (setuid or otherwise). (5) If the subject effective uid is the same as the object real uid -- if temporarily adopting a user's privileges, we can reschedule the processes they own. (6) Superuser always wins (subject to 0, 1, 2, 3). (7) Deny > I don't know why the check was turned off. The entire #if 0 / #else / > #endif seems to have been around since revision 1.1. It's probably because whoever wrote it realized that it was moderately suspect. I would oppose simply enabling the current CANSIGNAL check -- it has serious problems. On the other hand, putting in a refined check sounds reasonable and I'd be happy to review such a patch. Although the code from 5.x won't instantly work with 4.x without substantial modification, it might make a good starting point. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 14:30:43 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D757637B401 for ; Tue, 25 Feb 2003 14:30:41 -0800 (PST) Received: from web104.mail.yahoo.com (web104.mail.yahoo.com [216.136.173.14]) by mx1.FreeBSD.org (Postfix) with SMTP id 799E243FA3 for ; Tue, 25 Feb 2003 14:30:41 -0800 (PST) (envelope-from diego@earthoid.org) Message-ID: <20030225223041.20826.qmail@web104.mail.yahoo.com> Received: from [66.27.122.117] by web104.bizmail.yahoo.com via HTTP; Tue, 25 Feb 2003 14:30:41 PST Date: Tue, 25 Feb 2003 14:30:41 -0800 (PST) From: Diego Montalvo Subject: new freebsd distribution... To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I am wanting to start a new distribution of FreeBSD, which will in short = run on the FreeBSD kore, but will consist of a completely redesigned = installation and driver setup layer. =20 The "blue lagoon" distribution, will not only consist of a graphical = setup interface, but it will also allow easier: driver , port, x windows = setup, etc... =20 Another improvement would be better interface for disabled users: larger = fonts, colors, etc.... The project is still in the green, but I am seeking help on getting this = project started. =20 I have worked on a graphical illustration, I can provide it upon = request. Cheers, Diego Montalvo To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Tue Feb 25 14:47:19 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C4F137B401 for ; Tue, 25 Feb 2003 14:47:17 -0800 (PST) Received: from scaup.mail.pas.earthlink.net (scaup.mail.pas.earthlink.net [207.217.120.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDB6343FDF for ; Tue, 25 Feb 2003 14:47:16 -0800 (PST) (envelope-from mooneer@translator.cx) Received: from pool0150.cvx31-bradley.dialup.earthlink.net ([209.179.146.150] helo=morpheus) by scaup.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 18nnqz-0003mt-00 for freebsd-hackers@freebsd.org; Tue, 25 Feb 2003 14:47:13 -0800 From: "Mooneer Salem" To: "FreeBSD Hackers" Subject: Jail seperation patch Date: Tue, 25 Feb 2003 14:47:11 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, I've been working on extending the jail feature of FreeBSD to make it more friendly to VPS providers. I added the following features: * Rudimentary CPU/RAM/number of processes per-jail limits * Multiple IP support (from Pawel Jakub Dawidek's mijail patch for 4.7) * Proper INADDR_ANY support added (so INADDR_ANY will bind to all IP addresses within a jail) * struct prison added to SysV IPC code (to allow for secure use) * Disk mount hiding * Hot add/remove IP addresses from jail using sysctl * Process hiding (non-root users outside jails cannot see jailed processes) The patch is for 5.0-CURRENT/5.0-RELEASE. I would be interested in any comments or suggestions. If anyone's interested, it can be retrieved at http://msalem.translator.cx/dist/jail_seperation.v5.patch. Example of new sysctl entries: %sysctl -a | grep jail jail.jails.test_lifeafterking_org.max_ram: 0 jail.jails.test_lifeafterking_org.max_cpu: 0 jail.jails.test_lifeafterking_org.max_procs: 0 jail.jails.test_lifeafterking_org.procs_used: 10 jail.jails.test_lifeafterking_org.ram_used: 5971968 jail.jails.test_lifeafterking_org.cpu_used: 0 jail.jails.test_lifeafterking_org.ipv4addr: 10.0.0.3,10.0.0.4 security.jail.set_hostname_allowed: 1 security.jail.socket_unixiproute_only: 1 security.jail.sysvipc_allowed: 0 security.jail.quotas_allowed: 0 security.jail.hide_processes: 0 % Thanks, -- Mooneer Salem GPLTrans: http://www.translator.cx/ lifeafterking.org: http://www.lifeafterking.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 0: 3:41 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B126437B401 for ; Wed, 26 Feb 2003 00:03:38 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 962CA43FBD for ; Wed, 26 Feb 2003 00:03:37 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 1D90E3ABB2D; Wed, 26 Feb 2003 09:05:10 +0100 (CET) Date: Wed, 26 Feb 2003 09:05:09 +0100 From: Pawel Jakub Dawidek To: Mooneer Salem Cc: FreeBSD Hackers Subject: Re: Jail seperation patch Message-ID: <20030226080509.GZ8455@garage.freebsd.pl> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Jsn5+Lu/ZvzbAGtZ" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.7-STABLE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Jsn5+Lu/ZvzbAGtZ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Feb 25, 2003 at 02:47:11PM -0800, Mooneer Salem wrote: +> I've been working on extending the jail feature of FreeBSD to make it +> more friendly to VPS providers. I added the following features: +>=20 +> * Rudimentary CPU/RAM/number of processes per-jail limits +> * Multiple IP support (from Pawel Jakub Dawidek's mijail patch for 4.7) +> * Proper INADDR_ANY support added (so INADDR_ANY will bind to all IP +> addresses +> within a jail) And what when we got situation like: 1. main host ips: 1.1.1.2, 1.1.1.3, 1.1.1.4 jailed host ips: 1.1.1.2, 1.1.1.3 Daemon in jail binds to INADDR_ANY to port X, somebody connects to port X, but to IP 1.1.1.4 (outside jail). Connection will success? 2. main host ips: 1.1.1.2, 1.1.1.3, 1.1.1.4 jailed host ips: 1.1.1.2, 1.1.1.3 Daemon outside jail binds to port X on IP 1.1.1.4. User in jail connects to port X to INADDR_ANY. Connection will success? What when daemon idside jail and daemon outside jail binds to those same port? If I'm connectin to this port who will handle connection? +> * struct prison added to SysV IPC code (to allow for secure use) Better solution is created separated memory zones for main host and every jail, look at my patch agains 5.0-CURRENT: http://garage.freebsd.pl/privipc.tbz=20 http://garage.freebsd.pl/privipc.README +> * Disk mount hiding Better way is IMHO hiding and cutting pathnames, look at: http://garage.freebsd.pl/jailfsstat.tgz http://garage.freebsd.pl/jailfsstat.README +> * Hot add/remove IP addresses from jail using sysctl +> * Process hiding (non-root users outside jails cannot see jailed process= es) This isn't a complete solution and I think it couldn't be, because you still could modify files owned by jailed users with UID notjailed user, so.= .. +> The patch is for 5.0-CURRENT/5.0-RELEASE. I would be interested in +> any comments or suggestions. If anyone's interested, it can be retrieved +> at http://msalem.translator.cx/dist/jail_seperation.v5.patch. You could add multi-level jailing, IMHO it's cool: http://garage.freebsd.pl/mljail.tbz http://garage.freebsd.pl/mljail.README Nice work, I'm wondering if something will be ever commited:) --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --Jsn5+Lu/ZvzbAGtZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPlx1NT/PhmMH/Mf1AQEwTwP/VjOI5aQsxYBb7s7sV46TJqcfDKuu1tOn 0jvjYq7hgsLBvkDpLPfjovYUkCh0qhDSyc0nEDfsGaZLZIB07Hrktx+Pbux003gc znL6Iu44LTStfCqMgsboGqjCqdOpncxgYV0kxc5eBLyd9P3H3irv+RaA5JSEqWN4 DB1CbcUYWfQ= =x4FH -----END PGP SIGNATURE----- --Jsn5+Lu/ZvzbAGtZ-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 0:25:32 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7DB337B401; Wed, 26 Feb 2003 00:25:30 -0800 (PST) Received: from gidgate.gid.co.uk (gid.co.uk [194.32.164.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id D68DE43FD7; Wed, 26 Feb 2003 00:25:26 -0800 (PST) (envelope-from rb@gid.co.uk) Received: (from rb@localhost) by gidgate.gid.co.uk (8.11.6/8.11.6) id h1Q8POH51170; Wed, 26 Feb 2003 08:25:24 GMT (envelope-from rb) Message-Id: <4.3.2.7.2.20030226082316.03709d98@gid.co.uk> X-Sender: rbmail@gid.co.uk X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Wed, 26 Feb 2003 08:25:24 +0000 To: Robert Watson From: Bob Bishop Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need (fwd) Cc: John Baldwin , Martin Blapp , re@FreeBSD.org, hackers@FreeBSD.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, At 22:01 25/2/03, Robert Watson wrote: >[...] >I would oppose simply enabling the current CANSIGNAL check -- it >has serious problems. On the other hand, putting in a refined check >sounds reasonable and I'd be happy to review such a patch. Although the >code from 5.x won't instantly work with 4.x without substantial >modification, it might make a good starting point. OK, so what's the score with the patch at the end of the kern/40611 audit trail? Thanks -- Bob Bishop +44 (0)118 977 4017 rb@gid.co.uk fax +44 (0)118 989 4254 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 4:58:43 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E266237B401 for ; Wed, 26 Feb 2003 04:58:41 -0800 (PST) Received: from mail02.infosat.net (ananzi02.mx.smtphost.net [196.38.110.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA06B43F75 for ; Wed, 26 Feb 2003 04:58:36 -0800 (PST) (envelope-from jedihobbes@mighty.co.za) Received: from [196.38.110.24] (HELO mail01.infosat.net) by mail02.infosat.net (CommuniGate Pro SMTP 3.5.9) with ESMTP id 84700586 for freebsd-hackers@freebsd.org; Wed, 26 Feb 2003 14:58:35 +0200 Received: from [196.35.216.1] (account ) by mail01.infosat.net (CommuniGate Pro WebUser 3.5.9) with HTTP id 57144225 for ; Wed, 26 Feb 2003 14:58:35 +0200 From: "Riccardo Spagni" Subject: ESS1868 sound card and the *infamous* play interrupt timeout, channel dead:) To: freebsd-hackers@FreeBSD.org X-Mailer: CommuniGate Pro Web Mailer v.3.5.9 Date: Wed, 26 Feb 2003 14:58:35 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Lo all, Running 5.0-RELEASE with 'device pcm' in my kernel, and now I see this is happening: Dump from /var/log/messages: Feb 23 14:59:20 Hobbes kernel: sbc0: at port 0x300-0x301,0x388-0x38b,0x220-0x22f irq 10 drq 0,1 on isa0 Feb 23 14:59:20 Hobbes kernel: pcm0: on sbc0 Feb 23 14:59:20 Hobbes kernel: midi0: on sbc0 Feb 23 14:59:20 Hobbes kernel: midi1: on sbc0 Feb 23 14:59:20 Hobbes kernel: joy0: at port 0x201 on isa0 Feb 23 14:59:20 Hobbes kernel: unknown: can't assign resources (irq) So, according to the BIOS startup messages and DMESG, should be assigned no DMA, and an IRQ of 10. And no, I do *not* have device sbc in my kernel. Anyway, I added this line to /boot/device.hints: hint.pcm.0.irq="10" Has no effect, still getting the same message. Any ideas? Oh, if I ignore the fact that the error's there, and try mpg321 or anything to play sound (even if I cat a .au into /dev/dsp0), it gives me this: Feb 23 14:59:44 Hobbes kernel: pcm0:play:0: play interrupt timeout, channel dead Interestingly enough, there appear to be problems with a lot of interrupt assignments. When I had ACPI disabled in the BIOS, then it moaned about assigning interrupts to the AGP card. ACPI and APM are enabled in the BIOS, I've tried disabling APM (don't ask why I thought it would make a difference:) Also, the BIOS (Award) has some simple settings for enabling/disabling a PNP-OS, allowing the OS to set IRQs et. al. Dunno if that has any bearing tho... Thanks, Riccardo "JediHobbes" Spagni == Download ringtones, logos and picture messages at Ananzi Mobile Fun. http://www.ananzi.co.za/cgi-bin/goto.pl?mobile To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 5:39:41 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 920F137B401 for ; Wed, 26 Feb 2003 05:39:39 -0800 (PST) Received: from mail.imp.ch (mail.imp.ch [157.161.1.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3AFB743FCB for ; Wed, 26 Feb 2003 05:39:38 -0800 (PST) (envelope-from mb@imp.ch) Received: from levais.imp.ch (levais.imp.ch [157.161.4.66]) by mail.imp.ch (8.12.6/8.12.3) with ESMTP id h1QDdaDn027620; Wed, 26 Feb 2003 14:39:36 +0100 (CET) (envelope-from Martin.Blapp@imp.ch) Date: Wed, 26 Feb 2003 14:39:34 +0100 (CET) From: Martin Blapp To: Pawel Jakub Dawidek Cc: hackers@freebsd.org Subject: Re: patch: (forw) linux_sigvec.c Message-ID: <20030226143036.J19436@levais.imp.ch> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi Pawel, Thank you very much for your wonderful work ! > Nice work, I'm wondering if something will be ever commited:) Of course it will be committed ! But many of us are rather busy, that explains why you don't get instant feedback sometimes. And I really really think that you need a mentor to be able to be a src committer. I'll ask whoever I can. > Better solution is created separated memory zones for main host and every > jail, look at my patch agains 5.0-CURRENT: > > http://garage.freebsd.pl/privipc.tbz=20 > http://garage.freebsd.pl/privipc.README Ehrm. This patch is still against STABLE. Can you make a version for 5.X (shouldn't be that hard) which we can review and commit ? Can you change your homepage to reflect which parts are for 4.X and 5.X ? Cool homepage btw, many cool patches on it ;) About the patch: - "$FreeBSD: src/usr.bin/ipcs/ipcs.c,v 1.12.2.3 2001/07/30 10:16:41 dd Exp $"; + "$FreeBSD$"; You don't need to do that. It is automatically done by cvs. Just leave the lines there. I'll test it this evening on a old STABLE box. Martin Martin Blapp, ------------------------------------------------------------------ ImproWare AG, UNIXSP & ISP, Zurlindenstrasse 29, 4133 Pratteln, CH Phone: +41 61 826 93 00 Fax: +41 61 826 93 01 PGP: PGP Fingerprint: B434 53FC C87C FE7B 0A18 B84C 8686 EF22 D300 551E ------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 5:50:40 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27A9A37B405 for ; Wed, 26 Feb 2003 05:50:38 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C5D443FBF for ; Wed, 26 Feb 2003 05:50:34 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id A255D3ABB2D; Wed, 26 Feb 2003 14:50:22 +0100 (CET) Date: Wed, 26 Feb 2003 14:50:22 +0100 From: Pawel Jakub Dawidek To: Martin Blapp Cc: hackers@freebsd.org Subject: Re: patch: (forw) linux_sigvec.c Message-ID: <20030226135022.GB330@garage.freebsd.pl> References: <20030226143036.J19436@levais.imp.ch> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="Pd0ReVV5GZGQvF3a" Content-Disposition: inline In-Reply-To: <20030226143036.J19436@levais.imp.ch> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --Pd0ReVV5GZGQvF3a Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 26, 2003 at 02:39:34PM +0100, Martin Blapp wrote: +> > Nice work, I'm wondering if something will be ever commited:) +>=20 +> Of course it will be committed ! But many of us are rather +> busy, that explains why you don't get instant feedback sometimes. +>=20 +> And I really really think that you need a mentor to be able to +> be a src committer. I'll ask whoever I can. Hmm, sounds cool:) +> > Better solution is created separated memory zones for main host and ev= ery +> > jail, look at my patch agains 5.0-CURRENT: +> > +> > http://garage.freebsd.pl/privipc.tbz=3D20 +> > http://garage.freebsd.pl/privipc.README +>=20 +> Ehrm. This patch is still against STABLE. Can you make a version +> for 5.X (shouldn't be that hard) which we can review and commit ? When I announced this patch, I've wrote, that I could prepare patches against -CURRENT when somebody review those against -STABLE:) +> Can you change your homepage to reflect which parts are for 4.X and +> 5.X ? Cool homepage btw, many cool patches on it ;) Hmm, I'll think this over. +> I'll test it this evening on a old STABLE box. Thanks! --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --Pd0ReVV5GZGQvF3a Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPlzGHj/PhmMH/Mf1AQH4cQP9H6W04OOZupMKPWzHaV8+HUPbp4Wf/loY 0Hvd6lV1C9lvfHDx8yfGsBNq8ZRC17woTtF36Arb1JscKEuDQ39FNtEWsQ2ZVNsj RkOdajLYHw1xxgQF/XQ/tu7leDu1l6HE0zhrE073zTgk7CdK2XMSFAEonHGqusRO yi0sbmlPob0= =NP8M -----END PGP SIGNATURE----- --Pd0ReVV5GZGQvF3a-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 8:54:54 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A07E37B401 for ; Wed, 26 Feb 2003 08:54:52 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A2AD43FBD for ; Wed, 26 Feb 2003 08:54:47 -0800 (PST) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id BC18643310; Wed, 26 Feb 2003 08:41:41 -0800 (PST) From: Wes Peters Organization: Softweyr.com To: Jason Andresen , hackers@freebsd.org Subject: Re: C coding editor Date: Wed, 26 Feb 2003 08:41:40 -0800 User-Agent: KMail/1.5 References: <20030221122103.GA2073@asterix.local> <3E5A4264.2010801@millions.ca> <3E5A4BA9.5010700@mitre.org> In-Reply-To: <3E5A4BA9.5010700@mitre.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302260841.40693.wes@softweyr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Monday 24 February 2003 08:43, Jason Andresen wrote: > Stacy Millions wrote: > > Wes Peters wrote: > >> Terminal? You have heard of this really cool thing called > >> windowing software? ;^) > >> > >> I completely utterly fail to understand why some young developers > >> attach some sort of romance to writing code on an 80x25 screen, > >> when all the haxxors my age or older waited (or slaved away) for > >> years, even decades, to get something better and more flexible. > > > > Terminal? 80x25 screen? Bloody luxury. How 'bout ed on a 300 baud > > DecWriter? > > You could even have more then 80 columns, if you had the wide paper > > :-) > > Heh, I started with XEmacs on FreeBSD 2.0.5 and the first thing I did > was resize the window so it was a full 800 pixels wide. This was a > school assignment and we had to print out our programs to turn them > in (with the disk, apparently they didn't trust those floppies). > Turns out that my printer (an old 24 pin dot matrix deal[1]) only > supported 80 columns, and I ended up wasting a LOT of paper (although > the assignment was impressively thick when I turned it in. :) > > After that I relegated myself to never exceeding 80 columns unless > absolutely necessary. As someone else on this thread pointed out, you needed a DECwriter. They were great for playing 'trek', you didn't have to run scans nearly as often because you could just look up a page or two and see your last scan of this sector. ;^) Seriously, limiting your programming for a lifetime to 80 columns because you couldn't figure out how to make some grotty old dot matrix printer do 8-point printing a decade ago really isn't all that smart, is it? I'm still disappointed at programming editors that can't make sense of normal typefaces and have to be used with monospaced fonts. Same for email, but that's a different argument. > [1] Kids these days have never overheated a printer in their life. Ah, sure they have. You'd be astonished how bad a LaserJet 4 will streak pages when you're in the middle of printing a 500-page PDF. But wait, kids these days don't print things like that, do they? ;^) -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 9:42:21 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D566C37B401 for ; Wed, 26 Feb 2003 09:42:19 -0800 (PST) Received: from mail.speakeasy.net (mail13.speakeasy.net [216.254.0.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id E497043FCB for ; Wed, 26 Feb 2003 09:42:15 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 14718 invoked from network); 26 Feb 2003 17:42:19 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail13.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 26 Feb 2003 17:42:19 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id h1QHeqhT023560; Wed, 26 Feb 2003 12:40:52 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <4.3.2.7.2.20030226082316.03709d98@gid.co.uk> Date: Wed, 26 Feb 2003 12:42:28 -0500 (EST) From: John Baldwin To: Bob Bishop Subject: Re: Jdk13/14 still hangs in 4.8 Prerelease. Outstanding Fix need Cc: hackers@FreeBSD.org, re@FreeBSD.org, Martin Blapp , Robert Watson Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 26-Feb-2003 Bob Bishop wrote: > Hi, > > At 22:01 25/2/03, Robert Watson wrote: >>[...] >>I would oppose simply enabling the current CANSIGNAL check -- it >>has serious problems. On the other hand, putting in a refined check >>sounds reasonable and I'd be happy to review such a patch. Although the >>code from 5.x won't instantly work with 4.x without substantial >>modification, it might make a good starting point. > > OK, so what's the score with the patch at the end of the kern/40611 audit > trail? Thanks I think that we would prefer that someone fix the CANSIGNAL check as Robert desires and then enable it. The patch in the PR basically allows one to get information about any process even if you aren't root, so I think that may be a bad idea. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 9:57:42 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E29037B401 for ; Wed, 26 Feb 2003 09:57:41 -0800 (PST) Received: from smtpproxy2.mitre.org (smtpproxy2.mitre.org [192.80.55.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66F5C43F3F for ; Wed, 26 Feb 2003 09:57:40 -0800 (PST) (envelope-from jandrese@mitre.org) Received: from avsrv1.mitre.org (avsrv1.mitre.org [129.83.20.58]) by smtpproxy2.mitre.org (8.11.3/8.11.3) with ESMTP id h1QHvbc13675; Wed, 26 Feb 2003 12:57:37 -0500 (EST) Received: from MAILHUB1 (mailhub1.mitre.org [129.83.20.31]) by smtpsrv1.mitre.org (8.11.3/8.11.3) with ESMTP id h1QHvai05746; Wed, 26 Feb 2003 12:57:36 -0500 (EST) Received: from mm112324-2k.mitre.org (128.29.3.65) by mailhub1.mitre.org with SMTP id 1296989; Wed, 26 Feb 2003 12:57:29 -0500 Message-ID: <3E5D0008.20009@mitre.org> Date: Wed, 26 Feb 2003 12:57:28 -0500 From: Jason Andresen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Wes Peters Cc: hackers@freebsd.org Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <3E5A4264.2010801@millions.ca> <3E5A4BA9.5010700@mitre.org> <200302260841.40693.wes@softweyr.com> In-Reply-To: <200302260841.40693.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wes Peters wrote: e your last scan of this sector. ;^) > > Seriously, limiting your programming for a lifetime to 80 columns > because you couldn't figure out how to make some grotty old dot > matrix printer do 8-point printing a decade ago really isn't all > that smart, is it? Even if I never have to print out on a printer like that, who's to say nobody else is? You will no doubt turn people away if they open up your code in their favorite programming editor and all of the lines wrap a few characters. Worse if they are already at the maximum size their screen/eyeballs can support. > I'm still disappointed at programming editors that can't make sense > of normal typefaces and have to be used with monospaced fonts. Same > for email, but that's a different argument. I find that monospace fonts are quite nice in programming on occasion when you want to line up output or just nicely format blocks of text. What about when someone opens up your project with a different font and all of the comments and blocks of code are all scattered across the screen in some haphazard looking mess? Visual distinctiveness and effective use of whitespace can be invaluble in helping people understand your code (or understanding other people's code). That's why people have settled on a format they can reproduce in almost all instances. Very few compilers accept code with formatting markup beyond ^Ls and TABs. You can't compile a Word document. -- \ |_ _|__ __|_ \ __| Jason Andresen jandrese@mitre.org |\/ | | | / _| Network and Distributed Systems Engineer _| _|___| _| _|_\___| Office: 703-883-7755 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 10:50:17 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB0D737B401 for ; Wed, 26 Feb 2003 10:50:15 -0800 (PST) Received: from dire.bris.ac.uk (dire.bris.ac.uk [137.222.10.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14A3743FA3 for ; Wed, 26 Feb 2003 10:50:15 -0800 (PST) (envelope-from Jan.Grant@bristol.ac.uk) Received: from mail.ilrt.bris.ac.uk by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Wed, 26 Feb 2003 18:50:07 +0000 Received: from cmjg (helo=localhost) by mail.ilrt.bris.ac.uk with local-esmtp (Exim 3.16 #1) id 18o6aX-0002n8-00; Wed, 26 Feb 2003 18:47:29 +0000 Date: Wed, 26 Feb 2003 18:47:29 +0000 (GMT) From: Jan Grant X-X-Sender: cmjg@mail.ilrt.bris.ac.uk To: Jason Andresen Cc: Wes Peters , hackers Subject: Re: C coding editor In-Reply-To: <3E5D0008.20009@mitre.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 26 Feb 2003, Jason Andresen wrote: > Very few compilers accept code with formatting markup beyond > ^Ls and TABs. You can't compile a Word document. As we plunge completely off topic, there is (was) at least one literate programming system that grokked winword. -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287088 Fax +44 (0)117 9287112 http://ioctl.org/jan/ The Java disclaimer: values of 'anywhere' may vary between regions. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 11: 2:25 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E959237B401 for ; Wed, 26 Feb 2003 11:02:23 -0800 (PST) Received: from jordan.llnl.gov (jordan.llnl.gov [128.115.36.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3963743FBF for ; Wed, 26 Feb 2003 11:02:23 -0800 (PST) (envelope-from alley1@llnl.gov) Received: from jordan.llnl.gov (1683ff08e27b5bafdc810c1a454af79b@localhost [127.0.0.1]) by jordan.llnl.gov (8.12.6/8.12.6) with ESMTP id h1QJ2GvU003159; Wed, 26 Feb 2003 11:02:16 -0800 (PST) Received: from localhost (wea@localhost) by jordan.llnl.gov (8.12.6/8.12.6/Submit) with ESMTP id h1QJ2Cbw003156; Wed, 26 Feb 2003 11:02:12 -0800 (PST) Date: Wed, 26 Feb 2003 11:02:12 -0800 (PST) From: Ed Alley To: Cc: , Subject: Re: HOWTO track resource leaks in kernel modules? Message-ID: <20030226105759.N3150-100000@jordan.llnl.gov> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Re: Resource leaks Hi -- A question like yours (How to?) usually gets ignored on the hackers list. I've tried it before. I believe that they're only interested in bugs/hacks in the current source. I am not aware of any newsletter/questions digest that can/will answer a technical how-to like yours. My suggestion is to place panic(9) calls in strategic places in your code and see where it blows. Also putting strategic printf statements before the panic will help. Finally: don't compile as a module because the kernel.debug file will not have the module symbols in it, which makes it difficult to debug; you can load the module symbols with gdb (see the developers handbook) but that is a pain in the neck after a while. It's easy to switch from in-kernel to module after you have developed your package. I am not aware of any software that you can use to debug leaking resources except gdb -k. Look at the v_usecount, v_writecount, v_holdcount values in the struct vnode.h. Things like that. Ed Alley To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 11: 7:26 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D045737B401 for ; Wed, 26 Feb 2003 11:07:24 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13D9B43FAF for ; Wed, 26 Feb 2003 11:07:24 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <20030226190722003007dt60e>; Wed, 26 Feb 2003 19:07:23 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA97629; Wed, 26 Feb 2003 11:07:20 -0800 (PST) Date: Wed, 26 Feb 2003 11:07:18 -0800 (PST) From: Julian Elischer To: Ed Alley Cc: daxbert_news@dweebsoft.com, wea@llnl.gov, freebsd-hackers@freebsd.org Subject: Re: HOWTO track resource leaks in kernel modules? In-Reply-To: <20030226105759.N3150-100000@jordan.llnl.gov> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 26 Feb 2003, Ed Alley wrote: > > Re: Resource leaks > what KIND of resource leaks? > > Hi -- > > A question like yours (How to?) usually gets ignored on the hackers list. > I've tried it before. I believe that they're only interested in bugs/hacks > in > the current source. I am not aware of any newsletter/questions digest that > can/will answer a technical how-to like yours. > My suggestion is to place panic(9) calls in strategic places in > your code and see where it blows. Also putting strategic printf statements > before the panic will help. > Finally: don't compile as a module because the kernel.debug file > will not have the module symbols in it, which makes it difficult to > debug; you can load the module symbols with gdb (see the developers handbook) > but that is a pain in the neck after a while. It's easy to switch from > in-kernel to module after you have developed your package. > I am not aware of any software that you can use to debug leaking > resources except gdb -k. Look at the v_usecount, v_writecount, v_holdcount > values in the struct vnode.h. Things like that. > > Ed Alley > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 14:31:49 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 363C637B401 for ; Wed, 26 Feb 2003 14:31:48 -0800 (PST) Received: from mail.ac-net.at (secure.ac-net.at [212.24.125.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12B8A43FB1 for ; Wed, 26 Feb 2003 14:31:46 -0800 (PST) (envelope-from shammer@daemon.li) Received: from mail.ac-net.at (server.ac-net.at [127.0.0.1]) by mail.ac-net.at (AC-net Mailserver v1.3a) with SMTP id 9245D3F64 for ; Wed, 26 Feb 2003 23:31:34 +0100 (CET) Received: from daemon.li (dsl-156-42.utaonline.at [62.218.156.42]) by mail.ac-net.at (AC-net Mailserver v1.3a) with SMTP id 00AE63F58 for ; Wed, 26 Feb 2003 22:31:34 +0000 (UTC) Received: (qmail 1574 invoked from network); 26 Feb 2003 22:34:11 -0000 Received: from localhost (HELO daemon.li) (127.0.0.1) by localhost with SMTP; 26 Feb 2003 22:34:11 -0000 Received: (from shammer@localhost) by daemon.li (8.12.6/8.12.7/Submit) id h1QMYAX6001572 for hackers@freebsd.org; Wed, 26 Feb 2003 23:34:10 +0100 (CET) (envelope-from shammer) Date: Wed, 26 Feb 2003 23:34:10 +0100 From: Josef El-Rayes To: hackers@freebsd.org Subject: kernel design questions Message-ID: <20030226223410.GA1506@daemon.li> Reply-To: j.el-rayes@daemon.li Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Reply-Path: j.el-rayes@daemon.li X-Mailer: FreeBSD Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG hi! i was looking for some kernel documentation and i had to find out it was justas the words say it "use the source luke". so i just want ask whether the freebsd kernel can be called a monolithic kernel? as far as i understood a monolithic kernel is just one big binary that does not get modified during beeing loaded into memory and as freebsd is able to load modules into kernel during runtime its not monolithic anymore? greets, josef -- www: http://www.daemon.li nic-hdl: JER1080312-NICAT To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 14:48:40 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 95EC137B401 for ; Wed, 26 Feb 2003 14:48:35 -0800 (PST) Received: from flamingo.mail.pas.earthlink.net (flamingo.mail.pas.earthlink.net [207.217.120.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8D1C43FA3 for ; Wed, 26 Feb 2003 14:48:34 -0800 (PST) (envelope-from mooneer@translator.cx) Received: from pool0931.cvx31-bradley.dialup.earthlink.net ([209.179.149.166] helo=morpheus) by flamingo.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 18oALk-0003LJ-00; Wed, 26 Feb 2003 14:48:29 -0800 From: "Mooneer Salem" To: "Pawel Jakub Dawidek" Cc: "FreeBSD Hackers" Subject: RE: Jail seperation patch Date: Wed, 26 Feb 2003 14:48:25 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20030226080509.GZ8455@garage.freebsd.pl> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, 1. It handles at least case 1 just fine: %telnet 10.0.0.2 25 Trying 10.0.0.2... Connected to pacific.lifeafterking.org. Escape character is '^]'. 220 pacific.lifeafterking.org ESMTP Sendmail 8.12.6/8.12.6; Wed, 26 Feb 2003 07:45:39 -0700 (MST) quit 221 2.0.0 pacific.lifeafterking.org closing connection Connection closed by foreign host. %telnet 10.0.0.3 25 Trying 10.0.0.3... Connected to test.lifeafterking.org.. Escape character is '^]'. 220 test.lifeafterking.org ESMTP Sendmail 8.12.6/8.12.6; Wed, 26 Feb 2003 07:45:46 -0700 (MST) quit 221 2.0.0 test.lifeafterking.org closing connection Connection closed by foreign host. %telnet 10.0.0.4 25 Trying 10.0.0.4... Connected to blah.lifeafterking.org.. Escape character is '^]'. 220 test.lifeafterking.org ESMTP Sendmail 8.12.6/8.12.6; Wed, 26 Feb 2003 07:45:52 -0700 (MST) quit 221 2.0.0 test.lifeafterking.org closing connection Connection closed by foreign host. %ssh mooneer@10.0.0.3 Password: Last login: Tue Feb 25 22:41:12 2003 from test2.lifeafter Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.0-RELEASE-p1 (VMWARE-SERVER) #38: Mon Feb 24 18:24:18 MST 2003 %telnet 10.0.0.2 25 Trying 10.0.0.2... Connected to pacific.lifeafterking.org. Escape character is '^]'. 220 pacific.lifeafterking.org ESMTP Sendmail 8.12.6/8.12.6; Wed, 26 Feb 2003 07:46:16 -0700 (MST) quit 221 2.0.0 pacific.lifeafterking.org closing connection Connection closed by foreign host. %hostname test.lifeafterking.org %exit logout Connection to 10.0.0.3 closed. % However, I just checked and it appears I can connect to 0.0.0.0: %telnet 0.0.0.0 25 Trying 0.0.0.0... Connected to 0.0.0.0. Escape character is '^]'. 220 pacific.lifeafterking.org ESMTP Sendmail 8.12.6/8.12.6; Wed, 26 Feb 2003 07:49:30 -0700 (MST) quit 221 2.0.0 pacific.lifeafterking.org closing connection Connection closed by foreign host. %hostname test.lifeafterking.org % Hey, I found a bug! :) 2. Neat. :) I'm going to add sysctls when I get a chance for the mount hiding. Also, I'm going to take a look at the VFS code and see if I can hide files from non-root non-jailed users. 3. Does multi-level jailing add any further restrictions to the jails within the jails, besides the standard ones imposed? Thanks, -- Mooneer Salem GPLTrans: http://www.translator.cx/ lifeafterking.org: http://www.lifeafterking.org/ -----Original Message----- From: Pawel Jakub Dawidek [mailto:nick@garage.freebsd.pl] Sent: Wednesday, February 26, 2003 12:05 AM To: Mooneer Salem Cc: FreeBSD Hackers Subject: Re: Jail seperation patch On Tue, Feb 25, 2003 at 02:47:11PM -0800, Mooneer Salem wrote: +> I've been working on extending the jail feature of FreeBSD to make it +> more friendly to VPS providers. I added the following features: +> +> * Rudimentary CPU/RAM/number of processes per-jail limits +> * Multiple IP support (from Pawel Jakub Dawidek's mijail patch for 4.7) +> * Proper INADDR_ANY support added (so INADDR_ANY will bind to all IP +> addresses +> within a jail) And what when we got situation like: 1. main host ips: 1.1.1.2, 1.1.1.3, 1.1.1.4 jailed host ips: 1.1.1.2, 1.1.1.3 Daemon in jail binds to INADDR_ANY to port X, somebody connects to port X, but to IP 1.1.1.4 (outside jail). Connection will success? 2. main host ips: 1.1.1.2, 1.1.1.3, 1.1.1.4 jailed host ips: 1.1.1.2, 1.1.1.3 Daemon outside jail binds to port X on IP 1.1.1.4. User in jail connects to port X to INADDR_ANY. Connection will success? What when daemon idside jail and daemon outside jail binds to those same port? If I'm connectin to this port who will handle connection? +> * struct prison added to SysV IPC code (to allow for secure use) Better solution is created separated memory zones for main host and every jail, look at my patch agains 5.0-CURRENT: http://garage.freebsd.pl/privipc.tbz http://garage.freebsd.pl/privipc.README +> * Disk mount hiding Better way is IMHO hiding and cutting pathnames, look at: http://garage.freebsd.pl/jailfsstat.tgz http://garage.freebsd.pl/jailfsstat.README +> * Hot add/remove IP addresses from jail using sysctl +> * Process hiding (non-root users outside jails cannot see jailed processes) This isn't a complete solution and I think it couldn't be, because you still could modify files owned by jailed users with UID notjailed user, so... +> The patch is for 5.0-CURRENT/5.0-RELEASE. I would be interested in +> any comments or suggestions. If anyone's interested, it can be retrieved +> at http://msalem.translator.cx/dist/jail_seperation.v5.patch. You could add multi-level jailing, IMHO it's cool: http://garage.freebsd.pl/mljail.tbz http://garage.freebsd.pl/mljail.README Nice work, I'm wondering if something will be ever commited:) -- Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 14:54:45 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60C2137B401 for ; Wed, 26 Feb 2003 14:54:44 -0800 (PST) Received: from ra.dweebsoft.com (ra.dweebsoft.com [209.237.40.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id D53BD43FB1 for ; Wed, 26 Feb 2003 14:54:41 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: from ra.dweebsoft.com (localhost [127.0.0.1]) by ra.dweebsoft.com (8.12.6/8.12.6) with ESMTP id h1QMsYCF017019; Wed, 26 Feb 2003 14:54:34 -0800 (PST) (envelope-from daxbert_news@dweebsoft.com) Received: (from http@localhost) by ra.dweebsoft.com (8.12.6/8.12.3/Submit) id h1QMsXaq017018; Wed, 26 Feb 2003 14:54:33 -0800 (PST) X-Authentication-Warning: ra.dweebsoft.com: http set sender to daxbert_news@dweebsoft.com using -f Received: from 64.81.58.36 ( [64.81.58.36]) as user daxbert@localhost by ra.dweebsoft.com with HTTP; Wed, 26 Feb 2003 14:54:33 -0800 Message-ID: <1046300073.3e5d45a9a9669@ra.dweebsoft.com> Date: Wed, 26 Feb 2003 14:54:33 -0800 From: Daxbert To: Julian Elischer Cc: Ed Alley , "" , "" Subject: Re: HOWTO track resource leaks in kernel modules? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 64.81.58.36 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Quoting Julian Elischer : > On Wed, 26 Feb 2003, Ed Alley wrote: > > > > Re: Resource leaks > > > > what KIND of resource leaks? > I guess I asked this question of the wrong list. I'm interested in finding dma allocs, memory allocs, and IRQ/IO allocs which occur during a LKM's attached life. I'm adding the ability to detach if_de and was hoping to find assistance on where to look for resource tracking tools. --daxbert To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 15: 7:38 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D7AF37B401 for ; Wed, 26 Feb 2003 15:07:37 -0800 (PST) Received: from sccrmhc03.attbi.com (sccrmhc03.attbi.com [204.127.202.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91D2F43F3F for ; Wed, 26 Feb 2003 15:07:36 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc03.attbi.com (sccrmhc03) with ESMTP id <20030226230734003007g8rqe>; Wed, 26 Feb 2003 23:07:35 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA99407; Wed, 26 Feb 2003 15:07:34 -0800 (PST) Date: Wed, 26 Feb 2003 15:07:32 -0800 (PST) From: Julian Elischer To: Daxbert Cc: Ed Alley , wea@llnl.gov, freebsd-hackers@freebsd.org Subject: Re: HOWTO track resource leaks in kernel modules? In-Reply-To: <1046300073.3e5d45a9a9669@ra.dweebsoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, 26 Feb 2003, Daxbert wrote: > Quoting Julian Elischer : > > > On Wed, 26 Feb 2003, Ed Alley wrote: > > > > > > Re: Resource leaks > > > > > > > what KIND of resource leaks? > > > > I guess I asked this question of the wrong list. I'm interested in > finding dma allocs, memory allocs, and IRQ/IO allocs which occur > during a LKM's attached life. I'm adding the ability to detach > if_de and was hoping to find assistance on where to look for > resource tracking tools. For malloc (in the kernel) you can specify a separate pool for a module, so that it will account for mallocs for that module separatly. you can then look at them with vmstat -m check out sys/malloc.h and look at MALLOC_DECLARE is this for 4.x or 5.x? > > --daxbert > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Wed Feb 26 19: 4:28 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3D8137B401; Wed, 26 Feb 2003 19:02:33 -0800 (PST) Received: from notes-relay.monroe.edu (notes-relay.monroe.edu [199.190.222.147]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDFCA43FAF; Wed, 26 Feb 2003 19:02:30 -0800 (PST) (envelope-from vortex_nismo@mail.ru) Received: from mail.greece.k12.ny.us (greece-notes1.greece.k12.ny.us [207.10.14.202]) by notes-relay.monroe.edu (8.12.1/8.12.1) with ESMTP id h1R2wgB8085308; Wed, 26 Feb 2003 21:58:43 -0500 (EST) Received: from hotmail.com ([64.2.84.131]) by mail.greece.k12.ny.us (Lotus Domino Release 5.0.10) with SMTP id 2003022622004652:3595 ; Wed, 26 Feb 2003 22:00:46 -0500 Reply-To: vortex_nismo@mail.ru From: П*О*Л*И*Г*Р*А*Ф*И*Я Subject: -=Оперативная полиграфия по отличным ценам!=- Date: Thu, 27 Feb 2003 04:59:03 +0200 MIME-Version: 1.0 X-Priority: 1 (High) X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-MIMETrack: Itemize by SMTP Server on Greece-Notes1/Greece(Release 5.0.10 |March 22, 2002) at 02/26/2003 10:00:58 PM, Serialize by Router on Greece-Notes1/Greece(Release 5.0.10 |March 22, 2002) at 02/26/2003 10:02:21 PM, Serialize complete at 02/26/2003 10:02:21 PM Message-ID: Content-Transfer-Encoding: 7bit Content-Type: text/html; charset="Windows-1251" To: undisclosed-recipients: ; Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG
 

Наша типография предлагаем Вам услуги оперативной полиграфии по передовой технологии цифровой полноцветной печати (разрешение до 1200dpi) на самом современном оборудовании по ОТЛИЧНЫМ ценам! Цветные и черно-белые визитные карточки, бланки, рекламные листовки, календари, плакаты - любые виды печатной продукции в самые кратчайшие сроки. В офисе работает профессиональный дизайнер, который поможет Вам создать неповторимый стиль и оригинальный дизайн-макет будущей продукции в период Вашего присутствия (от 15 мин до 1,5 часов). Дизайн и изготовление макета - бесплатно!


Прайс-лист на услуги:

Визитные карточки !!!полноцвет!!! (цифровая цветная печать):

 

Тираж

Стоимость тиража ($)

50

7,5

100

9

200

19

500

40

1000

75

* бумага плотностью до 300 г/м2

Визитные карточки (цифровая черно-белая печать):

 

Тираж

Стоимость тиража ($)

50

5

100

7

200

15

500

25

1000

40

* бумага плотностью до 300 г/м2

Плакаты А3:

 

Тираж

Стоимость тиража ($)

1

5

5

20

10

35

50

150


Двусторонние календари:

 

Тираж

Стоимость тиража ($)

50

20

100

35

300

80

 

Цифровая печать любых файлов:

 

По договоренности

 

Изготовление упаковки любых форматов :

По договоренности 

   

Дисконтные карты:

 

Тираж

Стоимость тиража ($)

50

30

100

38

200

50,7

500

110

1000

195

 


Доставка продукции, а также выезд курьера - 100 рублей в пределах МКАД!

Надеемся на дальнейшее долгосрочное сотрудничество!

По всем возникающим вопросам и предложениям о сотрудничестве Вы можете обратиться по телефону:
(095) 275-24-50 (многоканальный).

 

JVBTOWNFXFGPGSJIQCRXPSDMWBJBDNCPBKRKLC To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 1:42:41 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CDFA237B401 for ; Thu, 27 Feb 2003 01:42:38 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EA3C43FB1 for ; Thu, 27 Feb 2003 01:42:38 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 23C703ABB63; Thu, 27 Feb 2003 10:42:42 +0100 (CET) Date: Thu, 27 Feb 2003 10:42:42 +0100 From: Pawel Jakub Dawidek To: Mooneer Salem Cc: FreeBSD Hackers Subject: Re: Jail seperation patch Message-ID: <20030227094242.GJ330@garage.freebsd.pl> References: <20030226080509.GZ8455@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="cy9Nn4fUvYST66Pl" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --cy9Nn4fUvYST66Pl Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 26, 2003 at 02:48:25PM -0800, Mooneer Salem wrote: +> 1. It handles at least case 1 just fine: +>=20 +> %telnet 10.0.0.2 25 +> Trying 10.0.0.2... +> Connected to pacific.lifeafterking.org. [...] +> %telnet 10.0.0.3 25 +> Trying 10.0.0.3... +> Connected to test.lifeafterking.org.. [...] +> %telnet 10.0.0.4 25 +> Trying 10.0.0.4... +> Connected to blah.lifeafterking.org.. Nope, this is incorrect behaviour. INADDR_ANY in jail means: 10.1.1.2 or 10.1.1.3, but not 10.1.1.4. +> 2. Neat. :) I'm going to add sysctls when I get a chance for the mount +> hiding. Also, I'm going to take a look +> at the VFS code and see if I can hide files from non-root non-jailed use= rs. ??? Everything that you can check IMHO is to check every parent directory of opened file if it isn't equal to jail chroot directory. But this is slow and stupid, because there could be many jails with shared chroot directory. +> 3. Does multi-level jailing add any further restrictions to the jails wi= thin +> the jails, besides the standard ones +> imposed? Nope, but jail runned in jail can't use IPs that aren't binded to parent jail and securelevels are checked recursively. --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --cy9Nn4fUvYST66Pl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPl3dkj/PhmMH/Mf1AQEJIwQAl4Yr1xLXMWpn5YCDQhbTuM+15U4Ys+zv qwlwFkeDRkPaJVle1W9ihu5HB+TfOwF2TCxXpTTjyqPwmnT1HfWqpVbx/x0ZfYLr D/iZFaFqunXUIGyOfnuHas6RCZ4FCx6Ia2xyvysSkHAy0HRGyXinhMNFQJO/48Bi HL0oeIV+Sho= =3qAo -----END PGP SIGNATURE----- --cy9Nn4fUvYST66Pl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 6:46:12 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38C4C37B401 for ; Thu, 27 Feb 2003 06:46:11 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 601A343FBF for ; Thu, 27 Feb 2003 06:46:10 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0140.cvx40-bradley.dialup.earthlink.net ([216.244.42.140] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18oPIS-0000ph-00; Thu, 27 Feb 2003 06:46:04 -0800 Message-ID: <3E5E2459.689F4E9D@mindspring.com> Date: Thu, 27 Feb 2003 06:44:41 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Daxbert Cc: Julian Elischer , Ed Alley , wea@llnl.gov, freebsd-hackers@freebsd.org Subject: Re: HOWTO track resource leaks in kernel modules? References: <1046300073.3e5d45a9a9669@ra.dweebsoft.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4d372d43fb3e906698640bfb871ba1b95350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Daxbert wrote: > Quoting Julian Elischer : > > On Wed, 26 Feb 2003, Ed Alley wrote: > > > > > > Re: Resource leaks > > > > > > > what KIND of resource leaks? > > I guess I asked this question of the wrong list. I'm interested in finding dma > allocs, memory allocs, and IRQ/IO allocs which occur during a LKM's attached > life. I'm adding the ability to detach if_de and was hoping to find assistance > on where to look for resource tracking tools. There are significant changes in the allocator memory architecture, which you would need to address in order to find the necessary statistics. The code you would examine to see what you need to look at these days would be whatever the most recent version of "vmstat -m" does in order to get its information. With that knowledge in hand, please see: http://www.freebsd.org/~terry/testset.txt http://www.freebsd.org/~terry/testset.tar.gz.uu which is a set of test code that allows you to exercise kernel code paths, and which will flag memory allocation leaks for you. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 7:16:53 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C6D637B401 for ; Thu, 27 Feb 2003 07:16:50 -0800 (PST) Received: from mallard.mail.pas.earthlink.net (mallard.mail.pas.earthlink.net [207.217.120.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F01143FB1 for ; Thu, 27 Feb 2003 07:16:49 -0800 (PST) (envelope-from mooneer@translator.cx) Received: from pool0070.cvx31-bradley.dialup.earthlink.net ([209.179.146.70] helo=morpheus) by mallard.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 18oPls-000382-00; Thu, 27 Feb 2003 07:16:29 -0800 From: "Mooneer Salem" To: "Pawel Jakub Dawidek" Cc: "FreeBSD Hackers" Subject: RE: Jail seperation patch Date: Thu, 27 Feb 2003 07:16:15 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <20030227094242.GJ330@garage.freebsd.pl> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, Actually, I just gave it blah.lifeafterking.org in /etc/hosts. 10.0.0.4 really *is* in the same jail: %ifconfig lnc0: flags=8843 mtu 1500 inet 10.0.0.3 netmask 0xffffffff broadcast 10.0.0.3 inet 10.0.0.4 netmask 0xffffffff broadcast 10.0.0.4 ether 00:50:56:e0:26:54 lo0: flags=8049 mtu 16384 %hostname test.lifeafterking.org % As for the hide files code, I found a possible location for it, in vfs_subr.c (extattr_check_cred()). I added this block to it: /* Check to make sure outside user can actually access jailed files */ if (cred->cr_prison && cred->cr_uid != 0 && jail_hide_files) { LIST_FOREACH(element, &firstjail, pointers) { if (element->pr == cred->cr_prison) { break; } } if (!strncmp(element->chroot_path, vp->v_mount->mnt_stat.f_mntonname, strlen(element->chroot_path)) { return (EPERM); } } This ensures the check is only run if the sysctl variable equals 1. Thanks, -- Mooneer Salem GPLTrans: http://www.translator.cx/ lifeafterking.org: http://www.lifeafterking.org/ -----Original Message----- From: owner-freebsd-hackers@FreeBSD.ORG [mailto:owner-freebsd-hackers@FreeBSD.ORG]On Behalf Of Pawel Jakub Dawidek Sent: Thursday, February 27, 2003 1:43 AM To: Mooneer Salem Cc: FreeBSD Hackers Subject: Re: Jail seperation patch On Wed, Feb 26, 2003 at 02:48:25PM -0800, Mooneer Salem wrote: +> 1. It handles at least case 1 just fine: +> +> %telnet 10.0.0.2 25 +> Trying 10.0.0.2... +> Connected to pacific.lifeafterking.org. [...] +> %telnet 10.0.0.3 25 +> Trying 10.0.0.3... +> Connected to test.lifeafterking.org.. [...] +> %telnet 10.0.0.4 25 +> Trying 10.0.0.4... +> Connected to blah.lifeafterking.org.. Nope, this is incorrect behaviour. INADDR_ANY in jail means: 10.1.1.2 or 10.1.1.3, but not 10.1.1.4. +> 2. Neat. :) I'm going to add sysctls when I get a chance for the mount +> hiding. Also, I'm going to take a look +> at the VFS code and see if I can hide files from non-root non-jailed users. ??? Everything that you can check IMHO is to check every parent directory of opened file if it isn't equal to jail chroot directory. But this is slow and stupid, because there could be many jails with shared chroot directory. +> 3. Does multi-level jailing add any further restrictions to the jails within +> the jails, besides the standard ones +> imposed? Nope, but jail runned in jail can't use IPs that aren't binded to parent jail and securelevels are checked recursively. -- Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 7:43:54 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09DF037B401 for ; Thu, 27 Feb 2003 07:43:52 -0800 (PST) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A10443FBF for ; Thu, 27 Feb 2003 07:43:51 -0800 (PST) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id 5C5A33ABB4D; Thu, 27 Feb 2003 16:43:51 +0100 (CET) Date: Thu, 27 Feb 2003 16:43:51 +0100 From: Pawel Jakub Dawidek To: Mooneer Salem Cc: FreeBSD Hackers Subject: Re: Jail seperation patch Message-ID: <20030227154351.GQ330@garage.freebsd.pl> References: <20030227094242.GJ330@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="rG09A39trvEtf3rB" Content-Disposition: inline In-Reply-To: X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-PRERELEASE i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --rG09A39trvEtf3rB Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 27, 2003 at 07:16:15AM -0800, Mooneer Salem wrote: +> Actually, I just gave it blah.lifeafterking.org in /etc/hosts. 10.0.0.4 +> really *is* in the same jail: +>=20 +> %ifconfig +> lnc0: flags=3D8843 mtu 1500 +> inet 10.0.0.3 netmask 0xffffffff broadcast 10.0.0.3 +> inet 10.0.0.4 netmask 0xffffffff broadcast 10.0.0.4 +> ether 00:50:56:e0:26:54 +> lo0: flags=3D8049 mtu 16384 +> %hostname +> test.lifeafterking.org +> % Ehh, so now I know nothing about your test settings. After all problems isn't so trivial. +> As for the hide files code, I found a possible location for it, in +> vfs_subr.c (extattr_check_cred()). I added +> this block to it: [...] IMHO very dirty and not complete. Jail don't have to be chrooted to diferent mount-point, and checks like those should be done between vnodes, not pathnames. In my opinion better way is just create another jail and don't give access to main host for regular users. --=20 Pawel Jakub Dawidek UNIX Systems Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am. --rG09A39trvEtf3rB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPl4yNz/PhmMH/Mf1AQHotQQAkeywMGpBMfwYGhDQccL/QWzbnrFrvWyJ YV1SE7gTMtBYJNWaqnid7Jb0sY9/kF9aM1ZhVF17zlKpFxvp4+X3FWbHPFpscHMl wfNDJwrMtu9ISHOqeFxQ9r15ftDdRqQEr5QaWSaOXa/Y8cJKtFBffqdD2qBTVxl4 EKarNg7ptYY= =8lmk -----END PGP SIGNATURE----- --rG09A39trvEtf3rB-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 8: 1:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E019C37B401 for ; Thu, 27 Feb 2003 08:01:43 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id C284843F93 for ; Thu, 27 Feb 2003 08:01:42 -0800 (PST) (envelope-from hiten@unixdaemons.com) Received: from angelica.unixdaemons.com (localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h1RG1fjL042521 for ; Thu, 27 Feb 2003 11:01:41 -0500 (EST) Received: (from nobody@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h1RG1egj042520 for hackers@FreeBSD.ORG; Thu, 27 Feb 2003 11:01:40 -0500 (EST) (envelope-from hiten@unixdaemons.com) X-Authentication-Warning: angelica.unixdaemons.com: nobody set sender to hiten@unixdaemons.com using -f Received: from 194.66.175.71 ( [194.66.175.71]) as user hiten@localhost by webmail.unixdaemons.com with HTTP; Thu, 27 Feb 2003 11:01:40 -0500 Message-ID: <1046361700.3e5e3664bcf24@webmail.unixdaemons.com> Date: Thu, 27 Feb 2003 11:01:40 -0500 From: "" To: "" Subject: Disk scheduling in FreeBSD MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 194.66.175.71 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello gang. Does anyone know what kind of `Disk Scheduling' algorithm, if any, is used in FreeBSD? Cheers. -- Hiten Pandya hiten@unixdaemons.com, hiten@uk.FreeBSD.ORG http://www.unixdaemons.com/~hiten ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 8:20:53 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 035F037B401 for ; Thu, 27 Feb 2003 08:20:52 -0800 (PST) Received: from murdoch.servitor.co.uk (murdoch.servitor.co.uk [217.151.99.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id B52CC43F85 for ; Thu, 27 Feb 2003 08:20:50 -0800 (PST) (envelope-from paul@iconoplex.co.uk) Received: from mmu-firewall.mmu.ac.uk ([149.170.101.200] helo=miter96pq2w1fz) by murdoch.servitor.co.uk with smtp (Exim 3.33 #3) id 18oQm9-000FfV-00; Thu, 27 Feb 2003 16:20:50 +0000 From: "Paul Robinson" To: , Subject: RE: Disk scheduling in FreeBSD Date: Thu, 27 Feb 2003 16:20:45 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <1046361700.3e5e3664bcf24@webmail.unixdaemons.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hiten Pandya wrote: > Hello gang. > > Does anyone know what kind of `Disk Scheduling' algorithm, > if any, is used in FreeBSD? I'm assuming you've read this recently then: http://www.kerneltrap.org/node-592.html Anticipatory Schedulers are all well and good, but I think (I might be corrected here) that most of the disk I/O work in FreeBSD has been around softupdates. However, when I read it, and looked at a description of the AS algo (not the source, I don't want to have any GPL infection around me), I have to admit, I did eye up /usr/src and my week's holiday the week after next, just as a bit of fun... Anybody else got plans on this? I need to have a proper look around the source tree, but I think this would be both self-contained (i.e. easy to back out if it breaks) and useful. Quite a small-ish project really as well. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 9:12:32 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EB84837B401 for ; Thu, 27 Feb 2003 09:12:31 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04A4043F93 for ; Thu, 27 Feb 2003 09:12:31 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1RHCTaa008211; Thu, 27 Feb 2003 18:12:29 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: "" Cc: "" Subject: Re: Disk scheduling in FreeBSD From: phk@phk.freebsd.dk In-Reply-To: Your message of "Thu, 27 Feb 2003 11:01:40 EST." <1046361700.3e5e3664bcf24@webmail.unixdaemons.com> Date: Thu, 27 Feb 2003 18:12:29 +0100 Message-ID: <8210.1046365949@critter.freebsd.dk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <1046361700.3e5e3664bcf24@webmail.unixdaemons.com>, "" writes: >Hello gang. > >Does anyone know what kind of `Disk Scheduling' algorithm, >if any, is used in FreeBSD? One way elevator sort. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 11:31:23 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B430137B401 for ; Thu, 27 Feb 2003 11:31:21 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-224.client.attbi.com [12.233.57.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F33D43FBF for ; Thu, 27 Feb 2003 11:31:21 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h1RJVJ8Y038125; Thu, 27 Feb 2003 11:31:19 -0800 (PST) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h1RJVJFH038124; Thu, 27 Feb 2003 11:31:19 -0800 (PST) (envelope-from das@FreeBSD.ORG) Date: Thu, 27 Feb 2003 11:31:19 -0800 From: David Schultz To: Paul Robinson Cc: hiten@unixdaemons.com, hackers@FreeBSD.ORG Subject: Re: Disk scheduling in FreeBSD Message-ID: <20030227193119.GA37891@HAL9000.homeunix.com> Mail-Followup-To: Paul Robinson , hiten@unixdaemons.com, hackers@FreeBSD.ORG References: <1046361700.3e5e3664bcf24@webmail.unixdaemons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thus spake Paul Robinson : > Hiten Pandya wrote: > > > Hello gang. > > > > Does anyone know what kind of `Disk Scheduling' algorithm, > > if any, is used in FreeBSD? > > I'm assuming you've read this recently then: > > http://www.kerneltrap.org/node-592.html ... > Anybody else got plans on this? I need to have a proper look around the > source tree, but I think this would be both self-contained (i.e. easy to > back out if it breaks) and useful. Quite a small-ish project really as well. The original anticipatory scheduler implementation was done for FreeBSD 4.3. See http://www.cs.rice.edu/~ssiyer/r/antsched/ I haven't looked carefully at it myself; I've only heard about it through someone who knows Margo Seltzer. It looks very interesting, although I worry that it would interfere with the prefetching and sequential heuristics that the VM system already does (which are already VERY good[1]). Maybe the authors already thought of that issue and addressed it. So in short, I don't know much about it, but I think it's worth looking into. [1] The fact that the improvement Linux got out of the new approach was so much greater than the improvement FreeBSD 4.3 got out of it is a testament to that fact, I think. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 11:50:35 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F298A37B401; Thu, 27 Feb 2003 11:50:34 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDE2B43F93; Thu, 27 Feb 2003 11:50:33 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1RJoVaa009761; Thu, 27 Feb 2003 20:50:32 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: David Schultz Cc: Paul Robinson , hiten@unixdaemons.com, hackers@FreeBSD.ORG Subject: Re: Disk scheduling in FreeBSD From: phk@phk.freebsd.dk In-Reply-To: Your message of "Thu, 27 Feb 2003 11:31:19 PST." <20030227193119.GA37891@HAL9000.homeunix.com> Date: Thu, 27 Feb 2003 20:50:31 +0100 Message-ID: <9760.1046375431@critter.freebsd.dk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <20030227193119.GA37891@HAL9000.homeunix.com>, David Schultz writes: >> http://www.kerneltrap.org/node-592.html >... >> Anybody else got plans on this? I have plans to make it possible to configure, at run time, which, if any disksort you want to use on a particular disk device. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 19:24:50 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9C9637B401; Thu, 27 Feb 2003 19:24:49 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5120D43F3F; Thu, 27 Feb 2003 19:24:49 -0800 (PST) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1S3OnNS078008; Thu, 27 Feb 2003 19:24:49 -0800 (PST) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1S3OndV078007; Thu, 27 Feb 2003 19:24:49 -0800 (PST) Date: Thu, 27 Feb 2003 19:24:49 -0800 (PST) From: Nate Lawson Message-Id: <200302280324.h1S3OndV078007@freefall.freebsd.org> To: current@freebsd.org, hackers@freebsd.org Subject: 64 bit endian routines Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG First, the simple question: what's the simplest cross-platform way of implementing scsi_ulto4b and scsi_4btoul (/sys/cam/scsi/scsi_all.h) for 64 bit values. GEOM (/sys/geom/geom_enc.c) implements it via a 64 bit cast in g_enc_le8. Is this the best current way? Second, anyone done work on unifying our various byte ordering macros? Besides htonl and ntohl, there are scsi_*ul*, g_enc_*, openssl/aes_locl.h, machine/endian.h, arpa/nameser.h, and I'm sure there are others. Perhaps the best thing is to add macros similar to geom_enc_* to machine/endian.h. Any ideas? Thanks, Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 19:43:41 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DCD737B401; Thu, 27 Feb 2003 19:43:40 -0800 (PST) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98DC343FA3; Thu, 27 Feb 2003 19:43:39 -0800 (PST) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id 5A3FB9C5F; Thu, 27 Feb 2003 22:30:58 -0500 (EST) Date: Thu, 27 Feb 2003 22:30:58 -0500 From: Mike Barcroft To: Nate Lawson Cc: current@freebsd.org, hackers@freebsd.org Subject: Re: 64 bit endian routines Message-ID: <20030227223058.G93968@espresso.bsdmike.org> References: <200302280324.h1S3OndV078007@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302280324.h1S3OndV078007@freefall.freebsd.org>; from njl@FreeBSD.org on Thu, Feb 27, 2003 at 07:24:49PM -0800 Organization: The FreeBSD Project Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nate Lawson writes: > First, the simple question: what's the simplest cross-platform way of > implementing scsi_ulto4b and scsi_4btoul (/sys/cam/scsi/scsi_all.h) for > 64 bit values. GEOM (/sys/geom/geom_enc.c) implements it via a 64 bit > cast in g_enc_le8. Is this the best current way? Maybe the byteorder(9) macrofunctions with a union? > Second, anyone done work on unifying our various byte ordering macros? > Besides htonl and ntohl, there are scsi_*ul*, g_enc_*, openssl/aes_locl.h, > machine/endian.h, arpa/nameser.h, and I'm sure there are others. Perhaps > the best thing is to add macros similar to geom_enc_* to machine/endian.h. > Any ideas? Most of these could probably be implemented in terms of the __bswap*() functions in , except for vendor sources like openssl, and htonl and ntohl which already are. I'm not sure if there would be an advantage to moving the geom byte ordering functions to (I guess phk didn't either). Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 19:57:38 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94CB337B401 for ; Thu, 27 Feb 2003 19:57:37 -0800 (PST) Received: from web13404.mail.yahoo.com (web13404.mail.yahoo.com [216.136.175.62]) by mx1.FreeBSD.org (Postfix) with SMTP id 3C32743FA3 for ; Thu, 27 Feb 2003 19:57:37 -0800 (PST) (envelope-from giffunip@yahoo.com) Message-ID: <20030228035736.81835.qmail@web13404.mail.yahoo.com> Received: from [200.24.79.194] by web13404.mail.yahoo.com via HTTP; Fri, 28 Feb 2003 04:57:36 CET Date: Fri, 28 Feb 2003 04:57:36 +0100 (CET) From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" Subject: Re: Disk scheduling in FreeBSD To: hackers@FreeBSD.ORG MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG FWIW, Although the original anticipatory scheduler prototype was made for FreeBSD, it cannot be used in the base system, unless reimplemented, due to the license. I wonder if the Linux guys redid it or simply didn't notice. The option of configuring it for runtime is welcome, I think. cheers, Pedro. ______________________________________________________________________ Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 20:11: 1 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 556F837B405; Thu, 27 Feb 2003 20:10:57 -0800 (PST) Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D5AC43FBD; Thu, 27 Feb 2003 20:10:55 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by rwcrmhc53.attbi.com (rwcrmhc53) with ESMTP id <20030228041054053001t8mue>; Fri, 28 Feb 2003 04:10:54 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id UAA10859; Thu, 27 Feb 2003 20:10:53 -0800 (PST) Date: Thu, 27 Feb 2003 20:10:51 -0800 (PST) From: Julian Elischer To: re@freebsd.org, hackers@freebsd.org Subject: wierdness on 4.7-RELEASE++ X11 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have some new machien s I'm trying to install and I have been puting 4.7 onto them and using the X-kern-developer install type. However X11 cannot start on these machines, even though it wuns perfectly on some other machines with the same cards.. XFree86 3.3.6 XFree86 4.2.1 Motherboard: SuperMicro P4D6+ works works ASUS P4PE fails works ASUS P4B533 fails works This is a PCI ATI rage card. We have a stack of them... The failure mode is wierd. I'm using the same confg file and X11 tree (exaclty) on both the P4D6 and the P4PE. Here is the failure on the P4PE.. ATI Radeon 7500 QW (AGP) (II) Primary Device is: PCI 02:09:0 (II) ATI: Candidate "Device" section "Card0". (II) ATI: Shared PCI/AGP Mach64 in slot 2:9:0 detected. (II) ATI: Shared PCI/AGP Mach64 in slot 2:9:0 assigned to active "Device" section "Card0". (II) resource ranges after xf86ClaimFixedResources() call: [0] -1 0xffe00000 - 0xffffffff (0x200000) MX[B](B) [1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B) [2] -1 0x000f0000 - 0x000fffff (0x10000) MX[B] [...] [19] -1 0x0000d800 - 0x0000d8ff (0x100) IX[B]E [20] -1 0x0000b400 - 0x0000b4ff (0x100) IX[B](B) (II) Loading sub module "atimisc" (II) LoadModule: "atimisc" (II) Loading /usr/X11R6/lib/modules/drivers/atimisc_drv.o (II) Module atimisc: vendor="The XFree86 Project" compiled for 4.2.1, module version = 6.4.8 Module class: XFree86 Video Driver ABI class: XFree86 Video Driver, version 0.5 (II) resource ranges after probing: [0] -1 0xffe00000 - 0xffffffff (0x200000) MX[B](B) [1] -1 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B) [2] -1 0x000f0000 - 0x000fffff (0x10000) MX[B] [3] -1 0x000c0000 - 0x000effff (0x30000) MX[B] [...] [24] 0 0x000003b0 - 0x000003bb (0xc) IS[B] [25] 0 0x000003c0 - 0x000003df (0x20) IS[B] (II) Setting vga for screen 0. (==) ATI(0): Chipset: "ati". (==) ATI(0): Depth 8, (==) framebuffer bpp 8 (II) Loading sub module "int10" (II) LoadModule: "int10" (II) Loading /usr/X11R6/lib/modules/libint10.a (II) Module int10: vendor="The XFree86 Project" compiled for 4.2.1, module version = 1.0.0 ABI class: XFree86 Video Driver, version 0.5 (==) ATI(0): Write-combining range (0xa0000,0x20000) was already clear (==) ATI(0): Write-combining range (0xf0000,0x10000) Symbol xf86DestroyCursorInfoRec from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol XAADestroyInfoRec from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol ShadowFBInit from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol fbPictureInit from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol fbScreenInit from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol xf4bppScreenInit from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol xf1bppScreenInit from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol xf86SetDDCproperties from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol xf86PrintEDID from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol vbeFree from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol vbeDoEDID from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol VBEInit from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol xf86DestroyCursorInfoRec from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol xf86InitCursor from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol xf86CreateCursorInfoRec from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol XAADestroyInfoRec from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol XAAInit from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Symbol XAACreateInfoRec from module /usr/X11R6/lib/modules/drivers/atimisc_drv.o is unresolved! Fatal server error: Caught signal 11. Server aborting When reporting a problem related to a server crash, please send the full server output, not just the last messages. This can be found in the log file "/var/log/XFree86.0.log". Please report problems to xfree86@xfree86.org. ================= the Wierd thing is that all these sympols are in some .a files in /usr/X11R6/lib/modules/ e.g. lets look for XAADestroyInfoRec, cfgx# cd /usr/X11R6/lib/modules/ cfgx# find . -type f | xargs nm -o | grep XAADestroyInfoRec ./drivers/apm_drv.o: U XAADestroyInfoRec ./drivers/atimisc_drv.o: U XAADestroyInfoRec ./drivers/chips_drv.o: U XAADestroyInfoRec ./drivers/cirrus_alpine.o: U XAADestroyInfoRec ./drivers/cirrus_laguna.o: U XAADestroyInfoRec ./drivers/cyrix_drv.o: U XAADestroyInfoRec ./drivers/glint_drv.o: U XAADestroyInfoRec ./drivers/i128_drv.o: U XAADestroyInfoRec ./drivers/i740_drv.o: U XAADestroyInfoRec ./drivers/i810_drv.o: U XAADestroyInfoRec ./drivers/mga_drv.o: U XAADestroyInfoRec ./drivers/neomagic_drv.o: U XAADestroyInfoRec ./drivers/nv_drv.o: U XAADestroyInfoRec ./drivers/r128_drv.o: U XAADestroyInfoRec ./drivers/radeon_drv.o: U XAADestroyInfoRec ./drivers/rendition_drv.o: U XAADestroyInfoRec ./drivers/s3virge_drv.o: U XAADestroyInfoRec ./drivers/hold/atimisc_drv.o: U XAADestroyInfoRec ./drivers/savage_drv.o: U XAADestroyInfoRec ./drivers/siliconmotion_drv.o: U XAADestroyInfoRec ./drivers/sis_drv.o: U XAADestroyInfoRec ./drivers/tdfx_drv.o: U XAADestroyInfoRec ./drivers/tga_drv.o: U XAADestroyInfoRec ./drivers/trident_drv.o: U XAADestroyInfoRec ./drivers/tseng_drv.o: U XAADestroyInfoRec ./libxaa.a:xaaInit.o:00000024 T XAADestroyInfoRec cfgx# So, it's needed in all the drivers. So why does it only matter on one set of motherboards? Is there something I can do to make the server include libxaa.a? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 20:18:52 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF2B537B401; Thu, 27 Feb 2003 20:18:50 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id A23AD43FA3; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h1S4In1o068863; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.7/8.12.7) with ESMTP id h1S4Inse000921; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.7/8.12.7/Submit) id h1S4IngG000920; Thu, 27 Feb 2003 20:18:49 -0800 (PST) (envelope-from marcel) Date: Thu, 27 Feb 2003 20:18:49 -0800 From: Marcel Moolenaar To: Mike Barcroft Cc: Nate Lawson , current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: 64 bit endian routines Message-ID: <20030228041849.GB813@athlon.pn.xcllnt.net> References: <200302280324.h1S3OndV078007@freefall.freebsd.org> <20030227223058.G93968@espresso.bsdmike.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030227223058.G93968@espresso.bsdmike.org> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 27, 2003 at 10:30:58PM -0500, Mike Barcroft wrote: > > Most of these could probably be implemented in terms of the __bswap*() > functions in , except for vendor sources like > openssl, and htonl and ntohl which already are. I'm not sure if there > would be an advantage to moving the geom byte ordering functions to > (I guess phk didn't either). The geom functions serve a primary purpose of dealing with random alignment of fields. The endianness has been added later, so they now serve a dual function. Do not unify them with byte-order only functions. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 20:34:57 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0B0E37B401; Thu, 27 Feb 2003 20:34:55 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2716343FBF; Thu, 27 Feb 2003 20:34:55 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003022804345300100j8vsse>; Fri, 28 Feb 2003 04:34:54 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id UAA11009; Thu, 27 Feb 2003 20:34:53 -0800 (PST) Date: Thu, 27 Feb 2003 20:34:51 -0800 (PST) From: Julian Elischer To: re@freebsd.org, hackers@freebsd.org Subject: Re: [correction] wierdness on 4.7-RELEASE++ X11 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG EE On Thu, 27 Feb 2003, Julian Elischer wrote: > > I have some new machien s I'm trying to install > and I have been puting 4.7 onto them and using > the X-kern-developer install type. > > However X11 cannot start on these machines, even though it wuns > perfectly on some other machines with the same cards.. > > XFree86 3.3.6 XFree86 4.2.1 > Motherboard: > SuperMicro P4D6+ works works > > ASUS P4PE fails works > > ASUS P4B533 fails works > > oops that should be: > XFree86 3.3.6 XFree86 4.2.1 > Motherboard: > SuperMicro P4D6+ works works > > ASUS P4PE works fails > > ASUS P4B533 works fails > it's the 4.2.1 that fails.. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 20:45:47 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DEE9637B401; Thu, 27 Feb 2003 20:45:45 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 477D743FAF; Thu, 27 Feb 2003 20:45:45 -0800 (PST) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1S4jjNS099793; Thu, 27 Feb 2003 20:45:45 -0800 (PST) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1S4jifs099792; Thu, 27 Feb 2003 20:45:44 -0800 (PST) Date: Thu, 27 Feb 2003 20:45:44 -0800 (PST) From: Nate Lawson Message-Id: <200302280445.h1S4jifs099792@freefall.freebsd.org> To: marcel@xcllnt.net, mike@FreeBSD.ORG Subject: Re: 64 bit endian routines Cc: current@FreeBSD.ORG, hackers@FreeBSD.ORG, njl@FreeBSD.ORG In-Reply-To: <20030228041849.GB813@athlon.pn.xcllnt.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Date: Thu, 27 Feb 2003 20:18:49 -0800 From: Marcel Moolenaar To: Mike Barcroft Cc: Nate Lawson , current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: 64 bit endian routines References: <200302280324.h1S3OndV078007@freefall.freebsd.org> <20030227223058.G93968@espresso.bsdmike.org> On Thu, Feb 27, 2003 at 10:30:58PM -0500, Mike Barcroft wrote: > Most of these could probably be implemented in terms of the __bswap*() > functions in , except for vendor sources like > openssl, and htonl and ntohl which already are. I'm not sure if there > would be an advantage to moving the geom byte ordering functions to > (I guess phk didn't either). The geom functions serve a primary purpose of dealing with random alignment of fields. The endianness has been added later, so they now serve a dual function. Do not unify them with byte-order only functions. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net Both scsi and geom implement unaligned access functions that perform byte ordering. I never intended to supplant them with __bswap*(). What I want is for machine/endian.h to have functions that provide 16-64 bit endian conversions in both aligned and unaligned access forms. After these functions are there, I'd like us to unify use of them and remove driver-private versions. Is this more clear now? -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 21:17:16 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 863D537B401; Thu, 27 Feb 2003 21:17:15 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.bayarea.net [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 657C143FAF; Thu, 27 Feb 2003 21:17:14 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from athlon.pn.xcllnt.net (athlon.pn.xcllnt.net [192.168.4.3]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h1S5HD1o069107; Thu, 27 Feb 2003 21:17:14 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from athlon.pn.xcllnt.net (localhost [127.0.0.1]) by athlon.pn.xcllnt.net (8.12.7/8.12.7) with ESMTP id h1S5HDse001127; Thu, 27 Feb 2003 21:17:13 -0800 (PST) (envelope-from marcel@athlon.pn.xcllnt.net) Received: (from marcel@localhost) by athlon.pn.xcllnt.net (8.12.7/8.12.7/Submit) id h1S5HDsR001126; Thu, 27 Feb 2003 21:17:13 -0800 (PST) (envelope-from marcel) Date: Thu, 27 Feb 2003 21:17:13 -0800 From: Marcel Moolenaar To: Nate Lawson Cc: mike@FreeBSD.org, current@FreeBSD.org, hackers@FreeBSD.org Subject: Re: 64 bit endian routines Message-ID: <20030228051713.GA1062@athlon.pn.xcllnt.net> References: <20030228041849.GB813@athlon.pn.xcllnt.net> <200302280445.h1S4jifs099792@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302280445.h1S4jifs099792@freefall.freebsd.org> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Feb 27, 2003 at 08:45:44PM -0800, Nate Lawson wrote: > > Both scsi and geom implement unaligned access functions that perform byte > ordering. I never intended to supplant them with __bswap*(). What I want > is for machine/endian.h to have functions that provide 16-64 bit endian > conversions in both aligned and unaligned access forms. After these functions > are there, I'd like us to unify use of them and remove driver-private > versions. > > Is this more clear now? Crystal :-) -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 21:36:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6736F37B401 for ; Thu, 27 Feb 2003 21:36:43 -0800 (PST) Received: from pool-151-201-19-185.pitt.east.verizon.net (pool-151-201-19-185.pitt.east.verizon.net [151.201.19.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE1A543F93 for ; Thu, 27 Feb 2003 21:36:42 -0800 (PST) (envelope-from dacut@kanga.org) Received: from kanga.org (unknown [127.0.0.1]) by pool-151-201-19-185.pitt.east.verizon.net (Postfix) with ESMTP id AC18010C3EE for ; Fri, 28 Feb 2003 00:36:40 -0500 (EST) Message-ID: <3E5EF568.4040800@kanga.org> Date: Fri, 28 Feb 2003 00:36:40 -0500 From: David Cuthbert User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <3E5A4264.2010801@millions.ca> <3E5A4BA9.5010700@mitre.org> <200302260841.40693.wes@softweyr.com> In-Reply-To: <200302260841.40693.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wes Peters wrote: > Seriously, limiting your programming for a lifetime to 80 columns > because you couldn't figure out how to make some grotty old dot > matrix printer do 8-point printing a decade ago really isn't all > that smart, is it? No, but I still find 80 columns to be a reasonable limit. The average person can comfortably track up to about 65 characters on a line in prose (or so I've been told from a study that was related to me from a forgotten source...). Given that there's more whitespace in code, it's probably a bit more. The 80 column limit can also encourage developers to keep their functions smaller and factor out common code. (I say can, because I've seen the six-levels-of-indentation-loops sadly all too often...) > I'm still disappointed at programming editors that can't make sense > of normal typefaces and have to be used with monospaced fonts. I've tried it, mainly to see what it looks like. Unfortunately, the delimiters that have a great deal of meaning in many languages (parens, braces, brackets, single quotes, etc.) end up being far too small for my eyes. For some reason, though, I've seen a lot of VHDL code typeset in books in proportional fonts, though usually with boldface highlighting of reserved words. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 21:39:43 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3047D37B401; Thu, 27 Feb 2003 21:39:42 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4108943F85; Thu, 27 Feb 2003 21:39:41 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003022805394000100ja3p7e>; Fri, 28 Feb 2003 05:39:40 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id VAA11446; Thu, 27 Feb 2003 21:39:38 -0800 (PST) Date: Thu, 27 Feb 2003 21:39:37 -0800 (PST) From: Julian Elischer To: re@freebsd.org, hackers@freebsd.org Subject: Re: [Solution] wierdness on 4.7-RELEASE++ X11 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Well there is a small screwup in the XFree86-4.2.1 code that makes a theoretically optional component non -optional in some hardware configurations. In the atimisc driver Xaa is not made 'optional' as it is apparently in other drivers. The solution is to include a module that we don't need, and which is supposed to be optional, but is apparently not. in the config file /etc/X11/XF86Config at: Section "Module" Load "dbe" Load "dri" Load "extmod" Load "glx" Load "pex5" Load "record" Load "xie" Load "xtrap" Load "speedo" Load "type1" Load "xaa" <--------Add this line EndSection It's disconcerting when a -RELEASE system can't get X11 going on SOME hardware, however at least the answer is simple. keywords for poor people searching in the future: ASUS P4PE P4B533 PCI ati Rage atimisc XAADestroyInfoRec unresolved To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 22:13:51 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB4D837B401; Thu, 27 Feb 2003 22:13:49 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6A3943F85; Thu, 27 Feb 2003 22:13:48 -0800 (PST) (envelope-from phk@phk.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id h1S6Djaa014954; Fri, 28 Feb 2003 07:13:46 +0100 (CET) (envelope-from phk@phk.freebsd.dk) To: Nate Lawson Cc: marcel@xcllnt.net, mike@FreeBSD.ORG, current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: 64 bit endian routines From: "Poul-Henning Kamp" In-Reply-To: Your message of "Thu, 27 Feb 2003 20:45:44 PST." <200302280445.h1S4jifs099792@freefall.freebsd.org> Date: Fri, 28 Feb 2003 07:13:45 +0100 Message-ID: <14953.1046412825@critter.freebsd.dk> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <200302280445.h1S4jifs099792@freefall.freebsd.org>, Nate Lawson writ es: >Both scsi and geom implement unaligned access functions that perform byte >ordering. I never intended to supplant them with __bswap*(). What I want >is for machine/endian.h to have functions that provide 16-64 bit endian >conversions in both aligned and unaligned access forms. After these functions >are there, I'd like us to unify use of them and remove driver-private >versions. I'm all for a unification. I only made my private version in geom because I couldn't get any responses when I raised the issue on arch@. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Thu Feb 27 23:16: 8 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 111B337B401 for ; Thu, 27 Feb 2003 23:16:05 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96AEB43FA3 for ; Thu, 27 Feb 2003 23:16:04 -0800 (PST) (envelope-from wes@softweyr.com) Received: from 204.68.178.4 (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id 3CB9842C25; Thu, 27 Feb 2003 23:16:03 -0800 (PST) From: Wes Peters Organization: Softweyr LLC To: Jason Andresen Subject: Re: C coding editor Date: Thu, 27 Feb 2003 23:24:56 -0800 User-Agent: KMail/1.5 Cc: hackers@freebsd.org References: <20030221122103.GA2073@asterix.local> <200302260841.40693.wes@softweyr.com> <3E5D0008.20009@mitre.org> In-Reply-To: <3E5D0008.20009@mitre.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302272324.56873.wes@softweyr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wednesday 26 February 2003 09:57 am, Jason Andresen wrote: > Wes Peters wrote: > > > Seriously, limiting your programming for a lifetime to 80 columns > > because you couldn't figure out how to make some grotty old dot > > matrix printer do 8-point printing a decade ago really isn't all > > that smart, is it? > > Even if I never have to print out on a printer like that, who's to > say nobody else is? You will no doubt turn people away if they open > up your code in their favorite programming editor and all of the > lines wrap a few characters. Worse if they are already at the > maximum size their screen/eyeballs can support. I rejected programming to the least common denominator in equipment. You should try it too, it's incredibly liberating. The legions of programmers under the age of 25 holding up 80x25 "consoles" as some sort of mantra is just weird, and the idea of cramming a video card capable of a million 3d triangles per second into a machine so some dumbass can use it as a vt220 just makes me roll on the floor. Of course you probably didn't live through paying $75,000 for workstations with a tenth that 3D performance. > > I'm still disappointed at programming editors that can't make sense > > of normal typefaces and have to be used with monospaced fonts. > > Same for email, but that's a different argument. > > I find that monospace fonts are quite nice in programming on occasion > when you want to line up output or just nicely format blocks of text. My code almost never lines up output for formats blocks of text. For some odd reason, the program on the other end of the socket doesn't really care what my source code looks like, so I make it readable and understandable by using horizontal and vertical whitespace in ways that separate the code into small, visually recognizable chunks that implement a single idea at a time. > What about when someone opens up your project with a different font > and all of the comments and blocks of code are all scattered across > the screen in some haphazard looking mess? I use what is mostly likely a different font from what you use for coding every day. I do all of my coding on FreeBSD, most of it in Emacs, and use lucidatypewriter (less and less) or luxi mono for most of it. My own code often goes as wide as 120 characters because anything more than that won't fit comfortably on a 1024 pixel wide screen, which is a much better default than 80 columns these days. > Visual distinctiveness > and effective use of whitespace can be invaluble in helping people > understand your code (or understanding other people's code). That's > why people have settled on a format they can reproduce in almost all > instances. Very few compilers accept code with formatting markup > beyond ^Ls and TABs. You can't compile a Word document. No, but your editor really ought to be able to interpret tab stops correctly at like 0.5 in increments. Code editors on the Mac have been doing this for years. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 1:19:19 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7476C37B401; Fri, 28 Feb 2003 01:19:17 -0800 (PST) Received: from murdoch.servitor.co.uk (murdoch.servitor.co.uk [217.151.99.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 847C143FA3; Fri, 28 Feb 2003 01:19:16 -0800 (PST) (envelope-from paul@iconoplex.co.uk) Received: from mmu-firewall.mmu.ac.uk ([149.170.101.200] helo=miter96pq2w1fz) by murdoch.servitor.co.uk with smtp (Exim 3.33 #3) id 18ogfl-000GL3-00; Fri, 28 Feb 2003 09:19:17 +0000 From: "Paul Robinson" To: "David Schultz" Cc: , Subject: RE: Disk scheduling in FreeBSD Date: Fri, 28 Feb 2003 09:19:10 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030227193119.GA37891@HAL9000.homeunix.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Schultz wrote: > The original anticipatory scheduler implementation was done for > FreeBSD 4.3. See > > http://www.cs.rice.edu/~ssiyer/r/antsched/ Yeah, I managed to grab that 45 seconds after sending my original post. I've also contacted Sitaram Iyer directly to see how he feels about this heading into BSD. He seems happy with the idea, and apparently Kirk McKuisck and Poul-Hamming Kamp have mailed him about it in the past. He likes the idea of it going under BSD license, but hasn't had time/energy to get it finished off and incorporated. His precise words were "Help is greatly appreciated :-)", so help is what he'll jolly well get! :-) > I haven't looked carefully at it myself; I've only heard about it > through someone who knows Margo Seltzer. It looks very > interesting, although I worry that it would interfere with the > prefetching and sequential heuristics that the VM system already > does (which are already VERY good[1]). Maybe the authors already > thought of that issue and addressed it. So in short, I don't know > much about it, but I think it's worth looking into. Well, I'm just a hanger-on without a commit bit, so I'll work on making it production ready in the next few weeks, post up a patch and if somebody wants to commit it, great. At the moment it's all based on 4.3-RELEASE and isn't really production ready. It does look worth doing though. > [1] The fact that the improvement Linux got out of the new > approach was so much greater than the improvement FreeBSD 4.3 > got out of it is a testament to that fact, I think. The improvements he got out of FBSD are not to be sniffed at. The paper is talking about upto 60% performance increase in certain conditions. In addition, I think the algorithms used can be tweaked to take into account how FBSD works, and some of the VM stuff can be tweaked to work even better with this. Or at least, that was my intial thought last night when I was reading it on the laptop. I know FBSD already rocks on I/O generally, but I am not adverse to look at producing patches to make it better. :-) It's going to be the week after next before I start working on this proper, but I'll let -hackers know when the patches against -CURRENT are ready. -- Paul Robinson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 1:49:29 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3906337B401 for ; Fri, 28 Feb 2003 01:49:28 -0800 (PST) Received: from murdoch.servitor.co.uk (murdoch.servitor.co.uk [217.151.99.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 854C243FB1 for ; Fri, 28 Feb 2003 01:49:27 -0800 (PST) (envelope-from paul@iconoplex.co.uk) Received: from mmu-firewall.mmu.ac.uk ([149.170.101.200] helo=miter96pq2w1fz) by murdoch.servitor.co.uk with smtp (Exim 3.33 #3) id 18oh8y-000GM5-00; Fri, 28 Feb 2003 09:49:28 +0000 From: "Paul Robinson" To: "Pedro F. Giffuni" , Subject: RE: Disk scheduling in FreeBSD Date: Fri, 28 Feb 2003 09:49:23 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030228035736.81835.qmail@web13404.mail.yahoo.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > FWIW, > > Although the original anticipatory scheduler prototype > was made for FreeBSD, it cannot be used in the base > system, unless reimplemented, due to the license. I > wonder if the Linux guys redid it or simply didn't > notice. > > The option of configuring it for runtime is welcome, I > think. The license is actually BSD. Or at least, the one I saw last night had a remarable resemblance to it. :-) The author of the implementation has also stated in an e-mail to me that he is happy for a BSD-based production-ready derivative to be produced based on his code. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 2:10:11 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E89C37B401; Fri, 28 Feb 2003 02:10:10 -0800 (PST) Received: from www3.mailru.com (www3.mailru.com [80.68.244.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE2FE43F85; Fri, 28 Feb 2003 02:10:08 -0800 (PST) (envelope-from denb@front.ru) Received: by HotBOX.Ru WebMail v2.1 id h1SAA3VD087527 for ; Date: Fri, 28 Feb 2003 13:10:03 +0300 (MSK) Message-Id: <200302281010.h1SAA3VD087527@www3.mailru.com> From: denb To: ipfw@freebsd.org Cc: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 8bit X-Mailer: Free WebMail HotBOX.ru X-Proxy-IP: [212.1.229.5] X-Originating-IP: [172.16.0.3] Subject: Question about divert in ipfw2 on 5.0 release Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I write program simular to natd, witch receives packets at divert port X. Question: On ipfw1 (FreeBSD 4.7) this rules work excellent: ipfw add divert X from any to any Y ipfw add divert X from any Y to any We're diverting all received and sended packets (from\to port Y) to divert port X. But these rules are not working together with ipfw2 (5.0 Release). Each single rule works fine, but when i combine them together only first of them triggers. The order doesn't matter. What am I doing wrong? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 4:57:12 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9376937B401; Fri, 28 Feb 2003 04:57:10 -0800 (PST) Received: from relay.macomnet.ru (relay.macomnet.ru [195.128.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCE8043FBF; Fri, 28 Feb 2003 04:57:08 -0800 (PST) (envelope-from maxim@FreeBSD.org) Received: from news1.macomnet.ru (news1.macomnet.ru [195.128.64.14]) by relay.macomnet.ru (8.11.6/8.11.6) with ESMTP id h1SCv4F673848; Fri, 28 Feb 2003 15:57:04 +0300 (MSK) Date: Fri, 28 Feb 2003 15:57:04 +0300 (MSK) From: Maxim Konovalov To: denb Cc: ipfw@FreeBSD.org, hackers@FreeBSD.org Subject: Re: Question about divert in ipfw2 on 5.0 release In-Reply-To: <200302281010.h1SAA3VD087527@www3.mailru.com> Message-ID: <20030228155353.I91707@news1.macomnet.ru> References: <200302281010.h1SAA3VD087527@www3.mailru.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello, On 13:10+0300, Feb 28, 2003, denb wrote: > I write program simular to natd, witch receives packets at divert port X. > Question: > On ipfw1 (FreeBSD 4.7) this rules work excellent: > > ipfw add divert X from any to any Y > ipfw add divert X from any Y to any > > We're diverting all received and sended packets (from\to port Y) to divert port X. > But these rules are not working together with ipfw2 (5.0 Release). Each single rule > works fine, but when i combine them together only first of them triggers. The order > doesn't matter. > > What am I doing wrong? Can't reproduce: # ipfw add 1 divert 1111 tcp from any to any 1973 00001 divert 1111 tcp from any to any dst-port 1973 # ipfw add 2 divert 1111 tcp from any 1973 to any 00002 divert 1111 tcp from any 1973 to any # nc localhost 1973 # nc -p 1973 localhost 21 # ipfw show 1 2 00001 1 60 divert 1111 tcp from any to any dst-port 1973 00002 1 60 divert 1111 tcp from any 1973 to any What am I doing wrong? :-) -- Maxim Konovalov, maxim@macomnet.ru, maxim@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 5:38:13 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50DCB37B401; Fri, 28 Feb 2003 05:38:12 -0800 (PST) Received: from espresso.bsdmike.org (espresso.bsdmike.org [65.39.129.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9D3643FAF; Fri, 28 Feb 2003 05:38:11 -0800 (PST) (envelope-from mike@espresso.bsdmike.org) Received: by espresso.bsdmike.org (Postfix, from userid 1002) id A83DE9C5F; Fri, 28 Feb 2003 08:25:25 -0500 (EST) Date: Fri, 28 Feb 2003 08:25:25 -0500 From: Mike Barcroft To: Nate Lawson Cc: marcel@xcllnt.net, current@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: 64 bit endian routines Message-ID: <20030228082525.H93968@espresso.bsdmike.org> References: <20030228041849.GB813@athlon.pn.xcllnt.net> <200302280445.h1S4jifs099792@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302280445.h1S4jifs099792@freefall.freebsd.org>; from njl@FreeBSD.org on Thu, Feb 27, 2003 at 08:45:44PM -0800 Organization: The FreeBSD Project Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Nate Lawson writes: > Both scsi and geom implement unaligned access functions that perform byte > ordering. I never intended to supplant them with __bswap*(). What I want > is for machine/endian.h to have functions that provide 16-64 bit endian > conversions in both aligned and unaligned access forms. After these functions > are there, I'd like us to unify use of them and remove driver-private > versions. Sounds good, though would be more appropriate unless they're MD. Best regards, Mike Barcroft To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 5:42:51 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE39737B405 for ; Fri, 28 Feb 2003 05:42:48 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E137343FAF for ; Fri, 28 Feb 2003 05:42:47 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.7/8.12.7) with ESMTP id h1SDgjAA025198 for ; Fri, 28 Feb 2003 13:42:45 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.7/8.12.7/Submit) id h1SDgjBw025197 for freebsd-hackers@freebsd.org; Fri, 28 Feb 2003 13:42:45 GMT Date: Fri, 28 Feb 2003 13:42:45 +0000 From: Matthew Seaman To: freebsd-hackers@freebsd.org Subject: kern/40611 linux compatibility fix Message-ID: <20030228134245.GF23502@happy-idiot-talk.infracaninophi> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-6.4 required=5.0 tests=USER_AGENT_MUTT version=2.50 X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Dear Hackers, Is there any chance that the patch given in kern/40611 could be committed to the 4-STABLE tree? It has the desirable effect of making eg. the linux-sun-jdk14 port usable as a non-root user. This would appear to my untutored eye to be a sub-set of the differences already existing between the HEAD and RELENG_4 versions of src/sys/posix4/p1003_1b.c Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 7:41:52 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 323AF37B40C for ; Fri, 28 Feb 2003 07:41:49 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2000043FBF for ; Fri, 28 Feb 2003 07:41:48 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0037.cvx21-bradley.dialup.earthlink.net ([209.179.192.37] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18omdc-0006ja-00; Fri, 28 Feb 2003 07:41:29 -0800 Message-ID: <3E5F82CF.FCE0CB4C@mindspring.com> Date: Fri, 28 Feb 2003 07:39:59 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Cuthbert Cc: hackers@freebsd.org Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <3E5A4264.2010801@millions.ca> <3E5A4BA9.5010700@mitre.org> <200302260841.40693.wes@softweyr.com> <3E5EF568.4040800@kanga.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a49f8b65d86675531aa719d1617103ab5f387f7b89c61deb1d350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Cuthbert wrote: > Wes Peters wrote: > > Seriously, limiting your programming for a lifetime to 80 columns > > because you couldn't figure out how to make some grotty old dot > > matrix printer do 8-point printing a decade ago really isn't all > > that smart, is it? > > No, but I still find 80 columns to be a reasonable limit. The average > person can comfortably track up to about 65 characters on a line in > prose (or so I've been told from a study that was related to me from a > forgotten source...). Given that there's more whitespace in code, it's > probably a bit more. Average English word length is 5 characters; with a space, that's 6 characters. 65 characters is therefore 11 words. The Bell Labs study which set telephone number length limits at 7 digits found that the average person could keep between 5 and 9 items in memory at a time. I guess "11 words" isn't out of the question, but it's a bit long. 8-) 8-). However... that does mean that something with a shorter average length is going to limit the desirable maximum line length even further, if your purpose is "better human comprehension". > The 80 column limit can also encourage developers to keep their > functions smaller and factor out common code. (I say can, because I've > seen the six-levels-of-indentation-loops sadly all too often...) Seems to have worked well for tcp_input(). 8-) 8-). > > I'm still disappointed at programming editors that can't make sense > > of normal typefaces and have to be used with monospaced fonts. > > I've tried it, mainly to see what it looks like. Unfortunately, the > delimiters that have a great deal of meaning in many languages (parens, > braces, brackets, single quotes, etc.) end up being far too small for my > eyes. > > For some reason, though, I've seen a lot of VHDL code typeset in books > in proportional fonts, though usually with boldface highlighting of > reserved words. Proportional fonts are much slower reading than non-proportional; it is also harder to get the clock marks in the paper tape, punch cards, and printer spacing charts to line up correctly. 8^p. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 7:53:49 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DC4337B401 for ; Fri, 28 Feb 2003 07:53:47 -0800 (PST) Received: from heron.mail.pas.earthlink.net (heron.mail.pas.earthlink.net [207.217.120.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 730DD43FDF for ; Fri, 28 Feb 2003 07:53:46 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0037.cvx21-bradley.dialup.earthlink.net ([209.179.192.37] helo=mindspring.com) by heron.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18ompR-000130-00; Fri, 28 Feb 2003 07:53:42 -0800 Message-ID: <3E5F85B3.268BD21C@mindspring.com> Date: Fri, 28 Feb 2003 07:52:19 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Wes Peters Cc: Jason Andresen , hackers@freebsd.org Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <200302260841.40693.wes@softweyr.com> <3E5D0008.20009@mitre.org> <200302272324.56873.wes@softweyr.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4cabfdaad461652d8e9cbebae485f67c6350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Wes Peters wrote: > On Wednesday 26 February 2003 09:57 am, Jason Andresen wrote: > > Even if I never have to print out on a printer like that, who's to > > say nobody else is? You will no doubt turn people away if they open > > up your code in their favorite programming editor and all of the > > lines wrap a few characters. Worse if they are already at the > > maximum size their screen/eyeballs can support. > > I rejected programming to the least common denominator in equipment. > You should try it too, it's incredibly liberating. The legions of > programmers under the age of 25 holding up 80x25 "consoles" as some > sort of mantra is just weird, and the idea of cramming a video card > capable of a million 3d triangles per second into a machine so some > dumbass can use it as a vt220 just makes me roll on the floor. Of > course you probably didn't live through paying $75,000 for workstations > with a tenth that 3D performance. I blame this on people unsuited to writing software getting CS degrees and/or programming jobs, because they think that that's where the money is at. Luckily, they later find out that salary is a matter of merit, much more than it's a matter of having paper credentials, and if you haven't blown at least one test because you wer in the CS lab until 5AM playing with the new Retrogrpahics cards and high persistance phosphor tubes, and slept through your alarm, well... 8-) 8-). Very soon, these people end up finding gainful employment asking people if they would like fries with that. > I use what is mostly likely a different font from what you use for > coding every day. I do all of my coding on FreeBSD, most of it in > Emacs, and use lucidatypewriter (less and less) or luxi mono for most > of it. My own code often goes as wide as 120 characters because > anything more than that won't fit comfortably on a 1024 pixel wide > screen, which is a much better default than 80 columns these days. I personally attribute the majority of very long lines to deep structure element nesting, which everyone seems happy to do these days, and long_variable_names_which_try_to_be_meaningful_but_fail. Hell, you can't add two of those together, even with a "+=", and not wrap the line at least once... > No, but your editor really ought to be able to interpret tab stops > correctly at like 0.5 in increments. Code editors on the Mac have > been doing this for years. If editors like this were more common, it would be a lot easier to justify use of proportional fonts in coding editors. I don't think anyone really cares how many characters there are after a tabstop, so long as the visual layout is uniform to the left of the code. If you use indentation, this still works, no mater what your font, as long as there are fixed indentations per tab (IMO). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 8: 8:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D3CD37B401 for ; Fri, 28 Feb 2003 08:08:43 -0800 (PST) Received: from angelica.unixdaemons.com (angelica.unixdaemons.com [209.148.64.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7527E43FBD for ; Fri, 28 Feb 2003 08:08:42 -0800 (PST) (envelope-from hiten@angelica.unixdaemons.com) Received: from angelica.unixdaemons.com (localhost.unixdaemons.com [127.0.0.1]) by angelica.unixdaemons.com (8.12.7/8.12.1) with ESMTP id h1SG8ejL011405; Fri, 28 Feb 2003 11:08:40 -0500 (EST) Received: (from hiten@localhost) by angelica.unixdaemons.com (8.12.7/8.12.1/Submit) id h1SG8eO8011404; Fri, 28 Feb 2003 11:08:40 -0500 (EST) (envelope-from hiten) Date: Fri, 28 Feb 2003 11:08:40 -0500 From: Hiten Pandya To: phk@phk.freebsd.dk Cc: hiten@unixdaemons.com, hackers@FreeBSD.ORG Subject: Re: Disk scheduling in FreeBSD Message-ID: <20030228160840.GA10968@unixdaemons.com> References: <1046361700.3e5e3664bcf24@webmail.unixdaemons.com> <8210.1046365949@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8210.1046365949@critter.freebsd.dk> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD i386 X-Public-Key: http://www.pittgoth.com/~hiten/pubkey.asc X-URL: http://www.unixdaemons.com/~hiten X-PGP: http://pgp.mit.edu:11371/pks/lookup?search=Hiten+Pandya&op=index Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG phk@phk.freebsd.dk (Thu, Feb 27, 2003 at 06:12:29PM +0100) wrote: > In message <1046361700.3e5e3664bcf24@webmail.unixdaemons.com>, "" writes: > >Hello gang. > > > >Does anyone know what kind of `Disk Scheduling' algorithm, > >if any, is used in FreeBSD? > > One way elevator sort. Thanks for the interesting reply, phk@ and all. Cheers. -- Hiten Pandya (hiten@unixdaemons.com, hiten@uk.FreeBSD.org) http://www.unixdaemons.com/~hiten/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 8:24:45 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9447437B401 for ; Fri, 28 Feb 2003 08:24:44 -0800 (PST) Received: from web13405.mail.yahoo.com (web13405.mail.yahoo.com [216.136.175.63]) by mx1.FreeBSD.org (Postfix) with SMTP id 2A14A43FAF for ; Fri, 28 Feb 2003 08:24:44 -0800 (PST) (envelope-from giffunip@yahoo.com) Message-ID: <20030228162443.14715.qmail@web13405.mail.yahoo.com> Received: from [200.24.79.95] by web13405.mail.yahoo.com via HTTP; Fri, 28 Feb 2003 17:24:43 CET Date: Fri, 28 Feb 2003 17:24:43 +0100 (CET) From: "=?iso-8859-1?q?Pedro=20F.=20Giffuni?=" Subject: RE: Disk scheduling in FreeBSD To: Paul Robinson , hackers@FreeBSD.ORG In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --- Paul Robinson ha scritto: > > The license is actually BSD. Or at least, the one I > saw last night had a > remarable resemblance to it. :-) I thought the same when I glimpsed over it until I saw the README file :-). Read again, it has 4 statements ala BSD, including the advertisement clause, but the code is NOT redistributable and cannot be used for commercial purposes. The author of the > implementation has also > stated in an e-mail to me that he is happy for a > BSD-based production-ready > derivative to be produced based on his code. > The author can do this no doubt. Many universities are offering a part of the money they make from research to students though, so that would explain the license. cheers, Pedro. ______________________________________________________________________ Yahoo! Cellulari: loghi, suonerie, picture message per il tuo telefonino http://it.yahoo.com/mail_it/foot/?http://it.mobile.yahoo.com/index2002.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 9: 7:52 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8199B37B405 for ; Fri, 28 Feb 2003 09:07:50 -0800 (PST) Received: from pool-151-201-19-185.pitt.east.verizon.net (pool-151-201-19-185.pitt.east.verizon.net [151.201.19.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3D4244015 for ; Fri, 28 Feb 2003 09:07:33 -0800 (PST) (envelope-from dacut@kanga.org) Received: from kanga.org (unknown [127.0.0.1]) by pool-151-201-19-185.pitt.east.verizon.net (Postfix) with ESMTP id 4A3DE10C3EE for ; Fri, 28 Feb 2003 12:07:32 -0500 (EST) Message-ID: <3E5F9753.3090103@kanga.org> Date: Fri, 28 Feb 2003 12:07:31 -0500 From: David Cuthbert User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <3E5A4264.2010801@millions.ca> <3E5A4BA9.5010700@mitre.org> <200302260841.40693.wes@softweyr.com> <3E5EF568.4040800@kanga.org> <3E5F82CF.FCE0CB4C@mindspring.com> In-Reply-To: <3E5F82CF.FCE0CB4C@mindspring.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > Average English word length is 5 characters; with a space, that's > 6 characters. 65 characters is therefore 11 words. The Bell Labs > study which set telephone number length limits at 7 digits found > that the average person could keep between 5 and 9 items in memory > at a time. I guess "11 words" isn't out of the question, but it's > a bit long. 8-) 8-). Different concepts. The Bell Labs study dealt with (long term) memory and the ability to remember a string of unrelated items. This is more analagous to sentence lengths in English or function size in C. The n characters/line issue deals more with the ability to visually track the line. If, for example, when you reach the end of the line you often find yourself accidentally reading the same line again, then the line is too wide. Or something to that effect. I'm not an HCI expert, so... >>The 80 column limit can also encourage developers to keep their >>functions smaller and factor out common code. (I say can, because I've >>seen the six-levels-of-indentation-loops sadly all too often...) > > Seems to have worked well for tcp_input(). 8-) 8-). Heh... for every example where it works/is needed, I can find 10 examples in our code at work where it definitely *isn't* needed. :-) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 9: 8:31 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A63237B401 for ; Fri, 28 Feb 2003 09:08:29 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF73B43F3F for ; Fri, 28 Feb 2003 09:08:28 -0800 (PST) (envelope-from wes@softweyr.com) Received: from salty.rapid.stbernard.com (corp-2.ipinc.com [199.245.188.2]) by smtp-relay.omnis.com (Postfix) with ESMTP id EFB33437CC; Fri, 28 Feb 2003 09:05:50 -0800 (PST) From: Wes Peters Organization: Softweyr.com To: Terry Lambert Subject: Re: C coding editor Date: Fri, 28 Feb 2003 09:05:50 -0800 User-Agent: KMail/1.5 Cc: Jason Andresen , hackers@freebsd.org References: <20030221122103.GA2073@asterix.local> <200302272324.56873.wes@softweyr.com> <3E5F85B3.268BD21C@mindspring.com> In-Reply-To: <3E5F85B3.268BD21C@mindspring.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200302280905.50452.wes@softweyr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Friday 28 February 2003 07:52, Terry Lambert wrote: > > I blame this on people unsuited to writing software getting CS > degrees and/or programming jobs, because they think that that's where > the money is at. Luckily, they later find out that salary is a > matter of merit, much more than it's a matter of having paper > credentials, and if you haven't blown at least one test because you > wer in the CS lab until 5AM playing with the new Retrogrpahics cards > and high persistance phosphor tubes, and slept through your alarm, > well... 8-) 8-). Oh, the good old days. > Very soon, these people end up finding gainful > employment asking people if they would like fries with that. Just like RMS wants them too. But wait, he wants you and me to be doing that too... > I personally attribute the majority of very long lines to deep > structure element nesting, which everyone seems happy to do these > days, and long_variable_names_which_try_to_be_meaningful_but_fail. > Hell, you can't add two of those together, even with a "+=", and > not wrap the line at least once... Ditto. I have a single function, the critical path of the Xylan switch control software, that fits nicely in 80 columns. It has a McCabe's complexity number of 360, the highest I've ever heard of. According to McCabe, anything beyond 25 is not understandable by human beings and it's a logarithmic scale. > > No, but your editor really ought to be able to interpret tab stops > > correctly at like 0.5 in increments. Code editors on the Mac have > > been doing this for years. > > If editors like this were more common, it would be a lot easier to > justify use of proportional fonts in coding editors. I don't think > anyone really cares how many characters there are after a tabstop, > so long as the visual layout is uniform to the left of the code. If > you use indentation, this still works, no mater what your font, as > long as there are fixed indentations per tab (IMO). Precisely. The GNU enscript pretty-print function does a relatively nice job of this, but it ends up mangling the gnu-style continuation line indents. Solution? Don't do continuation lines. At all. Just print your code 1-up in 7 point Palatino and it fits nicely on Letter-size paper. For those of us weird enough to print code, that is. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 9:40:37 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2907337B401; Fri, 28 Feb 2003 09:40:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFA3843F85; Fri, 28 Feb 2003 09:40:35 -0800 (PST) (envelope-from njl@FreeBSD.org) Received: from freefall.freebsd.org (njl@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1SHeZNS069990; Fri, 28 Feb 2003 09:40:35 -0800 (PST) (envelope-from njl@freefall.freebsd.org) Received: (from njl@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1SHeZv8069977; Fri, 28 Feb 2003 09:40:35 -0800 (PST) Date: Fri, 28 Feb 2003 09:40:35 -0800 (PST) From: Nate Lawson Message-Id: <200302281740.h1SHeZv8069977@freefall.freebsd.org> To: marcel@xcllnt.net, njl@FreeBSD.org Subject: Re: 64 bit endian routines Cc: current@FreeBSD.org, hackers@FreeBSD.org, mike@FreeBSD.org In-Reply-To: <20030228051713.GA1062@athlon.pn.xcllnt.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Date: Thu, 27 Feb 2003 21:17:13 -0800 From: Marcel Moolenaar To: Nate Lawson Cc: mike@FreeBSD.org, current@FreeBSD.org, hackers@FreeBSD.org Subject: Re: 64 bit endian routines References: <20030228041849.GB813@athlon.pn.xcllnt.net> <200302280445.h1S4jifs099792@freefall.freebsd.org> On Thu, Feb 27, 2003 at 08:45:44PM -0800, Nate Lawson wrote: > Both scsi and geom implement unaligned access functions that perform byte > ordering. I never intended to supplant them with __bswap*(). What I want > is for machine/endian.h to have functions that provide 16-64 bit endian > conversions in both aligned and unaligned access forms. After these functions > are there, I'd like us to unify use of them and remove driver-private > versions. > > Is this more clear now? Crystal :-) -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net Heh, I hope I didn't sound too forceful. It was just a straightforward question, not a diatribe. :) -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 11:24:38 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E96D537B401; Fri, 28 Feb 2003 11:24:36 -0800 (PST) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BEFA43F75; Fri, 28 Feb 2003 11:24:35 -0800 (PST) (envelope-from marcel@xcllnt.net) Received: from dhcp01.pn.xcllnt.net (dhcp01.pn.xcllnt.net [192.168.4.201]) by ns1.xcllnt.net (8.12.6/8.12.6) with ESMTP id h1SJOY1o072801; Fri, 28 Feb 2003 11:24:34 -0800 (PST) (envelope-from marcel@piii.pn.xcllnt.net) Received: from dhcp01.pn.xcllnt.net (localhost [127.0.0.1]) by dhcp01.pn.xcllnt.net (8.12.7/8.12.7) with ESMTP id h1SJOYcm000668; Fri, 28 Feb 2003 11:24:34 -0800 (PST) (envelope-from marcel@dhcp01.pn.xcllnt.net) Received: (from marcel@localhost) by dhcp01.pn.xcllnt.net (8.12.7/8.12.7/Submit) id h1SJOYGc000667; Fri, 28 Feb 2003 11:24:34 -0800 (PST) Date: Fri, 28 Feb 2003 11:24:34 -0800 From: Marcel Moolenaar To: Nate Lawson Cc: current@FreeBSD.org, hackers@FreeBSD.org, mike@FreeBSD.org Subject: Re: 64 bit endian routines Message-ID: <20030228192434.GA545@dhcp01.pn.xcllnt.net> References: <20030228051713.GA1062@athlon.pn.xcllnt.net> <200302281740.h1SHeZv8069977@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302281740.h1SHeZv8069977@freefall.freebsd.org> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Feb 28, 2003 at 09:40:35AM -0800, Nate Lawson wrote: > > On Thu, Feb 27, 2003 at 08:45:44PM -0800, Nate Lawson wrote: > > Both scsi and geom implement unaligned access functions > that perform byte > ordering. I never intended to supplant > them with __bswap*(). What I want > is for machine/endian.h > to have functions that provide 16-64 bit endian > conversions > in both aligned and unaligned access forms. After these > functions > are there, I'd like us to unify use of them and > remove driver-private > versions. > > Is this more clear > now? > > Crystal :-) > > Heh, I hope I didn't sound too forceful. It was just a straightforward > question, not a diatribe. :) No worries. It's too late to realize that there might be a disconnect if you are using blunt objects to get your point across. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 11:46:50 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8CEEC37B401 for ; Fri, 28 Feb 2003 11:46:48 -0800 (PST) Received: from bricore.com (adsl-64-168-71-68.dsl.snfc21.pacbell.net [64.168.71.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28102441A2 for ; Fri, 28 Feb 2003 11:44:01 -0800 (PST) (envelope-from lchen@briontech.com) Received: from luoqi (luoqi.bricore.com [192.168.1.63]) by bricore.com (8.12.6/8.12.6) with SMTP id h1SJhuFA062427; Fri, 28 Feb 2003 11:43:57 -0800 (PST) (envelope-from lchen@briontech.com) From: "Luoqi Chen" To: "Matthew Seaman" , Subject: RE: kern/40611 linux compatibility fix Date: Fri, 28 Feb 2003 11:47:42 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <20030228134245.GF23502@happy-idiot-talk.infracaninophi> X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Dear Hackers, > > Is there any chance that the patch given in kern/40611 could be > committed to the 4-STABLE tree? It has the desirable effect of making > eg. the linux-sun-jdk14 port usable as a non-root user. This would > appear to my untutored eye to be a sub-set of the differences already > existing between the HEAD and RELENG_4 versions of > src/sys/posix4/p1003_1b.c > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks > Savill Way > PGP: http://www.infracaninophile.co.uk/pgpkey Marlow > Tel: +44 1628 476614 Bucks., SL7 1TH UK > I've a similar but more complete patch. It handles both get and set cases, and also takes into account jailed environment. It should have identical semantics to -current (except for the see_other_uids flag), at least at the time when I created the patch. You may inspect the patch at http://people.freebsd.org/~luoqi/p1003_1b.diff I didn't know there're so many people running linux apps under emulation. I've a couple of other linux related patches for -stable, among them backport of linux ptrace from -current, anyone interested? -lq To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 12:40: 2 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C99BD37B401 for ; Fri, 28 Feb 2003 12:40:00 -0800 (PST) Received: from puffin.mail.pas.earthlink.net (puffin.mail.pas.earthlink.net [207.217.120.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B49C43F75 for ; Fri, 28 Feb 2003 12:40:00 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0471.cvx21-bradley.dialup.earthlink.net ([209.179.193.216] helo=mindspring.com) by puffin.mail.pas.earthlink.net with asmtp (SSLv3:RC4-MD5:128) (Exim 3.33 #1) id 18orIB-0001bw-00; Fri, 28 Feb 2003 12:39:40 -0800 Message-ID: <3E5FC8B7.F93FD4CA@mindspring.com> Date: Fri, 28 Feb 2003 12:38:15 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: David Cuthbert Cc: hackers@freebsd.org Subject: Re: C coding editor References: <20030221122103.GA2073@asterix.local> <3E5A4264.2010801@millions.ca> <3E5A4BA9.5010700@mitre.org> <200302260841.40693.wes@softweyr.com> <3E5EF568.4040800@kanga.org> <3E5F82CF.FCE0CB4C@mindspring.com> <3E5F9753.3090103@kanga.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-ELNK-Trace: b1a02af9316fbb217a47c185c03b154d40683398e744b8a4885788a73fd64ca13b047d6789cf6c3f350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG David Cuthbert wrote: > The n characters/line issue deals more with the ability to visually > track the line. If, for example, when you reach the end of the line you > often find yourself accidentally reading the same line again, then the > line is too wide. > > Or something to that effect. I'm not an HCI expert, so... I considered mentioning exactly the same thing (starting over on the same line, instead of the next one) as an argument, and then quoting Narvii and other HCI experts to back the idea up, but the references I would have had to use were too obscure to be online. 8-) 8-). > >>The 80 column limit can also encourage developers to keep their > >>functions smaller and factor out common code. (I say can, because I've > >>seen the six-levels-of-indentation-loops sadly all too often...) > > > > Seems to have worked well for tcp_input(). 8-) 8-). > > Heh... for every example where it works/is needed, I can find 10 > examples in our code at work where it definitely *isn't* needed. :-) It's very easy to do that with your own code... ;^). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 16:25:51 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0BF337B401 for ; Fri, 28 Feb 2003 16:25:50 -0800 (PST) Received: from sd00156.sendtech.net (sd00156.sendtech.net [198.3.80.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8533643FCB for ; Fri, 28 Feb 2003 16:25:49 -0800 (PST) (envelope-from jay@americanhorizonsbank.com) Received: (from nobody@localhost) by sd00156.sendtech.net (8.11.3/8.11.3) id h210Ju717624 for freebsd-hackers@freebsd.org; Fri, 28 Feb 2003 18:19:56 -0600 X-Authentication-Warning: sd00156.sendtech.net: nobody set sender to jay@americanhorizonsbank.com using -f Received: from 10.161.65.65 ( [10.161.65.65]) as user jay@sendtech.net by webmail.americanhorizonsbank.com with HTTP; Fri, 28 Feb 2003 18:19:56 -0600 Message-ID: <1046477996.3e5ffcac43d5e@webmail.americanhorizonsbank.com> Date: Fri, 28 Feb 2003 18:19:56 -0600 From: Jay Sern Liew To: freebsd-hackers@freebsd.org Subject: kernel programming MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 10.161.65.65 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greetings, Just wanted to ask a qwik question. I'm keen on programming FreeBSD, from simple tools, to kernel modules and the kernel itself. I don't find much help/resource on this for FreeBSD in general, but tonnes for Linux. My question is, will I be wasting my time reading docs like those written for Linux because Linux is a UNIX clone and FreeBSD is a UNIX derivative? If someone can point me to any resource on programming FreeBSD, I'd greatly appreciate that. Thanks in advance! :) ______________________________________________________________________ Jay Sern Liew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 16:47:53 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5896237B401 for ; Fri, 28 Feb 2003 16:47:51 -0800 (PST) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 861FA43FBF for ; Fri, 28 Feb 2003 16:47:50 -0800 (PST) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (IDENT:brdavis@localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.12.3/8.12.3) with ESMTP id h210lgJu023260; Fri, 28 Feb 2003 16:47:42 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.12.3/8.12.3/Submit) id h210lghq023253; Fri, 28 Feb 2003 16:47:42 -0800 Date: Fri, 28 Feb 2003 16:47:42 -0800 From: Brooks Davis To: Luoqi Chen Cc: Matthew Seaman , freebsd-hackers@FreeBSD.ORG Subject: Re: kern/40611 linux compatibility fix Message-ID: <20030228164741.A21344@Odin.AC.HMC.Edu> References: <20030228134245.GF23502@happy-idiot-talk.infracaninophi> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: ; from lchen@briontech.com on Fri, Feb 28, 2003 at 11:47:42AM -0800 X-Virus-Scanned: by amavisd-milter (http://amavis.org/) on odin.ac.hmc.edu Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 28, 2003 at 11:47:42AM -0800, Luoqi Chen wrote: > > Dear Hackers, > >=20 > > Is there any chance that the patch given in kern/40611 could be > > committed to the 4-STABLE tree? It has the desirable effect of making > > eg. the linux-sun-jdk14 port usable as a non-root user. This would > > appear to my untutored eye to be a sub-set of the differences already > > existing between the HEAD and RELENG_4 versions of > > src/sys/posix4/p1003_1b.c > >=20 > I've a similar but more complete patch. It handles both get and set cases, > and also takes into account jailed environment. It should have identical > semantics to -current (except for the see_other_uids flag), at least at > the time when I created the patch. You may inspect the patch at > http://people.freebsd.org/~luoqi/p1003_1b.diff The following is also require for that one to compile. -- Brooks --- posix4.h 27 Dec 1999 10:22:09 -0000 1.6 +++ posix4.h 1 Mar 2003 00:00:42 -0000 @@ -61,8 +61,6 @@ MALLOC_DECLARE(M_P31B); #define p31b_malloc(SIZE) malloc((SIZE), M_P31B, M_WAITOK) #define p31b_free(P) free((P), M_P31B) =20 -int p31b_proc __P((struct proc *, pid_t, struct proc **)); - void p31b_setcfg __P((int, int)); =20 #ifdef _KPOSIX_PRIORITY_SCHEDULING --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+YAMsXY6L6fI4GtQRAkX/AJ0YQqYlqYuTqb20UhADy+egZwKPLACffMSA LzQNkhls87mNXg7byvPnkDE= =8uYV -----END PGP SIGNATURE----- --9amGYk9869ThD9tj-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 16:56:44 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9494E37B401 for ; Fri, 28 Feb 2003 16:56:42 -0800 (PST) Received: from 60hz.org (60hz.org [198.144.199.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id D961E43FB1 for ; Fri, 28 Feb 2003 16:56:41 -0800 (PST) (envelope-from mdl@60hz.org) Received: from urusai.60hz.org (mdl@localhost [127.0.0.1]) by 60hz.org (8.12.6/8.12.6) with ESMTP id h210ueOS053717; Fri, 28 Feb 2003 16:56:40 -0800 (PST) (envelope-from mdl@urusai.60hz.org) Received: (from mdl@localhost) by urusai.60hz.org (8.12.6/8.12.6/Submit) id h210uWP4053716; Fri, 28 Feb 2003 16:56:32 -0800 (PST) Date: Fri, 28 Feb 2003 16:56:32 -0800 From: Mark Laws To: Bruce M Simpson , freebsd-hackers@freebsd.org Subject: Re: /bin/loader panic Message-ID: <20030301005632.GA53698@urusai.60hz.org> References: <20030225075836.GA21972@urusai.60hz.org> <20030225092242.GA25509@spc.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030225092242.GA25509@spc.org> User-Agent: Mutt/1.5.3i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Feb 25, 2003 at 09:22:42AM +0000, Bruce M Simpson wrote: > On Mon, Feb 24, 2003 at 11:58:36PM -0800, Mark Laws wrote: > > During the boot sequence, /boot/loader panics with something about > > "guard1" and reboots. The system in question is a Pentium running > > 4.7-STABLE from February 12, 2003; however, this problem has been > > occurring for at _least_ six months now. I have tried installing new boot > > code into the slice using disklabel as well as updating the MBR. Do any > > of you know what may be causing this and/or how to fix it? Any help > > would be appreciated. > > > > I am unable to provide the text that appears around the time that it > > panics; it reboots too fast. Is there is a way to get it to pause before > > it reboots or wait for a keypress or something? > > If it's managing to execute the loader, then the problem lies there; both > the root slice boot blocks and the MBR are executed before the loader. > > Try booting from fixit media, mount up your root disk, create a file > /boot/loader.conf.local in vi and put: > > console="comconsole" > > Then attach a null modem cable to COM1 on the affected machine, and connect > to this from another machine using your favorite terminal program at > 9600 8-N-1. > > This should allow you to capture the messages which the loader generates, > providing there isn't something wrong at a lower level. > > BMS OK, here's what I get: *** Console: serial port BIOS drive A: is disk4 BIOS drive C: is disk5 BIOS 640kB/130048kB available memory FreeBSD/i386 bootstrap loader, Revision 0.8 (root@himitsu.60hz.org, Thu Feb 13 22:44:59 PST 2003) Can't work out which disk we are booting from. Guessed BIOS device 0xffffffff not found by probes, defaulting to disk0: panic: free: guard1 fail @ 0x375b4 *** -- Mark Laws mdl@60hz.org http://www.60hz.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 19:39: 0 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAC7137B401; Fri, 28 Feb 2003 19:38:44 -0800 (PST) Received: from mel-rto2.wanadoo.fr (smtp-out-2.wanadoo.fr [193.252.19.254]) by mx1.FreeBSD.org (Postfix) with ESMTP id E71C043FA3; Fri, 28 Feb 2003 19:38:42 -0800 (PST) (envelope-from pmiioijhi@list.ru) Received: from mel-rta6.wanadoo.fr (193.252.19.26) by mel-rto2.wanadoo.fr (6.7.015) id 3E0C3370028C6CBC; Sat, 1 Mar 2003 04:23:33 +0100 Received: from billsrv (217.128.212.103) by mel-rta6.wanadoo.fr (6.7.015) id 3E26CE21018F73F6; Sat, 1 Mar 2003 04:23:33 +0100 Message-ID: <3E26CE21018F73F6@mel-rta6.wanadoo.fr> (added by postmaster@wanadoo.fr) Received: from ALagny-101-1-4-107.abo.wanadoo.fr ([217.128.203.107]) by billsrv (602Pro LAN SUITE v. 2002) id 2e5b6895; Sat, 1 Mar 2003 4:26:26 +0100 Reply-To: pmiioijhi@list.ru From: ***Клиника Альтра-Вита*** Subject: Бесплодие женское и мужское Date: Sat, 1 Mar 2003 05:23:24 +0200 MIME-Version: 1.0 Content-Type: text/html; charset="Windows-1251" Content-Transfer-Encoding: 7bit X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2800.1081 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1081 To: undisclosed-recipients: ; Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG

БЕСПЛОДИЕ – ЭТО НЕ ПРИГОВОР

СОВРЕМЕННЫЕ РЕПРОДУКТИВНЫЕ ТЕХНОЛОГИИ МОГУТ ПОМОЧЬ ДАЖЕ В САМЫХ СЛОЖНЫХ СЛУЧАЯХ

 

Суперсовременная специализированная клиника по лечению бесплодия проводит точную диагностику и эффективное лечение всех форм мужского и женского бесплодия.

 

Новейшее американское оборудование, опытные специалисты – репродуктологи, прошедшие стажировку за рубежом, высочайший уровень комфорта и теплое отношение персонала – все это вы найдете в нашей клинике.

 

Мы применяем новейшие методы лечения бесплодия включая ЭКО, ИКСИ, ТЕСА и др.

 

Подробную информацию вы можете получить по телефону : 127-39-36









SFSRRZUWUVCXBKXORSCYHJNZDWKJOZSGJVTMXE To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 22:41:33 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DED0137B405 for ; Fri, 28 Feb 2003 22:41:31 -0800 (PST) Received: from magic.adaptec.com (magic-mail.adaptec.com [208.236.45.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66FAC43FB1 for ; Fri, 28 Feb 2003 22:41:31 -0800 (PST) (envelope-from scott_long@btc.adaptec.com) Received: from redfish.adaptec.com (redfish.adaptec.com [162.62.50.11]) by magic.adaptec.com (8.11.6/8.11.6) with ESMTP id h216efF13652 for ; Fri, 28 Feb 2003 22:40:41 -0800 Received: from btc.btc.adaptec.com (btc.btc.adaptec.com [10.100.0.52]) by redfish.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id WAA13687 for ; Fri, 28 Feb 2003 22:41:30 -0800 (PST) Received: from btc.adaptec.com (hollin [10.100.253.56]) by btc.btc.adaptec.com (8.8.8+Sun/8.8.8) with ESMTP id XAA12389 for ; Fri, 28 Feb 2003 23:41:28 -0700 (MST) Message-ID: <3E605611.5030806@btc.adaptec.com> Date: Fri, 28 Feb 2003 23:41:21 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2.1) Gecko/20030206 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Subject: Call for bi-monthly status reports Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG All, It's time again for bi-monthly status reports! As always, the template can be found at http://www.freebsd.org/news/status/report-sample.xml, and submissions should go to monthly@freebsd.org. Things that would be really cool to get status from are: - KSE and libkse/libpthread - SMP lockdown status - Network stack - drivers - VM - VFS - libh - skulos ;-) - acpi - FreeBSD/powerpc - FreeBSD 4.8 - any other projects/news/conferences Submissions are due by March 10, 2003. Thanks! Scott To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Fri Feb 28 22:42: 7 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2E9D37B413 for ; Fri, 28 Feb 2003 22:42:00 -0800 (PST) Received: from maildex.com (dup-200-65-22-216.prodigy.net.mx [200.65.22.216]) by mx1.FreeBSD.org (Postfix) with SMTP id 5407543FF9 for ; Fri, 28 Feb 2003 22:41:53 -0800 (PST) (envelope-from karen@telecomm.com) From: "Karen Dever R." To: hackers Subject: The best Cigar ever made, you must read this Reply-To: youmustenter@telecomm.com X-Priority: 1 X-MSMail-Priority: High X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Organization: Tabacalera Lavin y Carranza. Mime-Version: 1.0 Content-Type: text/plain; charset="Windows-1251" Date: Sat, 1 Mar 2003 00:41:56 -0600 Message-Id: <20030301064153.5407543FF9@mx1.FreeBSD.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Y O U S M O K E C I G A R S ? THEN, YOU MUST READ THIS NOW: Introducing the best Cigar ever Made in the world, San Teodoro Cigar is the most awarded Cigar around the world, it has been qualified by the Tobbaconists as well as the worldwide press as the best Puro ever made. "San Teodoro is by excelence The best cigar in the world." (New York Post, November 2002) "I have never tried something like this, ...you wont belive the flavor!.." (USA today, January 2003) www.lavinycarranza.com The "artesanal" process for making a San Teodoro Cigar its unique. We aged our products more than five years in the best Spanish cedar wood cabinets, just imagine smoking the finest Cigar on the world in a cold night, in the living room near a fire or simply on the outside watching the sky and feeling its flavor. San Teodoro Cigar is made from the finest elements; its “aсejamiento” and a magnificent clear cover give this Cigar its unique exquisite flavor elements, with touches of wood, caramel and coffee, this will be the last cigar you smoke in your life, we guarantied that every time you smoke it you will be experiencing the greatest moments of your life as a somker. When you open it you can feel its complex flavor coming out from the crystal tube, during the aging process San Teodoro is rested in Spanish cedar cabinets, this near virgin vanilla leaves, coffee grains and other spices that gives them its characteristically and exquisite flavor, all our cigars come individually in a crystal tube in order to maintain its humidity and flavor, also they come wrapped in a fine cedar wood inside the tube to continue with the aging process no matter where you got them. The crop for this year (1997-2003) comes only on Churchill size. Now and for a limited offer, you can buy this exquisite cigar with more than 5 years of aging delivered to your home. Click below to buy your San Teodoroґs at the lower prices ever, delivered directly to your home in less than 3 days. *S&H free inside USA and Canada http://www.lavinycarranza.com You are receiving this email because you opted-in to receive special offers from CIAT Central through one of our marketing partners. If you feel you have received this email in error or do not wish to receive additional special offers, please go to our website and then to (unsubscribe) * Only Available on Continental USA, Canada and Mйxico. Local tobacco taxes may apply . To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Mar 1 0: 9:22 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BD7337B401 for ; Sat, 1 Mar 2003 00:09:20 -0800 (PST) Received: from fep07.tmt.tele.fi (hank-fep7-0.inet.fi [194.251.242.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFB5E43FDD for ; Sat, 1 Mar 2003 00:09:18 -0800 (PST) (envelope-from tuomasm@eml.cc) Received: from odin.skogen.net ([80.223.237.49]) by fep07.tmt.tele.fi (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with ESMTP id <20030301080917.UOBT15824.fep07.tmt.tele.fi@odin.skogen.net>; Sat, 1 Mar 2003 10:09:17 +0200 Subject: Re: kernel programming From: Tuomas Makinen To: Jay Sern Liew Cc: freebsd-hackers@freebsd.org In-Reply-To: <1046477996.3e5ffcac43d5e@webmail.americanhorizonsbank.com> References: <1046477996.3e5ffcac43d5e@webmail.americanhorizonsbank.com> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-+/VBLZ200XoDUv7jt1J9" Organization: Message-Id: <1046506156.1256.2.camel@odin.skogen.net> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 01 Mar 2003 10:09:16 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-+/VBLZ200XoDUv7jt1J9 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2003-03-01 at 02:19, Jay Sern Liew wrote: > Greetings, > Just wanted to ask a qwik question. I'm keen on programming FreeBSD,= from > simple tools, to kernel modules and the kernel itself. I don't find much > help/resource on this for FreeBSD in general, but tonnes for Linux. > My question is, will I be wasting my time reading docs like those wr= itten > for Linux because Linux is a UNIX clone and FreeBSD is a UNIX derivative? >=20 > If someone can point me to any resource on programming FreeBSD, I'd = greatly > appreciate that. Thanks in advance! :) Look to the FreeBSD documentation:=20 http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.= html Tuomas M --=-+/VBLZ200XoDUv7jt1J9 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQA+YGqseJgvzczkpaARAsXNAJ9gq03MdtSEPAs0rW1G9TA9GWZiygCdHl2k 1PijQeCpjKdd7RkKOpQgG7U= =aIIQ -----END PGP SIGNATURE----- --=-+/VBLZ200XoDUv7jt1J9-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Mar 1 15:12:24 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A72C037B401 for ; Sat, 1 Mar 2003 15:12:23 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7422443F85 for ; Sat, 1 Mar 2003 15:12:22 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-b234.otenet.gr [212.205.244.242]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h21NCJks008872; Sun, 2 Mar 2003 01:12:20 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.7/8.12.7) with ESMTP id h21NCIef049828; Sun, 2 Mar 2003 01:12:18 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.7/8.12.7/Submit) id h21NCGg3049827; Sun, 2 Mar 2003 01:12:16 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sun, 2 Mar 2003 01:12:16 +0200 From: Giorgos Keramidas To: Terry Lambert Cc: Wes Peters , hackers@freebsd.org Subject: Re: C coding editor Message-ID: <20030301231216.GD47955@gothmog.gr> References: <20030221122103.GA2073@asterix.local> <200302260841.40693.wes@softweyr.com> <3E5D0008.20009@mitre.org> <200302272324.56873.wes@softweyr.com> <3E5F85B3.268BD21C@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E5F85B3.268BD21C@mindspring.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-02-28 07:52, Terry Lambert wrote: > Wes Peters wrote: > > No, but your editor really ought to be able to interpret tab stops > > correctly at like 0.5 in increments. Code editors on the Mac have > > been doing this for years. > > If editors like this were more common, it would be a lot easier to > justify use of proportional fonts in coding editors. I don't think > anyone really cares how many characters there are after a tabstop, > so long as the visual layout is uniform to the left of the code. If > you use indentation, this still works, no mater what your font, as > long as there are fixed indentations per tab (IMO). True, true. The printouts of code created with literate programming tools like tangle/weave and their many offsprings are very easy to read if indentation has constant width. The font of the program text isn't really important, as long as nesting isn't horribly broken by someone who typed the wrong number of spaces instead of just hitting tab. :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Mar 1 17:34:37 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E574C37B401; Sat, 1 Mar 2003 17:34:36 -0800 (PST) Received: from odysseus.silby.com (d120.as29.nwbl0.wi.voyager.net [169.207.73.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7166943F3F; Sat, 1 Mar 2003 17:34:35 -0800 (PST) (envelope-from silby@silby.com) Received: from odysseus.silby.com (localhost [127.0.0.1]) by odysseus.silby.com (8.12.7/8.12.7) with ESMTP id h221VNFT000439; Sat, 1 Mar 2003 19:31:38 -0600 (CST) (envelope-from silby@silby.com) Received: from localhost (silby@localhost) by odysseus.silby.com (8.12.7/8.12.7/Submit) with ESMTP id h1SIvRUO001292; Fri, 28 Feb 2003 12:57:28 -0600 (CST) X-Authentication-Warning: odysseus.silby.com: silby owned process doing -bs Date: Fri, 28 Feb 2003 12:57:26 -0600 (CST) From: Mike Silbersack To: Paul Robinson Cc: David Schultz , hiten@unixdaemons.com, hackers@FreeBSD.org Subject: RE: Disk scheduling in FreeBSD In-Reply-To: Message-ID: <20030228125613.A711@odysseus.silby.com> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 28 Feb 2003, Paul Robinson wrote: > Well, I'm just a hanger-on without a commit bit, so I'll work on making it > production ready in the next few weeks, post up a patch and if somebody > wants to commit it, great. At the moment it's all based on 4.3-RELEASE and > isn't really production ready. It does look worth doing though. Make an easy to run testbench which should show the performance improvements / disadvantages of a new IO scheduler first; that's really the first step. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message From owner-freebsd-hackers Sat Mar 1 23: 1:58 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61E9337B401 for ; Sat, 1 Mar 2003 23:01:57 -0800 (PST) Received: from smtp-relay.omnis.com (smtp-relay.omnis.com [216.239.128.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93AAA43FA3 for ; Sat, 1 Mar 2003 23:01:56 -0800 (PST) (envelope-from wes@softweyr.com) Received: from 204.68.178.5 (66-75-151-22.san.rr.com [66.75.151.22]) by smtp-relay.omnis.com (Postfix) with ESMTP id BAF254369F; Sat, 1 Mar 2003 22:55:48 -0800 (PST) From: Wes Peters To: Giorgos Keramidas , Terry Lambert Subject: Re: C coding editor Date: Sat, 1 Mar 2003 22:56:02 -0800 User-Agent: KMail/1.5 Cc: hackers@freebsd.org References: <20030221122103.GA2073@asterix.local> <3E5F85B3.268BD21C@mindspring.com> <20030301231216.GD47955@gothmog.gr> In-Reply-To: <20030301231216.GD47955@gothmog.gr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303012256.02533.wes@softweyr.com> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Saturday 01 March 2003 03:12 pm, Giorgos Keramidas wrote: > On 2003-02-28 07:52, Terry Lambert wrote: > > Wes Peters wrote: > > > No, but your editor really ought to be able to interpret tab > > > stops correctly at like 0.5 in increments. Code editors on the > > > Mac have been doing this for years. > > > > If editors like this were more common, it would be a lot easier to > > justify use of proportional fonts in coding editors. I don't think > > anyone really cares how many characters there are after a tabstop, > > so long as the visual layout is uniform to the left of the code. > > If you use indentation, this still works, no mater what your font, > > as long as there are fixed indentations per tab (IMO). > > True, true. The printouts of code created with literate programming > tools like tangle/weave and their many offsprings are very easy to > read if indentation has constant width. > > The font of the program text isn't really important, as long as > nesting isn't horribly broken by someone who typed the wrong number > of spaces instead of just hitting tab. But the font of the program text *is* important if you are considering readability. We use variable-width fonts for books and printed matter because they are easier to read than monospaced fonts. -- "Where am I, and what am I doing in this handbasket?" Wes Peters wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message