From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 18 02:27:11 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E4E916A47B for ; Sun, 18 Jun 2006 02:27:11 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail21.syd.optusnet.com.au (mail21.syd.optusnet.com.au [211.29.133.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id B920243D58 for ; Sun, 18 Jun 2006 02:27:01 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail21.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k5I2Qx27030945 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 18 Jun 2006 12:27:00 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k5I2QxAN008521 for ; Sun, 18 Jun 2006 12:26:59 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k5I2QxdJ008520 for freebsd-hackers@freebsd.org; Sun, 18 Jun 2006 12:26:59 +1000 (EST) (envelope-from peter) Date: Sun, 18 Jun 2006 12:26:59 +1000 From: Peter Jeremy To: freebsd-hackers@freebsd.org Message-ID: <20060618022659.GC715@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="s9fJI615cBHmzTOP" Content-Disposition: inline X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Subject: Basic Micro "Atom" CPU Interface X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 02:27:11 -0000 --s9fJI615cBHmzTOP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I have a robotic kit (microbric Viper [1]) that is based on the Basic Micro "Atom" [2] (a partially pre-programmed PIC 16F876) and am wondering if anyone has tried to talk to this chip from FreeBSD. Basic Micro provide an IDE but it only appears to support Winbloze. [1] http://www.microbric.com/ [2] http://www.basicmicro.com/ --=20 Peter Jeremy --s9fJI615cBHmzTOP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFElLny/opHv/APuIcRAr9UAKC5X22FU7EJjUk45dbKwX/SpubgjwCeM0SL druqEfi+pARp3vxOZEJaKTg= =PHlP -----END PGP SIGNATURE----- --s9fJI615cBHmzTOP-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 18 07:56:06 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E506716A47A for ; Sun, 18 Jun 2006 07:56:06 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B94543D49 for ; Sun, 18 Jun 2006 07:56:05 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k5I7txE4043588 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 18 Jun 2006 09:55:59 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k5I7tx75043587 for hackers@freebsd.org; Sun, 18 Jun 2006 09:55:59 +0200 (CEST) Date: Sun, 18 Jun 2006 09:55:59 +0200 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20060618075559.GA43547@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: Subject: TLS (thread local storage) - where/how X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 07:56:07 -0000 hi I am working on SoC project extending the linuxolator and it now seems that I have to implement TLS. So I'd love to collect as many information as possible. pls can you tell me about any documents, articles etc. about the topic? or point me to a person "with a clue" ? thnx roman ---------------------- www.liberalnistrana.cz From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 18 08:58:53 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0EBB16A481 for ; Sun, 18 Jun 2006 08:58:53 +0000 (UTC) (envelope-from shadow@psoft.net) Received: from mail.sevcity.net (ns.sevcity.net [193.47.166.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7A0643D46 for ; Sun, 18 Jun 2006 08:58:52 +0000 (GMT) (envelope-from shadow@psoft.net) Received: from mail.sevcity.net (service.sevcity [127.0.0.1]) by mail.sevcity.net (Postfix) with ESMTP id 2E78A170004; Sun, 18 Jun 2006 12:00:50 +0300 (EEST) Received: from berloga.shadowland (umka.sevcity.net [193.47.166.138]) by mail.sevcity.net (Postfix) with ESMTP id B3C74170009; Sun, 18 Jun 2006 12:00:49 +0300 (EEST) Received: from berloga.shadowland (berloga.shadowland [127.0.0.1]) by berloga.shadowland (8.12.11.20060308/8.12.11) with ESMTP id k5I8wp7V005010; Sun, 18 Jun 2006 11:58:51 +0300 Received: (from root@localhost) by berloga.shadowland (8.12.11.20060308/8.12.11/Submit) id k5I8woSa005008; Sun, 18 Jun 2006 11:58:50 +0300 From: Alex Lyashkov To: Divacky Roman In-Reply-To: <20060618075559.GA43547@stud.fit.vutbr.cz> References: <20060618075559.GA43547@stud.fit.vutbr.cz> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: Positive Software Message-Id: <1150621130.3306.3.camel@berloga.shadowland> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-17) Date: Sun, 18 Jun 2006 11:58:50 +0300 X-Virus-Scanned: ClamAV using ClamSMTP Cc: hackers@freebsd.org Subject: Re: TLS (thread local storage) - where/how X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 08:58:53 -0000 =F7 =F7=D3=CB, 18.06.2006, =D7 10:55, Divacky Roman =D0=C9=DB=C5=D4: > hi >=20 > I am working on SoC project extending the linuxolator and it now seems th= at I > have to implement TLS. So I'd love to collect as many information as poss= ible. >=20 > pls can you tell me about any documents, articles etc. about the topic? o= r > point me to a person "with a clue" ? >=20 > thnx >=20 > roman >=20 It`s already implement at FreeBSD after 5.2 (how i remember). Referenced commits ---- dfr 2004-08-15 16:18:03 UTC Log: Add support for TLS in statically linked programs. ---- dfr 2004-08-03 08:51:00 UTC Log: Add support for Thread Local Storage. ---- --=20 FreeVPS Developers Team http://www.freevps.com Positive Software http://www.psoft.net From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 18 09:12:39 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5451B16A474; Sun, 18 Jun 2006 09:12:39 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from webmail2.mail.yandex.net (webmail2.mail.yandex.net [213.180.200.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id A6D4E43D45; Sun, 18 Jun 2006 09:12:38 +0000 (GMT) (envelope-from bu7cher@yandex.ru) Received: from YAMAIL (webmail2) by mail.yandex.ru id S1085446AbWFRJM0 for (+ 2 others); Sun, 18 Jun 2006 13:12:26 +0400 Received: from [82.211.152.12] ([82.211.152.12]) by mail.yandex.ru with HTTP; Sun, 18 Jun 2006 13:12:22 +0400 From: "Andrey V. Elsukov" To: Ed Maste , Brooks Davis , freebsd-hackers@freebsd.org MIME-Version: 1.0 Message-Id: <40581150621942@webmail2.yandex.ru> Date: Sun, 18 Jun 2006 13:12:22 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: Subject: [RFC][patch] dhclient Classless Static Routes support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 09:12:39 -0000 Hi! I have implemented RFC3442 support for the FreeBSD dhclient. Patch can be fetched from http://butcher.heavennet.ru/patches/other/dhclient/ I have a small bit of testing with isc-dhcpd and dnsmasqd. And i think it works fine. I have tested with: 1) Normal classless routes: 10.0.0.0/21 router, 10.1.0.0/19 router 2) default route 3) link routes: 192.168.0.0/24 0.0.0.0, 192.168.1.0/24 0.0.0.0 I don't know what i should make with incorrect data received from DHCP server.. -- WBR, Andrey V. Elsukov From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 18 14:47:54 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8074316A474 for ; Sun, 18 Jun 2006 14:47:54 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8707743D5E for ; Sun, 18 Jun 2006 14:47:53 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [192.168.3.4]) ([10.251.60.56]) by a50.ironport.com with ESMTP; 18 Jun 2006 07:47:52 -0700 Message-ID: <44956796.9040105@elischer.org> Date: Sun, 18 Jun 2006 22:47:50 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alex Lyashkov References: <20060618075559.GA43547@stud.fit.vutbr.cz> <1150621130.3306.3.camel@berloga.shadowland> In-Reply-To: <1150621130.3306.3.camel@berloga.shadowland> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: Divacky Roman , hackers@freebsd.org Subject: Re: TLS (thread local storage) - where/how X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:47:54 -0000 Alex Lyashkov wrote: >В Вск, 18.06.2006, в 10:55, Divacky Roman пишет: > > >>hi >> >>I am working on SoC project extending the linuxolator and it now seems that I >>have to implement TLS. So I'd love to collect as many information as possible. >> >>pls can you tell me about any documents, articles etc. about the topic? or >>point me to a person "with a cl >> the canonical document is: http://people.redhat.com/drepper/*tls*.pdf >>ue" ? >> >>thnx >> >>roman >> >> >> >It`s already implement at FreeBSD after 5.2 (how i remember). >Referenced commits >---- > dfr 2004-08-15 16:18:03 UTC > Log: > Add support for TLS in statically linked programs. >---- >dfr 2004-08-03 08:51:00 UTC > Log: > Add support for Thread Local Storage. >---- > > > > From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 18 14:49:51 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5CE4416A474 for ; Sun, 18 Jun 2006 14:49:51 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9293643D49 for ; Sun, 18 Jun 2006 14:49:49 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k5IEnh4U061699 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 18 Jun 2006 16:49:43 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k5IEnh9L061698; Sun, 18 Jun 2006 16:49:43 +0200 (CEST) Date: Sun, 18 Jun 2006 16:49:43 +0200 From: Divacky Roman To: Alex Lyashkov Message-ID: <20060618144943.GA61643@stud.fit.vutbr.cz> References: <20060618075559.GA43547@stud.fit.vutbr.cz> <1150621130.3306.3.camel@berloga.shadowland> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1150621130.3306.3.camel@berloga.shadowland> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: hackers@freebsd.org Subject: Re: TLS (thread local storage) - where/how X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:49:51 -0000 On Sun, Jun 18, 2006 at 11:58:50AM +0300, Alex Lyashkov wrote: > ? ???, 18.06.2006, ? 10:55, Divacky Roman ?????: > > hi > > > > I am working on SoC project extending the linuxolator and it now seems that I > > have to implement TLS. So I'd love to collect as many information as possible. > > > > pls can you tell me about any documents, articles etc. about the topic? or > > point me to a person "with a clue" ? > > > > thnx > > > > roman > > > It`s already implement at FreeBSD after 5.2 (how i remember). I dont argue it has been implemented... I just want info about HOW it was done :) From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 18 14:50:41 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B843116A474 for ; Sun, 18 Jun 2006 14:50:41 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59A2843D48 for ; Sun, 18 Jun 2006 14:50:41 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [192.168.3.4]) ([10.251.60.56]) by a50.ironport.com with ESMTP; 18 Jun 2006 07:50:39 -0700 Message-ID: <4495683E.2020604@elischer.org> Date: Sun, 18 Jun 2006 22:50:38 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: <20060618075559.GA43547@stud.fit.vutbr.cz> <1150621130.3306.3.camel@berloga.shadowland> <44956796.9040105@elischer.org> In-Reply-To: <44956796.9040105@elischer.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: hackers@freebsd.org, Divacky Roman , Alex Lyashkov Subject: Re: TLS (thread local storage) - where/how X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jun 2006 14:50:41 -0000 Julian Elischer wrote: > Alex Lyashkov wrote: > >> В Вск, 18.06.2006, в 10:55, Divacky Roman пишет: >> >> >>> hi >>> >>> I am working on SoC project extending the linuxolator and it now >>> seems that I >>> have to implement TLS. So I'd love to collect as many information as >>> possible. >>> >>> pls can you tell me about any documents, articles etc. about the >>> topic? or >>> point me to a person "with a cl >>> > > the canonical document is: > http://people.redhat.com/drepper/*tls*.pdf stupid cut-n-paste tls.pdf not *tls*.pdf > > >>> ue" ? >>> >>> thnx >>> >>> roman >>> >>> >> >> It`s already implement at FreeBSD after 5.2 (how i remember). >> Referenced commits >> ---- >> dfr 2004-08-15 16:18:03 UTC >> Log: >> Add support for TLS in statically linked programs. >> ---- >> dfr 2004-08-03 08:51:00 UTC >> Log: >> Add support for Thread Local Storage. >> ---- >> >> >> >> > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 19 10:33:52 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 603A916A474 for ; Mon, 19 Jun 2006 10:33:52 +0000 (UTC) (envelope-from info@gabitasoft.com) Received: from serv1.gabita.com (serv1.gabita.com [216.127.70.122]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05C0143D48 for ; Mon, 19 Jun 2006 10:33:51 +0000 (GMT) (envelope-from info@gabitasoft.com) Received: from dd5769ece.access.telenet.be ([213.118.158.206] helo=[192.168.1.100]) by serv1.gabita.com with esmtpa (Exim 4.52) id 1FsH41-0003pl-Uf for freebsd-hackers@freebsd.org; Mon, 19 Jun 2006 05:33:02 -0500 Message-ID: <44967D9D.3040301@gabitasoft.com> Date: Mon, 19 Jun 2006 12:34:05 +0200 From: info User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20060618120037.6B63916A518@hub.freebsd.org> In-Reply-To: <20060618120037.6B63916A518@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - serv1.gabita.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gabitasoft.com X-Source: X-Source-Args: X-Source-Dir: X-Mailman-Approved-At: Mon, 19 Jun 2006 11:49:41 +0000 Subject: Re: freebsd-hackers Digest, Vol 169, Issue 7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Jun 2006 10:33:52 -0000 freebsd-hackers-request@freebsd.org schreef: > Send freebsd-hackers mailing list submissions to > freebsd-hackers@freebsd.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > or, via email, send a message with subject or body 'help' to > freebsd-hackers-request@freebsd.org > > You can reach the person managing the list at > freebsd-hackers-owner@freebsd.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of freebsd-hackers digest..." > > > Today's Topics: > > 1. Port of wpi driver ? (info) > 2. Re: Port of wpi driver ? (Rink Springer) > 3. Basic Micro "Atom" CPU Interface (Peter Jeremy) > 4. TLS (thread local storage) - where/how (Divacky Roman) > 5. Re: TLS (thread local storage) - where/how (Alex Lyashkov) > 6. [RFC][patch] dhclient Classless Static Routes support > (Andrey V. Elsukov) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Sat, 17 Jun 2006 19:04:28 +0200 > From: info > Subject: Port of wpi driver ? > To: freebsd-hackers@freebsd.org > Message-ID: <4494361C.3070501@gabitasoft.com> > Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > Hi > > Does anybody know whether OpenBSD's-Current wpi driver (Intel 3945 abg) > will be ported to Freebsd-Current ? > > Thanks > Roel > > > ------------------------------ > > Message: 2 > Date: Sat, 17 Jun 2006 22:13:53 +0200 > From: Rink Springer > Subject: Re: Port of wpi driver ? > To: info > Cc: freebsd-hackers@freebsd.org > Message-ID: <20060617201353.GB72064@rink.nu> > Content-Type: text/plain; charset="us-ascii" > > Hi, > > >> Does anybody know whether OpenBSD's-Current wpi driver (Intel 3945 abg) >> will be ported to Freebsd-Current ? >> > > I heard OpenBSD's wpi driver is very experimental; have you tested it > yet? > I have tested it, it still hangs on my laptop but guess it wil get better in a few weeks. I don't know how much work it is to covert the driver to freebsd each time though. I can't imagine it is that work, I've seen the source code and it doesn't seem that much work. I can be wrong though, so anybody informed about the conversion of this driver, or any of the other blob-free drivers of OpenBSD ? Thanks Roel From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 00:39:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F4FE16A482 for ; Tue, 20 Jun 2006 00:39:45 +0000 (UTC) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5897143D46 for ; Tue, 20 Jun 2006 00:39:45 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 4D18816D2A; Mon, 19 Jun 2006 20:39:44 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 825294AC2B; Mon, 19 Jun 2006 20:38:45 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17559.17301.492213.821800@canoe.dclg.ca> Date: Mon, 19 Jun 2006 20:38:45 -0400 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid Subject: openospfd doesn't "See" gre/gif X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 00:39:45 -0000 OpenOSPFd doesn't appear to see gre/gif interfaces ... which limits it's usefulness. I've hacked on the code a bit --- experiemented with taking out the restriction that loopback routes aren't advertised (becuase I often put the aliases for a host on the loopback interface). This didn't fix it --- it appears to ignore the loopback interface as well... but adding a route pointing to the loopback interface can work with a small patch. Has anyone hacked on or thought about this? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 04:26:14 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05F7C16A47A; Tue, 20 Jun 2006 04:26:14 +0000 (UTC) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA51743D4C; Tue, 20 Jun 2006 04:26:13 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id k5K4QCc1000648; Mon, 19 Jun 2006 21:26:12 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id k5K4QC5R000647; Mon, 19 Jun 2006 21:26:12 -0700 Date: Mon, 19 Jun 2006 21:26:12 -0700 From: Brooks Davis To: "Andrey V. Elsukov" Message-ID: <20060620042612.GB32100@odin.ac.hmc.edu> References: <40581150621942@webmail2.yandex.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FkmkrVfFsRoUs1wW" Content-Disposition: inline In-Reply-To: <40581150621942@webmail2.yandex.ru> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new Cc: freebsd-hackers@FreeBSD.org, Brooks Davis , Ed Maste Subject: Re: [RFC][patch] dhclient Classless Static Routes support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 04:26:14 -0000 --FkmkrVfFsRoUs1wW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 18, 2006 at 01:12:22PM +0400, Andrey V. Elsukov wrote: > Hi! >=20 > I have implemented RFC3442 support for the FreeBSD dhclient. > Patch can be fetched from=20 > http://butcher.heavennet.ru/patches/other/dhclient/ >=20 > I have a small bit of testing with isc-dhcpd and dnsmasqd.=20 > And i think it works fine. I have tested with: > 1) Normal classless routes: 10.0.0.0/21 router, 10.1.0.0/19 router > 2) default route > 3) link routes: 192.168.0.0/24 0.0.0.0, 192.168.1.0/24 0.0.0.0 >=20 > I don't know what i should make with incorrect data received from DHCP se= rver.. At a glance I don't see any major issues. I won't have time to do anything more with it for at least a couple weeks. I'd suggest filing a PR with it to ensure it isn't lost. Ed, if you're interested in it, feel free to commit. The one thing I might worry about is that implementing classless static routes means you have to ignore the default route and I'm a little worried there might broken servers out there that spew bogus ones. There's probably not way to find out other than shipping a release though. :( -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --FkmkrVfFsRoUs1wW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFEl3jjXY6L6fI4GtQRAi91AKDhmmiM9VdSDJHC+civLq7Jmxj3SQCbBKFr OMwjJ9sB069j/qFsfJD8nlM= =2jYN -----END PGP SIGNATURE----- --FkmkrVfFsRoUs1wW-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 02:58:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5560816A479 for ; Tue, 20 Jun 2006 02:58:42 +0000 (UTC) (envelope-from mnorwick@centurytel.net) Received: from msa1-mx.centurytel.net (msa1-mx.centurytel.net [209.142.136.125]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECFAD43D68 for ; Tue, 20 Jun 2006 02:58:40 +0000 (GMT) (envelope-from mnorwick@centurytel.net) Received: from [192.168.1.15] (207-118-221-229.dyn.centurytel.net [207.118.221.229]) by msa1-mx.centurytel.net (8.13.6/8.13.6) with ESMTP id k5K2wctS031536 for ; Mon, 19 Jun 2006 21:58:38 -0500 Message-ID: <4497647A.8080909@centurytel.net> Date: Mon, 19 Jun 2006 21:59:06 -0500 From: "Michael D. Norwick" User-Agent: Debian Thunderbird 1.0.2 (X11/20060423) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 20 Jun 2006 11:47:29 +0000 Subject: MIT kerberos and ssh X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 02:58:42 -0000 I didn't get any replies on freebsd-questions for this one maybe someone here could help? ------------------------------------------------------------------- I have been trying to get a working MIT Kerberos KDC on a server running 6.1-Release. I have been able to keep the heimdal version from being built during several past 'make worlds' and I have compiled and installed MIT krb5 from /usr/ports (current per portmanager). I have been getting an error tryiing to start sshd (also built from /usr/ports), it complains about not finding 'libkrb5.so.8' then exits. I have been able to start the KDC but have not gotten much further as I would like to fix the ssh problem first. My questions are as follows: 1. Is libkrb5.so.8 a heimdal library? 2. Which source directories are the correct ones to use, /usr/src/kerberos - /usr/src/secure, or /usr/ports/security/krb5 - /usr/ports/security/openssh? 3. Why are there two different directories i.e; /usr/src and /usr/ports for the same source? 4. How do I get 'kerberized' ssh and give configure directives to the krb5 make to include GSSAPI support? 5. Is there a certain build order for MIT kerberos and openssh? I have read both the Handbook and the 'Complete' book on this subject and have not been able to glean enough information to get me going, Google didn't help much either. I have 6 Debian clients, 2 WinXP clients, and 1 Debian KDC slave and wanted this machine to be an MIT-KDC master and yet avoid the apparent 'kadmin' server incompatibility between Heimdal and MIT Kerberos (which all the Debian clients run). I am also very comfortable with the MIT version. Any words of wisdom would be greatly appreciated. Michael From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 12:10:01 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8422016A47E; Tue, 20 Jun 2006 12:10:01 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 139F043D6D; Tue, 20 Jun 2006 12:09:54 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k5KC9mdQ008494 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 20 Jun 2006 14:09:49 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k5KC9mEK008493; Tue, 20 Jun 2006 14:09:48 +0200 (CEST) Date: Tue, 20 Jun 2006 14:09:48 +0200 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20060620120948.GA8288@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: threads@freebsd.org Subject: TLS - implementing linux one in fbsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 12:10:01 -0000 Hi I am student working on SoC project - extending linuxolator, now I am working on implementing linux TLS in FreeBSD. Here is what I think/know and I like you to comment on this, thnx. Roman ------------------------------------------------- Linux and FreeBSD TLS implementation - comparison Both systems use per-thread setting of where is the tls area stored. This setting is loaded into active threads GDT and can be accessed via %gs register. This GDT setup is done on every context switch. Linux uses strict 1:1 threading so every thread is in fact process, so thread creation is done using plain clone()/fork(). FreeBSD uses M:N (including 1:1) threading. Threads are created via pthread_create() call to threading library. In kernel there's thr_new() syscall or thread_create() syscall. I didnt find the connection between threading library and kernel but I assume its using one of the syscalls For setting up the GDT for the thread Linux uses syscall set_thread_area() (TODO - how exactly? its unclear what it does). I dont know how FreeBSD does it but I think it might be done via params to the syscalls (TODO - how is it done?) Remaining questions: clone() - 2.6.x glibc fork() implementation uses clone() syscall. is it supposed to create a thread or just a process? I think its process but why is the binary (ls, date and probably some other) linked to pthread library? is it just Linux "strangeness"? I dont see a reason for ls to be threaded... does anyone see? set/get tid - does it relate to TLS at all? I dont think so but you never know. The tid thing is unclear to me. The clone() syscall is passed CLONE_CHILD_SETTID & CLONE_CHILD_CLEARTID which should be mutually exclusive. I dont believe much its a mistake.. but the code is clear: p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : NULL; p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? child_tidptr: NULL; kostik belousov pointed out that this is used for futexes, so not interesting for this Possible mapping from Linux to FreeBSD: To me it seems that the the set_thread_area() syscall is used in the process of thread creation to set where the tls is stored. In FreeBSD we use cpu_set_user_tls() for this. So it might be enough to just wrap call to cpu_set_user_tls() into the syscall. From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 12:36:19 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D67516A479; Tue, 20 Jun 2006 12:36:19 +0000 (UTC) (envelope-from emaste@phaedrus.sandvine.ca) Received: from gw.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94D4343D4C; Tue, 20 Jun 2006 12:36:16 +0000 (GMT) (envelope-from emaste@phaedrus.sandvine.ca) Received: from mailserver.sandvine.com ([192.168.1.10]) by gw.sandvine.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 20 Jun 2006 08:36:11 -0400 Received: from labgw2.phaedrus.sandvine.com ([192.168.3.11]) by mailserver.sandvine.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 20 Jun 2006 08:36:09 -0400 Received: by labgw2.phaedrus.sandvine.com (Postfix, from userid 12627) id C0B6F1164E; Tue, 20 Jun 2006 08:36:08 -0400 (EDT) Date: Tue, 20 Jun 2006 08:36:08 -0400 From: Ed Maste To: Brooks Davis Message-ID: <20060620123608.GA93470@sandvine.com> References: <40581150621942@webmail2.yandex.ru> <20060620042612.GB32100@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060620042612.GB32100@odin.ac.hmc.edu> User-Agent: Mutt/1.4.2.1i X-OriginalArrivalTime: 20 Jun 2006 12:36:09.0177 (UTC) FILETIME=[1B45C490:01C69466] Cc: freebsd-hackers@FreeBSD.org, "Andrey V. Elsukov" , Ed Maste , Brooks Davis Subject: Re: [RFC][patch] dhclient Classless Static Routes support X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 12:36:19 -0000 On Mon, Jun 19, 2006 at 09:26:12PM -0700, Brooks Davis wrote: > On Sun, Jun 18, 2006 at 01:12:22PM +0400, Andrey V. Elsukov wrote: > > Hi! > > > > I have implemented RFC3442 support for the FreeBSD dhclient. > > Patch can be fetched from > > http://butcher.heavennet.ru/patches/other/dhclient/ > > > > I have a small bit of testing with isc-dhcpd and dnsmasqd. > > And i think it works fine. I have tested with: > > 1) Normal classless routes: 10.0.0.0/21 router, 10.1.0.0/19 router > > 2) default route > > 3) link routes: 192.168.0.0/24 0.0.0.0, 192.168.1.0/24 0.0.0.0 > > > > I don't know what i should make with incorrect data received from DHCP server.. > > At a glance I don't see any major issues. I won't have time to do > anything more with it for at least a couple weeks. I'd suggest filing > a PR with it to ensure it isn't lost. Ed, if you're interested in it, > feel free to commit. Hi Brooks. I'll be testing this out shortly and plan to commit it soon. One question I had for you was how we want to handle dhclient with respect to OpenBSD -- I seem to recall that we've decided to own our dhclient after the import. So it would be advantageous if OpenBSD decides to take the patch, but not necessary. -ed From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 16:21:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFFB516A474 for ; Tue, 20 Jun 2006 16:21:35 +0000 (UTC) (envelope-from tillman@seekingfire.com) Received: from mail.seekingfire.com (caliban.seekingfire.com [24.89.83.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BEC143D48 for ; Tue, 20 Jun 2006 16:21:34 +0000 (GMT) (envelope-from tillman@seekingfire.com) Received: by mail.seekingfire.com (Postfix, from userid 500) id 2D700104; Tue, 20 Jun 2006 10:21:34 -0600 (CST) Date: Tue, 20 Jun 2006 10:21:33 -0600 From: Tillman Hodgson To: freebsd-hackers@freebsd.org Message-ID: <20060620162132.GW96797@seekingfire.com> References: <4497647A.8080909@centurytel.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4497647A.8080909@centurytel.net> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-GPG-Key-ID: 828AFC7B X-GPG-Fingerprint: 5584 14BA C9EB 1524 0E68 F543 0F0A 7FBC 828A FC7B X-GPG-Key: http://www.seekingfire.com/personal/gpg_key.asc X-Urban-Legend: There is lots of hidden information in headers X-Tillman-rules: yes he does User-Agent: Mutt/1.5.11 Cc: keramida@ceid.upatras.gr Subject: Re: MIT kerberos and ssh X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 16:21:36 -0000 On Mon, Jun 19, 2006 at 09:59:06PM -0500, Michael D. Norwick wrote: > I didn't get any replies on freebsd-questions for this one maybe > someone here could help? (Your line-wrap appears to be broken, I've reformatted it below) I recommend checkign with the kerberos at mit dot edu list, this topic comes up often there. > ------------------------------------------------------------------- > I have been trying to get a working MIT Kerberos KDC on a server > running 6.1-Release. I have been able to keep the heimdal version > from being built during several past 'make worlds' and I have compiled > and installed MIT krb5 from /usr/ports (current per portmanager). I leave the standard Heimdal stuff in place. In /etc/make.conf, I define KRB5_HOME=/usr/local/krb5, and MIT Kerberos installs into that location. I then use $PATH. This results in me being able to use Heimdal and MIT clients more or less interchangeably. > I have been getting an error tryiing to start sshd (also built from > /usr/ports), it complains about not finding 'libkrb5.so.8' then exits. > I have been able to start the KDC but have not gotten much further as > I would like to fix the ssh problem first. Do the standard Kerberos clients work? Can you kinit and telnet -x? Does remote kadmin work? > 3. Why are there two different directories i.e; /usr/src and > /usr/ports for the same source? The Heimdal included in base isn't complete, and may lag a dot release or behind the "official" version. > 4. How do I get 'kerberized' ssh and give configure directives to the > krb5 make to include GSSAPI support? I don't use ssh with Kerberos (telent -x and rcp -x work for me) so unfortunately I can't help you much with this. I know that OpenSSH 3.7.x and 3.8+ use incompatible methods and won't work together, so keep the OpenSSH version the same on both ends. Another item I seem to vaguely recall is that the older Kerberos config items (instead of the newer GSSAPI config items) only work with 'ssh -1'. > I have read both the Handbook and the 'Complete' book on this subject > and have not been able to glean enough information to get me going, > Google didn't help much either. I have 6 Debian clients, 2 WinXP > clients, and 1 Debian KDC slave and wanted this machine to be an > MIT-KDC master and yet avoid the apparent 'kadmin' server > incompatibility between Heimdal and MIT Kerberos (which all the Debian > clients run). I am also very comfortable with the MIT version. Any > words of wisdom would be greatly appreciated. A long time ago I started working on an update to the Kerberos5 chapter, which unfortunately I never completed and the "official" chapter in the Handbook may have moved on (creating a doc fork of sorts, I suppose). Anyway, my mostly-finished-but-not-polished revised version is at http://www.seekingfire.com/freebsd-doc/kerberos5.html if you want to take a peek at it to see if it's helpful. (My apologies to Giorgos Keramidas, I totally dropped the ball on this) The type of KDC won't matter -- I do cross-realm authentication between MIT and Heimdal and all my Kerberos client apps handle it fine. The only incompatibility is in the kadmin tool to manage the KDC. Since I perform management at the secured console it's never really affected me. I keep some Kerberos info online a http://www.seekingfire.com/projects/kerberos/ that you might fine useful. I haven't added to it in a while, but Kerberos isn't exactly a fast-moving target anyway ;-) The link http://shankerbalan.net/tech/freebsd_kerberos.txt in particular includes what looks like useful SSH info. -T -- "Statistics are the triumph of the quantitative method, and the quantitative method is the victory of sterility and death." -- Hillaire Belloc, _The Silence of the Sea_ From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 16:52:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABA8816A479 for ; Tue, 20 Jun 2006 16:52:16 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7215743D6E for ; Tue, 20 Jun 2006 16:52:01 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-1) with ESMTP id k5KGpilE021976 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 20 Jun 2006 19:51:46 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.6/8.13.6) with ESMTP id k5KGpc5x090977; Tue, 20 Jun 2006 19:51:38 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.6/8.13.6/Submit) id k5KGpbKb090976; Tue, 20 Jun 2006 19:51:37 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Tue, 20 Jun 2006 19:51:37 +0300 From: Giorgos Keramidas To: Tillman Hodgson Message-ID: <20060620165137.GA90842@gothmog.pc> References: <4497647A.8080909@centurytel.net> <20060620162132.GW96797@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060620162132.GW96797@seekingfire.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.325, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 1.07, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-hackers@freebsd.org Subject: Re: MIT kerberos and ssh X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 16:52:16 -0000 On 2006-06-20 10:21, Tillman Hodgson wrote: > A long time ago I started working on an update to the Kerberos5 chapter, > which unfortunately I never completed and the "official" chapter in the > Handbook may have moved on (creating a doc fork of sorts, I suppose). > Anyway, my mostly-finished-but-not-polished revised version is at > http://www.seekingfire.com/freebsd-doc/kerberos5.html if you want to > take a peek at it to see if it's helpful. > > (My apologies to Giorgos Keramidas, I totally dropped the ball on this) Hi Tillman & lists, That's fine. If you are still interested in merging these changes to the Handbook, we can still do it :) - Giorgos From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 16:57:33 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D790316A47A for ; Tue, 20 Jun 2006 16:57:33 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id 852B843D6A for ; Tue, 20 Jun 2006 16:57:33 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 8FF16170C4 for ; Tue, 20 Jun 2006 16:57:32 +0000 (UTC) To: hackers@freebsd.org From: Poul-Henning Kamp Date: Tue, 20 Jun 2006 16:57:32 +0000 Message-ID: <64514.1150822652@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Subject: Tester needed, picture heavy webserver preferred. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 16:57:33 -0000 (For "picture heavy" substitute the word you all have in your spamfilters.) I'm writing a serverside web-cache and I am looking for a web-operator in the heavy duty picture category to get some input and possibly a beta tester. I would prefer a site which runs FreeBSD, and I it to be somebody who is into serious bandwidth AND clue. Should any of you know of a good candidate, please tell them to email me. Thanks in advance! Poul-Henning PS: Full discretion! The software will be delivered in plain brown IP packets with no source address :-) -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 17:05:20 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1903216A479 for ; Tue, 20 Jun 2006 17:05:20 +0000 (UTC) (envelope-from tillman@seekingfire.com) Received: from mail.seekingfire.com (caliban.seekingfire.com [24.89.83.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id A443843D45 for ; Tue, 20 Jun 2006 17:05:19 +0000 (GMT) (envelope-from tillman@seekingfire.com) Received: by mail.seekingfire.com (Postfix, from userid 500) id 9EA72104; Tue, 20 Jun 2006 11:05:18 -0600 (CST) Date: Tue, 20 Jun 2006 11:05:18 -0600 From: Tillman Hodgson To: Giorgos Keramidas Message-ID: <20060620170518.GY96797@seekingfire.com> References: <4497647A.8080909@centurytel.net> <20060620162132.GW96797@seekingfire.com> <20060620165137.GA90842@gothmog.pc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060620165137.GA90842@gothmog.pc> X-Habeas-SWE-1: winter into spring X-Habeas-SWE-2: brightly anticipated X-Habeas-SWE-3: like Habeas SWE (tm) X-Habeas-SWE-4: Copyright 2002 Habeas (tm) X-Habeas-SWE-5: Sender Warranted Email (SWE) (tm). The sender of this X-Habeas-SWE-6: email in exchange for a license for this Habeas X-Habeas-SWE-7: warrant mark warrants that this is a Habeas Compliant X-Habeas-SWE-8: Message (HCM) and not spam. Please report use of this X-Habeas-SWE-9: mark in spam to . X-GPG-Key-ID: 828AFC7B X-GPG-Fingerprint: 5584 14BA C9EB 1524 0E68 F543 0F0A 7FBC 828A FC7B X-GPG-Key: http://www.seekingfire.com/personal/gpg_key.asc X-Urban-Legend: There is lots of hidden information in headers X-Tillman-rules: yes he does User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: MIT kerberos and ssh X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 17:05:20 -0000 On Tue, Jun 20, 2006 at 07:51:37PM +0300, Giorgos Keramidas wrote: > On 2006-06-20 10:21, Tillman Hodgson wrote: > > A long time ago I started working on an update to the Kerberos5 chapter, > > which unfortunately I never completed and the "official" chapter in the > > Handbook may have moved on (creating a doc fork of sorts, I suppose). > > Anyway, my mostly-finished-but-not-polished revised version is at > > http://www.seekingfire.com/freebsd-doc/kerberos5.html if you want to > > take a peek at it to see if it's helpful. > > > > (My apologies to Giorgos Keramidas, I totally dropped the ball on this) > > Hi Tillman & lists, > > That's fine. If you are still interested in merging these changes to > the Handbook, we can still do it :) I'm interested in doing that, yes. I'll move this off-list. -T -- Page 461: Tools that are simple enough to use the first day are often a real pain after the first month. - Harley Hahn, _The Unix Companion_ From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 22:58:37 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from localhost.my.domain (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 1994016A47A; Tue, 20 Jun 2006 22:58:37 +0000 (UTC) (envelope-from davidxu@freebsd.org) From: David Xu To: freebsd-threads@freebsd.org Date: Wed, 21 Jun 2006 06:58:24 +0800 User-Agent: KMail/1.8.2 References: <20060620120948.GA8288@stud.fit.vutbr.cz> In-Reply-To: <20060620120948.GA8288@stud.fit.vutbr.cz> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606210658.24741.davidxu@freebsd.org> Cc: threads@freebsd.org, Divacky Roman , hackers@freebsd.org Subject: Re: TLS - implementing linux one in fbsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 22:58:37 -0000 On Tuesday 20 June 2006 20:09, Divacky Roman wrote: > Hi > > I am student working on SoC project - extending linuxolator, now I am > working on implementing linux TLS in FreeBSD. Here is what I think/know and > I like you to comment on this, thnx. Roman > > ------------------------------------------------- > > Linux and FreeBSD TLS implementation - comparison > > Both systems use per-thread setting of where is the tls area stored. This > setting is loaded into active threads GDT and can be accessed via %gs > register. This GDT setup is done on every context switch. > Yes. > Linux uses strict 1:1 threading so every thread is in fact process, so > thread creation is done using plain clone()/fork(). FreeBSD uses M:N > (including 1:1) threading. Threads are created via pthread_create() call to > threading library. In kernel there's thr_new() syscall or thread_create() > syscall. I didnt find the connection between threading library and kernel > but I assume its using one of the syscalls > The M:N and 1:1 threading in FreeBSD use different mechanisms to implement TLS, M:N implements it in userland, while 1:1 implements it in kernel. the thr_new or thr_create are used for 1:1 threading, right now libthr uses thr_new to atomically setup a thread, this includes, storing TID, setting TLS, and maybe signal mask( not implemented ) , cpu affinity mask etcs(not implemented), scheduling scope, in one word, it is intended to map most part of pthread_attr into kernel world. > For setting up the GDT for the thread Linux uses syscall set_thread_area() > (TODO - how exactly? its unclear what it does). I dont know how FreeBSD > does it but I think it might be done via params to the syscalls (TODO - how > is it done?) > If you use thr_new, it is not necessary to use set_thread_area, I am not sure you need to change TLS pointer again after the thread is created, I think only main thread may need this feature, in FreeBSD, setting thread's TLS pointer is via libc function: _set_tp(void *tp). > Remaining questions: > > clone() - 2.6.x glibc fork() implementation uses clone() syscall. is it > supposed to create a thread or just a process? I think its process but why > is the binary (ls, date and probably some other) linked to pthread library? > is it just Linux "strangeness"? I dont see a reason for ls to be > threaded... does anyone see? > Dunno. > set/get tid - does it relate to TLS at all? I dont think so but you never > know. The tid thing is unclear to me. The clone() syscall is passed > CLONE_CHILD_SETTID & CLONE_CHILD_CLEARTID which should be mutually > exclusive. I dont believe much its a mistake.. but the code is clear: > p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : > NULL; p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? > child_tidptr: NULL; > > kostik belousov pointed out that this is used for futexes, so not > interesting for this > > I think it is used for futex, and the childtid is use to implement pthread_join and garbage collection in thread library, the parent tid pointer (if I recall correctly) is used by parent thread to retrieve child tid. > Possible mapping from Linux to FreeBSD: > > To me it seems that the the set_thread_area() syscall is used in the > process of thread creation to set where the tls is stored. In FreeBSD we > use cpu_set_user_tls() for this. So it might be enough to just wrap call to > cpu_set_user_tls() into the syscall. cpu_set_user_tls is used by thr_new syscall internally to setup TLS pointer before executing user code, the thr_new syscall's only user is libthr. From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 20 17:47:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA7DB16A47F for ; Tue, 20 Jun 2006 17:47:45 +0000 (UTC) (envelope-from enderw@chattingaway.com) Received: from smtp110.sbc.mail.re2.yahoo.com (smtp110.sbc.mail.re2.yahoo.com [68.142.229.95]) by mx1.FreeBSD.org (Postfix) with SMTP id C242443D46 for ; Tue, 20 Jun 2006 17:47:43 +0000 (GMT) (envelope-from enderw@chattingaway.com) Received: (qmail 54649 invoked from network); 20 Jun 2006 17:47:43 -0000 Received: from unknown (HELO ?4.158.204.148?) (kc5vdj@prodigy.net@4.158.204.148 with plain) by smtp110.sbc.mail.re2.yahoo.com with SMTP; 20 Jun 2006 17:47:41 -0000 Message-ID: <449834CA.2030005@chattingaway.com> Date: Tue, 20 Jun 2006 12:47:54 -0500 From: Jim Bryant User-Agent: Mozilla Thunderbird 1.0.7 (X11/20060113) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 21 Jun 2006 01:57:23 +0000 Cc: freebsd-net@freebsd.org, freebsd-sparc64@freebsd.org, freebsd-drivers@freebsd.org, freebsd-platforms@freebsd.org, freebsd-hardware@freebsd.org Subject: Problem: fpa(4) on sparc64 6.1-RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 17:47:45 -0000 I am getting a panic with a GENERIC with all non-available hardware drivers stripped out with "device fddi" and "device fpa" in the config. The only things I added to GENERIC after stripping out the unneeded things was the fddi, the sound, and the openfirmware. The system boots fine with the fddi stuff commented out of the config. Any suggestions? Is anyone working on this? Console log follows: ------------------------------------------------------------------------------------------------ screen not found. Can't open input device. Keyboard not present. Using ttya for input and output. SPARCengine(tm)Ultra(tm) AXi (UltraSPARC-IIi 300MHz), No Keyboard OpenBoot 3.10.4 SME, 256 MB memory installed, Serial #10425242. Ethernet address 8:0:20:9f:13:9a, Host ID: 809f139a. Initializing Memory ok boot Boot device: disk:a File and args: >> FreeBSD/sparc64 boot block Boot path: /pci@1f,0/pci@1/scsi@1/disk@0,0:a Boot loader: /boot/loader Consoles: Open Firmware console FreeBSD/sparc64 bootstrap loader, Revision 1.0 (root@s-dallas.cse.buffalo.edu, Sun May 7 07:03:17 UTC 2006) bootpath="/pci@1f,0/pci@1/scsi@1/disk@0,0:a" Loading /boot/defaults/loader.conf /boot/kernel/kernel data=0x36b508+0x52e58 syms=[0x8+0x59a60+0x8+0x4af83] Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel] in 9 seconds... Booting [/boot/kernel/kernel] in 8 seconds... Booting [/boot/kernel/kernel]... nothing to autoload yet. jumping to kernel entry at 0xc0058000. Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-RELEASE #0: Tue Jun 20 02:01:14 CDT 2006 root@ren.prodigy.net:/usr/obj/usr/src/sys/REN Timecounter "tick" frequency 300008484 Hz quality 1000 real memory = 268435456 (256 MB) avail memory = 241123328 (229 MB) cpu0: Sun Microsystems UltraSparc-IIi Processor (300.01 MHz CPU) nexus0: pcib0: on nexus0 pcib0: Sabre, impl 0, version 0, ign 0x7c0, bus A pcib0: [FAST] pcib0: [FAST] pcib0: [GIANT-LOCKED] pcib0: [GIANT-LOCKED] pcib0 dvma: DVMA map: 0xc0000000 to 0xc3ffffff pci0: on pcib0 pcib1: at device 1.1 on pci0 pci1: on pcib1 ebus0: mem 0xf0000000-0xf0ffffff,0xf1000000-0xf17fffff at device 1.0 on pci1 auxio0: addr 0x1400726000-0x1400726003,0x1400728000-0x1400728003,0x140072a000-0x140072a003,0x140072c000-0x140072c003,0x140072f000-0x140072f003 on ebus0 ebus0: addr 0x1400724000-0x1400724003 irq 37 (no driver attached) ebus0: addr 0x1400504000-0x1400504002 (no driver attached) puc0: addr 0x1400400000-0x140040007f irq 43 on ebus0 uart0: on puc0 uart0: CTS oflow uart0: console (38400,n,8,1) uart1: on puc0 uart1: CTS oflow uart2: <16550 or compatible> addr 0x14003803f8-0x14003803ff irq 41 on ebus0 uart2: keyboard (1200,n,8,1) uart2: keyboard not present uart3: <16550 or compatible> addr 0x14003602f8-0x14003602ff irq 42 on ebus0 ebus0: addr 0x1400340278-0x1400340287,0x140030015c-0x140030015d,0x1400700000-0x140070000f irq 34 (no driver attached) ebus0: addr 0x14003203f0-0x14003203f7,0x1400706000-0x140070600f,0x1400720000-0x1400720003 irq 39 (no driver attached) eeprom0: addr 0x1400000000-0x1400001fff on ebus0 eeprom0: model mk48t59 eeprom0: hostid 809f139a ebus0: addr 0x1000000000-0x10000fffff (no driver attached) ebus0: addr 0x1400722000-0x1400722003 (no driver attached) ebus0: addr 0x1400600000-0x1400600003 irq 40,37 (no driver attached) hme0: mem 0x40008000-0x4000ffff at device 1.1 on pci1 miibus0: on hme0 nsphy0: on miibus0 nsphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto hme0: Ethernet address: 08:00:20:9f:13:9a pcm0: port 0x800400-0x80043f at device 4.0 on pci1 pcm0: pcm0: pcib2: at device 1.0 on pci0 pci2: on pcib2 sym0: <875> port 0x400-0x4ff mem 0x1000-0x10ff,0x2000-0x2fff at device 1.0 on pci2 sym0: No NVRAM, ID 7, Fast-20, SE, parity checking sym0: [GIANT-LOCKED] sym1: <875> port 0x800-0x8ff mem 0x3000-0x30ff,0x4000-0x4fff at device 1.1 on pci2 sym1: No NVRAM, ID 7, Fast-20, SE, parity checking sym1: [GIANT-LOCKED] fpa0: port 0xc00-0xc7f mem 0x5000-0x507f,0x10000-0x1ffff at device 2.0 on pci2 panic: trap: fast data access mmu miss Uptime: 1s Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... Resetting ... From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 04:08:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D806716A479 for ; Wed, 21 Jun 2006 04:08:38 +0000 (UTC) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9625F43D4C for ; Wed, 21 Jun 2006 04:08:38 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 851AA16585; Wed, 21 Jun 2006 00:08:37 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 2E9674AC35; Wed, 21 Jun 2006 00:07:33 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17560.50693.145833.875903@canoe.dclg.ca> Date: Wed, 21 Jun 2006 00:07:33 -0400 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid Subject: curious 6.1 GRE behaviour. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 04:08:38 -0000 I was using some GRE tunnels on 6.1-RELEASE recently. The odd thing I'm finding is that the initial creation of the tunnel using cloned_interfaces and ifconfig_gre0="" results in the gre0 interface being created without the "running" bit set. tcpdump on the interface or even "ifconfig gre0 up" starts it. This is also odd because the "UP" flag is set. Ie: [1:2:301]root@pbx:~> ifconfig [...] gre0: flags=9011 mtu 1476 tunnel inet x.x.x.x --> y.y.y.y inet6 fe80::240:63ff:fee2:eae9%gre0 prefixlen 64 scopeid 0x5 inet a.a.a.a --> b.b.b.b netmask 0xfffffffe [1:2:302]root@pbx:~> ifconfig gre0 up [1:3:303]root@pbx:~> ifconfig [...] gre0: flags=9051 mtu 1476 tunnel inet x.x.x.x --> y.y.y.y inet6 fe80::240:63ff:fee2:eae9%gre0 prefixlen 64 scopeid 0x5 inet a.a.a.a --> b.b.b.b netmask 0xfffffffe Dave. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 06:32:00 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62D7F16A502; Wed, 21 Jun 2006 06:32:00 +0000 (UTC) (envelope-from wb@freebie.xs4all.nl) Received: from smtp-vbr4.xs4all.nl (smtp-vbr4.xs4all.nl [194.109.24.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2F2943D45; Wed, 21 Jun 2006 06:31:59 +0000 (GMT) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (freebie.xs4all.nl [213.84.32.253]) by smtp-vbr4.xs4all.nl (8.13.6/8.13.6) with ESMTP id k5L6VvTe001097; Wed, 21 Jun 2006 08:31:58 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: from freebie.xs4all.nl (localhost [127.0.0.1]) by freebie.xs4all.nl (8.13.6/8.13.3) with ESMTP id k5L6VvHt065701; Wed, 21 Jun 2006 08:31:57 +0200 (CEST) (envelope-from wb@freebie.xs4all.nl) Received: (from wb@localhost) by freebie.xs4all.nl (8.13.6/8.13.6/Submit) id k5L6VutP065700; Wed, 21 Jun 2006 08:31:56 +0200 (CEST) (envelope-from wb) Date: Wed, 21 Jun 2006 08:31:56 +0200 From: Wilko Bulte To: Jim Bryant Message-ID: <20060621063156.GB65647@freebie.xs4all.nl> References: <449834CA.2030005@chattingaway.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <449834CA.2030005@chattingaway.com> User-Agent: Mutt/1.5.11 X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-hackers@freebsd.org, freebsd-drivers@freebsd.org, freebsd-platforms@freebsd.org, freebsd-net@freebsd.org, freebsd-sparc64@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: Problem: fpa(4) on sparc64 6.1-RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 06:32:00 -0000 On Tue, Jun 20, 2006 at 12:47:54PM -0500, Jim Bryant wrote.. > I am getting a panic with a GENERIC with all non-available hardware > drivers stripped out with "device fddi" and "device fpa" in the config. > The only things I added to GENERIC after stripping out the unneeded > things was the fddi, the sound, and the openfirmware. The system boots > fine with the fddi stuff commented out of the config. > > Any suggestions? Is anyone working on this? fpa(4) was/is also toast on FreeBSD/alpha. It used to work once, but since a long time it only worked on i386. Don't expect anyone to work on it, FDDI is quite rare and the original driver writer is gone IIRC. -- Wilko Bulte wilko@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 07:49:46 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAEC616A474; Wed, 21 Jun 2006 07:49:46 +0000 (UTC) (envelope-from rink@rink.nu) Received: from mx0.rink.nu (thunderstone.rink.nu [80.112.228.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 406E143D46; Wed, 21 Jun 2006 07:49:45 +0000 (GMT) (envelope-from rink@rink.nu) Received: from localhost (localhost [127.0.0.1]) by mx0.rink.nu (Postfix) with ESMTP id DC66717072; Wed, 21 Jun 2006 09:50:00 +0200 (CEST) X-Virus-Scanned: amavisd-new at rink.nu Received: from mx0.rink.nu ([127.0.0.1]) by localhost (thunderstone.rink.nu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zu+z-aJWnzzX; Wed, 21 Jun 2006 09:49:56 +0200 (CEST) Received: by mx0.rink.nu (Postfix, from userid 1678) id 1358F1706D; Wed, 21 Jun 2006 09:49:56 +0200 (CEST) Date: Wed, 21 Jun 2006 09:49:56 +0200 From: Rink Springer To: Wilko Bulte Message-ID: <20060621074955.GC91963@rink.nu> References: <449834CA.2030005@chattingaway.com> <20060621063156.GB65647@freebie.xs4all.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0lnxQi9hkpPO77W3" Content-Disposition: inline In-Reply-To: <20060621063156.GB65647@freebie.xs4all.nl> User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org, freebsd-drivers@freebsd.org, freebsd-platforms@freebsd.org, freebsd-sparc64@freebsd.org, freebsd-net@freebsd.org, Jim Bryant Subject: Re: Problem: fpa(4) on sparc64 6.1-RELEASE X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 07:49:47 -0000 --0lnxQi9hkpPO77W3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Wed, Jun 21, 2006 at 08:31:56AM +0200, Wilko Bulte wrote: > On Tue, Jun 20, 2006 at 12:47:54PM -0500, Jim Bryant wrote.. > > I am getting a panic with a GENERIC with all non-available hardware=20 > > drivers stripped out with "device fddi" and "device fpa" in the config.= =20 > > The only things I added to GENERIC after stripping out the unneeded=20 > > things was the fddi, the sound, and the openfirmware. The system boots= =20 > > fine with the fddi stuff commented out of the config. > >=20 > > Any suggestions? Is anyone working on this? >=20 > fpa(4) was/is also toast on FreeBSD/alpha. It used to work once, but sin= ce > a long time it only worked on i386. fpa(4) is also broken on most i386 systems (it fails to attach). The Linux driver has no such problems, however. If anyone is willing to look at this, I have a couple fpa(4) cards available for donation. Contact me off-list if anyone is interested. --=20 Rink P.W. Springer - http://rink.nu "Richter: Tribute? You steal men's souls, and make them your slaves! Dracula: Perhaps the same could be said of all religions." - Castlevania: Symphony of the Night --0lnxQi9hkpPO77W3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEmPojb3O60uztv/8RAoOjAKCwO+b/8hlPWbDn02N/K9QqbvMy3gCeLPFk +HQvxv2/nAY8Szx6YIkKubE= =kfwL -----END PGP SIGNATURE----- --0lnxQi9hkpPO77W3-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 08:09:23 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 133CE16A47D; Wed, 21 Jun 2006 08:09:23 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67B0643D49; Wed, 21 Jun 2006 08:09:21 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.7/8.13.7) with ESMTP id k5L89GO4082110 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Wed, 21 Jun 2006 10:09:16 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.7/8.13.3/Submit) id k5L89GYM082109; Wed, 21 Jun 2006 10:09:16 +0200 (CEST) Date: Wed, 21 Jun 2006 10:09:16 +0200 From: Divacky Roman To: David Xu Message-ID: <20060621080916.GA81422@stud.fit.vutbr.cz> References: <20060620120948.GA8288@stud.fit.vutbr.cz> <200606210658.24741.davidxu@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200606210658.24741.davidxu@freebsd.org> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: threads@freebsd.org, hackers@freebsd.org, freebsd-threads@freebsd.org Subject: Re: TLS - implementing linux one in fbsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 08:09:23 -0000 > > Linux uses strict 1:1 threading so every thread is in fact process, so > > thread creation is done using plain clone()/fork(). FreeBSD uses M:N > > (including 1:1) threading. Threads are created via pthread_create() call to > > threading library. In kernel there's thr_new() syscall or thread_create() > > syscall. I didnt find the connection between threading library and kernel > > but I assume its using one of the syscalls > > > The M:N and 1:1 threading in FreeBSD use different mechanisms to > implement TLS, M:N implements it in userland, while 1:1 implements it in > kernel. the thr_new or thr_create are used for 1:1 threading, right > now libthr uses thr_new to atomically setup a thread, this includes, > storing TID, setting TLS, and maybe signal mask( not implemented ) , > cpu affinity mask etcs(not implemented), scheduling scope, in one word, > it is intended to map most part of pthread_attr into kernel world. but on the kernel level the implementation must be the same.. I mean the mangling of %gs. right? > > For setting up the GDT for the thread Linux uses syscall set_thread_area() > > (TODO - how exactly? its unclear what it does). I dont know how FreeBSD > > does it but I think it might be done via params to the syscalls (TODO - how > > is it done?) > > > If you use thr_new, it is not necessary to use set_thread_area, I am not sure > you need to change TLS pointer again after the thread is created, I think > only main thread may need this feature, in FreeBSD, setting thread's TLS > pointer is via libc function: _set_tp(void *tp). well.. in linux the thread creation and setting up the tls is done using separate syscalls. I plan to extend clone() syscall to use thr_create() or thr_new() (if the flags tell me its thread) but I am afraid I'l have to modify those syscalls to not to setup TLS (some flag) because linux wants to set it separately. > > set/get tid - does it relate to TLS at all? I dont think so but you never > > know. The tid thing is unclear to me. The clone() syscall is passed > > CLONE_CHILD_SETTID & CLONE_CHILD_CLEARTID which should be mutually > > exclusive. I dont believe much its a mistake.. but the code is clear: > > p->set_child_tid = (clone_flags & CLONE_CHILD_SETTID) ? child_tidptr : > > NULL; p->clear_child_tid = (clone_flags & CLONE_CHILD_CLEARTID) ? > > child_tidptr: NULL; > > > > kostik belousov pointed out that this is used for futexes, so not > > interesting for this > > > > > I think it is used for futex, and the childtid is use to implement > pthread_join and garbage collection in thread library, the parent tid > pointer (if I recall correctly) is used by parent thread to retrieve > child tid. this is the next step... I think all the magic is done in their libc (or somewhere) and I basically just need to malloc some space for this info and clear/set it on proces creation/exit > > Possible mapping from Linux to FreeBSD: > > > > To me it seems that the the set_thread_area() syscall is used in the > > process of thread creation to set where the tls is stored. In FreeBSD we > > use cpu_set_user_tls() for this. So it might be enough to just wrap call to > > cpu_set_user_tls() into the syscall. > cpu_set_user_tls is used by thr_new syscall internally to setup TLS pointer > before executing user code, the thr_new syscall's only user is libthr. the cpu_set_user_tls() is then what I need I think... maybe some modifications needed but it shuold be basiscally the thing. the linux syscall set_thread_area() just loads GDT with that info.. thats the same like ours cpu_set_use_tls(), right? thnx for your information! roman From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 10:12:24 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from [127.0.0.1] (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 5208516A479; Wed, 21 Jun 2006 10:12:22 +0000 (UTC) (envelope-from davidxu@freebsd.org) Message-ID: <44991B87.1020104@freebsd.org> Date: Wed, 21 Jun 2006 18:12:23 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060519 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Divacky Roman References: <20060620120948.GA8288@stud.fit.vutbr.cz> <200606210658.24741.davidxu@freebsd.org> <20060621080916.GA81422@stud.fit.vutbr.cz> In-Reply-To: <20060621080916.GA81422@stud.fit.vutbr.cz> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: threads@freebsd.org, hackers@freebsd.org, freebsd-threads@freebsd.org Subject: Re: TLS - implementing linux one in fbsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 10:12:24 -0000 Divacky Roman wrote: >>The M:N and 1:1 threading in FreeBSD use different mechanisms to >>implement TLS, M:N implements it in userland, while 1:1 implements it in >>kernel. the thr_new or thr_create are used for 1:1 threading, right >>now libthr uses thr_new to atomically setup a thread, this includes, >>storing TID, setting TLS, and maybe signal mask( not implemented ) , >>cpu affinity mask etcs(not implemented), scheduling scope, in one word, >>it is intended to map most part of pthread_attr into kernel world. > > > but on the kernel level the implementation must be the same.. I mean the > mangling of %gs. right? > > There is no such standard that a kernel must implement it in that way, we happens to implement it in kernel with GDT, before this, thread libraries were using LDT. The offical TLS standard only defined ABI in userspace: http://people.redhat.com/drepper/tls.pdf M:N thread library only set GDT entry once, for Variant II TLS (x86), the userland scheduler just replaces some pointers in TCB, it does not have to set TLS via syscall later. but 1:1 thread library will just let kernel context switch code to update it for next thread. > > well.. in linux the thread creation and setting up the tls is done using > separate syscalls. I plan to extend clone() syscall to use thr_create() or > thr_new() (if the flags tell me its thread) but I am afraid I'l have to modify > those syscalls to not to setup TLS (some flag) because linux wants to set it > separately. > You can try, but the thr_xx syscalls were not designed to implement linux clone() syscall, they are only used by libthr to implement 1:1 threading. >>I think it is used for futex, and the childtid is use to implement >>pthread_join and garbage collection in thread library, the parent tid >>pointer (if I recall correctly) is used by parent thread to retrieve >>child tid. > > > this is the next step... I think all the magic is done in their libc (or > somewhere) and I basically just need to malloc some space for this info > and clear/set it on proces creation/exit > > we don't save childtid pointer and clear it at thread exiting time like Linux did, we use thr_exit() which passes a pointer to let kernel write a value into the address, this lets libthr's garbage collection code work. the thr syscalls may be extented to save childtid pointer somewhere in kernel by adding another flag, and clear it to zero when thread is exiting like Linux did. > the cpu_set_user_tls() is then what I need I think... maybe some modifications > needed but it shuold be basiscally the thing. > > the linux syscall set_thread_area() just loads GDT with that info.. thats the > same like ours cpu_set_use_tls(), right? > Right. > thnx for your information! > > roman From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 13:20:41 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D1CE16A479 for ; Wed, 21 Jun 2006 13:20:41 +0000 (UTC) (envelope-from aag.lists@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CBDD43D49 for ; Wed, 21 Jun 2006 13:20:40 +0000 (GMT) (envelope-from aag.lists@gmail.com) Received: by py-out-1112.google.com with SMTP id t32so1939480pyc for ; Wed, 21 Jun 2006 06:20:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=hY1YE+02ovwaqP8fA14p5JQiquGS/TUWvQGR0ZNarxRrn23XK4NXqiVPzipydzQky+CH9byMapdkaPyLSLdSapJv8UcHIq7yRoPz/b0sGzT8scTS18hJEHkPw1AZjnqUMkZmK7hV3kYTWZi/R0abSDil9BJXTnCgJa89tuhYAcA= Received: by 10.35.60.16 with SMTP id n16mr10998018pyk; Wed, 21 Jun 2006 06:20:39 -0700 (PDT) Received: by 10.35.50.12 with HTTP; Wed, 21 Jun 2006 06:20:39 -0700 (PDT) Message-ID: <2f3a439f0606210620q156efbdqcb938d68258e4652@mail.gmail.com> Date: Wed, 21 Jun 2006 18:50:39 +0530 From: "Aditya Godbole" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Alternate toolchain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:20:41 -0000 Hi all, How can I build FreeBSD with my own toolchain? Is it possible to integrate it into the build system or use flags to make the build system to use my toolchain? I want to build freebsd 4.10. I am running freebsd 6.0 -aditya From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 23:02:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B820216A47B for ; Wed, 21 Jun 2006 23:02:16 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 231EB43D62 for ; Wed, 21 Jun 2006 23:02:16 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [IPv6:::1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k5LN0bHN005956; Wed, 21 Jun 2006 17:00:37 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 21 Jun 2006 17:00:55 -0600 (MDT) Message-Id: <20060621.170055.-1630885004.imp@bsdimp.com> To: aag.lists@gmail.com From: "M. Warner Losh" In-Reply-To: <2f3a439f0606210620q156efbdqcb938d68258e4652@mail.gmail.com> References: <2f3a439f0606210620q156efbdqcb938d68258e4652@mail.gmail.com> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Alternate toolchain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:02:16 -0000 In message: <2f3a439f0606210620q156efbdqcb938d68258e4652@mail.gmail.com> "Aditya Godbole" writes: : How can I build FreeBSD with my own toolchain? Is it possible to : integrate it into the build system or use flags to make the build : system to use my toolchain? : I want to build freebsd 4.10. I am running freebsd 6.0 World does this by setting path to something interesting... It may be hard to use that trick for your build. I think you are going to have to set CC, AS, LD, etc in /etc/make.conf... Warner From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 21 23:10:40 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3D3FA16A494 for ; Wed, 21 Jun 2006 23:10:40 +0000 (UTC) (envelope-from myself@rojer.pp.ru) Received: from wooster.rojer.pp.ru (wooster.rojer.pp.ru [80.68.246.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id B01ED43D5C for ; Wed, 21 Jun 2006 23:10:36 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from [192.168.10.3] (unknown [213.141.131.116]) by wooster.rojer.pp.ru (Postfix) with ESMTP id E15FB114FF; Thu, 22 Jun 2006 03:10:34 +0400 (MSD) Message-ID: <4499D1EA.9030803@rojer.pp.ru> Date: Thu, 22 Jun 2006 03:10:34 +0400 From: Deomid Ryabkov User-Agent: Thunderbird 3.0a1 (X11/20060620) MIME-Version: 1.0 To: Aditya Godbole References: <2f3a439f0606210620q156efbdqcb938d68258e4652@mail.gmail.com> In-Reply-To: <2f3a439f0606210620q156efbdqcb938d68258e4652@mail.gmail.com> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms080604030408040404090000" Cc: freebsd-hackers@freebsd.org Subject: Re: Alternate toolchain X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 23:10:40 -0000 This is a cryptographically signed message in MIME format. --------------ms080604030408040404090000 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Aditya Godbole wrote: > I want to build freebsd 4.10. I am running freebsd 6.0 I used jail for that, quite successfully. -- Deomid Ryabkov aka Rojer myself@rojer.pp.ru rojer@sysadmins.ru ICQ: 8025844 --------------ms080604030408040404090000 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJPTCC AvkwggJioAMCAQICEA6d3TvG5eRen2BAM1uAkm0wDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UE BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDQwMTE4MjY1NFoX DTA3MDQwMTE4MjY1NFowXzEQMA4GA1UEBBMHUnlhYmtvdjEPMA0GA1UEKhMGRGVvbWlkMRcw FQYDVQQDEw5EZW9taWQgUnlhYmtvdjEhMB8GCSqGSIb3DQEJARYSbXlzZWxmQHJvamVyLnBw LnJ1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmnOKvalRf0lrl/4S2fAVovyt 2FxjDn8hDhSOeYNY97Ddi8Y2t+eELg7cpxAUq9GnymPBQanGlvUN2VTuSA4YUVg+VE1yhGgE TDKm0CNVh0v5LOVVAs52IFvdQ0wREYRH0nPBa/ovPWVvlsJ/cIR5GhvRfAW3FbvuP+bEYU54 ESo7OTu7EeGVOLBTF5ow1zaU9PStIied3ffaK5xl8lB6TnQ7DBnIir0ugCqdAuaVxsjD4SfG hqzv42uOuvNjFCQhtFn9dUSnx1cF1TI39cumqVV4UNrqDlQZ4bgrBu/ClqSI4oJnfxgafNkq oSVx7mXNuD1U7V8tJRbOiNdZFpS6mwIDAQABoy8wLTAdBgNVHREEFjAUgRJteXNlbGZAcm9q ZXIucHAucnUwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOBgQAmvjeaZmSMwreI1RIl M1frBBOatokRhsStY6nyswNwxpCCcMGiK6sS8a0rtE4Iowvm48oCfXG062anUAFUMJ+e6Fse uOE1lJKrFQRJWGUzp61BOZJH8HZfKnrb7ll2GXY7YvvBicmif/wdjEBgp0WwNucm6jJS/57f mY3M9LQbwzCCAvkwggJioAMCAQICEA6d3TvG5eRen2BAM1uAkm0wDQYJKoZIhvcNAQEEBQAw YjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4x LDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDQw MTE4MjY1NFoXDTA3MDQwMTE4MjY1NFowXzEQMA4GA1UEBBMHUnlhYmtvdjEPMA0GA1UEKhMG RGVvbWlkMRcwFQYDVQQDEw5EZW9taWQgUnlhYmtvdjEhMB8GCSqGSIb3DQEJARYSbXlzZWxm QHJvamVyLnBwLnJ1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmnOKvalRf0lr l/4S2fAVovyt2FxjDn8hDhSOeYNY97Ddi8Y2t+eELg7cpxAUq9GnymPBQanGlvUN2VTuSA4Y UVg+VE1yhGgETDKm0CNVh0v5LOVVAs52IFvdQ0wREYRH0nPBa/ovPWVvlsJ/cIR5GhvRfAW3 FbvuP+bEYU54ESo7OTu7EeGVOLBTF5ow1zaU9PStIied3ffaK5xl8lB6TnQ7DBnIir0ugCqd AuaVxsjD4SfGhqzv42uOuvNjFCQhtFn9dUSnx1cF1TI39cumqVV4UNrqDlQZ4bgrBu/ClqSI 4oJnfxgafNkqoSVx7mXNuD1U7V8tJRbOiNdZFpS6mwIDAQABoy8wLTAdBgNVHREEFjAUgRJt eXNlbGZAcm9qZXIucHAucnUwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOBgQAmvjea ZmSMwreI1RIlM1frBBOatokRhsStY6nyswNwxpCCcMGiK6sS8a0rtE4Iowvm48oCfXG062an UAFUMJ+e6FseuOE1lJKrFQRJWGUzp61BOZJH8HZfKnrb7ll2GXY7YvvBicmif/wdjEBgp0Ww Nucm6jJS/57fmY3M9LQbwzCCAz8wggKooAMCAQICAQ0wDQYJKoZIhvcNAQEFBQAwgdExCzAJ BgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEa MBgGA1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2Vy dmljZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTEr MCkGCSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0wMzA3MTcw MDAwMDBaFw0xMzA3MTYyMzU5NTlaMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUg Q29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1h aWwgSXNzdWluZyBDQTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxKY8VXNV+065ypla HmjAdQRwnd/p/6Me7L3N9VvyGna9fww6YfK/Uc4B1OVQCjDXAmNaLIkVcI7dyfArhVqqP3FW y688Cwfn8R+RNiQqE88r1fOCdz0Dviv+uxg+B79AgAJk16emu59l0cUqVIUPSAR/p7bRPGEE QB5kGXJgt/sCAwEAAaOBlDCBkTASBgNVHRMBAf8ECDAGAQH/AgEAMEMGA1UdHwQ8MDowOKA2 oDSGMmh0dHA6Ly9jcmwudGhhd3RlLmNvbS9UaGF3dGVQZXJzb25hbEZyZWVtYWlsQ0EuY3Js MAsGA1UdDwQEAwIBBjApBgNVHREEIjAgpB4wHDEaMBgGA1UEAxMRUHJpdmF0ZUxhYmVsMi0x MzgwDQYJKoZIhvcNAQEFBQADgYEASIzRUIPqCy7MDaNmrGcPf6+svsIXoUOWlJ1/TCG4+DYf qi2fNi/A9BxQIJNwPP2t4WFiw9k6GX6EsZkbAMUaC4J0niVQlGLH2ydxVyWN3amcOY6MIE9l X5Xa9/eH1sYITq726jTlEBpbNU1341YheILcIRk13iSx0x1G/11fZU8xggNkMIIDYAIBATB2 MGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQu MSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQIQDp3dO8bl 5F6fYEAzW4CSbTAJBgUrDgMCGgUAoIIBwzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwG CSqGSIb3DQEJBTEPFw0wNjA2MjEyMzEwMzRaMCMGCSqGSIb3DQEJBDEWBBR7TGiGkUWWSuwD paxD2kzg+fyxHDBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIA gDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDCBhQYJKwYBBAGCNxAE MXgwdjBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg THRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECEA6d 3TvG5eRen2BAM1uAkm0wgYcGCyqGSIb3DQEJEAILMXigdjBiMQswCQYDVQQGEwJaQTElMCMG A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECEA6d3TvG5eRen2BAM1uAkm0wDQYJKoZIhvcN AQEBBQAEggEAZuRjcqQCBM4vZJgK/DHwisbPMQN4mf5iThXGfsBCdWmHxmHHVOZvlHb9e4Ju 0JKBUc1SMTZcplceVOKc+puO7NIKu35RJyHekJIwjbcBcPgClQy6/VJAv2YSOIptFIpgi/5+ d+A4mRG8cBwZ9+lrp3RQF77Od5p0ze7NQIoWpupkFQvmDlKaFvIhtlJb5LPnglc+eTB4b6PB MjE7e33wxd6cRRUKqzvDMepEUijpMpNiLdk38VTcFqna6RgR/fc/4Km8eIHuTcZbQRe3yQyw tGECDKN/dRRA9HUpa+gQ3u5iWkngKseoYQHNEk17BBMi7NOGYI/hJNXKbfzd3agG3QAAAAAA AA== --------------ms080604030408040404090000-- From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 02:10:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C0F16A474 for ; Thu, 22 Jun 2006 02:10:06 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id CBDB543D46 for ; Thu, 22 Jun 2006 02:10:05 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon PRO v9.0.1) with ESMTP id md50002676356.msg for ; Thu, 22 Jun 2006 03:09:38 +0100 Message-ID: <006901c695a0$e1978f30$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Thu, 22 Jun 2006 03:09:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Spam-Processed: multiplay.co.uk, Thu, 22 Jun 2006 03:09:38 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Thu, 22 Jun 2006 03:09:38 +0100 Subject: Massive apache slowdown after high load period X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 02:10:06 -0000 We've just had a box which was subjected to a large amount of small apache requests once this subsided the response of apache was still very slow. Many seconds between requests showing in tcpdump and response being returned. Upon investigation it seemed the number of sockets in teardown / mbufs allocated might be the cause has anyone else experienced that? netstat -m 4294880568 mbufs in use 29885/76800 mbuf clusters in use (current/max) 0/5/6656 sfbufs in use (current/peak/max) 38088 KBytes allocated to network 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 687 calls to protocol drain routines netstat showed 1 CLOSE_WAIT 6 LAST_ACK 41 FIN_WAIT_1 129 FIN_WAIT_2 295 ESTABLISHED 1083 TIME_WAIT A restart of apache made no difference a reboot of the machine was required to return normal performance. N.B. 5.4-RELEASE-p8 is in use on the machine in question. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 11:58:53 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B602216A47C for ; Thu, 22 Jun 2006 11:58:53 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C59043D58 for ; Thu, 22 Jun 2006 11:58:51 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id CBAEC46BC9; Thu, 22 Jun 2006 07:58:49 -0400 (EDT) Date: Thu, 22 Jun 2006 12:58:49 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Steven Hartland In-Reply-To: <006901c695a0$e1978f30$b3db87d4@multiplay.co.uk> Message-ID: <20060622125720.K35204@fledge.watson.org> References: <006901c695a0$e1978f30$b3db87d4@multiplay.co.uk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Massive apache slowdown after high load period X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 11:58:53 -0000 On Thu, 22 Jun 2006, Steven Hartland wrote: > We've just had a box which was subjected to a large amount of small apache > requests once this subsided the response of apache was still very slow. Many > seconds between requests showing in tcpdump and response being returned. > > Upon investigation it seemed the number of sockets in teardown / mbufs > allocated might be the cause has anyone else experienced that? On 5.x SMP systems, there is a known problem in mbuf memory statistics reporting, which has been corrected in 6.x. The below mbuf counter is probably a property of that known problem, and is likely unrelated to the slowdown you have experienced. Robert N M Watson Computer Laboratory University of Cambridge > > netstat -m > 4294880568 mbufs in use > 29885/76800 mbuf clusters in use (current/max) > 0/5/6656 sfbufs in use (current/peak/max) > 38088 KBytes allocated to network > 0 requests for sfbufs denied > 0 requests for sfbufs delayed > 0 requests for I/O initiated by sendfile > 687 calls to protocol drain routines > > netstat showed > 1 CLOSE_WAIT > 6 LAST_ACK > 41 FIN_WAIT_1 > 129 FIN_WAIT_2 > 295 ESTABLISHED > 1083 TIME_WAIT > > A restart of apache made no difference a reboot > of the machine was required to return normal > performance. > > N.B. 5.4-RELEASE-p8 is in use on the machine in > question. > > Steve > > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. and the > person or entity to whom it is addressed. In the event of misdirection, the > recipient is prohibited from using, copying, printing or otherwise > disseminating it or any information contained in it. > In the event of misdirection, illegible or incomplete transmission please > telephone +44 845 868 1337 > or return the E.mail to postmaster@multiplay.co.uk. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 12:40:11 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8653D16A47D for ; Thu, 22 Jun 2006 12:40:11 +0000 (UTC) (envelope-from user@dhp.com) Received: from shell.dhp.com (shell.dhp.com [199.245.105.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7742643D8E for ; Thu, 22 Jun 2006 12:40:01 +0000 (GMT) (envelope-from user@dhp.com) Received: by shell.dhp.com (Postfix, from userid 896) id 5A52F31307; Thu, 22 Jun 2006 08:39:51 -0400 (EDT) Date: Thu, 22 Jun 2006 08:39:51 -0400 (EDT) From: Ensel Sharon To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Thu, 22 Jun 2006 12:54:15 +0000 Subject: 6.1 quota bugs cause adaptec 2820sa kernel to crash ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 12:40:11 -0000 FreeBSD 6.1-RELEASE, p4 xeon system, adaptec 2820sa SATA raid controller with all 8 disks in use. Two arrays are present - a mirror to boot from, and a 6-disk raid6 array of size 1.8TB. I am aware that there are problems with quotas in 6.1, but I am successfully using them with 6.0-RELEASE and an adaptec 1610sa. I figured it couldn't be any worse... ----- After loading, the system frequently (multi-daily) crashed with the error: Warning! Controller is no longer running! code=0xbcef0100 (after a page or so of aac0 timeout messages) So I disabled quotas on the system, and it has been completely stable ever since. ----- Does anyone understand the mechanism wherein the 6.1 quota problems could cause a raid controller kernel to crash ? Is that possible ? (it seems to be) Are there workaround for the 6.1 quota problems, as in "they don't work, but if you sysctl this and set this, they will" ? How close are we to working quota code on 6.1, and will I be able to just patch some files in /usr/src and recompile my kernel, or will it require a full rebuild of the OS ? Thanks. From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 16:25:04 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46B2216A482 for ; Thu, 22 Jun 2006 16:25:04 +0000 (UTC) (envelope-from artifact.one@googlemail.com) Received: from hu-out-0102.google.com (hu-out-0102.google.com [72.14.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9563044317 for ; Thu, 22 Jun 2006 16:25:03 +0000 (GMT) (envelope-from artifact.one@googlemail.com) Received: by hu-out-0102.google.com with SMTP id 28so220301hug for ; Thu, 22 Jun 2006 09:25:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=googlemail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=dhD+Q6OemqFNvDIYLWlf0+/STxP+3r//MlJqh+De0IebPeTx9XUgohIqy8RhVqLoUaYZvv0CxjINhdfmy8ELtosTJDvlOt1Y0a9yse+zcgXscBLQEMSF6I5afY74zPQ60oSleV/ikePu9RkgufWFa6BYImRBCXDeKhKYXWnYWE8= Received: by 10.78.97.7 with SMTP id u7mr549992hub; Thu, 22 Jun 2006 07:47:45 -0700 (PDT) Received: by 10.78.43.9 with HTTP; Thu, 22 Jun 2006 07:47:44 -0700 (PDT) Message-ID: <8e96a0b90606220747vf80e805k650518981bde754@mail.gmail.com> Date: Thu, 22 Jun 2006 15:47:44 +0100 From: "mal content" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Real time privileges for non-root users X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 16:25:04 -0000 Hello. Is it possible to grant real-time privileges to ordinary users (not root) under FreeBSD? I'm doing some audio work and I'd like to give real time privileges to my user id. MC From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 18:17:18 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2969A16A47E for ; Thu, 22 Jun 2006 18:17:18 +0000 (UTC) (envelope-from jin@george.lbl.gov) Received: from smtp107.sbc.mail.mud.yahoo.com (smtp107.sbc.mail.mud.yahoo.com [68.142.198.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 848F043D64 for ; Thu, 22 Jun 2006 18:17:17 +0000 (GMT) (envelope-from jin@george.lbl.gov) Received: (qmail 32861 invoked from network); 22 Jun 2006 18:16:58 -0000 Received: from unknown (HELO ?192.168.2.9?) (jinmtb@sbcglobal.net@68.127.180.134 with plain) by smtp107.sbc.mail.mud.yahoo.com with SMTP; 22 Jun 2006 18:16:57 -0000 Message-ID: <449ADEAA.3090304@george.lbl.gov> Date: Thu, 22 Jun 2006 11:17:14 -0700 From: "Jin Guojun [VFFS]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060317 X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: usb@freebsd.org, hardware@freebsd.org, hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 22 Jun 2006 18:31:59 +0000 Cc: Subject: problem of boot/reboot from SimpleTech SP-U25/60 USB drive on PCG-6J2L X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 18:17:18 -0000 This is my first time to install FreeBSD 5.x/6.x on a USB drive, so I am not sure if the boot/reboot problem is particular to this drive (SimpleTech SP-U25/60), or it is a generic USB issue (I do not have a second USB drive to confirm the problem). This USB device contains a WDC WD60 0VE-07HDT0 0811 drive. System 1 -- desktop ECS 848P-A7 motherboard with 2GB DDR and Intel P4 506+ CPU ASUS Symbios 875 SCSI controller issues: (1a) attach some SEAGATE ST39102LW on SCSI controller, system boot OK, (1b) if a Toshiba XM-6201B CD drive or some old SCSI drives attached, BIOS can still detect this USB drive, but it is not bootable. It looks like hardware issue. (2) After system successfully boot up, reboot/shutdown [-h, -p] will hang the system after following message: No buffer busy after final sync Uptime: 2m11s Only way to get system reboot or shutdown is to power cycle the machine. System 2 -- laptop Sony VAIO PCG-6J2L Problem: installing FreeBSD 5.x/6.x on USB drive has no problem. system cannot boot (hangs system) regardless the FreeBSD install on this laptop or from other computer. system will not respond to soft-reset or any key stroke once hangs. Power down the system is the only way to go. Boot fails immediately once anything starting show on the screen. It looks like some type of error message repeatedly spiting on the screen. It scrolls too fast to read. It seems something like: int=###### ###### ........................................................................ ext=###### ###### ........................................................................ Is this a generic USB drive issue or particular problem for this USB drive with this VAIO machine? Is there a workaround to make a USB drive (or this USB drive) to boot from this VAIO laptop? I need to boot this laptop from an external drive. Please let me know how can I boot an external drive (any type external drive) on this Snoy VAIO PCG-6J2L laptop. TIA -Jin From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 21:15:56 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3A97E16A526 for ; Thu, 22 Jun 2006 21:15:56 +0000 (UTC) (envelope-from andrew.chace@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DD7D4552E for ; Thu, 22 Jun 2006 20:41:03 +0000 (GMT) (envelope-from andrew.chace@gmail.com) Received: by nz-out-0102.google.com with SMTP id 16so493161nzp for ; Thu, 22 Jun 2006 13:41:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=F8iBpRBvlnkB60mFFPBh4itFmiutnY2OQ37tJWDhDfNhJoOObxSyn/orpRZXb1MF5/Kz/XgQiFMtV4ADcML2isnIswCO7V4jGjZuKk3LS2O6gxIwPM/l+ymfunYKcCqENlQTwRuLDUAlazU5OH2Frwg0XlPe+EYz30erzTZYtfs= Received: by 10.37.22.68 with SMTP id z68mr2626356nzi; Thu, 22 Jun 2006 13:41:02 -0700 (PDT) Received: from ?192.168.0.6? ( [70.56.10.145]) by mx.gmail.com with ESMTP id 14sm1879195nzp.2006.06.22.13.41.01; Thu, 22 Jun 2006 13:41:02 -0700 (PDT) From: Andrew To: freebsd-hackers@freebsd.org Content-Type: text/plain Date: Thu, 22 Jun 2006 15:40:39 -0500 Message-Id: <1151008839.2360.30.camel@LatitudeFC5.network> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 (2.6.1-1.fc5.2) Content-Transfer-Encoding: 7bit Subject: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:15:56 -0000 Hello, First off, is this the appropriate list for coding questions? I read questions@, but I do not often see discussions about code there, so I thought I might ask here instead. If not, please correct me. I need to know the size of a block device in some code that I'm writing. I checked the man pages, and I was thinking that I could use fstat(), but after I call it on the device, stat->st_size is still 0. I tested fstat()'s return value, and it's correct; there are no errors. So, I'm thinking that this is not the correct way to do this. So I guess my question is: is there a POSIX compatible function that will allow me to check the size of a given block device? Thanks, -Andrew From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 21:38:40 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A281416A47C for ; Thu, 22 Jun 2006 21:38:40 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id E65B24580A for ; Thu, 22 Jun 2006 21:38:39 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 1694 invoked by uid 1001); 22 Jun 2006 21:38:39 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Thu, 22 Jun 2006 17:38:38 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17563.3550.496244.953904@bhuda.mired.org> Date: Thu, 22 Jun 2006 17:38:38 -0400 To: Andrew In-Reply-To: <1151008839.2360.30.camel@LatitudeFC5.network> References: <1151008839.2360.30.camel@LatitudeFC5.network> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:38:40 -0000 In <1151008839.2360.30.camel@LatitudeFC5.network>, Andrew typed: > So I guess my question is: is there a POSIX compatible function that > will allow me to check the size of a given block device? I'd be surprised - POSIX doesn't seem to deal with block devices at all. Checking the sources to df, it uses statfs to get the information. Linux appears to have it as well, so it may be portable. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 21:46:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 745A616A937 for ; Thu, 22 Jun 2006 21:46:08 +0000 (UTC) (envelope-from dave@dogwood.com) Received: from ms-smtp-04.socal.rr.com (ms-smtp-04.socal.rr.com [66.75.162.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49CB843DF6 for ; Thu, 22 Jun 2006 21:45:29 +0000 (GMT) (envelope-from dave@dogwood.com) Received: from white.dogwood.com (white.dogwood.com [66.91.140.178]) by ms-smtp-04.socal.rr.com (8.13.6/8.13.6) with ESMTP id k5MLjS2D011314; Thu, 22 Jun 2006 14:45:28 -0700 (PDT) Received: from white.dogwood.com (localhost.dogwood.com [127.0.0.1]) by white.dogwood.com (8.13.4/8.13.4) with ESMTP id k5MLjR46010077; Thu, 22 Jun 2006 11:45:27 -1000 (HST) (envelope-from dave@white.dogwood.com) Received: (from dave@localhost) by white.dogwood.com (8.13.4/8.13.1/Submit) id k5MLjROJ010076; Thu, 22 Jun 2006 11:45:27 -1000 (HST) (envelope-from dave) From: Dave Cornejo Message-Id: <200606222145.k5MLjROJ010076@white.dogwood.com> In-Reply-To: <17563.3550.496244.953904@bhuda.mired.org> To: Mike Meyer Date: Thu, 22 Jun 2006 11:45:27 -1000 (HST) X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (white.dogwood.com [127.0.0.1]); Thu, 22 Jun 2006 11:45:27 -1000 (HST) X-Virus-Scanned: Symantec AntiVirus Scan Engine Cc: freebsd-hackers@freebsd.org, Andrew Subject: Re: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 21:46:08 -0000 There are no block devices in FreeBSD, only character devices http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics-block.html dave c > In <1151008839.2360.30.camel@LatitudeFC5.network>, Andrew typed: > > So I guess my question is: is there a POSIX compatible function that > > will allow me to check the size of a given block device? > > I'd be surprised - POSIX doesn't seem to deal with block devices at all. > > Checking the sources to df, it uses statfs to get the > information. Linux appears to have it as well, so it may be portable. > > -- > Mike Meyer http://www.mired.org/consulting.html > Independent Network/Unix/Perforce consultant, email for more information. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 22 22:53:13 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBA7416A6ED for ; Thu, 22 Jun 2006 22:53:13 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2449544FF3 for ; Thu, 22 Jun 2006 22:01:29 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k5MM1RHW050642; Thu, 22 Jun 2006 17:01:27 -0500 (CDT) (envelope-from dan) Date: Thu, 22 Jun 2006 17:01:27 -0500 From: Dan Nelson To: Mike Meyer Message-ID: <20060622220127.GE74589@dan.emsphone.com> References: <1151008839.2360.30.camel@LatitudeFC5.network> <17563.3550.496244.953904@bhuda.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17563.3550.496244.953904@bhuda.mired.org> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org, Andrew Subject: Re: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jun 2006 22:53:14 -0000 In the last episode (Jun 22), Mike Meyer said: > In <1151008839.2360.30.camel@LatitudeFC5.network>, Andrew typed: > > So I guess my question is: is there a POSIX compatible function that > > will allow me to check the size of a given block device? > > I'd be surprised - POSIX doesn't seem to deal with block devices at all. > > Checking the sources to df, it uses statfs to get the > information. Linux appears to have it as well, so it may be portable. statfs only works on mounted filesystems, not arbitrary block devices. /usr/sbin/diskinfo uses ioctl(fd, DIOCGMEDIASIZE, &mediasize), where mediasize is an off_t. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 01:55:29 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77A4A16A608 for ; Fri, 23 Jun 2006 01:55:29 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74080440BB for ; Fri, 23 Jun 2006 01:33:45 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k5N1XX5W033057; Thu, 22 Jun 2006 20:33:33 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <449B44F9.70006@centtech.com> Date: Thu, 22 Jun 2006 20:33:45 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: Dan Nelson References: <1151008839.2360.30.camel@LatitudeFC5.network> <17563.3550.496244.953904@bhuda.mired.org> <20060622220127.GE74589@dan.emsphone.com> In-Reply-To: <20060622220127.GE74589@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1561/Thu Jun 22 10:40:00 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org, Mike Meyer , Andrew Subject: Re: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 01:55:29 -0000 Dan Nelson wrote: > In the last episode (Jun 22), Mike Meyer said: >> In <1151008839.2360.30.camel@LatitudeFC5.network>, Andrew typed: >>> So I guess my question is: is there a POSIX compatible function that >>> will allow me to check the size of a given block device? >> I'd be surprised - POSIX doesn't seem to deal with block devices at all. >> >> Checking the sources to df, it uses statfs to get the >> information. Linux appears to have it as well, so it may be portable. > > statfs only works on mounted filesystems, not arbitrary block devices. > > /usr/sbin/diskinfo uses ioctl(fd, DIOCGMEDIASIZE, &mediasize), where > mediasize is an off_t. > Maybe something like this? ----------- #include #include #include #include #include #include #include #include int main(int argc, char **argv) { int devfd, error; if (argc != 2) { fprintf(stderr, "Need to specify device\n"); exit(1); } devfd = open(argv[1], O_RDONLY); if (devfd < 0) { fprintf(stderr, "Failed to open device\n"); exit(1); } error = getdiskinfo(devfd); return (0); } int getdiskinfo (int fd) { int error; off_t mediasize; u_int sectorsize; error = ioctl(fd, DIOCGMEDIASIZE, &mediasize); if (error) printf("ioctl(DIOCGMEDIASIZE) failed, probably not a disk."); error = ioctl(fd, DIOCGSECTORSIZE, §orsize); if (error) printf("DIOCGSECTORSIZE failed, probably not a disk."); printf("Sector size: %d \n", sectorsize); printf("Media size: %jd\n", (intmax_t)mediasize); printf("Media: %jd sectors\n", (intmax_t)mediasize/sectorsize); return(error); } --------------- -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 10:12:22 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C28DC16A47B for ; Fri, 23 Jun 2006 10:12:22 +0000 (UTC) (envelope-from jchoque@tlmat.unican.es) Received: from luna.tlmat.unican.es (luna.tlmat.unican.es [193.144.186.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24E4243D48 for ; Fri, 23 Jun 2006 10:12:21 +0000 (GMT) (envelope-from jchoque@tlmat.unican.es) Received: from Altair (altair.tlmat.unican.es [193.144.186.43]) by luna.tlmat.unican.es (8.12.11/8.12.11) with ESMTP id k5N9ndgw007279 for ; Fri, 23 Jun 2006 11:49:40 +0200 From: "Johnny Choque" To: Date: Fri, 23 Jun 2006 12:12:17 +0200 Message-ID: <006701c696ad$81b41850$2bba90c1@Altair> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 thread-index: AcaWrYFnWtXOi3fMRcegmX6lFp410w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 Subject: Virtual device driver programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:12:22 -0000 Hi all, I'm interested in programming a virtual network device driver -Linux concept- on a FreeBSD box. The idea behind of this sort of interface is the following: "From the kernel's point of view, a network interface is a software object that can process outgoing packets, and the actual transmission mechanism remains hidden inside the interface driver. Even though most interfaces are associated to physical devices (or, for the loopback interface, to a software-only data loop), it is possible to design network interface drivers that rely on other interfaces to perform actual packet transmission. The idea of a ``virtual'' interface can be useful to implement special-purpose processing on data packets while avoiding to hack with the network subsystem of the kernel." I know that is not too complicated to program this sort of functionality in linux but I would like to do it over freebsd, has anybody some idea on how could I start doing it? I've been searching in the freebsd handbook but I haven't found anything really relevant. Regards, Johnny PS: You can find more information about virtual network device driver in the following link: http://www.linux.it/~rubini/docs/vinter/vinter.html From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 10:21:05 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 39A5016A47B for ; Fri, 23 Jun 2006 10:21:05 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E40743D4C for ; Fri, 23 Jun 2006 10:21:03 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k5NAKtWD028663; Fri, 23 Jun 2006 13:20:55 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Fri, 23 Jun 2006 13:20:55 +0300 (EEST) From: Dmitry Pryanishnikov To: Johnny Choque In-Reply-To: <006701c696ad$81b41850$2bba90c1@Altair> Message-ID: <20060623131822.H22782@atlantis.atlantis.dp.ua> References: <006701c696ad$81b41850$2bba90c1@Altair> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Virtual device driver programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 10:21:05 -0000 Hello! On Fri, 23 Jun 2006, Johnny Choque wrote: > I'm interested in programming a virtual network device driver -Linux > concept- on a FreeBSD box. The idea behind of this sort of interface is the > following: > > "From the kernel's point of view, a network interface is a software object > that can process outgoing packets, and the actual transmission mechanism > remains hidden inside the interface driver. Even though most interfaces are > associated to physical devices (or, for the loopback interface, to a > software-only data loop), it is possible to design network interface drivers > that rely on other interfaces to perform actual packet transmission. The > idea of a ``virtual'' interface can be useful to implement special-purpose > processing on data packets while avoiding to hack with the network subsystem > of the kernel." Isn't this exactly the same thing that FreeBSD's Netgraph subsystem does? man 4 netgraph Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 13:55:43 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7DEF16A508 for ; Fri, 23 Jun 2006 13:55:43 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7193243D4C for ; Fri, 23 Jun 2006 13:55:43 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id D204246BC2; Fri, 23 Jun 2006 09:55:42 -0400 (EDT) Date: Fri, 23 Jun 2006 14:55:42 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Johnny Choque In-Reply-To: <006701c696ad$81b41850$2bba90c1@Altair> Message-ID: <20060623145326.U12942@fledge.watson.org> References: <006701c696ad$81b41850$2bba90c1@Altair> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Virtual device driver programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 13:55:43 -0000 On Fri, 23 Jun 2006, Johnny Choque wrote: > I'm interested in programming a virtual network device driver -Linux > concept- on a FreeBSD box. The idea behind of this sort of interface is the > following: > > "From the kernel's point of view, a network interface is a software object > that can process outgoing packets, and the actual transmission mechanism > remains hidden inside the interface driver. Even though most interfaces are > associated to physical devices (or, for the loopback interface, to a > software-only data loop), it is possible to design network interface drivers > that rely on other interfaces to perform actual packet transmission. The > idea of a ``virtual'' interface can be useful to implement special-purpose > processing on data packets while avoiding to hack with the network subsystem > of the kernel." > > I know that is not too complicated to program this sort of functionality in > linux but I would like to do it over freebsd, has anybody some idea on how > could I start doing it? I've been searching in the freebsd handbook but I > haven't found anything really relevant. tap(4) and tun(4) describe pseudo-devices you can use to instantiate ethernet and tunnel interfaces from user space. Programs attach to pseudo-devices, and using read/write operations on the pseudo-device, can receive and generate packets on the network interface. In kernel, the ifnet(9) API is used to implement network interfaces -- nothing in the API requires that the under-side of a network interface be hardware. In fact, a great many network types without underlying hardware have been implemented, including the loopback interface, encapsulation interfaces, and the tap/tun interface drivers. Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 14:48:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F86816A492 for ; Fri, 23 Jun 2006 14:48:06 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7DCDA43D45 for ; Fri, 23 Jun 2006 14:48:05 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k5NElvIO053909 for ; Fri, 23 Jun 2006 17:47:57 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Fri, 23 Jun 2006 17:47:57 +0300 (EEST) From: Dmitry Pryanishnikov To: freebsd-hackers@freebsd.org Message-ID: <20060623173723.H39481@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Simple question about mmap() system call X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 14:48:06 -0000 Hello! I'm writing an utility that should examine some bytes of a large file and modify them - that't all. I've decided to mmap() the file: void *diskp; if ((fd=open(argv[1], O_RDWR)) == -1) err(EX_NOINPUT, "Can't open %s for readind and writing", argv[1]); if ((diskp=mmap(NULL, 512, PROT_READ | PROT_WRITE, 0, fd, 0)) == MAP_FAILED) err(EX_IOERR, "Can't mmap() file"); printf("<%c>\n",* (char *)diskp); * (char *)diskp = '!'; if (msync(diskp, 0, MS_SYNC) || close(fd)) err(EX_IOERR, "Error closing file"); All proceeds w/o errors with the sample (2 bytes long) file, printf() shows actual first byte of my file. But modification doesn't get written back to the disk, file contents are unchanged after execution of my code. I'm sure I'm overlooking something very basic and stupid, but can't find what exactly. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 14:58:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8A9416A494 for ; Fri, 23 Jun 2006 14:58:18 +0000 (UTC) (envelope-from stas@310.ru) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id E367C43D45 for ; Fri, 23 Jun 2006 14:58:17 +0000 (GMT) (envelope-from stas@310.ru) Received: from [80.250.160.136] (helo=fonon.realnet) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1Ftn5W-0001We-0L for freebsd-hackers@freebsd.org; Fri, 23 Jun 2006 18:56:50 +0400 Received: from fonon.realnet (localhost [127.0.0.1]) by fonon.realnet (8.13.6/8.13.6) with ESMTP id k5NEvg05018585 for ; Fri, 23 Jun 2006 18:57:42 +0400 (MSD) (envelope-from stas@fonon.realnet) Received: (from stas@localhost) by fonon.realnet (8.13.6/8.13.6/Submit) id k5NEvfNI018584; Fri, 23 Jun 2006 18:57:41 +0400 (MSD) (envelope-from stas) Date: Fri, 23 Jun 2006 18:57:41 +0400 From: Stanislav Sedov To: freebsd-hackers@freebsd.org Message-Id: <20060623185741.71a441ec.stas@310.ru> In-Reply-To: <20060623173723.H39481@atlantis.atlantis.dp.ua> References: <20060623173723.H39481@atlantis.atlantis.dp.ua> Organization: MBSD labs, Inc. X-Mailer: carrier-pigeon X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Fri__23_Jun_2006_18_57_41_+0400_x5_m2pwdgUT0FRbx" X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.5.2 Subject: Re: Simple question about mmap() system call X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 14:58:18 -0000 --Signature=_Fri__23_Jun_2006_18_57_41_+0400_x5_m2pwdgUT0FRbx Content-Type: text/plain; charset=KOI8-R Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 23 Jun 2006 17:47:57 +0300 (EEST) Dmitry Pryanishnikov wrote: > Hello! >=20 > I'm writing an utility that should examine some bytes of a large file > and modify them - that't all. I've decided to mmap() the file: >=20 > void *diskp; >=20 > if ((fd=3Dopen(argv[1], O_RDWR)) =3D=3D -1) > err(EX_NOINPUT, "Can't open %s for readind and writing", argv[1]= ); >=20 > if ((diskp=3Dmmap(NULL, 512, > PROT_READ | PROT_WRITE, 0, fd, 0)) =3D=3D MAP_FAILED) > err(EX_IOERR, "Can't mmap() file"); >=20 > printf("<%c>\n",* (char *)diskp); > * (char *)diskp =3D '!'; >=20 > if (msync(diskp, 0, MS_SYNC) || close(fd)) > err(EX_IOERR, "Error closing file"); >=20 > All proceeds w/o errors with the sample (2 bytes long) file, printf() > shows actual first byte of my file. But modification doesn't get written = back=20 > to the disk, file contents are unchanged after execution of my code. I'm = sure=20 > I'm overlooking something very basic and stupid, but can't find what exac= tly. >=20 munmap(2)? --=20 Stanislav Sedov MBSD labs, Inc. =F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 http://mbsd.msk.ru -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 --Signature=_Fri__23_Jun_2006_18_57_41_+0400_x5_m2pwdgUT0FRbx Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEnAFlK/VZk+smlYERAvvvAJ4pCwXLpEZTqyEzKzWh30Nuw0OQNACdEVPI yO+PHwYDOS/u+pdllpPvaJk= =gULp -----END PGP SIGNATURE----- --Signature=_Fri__23_Jun_2006_18_57_41_+0400_x5_m2pwdgUT0FRbx-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 15:09:58 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7FF1D16A492 for ; Fri, 23 Jun 2006 15:09:58 +0000 (UTC) (envelope-from zazubrik@mail.ru) Received: from mx6.mail.ru (mx6.mail.ru [194.67.23.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id F022543D73 for ; Fri, 23 Jun 2006 15:09:57 +0000 (GMT) (envelope-from zazubrik@mail.ru) Received: from [195.149.104.96] (port=8367 helo=[10.13.66.7]) by mx6.mail.ru with esmtp id 1FtnIC-000CDO-00 for freebsd-hackers@freebsd.org; Fri, 23 Jun 2006 19:09:56 +0400 Mime-Version: 1.0 (Apple Message framework v750) Content-Transfer-Encoding: 7bit Message-Id: <922B6543-53D0-4877-9E97-B9ED1CDACFA8@mail.ru> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-hackers@freebsd.org From: Artem Ignatiev Date: Fri, 23 Jun 2006 19:09:52 +0400 X-Mailer: Apple Mail (2.750) Subject: Buses, devices and modules X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 15:09:58 -0000 Hi all, I have a question regarding probe and attach routines. I've got 2 modules: for bus (mybus.ko) and for device (mydev.ko) on that bus. mydev.ko has MODULE_DEPEND(mydev, mybus, 1, 1, 1); When kldloading mydev.ko, mybus.ko is loading automatically, then it founds its device, attaches properly, and mydev.ko after that founds its own device, and attaches to the bus, and all works fine. When I do 'echo mydev_load="YES" >>/boot/loader.conf', loader loads both mydev.ko and mybus.ko, and mybus.ko attaches properly, but mydev.ko don't attach to anything. I suppose this happens because mydev happens to probe for devices before mybus creates them, and fails to find anything to attach to. I'm looking for way to trigger the mydev driver to re-probe after the mybus driver actually creates the devices, or may be I'm missing something simple (like priority of module probing)? From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 15:18:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1EB7C16A4C2 for ; Fri, 23 Jun 2006 15:18:18 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3D78E43D72 for ; Fri, 23 Jun 2006 15:18:15 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k5NFI9SH069116; Fri, 23 Jun 2006 10:18:09 -0500 (CDT) (envelope-from dan) Date: Fri, 23 Jun 2006 10:18:09 -0500 From: Dan Nelson To: Dmitry Pryanishnikov Message-ID: <20060623151809.GF95588@dan.emsphone.com> References: <20060623173723.H39481@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060623173723.H39481@atlantis.atlantis.dp.ua> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: Simple question about mmap() system call X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 15:18:18 -0000 In the last episode (Jun 23), Dmitry Pryanishnikov said: > I'm writing an utility that should examine some bytes of a large > file and modify them - that't all. I've decided to mmap() the file: > > void *diskp; > > if ((fd=open(argv[1], O_RDWR)) == -1) > err(EX_NOINPUT, "Can't open %s for readind and writing", argv[1]); > > if ((diskp=mmap(NULL, 512, > PROT_READ | PROT_WRITE, 0, fd, 0)) == MAP_FAILED) > err(EX_IOERR, "Can't mmap() file"); Try adding MAP_SHARED. mmap defaults to private mappings, which means you changes don't get synched back to disk. I wonder how many programs would break if the mmap syscall returned an error if neither MAP_PRIVATE or MAP_SHARED were set... -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 17:05:11 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B42C16A47C for ; Fri, 23 Jun 2006 17:05:11 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 994D543D6B for ; Fri, 23 Jun 2006 17:05:06 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k5NH515c061220; Fri, 23 Jun 2006 20:05:01 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Fri, 23 Jun 2006 20:05:01 +0300 (EEST) From: Dmitry Pryanishnikov To: Konstantin Belousov In-Reply-To: <20060623150227.GK5115@deviant.kiev.zoral.com.ua> Message-ID: <20060623195551.A43353@atlantis.atlantis.dp.ua> References: <20060623173723.H39481@atlantis.atlantis.dp.ua> <20060623150227.GK5115@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Simple question about mmap() system call X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 17:05:11 -0000 Hello! On Fri, 23 Jun 2006, Konstantin Belousov wrote: >> if ((diskp=mmap(NULL, 512, >> PROT_READ | PROT_WRITE, 0, fd, 0)) == MAP_FAILED) >> err(EX_IOERR, "Can't mmap() file"); >> >> shows actual first byte of my file. But modification doesn't get written >> back to the disk, file contents are unchanged after execution of my code. >> I'm sure I'm overlooking something very basic and stupid, but can't find >> what exactly. > You forgot MAP_SHARED. Thank you! Yes, that's it. I would say that it's description MAP_SHARED Modifications are shared. is rather terse and doesn't explicitly says that w/o it data will not be stored back to the mmapped object. One can only deduce this behaviour, and deduction sometimes fails at the end of working day ;) Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 19:00:41 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B22CA16A49E; Fri, 23 Jun 2006 19:00:41 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 714DC43D4C; Fri, 23 Jun 2006 19:00:41 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.23.241]) ([10.251.23.241]) by a50.ironport.com with ESMTP; 23 Jun 2006 12:00:41 -0700 Message-ID: <449C3A58.6000709@elischer.org> Date: Fri, 23 Jun 2006 12:00:40 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson References: <006701c696ad$81b41850$2bba90c1@Altair> <20060623145326.U12942@fledge.watson.org> In-Reply-To: <20060623145326.U12942@fledge.watson.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Johnny Choque , freebsd-hackers@freebsd.org Subject: Re: Virtual device driver programming X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 19:00:41 -0000 Robert Watson wrote: > > On Fri, 23 Jun 2006, Johnny Choque wrote: > >> I'm interested in programming a virtual network device driver -Linux >> concept- on a FreeBSD box. The idea behind of this sort of interface >> is the following: >> >> "From the kernel's point of view, a network interface is a software >> object that can process outgoing packets, and the actual transmission >> mechanism remains hidden inside the interface driver. Even though >> most interfaces are associated to physical devices (or, for the >> loopback interface, to a software-only data loop), it is possible to >> design network interface drivers that rely on other interfaces to >> perform actual packet transmission. The idea of a ``virtual'' >> interface can be useful to implement special-purpose processing on >> data packets while avoiding to hack with the network subsystem of the >> kernel." >> >> I know that is not too complicated to program this sort of >> functionality in linux but I would like to do it over freebsd, has >> anybody some idea on how could I start doing it? I've been searching >> in the freebsd handbook but I haven't found anything really relevant. > > > tap(4) and tun(4) describe pseudo-devices you can use to instantiate > ethernet and tunnel interfaces from user space. Programs attach to > pseudo-devices, and using read/write operations on the pseudo-device, > can receive and generate packets on the network interface. In kernel, > the ifnet(9) API is used to implement network interfaces -- nothing in > the API requires that the under-side of a network interface be > hardware. In fact, a great many network types without underlying > hardware have been implemented, including the loopback interface, > encapsulation interfaces, and the tap/tun interface > drivers. > there is also gif(4) as well and if that is not enough the netgraph system gives you a toolkit to make your own kernel based virtual network interfaces. (ng_iface, ng_ether, ng_eiface (and others)) > Robert N M Watson > Computer Laboratory > University of Cambridge > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 23 22:27:12 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1634516A4A0 for ; Fri, 23 Jun 2006 22:27:12 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DC7943D6A for ; Fri, 23 Jun 2006 22:27:10 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k5NMR5Qi003451 for ; Sat, 24 Jun 2006 01:27:05 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Sat, 24 Jun 2006 01:27:05 +0300 (EEST) From: Dmitry Pryanishnikov To: freebsd-hackers@freebsd.org Message-ID: <20060624010644.Y82000@atlantis.atlantis.dp.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: mmap() vs. character special file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Jun 2006 22:27:12 -0000 Hello! mmap(2) manpage has the following title: NAME mmap -- allocate memory, or map files or devices into memory I'm curious about mmap()ing devices (particularly, HDD slices). The manpage mentions character special files only once: [EINVAL] MAP_ANON has not been specified and fd did not refer- ence a regular or character special file. So it looks like one should be able to mmap() a character special file (w/o MAP_ANON, of course). However, if I try to issue: if ((fd=open(argv[1], O_RDWR)) == -1) err(EX_NOINPUT, "Can't open %s for readind and writing", argv[1]); if ((diskp=mmap(NULL, label_offset + sizeof (struct disklabel), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) err(EX_IOERR, "Can't mmap() file"); against /dev/adXsY (adXsY and adXsYZ are _not_ mounted), I'm getting EINVAL from mmap(). Is mmap()ping a disk slice/partition impossible by design, or it just isn't implemented yet? IMHO manpage doesn't reply to this question. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 00:06:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A880C16A492 for ; Sat, 24 Jun 2006 00:06:55 +0000 (UTC) (envelope-from stas@310.ru) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id E20B043D45 for ; Sat, 24 Jun 2006 00:06:54 +0000 (GMT) (envelope-from stas@310.ru) Received: from [213.87.86.29] (helo=fonon.realnet) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1FtveJ-0006V4-0G for freebsd-hackers@freebsd.org; Sat, 24 Jun 2006 04:05:20 +0400 Received: from fonon.realnet (localhost [127.0.0.1]) by fonon.realnet (8.13.6/8.13.6) with ESMTP id k5O065Rs044469 for ; Sat, 24 Jun 2006 04:06:05 +0400 (MSD) (envelope-from stas@fonon.realnet) Received: (from stas@localhost) by fonon.realnet (8.13.6/8.13.6/Submit) id k5O063Af044468; Sat, 24 Jun 2006 04:06:03 +0400 (MSD) (envelope-from stas) Date: Sat, 24 Jun 2006 04:06:03 +0400 From: Stanislav Sedov To: freebsd-hackers@freebsd.org Message-Id: <20060624040603.594c44bc.stas@310.ru> In-Reply-To: <20060624010644.Y82000@atlantis.atlantis.dp.ua> References: <20060624010644.Y82000@atlantis.atlantis.dp.ua> Organization: MBSD labs, Inc. X-Mailer: carrier-pigeon X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Sat__24_Jun_2006_04_06_03_+0400_1DiBAEdzRAxbo6rp" X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.5.2 Subject: Re: mmap() vs. character special file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 00:06:55 -0000 --Signature=_Sat__24_Jun_2006_04_06_03_+0400_1DiBAEdzRAxbo6rp Content-Type: text/plain; charset=KOI8-R Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, 24 Jun 2006 01:27:05 +0300 (EEST) Dmitry Pryanishnikov wrote: > Hello! >=20 > mmap(2) manpage has the following title: >=20 > NAME > mmap -- allocate memory, or map files or devices into memory >=20 > I'm curious about mmap()ing devices (particularly, HDD slices). The manpa= ge > mentions character special files only once: >=20 > [EINVAL] MAP_ANON has not been specified and fd did not r= efer- > ence a regular or character special file. >=20 > So it looks like one should be able to mmap() a character special file (w= /o=20 > MAP_ANON, of course). However, if I try to issue: >=20 > if ((fd=3Dopen(argv[1], O_RDWR)) =3D=3D -1) > err(EX_NOINPUT, "Can't open %s for readind and writing", argv[1]= ); >=20 > if ((diskp=3Dmmap(NULL, label_offset + sizeof (struct disklabel), > PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0)) =3D=3D MAP_FAILED) > err(EX_IOERR, "Can't mmap() file"); >=20 > against /dev/adXsY (adXsY and adXsYZ are _not_ mounted), I'm getting EINV= AL > from mmap(). Is mmap()ping a disk slice/partition impossible by design, o= r it > just isn't implemented yet? IMHO manpage doesn't reply to this question. >=20 You cannot mmap ata devices (as well as scsi ones), since mmap functions was not implemented. Actually, only few devices have such support (e.g. drm, bktr). mmap requires device to return pointer to contigues memory range -=20 drm, for example, returns pointer to physical memory of the graphical adapter. Implementing mmap for disk devices involves complicated VM intercations, since you cannot simply return pointer to "physical" memory. Actually, implementing mmap, IMHO, doesn't worth efforts to do this. --=20 Stanislav Sedov MBSD labs, Inc. =F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 http://mbsd.msk.ru -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 --Signature=_Sat__24_Jun_2006_04_06_03_+0400_1DiBAEdzRAxbo6rp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEnIHrK/VZk+smlYERAv+0AJ9qLE15svuMk21Xz5WXMJBbtlekyQCfSvFD 6MsdGa0ghFgxEJll0dJQCaA= =UduD -----END PGP SIGNATURE----- --Signature=_Sat__24_Jun_2006_04_06_03_+0400_1DiBAEdzRAxbo6rp-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 06:46:46 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A83A616A492 for ; Sat, 24 Jun 2006 06:46:46 +0000 (UTC) (envelope-from mrcpu@mathisen.org) Received: from mathisen.org (main.mathisen.org [70.58.179.172]) by mx1.FreeBSD.org (Postfix) with SMTP id B278643D45 for ; Sat, 24 Jun 2006 06:46:45 +0000 (GMT) (envelope-from mrcpu@mathisen.org) Received: (qmail 82405 invoked by uid 29999); 24 Jun 2006 06:54:11 -0000 Date: Fri, 23 Jun 2006 23:54:11 -0700 From: Jaye Mathisen To: hackers@freebsd.org Message-ID: <20060624065411.GJ884@main.mathisen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Sat, 24 Jun 2006 11:13:39 +0000 Cc: Subject: Quotas not working in 6.1+? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 06:46:46 -0000 Quotas don't seem to be working. Or whatever I did in 5.x that worked fine has subtly changed in such a way that I can't see the documentation differences. >From single user mode, mount -o userquota -t ufs /dev/ad0s1e /usr mounts fine without any messages, but mount doesn't show it having quota enabled. sl4# ls -l /usr/*quot* -rw-r----- 1 root operator 2097120 Jun 23 22:28 /usr/quota.group -rw-r----- 1 root operator 2097120 Jun 24 01:16 /usr/quota.user sl4# quotaon -va quotaon: using /usr/quota.group on quotaon: /usr: Operation not supported quotaon: using /usr/quota.user on quotaon: /usr: Operation not supported sl4# uname -a FreeBSD sl4.mathisen.org 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jun 24 00:19:50 PDT 2006 root@sl4.mathisen.org:/usr/src/sys/i386/compile/S4 i386 sl4# grep quo /etc/fstab /dev/ad0s1e /usr ufs rw,userquota,groupquota 2 2 sl4# grep -i quo /sys/i386/conf/S4 options QUOTA sl4# grep quo /etc/rc.conf check_quotas="YES" enable_quotas="YES" sl4# sysctl -a | grep quo net.inet.icmp.quotelen: 8 security.bsd.unprivileged_get_quota: 0 sl4# strings /boot/kernel/kernel | grep -i quot getquota vfs_stdquotactl setquota ufs_quotactl getinoquota quotaon quotaoff quotelen Number of bytes from original packet to quote in ICMP reply UFS quota unprivileged_get_quota Unprivileged processes may retrieve quotas for other uids and gids disk quota exceeded for too long disk quota exceeded inode quota exceeded inode quota exceeded for too long dqsync: dquot dqget: free dquot isn't dqflush: stray dquot ufs_chown: lost quota sl4# mount /dev/ad0s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s1e on /usr (ufs, local, soft-updates) /dev/ad0s1d on /var (ufs, local, soft-updates) procfs on /proc (procfs, local) A quick search on google didn't show anything really useful. From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 16:30:22 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DBAC16A4A0 for ; Sat, 24 Jun 2006 16:30:22 +0000 (UTC) (envelope-from mitchell@cloudynwuk.force9.co.uk) Received: from pih-relay06.plus.net (pih-relay06.plus.net [212.159.14.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id D13D743D5E for ; Sat, 24 Jun 2006 16:30:21 +0000 (GMT) (envelope-from mitchell@cloudynwuk.force9.co.uk) Received: from [81.174.213.13] (helo=hal) by pih-relay06.plus.net with esmtp (Exim) id 1FuB1X-00042c-5C; Sat, 24 Jun 2006 17:30:19 +0100 Received: from 127.0.0.1 (AVG SMTP 7.1.394 [268.9.3/374]); Sat, 24 Jun 2006 17:30:37 +0100 Message-ID: <000101c697ab$8684f4e0$0dd5ae51@hal> From: "Frank Mitchell" To: "Andrew" References: <1151008839.2360.30.camel@LatitudeFC5.network> Date: Sat, 24 Jun 2006 17:20:49 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 16:30:22 -0000 Let's assume your Block Device is an ATA Hard Disk and you're using FreeBSD 6.0 like me. Take a look at and you'll see a large fully-commented structure, "struct ata_params", which is used to return the information from the ATA "IDENTIFY DEVICE" command using something like: "ioctl(DevFil,IOCATAGPARM,&Parms);" This probably tells you everything you need. Plus IOCATAGPARM also returns CD/DVD Drive information using the related IDENTIFY PACKET DEVICE command. For further details consult the T13 Website. For ATA/ATAPI you might start with: "T13 1153D Revision 18" "Information Technology - AT Attachment with Packet Interface Extension (ATA/ATAPI-4)". Though there are later versions: "T13 1321D" (ATA/ATAPI-5) and "T13 1410D" (ATA/ATAPI-6). Whatever device you have there's probably some Hardware Command which gives you all the technical details. Faictz Ce Que Vouldras: Frank Mitchell -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.9.3/374 - Release Date: 23/06/2006 From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 18:38:13 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6AC3316A47B for ; Sat, 24 Jun 2006 18:38:13 +0000 (UTC) (envelope-from bob@tamara-b.org) Received: from olm.blythe-systems.com (olm.blythe-systems.com [69.94.64.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D6B5F43D48 for ; Sat, 24 Jun 2006 18:38:11 +0000 (GMT) (envelope-from bob@tamara-b.org) Received: from tamara-b.org (uucp@localhost) by olm.blythe-systems.com (8.11.6/8.11.6) with UUCP id k5OIc8r20568 for freebsd-hackers@freebsd.org; Sat, 24 Jun 2006 14:38:08 -0400 Received: from [127.0.0.1] (voyager [127.0.0.1]) by localhost.localdomain (8.12.8/8.12.8) with ESMTP id k5OIa6En012481 for ; Sat, 24 Jun 2006 14:36:07 -0400 Message-ID: <449D8616.5040306@tamara-b.org> Date: Sat, 24 Jun 2006 14:36:06 -0400 From: Bob Richards Organization: M/V Tamara B User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.6.0.104 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.94.0.0 OpenPGP: id=F2DBFD9C; url=http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xD652FFB3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: A New FreeBSD Server X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bob@tamara-b.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 18:38:13 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Folks: This is my first post here. I believe it is the correct list for my questions. If not, please excuse me and direct me to the proper list. I have been using Linux as my WorkStation since V0.98 Kernel, so I know a bit about NIX's I am giving up on Linux for various reasons which I won't go into here. I am setting up a Dell 2400 Server for FreeBSD use. I ordered the Big $79.00 CD/Manual set for 6.1, and it should arrive in a few days. In the mean time I am setting up the server. The Dell, a dual CPU machine, has a PERC 2/Si controler, with 6 17GB drives. I am in the process of verifying/formating the individual drives as I type. The next step will be to create containers, which will appear as DRIVES to the new OS. My question is what is the best configuration for FreeBsd? I want some form of RAID, and as fast a file system as is possible. I will be doing a very COMPLETE install, as I like to do things like switch from KDE to Gnome once in a while, and have tons of office-type apps. I need a full "C" development system, as well as a complete FreePascal setup. My CVS Repository is around 10GB, and my Home dir currently has 10GB of additional stuff :-( Swap drive, should probably be a piece of one of the 17GB drives (NO RAID) the Box has 500MB ram...... Any and all suggestions Oh..... one more thing. This box has no multimedia card, I need to purchase one, any sugestions on this score? TIA Bob - -- PGP Encrypted E-Mail Preferred Public Key at: http://pgp.mit.edu:11371/pks/lookup?op=vindex&search=0xD652FFB3 . -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFEnYYVeoERI/Lb/ZwRAqPLAKCEgRbMGW9ckOH3jImeKNUiV1ibtgCeKds9 l83gwPlkxKat8SnZfs3fmxs= =ZG35 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 18:48:59 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC26C16A4C2 for ; Sat, 24 Jun 2006 18:48:59 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 842D943D69 for ; Sat, 24 Jun 2006 18:48:55 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.22] (andersonbox2.centtech.com [192.168.42.22]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k5OIms7Y037799; Sat, 24 Jun 2006 13:48:54 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <449D8923.5000902@centtech.com> Date: Sat, 24 Jun 2006 13:49:07 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.4 (X11/20060612) MIME-Version: 1.0 To: bob@tamara-b.org References: <449D8616.5040306@tamara-b.org> In-Reply-To: <449D8616.5040306@tamara-b.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1562/Fri Jun 23 02:50:07 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: A New FreeBSD Server X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 18:49:00 -0000 Bob Richards wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Folks: > > This is my first post here. I believe it is the correct list for my questions. If not, > please excuse me and direct me to the proper list. > > I have been using Linux as my WorkStation since V0.98 Kernel, so I know a bit about NIX's > I am giving up on Linux for various reasons which I won't go into here. Welcome to FreeBSD land.. :) > I am setting up a Dell 2400 Server for FreeBSD use. I ordered the Big $79.00 CD/Manual set > for 6.1, and it should arrive in a few days. In the mean time I am setting up the server. > > The Dell, a dual CPU machine, has a PERC 2/Si controler, with 6 17GB drives. I am in the > process of verifying/formating the individual drives as I type. The next step will be to > create containers, which will appear as DRIVES to the new OS. > > My question is what is the best configuration for FreeBsd? I want some form of RAID, and > as fast a file system as is possible. I will be doing a very COMPLETE install, as I like > to do things like switch from KDE to Gnome once in a while, and have tons of office-type > apps. I need a full "C" development system, as well as a complete FreePascal setup. My CVS > Repository is around 10GB, and my Home dir currently has 10GB of additional stuff :-( > > Swap drive, should probably be a piece of one of the 17GB drives (NO RAID) the Box has > 500MB ram...... One way to do this would be to set up two drives as a mirror, and the other 4 drives as either a RAID 5, or for more performance a RAID10 (a mirrored pair of 2 disk stripes). Once you've got the OS installed, you'll want to check out the ports collection (make sure you install it during the install) - cd to /usr/ports/ and look around. The Handbook (on freebsd.org) is absolutely incredible, and tells you nearly everything you need to know about nearly everything FreeBSD related, so I'd suggest looking at the section on the ports collection. There are roughly 15,000 ports that you can install easily, to get your KDE/GNOME environment just how you want it. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 19:32:33 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0269016A4A0 for ; Sat, 24 Jun 2006 19:32:33 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: from mired.org (vpn.mired.org [66.92.153.74]) by mx1.FreeBSD.org (Postfix) with SMTP id 4F54143D69 for ; Sat, 24 Jun 2006 19:32:28 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers2.e313df@mired.org) Received: (qmail 18126 invoked by uid 1001); 24 Jun 2006 19:32:27 -0000 Received: by bhuda.mired.org (tmda-sendmail, from uid 1001); Sat, 24 Jun 2006 15:32:27 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17565.37706.966913.737964@bhuda.mired.org> Date: Sat, 24 Jun 2006 15:32:26 -0400 To: bob@tamara-b.org In-Reply-To: <449D8616.5040306@tamara-b.org> References: <449D8616.5040306@tamara-b.org> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: freebsd-hackers@freebsd.org Subject: Re: A New FreeBSD Server X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 19:32:33 -0000 In <449D8616.5040306@tamara-b.org>, Bob Richards typed: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi Folks: > > This is my first post here. I believe it is the correct list for my questions. If not, > please excuse me and direct me to the proper list. > > I have been using Linux as my WorkStation since V0.98 Kernel, so I know a bit about NIX's > I am giving up on Linux for various reasons which I won't go into here. > > I am setting up a Dell 2400 Server for FreeBSD use. I ordered the Big $79.00 CD/Manual set > for 6.1, and it should arrive in a few days. In the mean time I am setting up the server. > > The Dell, a dual CPU machine, has a PERC 2/Si controler, with 6 17GB drives. I am in the > process of verifying/formating the individual drives as I type. The next step will be to > create containers, which will appear as DRIVES to the new OS. > > My question is what is the best configuration for FreeBsd? I want some form of RAID, and > as fast a file system as is possible. I will be doing a very COMPLETE install, as I like > to do things like switch from KDE to Gnome once in a while, and have tons of office-type > apps. I need a full "C" development system, as well as a complete FreePascal setup. My CVS > Repository is around 10GB, and my Home dir currently has 10GB of additional stuff :-( One of the things I like about FreeBSD is that it installs the developer tools. One of the goals is (or was?) that a base install should be able to rebuild the system. So you get a complete C environment when you install the system. Likewise, packages don't come in "user" and "dev" variants - if you install something, you get the complete package, including all the things needed to compile code against the package. > Swap drive, should probably be a piece of one of the 17GB drives (NO RAID) the Box has > 500MB ram...... Why not RAID your swap? The extra reliability might not be worth very much, but the extra performance couldn't hurt - unless you don't plan on swapping at all. This is enough of a win that the swap subsystem will interleave swap usage across multiple drives, a facility that predates RAID. If you just split your swap across multiple drives, you get RAID0 behavior from swap. The other constraint on swap is that if you want the system to save a core dump if it panics, you need a device to dump on that's 64Kb bigger than ram. That's one device, not all of swap. FreeBSD has memory-backed file systems that use swap (I don't know if Linux has those or not), and it's generally a performance win to mount transient file systems on such. Doing this with /tmp and /var is common enough that there are rc.conf knobs to do this automatically at boot time. Those typically come from swap, with a variety of ways of allocating memory. See the "md" man page for details. So you can get that use out of swap, even if your processes don't swap much. You may be a little light on the ram. My desktop runs just fine in 512Mb, but I don't run GUI-heavy things like Gnome or KDE. I'd plan to add more RAM if I were you, because adding RAM is easy. Reconfiguring your disk system to add more swap so you can still get core dumps is noticably harder. So you might want to pretend you're allocating swap for a machine with a gig of ram, and put two 1gig+64K swap partitions on different spindles. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 22:20:28 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8FA4316A494 for ; Sat, 24 Jun 2006 22:20:28 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail25.syd.optusnet.com.au (mail25.syd.optusnet.com.au [211.29.133.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id C435A43D4C for ; Sat, 24 Jun 2006 22:20:27 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail25.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k5OMKAPS010942 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 25 Jun 2006 08:20:11 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k5OMK9RS007271; Sun, 25 Jun 2006 08:20:09 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k5OMK9cP007270; Sun, 25 Jun 2006 08:20:09 +1000 (EST) (envelope-from peter) Date: Sun, 25 Jun 2006 08:20:08 +1000 From: Peter Jeremy To: Dmitry Pryanishnikov Message-ID: <20060624222008.GD747@turion.vk2pj.dyndns.org> References: <20060624010644.Y82000@atlantis.atlantis.dp.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UFHRwCdBEJvubb2X" Content-Disposition: inline In-Reply-To: <20060624010644.Y82000@atlantis.atlantis.dp.ua> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: mmap() vs. character special file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 22:20:28 -0000 --UFHRwCdBEJvubb2X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, 2006-Jun-24 01:27:05 +0300, Dmitry Pryanishnikov wrote: >So it looks like one should be able to mmap() a character special file (w/= o=20 >MAP_ANON, of course). However, if I try to issue: If you have the kernel source handy, you can check which devices support mmap() by looking for a 'd_mmap' entry in their struct cdevsw. --=20 Peter Jeremy --UFHRwCdBEJvubb2X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEnbqX/opHv/APuIcRAjR6AKC12cNcPDKpzNMZwVFvWyEEgznpNwCgt6hv 11oibmpj9X9vGGkx+7/klXY= =h3O9 -----END PGP SIGNATURE----- --UFHRwCdBEJvubb2X-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 22:21:15 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E527E16A492 for ; Sat, 24 Jun 2006 22:21:14 +0000 (UTC) (envelope-from andrew.chace@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34A5F43D45 for ; Sat, 24 Jun 2006 22:21:14 +0000 (GMT) (envelope-from andrew.chace@gmail.com) Received: by ug-out-1314.google.com with SMTP id m3so401057uge for ; Sat, 24 Jun 2006 15:21:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=TWifmTmIQ09WYjArLlm83+Huj6McB0ifbNmB/2AmhrKGFErd6wvi51OP/qgRDuPzixOtBHA4tpwUxPGV6pyNMOUH+cerh9GksvECJbC7zmHZppLNs29Soq6AmoiYuUxC30O/mJMDzaICXo8aW5su8T5pyAPzPvAW/tp6Amw5dzc= Received: by 10.78.97.7 with SMTP id u7mr1662584hub; Sat, 24 Jun 2006 15:21:12 -0700 (PDT) Received: by 10.78.120.1 with HTTP; Sat, 24 Jun 2006 15:21:12 -0700 (PDT) Message-ID: <5af45dee0606241521r1deda55fh235aac8edd58a49d@mail.gmail.com> Date: Sat, 24 Jun 2006 17:21:12 -0500 From: "andrew chace" To: "Frank Mitchell" In-Reply-To: <000101c697ab$8684f4e0$0dd5ae51@hal> MIME-Version: 1.0 References: <1151008839.2360.30.camel@LatitudeFC5.network> <000101c697ab$8684f4e0$0dd5ae51@hal> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Coding question: finding the size of a block device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 22:21:15 -0000 On 6/24/06, Frank Mitchell wrote: > > Let's assume your Block Device is an ATA Hard Disk and you're using > FreeBSD > 6.0 like me. > > Take a look at and you'll see a large fully-commented > structure, > "struct ata_params", which is used to return the information from the ATA > "IDENTIFY DEVICE" command using something like: > "ioctl(DevFil,IOCATAGPARM,&Parms);" > > This probably tells you everything you need. Plus IOCATAGPARM also returns > CD/DVD Drive information using the related IDENTIFY PACKET DEVICE command. > > For further details consult the T13 Website. For ATA/ATAPI you might start > with: "T13 1153D Revision 18" "Information Technology - AT Attachment with > Packet Interface Extension (ATA/ATAPI-4)". Though there are later > versions: > "T13 1321D" (ATA/ATAPI-5) and "T13 1410D" (ATA/ATAPI-6). > > Whatever device you have there's probably some Hardware Command which > gives > you all the technical details. > > Faictz Ce Que Vouldras: Frank Mitchell > > > > Hello, Thanks to all who have offered suggestions about how to tackle this problem. I have a number of different possiblities to consider here, and need to do some reading at this point to see which option would be best suited to this particular problem. Thanks very much for your advice! -Andrew From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 24 22:54:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B92216A4A6 for ; Sat, 24 Jun 2006 22:54:08 +0000 (UTC) (envelope-from dmitry@atlantis.dp.ua) Received: from postman.atlantis.dp.ua (postman.atlantis.dp.ua [193.108.47.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C655843D64 for ; Sat, 24 Jun 2006 22:54:07 +0000 (GMT) (envelope-from dmitry@atlantis.dp.ua) Received: from smtp.atlantis.dp.ua (smtp.atlantis.dp.ua [193.108.46.231]) by postman.atlantis.dp.ua (8.13.1/8.13.1) with ESMTP id k5OMrutb064655; Sun, 25 Jun 2006 01:53:56 +0300 (EEST) (envelope-from dmitry@atlantis.dp.ua) Date: Sun, 25 Jun 2006 01:53:56 +0300 (EEST) From: Dmitry Pryanishnikov To: Stanislav Sedov In-Reply-To: <20060624040603.594c44bc.stas@310.ru> Message-ID: <20060625013328.J47342@atlantis.atlantis.dp.ua> References: <20060624010644.Y82000@atlantis.atlantis.dp.ua> <20060624040603.594c44bc.stas@310.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=koi8-u; format=flowed Content-Transfer-Encoding: 8BIT Cc: freebsd-hackers@freebsd.org Subject: Re: mmap() vs. character special file X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jun 2006 22:54:08 -0000 Hello! On Sat, 24 Jun 2006, Stanislav Sedov wrote: >> I'm curious about mmap()ing devices (particularly, HDD slices). The manpage >> mentions character special files only once: > > You cannot mmap ata devices (as well as scsi ones), since mmap functions > was not implemented. Actually, only few devices have such support > (e.g. drm, bktr). > > mmap requires device to return pointer to contigues memory range - > drm, for example, returns pointer to physical memory of the graphical > adapter. > > Implementing mmap for disk devices involves complicated VM intercations, > since you cannot simply return pointer to "physical" memory. Actually, > implementing mmap, IMHO, doesn't worth efforts to do this. Thank you for the clarification. Actually I won't say that I can't live w/o mmap() support for disks ;) I consider mmap() to be handy when process should modify several bytes of the disk contents and write them back (e.g., disklabel edition). Of course, those tasks are very specific, so implementing mmap() just for them is an overkill. > Stanislav Sedov MBSD labs, Inc. > Россия, Москва http://mbsd.msk.ru Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE