From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 14 06:03:35 2005 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 E224616A41F for ; Sun, 14 Aug 2005 06:03:35 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from coe.ufrj.br (roma.coe.ufrj.br [146.164.53.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4EFFE43D45 for ; Sun, 14 Aug 2005 06:03:33 +0000 (GMT) (envelope-from jonny@jonny.eng.br) Received: from localhost (localhost [127.0.0.1]) by coe.ufrj.br (Postfix) with ESMTP id 5E5C017004; Sun, 14 Aug 2005 03:03:32 -0300 (BRT) Received: from coe.ufrj.br ([146.164.53.65]) by localhost (roma.coe.ufrj.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 41425-01; Sun, 14 Aug 2005 03:03:28 -0300 (BRT) Received: from [200.165.119.122] (200165119122.user.veloxzone.com.br [200.165.119.122]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by coe.ufrj.br (Postfix) with ESMTP id 2FA5517002; Sun, 14 Aug 2005 03:03:28 -0300 (BRT) Message-ID: <42FEDE50.8050107@jonny.eng.br> Date: Sun, 14 Aug 2005 03:01:52 -0300 From: =?UTF-8?B?Sm/Do28gQ2FybG9zIE1lbmRlcyBMdcOtcw==?= User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg Black References: <42FD15EA.8050500@jonny.eng.br> <20050812233728.GA22225@odin.ac.hmc.edu> <42FE1781.9050403@jonny.eng.br> In-Reply-To: Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAADBQ TFRFAAAAgAAAAIAAgIAAAACAgACAAICAgICAwMDA/wAAAP8A//8AAAD//wD/AP//////ex+xxAAA Ac9JREFUOMtdk8FupDAMhr1qRbjR2x77GD3uq7BS1TkuhyrmFnppcvOrUlUquXltJ2EAIw1Dvvz+ bRPgrQbU6NpzuY0AF1LABIc4AH9crxLwb/4VztEU42W9SOBezwX4ClzeLuC9PBFRq+2xpJJHN8KQ Oa9Hd/ACnldgUVADvgHKA2usVwW12BVSkrThJH+5lqqQXIAAvRkQM6WqkADpO5gBx5m5VOxRgBZV HRLRcgc4dv3ukbOBm3de8uHIe1n0BBUBIi4hi0U2ownGkkwrwN425ygVPjntsvOmkFyyXYfreHXq f1tugFLCFDhZcsffYIqxKNAB/FkNbBDslUTz0MMQfuRnkN6D5nLVQ0G2H3bWC6KByTZPZWhJ/jgs ChX3e/P5y0VReCUCYm0/pUQd1lQ4/aIty/YtW6y3WMHc8yazpcU8UuqqB+LfMql/wVx4kXNTwGQO PxTuL7+AhbSkWS4z0TdZFbo1BR6qQkA08DnogNNHey/SGc5GejqFttxhjBHd3rjd62nR08gnxeFr Ic2e52we+QC0rIg6KYn1AKQsbF3wcgAP00MZrZ6X0yc5v5TRXgTi/jtVwef5I6Y+J7kyb+d1eB6K 4LoOLphBW/8PdNW9dapKWXwAAAAASUVORK5CYII= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at coe.ufrj.br Cc: hackers@freebsd.org Subject: Re: File create permissions, what am I missing? 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, 14 Aug 2005 06:03:36 -0000 Greg Black wrote: > On 2005-08-13, Jo�o Carlos Mendes Lu�s wrote: > >>Brooks Davis wrote: >> >>>On BSD systems, the group of a file is always the group of the directory >>>it is in. This differs from SysV UNIX. The resident grey-beard at work >>>feels this is a new and annoying behavior. (i.e. it wasn't always this >>>way. :) >> >>So this is expected behavior? Isn't this someway insecure? > > > It is documented behaviour (see open(2) for details). How is it > insecure? I don't know how it could be unsecure. Is there any specifc reason for it to be different on SYSV and Linux? Or is it just a different choice? I could not find any vulnerability, but I do not like the idea that a user could create files belonging to a group himself does not belong. My first attempt was to mark this file setgid, but the system denies it: It is my file, but I am not in the file's group. That would be too easy. ;-) Nevertheless, if somebody leaves a directory writeable by anoybody, he should know what he's doing. If I could just make /tmp not writeable... ;-) From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 14 06:39:01 2005 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 D68AA16A41F for ; Sun, 14 Aug 2005 06:39:01 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pastinakel.tue.nl (pastinakel.tue.nl [131.155.2.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5AADA43D46 for ; Sun, 14 Aug 2005 06:39:01 +0000 (GMT) (envelope-from stijn@pcwin002.win.tue.nl) Received: from localhost (localhost [127.0.0.1]) by pastinakel.tue.nl (Postfix) with ESMTP id 5310A14BB53; Sun, 14 Aug 2005 08:39:00 +0200 (CEST) Received: from pastinakel.tue.nl ([127.0.0.1]) by localhost (pastinakel.tue.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13325-01; Sun, 14 Aug 2005 08:38:59 +0200 (CEST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by pastinakel.tue.nl (Postfix) with ESMTP id 90D1114BB48; Sun, 14 Aug 2005 08:38:59 +0200 (CEST) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.13.4/8.13.4/Submit) id j7E6cxfq046215; Sun, 14 Aug 2005 08:38:59 +0200 (CEST) (envelope-from stijn) Date: Sun, 14 Aug 2005 08:38:59 +0200 From: Stijn Hoop To: =?iso-8859-1?Q?Jo=E3o_Carlos_Mendes_Lu=EDs?= Message-ID: <20050814063859.GN26471@pcwin002.win.tue.nl> References: <42FD15EA.8050500@jonny.eng.br> <20050812233728.GA22225@odin.ac.hmc.edu> <42FE1781.9050403@jonny.eng.br> <42FEDE50.8050107@jonny.eng.br> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Q0rSlbzrZN6k9QnT" Content-Disposition: inline In-Reply-To: <42FEDE50.8050107@jonny.eng.br> User-Agent: Mutt/1.4.2.1i X-Bright-Idea: Let's abolish HTML mail! X-Virus-Scanned: amavisd-new at tue.nl Cc: hackers@freebsd.org Subject: Re: File create permissions, what am I missing? 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, 14 Aug 2005 06:39:01 -0000 --Q0rSlbzrZN6k9QnT Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Aug 14, 2005 at 03:01:52AM -0300, Jo=E3o Carlos Mendes Lu=EDs wrote: > I could not find any vulnerability, but I do not like the idea that a > user could create files belonging to a group himself does not belong. It can come in handy sometimes. I have apache setup in a specific group. The document root on which it operates is owned by a user that owns that website. The group owner of that directory is set to the apache group, and luckily the user does not need to be in that group. This way a user can control availability of files on the web by simply denying group access, without needing to belong to yet another group just for the sake of being able to do just that. --Stijn --=20 "I'm not under the alkafluence of inkahol that some thinkle peep I am. It's just the drunker I sit here the longer I get." --Q0rSlbzrZN6k9QnT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC/ucDY3r/tLQmfWcRApUcAJ4nLXDDbO52aCIIRVcIR0gSH16PLQCfVUXX ki9vNKRZTNQ32t/qTWbixpU= =Kx3/ -----END PGP SIGNATURE----- --Q0rSlbzrZN6k9QnT-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 14 07:49:54 2005 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 EF17B16A41F for ; Sun, 14 Aug 2005 07:49:54 +0000 (GMT) (envelope-from gjb@gbch.net) Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by mx1.FreeBSD.org (Postfix) with SMTP id ED61343D46 for ; Sun, 14 Aug 2005 07:49:53 +0000 (GMT) (envelope-from gjb@gbch.net) Received: (qmail 48053 invoked from network); 14 Aug 2005 17:49:51 +1000 Received: from iliad.gbch.net (172.16.1.9) by gw.gbch.net with SMTP; 14 Aug 2005 17:49:51 +1000 Received: (qmail 36600 invoked by uid 1001); 14 Aug 2005 17:49:50 +1000 Message-ID: Date: Sun, 14 Aug 2005 17:49:50 +1000 From: Greg Black To: =?iso-8859-1?Q?Jo=C3=A3o_Carlos_Mendes_Lu=C3=ADs?= References: <42FD15EA.8050500@jonny.eng.br> <20050812233728.GA22225@odin.ac.hmc.edu> <42FE1781.9050403@jonny.eng.br> <42FEDE50.8050107@jonny.eng.br> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <42FEDE50.8050107@jonny.eng.br> User-Agent: Mutt/1.4.2.1i; gjb-muttsend.sh 1.7 2004-10-05 X-Uptime: 58 days X-Operating-System: FreeBSD 5.4-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Blog: http://www.gbch.net/gjb/blog/ X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-PGP-Key-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-Request-PGP: http://www.gbch.net/keys/4B04B7D6.asc Cc: hackers@freebsd.org Subject: Re: File create permissions, what am I missing? 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, 14 Aug 2005 07:49:55 -0000 On 2005-08-14, João Carlos Mendes Luís wrote: > Greg Black wrote: >> On 2005-08-13, Jo�o Carlos Mendes Lu�s wrote: >>> Brooks Davis wrote: >>> >>>> On BSD systems, the group of a file is always the group of the directory >>>> it is in. This differs from SysV UNIX. The resident grey-beard at work >>>> feels this is a new and annoying behavior. (i.e. it wasn't always this >>>> way. :) >>> >>> So this is expected behavior? Isn't this someway insecure? >> >> It is documented behaviour (see open(2) for details). How is it >> insecure? > > I don't know how it could be unsecure. So why suggest that it is? If you find something that is actually insecure, by all means bring it to people's attention; but don't just randomly speculate without any evidence. The mere fact that it's unfamiliar to you or somehow different from your normal expectations is not in itself sufficient reason to proclaim that there's a problem. > Is there any specifc reason for it to be > different on SYSV and Linux? Or is it just a different choice? It's a different (and IMO better) choice. And if you care about the reasons, by all means track down the different histories that led to the choices that were made. But that's not really a topic to flog to death here. > I could not find any vulnerability, but I do not like the idea that a user could > create files belonging to a group himself does not belong. He can only do this if he has write permission in the directory in question and of course he also has write permission to the file. The fact that it might belong to a group he is not a member of is irrelevant to security. As has been pointed out, there are some useful things that you can do with this feature and, as always with these things, it's important to understand how things work before setting out to use them. And, while I'm at it, I'd point out that these questions are better put on the questions list, as they are not really in the domain of this list. Greg From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 13 20:35:48 2005 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 5641216A41F; Sat, 13 Aug 2005 20:35:48 +0000 (GMT) (envelope-from julian@elischer.org) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11F0543D45; Sat, 13 Aug 2005 20:35:47 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id B75EA1F9EC8; Sat, 13 Aug 2005 13:35:47 -0700 (PDT) Received: from [192.168.2.2] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j7DKZi82052024; Sat, 13 Aug 2005 13:35:45 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <42FE59A0.5080602@elischer.org> Date: Sat, 13 Aug 2005 13:35:44 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: "Dan Mahoney, System Admin" References: <20050812042749.H87994@prime.gushi.org> <20050812063359.A14229@xorpc.icir.org> <20050812224956.GG45385@obiwan.tataz.chchile.org> <20050812170348.A20828@xorpc.icir.org> <20050813044147.B61674@prime.gushi.org> In-Reply-To: <20050813044147.B61674@prime.gushi.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 14 Aug 2005 11:51:32 +0000 Cc: Luigi Rizzo , Jeremie Le Hen , net@freebsd.org Subject: Re: 5.4 -- bridging, ipfw, dot1q 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, 13 Aug 2005 20:35:48 -0000 Dan Mahoney, System Admin wrote: should be in -net not -hackers cc's changed accordingly.. > > After all, the demuxing is nothing more than ignoring a few extra bits > at the beginning of the packet. Which all my BPF stuff is doing nicely. > Snort, trafshow, etc all work fine and don't seem to choke on the extra > frames. > > I'd personally just be happy if ipfw was smart enough to know that if I > was using ip-type rules on something that's not ip...that it would > handle the demuxing automagically. > > i.e. ipfw add 100 deny ip from any to 192.168.1.1 mac-type vlan via em1 > > or maybe > > i.e. ipfw add 100 deny ip from any to 192.168.1.1 mac-type vlan-as-inet > via em1 > > Hi Dan. What it comes down to is just that no-one who has worked in ipfw has had your particular problem to solve. O/S gets done when people have a particular problem to solve. As for demultiplexing, well, you COULD pass it out to a netgraph node that strips off the header and stores the info in a tag, and then passes it back to ipfw, but I don't know how the details would work. (I haven't been in ifpw since it was rewritten). Alternatively you could use netgraph bridging and tehnetgraph vlan node type to achieve some sort of stripping.. (Once again, I'm just pointing you in this direction, not providing a full answer.) In 6.x netgraph has more options for this sort of thing with a direct interface between ipfw and netgraph. So, if you want to fix it, you could either do some work on ipfw or do some work on netgraph, but either way you'll probably need to do some work. Julian From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 14 15:13:14 2005 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 2818316A41F for ; Sun, 14 Aug 2005 15:13:14 +0000 (GMT) (envelope-from sentory@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEECA43D49 for ; Sun, 14 Aug 2005 15:13:13 +0000 (GMT) (envelope-from sentory@gmail.com) Received: by wproxy.gmail.com with SMTP id i22so850732wra for ; Sun, 14 Aug 2005 08:13:13 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=tmuxf8c4vYuBi9x4NVQHWb9NbM/FhWOcIrhmI2LlPn9+g8Kxp3dTKqyjrMrkgNap59OJuh5nWvw7KMGQDgnRq6ARukgKY2ehmL1WCZDZ63i9wDUiNpk3eJiJZusiNEEsKd3WlPLdjkrbTd5PXEu2Z/2+tdqwFdchQ6rdRuFhV7k= Received: by 10.54.37.64 with SMTP id k64mr3110569wrk; Sun, 14 Aug 2005 08:13:13 -0700 (PDT) Received: by 10.54.98.14 with HTTP; Sun, 14 Aug 2005 08:13:13 -0700 (PDT) Message-ID: <20dce8cf0508140813701e8571@mail.gmail.com> Date: Sun, 14 Aug 2005 21:13:13 +0600 From: To: hackers@freebsd.org In-Reply-To: <20050813120017.4C19F16A421@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050813120017.4C19F16A421@hub.freebsd.org> Cc: Subject: why nfs does not export ext2fs 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, 14 Aug 2005 15:13:14 -0000 Can freebsd export ext2fs as nfs mounts? why it gives error like... ext2fs doesn't support the old mount syscall. When i was looking for an answer this, i saw several people tried to patch the code? Anybody know possible solution? Please let me know at least place to find answer? Thank You Very much. Tharindu R. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 15 05:45:00 2005 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 1EF0716A41F for ; Mon, 15 Aug 2005 05:45:00 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from Neo-Vortex.net (203-217-81-6.dyn.iinet.net.au [203.217.81.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9A4A43D53 for ; Mon, 15 Aug 2005 05:44:58 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from localhost.Neo-Vortex.net (Neo-Vortex@localhost.Neo-Vortex.net [127.0.0.1]) by Neo-Vortex.net (8.13.3/8.13.3) with ESMTP id j7F5iIkv024143; Mon, 15 Aug 2005 15:44:20 +1000 (EST) (envelope-from root@Neo-Vortex.net) Date: Mon, 15 Aug 2005 15:44:18 +1000 (EST) From: Neo-Vortex To: "M. Warner Losh" In-Reply-To: <20050809.164636.112623550.imp@bsdimp.com> Message-ID: <20050815154220.C23503@Neo-Vortex.net> References: <20050809.133734.08360256.imp@bsdimp.com> <20050809212708.GS94041@cicely12.cicely.de> <20050809.164636.112623550.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: hackers@freebsd.org, ticso@cicely.de Subject: Re: Converting libfoo.so for linux to freebsd 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, 15 Aug 2005 05:45:00 -0000 On Tue, 9 Aug 2005, M. Warner Losh wrote: > In message: <20050809212708.GS94041@cicely12.cicely.de> > Bernd Walter writes: > : On Tue, Aug 09, 2005 at 01:37:34PM -0600, M. Warner Losh wrote: > : > I have recently purcahsed a device that comes with a .so for linux, > : > but no sources. Is there any way one can take an arbitrary linux .so > : > which appears to have no dependencies to a FreeBSD .so? The binary > : > code is about 20k or so. > : > : Isn't this just brandelf'ing to FreeBSD-i386? > : Asuming that the lib really has no dependencies to linux specific > : device/kernel features or linux specific libs. > > I tried brandelfing, but that didn't work. There's some weird symbols > in there: > > 00000000 DF *UND* 00000023 GLIBC_2.0 fprintf > 00000000 DF *UND* 000000f8 GLIBC_2.0 fflush > 00000000 DF *UND* 000001b4 GLIBC_2.0 malloc > 00000000 DF *UND* 00000058 GLIBC_2.0 memmove > 00000000 DO *UND* 00000004 GLIBC_2.0 stderr > 00000000 DF *UND* 0000020d GLIBC_2.0 abort > 00000000 DF *UND* 00000027 GLIBC_2.0 memcpy > 00000000 w DF *UND* 000000ac GLIBC_2.1.3 __cxa_finalize > 00000000 DF *UND* 00000043 GLIBC_2.0 memset > > So it looks like I'm close... objcopy -R kept the GLIBC_* references > in place, alas, so that didn't work, as suggested elsewhere in this > thread. > > The above list is small, but has hree bad entries: fprintf, fflush and > stderr. So that may present a problem for me if these functions are > ever called. > > Warner Well, those functions do exist... except for stderr, although that is a varible (libc) The problem is that when you brandelf a .so file, it dosen't do anything, whatever uses it must be brandelf'd and compiled for linux... (well, in my experience with it it does nothing that i have noticed) If you can compile whatever needs to use it as linux then brandelf it, it should work ~Neo-Vortex From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 15 09:11:48 2005 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 7F11C16A41F for ; Mon, 15 Aug 2005 09:11:48 +0000 (GMT) (envelope-from bryan@vanten.com) Received: from vtfw.vanten.com (49.15.215.202.rev.vanten.com [202.215.15.49]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9354043D46 for ; Mon, 15 Aug 2005 09:11:46 +0000 (GMT) (envelope-from bryan@vanten.com) Received: from [192.168.220.45] (coffee.office.vanten.com [192.168.220.45]) by vtfw.vanten.com (Postfix) with ESMTP id 22A336D52 for ; Mon, 15 Aug 2005 18:11:45 +0900 (JST) Message-ID: <43005CAD.2040602@vanten.com> Date: Mon, 15 Aug 2005 18:13:17 +0900 From: Bryan Buecking Organization: Vanten K.K. User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) 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 Subject: CVSup not working.. 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, 15 Aug 2005 09:11:48 -0000 I'm having issues with CVSup on a particular FreeBSD machine sitting inside my local network. I repeatedly get this error: Detailer failed: Network read failure: Connection timed out CVSup is able to download a couple of files at first, and then it seems to halt for some unknown reason (network/disk). I'm able to successfully sync via CVSup from another local FreeBSD using the same FW. I tried replacing my nic, using alternate cvsup servers, updating my bois, re-installing the OS, and running the machine on the outside network but nothing has remedied the problem. I will run memtest86 overnight to see if there's a memory module issue. I ran ktrace/kdump to see if the problem presented itself but nothing stuck out. Below I've attached some output about CVSup and am hoping someone might be able to help shed some light. I have a ktrace file, but choose not to attach it until I have exhausted all possibilities. -- Bryan Buecking My cvsup setup. nothappy# cat /usr/local/etc/cvsup/ports *default host=cvsup3.jp.FreeBSD.org *default base=/usr *default prefix=/usr *default release=cvs tag=RELENG_5_4 *default delete use-rel-suffix *default tag=. #*default compress src-all nothappy# uname -r 5.4-RELEASE #Start from a clean slate nothappy# rm -rf /usr/src/ nothappy# rm -rf /usr/sup/ nothappy# /usr/local/bin/cvsup -g -L2 /usr/local/etc/cvsup/ports Parsing supfile "/usr/local/etc/cvsup/ports" Connecting to cvsup3.jp.FreeBSD.org Connected to cvsup3.jp.FreeBSD.org Server software version: SNAP_16_1h Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection src-all/cvs Checkout src/COPYRIGHT Checkout src/LOCKS Checkout src/MAINTAINERS Checkout src/Makefile Checkout src/Makefile.inc1 Detailer failed: Network read failure: Connection timed out Will retry at 18:06:30 #Note: which file are being sync'd now. nothappy# /usr/local/bin/cvsup -g -L2 /usr/local/etc/cvsup/ports Parsing supfile "/usr/local/etc/cvsup/ports" Connecting to cvsup3.jp.FreeBSD.org Connected to cvsup3.jp.FreeBSD.org Server software version: SNAP_16_1h Negotiating file attribute support Exchanging collection information Establishing multiplexed-mode data connection Running Updating collection src-all/cvs Checkout src/Makefile.inc1 Checkout src/ObsoleteFiles.inc Checkout src/README Detailer failed: Network read failure: Connection timed out Will retry at 18:14:42 ^C nothappy# cvsup -v CVSup client, non-GUI version Copyright 1996-2003 John D. Polstra Software version: SNAP_16_1h Protocol version: 17.0 Operating system: FreeBSD4 http://www.cvsup.org/ Report problems to cvsup-bugs@polstra.com CVSup is a registered trademark of John D. Polstra From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 15 13:29:05 2005 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 DC85A16A41F; Mon, 15 Aug 2005 13:29:05 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53F2043D53; Mon, 15 Aug 2005 13:29:05 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with SMTP id j7FDSMXv050986; Mon, 15 Aug 2005 22:28:23 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Mon, 15 Aug 2005 22:28:22 +0900 (JST) Message-Id: <200508151328.j7FDSMXv050986@sakura.ninth-nine.com> From: Norikatsu Shigemura To: "M. Warner Losh" In-Reply-To: <20050812.111451.115909154.imp@bsdimp.com> References: <200508111847.j7BIlUvQ085453@sakura.ninth-nine.com> <20050811.135147.21959222.imp@bsdimp.com> <20050812070328.GA45385@obiwan.tataz.chchile.org> <20050812.111451.115909154.imp@bsdimp.com> X-Mailer: Sylpheed version 2.0.0 (GTK+ 2.6.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Mon, 15 Aug 2005 22:28:24 +0900 (JST) Cc: dnelson@allantgroup.com, hackers@FreeBSD.org, jeremie@le-hen.org, nork@FreeBSD.org, ume@FreeBSD.org Subject: Re: Converting libfoo.so for linux to freebsd 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, 15 Aug 2005 13:29:06 -0000 On Fri, 12 Aug 2005 11:14:51 -0600 (MDT) "M. Warner Losh" wrote: > In message: <20050812070328.GA45385@obiwan.tataz.chchile.org> > Jeremie Le Hen writes: > : Hi Warner, Norikatsu-san, > : > : Linuxpluginwrapper(LPW) is a most famous killer application > : > : of libmap.conf(5)! (I think:-) > : > Definitely. While threading games are interesting, the linux plugin > : > wrapper definitely is much more useful. > : Why don't import this in base system and wrap it in a user friendly > : tool ? Some kind of advanced Linux compatibility. > The wrapper is specific for each library or plug-in that it wraps. It > might be hard to generalize enough to warrant inclusion in the base... I don't know in the base... But LPW Episode II will provide following feature: 1. Integratied Plugin Wrapper Library The early LPW was implemented few functions, and unstable which I thinked. To implement core functions needed by Netscape Plugins, so I splited pluginwrapper. But recently, I noticed that some functions are required by some plugins. As result, I made similar wrapper libraries. So I'll try to integrate wrapper library. 2. Add AMD64 Target Architecture I didn't make wrapper library for i386. So I'll try to split MI/MD:-). But I cannot implement amd64->i386 wrapper:-(. 3. Improved Source Tree I'll try to change source tree like FreeBSD's src/lib/libc. From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 15 17:05:48 2005 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 2A4B616A421 for ; Mon, 15 Aug 2005 17:05:48 +0000 (GMT) (envelope-from samuel.pierson@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.207]) by mx1.FreeBSD.org (Postfix) with ESMTP id B397843D46 for ; Mon, 15 Aug 2005 17:05:47 +0000 (GMT) (envelope-from samuel.pierson@gmail.com) Received: by wproxy.gmail.com with SMTP id i22so1024204wra for ; Mon, 15 Aug 2005 10:05:46 -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=iZOasOv5vTo6ElhJXQTLNm7IH3g9lB3mHSxYPWm6ofOFCrz7K9QT60B3JNK2YvkRaA8bmmNn/Syu7jS8LVKIQiB83SRg3ZanjtCKBlFjZDbgIE3tYyZ3gdBYCScQNcr9rfe5c6yWGMpLDUBYe84B+VFI+IoOYUaX8aonenJ4q0Y= Received: by 10.54.37.16 with SMTP id k16mr3709867wrk; Mon, 15 Aug 2005 10:05:46 -0700 (PDT) Received: by 10.54.144.1 with HTTP; Mon, 15 Aug 2005 10:05:46 -0700 (PDT) Message-ID: Date: Mon, 15 Aug 2005 12:05:46 -0500 From: Sam Pierson To: FreeBSD Hackers Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: calling ath_update_txpow 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, 15 Aug 2005 17:05:48 -0000 Hi all, I have been looking at this function in if_ath.c: static void ath_update_txpow(struct ath_softc *sc) Is there an example somewhere of using this function in a user-space application to control the signal strength? Up until this point I've just been stringing together system() calls saying "ifconfig ath0 txpower" and it's very dirty. I'd like to be able to actually use the device driver and not ifconfig. -Sam From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 15 17:22:43 2005 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 DA3C616A41F for ; Mon, 15 Aug 2005 17:22:43 +0000 (GMT) (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 74C7A43D45 for ; Mon, 15 Aug 2005 17:22:43 +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 j7FHMh8r016973; Mon, 15 Aug 2005 10:22:43 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7FHMhf2016972; Mon, 15 Aug 2005 10:22:43 -0700 Date: Mon, 15 Aug 2005 10:22:43 -0700 From: Brooks Davis To: Sam Pierson Message-ID: <20050815172243.GD8859@odin.ac.hmc.edu> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="6WlEvdN9Dv0WHSBl" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: FreeBSD Hackers Subject: Re: calling ath_update_txpow 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, 15 Aug 2005 17:22:44 -0000 --6WlEvdN9Dv0WHSBl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 15, 2005 at 12:05:46PM -0500, Sam Pierson wrote: > Hi all, >=20 > I have been looking at this function in if_ath.c: >=20 > static void > ath_update_txpow(struct ath_softc *sc) >=20 > Is there an example somewhere of using this function in > a user-space application to control the signal strength? > Up until this point I've just been stringing together system() > calls saying "ifconfig ath0 txpower" and it's very dirty. I'd like > to be able to actually use the device driver and not ifconfig. ath_update_txpow is a kernel function and can not be called from an application. If you want to avoid calling ifconfig by hand, you need to do what it does and use the IOCTL interface to the 802.11 layer. -- 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 --6WlEvdN9Dv0WHSBl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDAM9iXY6L6fI4GtQRApnBAKCXIH1a89iTq0OlKv5njx6CyTwyjQCfcnyU pxoA6hHIU6s+xJsqgcftnak= =HSYl -----END PGP SIGNATURE----- --6WlEvdN9Dv0WHSBl-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 06:41:10 2005 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 ADF9B16A41F for ; Tue, 16 Aug 2005 06:41:10 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web52104.mail.yahoo.com (web52104.mail.yahoo.com [206.190.48.107]) by mx1.FreeBSD.org (Postfix) with SMTP id 305F443D46 for ; Tue, 16 Aug 2005 06:41:10 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 86122 invoked by uid 60001); 16 Aug 2005 06:41:09 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Lg4nEWh/KDwnuDu10fzIYSiv6I3UIlfOhvJL8y5W/mSj3UpNLdVdMOMROheEqLsfPH/Vk8Kvy3hDfPHEtDuGUgyY78DE6dUHzea/aKU3LAgXlDiC8bTqvMJMSLozIUPmQncFsnsKVl3+t7SnbsTav+8J4JwvK+mN+xvKV3oyvN4= ; Message-ID: <20050816064109.86120.qmail@web52104.mail.yahoo.com> Received: from [202.134.67.19] by web52104.mail.yahoo.com via HTTP; Mon, 15 Aug 2005 23:41:09 PDT Date: Mon, 15 Aug 2005 23:41:09 -0700 (PDT) From: Patrick Dung To: freebsd hackers MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Backup problem for backup MySQL (a table > 2GB) 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, 16 Aug 2005 06:41:10 -0000 Hi We are using an old backup product which can only backup files < 2GB. Now we have a mysql file > 2GB. The backup product refuse to backup that file. So, whats the alternatives to perform backup for this situation? This is current idea: Tar all the mysql directory and split into small files < 2GB. Any suggestions? __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 07:04:52 2005 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 C642216A41F for ; Tue, 16 Aug 2005 07:04:52 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 478E243D45 for ; Tue, 16 Aug 2005 07:04:52 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1]) by jengal.datamax.bg (Postfix) with QMQP id 4AA8587CD; Tue, 16 Aug 2005 10:04:51 +0300 (EEST) Received: (nullmailer pid 21356 invoked by uid 1004); Tue, 16 Aug 2005 07:04:48 -0000 Date: Tue, 16 Aug 2005 10:04:48 +0300 From: Vasil Dimov To: Patrick Dung Message-ID: <20050816070448.GA21272@sinanica.bg.datamax> References: <20050816064109.86120.qmail@web52104.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <20050816064109.86120.qmail@web52104.mail.yahoo.com> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.10i Cc: freebsd hackers Subject: Re: Backup problem for backup MySQL (a table > 2GB) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@datamax.bg List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2005 07:04:52 -0000 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 15, 2005 at 11:41:09PM -0700, Patrick Dung wrote: > Hi >=20 > We are using an old backup product which can only backup files < 2GB. > Now we have a mysql file > 2GB. The backup product refuse to backup > that file. >=20 > So, whats the alternatives to perform backup for this situation? > This is current idea: >=20 > Tar all the mysql directory and split into small files < 2GB. >=20 > Any suggestions? >=20 I guess this is not applicable, but what about using other "backup product" that supports larger files? Otherwise tar(1) + gzip(1) (eventually) + split(1) seems reasonable solution... --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFDAZAPFw6SP/bBpCARAucTAKCPEtdaH1L8b7MBhdCuev9zGQvq5ACfeA27 rDqf7uKT4gaH2zTmmtoC0Wo= =LZAz -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 07:16:50 2005 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 390FE16A41F for ; Tue, 16 Aug 2005 07:16:50 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web52108.mail.yahoo.com (web52108.mail.yahoo.com [206.190.48.111]) by mx1.FreeBSD.org (Postfix) with SMTP id 7609E43D48 for ; Tue, 16 Aug 2005 07:16:49 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 44021 invoked by uid 60001); 16 Aug 2005 07:16:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=v4SLn8pYvDAqKroVgMhDF5ZLjXfTkQRx2lnctNvoyqSTycVFGmSWzGL8a+XpDIEQexazCvv2VZSfPJF5jvskozD08bhPoO7MWBmKOqW0q0bVV26alM1akZjipiqwbIBqktZPQ76TPT/trLk6LsBsWwdenxVMUmExHtg5j8ZQmO0= ; Message-ID: <20050816071648.44019.qmail@web52108.mail.yahoo.com> Received: from [202.134.67.19] by web52108.mail.yahoo.com via HTTP; Tue, 16 Aug 2005 00:16:48 PDT Date: Tue, 16 Aug 2005 00:16:48 -0700 (PDT) From: Patrick Dung To: vd@datamax.bg In-Reply-To: <20050816070448.GA21272@sinanica.bg.datamax> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd hackers Subject: Re: Backup problem for backup MySQL (a table > 2GB) 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, 16 Aug 2005 07:16:50 -0000 The main problem is money. Buying a new product needs money. The old backup product (commercial) is scalable and is working fine with various OS. However it is outdated and is not supported anymore (unless we have a service agreement with the vendor of the backup product.) It consumes lots of space to do tar+gzip and split. I am thinking if I could copy all mysql files to another server (by ftp/ssh) periodically. Regards Patrick --- Vasil Dimov wrote: > On Mon, Aug 15, 2005 at 11:41:09PM -0700, Patrick Dung wrote: > > Hi > > > > We are using an old backup product which can only backup files < > 2GB. > > Now we have a mysql file > 2GB. The backup product refuse to backup > > that file. > > > > So, whats the alternatives to perform backup for this situation? > > This is current idea: > > > > Tar all the mysql directory and split into small files < 2GB. > > > > Any suggestions? > > > > I guess this is not applicable, but what about using other "backup > product" that supports larger files? > > Otherwise tar(1) + gzip(1) (eventually) + split(1) seems reasonable > solution... > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 08:58:04 2005 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 1DAE616A41F for ; Tue, 16 Aug 2005 08:58:04 +0000 (GMT) (envelope-from dmitry.mityugov@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 991E543D49 for ; Tue, 16 Aug 2005 08:58:03 +0000 (GMT) (envelope-from dmitry.mityugov@gmail.com) Received: by wproxy.gmail.com with SMTP id 36so1181646wra for ; Tue, 16 Aug 2005 01:58:02 -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:content-transfer-encoding:content-disposition:references; b=EsHDBxl41kw4ZdA/Bcpo73lfGhzmwHbOtkfMgjfBo483HnOBLjcmt46UBU7StOzvcvi1a4SctiVM3bzNoAHr/RvaixZcO9kbSK+GMXBeSiCnb+dGLg9vKcYrWhAxE9yjNXMBsL9E1o9G5UoUkBQqOn/x5XcMr0wQHdiIAagchaU= Received: by 10.54.43.51 with SMTP id q51mr148665wrq; Tue, 16 Aug 2005 01:58:02 -0700 (PDT) Received: by 10.54.56.33 with HTTP; Tue, 16 Aug 2005 01:58:02 -0700 (PDT) Message-ID: Date: Tue, 16 Aug 2005 12:58:02 +0400 From: Dmitry Mityugov To: Patrick Dung In-Reply-To: <20050816064109.86120.qmail@web52104.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050816064109.86120.qmail@web52104.mail.yahoo.com> Cc: freebsd hackers Subject: Re: Backup problem for backup MySQL (a table > 2GB) 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, 16 Aug 2005 08:58:04 -0000 On 8/16/05, Patrick Dung wrote: > Hi >=20 > We are using an old backup product which can only backup files < 2GB. > Now we have a mysql file > 2GB. The backup product refuse to backup > that file. >=20 > So, whats the alternatives to perform backup for this situation? > This is current idea: >=20 > Tar all the mysql directory and split into small files < 2GB. >=20 > Any suggestions? Use mysqldump or mysqlhotcopy? --=20 Dmitry Mityugov, St. Petersburg, Russia I ignore all messages with confidentiality statements "We live less by imagination than despite it" - Rockwell Kent, "N by E" From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 09:44:14 2005 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 8F46516A41F for ; Tue, 16 Aug 2005 09:44:14 +0000 (GMT) (envelope-from devif0@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F8D843D46 for ; Tue, 16 Aug 2005 09:44:13 +0000 (GMT) (envelope-from devif0@gmail.com) Received: by wproxy.gmail.com with SMTP id i22so1153042wra for ; Tue, 16 Aug 2005 02:44:10 -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:content-transfer-encoding:content-disposition:references; b=bm3sqG2uqvgDEC/q+SejdSnQKMc/mfxLyJMyMDyrPj9qNXCDMHhorcFce4JVIA4bFUb17uKXo3ZZ5RCi0Px4nGyKYLLzsQiCq9fcKA4Kin3MLlTcvSxwscpZ2/7Dn9mRbx5IFHGwoVanFBd/IGjyzO6eTVrESrbv7gEHfuQSJfo= Received: by 10.54.10.61 with SMTP id 61mr4170522wrj; Tue, 16 Aug 2005 02:44:10 -0700 (PDT) Received: by 10.54.69.4 with HTTP; Tue, 16 Aug 2005 02:44:10 -0700 (PDT) Message-ID: <356446ef05081602442f94a346@mail.gmail.com> Date: Tue, 16 Aug 2005 11:44:10 +0200 From: iv gan To: John Baldwin In-Reply-To: <200508101107.31917.jhb@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <356446ef0508100239320d2bf0@mail.gmail.com> <6.1.0.6.2.20050810032350.078f3eb0@cobalt.antimatter.net> <356446ef050810061832003965@mail.gmail.com> <200508101107.31917.jhb@FreeBSD.org> Cc: freebsd-hackers@freebsd.org, Glenn Dawson Subject: Re: howto make sysintall 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, 16 Aug 2005 09:44:14 -0000 Thanks for the answers John, Glen I think John was right that it is better to build my own mfsroot and then make config scripts etc. The `sysctl -a` can do the thing with detecting the hardware etc. It is a bit lammy but is working. Then dd fdisk bsdlabel and newfs do the rest. However if someone is there with an idea how to correctly build sysinstall it would be wellcome. greets.. Ivo On 8/10/05, John Baldwin wrote: > On Wednesday 10 August 2005 09:18 am, iv gan wrote: > > I am not so sure because the script cannot detect different devices. > > It can be ad or ar or whatever but it cannot chechk for it. And what I > > would like to do is more to detect the device and then to do something > > like 10% to /, 20% to /tmp 35% to /var and 35% to /usr or something > > like it. > > Any suggestion? >=20 > You can run a command to generate a config file that you then include. I= use > this with shell scripts that invoke 'dialog' to provide the user with cus= tom > menus. A sample is something like this: >=20 > install.cfg: >=20 > # select media > command=3Dsh /stand/setmedia.sh > system > configFile=3D/stand/setmedia.cfg > loadConfig >=20 > setmedia.sh: >=20 > #!/bin/sh > # > # Set the installation media based on kernel environment variables. >=20 > config=3D/stand/setmedia.cfg >=20 > case `kenv media` in > FTP) > iface=3D`kenv iface` > server=3D`kenv server` >=20 > echo "abort" > ${config} > if [ -z "${iface}" -o -z "${server}" ]; then > dialog --title "Missing Settings" --msgbox "The > network interface and FTP server must be specified\nvia the 'iface' and > 'server' variables in loader.conf." -1 -1 > exit 1 > fi > found=3D0 > for ifn in `ifconfig -l`; do > if [ "${ifn}" =3D "${iface}" ]; then > found=3D1 > fi > done > if [ ${found} -eq 0 ]; then > dialog --title "Invalid Interface" --msgbox "The > network interface ${iface} is not present." -1 -1 > exit 1 > fi > echo "# Setup for FTP install" > ${confi= g} > echo "command=3D/stand/dhclient ${iface}" >> ${co= nfig} > echo "system" >> ${conf= ig} > echo "hostname=3Dlocalhost" >> ${co= nfig} > echo "netDev=3D${iface}" >> ${co= nfig} > echo "_ftpPath=3Dftp://${server}/pub/FreeBSD" >> ${co= nfig} > echo "ifconfig_${iface}=3DDHCP" >> ${co= nfig} > echo "mediaSetFTP" >> ${conf= ig} > ;; > *) > # Default to CD > echo "# select CDROM media" > ${confi= g} > echo "mediaSetCDROM" >> ${conf= ig} > esac >=20 >=20 > This is just the part to setup the install media. What I do here is shar= e the > same mfsroot across both CD installs and installs over PXE, but in > the /usr/nfsroot on the PXE server I have a boot/loader.conf that looks l= ike: >=20 > boot/loader.conf: > # NFS install > media=3DFTP > iface=3Dfxp0 > server=3D10.1.2.3 >=20 > I also use a similar approach to use different disk layouts for different > configurations, etc. In my case I patched the release sources to include > kenv and dialog in the crunch for the mfsroot and added my custom scripts= to > stand/ in the mfsroot. >=20 > -- > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve" =3D http://www.FreeBSD.org > From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 10:08:49 2005 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 71DE416A41F for ; Tue, 16 Aug 2005 10:08:49 +0000 (GMT) (envelope-from martin@gneto.com) Received: from av9-1-sn2.hy.skanova.net (av9-1-sn2.hy.skanova.net [81.228.8.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6F1D43D48 for ; Tue, 16 Aug 2005 10:08:47 +0000 (GMT) (envelope-from martin@gneto.com) Received: by av9-1-sn2.hy.skanova.net (Postfix, from userid 502) id 9482A38020; Tue, 16 Aug 2005 12:08:46 +0200 (CEST) Received: from smtp4-1-sn2.hy.skanova.net (smtp4-1-sn2.hy.skanova.net [81.228.8.92]) by av9-1-sn2.hy.skanova.net (Postfix) with ESMTP id 6C97037E5A; Tue, 16 Aug 2005 12:08:46 +0200 (CEST) Received: from [192.168.2.30] (h99n2fls34o985.telia.com [213.66.202.99]) by smtp4-1-sn2.hy.skanova.net (Postfix) with ESMTP id EAF5A37E42; Tue, 16 Aug 2005 12:08:45 +0200 (CEST) Message-ID: <4301BB2C.807@gneto.com> Date: Tue, 16 Aug 2005 12:08:44 +0200 From: Martin Nilsson User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: sv, en-us, en MIME-Version: 1.0 To: Patrick Dung References: <20050816071648.44019.qmail@web52108.mail.yahoo.com> In-Reply-To: <20050816071648.44019.qmail@web52108.mail.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd hackers , vd@datamax.bg Subject: Re: Backup problem for backup MySQL (a table > 2GB) 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, 16 Aug 2005 10:08:49 -0000 Patrick Dung wrote: > It consumes lots of space to do tar+gzip and split. > I am thinking if I could copy all mysql files to another server (by > ftp/ssh) periodically. MySQL have something called RAID tables for filesystems where max filesize is 2GB (read old Linux ext2fs systems). You can also use innodb tables and define may 2GB files to hold the database. These have the benefit of row-level locking and transactions as well! Regards, Martin > > Regards > Patrick > > --- Vasil Dimov wrote: > > >>On Mon, Aug 15, 2005 at 11:41:09PM -0700, Patrick Dung wrote: >> >>>Hi >>> >>>We are using an old backup product which can only backup files < >> >>2GB. >> >>>Now we have a mysql file > 2GB. The backup product refuse to backup >>>that file. >>> >>>So, whats the alternatives to perform backup for this situation? >>>This is current idea: >>> >>>Tar all the mysql directory and split into small files < 2GB. >>> >>>Any suggestions? >>> >> >>I guess this is not applicable, but what about using other "backup >>product" that supports larger files? >> >>Otherwise tar(1) + gzip(1) (eventually) + split(1) seems reasonable >>solution... >> > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 10:31:25 2005 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 B674C16A41F for ; Tue, 16 Aug 2005 10:31:25 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web52101.mail.yahoo.com (web52101.mail.yahoo.com [206.190.48.104]) by mx1.FreeBSD.org (Postfix) with SMTP id 2A75543D46 for ; Tue, 16 Aug 2005 10:31:25 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 69623 invoked by uid 60001); 16 Aug 2005 10:31:24 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=0Ro0hhGXWDUb+pWCLXyqxxg/mI7LGdma2HkLQ19n+zifXGDZ29Q7CCHbI5QvI2knduqxx3z/QjTF30iMwyRjKmqMUHZyKuQChkPv7uSeMzshTR3UFjfboEp6k8ll/oTu5HQgoeaZdMuwze6r3PNfgWv+SOVMSE44Ky1NoI7nMTg= ; Message-ID: <20050816103124.69621.qmail@web52101.mail.yahoo.com> Received: from [202.134.67.19] by web52101.mail.yahoo.com via HTTP; Tue, 16 Aug 2005 03:31:24 PDT Date: Tue, 16 Aug 2005 03:31:24 -0700 (PDT) From: Patrick Dung To: Dmitry Mityugov In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd hackers Subject: Re: Backup problem for backup MySQL (a table > 2GB) 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, 16 Aug 2005 10:31:25 -0000 Yes mysqldump. More solutions mysqldump database | split -b 1900m mysqldump database | gzip -dc | split -b 1900m mysqlhotcopy database /tmp && tar czvf /tmp/db.tar /tmp && split -b 1900m /tmp/db.tar mysqlhotcopy uses lots of space... --- Dmitry Mityugov wrote: > On 8/16/05, Patrick Dung wrote: > > Hi > > > > We are using an old backup product which can only backup files < > 2GB. > > Now we have a mysql file > 2GB. The backup product refuse to backup > > that file. > > > > So, whats the alternatives to perform backup for this situation? > > This is current idea: > > > > Tar all the mysql directory and split into small files < 2GB. > > > > Any suggestions? > > Use mysqldump or mysqlhotcopy? > > -- > Dmitry Mityugov, St. Petersburg, Russia > I ignore all messages with confidentiality statements > > "We live less by imagination than despite it" - Rockwell Kent, "N by > E" > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 12:51:19 2005 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 6DB2016A430 for ; Tue, 16 Aug 2005 12:51:19 +0000 (GMT) (envelope-from rzhe@agava.com) Received: from agava.mipt.ru (ofc2.agava.net [81.5.88.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0125A43D46 for ; Tue, 16 Aug 2005 12:51:18 +0000 (GMT) (envelope-from rzhe@agava.com) Received: by agava.mipt.ru (Postfix, from userid 426) id 8ADAF721724; Tue, 16 Aug 2005 16:47:14 +0400 (MSD) Received: from mailhub (localhost [127.0.0.1]) by localhost (Postfix) with ESMTP id 6551F72172D for ; Tue, 16 Aug 2005 16:47:14 +0400 (MSD) Received: from rzhe.agava-dubna.local (unknown [213.33.195.194]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by agava.mipt.ru (Postfix) with ESMTP id BADA4721734 for ; Tue, 16 Aug 2005 16:47:13 +0400 (MSD) Date: Tue, 16 Aug 2005 16:51:15 +0400 From: Dmitry Agaphonov To: freebsd-hackers@freebsd.org Message-ID: <20050816165115.2387c14f@rzhe.agava-dubna.local> Organization: AGAVA Software X-Mailer: Sylpheed-Claws 1.0.1 (GTK+ 1.2.10; i386-portbld-freebsd4.11) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Shared memory permissions question 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, 16 Aug 2005 12:51:19 -0000 Hello, I have user A from group G creating shared memory M with permissions 0060. After this, A fails to attach M due to permission denied. However, another user B from the same group G successfully attaches M. User A manages to attach only if permissions 0600 added for M. Why the system disregards group permissions for user A? Is it correct behaviour? This is happening on FreeBSD 4.11-STABLE. Thanks in advance. From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 13:04:30 2005 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 B870716A41F for ; Tue, 16 Aug 2005 13:04:30 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: from web52110.mail.yahoo.com (web52110.mail.yahoo.com [206.190.48.113]) by mx1.FreeBSD.org (Postfix) with SMTP id 4097243D58 for ; Tue, 16 Aug 2005 13:04:28 +0000 (GMT) (envelope-from patrick_dkt@yahoo.com.hk) Received: (qmail 83607 invoked by uid 60001); 16 Aug 2005 13:04:28 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com.hk; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=N25ex//PKupXmKiXha505cUSOQF4XNJhBkt0A13BRhjRqJLefA7o4//Ix+nX4CG+q5EIcAkFMQk73W01V7Oy+sX/WmuUKowXpsUJd6T/igoriu+VOhvqGO7QHQLsB+Z6VV6LR+TQLZdAmt89bFlCDcMWVDV5Qn4uwvRhHiIjTpg= ; Message-ID: <20050816130428.83605.qmail@web52110.mail.yahoo.com> Received: from [222.166.160.152] by web52110.mail.yahoo.com via HTTP; Tue, 16 Aug 2005 06:04:28 PDT Date: Tue, 16 Aug 2005 06:04:28 -0700 (PDT) From: Patrick Dung To: Patrick Dung , Dmitry Mityugov In-Reply-To: <20050816103124.69621.qmail@web52101.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd hackers Subject: Re: Backup problem for backup MySQL (a table > 2GB) 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, 16 Aug 2005 13:04:30 -0000 Opps, it should be gzip -c, instead of gzip -dc --- Patrick Dung wrote: > Yes mysqldump. > > More solutions > > mysqldump database | split -b 1900m > mysqldump database | gzip -dc | split -b 1900m > mysqlhotcopy database /tmp && tar czvf /tmp/db.tar /tmp && split -b > 1900m /tmp/db.tar > > mysqlhotcopy uses lots of space... > > --- Dmitry Mityugov wrote: > > > On 8/16/05, Patrick Dung wrote: > > > Hi > > > > > > We are using an old backup product which can only backup files < > > 2GB. > > > Now we have a mysql file > 2GB. The backup product refuse to > backup > > > that file. > > > > > > So, whats the alternatives to perform backup for this situation? > > > This is current idea: > > > > > > Tar all the mysql directory and split into small files < 2GB. > > > > > > Any suggestions? > > > > Use mysqldump or mysqlhotcopy? > > > > -- > > Dmitry Mityugov, St. Petersburg, Russia > > I ignore all messages with confidentiality statements > > > > "We live less by imagination than despite it" - Rockwell Kent, "N > by > > E" > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 13:11:06 2005 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 884D216A41F for ; Tue, 16 Aug 2005 13:11:06 +0000 (GMT) (envelope-from joost@jodocus.org) Received: from bps.jodocus.org (g157016.upc-g.chello.nl [80.57.157.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAF0643D46 for ; Tue, 16 Aug 2005 13:11:05 +0000 (GMT) (envelope-from joost@jodocus.org) Received: from jodocus.org (localhost [127.0.0.1]) by bps.jodocus.org (8.13.3/8.13.1) with ESMTP id j7GDAnAU044765; Tue, 16 Aug 2005 15:10:49 +0200 (CEST) (envelope-from joost@jodocus.org) Received: (from joost@localhost) by jodocus.org (8.13.3/8.13.1/Submit) id j7GDAYbw044764; Tue, 16 Aug 2005 15:10:34 +0200 (CEST) (envelope-from joost) Date: Tue, 16 Aug 2005 15:10:34 +0200 From: Joost Bekkers To: Dmitry Agaphonov Message-ID: <20050816131034.GA44545@bps.jodocus.org> Mail-Followup-To: Joost Bekkers , Dmitry Agaphonov , freebsd-hackers@freebsd.org References: <20050816165115.2387c14f@rzhe.agava-dubna.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050816165115.2387c14f@rzhe.agava-dubna.local> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Shared memory permissions question 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, 16 Aug 2005 13:11:06 -0000 On Tue, Aug 16, 2005 at 04:51:15PM +0400, Dmitry Agaphonov wrote: > Hello, > > > I have user A from group G creating shared memory M with permissions > 0060. After this, A fails to attach M due to permission denied. > However, another user B from the same group G successfully attaches M. > User A manages to attach only if permissions 0600 added for M. > > Why the system disregards group permissions for user A? Is it correct > behaviour? > > This is happening on FreeBSD 4.11-STABLE. > This is normal&correct behaviour. Access if granted on a best match basis: if user==owner then only user rights are applied elseif user is member of group then only group rights are applied else only 'other' rights are applied. -- greetz Joost joost@jodocus.org From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 13:43:21 2005 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 149D316A41F for ; Tue, 16 Aug 2005 13:43:21 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95A4643D45 for ; Tue, 16 Aug 2005 13:43:20 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from sinanica.bg.datamax (sinanica.bg.datamax [192.168.10.1]) by jengal.datamax.bg (Postfix) with QMQP id 6EB8787CD; Tue, 16 Aug 2005 16:43:19 +0300 (EEST) Received: (nullmailer pid 30085 invoked by uid 1004); Tue, 16 Aug 2005 13:43:16 -0000 Date: Tue, 16 Aug 2005 16:43:16 +0300 From: Vasil Dimov To: Joost Bekkers , Dmitry Agaphonov , freebsd-hackers@freebsd.org Message-ID: <20050816134316.GA29915@sinanica.bg.datamax> References: <20050816165115.2387c14f@rzhe.agava-dubna.local> <20050816131034.GA44545@bps.jodocus.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20050816131034.GA44545@bps.jodocus.org> X-OS: FreeBSD 5.4-STABLE User-Agent: Mutt/1.5.10i Cc: Subject: Re: Shared memory permissions question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@datamax.bg List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2005 13:43:21 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Aug 16, 2005 at 03:10:34PM +0200, Joost Bekkers wrote: > On Tue, Aug 16, 2005 at 04:51:15PM +0400, Dmitry Agaphonov wrote: > > Hello, > >=20 > >=20 > > I have user A from group G creating shared memory M with permissions > > 0060. After this, A fails to attach M due to permission denied. > > However, another user B from the same group G successfully attaches M. > > User A manages to attach only if permissions 0600 added for M. > >=20 > > Why the system disregards group permissions for user A? Is it correct > > behaviour? > >=20 > > This is happening on FreeBSD 4.11-STABLE. > >=20 >=20 > This is normal&correct behaviour. >=20 > Access if granted on a best match basis: >=20 > if user=3D=3Downer then only user rights are applied > elseif user is member of group then only group rights are applied > else only 'other' rights are applied. >=20 This also applies for the filesystem. $ id uid=3D1001(dd) gid=3D1001(dd) groups=3D1001(dd) $ ls -l file ----r--r-- 1 dd dd 0 Aug 16 16:34 file $ cat file cat: file: Permission denied $ --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iD8DBQFDAe1zFw6SP/bBpCARAvjpAKCytkie+ODFExYBeE1EWM1VxqQCjQCg4OfM ngiqF0I1nfzNghiNlXllguI= =fKKX -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI-- From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 18:44:16 2005 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 4EC2516A41F for ; Tue, 16 Aug 2005 18:44:16 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from mv.twc.weather.com (mv.twc.weather.com [65.212.71.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB35843D53 for ; Tue, 16 Aug 2005 18:44:15 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from [10.50.40.201] (Not Verified[10.50.40.201]) by mv.twc.weather.com with NetIQ MailMarshal (v6, 0, 3, 8) id ; Tue, 16 Aug 2005 14:59:13 -0400 From: John Baldwin To: hackers@FreeBSD.org Date: Tue, 16 Aug 2005 14:44:49 -0400 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508161444.50062.jhb@FreeBSD.org> Cc: Subject: TRB stepping down for now 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, 16 Aug 2005 18:44:16 -0000 The TRB has not been called upon to resolve any technical disputes in quite a while. It seems that instead, developers have been able to discuss ideas and work out disputes either on arch@ or through some other means. There is certainly nothing wrong with this as the FreeBSD Project certainly wants to encourage open development. Given the TRB's idleness, however, core@ feels that the TRB in its current state simply isn't needed. If the need arises once again in the future for resolution of technical disputes beyond the currently available tools (public mailing lists, etc.), then either the TRB can be reinstated or perhaps some new approach could be used dependent on core@'s judgement at that time. Finally, the core team thanks the current members of the TRB for the service they have rendered over the past 2.75 years. On behalf of core, -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 23:57:48 2005 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 F1ABB16A41F for ; Tue, 16 Aug 2005 23:57:47 +0000 (GMT) (envelope-from michael.honeyfield@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 930E143D46 for ; Tue, 16 Aug 2005 23:57:47 +0000 (GMT) (envelope-from michael.honeyfield@gmail.com) Received: by xproxy.gmail.com with SMTP id i27so7158wxd for ; Tue, 16 Aug 2005 16:57:46 -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=omCAEmbfy4oYP1P+An8ExogxXHiS4+5OWmn7/UpKU0Ms72m4z6+AWRM7MrEZrq8QZzkpnZi7CvYoaIJ1yXFOEy6LfoDkRL5vT5KMFiXFYSorWbbqzfYsGmO/UOZ/hFInzPt2qLIvR1burzXZ3Eed+atZ//RVuc7wNiMetHpWe0w= Received: by 10.70.15.19 with SMTP id 19mr366wxo; Tue, 16 Aug 2005 16:57:46 -0700 (PDT) Received: by 10.70.20.4 with HTTP; Tue, 16 Aug 2005 16:57:46 -0700 (PDT) Message-ID: <16d2d73705081616576dea9072@mail.gmail.com> Date: Wed, 17 Aug 2005 11:57:46 +1200 From: Michael Honeyfield To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: driver mmap weirdness 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, 16 Aug 2005 23:57:48 -0000 Hello, I am looking for some advise on troubleshooting a issue I am seeing with mmap() (probably how I am using it). I have a issue where a driver returns a correct value, but it seem to get lost when that value is validated by mmap() and returns MAP_FAILED. Obviously gdb is not going to be able to set into the kernel and set through each call, so am I left with using ddb ? Any points/suggestions on dealing with this would be greatly appreicated.= =20 Thanks in advance.. Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 16 19:19:16 2005 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 4528316A41F; Tue, 16 Aug 2005 19:19:16 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from www.portaone.com (web.portaone.com [195.70.151.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43CF443D5D; Tue, 16 Aug 2005 19:19:13 +0000 (GMT) (envelope-from sobomax@portaone.com) Received: from [192.168.0.49] (lesnik.portaone.com [195.140.246.50] (may be forged)) (authenticated bits=0) by www.portaone.com (8.12.11/8.12.11) with ESMTP id j7GIoea1006057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Aug 2005 20:50:41 +0200 (CEST) (envelope-from sobomax@portaone.com) Message-ID: <43023577.6080108@portaone.com> Date: Tue, 16 Aug 2005 21:50:31 +0300 From: Maxim Sobolev Organization: Porta Software Ltd User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@FreeBSD.org, bms@FreeBSD.org, drosih@rpi.edu, Bill Paul , John Baldwin , Alexander Timoshenko , bug-followup@FreeBSD.org, Alexander Timoshenko Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.86.2/1023/Mon Aug 15 22:15:08 2005 on www.portaone.com X-Virus-Status: Clean X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.0 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on www.portaone.com X-Mailman-Approved-At: Wed, 17 Aug 2005 11:52:53 +0000 Cc: Subject: Network interrupt after shutdown method has been called [kern/62889] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Maxim.Sobolev@portaone.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Aug 2005 19:19:16 -0000 Folks, We experience a 100% reproducible panic on one of our machines during shutdown+power off. We have found that it's caused by the interrupt which happens in re(4) after re_shutdown() method has been called. Quick googling reveals that we are not alone who experience this problem and such condition sometimes happens as a result of interaction with the particular ACPI implementation on shutdown+power off. Some FreeBSD network drivers have been patched to workaround for the problem (i.e. vr(4), see kern/62889), but quick browsing through sources suggests that majority still can be affected by the exactly the same problem. Hence the question: Who is "guilty"? Can the network driver make an assumption that no interrupt will happen after its foo_shutdown() has been called? Or such assumption cannot be made? In the former case most of the network drivers have to be fixed (usually by turning foo_shutdown() into a wrapper to foo_detach() as with vr(4)), while in the latter the reason of this stray irq should be investigated further and fixed where appropriate. Any comments/ideas? -Maxim From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 17 06:32:46 2005 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 96DAE16A41F for ; Wed, 17 Aug 2005 06:32:46 +0000 (GMT) (envelope-from m.ehinger@ltur.de) Received: from posty.gateway-inter.net (posty.gateway-inter.net [213.144.19.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5049843D48 for ; Wed, 17 Aug 2005 06:32:46 +0000 (GMT) (envelope-from m.ehinger@ltur.de) To: freebsd-hackers@freebsd.org Message-ID: From: m.ehinger@ltur.de Date: Wed, 17 Aug 2005 08:32:10 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Wed, 17 Aug 2005 11:52:53 +0000 Subject: Parking disk drive heads 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, 17 Aug 2005 06:32:46 -0000 Hi, which is the correct way to park the hd head? I need it for the IBM Active Protection System implementation under FreeBSD. I got an working Accelerometer driver so far. BSD Version downloadable at https://sourceforge.net/project/showfiles.php?group_id=138242 thanks maik From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 17 12:32:43 2005 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 2260816A41F for ; Wed, 17 Aug 2005 12:32:43 +0000 (GMT) (envelope-from devif0@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id B76F143D45 for ; Wed, 17 Aug 2005 12:32:42 +0000 (GMT) (envelope-from devif0@gmail.com) Received: by wproxy.gmail.com with SMTP id i22so133108wra for ; Wed, 17 Aug 2005 05:32:41 -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:mime-version:content-type:content-transfer-encoding:content-disposition; b=QWdY6E2t50PjFnaq+gPhP/bnzKJqGXHuEe6rYHBV5CyXh7C+aOpI3dkGWLe7v4iUj5EXFPclvmf7Mfwy9pHEazXF7bRvkEDZrwk43HOTJr0uQujL3HqbLwGd8IVfAq48g/uN9LfKRqu+5vj6PBSChib5CNoH7S9UieyNxuNN4bI= Received: by 10.54.112.7 with SMTP id k7mr411889wrc; Wed, 17 Aug 2005 05:32:41 -0700 (PDT) Received: by 10.54.69.4 with HTTP; Wed, 17 Aug 2005 05:32:41 -0700 (PDT) Message-ID: <356446ef0508170532288b1a38@mail.gmail.com> Date: Wed, 17 Aug 2005 14:32:41 +0200 From: iv gan To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: lorenl@alzatex.com Subject: RE: PXE Boot FreeBSD with Etherboot 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, 17 Aug 2005 12:32:43 -0000 I've been told that you can do an etherboot via grub. After some googling it seems that this is a solution for Open, but no word about FreeBSD. I don't know if it will work for you.. good luck Ivo From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 17 12:20:50 2005 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 841C916A41F for ; Wed, 17 Aug 2005 12:20:50 +0000 (GMT) (envelope-from alain_devos@yahoo.com) Received: from web52009.mail.yahoo.com (web52009.mail.yahoo.com [206.190.48.92]) by mx1.FreeBSD.org (Postfix) with SMTP id 0695943D46 for ; Wed, 17 Aug 2005 12:20:49 +0000 (GMT) (envelope-from alain_devos@yahoo.com) Received: (qmail 29531 invoked by uid 60001); 17 Aug 2005 12:20:49 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=whfdh4FgLQKZwBt9zzT3GPIgH3T7hSdZTIdmLOgdzQPOg3BF2r5cCxC2hsb2T7UY7GlgPUe9/iE5/cpuiu1e/hM9q0C3CycwWXjjWhRjNY11eqCOhnefmJsN0AQhchnig6AtYS8Q/Gntb2jNTQ+BB7/oH2zuVpUP2bS7Z6zexWk= ; Message-ID: <20050817122049.29529.qmail@web52009.mail.yahoo.com> Received: from [193.74.176.26] by web52009.mail.yahoo.com via HTTP; Wed, 17 Aug 2005 05:20:49 PDT Date: Wed, 17 Aug 2005 05:20:49 -0700 (PDT) From: Alain De Vos To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 17 Aug 2005 12:52:21 +0000 Cc: Subject: hello world but not in 32bit x86 but in amd64 for amd64 platform 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, 17 Aug 2005 12:20:50 -0000 Hi , The AMD64 platform is currently a Tier 1 FreeBSD platform, but what I currently look for is a "Hello World" assembly program written in 64bit assembly which I can compile and run on my FreeBSD,AMD64 platform Sadly enough I was unable to find such a very basic program :-) Could you inform me if there exist somewhere such a program cfr the 32bit hello world example in Chapter 11 x86 Assembly Language Programming FreeBSD Developers' Handbook Thanks for any help Alain __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 17 14:55:11 2005 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 AB13216A41F for ; Wed, 17 Aug 2005 14:55:11 +0000 (GMT) (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 54B2F43D45 for ; Wed, 17 Aug 2005 14:55:11 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j7HEtAkw072009; Wed, 17 Aug 2005 09:55:10 -0500 (CDT) (envelope-from dan) Date: Wed, 17 Aug 2005 09:55:10 -0500 From: Dan Nelson To: Alain De Vos Message-ID: <20050817145510.GD26422@dan.emsphone.com> References: <20050817122049.29529.qmail@web52009.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050817122049.29529.qmail@web52009.mail.yahoo.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.9i Cc: hackers@freebsd.org Subject: Re: hello world but not in 32bit x86 but in amd64 for amd64 platform 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, 17 Aug 2005 14:55:11 -0000 In the last episode (Aug 17), Alain De Vos said: > The AMD64 platform is currently a Tier 1 FreeBSD platform, > but what I currently look for is a > "Hello World" assembly program written in 64bit assembly > which I can compile and run on my FreeBSD,AMD64 platform > Sadly enough I was unable to find such a very basic program :-) > > Could you inform me if there exist somewhere such a program > cfr the 32bit hello world example in > Chapter 11 > x86 Assembly Language Programming > FreeBSD Developers' Handbook The procedure should be the same no matter what architecture you are using. Just use AMD64 assembly... You can also generate an assembly hello-world program yourself: $ cat << EOF > test.c int main(void) { write(1, "Hello world\n", 12); return 0; } EOF $ gcc -S test.c $ cat test.s -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 17 15:44:16 2005 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 A980116A41F for ; Wed, 17 Aug 2005 15:44:16 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 427D643D48 for ; Wed, 17 Aug 2005 15:44:16 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id r35so160864rna for ; Wed, 17 Aug 2005 08:44:15 -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:content-transfer-encoding:content-disposition:references; b=EsvLh1n6GZ3Wcxeih54EnfUqvL7P3Gbe8jwJDytCRXvEKZdgOprC4X7xQBAUbPvlByld7J3Fv3cp5t1asPYsboJ01UXSA8JzpxkEMC7WeBpyk2XJh3LEsr5mMTb6dUf2V0Lja4cERPVFho81c2gQHl6QI78SLsyVxZnVOHWk6oI= Received: by 10.39.1.39 with SMTP id d39mr188903rni; Wed, 17 Aug 2005 08:44:15 -0700 (PDT) Received: by 10.38.13.79 with HTTP; Wed, 17 Aug 2005 08:44:15 -0700 (PDT) Message-ID: <84dead7205081708447a981452@mail.gmail.com> Date: Wed, 17 Aug 2005 21:14:15 +0530 From: Joseph Koshy To: Dan Nelson In-Reply-To: <20050817145510.GD26422@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050817122049.29529.qmail@web52009.mail.yahoo.com> <20050817145510.GD26422@dan.emsphone.com> Cc: hackers@freebsd.org Subject: Re: hello world but not in 32bit x86 but in amd64 for amd64 platform 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, 17 Aug 2005 15:44:16 -0000 av> "Hello World" assembly program written in 64bit assembly av> which I can compile and run on my FreeBSD,AMD64 platform You could also look at "src/lib/libc/amd64/SYS.h" for how system calls are implemented. In particular, #define KERNCALL movq %rcx, %r10; syscall A system call transfers control to:=20 "src/sys/amd46/amd64/exception.S": ... snip ... IDTVEC(fast_syscall) swapgs movq %rsp,PCPU(SCRATCH_RSP) movq PCPU(RSP0),%rsp ... etc ... The x86-64 ABI is defined in: http://x86-64.org/documentation/abi.pdf --=20 FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 18 08:03:30 2005 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 F3DF216A41F for ; Thu, 18 Aug 2005 08:03:29 +0000 (GMT) (envelope-from marcov@stack.nl) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99C5143D45 for ; Thu, 18 Aug 2005 08:03:29 +0000 (GMT) (envelope-from marcov@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailhost.stack.nl (Postfix) with ESMTP id 0CA48A3839 for ; Thu, 18 Aug 2005 10:03:28 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 816) id EFAE32287D; Thu, 18 Aug 2005 10:03:27 +0200 (CEST) In-Reply-To: <20050817145510.GD26422@dan.emsphone.com> To: freebsd-hackers@freebsd.org Date: Thu, 18 Aug 2005 10:03:27 +0200 (CEST) X-Mailer: ELM [version 2.4ME+ PL122a (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Message-Id: <20050818080327.EFAE32287D@snail.stack.nl> From: marcov@stack.nl (Marco van de Voort) Subject: Re: hello world but not in 32bit x86 but in amd64 for amd64 platform 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, 18 Aug 2005 08:03:30 -0000 > > Could you inform me if there exist somewhere such a program > > cfr the 32bit hello world example in > > Chapter 11 > > x86 Assembly Language Programming > > FreeBSD Developers' Handbook > > The procedure should be the same no matter what architecture you are > using. Just use AMD64 assembly... > > You can also generate an assembly hello-world program yourself: > > $ cat << EOF > test.c > int main(void) > { > write(1, "Hello world\n", 12); > return 0; > } > EOF > $ gcc -S test.c > $ cat test.s This doesn't lead you to the minimal program, simply because it is still linked to gcc. It should be static, and with no standard libs. However afaik this is not possible with the current CSU. I patched the CSU of (iirc -CURRENT somewhere close before 5.2) for the FPC x86_64 port (which isn't fully completed for time reasons) I just changed that adapted CSU to a hello world program and retested it on our only freebsd/x86_64 machine (which runs 6.0, probably compat_5 installed) and it works. The program patched to hello world is at: http://www.stack.nl/~marcov/prt0.as which is adapted from http://www.freepascal.org/cgi-bin/viewcvs.cgi/trunk/rtl/freebsd/x86_64/prt0.as?view=markup to assemble the first program: as prt0.as -o prt0.o and link with ld prt0.o -o helloworld From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 17 19:47:00 2005 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 CB2D116A41F for ; Wed, 17 Aug 2005 19:47:00 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from cobalt.antimatter.net (cobalt.antimatter.net [69.55.224.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91EBB43D46 for ; Wed, 17 Aug 2005 19:47:00 +0000 (GMT) (envelope-from glenn@antimatter.net) Received: from glenn-mobile.antimatter.net (cpe-66-27-86-22.san.res.rr.com [66.27.86.22]) (authenticated bits=0) by cobalt.antimatter.net (8.13.4/8.13.4) with ESMTP id j7HJkxXD018060 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Aug 2005 12:47:00 -0700 Message-Id: <6.2.3.4.2.20050817124200.061d6c10@cobalt.antimatter.net> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Wed, 17 Aug 2005 12:47:32 -0700 To: m.ehinger@ltur.de, freebsd-hackers@freebsd.org From: Glenn Dawson In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Mailman-Approved-At: Thu, 18 Aug 2005 12:10:42 +0000 Cc: Subject: Re: Parking disk drive heads 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, 17 Aug 2005 19:47:00 -0000 At 11:32 PM 8/16/2005, m.ehinger@ltur.de wrote: >Hi, > >which is the correct way to park the hd head? Seagate drives park the heads automatically when they are turned off. As far as I know, this applies to other manufacturer's drives as well. -Glenn >I need it for the IBM Active Protection System implementation under FreeBSD. >I got an working Accelerometer driver so far. > >BSD Version downloadable at >https://sourceforge.net/project/showfiles.php?group_id=138242 > >thanks > >maik > >_______________________________________________ >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 Aug 18 06:15:25 2005 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 A044B16A41F for ; Thu, 18 Aug 2005 06:15:25 +0000 (GMT) (envelope-from m.ehinger@ltur.de) Received: from posty.gateway-inter.net (posty.gateway-inter.net [213.144.19.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4441843D46 for ; Thu, 18 Aug 2005 06:15:23 +0000 (GMT) (envelope-from m.ehinger@ltur.de) In-Reply-To: <6.2.3.4.2.20050817124200.061d6c10@cobalt.antimatter.net> To: Glenn Dawson , freebsd-hackers@freebsd.org Message-ID: From: m.ehinger@ltur.de Date: Thu, 18 Aug 2005 08:14:47 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Mailman-Approved-At: Thu, 18 Aug 2005 12:10:42 +0000 Cc: Subject: Re: Parking disk drive heads 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, 18 Aug 2005 06:15:25 -0000 I don't want to park them on turn off. I want to park them before a possible strong shock which could cause damage and unpark them afterwards. Thanks maik Glenn Dawson 17.08.2005 21:47 An m.ehinger@ltur.de, freebsd-hackers@freebsd.org Kopie Thema Re: Parking disk drive heads At 11:32 PM 8/16/2005, m.ehinger@ltur.de wrote: >Hi, > >which is the correct way to park the hd head? Seagate drives park the heads automatically when they are turned off. As far as I know, this applies to other manufacturer's drives as well. -Glenn >I need it for the IBM Active Protection System implementation under FreeBSD. >I got an working Accelerometer driver so far. > >BSD Version downloadable at >https://sourceforge.net/project/showfiles.php?group_id=138242 > >thanks > >maik > >_______________________________________________ >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 Aug 18 12:14:57 2005 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 4FB2716A433 for ; Thu, 18 Aug 2005 12:14:55 +0000 (GMT) (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 10D3343D48 for ; Thu, 18 Aug 2005 12:14:54 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j7ICEkCb030670; Thu, 18 Aug 2005 07:14:47 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <43047BC9.7010000@centtech.com> Date: Thu, 18 Aug 2005 07:15:05 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050815 X-Accept-Language: en-us, en MIME-Version: 1.0 To: m.ehinger@ltur.de References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1031/Thu Aug 18 04:51:29 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org, Glenn Dawson Subject: Re: Parking disk drive heads 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, 18 Aug 2005 12:14:58 -0000 m.ehinger@ltur.de wrote: > I don't want to park them on turn off. I want to park them before a possible strong shock which could cause damage and unpark them > afterwards. If it's an ata disk, you might look at ataidle in the ports collection. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 18 17:17:38 2005 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 4B05816A41F for ; Thu, 18 Aug 2005 17:17:38 +0000 (GMT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (manor.msen.com [148.59.4.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC74443D48 for ; Thu, 18 Aug 2005 17:17:37 +0000 (GMT) (envelope-from wayne@manor.msen.com) Received: from manor.msen.com (localhost [127.0.0.1]) by manor.msen.com (8.12.9p2/8.12.9) with ESMTP id j7IHHaxW044139 for ; Thu, 18 Aug 2005 13:17:36 -0400 (EDT) (envelope-from wayne@manor.msen.com) Message-Id: <200508181717.j7IHHaxW044139@manor.msen.com> To: freebsd-hackers@freebsd.org From: "Michael R. Wayne" Date: Thu, 18 Aug 2005 13:17:36 -0400 Sender: wayne@manor.msen.com Subject: Reducing dummynet pipe size hangs system 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, 18 Aug 2005 17:17:38 -0000 Summary: On an old (4.8p10) machine, substantially reducing the pipe size on a loaded connection causes the system to freeze. Is this a supported feature? Did it usd to be broken? Detail: There's a 4.8p10 machine acting as a firewall (runs only ssh and ipfw rules, hence the lack of updates). While trying to copy a huge file from a local machine to a remote, the following ipfw rules are in place: ipfw add 10990 pipe 1 tcp from ${local_host} to ${remote_host} ipfw pipe 1 config bw 256kbit/s queue 40KB ipfw add 10991 pipe 2 tcp from ${remote_host} to ${local_host} ipfw pipe 2 config bw 256Kbit/s queue 40KB Since the flie is large enough to require several days to transfer, I decided to tweak the pipe sizes off hours to permit it to go faster. Crontab: 0 18 * * * root ipfw pipe 1 config bw 512kbit/s queue 40KB 1 18 * * * root ipfw pipe 2 config bw 512kbit/s queue 40KB 30 0 * * * root ipfw pipe 1 config bw 1024kbit/s queue 40KB 31 0 * * * root ipfw pipe 2 config bw 1024kbit/s queue 40KB 30 3 * * * root ipfw pipe 1 config bw 1200kbit/s queue 40KB 31 3 * * * root ipfw pipe 2 config bw 1200kbit/s queue 40KB 30 6 * * * root ipfw pipe 1 config bw 256kbit/s queue 40KB 31 6 * * * root ipfw pipe 2 config bw 256kbit/s queue 40KB Two days in a row now, just after 6:30, the box freezes, refusing keyboard input and requiring a reboot. Queries: Is this considered an unsupported use of dummynet? If it should work, was it broken back in 4.8 and, if so, when was it corrected? I'd rather not take the time up upgrade the box to 4.11 if I'll then be forced to move to 5.4. /\/\ \/\/ From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 18 18:52:49 2005 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 0EDEE16A41F for ; Thu, 18 Aug 2005 18:52:49 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from srv-03.bs2.com.br (srv-03.bs2.com.br [200.203.183.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B95C43D48 for ; Thu, 18 Aug 2005 18:52:48 +0000 (GMT) (envelope-from gpt@tirloni.org) Received: from localhost (localhost.bs2.com.br [127.0.0.1]) by srv-03.bs2.com.br (Postfix) with ESMTP id 7C97C4AE85 for ; Thu, 18 Aug 2005 15:53:31 -0300 (BRT) Received: from [172.16.12.102] (unknown [201.14.55.139]) by srv-03.bs2.com.br (Postfix) with ESMTP id 22C604AE83 for ; Thu, 18 Aug 2005 15:53:31 -0300 (BRT) Message-ID: <4304D8F9.5060608@tirloni.org> Date: Thu, 18 Aug 2005 15:52:41 -0300 From: "Giovanni P. Tirloni" User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050808) 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 Subject: [Fwd: pthread_create: cannot allocate memory] 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, 18 Aug 2005 18:52:49 -0000 Perhaps this is more apropriate here.. To clarify it a bit, both server and client are being run from the same machine connecting to localhost. If the source code is needed I can send it here but it's a simple "while(1) { accept() pthread_create() }" on the server side and "for() connect()" on the client. What I'm trying to simulate is the behavior of a IRC server that has thousands of persistent connections, but with threads. -------- Original Message -------- Subject: pthread_create: cannot allocate memory Date: Thu, 18 Aug 2005 13:29:33 -0300 From: Giovanni P. Tirloni To: freebsd-threads@freebsd.org Hi, I coded a small echo server that creates a thread for every connection it accepts. It works fine and then I decided to test how many threads it could handle so I coded a stress.c client program that'd just create as many connections as I asked without exchanging any data. First I discovered the kern.threads.max_thread_per_proc limit that was limiting it to 1500 threads. So I raised it and the max_group_per_proc to 10k. I also increased the NMBCLUSTERS limit to 65535 just in case. What I've seen is that the server stops at 2400-2410 threads when I ask strees.c to create 8k connections. top shows I still have 150MB of free memory. Where should I look to raise this limit ? This is a CeleronM 1.3GHz and 512MB of RAM. Another behavior was that it creates 130 threads at once, waits, then another 130 more. It varies 1-10 threads sometimes but usually this inverval is constant. I think it might have something to do with the TCP code doing some normal limitation but I've look at it. Thanks, -- Giovanni P. Tirloni / gpt@tirloni.org From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 18 21:19:43 2005 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 093C816A41F for ; Thu, 18 Aug 2005 21:19:43 +0000 (GMT) (envelope-from gemini@geminix.org) Received: from gen129.n001.c02.escapebox.net (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B1C943D45 for ; Thu, 18 Aug 2005 21:19:40 +0000 (GMT) (envelope-from gemini@geminix.org) Message-ID: <4304FB69.3000500@geminix.org> Date: Thu, 18 Aug 2005 23:19:37 +0200 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.11) Gecko/20050802 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Michael R. Wayne" References: <200508181717.j7IHHaxW044139@manor.msen.com> In-Reply-To: <200508181717.j7IHHaxW044139@manor.msen.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Received: from gemini by geminix.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52 (FreeBSD)) id 1E5rnW-000Hmo-LC; Thu, 18 Aug 2005 23:19:38 +0200 Cc: freebsd-hackers@freebsd.org Subject: Re: Reducing dummynet pipe size hangs system 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, 18 Aug 2005 21:19:43 -0000 Michael R. Wayne wrote: > Summary: > On an old (4.8p10) machine, substantially reducing the pipe size > on a loaded connection causes the system to freeze. > > Is this a supported feature? > > Did it usd to be broken? > > Detail: > [...] > > Two days in a row now, just after 6:30, the box freezes, refusing > keyboard input and requiring a reboot. > > Queries: > Is this considered an unsupported use of dummynet? > > If it should work, was it broken back in 4.8 and, if so, when > was it corrected? I'd rather not take the time up upgrade the > box to 4.11 if I'll then be forced to move to 5.4. There were changes in dummynet's configuration functions that, among other things, dealt with protecting certain code sequences with the proper SPL. They went into the CVS repository after 4.8. I can't tell whether these fixes would help in your case but you may want to look at rev. 1.24.2.22 and 1.24.2.25 (RELENG_4) in any case: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet/ip_dummynet.c?only_with_tag=RELENG_4 Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 08:54:35 2005 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 3012016A41F for ; Fri, 19 Aug 2005 08:54:35 +0000 (GMT) (envelope-from pawmal-posting@freebsd.lublin.pl) Received: from shellma.zin.lublin.pl (shellma.zin.lublin.pl [212.182.126.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id C565A43D45 for ; Fri, 19 Aug 2005 08:54:34 +0000 (GMT) (envelope-from pawmal-posting@freebsd.lublin.pl) Received: by shellma.zin.lublin.pl (Postfix, from userid 1018) id 7A4E9347E37; Fri, 19 Aug 2005 10:53:00 +0200 (CEST) Date: Fri, 19 Aug 2005 10:53:00 +0200 From: Pawel Malachowski To: freebsd-hackers@freebsd.org Message-ID: <20050819085300.GB53116@shellma.zin.lublin.pl> References: <200508181717.j7IHHaxW044139@manor.msen.com> <4304FB69.3000500@geminix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4304FB69.3000500@geminix.org> User-Agent: Mutt/1.4.2i Subject: Re: Reducing dummynet pipe size hangs system 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, 19 Aug 2005 08:54:35 -0000 On Thu, Aug 18, 2005 at 11:19:37PM +0200, Uwe Doering wrote: > There were changes in dummynet's configuration functions that, among > other things, dealt with protecting certain code sequences with the > proper SPL. They went into the CVS repository after 4.8. I can't tell > whether these fixes would help in your case They will fix the problem with hungs after changing pipes bandwidth etc. -- Pawe³ Ma³achowski From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 08:58:16 2005 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 B58A316A41F for ; Fri, 19 Aug 2005 08:58:16 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3786A43D45 for ; Fri, 19 Aug 2005 08:58:15 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-216-38-19.daxnet.no ([193.216.38.19] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 47890948 for freebsd-hackers@freebsd.org; Fri, 19 Aug 2005 10:58:13 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Fri, 19 Aug 2005 10:59:11 +0200 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508191059.12157.hselasky@c2i.net> Subject: Broken floppy disk driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 08:58:16 -0000 Hi, I'm just wondering. Things used to work on my old 200MHz pentium, but recent changes made to FreeBSD-6/7 current break things. This is what dmesg shows: atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xf000-0xf00f at device 7.1 on pci0 ata0: on atapci0 ata1: on atapci0 fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 port 2, mask 8, bits 0 read ffffffff port 1, mask 20, bits 0 read ffffffff port 2, mask 71, bits 0 read ffffffff port 2, mask 58, bits 0 read ffffffff port 2, mask 58, bits 0 read ffffffff port 2, mask 58, bits 0 read ffffffff ad0: 32253MB at ata0-master UDMA33 acd0: CDROM at ata1-master PIO4 acd0: FAILURE - TEST_UNIT_READY timed out afd0: FAILURE - MODE_SENSE_BIG timed out afd0: FAILURE - MODE_SENSE_BIG timed out acd0: FAILURE - TEST_UNIT_READY timed out afd0: FAILURE - MODE_SENSE_BIG timed out afd0: FAILURE - MODE_SENSE_BIG timed out acd0: FAILURE - TEST_UNIT_READY timed out afd0: FAILURE - MODE_SENSE_BIG timed out ^^^ doesn't FreeBSD know when there is no disk present ? device_attach: afd0 attach returned 6 ^^^ can't use my floppy any more. Any patch suggestions? ATA PseudoRAID loaded acd0: FAILURE - TEST_UNIT_READY timed out acd0: FAILURE - TEST_UNIT_READY timed out acd0: FAILURE - TEST_UNIT_READY timed out acd0: FAILURE - TEST_UNIT_READY timed out Is anyone responsible for this? What can I do? --HPS From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 09:58:26 2005 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 04E4D16A452 for ; Fri, 19 Aug 2005 09:58:26 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 99A5143D46 for ; Fri, 19 Aug 2005 09:58:25 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix3-2.free.fr (Postfix) with ESMTP id BBE0EC110; Fri, 19 Aug 2005 11:58:23 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 24F414080; Fri, 19 Aug 2005 11:58:53 +0200 (CEST) Date: Fri, 19 Aug 2005 11:58:53 +0200 From: Jeremie Le Hen To: Uwe Doering Message-ID: <20050819095852.GX659@obiwan.tataz.chchile.org> References: <200508181717.j7IHHaxW044139@manor.msen.com> <4304FB69.3000500@geminix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4304FB69.3000500@geminix.org> User-Agent: Mutt/1.5.9i Cc: freebsd-hackers@freebsd.org Subject: Re: Reducing dummynet pipe size hangs system 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, 19 Aug 2005 09:58:26 -0000 Hi Michael, > > If it should work, was it broken back in 4.8 and, if so, when > > was it corrected? I'd rather not take the time up upgrade the > > box to 4.11 if I'll then be forced to move to 5.4. > > There were changes in dummynet's configuration functions that, among > other things, dealt with protecting certain code sequences with the > proper SPL. They went into the CVS repository after 4.8. I can't tell > whether these fixes would help in your case but you may want to look at > rev. 1.24.2.22 and 1.24.2.25 (RELENG_4) in any case: Be warned that the last import of IPFilter 3.4.35 in FreeBSD 4.11 broke dummynet/ipnat interaction one step further. You can use RELENG_4, it works very well (I use it as my own router), but if you are using IPFilter in addition to DUMMYNET, you have to use the old IPFilter. You can check how to do this on this thread, this is fairly easy [1]. This thread also (confusely) explain what is broken. Regards, [1] http://lists.freebsd.org/pipermail/freebsd-net/2005-January/006363.html -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 10:46:49 2005 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 11C4F16A41F for ; Fri, 19 Aug 2005 10:46:49 +0000 (GMT) (envelope-from oli@aker.isnic.is) Received: from aker.isnic.is (aker.isnic.is [193.4.58.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DBCC43D46 for ; Fri, 19 Aug 2005 10:46:48 +0000 (GMT) (envelope-from oli@aker.isnic.is) Received: by aker.isnic.is (Postfix, from userid 1000) id 4014B8A049; Fri, 19 Aug 2005 10:46:47 +0000 (UTC) Date: Fri, 19 Aug 2005 10:46:47 +0000 From: Olafur Osvaldsson To: freebsd-hackers@freebsd.org Message-ID: <20050819104647.GD76542@isnic.is> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Crash in bge_newbuf_std on 5.4 - need help with debugging 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, 19 Aug 2005 10:46:49 -0000 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Maybe someone more experienced than me could help me out with this... (kgdb) bt #0 doadump () at pcpu.h:159 #1 0xc060c5ef in boot (howto=3D260) at /usr/src/sys/kern/kern_shutdown.c:4= 10 #2 0xc060c915 in panic (fmt=3D0xc07fd250 "%s") at /usr/src/sys/kern/kern_s= hutdown.c:566 #3 0xc07b26d4 in trap_fatal (frame=3D0xe67d8bbc, eva=3D3217031168) at /usr/src/sys/i386/i386/trap.c:817 #4 0xc07b2417 in trap_pfault (frame=3D0xe67d8bbc, usermode=3D0, eva=3D3217= 031168) at /usr/src/sys/i386/i386/trap.c:735 #5 0xc07b2051 in trap (frame=3D {tf_fs =3D -1067384808, tf_es =3D -1018167280, tf_ds =3D -1064501232,= tf_edi =3D -1016803328, tf_esi =3D -426416128, tf_ebp =3D -427979700, tf_i= sp =3D -427979800, tf_ebx =3D -1012528640, tf_edx =3D 0, tf_ecx =3D 2, tf_e= ax =3D 0, tf_trapno =3D 12, tf_err =3D 0, tf_eip =3D -1065755687, tf_cs =3D= 8, tf_eflags =3D 66118, tf_esp =3D -1018649728, tf_ss =3D -1017978880}) at /usr/src/sys/i386/i386/trap.c:4= 25 #6 0xc079fdba in calltrap () at /usr/src/sys/i386/i386/exception.s:140 #7 0xc0610018 in tdsigwakeup (td=3D0xc3a60a00, sig=3D0, action=3D0xc364d00= 0) at /usr/src/sys/kern/kern_sig.c:1972 #8 0xc04d5928 in bge_newbuf_std (sc=3D0xc364d000, i=3D192, m=3D0x0) at /us= r/src/sys/dev/bge/if_bge.c:915 #9 0xc04d883c in bge_rxeof (sc=3D0xc364d000) at /usr/src/sys/dev/bge/if_bg= e.c:2768 #10 0xc04d8c60 in bge_intr (xsc=3D0xc364d000) at /usr/src/sys/dev/bge/if_bg= e.c:2975 #11 0xc05f8599 in ithread_loop (arg=3D0xc3480e00) at /usr/src/sys/kern/kern= _intr.c:547 #12 0xc05f7635 in fork_exit (callout=3D0xc05f8440 , arg=3D0xc= 3480e00, frame=3D0xe67d8d48) at /usr/src/sys/kern/kern_fork.c:791 #13 0xc079fe1c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:= 209 (kgdb) up 8 #8 0xc04d5928 in bge_newbuf_std (sc=3D0xc364d000, i=3D192, m=3D0x0) at /us= r/src/sys/dev/bge/if_bge.c:915 915 error =3D bus_dmamap_load(sc->bge_cdata.bge_mtag, (kgdb) list 910 m_adj(m_new, ETHER_ALIGN); 911 sc->bge_cdata.bge_rx_std_chain[i] =3D m_new; 912 r =3D &sc->bge_ldata.bge_rx_std_ring[i]; 913 ctx.bge_maxsegs =3D 1; 914 ctx.sc =3D sc; 915 error =3D bus_dmamap_load(sc->bge_cdata.bge_mtag, 916 sc->bge_cdata.bge_rx_std_dmamap[i], mtod(m_new, void *), 917 m_new->m_len, bge_dma_map_addr, &ctx, BUS_DMA_NOWAIT); 918 if (error || ctx.bge_maxsegs =3D=3D 0) { 919 if (m =3D=3D NULL) (kgdb) print sc->bge_cdata.bge_mtag $6 =3D 0xc3628700 (kgdb) print sc->bge_cdata.bge_rx_std_dmamap[i] $7 =3D 0x0 (kgdb) print i $8 =3D 192 (kgdb) print m_new $9 =3D (struct mbuf *) 0xc3a60a00 (kgdb) print m_new->m_len There is no member named m_len. (kgdb) print bge_dma_map_addr $10 =3D {void (void *, bus_dma_segment_t *, int, int)} 0xc04d5118 (kgdb) print ctx $11 =3D {sc =3D 0xc364d000, bge_busaddr =3D 3866987660, bge_flags =3D 53549= , bge_idx =3D 131, bge_maxsegs =3D 1, bge_ring =3D 0xc3508180} The things that strike me there is the lack of "m_new->m_len" and the NULL = in the second parameter...I don't know enaugh to say if either is OK. Any ideas or suggestions on the next step? /Oli --=20 Olafur Osvaldsson Systems Administrator Internet a Islandi hf. Tel: +354 525-5291 Email: oli@isnic.is --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDBbiX8xNRBRknOFwRAiMzAJ9MVhqqzf19uwGKyNFu0ekui2dRwwCgiUHC tqm+1qOqmRZKnNRcKaCW/Ks= =XRmp -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 12:25:55 2005 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 1439616A41F for ; Fri, 19 Aug 2005 12:25:55 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from postfix4-2.free.fr (postfix4-2.free.fr [213.228.0.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE29843D45 for ; Fri, 19 Aug 2005 12:25:54 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix4-2.free.fr (Postfix) with ESMTP id C314F323516; Fri, 19 Aug 2005 14:25:53 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id E04654080; Fri, 19 Aug 2005 14:26:22 +0200 (CEST) Date: Fri, 19 Aug 2005 14:26:22 +0200 From: Jeremie Le Hen To: Hans Petter Selasky Message-ID: <20050819122622.GB659@obiwan.tataz.chchile.org> References: <200508191059.12157.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508191059.12157.hselasky@c2i.net> User-Agent: Mutt/1.5.9i Cc: freebsd-hackers@freebsd.org Subject: Re: Broken floppy disk driver 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, 19 Aug 2005 12:25:55 -0000 Hi Hans, [ this topic should live on -current@ ] > I'm just wondering. Things used to work on my old 200MHz pentium, but recent > changes made to FreeBSD-6/7 current break things. This is what dmesg shows: I understand that trying multiple kernels on such a system is not an option, unless - and I hope so - you are cross-compiling. What do you mean with "recent changes" ? At best, could you point out the guilty commit ? If you are indeed cross-compiling, then try various kernel sources between the last known working date and HEAD. If you wonder how to do this, this is pretty simple if you are using cvs to get your sources : cvs up -D 2005.08.19.14.23.37 -dP where "2005.08.19.14.23.37" is the date you want. I also advice you to use dicotomy. Thank you. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 14:11:47 2005 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 7F05416A41F for ; Fri, 19 Aug 2005 14:11:47 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A43643D45 for ; Fri, 19 Aug 2005 14:11:45 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.12.11/8.13.1) with ESMTP id j7JEBawT055241 for ; Fri, 19 Aug 2005 10:11:36 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.12.11/8.13.1/Submit) id j7JEBa6a055240 for freebsd-hackers@freebsd.org; Fri, 19 Aug 2005 10:11:36 -0400 (EDT) (envelope-from bv) Date: Fri, 19 Aug 2005 10:11:30 -0400 From: Bill Vermillion To: freebsd-hackers@freebsd.org Message-ID: <20050819141130.GB54150@wjv.com> References: <20050819120018.206B416A420@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050819120018.206B416A420@hub.freebsd.org> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.6i X-Spam-Status: No, score=-2.8 required=5.0 tests=ALL_TRUSTED autolearn=failed version=3.0.4 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on bilver.wjv.com Subject: Re: Parking disk drive heads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 14:11:47 -0000 "Bits dont fail me now!" was what freebsd-hackers-request@freebsd.org muttered as he hastily typed this on Fri, Aug 19, 2005 at 12:00 : > 1. Re: Parking disk drive heads (Glenn Dawson) > Message: 1 > Date: Wed, 17 Aug 2005 12:47:32 -0700 > From: Glenn Dawson > Subject: Re: Parking disk drive heads > At 11:32 PM 8/16/2005, m.ehinger@ltur.de wrote: > >Hi, > >which is the correct way to park the hd head? > Seagate drives park the heads automatically when they are turned > off. As far as I know, this applies to other manufacturer's > drives as well. To which he replied: > Message: 2 > Date: Thu, 18 Aug 2005 08:14:47 +0200 > From: m.ehinger@ltur.de > Subject: Re: Parking disk drive heads > I don't want to park them on turn off. I want to park them > before a possible strong shock which could cause damage and > unpark them afterwards. The setups for parking heads pretty much went away when the move from MFM drive to ATA technology. And if your are worried about a shock that could damage the drive, you will probably lose your computer at the same time. Check the technical specs on current drives. You will see that most will handled well over 100G shocks when not running, and usually far over 20G in operational mode. Considering that 20G to the human body usually means death you aren't going to have to worry about losing drives to operating bumps unless you have a habit of dropping them in parachutes from airplanes. :-) I have ruined drives with a bad bump in the past - but those were MFM drives - and that happened in the mid-to-late 1980s. The first HDs I saw could withstand less than 1G in shipping so the 5.25" Shugart ST-505 drives - $25090 for 5MB [that is MegaByte] were shipped in foam padded boxes a bit larger than the drive, and these boxes were suspended by springs from the corners of a much larger shipping box - in the 18"x18" size category. IOW - unless you are running some early ATA drives, shocks when running are something you don't have to really worry about, unless you plan to shove the entire computer off the desk when it is running with the power on. Bill [The orignal post was in of freebsd-hackers Digest, Vol 126, Issue 5] -- Bill Vermillion - bv @ wjv . com From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 14:27:16 2005 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 9A78A16A41F for ; Fri, 19 Aug 2005 14:27:16 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 174E643D45 for ; Fri, 19 Aug 2005 14:27:15 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from 217-230-20.511210.adsl.tele2.no ([193.217.230.20] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 48006667 for freebsd-hackers@freebsd.org; Fri, 19 Aug 2005 16:27:13 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Fri, 19 Aug 2005 16:28:06 +0200 User-Agent: KMail/1.7 References: <200508191059.12157.hselasky@c2i.net> <20050819122622.GB659@obiwan.tataz.chchile.org> In-Reply-To: <20050819122622.GB659@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508191628.07539.hselasky@c2i.net> Subject: Re: Broken floppy disk driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 14:27:16 -0000 On Friday 19 August 2005 14:26, Jeremie Le Hen wrote: > Hi Hans, > > [ this topic should live on -current@ ] > > > I'm just wondering. Things used to work on my old 200MHz pentium, but > > recent changes made to FreeBSD-6/7 current break things. This is what > > dmesg shows: > > I understand that trying multiple kernels on such a system is not an > option, unless - and I hope so - you are cross-compiling. Yes, I am using a FreeBSD 7 kernel on a 5.3 system, but that has nothing to do with it. Maybe I should specify, that this device, afd0, is a 250MB ZIP drive. Last time I can remember that it worked, was in March 2005 ? > > What do you mean with "recent changes" ? At best, could you point out > the guilty commit ? If you are indeed cross-compiling, then try > various kernel sources between the last known working date and HEAD. > > If you wonder how to do this, this is pretty simple if you are using > cvs to get your sources : > > cvs up -D 2005.08.19.14.23.37 -dP I cannot do this right now, but maybe later. http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ata/atapi-fd.c Looking at the logs it must be that "much rumoured ATA mkIII update". Maybe "sos" can explain or give some hints on how to fix this? --HPS From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 16:43:50 2005 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 DCBE516A41F for ; Fri, 19 Aug 2005 16:43:49 +0000 (GMT) (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 880B343D48 for ; Fri, 19 Aug 2005 16:43:49 +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 j7JGhm5n029835; Fri, 19 Aug 2005 09:43:48 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j7JGhmev029834; Fri, 19 Aug 2005 09:43:48 -0700 Date: Fri, 19 Aug 2005 09:43:48 -0700 From: Brooks Davis To: Bill Vermillion Message-ID: <20050819164348.GA27907@odin.ac.hmc.edu> References: <20050819120018.206B416A420@hub.freebsd.org> <20050819141130.GB54150@wjv.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline In-Reply-To: <20050819141130.GB54150@wjv.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu Cc: freebsd-hackers@freebsd.org Subject: Re: Parking disk drive heads 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, 19 Aug 2005 16:43:50 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Aug 19, 2005 at 10:11:30AM -0400, Bill Vermillion wrote: > "Bits dont fail me now!" was what > freebsd-hackers-request@freebsd.org muttered as he hastily typed > this on Fri, Aug 19, 2005 at 12:00 : >=20 > > 1. Re: Parking disk drive heads (Glenn Dawson) >=20 > > Message: 1 > > Date: Wed, 17 Aug 2005 12:47:32 -0700 > > From: Glenn Dawson > > Subject: Re: Parking disk drive heads >=20 > > At 11:32 PM 8/16/2005, m.ehinger@ltur.de wrote: > > >Hi, >=20 > > >which is the correct way to park the hd head? >=20 > > Seagate drives park the heads automatically when they are turned > > off. As far as I know, this applies to other manufacturer's > > drives as well. >=20 >=20 > To which he replied: >=20 > > Message: 2 > > Date: Thu, 18 Aug 2005 08:14:47 +0200 > > From: m.ehinger@ltur.de > > Subject: Re: Parking disk drive heads >=20 > > I don't want to park them on turn off. I want to park them > > before a possible strong shock which could cause damage and > > unpark them afterwards. >=20 > The setups for parking heads pretty much went away when the move > from MFM drive to ATA technology. >=20 > And if your are worried about a shock that could damage the drive, > you will probably lose your computer at the same time. >=20 > Check the technical specs on current drives. You will see that > most will handled well over 100G shocks when not running, and > usually far over 20G in operational mode. Considering that > 20G to the human body usually means death you aren't going to have > to worry about losing drives to operating bumps unless you have a > habit of dropping them in parachutes from airplanes. :-) I've ruined at least one modern ATA disk without otherwise damaging the laptop by hitting it too hard so this is not true. > IOW - unless you are running some early ATA drives, shocks when > running are something you don't have to really worry about, unless > you plan to shove the entire computer off the desk when it is > running with the power on. This is exactly what the origional intends to protect against. Nearly all good laptop vendors are adding the necessicary hardware to their systems these days. At the end of the day, the data on your hard drive is much worth more then the laptop so it's perfectly rational to save the hard drive even if the machine will be toast. For an economic example, my corprate laptop is worth slightly less then one week's pre-tax income. It would take a lot more than one week to reconstruct the data on it if not for backups and extensive use of remote revision control systems for anything of importance. -- 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 --LZvS9be/3tNcYl/X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFDBgxDXY6L6fI4GtQRArOtAJ9utCIAcPwMHbE4MphWbd6+SuPeOgCeO9q0 tf/LPJgKmH24jt/evw9iQ8M= =LH0y -----END PGP SIGNATURE----- --LZvS9be/3tNcYl/X-- From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 16:58:15 2005 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 49F7116A41F for ; Fri, 19 Aug 2005 16:58:15 +0000 (GMT) (envelope-from julian@elischer.org) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 063D043D45 for ; Fri, 19 Aug 2005 16:58:14 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id 941E62090AF; Fri, 19 Aug 2005 09:58:14 -0700 (PDT) Received: from [192.168.2.2] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j7JGwCKJ000476; Fri, 19 Aug 2005 09:58:13 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <43060FA4.5080807@elischer.org> Date: Fri, 19 Aug 2005 09:58:12 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: bv@wjv.com References: <20050819120018.206B416A420@hub.freebsd.org> <20050819141130.GB54150@wjv.com> In-Reply-To: <20050819141130.GB54150@wjv.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Parking disk drive heads 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, 19 Aug 2005 16:58:15 -0000 Bill Vermillion wrote: > "Bits dont fail me now!" was what > freebsd-hackers-request@freebsd.org muttered as he hastily typed > this on Fri, Aug 19, 2005 at 12:00 : > > >> 1. Re: Parking disk drive heads (Glenn Dawson) > > > The setups for parking heads pretty much went away when the move > from MFM drive to ATA technology. Well, they are obvioulsy back as the IBM and apple laptops invoke them. > > And if your are worried about a shock that could damage the drive, > you will probably lose your computer at the same time. not evennearly true, but even if it were, I'd rather lase the laptop and be able to salvage teh drive than lose it all. > > Check the technical specs on current drives. You will see that > most will handled well over 100G shocks when not running, and > usually far over 20G in operational mode. Considering that > 20G to the human body usually means death you aren't going to have > to worry about losing drives to operating bumps unless you have a > habit of dropping them in parachutes from airplanes. :-) this shows a slight misunderstanding of the use of 'G' in describing such events. "shock" Gs are not the same as sustained Gs. If you bang your hand on the table, the cells on the outer side of your skin go from 10 km/h (~2m/s) to 0km/h in 0.000001m (1/1000th of a mm). It takes your cells, traveling at 2m/s about 1/500000 the of a second to cover that distance, so the accelleration is somethign of the order of 2/(1/500000) or, about 1 million Gs. cells a couple of cells in already see significantly lower shocks as the external cells distort, absobing energy, and lengthenning the abount of time that the inner cells have to come to a stop. it's something like an order of magnitude per cell for the first few cells. Shock loading for a two hard objects hitting each other, (e.g. the ground and a laptop) can be in the 100s of thousands of Gs for parts directly attached, to hundreds of G's on indirectly attached items to 10s of G's for shock mounted items such as the disk drive. Moving requirements for survival from 20G to 100G by parking the heads in flight can greatly increase the chances that the drive survives. just placing an unmounted drive down on a hard table, even when not running, can ruin it. We lost hundresds that way at Whistle until we did a failure analysis. Just placing a rubber mat on the table. fixed it and instructing the staff to always put the drives on a soft surface made the problem go right away. > > I have ruined drives with a bad bump in the past - but those > were MFM drives - and that happened in the mid-to-late 1980s. > > The first HDs I saw could withstand less than 1G in shipping so > the 5.25" Shugart ST-505 drives - $25090 for 5MB [that is MegaByte] > were shipped in foam padded boxes a bit larger than the drive, and > these boxes were suspended by springs from the corners of a much > larger shipping box - in the 18"x18" size category. > > IOW - unless you are running some early ATA drives, shocks when > running are something you don't have to really worry about, unless > you plan to shove the entire computer off the desk when it is > running with the power on. > > Bill > > [The orignal post was in of freebsd-hackers Digest, Vol 126, Issue 5] > > > From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 18:33:42 2005 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 C6D3516A41F for ; Fri, 19 Aug 2005 18:33:42 +0000 (GMT) (envelope-from lists@nbux.com) Received: from smtp6.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEDCA43D46 for ; Fri, 19 Aug 2005 18:33:41 +0000 (GMT) (envelope-from lists@nbux.com) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0607.wanadoo.fr (SMTP Server) with ESMTP id 8DBC61C001F9 for ; Fri, 19 Aug 2005 20:33:40 +0200 (CEST) Received: from daneel.nbux.com (LNeuilly-152-22-15-131.w82-127.abo.wanadoo.fr [82.127.94.131]) by mwinf0607.wanadoo.fr (SMTP Server) with ESMTP id 44FB61C001F1 for ; Fri, 19 Aug 2005 20:33:40 +0200 (CEST) X-ME-UUID: 20050819183340282.44FB61C001F1@mwinf0607.wanadoo.fr Received: from [192.168.42.2] (daneel.nbux.com [192.168.42.2]) by daneel.nbux.com (Postfix) with ESMTP id D9AE41BFC82 for ; Fri, 19 Aug 2005 20:33:39 +0200 (CEST) Message-ID: <43062603.5050206@nbux.com> Date: Fri, 19 Aug 2005 20:33:39 +0200 From: Christophe Yayon Organization: nbux.com User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) 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 Subject: nagios and freebsd threads issue : help please ... 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, 19 Aug 2005 18:33:43 -0000 Hi all You should know about freebsd and nagios 2.0b threads issues (100% cpu use by a forked process, lost check result, some pause of nagios main process in certains obscursives conditions...). Some Nagios developpers says that the problem is in FreeBSD and some other says that the problem is in nagios pthreads implementation, here a resume of our discussions : ------- The thread I started is here: http://marc.theaimsgroup.com/?t=111930118000001&r=1&w=2 There are some very interesting replies, a few in particular note that Nagios may be breaking POSIX spec in how it spawns/destroys threads: http://marc.theaimsgroup.com/?l=freebsd-hackers&m=111944526323754&w=2 http://marc.theaimsgroup.com/?l=freebsd-hackers&m=111945035012258&w=2 Anyhow, I"m sure if Ethan were to post some more specific info to freebsd-hackers@fr... (it"s an open list, no need to sub), this issue could get banged out pretty quickly. Shortly after this thread, I found another where the issue was brought up by another curious poster, and he was using 5.4, which uses a newer threading library: http://marc.theaimsgroup.com/?t=112119712600002&r=1&w=2 This post again brings up the "fork without exec or exit" possibly not following spec: http://marc.theaimsgroup.com/?l=freebsd-hackers&m=112125883804481&w=2 "I don"t know what Nagios does just after fork(2), it would be worth to check. It appears that fork(2)ing without exec(2)ing or _exit(2)ing in a pthreaded program is not a "valid" behaviour, regarding to SUSv3 [1]. I don"t want to avoid admitting there is a problem in FreeBSD threading library, I don"t know how other OSes handle this, but Nagios folks should really avoid doing what is explicitely dissuaded in SUSv3." -------- -------- As the problem isn't in Nagios and noone seems to have an authoritative answer on what exactly is causing it, I'd say you would be better off switching to a GNU/Linux system, with at least Linux 2.4.29 and glibc-2.3 (a lot work was put into thread-safeness on glibc-2.3). -------- -------- From http://www.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html "It is suggested that programs that use fork() call an exec function very soon afterwards in the child process, thus resetting all states. In the meantime, only a short list of async-signal-safe library routines are promised to be available." Note *suggested*. This is a recommendation to protect against a shoddy pthread-implementation. The thread specifications rule that only the thread calling fork() is duplicated, which initially leads to the recommendation (other threads holding locks aren't around to release them in the new execution context). That said, Nagios would most likely benefit greatly from a different means of checking things than fork()'ing twice and sending the results through several tiers of FIFO's. Several different methods have already been benchmarked. For server machines (or at least cans with a lot of memory and quite regularly multiple CPU's), the best way seems to be to create a new thread for each check to run. popen() causes a fork() and execve(), so that should be safe enough. What limits this imposes I don't know, but the NPTL library in use on most modern linux systems today handles 10.000 threads without barfing, so the limit would probably be sysconf(_SC_MAX_FILES), or ulimit -n, which is required by posix to be at least 256. Note that half this value (give or take 5 or so for stdin and such) represents the number of checks that can run simultaneously at any given time. When one of them completes another can kick in. -------- What do you think about this ? Should we have a specific threads nagios patch for FreeBSD ? Nagios problem or FreeBSD problem ? Should we switch our Nagios systems to Linux (which is very psychological difficult for me ...) ? Thanks in advance for your help... I hope we will found a solution... From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 19:03:12 2005 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 5710616A41F for ; Fri, 19 Aug 2005 19:03:12 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA38D43D48 for ; Fri, 19 Aug 2005 19:03:11 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.4/8.13.4/NETPLEX) with ESMTP id j7JJ3A1P019891; Fri, 19 Aug 2005 15:03:10 -0400 (EDT) Date: Fri, 19 Aug 2005 15:03:10 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Christophe Yayon In-Reply-To: <43062603.5050206@nbux.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-hackers@freebsd.org Subject: Re: nagios and freebsd threads issue : help please ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 19:03:12 -0000 On Fri, 19 Aug 2005, Christophe Yayon wrote: > Hi all > > You should know about freebsd and nagios 2.0b threads issues (100% cpu > use by a forked process, lost check result, some pause of nagios main > process in certains obscursives conditions...). > > Some Nagios developpers says that the problem is in FreeBSD and some > other says that the problem is in nagios pthreads implementation, here a > resume of our discussions : See http://www.freebsd.org/cgi/getmsg.cgi?fetch=340959+344806+/usr/local/www/db/text/2005/freebsd-hackers/20050703.freebsd-hackers -- DE From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 20:01:59 2005 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 B66B716A41F for ; Fri, 19 Aug 2005 20:01:59 +0000 (GMT) (envelope-from lists@nbux.com) Received: from smtp6.wanadoo.fr (smtp6.wanadoo.fr [193.252.22.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06EEC43D46 for ; Fri, 19 Aug 2005 20:01:58 +0000 (GMT) (envelope-from lists@nbux.com) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0608.wanadoo.fr (SMTP Server) with ESMTP id 80A051C0024F for ; Fri, 19 Aug 2005 22:01:57 +0200 (CEST) Received: from daneel.nbux.com (LNeuilly-152-22-15-131.w82-127.abo.wanadoo.fr [82.127.94.131]) by mwinf0608.wanadoo.fr (SMTP Server) with ESMTP id 683C11C00235; Fri, 19 Aug 2005 22:01:57 +0200 (CEST) X-ME-UUID: 20050819200157427.683C11C00235@mwinf0608.wanadoo.fr Received: from [192.168.42.2] (daneel.nbux.com [192.168.42.2]) by daneel.nbux.com (Postfix) with ESMTP id D8AC91BFCA3; Fri, 19 Aug 2005 22:01:56 +0200 (CEST) Message-ID: <43063AB4.9070102@nbux.com> Date: Fri, 19 Aug 2005 22:01:56 +0200 From: Christophe Yayon Organization: nbux.com User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: nagios and freebsd threads issue : help please ... 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, 19 Aug 2005 20:01:59 -0000 Hi Daniel, i have already read this post, i am in freebsd 5.4-stable of August on a SMP server and i have the problem... The post which you suggest do not explain anything, or i missed something ? Daniel Eischen wrote: > On Fri, 19 Aug 2005, Christophe Yayon wrote: > > >>Hi all >> >>You should know about freebsd and nagios 2.0b threads issues (100% cpu >>use by a forked process, lost check result, some pause of nagios main >>process in certains obscursives conditions...). >> >>Some Nagios developpers says that the problem is in FreeBSD and some >>other says that the problem is in nagios pthreads implementation, here a >>resume of our discussions : > > > See http://www.freebsd.org/cgi/getmsg.cgi?fetch=340959+344806+/usr/local/www/db/text/2005/freebsd-hackers/20050703.freebsd-hackers > > -- > DE > From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 20:06:16 2005 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 BA44116A420 for ; Fri, 19 Aug 2005 20:06:16 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3593143D48 for ; Fri, 19 Aug 2005 20:06:15 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.4/8.13.4/NETPLEX) with ESMTP id j7JK6F7a002087; Fri, 19 Aug 2005 16:06:15 -0400 (EDT) Date: Fri, 19 Aug 2005 16:06:15 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Christophe Yayon In-Reply-To: <43063AB4.9070102@nbux.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-hackers@freebsd.org Subject: Re: nagios and freebsd threads issue : help please ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 20:06:16 -0000 On Fri, 19 Aug 2005, Christophe Yayon wrote: > Hi Daniel, > > i have already read this post, i am in freebsd 5.4-stable of August on a > SMP server and i have the problem... > > The post which you suggest do not explain anything, or i missed something ? The post said that nagios did not work with stock 5.4 release, but it worked with -stable (kernel & userland). -- DE From owner-freebsd-hackers@FreeBSD.ORG Fri Aug 19 20:35:44 2005 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 D045716A41F for ; Fri, 19 Aug 2005 20:35:44 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7073943D45 for ; Fri, 19 Aug 2005 20:35:44 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.4/8.13.4/NETPLEX) with ESMTP id j7JKZhQU025028; Fri, 19 Aug 2005 16:35:43 -0400 (EDT) Date: Fri, 19 Aug 2005 16:35:43 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Christophe Yayon In-Reply-To: <43062603.5050206@nbux.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-hackers@freebsd.org Subject: Re: nagios and freebsd threads issue : help please ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Aug 2005 20:35:44 -0000 On Fri, 19 Aug 2005, Christophe Yayon wrote: > Hi all > > You should know about freebsd and nagios 2.0b threads issues (100% cpu > use by a forked process, lost check result, some pause of nagios main > process in certains obscursives conditions...). > > Some Nagios developpers says that the problem is in FreeBSD and some > other says that the problem is in nagios pthreads implementation, here a > resume of our discussions : > From > > http://www.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html > > "It is suggested that programs that use fork() call an exec function > very soon afterwards in the child process, thus resetting all states. In > the meantime, only a short list of async-signal-safe library routines > are promised to be available." > > Note *suggested*. This is a recommendation to protect against a shoddy > pthread-implementation. The thread specifications rule that only the > thread calling fork() is duplicated, which initially leads to the > recommendation (other threads holding locks aren't around to release > them in the new execution context). They choose to quote a weak reference to the actual requirement. The standard says (in the fork() section): A process shall be created with a single thread. If a multi-threaded process calls fork(), the new process shall contain a replica of the calling thread and its entire address space, possibly including the states of mutexes and other resources. Consequently, to avoid errors, the child process may only execute async-signal-safe operations until such time as one of the exec functions is called. Fork handlers may be established by means of the pthread_atfork() function in order to maintain application invariants across fork() calls. -- DE From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 03:59:51 2005 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 D4E9B16A41F for ; Sat, 20 Aug 2005 03:59:51 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from mail.ambrisko.com (mail.ambrisko.com [64.174.51.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A67843D46 for ; Sat, 20 Aug 2005 03:59:51 +0000 (GMT) (envelope-from ambrisko@ambrisko.com) Received: from server2.ambrisko.com (HELO www.ambrisko.com) ([192.168.1.2]) by mail.ambrisko.com with ESMTP; 19 Aug 2005 20:59:51 -0700 Received: from ambrisko.com (localhost [127.0.0.1]) by www.ambrisko.com (8.12.11/8.12.9) with ESMTP id j7K3xpZM015719; Fri, 19 Aug 2005 20:59:51 -0700 (PDT) (envelope-from ambrisko@ambrisko.com) Received: (from ambrisko@localhost) by ambrisko.com (8.12.11/8.12.11/Submit) id j7K3xoHF015718; Fri, 19 Aug 2005 20:59:50 -0700 (PDT) (envelope-from ambrisko) From: Doug Ambrisko Message-Id: <200508200359.j7K3xoHF015718@ambrisko.com> In-Reply-To: <43060FA4.5080807@elischer.org> To: Julian Elischer Date: Fri, 19 Aug 2005 20:59:50 -0700 (PDT) X-Mailer: ELM [version 2.4ME+ PL94b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cc: freebsd-hackers@freebsd.org Subject: Re: Parking disk drive heads 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, 20 Aug 2005 03:59:51 -0000 Julian Elischer writes: | just placing an unmounted drive down on a hard table, even when | not running, can ruin it. We lost hundreds that way at Whistle until | we did a failure analysis. Just placing a rubber mat on the table. | fixed it and instructing the staff to always put the drives on | a soft surface made the problem go right away. Not quite. Burn-in helped more. A few were head slaps but more was just media that needed exercising. It's the "lands minds" that bite you more when it has swap or other critical data on it. A little historical correction. Flash is nice but it has some issues. Atleast dropping it isn't one! Doug A. From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 05:50:59 2005 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 AA80E16A41F for ; Sat, 20 Aug 2005 05:50:59 +0000 (GMT) (envelope-from dmitry.mityugov@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 242AC43D45 for ; Sat, 20 Aug 2005 05:50:58 +0000 (GMT) (envelope-from dmitry.mityugov@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so696104wra for ; Fri, 19 Aug 2005 22:50:53 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eqYQm8uZSpnzEbtXvfWP+t4ujKhqm8g1UAOvUIg7g2OI6p/iuHeq7UhusFsGOjH3riVz2V/Po5qKIDEBqcPjSpeWUnTT4WijsxLe6WprvjIydY+UKAb4d/zDgZbGfes5DmR3cpXVz2zfwUtwuZhvFtip24FrW4C2lDdPR5avKpc= Received: by 10.54.130.12 with SMTP id c12mr23738wrd; Fri, 19 Aug 2005 22:50:53 -0700 (PDT) Received: by 10.54.56.33 with HTTP; Fri, 19 Aug 2005 22:50:53 -0700 (PDT) Message-ID: Date: Sat, 20 Aug 2005 09:50:53 +0400 From: Dmitry Mityugov To: freebsd-hackers@freebsd.org In-Reply-To: <57189.145.248.192.30.1123665610.squirrel@webmail.thilelli.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42F93030.2050509@thesnodgrass.com> <10303.145.248.192.30.1123662749.squirrel@webmail.thilelli.net> <57189.145.248.192.30.1123665610.squirrel@webmail.thilelli.net> Subject: Re: Realtek RTL8169 on FreeBSD 5.4: no carrier. 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, 20 Aug 2005 05:50:59 -0000 On 8/10/05, Julien Gabel wrote: > >> Regrettably, i always encountered this problem. I spoke about that > >> since the middle of 2004, and didn't really receive feedback on this. > >> I try a lot of things but none worked better than the other. > >> > >> To not forget about it, i filled a bug report on this particular > >> problem, see PR kern/80005 for more details. > >> > >> The last thing i want to give another try is to upgrade to RELENG_6, > >> since i currently follow the RELENG_5 branch. But i am not *very* > >> confident about that... > >> > >> Sorry not to have better answer to give you. >=20 > > IIRC, I have a RTL8169S-based D-Link gigabit network card at home and > > it works with FreeBSD just fine. >=20 > Yes, i know it simply works for a lot of users. It doesn't mean that it > is the case for all users... i am of those. Just realized that with ACPI disabled, this card does not work with FreeBSD 5.4 (at least in my machine), with ACPI enabled - it does. Hope this information will help somebody. --=20 Dmitry Mityugov, St. Petersburg, Russia I ignore all messages with confidentiality statements "We live less by imagination than despite it" - Rockwell Kent, "N by E" From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 07:24:11 2005 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 8450116A41F for ; Sat, 20 Aug 2005 07:24:11 +0000 (GMT) (envelope-from lists@nbux.com) Received: from smtp10.wanadoo.fr (smtp10.wanadoo.fr [193.252.22.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9678643D45 for ; Sat, 20 Aug 2005 07:24:08 +0000 (GMT) (envelope-from lists@nbux.com) Received: from me-wanadoo.net (unknown [127.0.0.1]) by mwinf1008.wanadoo.fr (SMTP Server) with ESMTP id 2EB512800168 for ; Sat, 20 Aug 2005 09:24:07 +0200 (CEST) Received: from daneel.nbux.com (LNeuilly-152-22-15-131.w82-127.abo.wanadoo.fr [82.127.94.131]) by mwinf1008.wanadoo.fr (SMTP Server) with ESMTP id 0CF252800164; Sat, 20 Aug 2005 09:24:06 +0200 (CEST) X-ME-UUID: 20050820072407531.0CF252800164@mwinf1008.wanadoo.fr Received: from [192.168.42.2] (daneel.nbux.com [192.168.42.2]) by daneel.nbux.com (Postfix) with ESMTP id C3E1D1C1290; Sat, 20 Aug 2005 09:24:06 +0200 (CEST) Message-ID: <4306DA96.8000904@nbux.com> Date: Sat, 20 Aug 2005 09:24:06 +0200 From: Christophe Yayon Organization: nbux.com User-Agent: Mozilla Thunderbird 1.0.6 (Macintosh/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: nagios and freebsd threads issue : help please ... 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, 20 Aug 2005 07:24:11 -0000 Daniel, But i am in stable '5.4-STABLE FreeBSD 5.4-STABLE #4: Tue Jul 5 11:18:14 CEST 2005' and i have again the problem ... The post is from Jun 22... I don't understant why i have again the problem ? Could u help me, please ? Thanks. Daniel Eischen wrote: > On Fri, 19 Aug 2005, Christophe Yayon wrote: > > >>Hi all >> >>You should know about freebsd and nagios 2.0b threads issues (100% cpu >>use by a forked process, lost check result, some pause of nagios main >>process in certains obscursives conditions...). >> >>Some Nagios developpers says that the problem is in FreeBSD and some >>other says that the problem is in nagios pthreads implementation, here a >>resume of our discussions : >> From >> >>http://www.opengroup.org/onlinepubs/009695399/functions/pthread_atfork.html >> >> "It is suggested that programs that use fork() call an exec function >> very soon afterwards in the child process, thus resetting all states. In >> the meantime, only a short list of async-signal-safe library routines >> are promised to be available." >> >> Note *suggested*. This is a recommendation to protect against a shoddy >> pthread-implementation. The thread specifications rule that only the >> thread calling fork() is duplicated, which initially leads to the >> recommendation (other threads holding locks aren't around to release >> them in the new execution context). > > > They choose to quote a weak reference to the actual requirement. > The standard says (in the fork() section): > > A process shall be created with a single thread. If a > multi-threaded process calls fork(), the new process shall > contain a replica of the calling thread and its entire address > space, possibly including the states of mutexes and other > resources. Consequently, to avoid errors, the child process may > only execute async-signal-safe operations until such time as one > of the exec functions is called. Fork handlers may be > established by means of the pthread_atfork() function in order > to maintain application invariants across fork() calls. > From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 08:18:27 2005 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 A08FA16A41F for ; Sat, 20 Aug 2005 08:18:27 +0000 (GMT) (envelope-from silby@silby.com) Received: from relay01.pair.com (relay01.pair.com [209.68.5.15]) by mx1.FreeBSD.org (Postfix) with SMTP id 289DB43D46 for ; Sat, 20 Aug 2005 08:18:26 +0000 (GMT) (envelope-from silby@silby.com) Received: (qmail 36067 invoked from network); 20 Aug 2005 08:18:25 -0000 Received: from unknown (HELO localhost) (unknown) by unknown with SMTP; 20 Aug 2005 08:18:25 -0000 X-pair-Authenticated: 209.68.2.70 Date: Sat, 20 Aug 2005 03:18:24 -0500 (CDT) From: Mike Silbersack To: Doug Ambrisko In-Reply-To: <200508200359.j7K3xoHF015718@ambrisko.com> Message-ID: <20050820031508.A73274@odysseus.silby.com> References: <200508200359.j7K3xoHF015718@ambrisko.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Julian Elischer Subject: Re: Parking disk drive heads 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, 20 Aug 2005 08:18:27 -0000 On Fri, 19 Aug 2005, Doug Ambrisko wrote: > Flash is nice but it has some issues. Atleast dropping it isn't one! > > Doug A. I'd be really happy if I could get a USB flash drive to last more than 8 months. Luckily, I started weekly backups after the first failure. That helped a lot when the second failure happened. The weird ways flash goes bad really makes me want to run something with full checksums (like ZFS) on it. Alas, even if I hacked up UFS to support such features, I suspect the W2K machines at work would be unhappy with it. :) I wonder if I should hack together a script that does MD5s during the backup process and notifies me if untouched files start changing... Mike "Silby" Silbersack From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 08:23:44 2005 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 9FE7B16A41F for ; Sat, 20 Aug 2005 08:23:44 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from smtp-relay.tamu.edu (smtp-relay.tamu.edu [165.91.143.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 52CA043D45 for ; Sat, 20 Aug 2005 08:23:44 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from [192.168.1.100] (disisit.com [24.248.192.101] (may be forged)) (authenticated bits=0) by smtp-relay.tamu.edu (8.13.3/8.12.10/oc) with ESMTP id j7K8NgIK010229 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Sat, 20 Aug 2005 03:23:43 -0500 (CDT) Mime-Version: 1.0 (Apple Message framework v734) Content-Transfer-Encoding: 7bit Message-Id: <64E87984-E173-4637-96AC-84BE7ABB60B1@tamu.edu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-hackers@freebsd.org From: "R. Tyler Ballance" Date: Sat, 20 Aug 2005 03:23:35 -0500 X-Mailer: Apple Mail (2.734) Received-SPF: pass (smtp-relay.tamu.edu: 24.248.192.101 is authenticated by a trusted mechanism) Subject: pthread functions swallowing stdout, and stderr? 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, 20 Aug 2005 08:23:44 -0000 Howdy, I'm working on my SoC project, where one of the important, yet broken, functions is being called from pthread_once() I have printf()'s before the pthread_once() call to help me debug, and printf()'s after the pthread_once() call, but the function that is called in pthread_once() has printf()'s inside it that never output to stdout :/ Here are some links in case I'm not making sense: http://perforce.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/ soc2005/launchd/liblaunch.c&REV=7 The function that calls pthread_once() is launch_msg() on line 692, the pthread_once() calls launch_client_init() on line 119. Nothing from within launch_client_init() gets output to the terminal, while the printfs in launch_msg() before and after the launch_client_init() call are both output.... Any tips? :/ Cheers, -R. Tyler Ballance From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 08:53:40 2005 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 80F0E16A41F for ; Sat, 20 Aug 2005 08:53:40 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from smtp-relay.tamu.edu (smtp-relay.tamu.edu [165.91.143.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B1AF43D45 for ; Sat, 20 Aug 2005 08:53:40 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from [192.168.1.100] (disisit.com [24.248.192.101] (may be forged)) (authenticated bits=0) by smtp-relay.tamu.edu (8.13.3/8.13.3/oc) with ESMTP id j7K8rbpp071856 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Sat, 20 Aug 2005 03:53:39 -0500 (CDT) (envelope-from tyler@tamu.edu) In-Reply-To: <64E87984-E173-4637-96AC-84BE7ABB60B1@tamu.edu> References: <64E87984-E173-4637-96AC-84BE7ABB60B1@tamu.edu> Mime-Version: 1.0 (Apple Message framework v734) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <96AE9ABD-3A71-4777-B808-DB5D472C2FB3@tamu.edu> Content-Transfer-Encoding: 7bit From: "R. Tyler Ballance" Date: Sat, 20 Aug 2005 03:53:35 -0500 To: "R. Tyler Ballance" X-Mailer: Apple Mail (2.734) Received-SPF: pass (smtp-relay.tamu.edu: 24.248.192.101 is authenticated by a trusted mechanism) Cc: freebsd-hackers@freebsd.org Subject: Re: pthread functions swallowing stdout, and stderr? 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, 20 Aug 2005 08:53:40 -0000 Sorry everybody for the extra crap in your inboxes; I was forgetting to add -lpthread to the LDFLAGS in the Makefile for the launchctl client.... Shouldn't gcc warn me against this? Oh well, false alarm, thanks reffie! Cheers, -R. Tyler Ballance On Aug 20, 2005, at 3:23 AM, R. Tyler Ballance wrote: > Howdy, I'm working on my SoC project, where one of the important, > yet broken, functions is being called from pthread_once() > > I have printf()'s before the pthread_once() call to help me debug, > and printf()'s after the pthread_once() call, but the function that > is called in pthread_once() has printf()'s inside it that never > output to stdout :/ > > Here are some links in case I'm not making sense: > http://perforce.freebsd.org/fileViewer.cgi?FSPC=//depot/projects/ > soc2005/launchd/liblaunch.c&REV=7 > > The function that calls pthread_once() is launch_msg() on line 692, > the pthread_once() calls launch_client_init() on line 119. > > Nothing from within launch_client_init() gets output to the > terminal, while the printfs in launch_msg() before and after the > launch_client_init() call are both output.... > > > > Any tips? :/ > > Cheers, > > -R. Tyler Ballance > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers- > unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 09:12:55 2005 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 B091616A41F for ; Sat, 20 Aug 2005 09:12:55 +0000 (GMT) (envelope-from adewole@sympatico.ca) Received: from BAYC1-PASMTP02.bayc1.hotmail.com (bayc1-pasmtp02.bayc1.hotmail.com [65.54.191.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B47F43D45 for ; Sat, 20 Aug 2005 09:12:55 +0000 (GMT) (envelope-from adewole@sympatico.ca) Message-ID: X-Originating-IP: [64.231.253.144] X-Originating-Email: [adewole@sympatico.ca] Received: from newton ([64.231.253.144]) by BAYC1-PASMTP02.bayc1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Sat, 20 Aug 2005 02:12:54 -0700 Message-ID: <009c01c5a568$7870b000$6501a8c0@newton> From: "Mike Adewole" To: Date: Sat, 20 Aug 2005 05:20:55 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-OriginalArrivalTime: 20 Aug 2005 09:12:54.0835 (UTC) FILETIME=[594CD830:01C5A567] Subject: Test - Ignore 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, 20 Aug 2005 09:12:55 -0000 From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 10:10:15 2005 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 D72BF16A41F; Sat, 20 Aug 2005 10:10:15 +0000 (GMT) (envelope-from adewole@sympatico.ca) Received: from BAYC1-PASMTP04.bayc1.hotmail.com (bayc1-pasmtp04.bayc1.hotmail.com [65.54.191.164]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BC9243D45; Sat, 20 Aug 2005 10:10:15 +0000 (GMT) (envelope-from adewole@sympatico.ca) Message-ID: X-Originating-IP: [64.231.252.68] X-Originating-Email: [adewole@sympatico.ca] Received: from newton ([64.231.252.68]) by BAYC1-PASMTP04.bayc1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Sat, 20 Aug 2005 03:10:15 -0700 Message-ID: <00d101c5a570$7b322050$6501a8c0@newton> From: "Mike Adewole" To: Date: Sat, 20 Aug 2005 06:18:13 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-OriginalArrivalTime: 20 Aug 2005 10:10:15.0278 (UTC) FILETIME=[5BF6C8E0:01C5A56F] Cc: freebsd-libh@freebsd.org Subject: Project BSDVISION Wants To Develop Native *BSD Console Desktop 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, 20 Aug 2005 10:10:16 -0000 For many people who spend a lot of time on the *BSD console and would love to have a desktop environment comparable to KDE/GNOME, I'm starting a project called BSDVISION to develop such an environment. Please don't ask if such an environment is really needed or not; the important thing is that some people like me need it badly enough to want to develop it. As a matter of fact, it has been in development for some time now and I think it's getting to the point where it makes sense to ask for community involvement. But I'm not looking for developers because development will continue to be done by myself with the assistance of paid contractors. What I'm looking for is people to maintain a community infrastructure (web site, mailing list, online forum, webcvs/svn, etc) which a community project like this needs in order to appeal to as many people as possible. So if you love the BSD console and would like to see it sport a complete desktop environment, the bsdvision project can really use your support. And since this project developed from an attempt to do a cleanroom implementation of libh, we'll be using the old libh mailing list until we have another one. Come help us make *BSD a truly complete platform with the best console desktop environment in the universe :-) Cheers From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 10:29:47 2005 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 289F616A41F for ; Sat, 20 Aug 2005 10:29:47 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe16.tele2.se [212.247.155.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DC6543D45 for ; Sat, 20 Aug 2005 10:29:46 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-233-10.daxnet.no ([193.217.233.10] verified) by mailfe16.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 9393666 for freebsd-hackers@freebsd.org; Sat, 20 Aug 2005 12:29:44 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Sat, 20 Aug 2005 12:30:37 +0200 User-Agent: KMail/1.7 References: <200508200359.j7K3xoHF015718@ambrisko.com> <20050820031508.A73274@odysseus.silby.com> In-Reply-To: <20050820031508.A73274@odysseus.silby.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508201230.37976.hselasky@c2i.net> Subject: Re: Parking disk drive heads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 10:29:47 -0000 On Saturday 20 August 2005 10:18, Mike Silbersack wrote: > On Fri, 19 Aug 2005, Doug Ambrisko wrote: > > Flash is nice but it has some issues. Atleast dropping it isn't one! > > > > Doug A. > > I'd be really happy if I could get a USB flash drive to last more than 8 > months. Luckily, I started weekly backups after the first failure. That > helped a lot when the second failure happened. > Flash drives does usually not last more than 10000 writes, per bit, from what I know. Probably you need some kind of special file-system that moves the files around as the write quoute gets used up! Eventually the size of the disk will reach zero, and you have to move the files elsewhere :-) But this is probably off topic. --HPS From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 12:03:51 2005 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 4A18716A41F for ; Sat, 20 Aug 2005 12:03:51 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from tower.berklix.org (tower.berklix.org [83.236.223.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63BAC43D45 for ; Sat, 20 Aug 2005 12:03:49 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A5BA1.dip.t-dialin.net [84.154.91.161]) (authenticated bits=0) by tower.berklix.org (8.12.9p2/8.12.9) with ESMTP id j7KC3ixr077644; Sat, 20 Aug 2005 14:03:46 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id j7KC3YhM001688; Sat, 20 Aug 2005 14:03:34 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id j7KC3s2g005892; Sat, 20 Aug 2005 14:03:54 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200508201203.j7KC3s2g005892@fire.jhs.private> To: "Mike Adewole" In-Reply-To: Message from "Mike Adewole" of "Sat, 20 Aug 2005 06:18:13 EDT." <00d101c5a570$7b322050$6501a8c0@newton> Date: Sat, 20 Aug 2005 14:03:54 +0200 From: "Julian H. Stacey" Cc: freebsd-hackers@freebsd.org Subject: Re: Project BSDVISION Wants To Develop Native *BSD Console Desktop 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, 20 Aug 2005 12:03:51 -0000 "Mike Adewole" wrote: cc: freebsd-hackers@freebsd.org, freebsd-libh@freebsd.org I reduced to freebsd-hackers@freebsd.org tp avoid cross posting (OK, libh might be more appropriate, but I'm not sub'd to that) > I'm looking for is people to maintain a community infrastructure (web site, > mailing list, online forum, webcvs/svn, etc) which a community project like > this needs in order to appeal to as many people as possible. > implementation of libh, we'll be using the old libh mailing list until we > have another one. Come help us make *BSD a truly complete platform with the > best console desktop environment in the universe :-) postmaster@freebsd.org would be best to approach if you just need another mail list. If for some reason that's not appropriate I could host a list under majordomo@berklix.org (sometime I'll convert to mailman). I could later also perhaps host CVS, I've got the space, traffic & config I'd need to think about. -- Julian Stacey Consultant Systems Engineer, Munich. http://berklix.com Mail in Ascii (Html = Spam). Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 13:10:14 2005 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 DE39316A422 for ; Sat, 20 Aug 2005 13:10:14 +0000 (GMT) (envelope-from andreas.kohn@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id F1B9F43D49 for ; Sat, 20 Aug 2005 13:10:13 +0000 (GMT) (envelope-from andreas.kohn@gmx.net) Received: (qmail invoked by alias); 20 Aug 2005 13:10:12 -0000 Received: from unknown (EHLO klamath) [212.204.44.203] by mail.gmx.net (mp031) with SMTP; 20 Aug 2005 15:10:12 +0200 X-Authenticated: #2431876 From: Andreas Kohn To: freebsd-hackers@freebsd.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-qxpM4wLEHpr1U6yp4gkw" Date: Sat, 20 Aug 2005 15:10:10 +0200 Message-Id: <1124543410.924.3.camel@klamath.syndrom23.de> Mime-Version: 1.0 X-Mailer: Evolution 2.3.7 FreeBSD GNOME Team Port X-Y-GMX-Trusted: 0 Subject: Strange (null) in cc -print-search-dirs 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, 20 Aug 2005 13:10:15 -0000 --=-qxpM4wLEHpr1U6yp4gkw Content-Type: multipart/mixed; boundary="=-4gBt5HywyjtV2BFJWP4D" --=-4gBt5HywyjtV2BFJWP4D Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi, I tried building lcc from the quake3 arena sources today, and it failed when doing cc -print-search-dirs. On my FreeBSD -CURRENT I got: install: /usr/libexec/(null) On DragonflyBSD guys from #dragonflybsd also got (null) there, except on very recent DF. Linux(RH9) has: install: /usr/lib/gcc-lib/i386-redhat-linux/3.2.2/ I changed contrib/gcc/gcc.c so that the (null) does no longer show, can someone please look at the attached patch for correctness? Thanks, -- Andreas --=20 was macht man eigentlich auf einer linux-gamer lan ? hl server aufsetzen und freuen ? *duck* ^^ --=-4gBt5HywyjtV2BFJWP4D Content-Disposition: attachment; filename=gcc-print-search-dirs-null.diff Content-Transfer-Encoding: base64 Content-Type: text/x-patch; name=gcc-print-search-dirs-null.diff; charset=UTF-8 SW5kZXg6IGNvbnRyaWIvZ2NjL2djYy5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpSQ1MgZmlsZTogL3N0b3JhZ2Uv ZnJlZWJzZC9jdnMvc3JjL2NvbnRyaWIvZ2NjL2djYy5jLHYNCnJldHJpZXZpbmcgcmV2aXNpb24g MS40MA0KZGlmZiAtdSAtcjEuNDAgZ2NjLmMNCi0tLSBjb250cmliL2djYy9nY2MuYwkzIEp1biAy MDA1IDA0OjAyOjIwIC0wMDAwCTEuNDANCisrKyBjb250cmliL2djYy9nY2MuYwkyMCBBdWcgMjAw NSAxMzowMjo0OSAtMDAwMA0KQEAgLTYwOTUsNiArNjA5NSw3IEBADQogICAvKiBSZWFkIHNwZWNz IGZyb20gYSBmaWxlIGlmIHRoZXJlIGlzIG9uZS4gICovDQogDQogI2lmZGVmIEZSRUVCU0RfTkFU SVZFDQorICBtYWNoaW5lX3N1ZmZpeCA9ICIiOw0KICAganVzdF9tYWNoaW5lX3N1ZmZpeCA9ICIi Ow0KICNlbHNlCS8qIEZSRUVCU0RfTkFUSVZFICovDQogICBtYWNoaW5lX3N1ZmZpeCA9IGNvbmNh dCAoc3BlY19tYWNoaW5lLCBkaXJfc2VwYXJhdG9yX3N0ciwNCg== --=-4gBt5HywyjtV2BFJWP4D-- --=-qxpM4wLEHpr1U6yp4gkw Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQBDByuyYucd7Ow1ygwRAigxAJ4u0h/pXPEdE7HJ5UR4SyTC3KUXBQCfdX1P BPlXUP3oWkufrp0IOmQX9b8= =ckKK -----END PGP SIGNATURE----- --=-qxpM4wLEHpr1U6yp4gkw-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 14:38:18 2005 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 2E05416A41F for ; Sat, 20 Aug 2005 14:38:18 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id A67A943D53 for ; Sat, 20 Aug 2005 14:38:17 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from 217-231-228.511210.adsl.tele2.no ([193.217.231.228] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 9628160 for freebsd-hackers@freebsd.org; Sat, 20 Aug 2005 16:38:15 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Sat, 20 Aug 2005 16:38:42 +0200 User-Agent: KMail/1.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508201638.43821.hselasky@c2i.net> Subject: Re: Project BSDVISION Wants To Develop Native *BSD Console Desktop X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 14:38:18 -0000 Hi, I am just wondering, but will you be using QT 4.0 for this project? I might be interrested, though I am very comfortable with blackbox, it might be nice with some icons, as long as it doesn't take forever to start. --HPS From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 14:51:32 2005 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 CF54B16A41F for ; Sat, 20 Aug 2005 14:51:32 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe11.tele2.se [212.247.155.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4D4E143D45 for ; Sat, 20 Aug 2005 14:51:32 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-198-237.daxnet.no ([193.217.198.237] verified) by mailfe11.swip.net (CommuniGate Pro SMTP 4.3.4) with ESMTP id 9631258 for freebsd-hackers@freebsd.org; Sat, 20 Aug 2005 16:51:30 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Sat, 20 Aug 2005 16:52:27 +0200 User-Agent: KMail/1.7 References: <200508201638.43821.hselasky@c2i.net> In-Reply-To: <200508201638.43821.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200508201652.28788.hselasky@c2i.net> Subject: Re: Project BSDVISION Wants To Develop Native *BSD Console Desktop X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Aug 2005 14:51:32 -0000 Sorry, this was meant for "Mike Adewole" " only. On Saturday 20 August 2005 16:38, Hans Petter Selasky wrote: > Hi, > > I am just wondering, but will you be using QT 4.0 for this project? > > I might be interrested, though I am very comfortable with blackbox, it > might be nice with some icons, as long as it doesn't take forever to start. > > --HPS > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 15:21:10 2005 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 7498B16A41F for ; Sat, 20 Aug 2005 15:21:10 +0000 (GMT) (envelope-from adewole@sympatico.ca) Received: from BAYC1-PASMTP03.bayc1.hotmail.com (bayc1-pasmtp03.bayc1.hotmail.com [65.54.191.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3941243D45 for ; Sat, 20 Aug 2005 15:21:10 +0000 (GMT) (envelope-from adewole@sympatico.ca) Message-ID: X-Originating-IP: [69.158.168.251] X-Originating-Email: [adewole@sympatico.ca] Received: from newton ([69.158.168.251]) by BAYC1-PASMTP03.bayc1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.211); Sat, 20 Aug 2005 08:21:09 -0700 Message-ID: <001701c5a59b$ea57e570$6501a8c0@newton> From: "Mike Adewole" To: References: <200508201638.43821.hselasky@c2i.net> Date: Sat, 20 Aug 2005 11:29:10 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-OriginalArrivalTime: 20 Aug 2005 15:21:09.0178 (UTC) FILETIME=[CA8E09A0:01C5A59A] Cc: hselasky@c2i.net Subject: Re: Project BSDVISION Wants To Develop Native *BSD Console Desktop 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, 20 Aug 2005 15:21:10 -0000 > I am just wondering, but will you be using QT 4.0 for this project? > > I might be interrested, though I am very comfortable with blackbox, it might > be nice with some icons, as long as it doesn't take forever to start. > > --HPS We'll be reimplementing TurboVision (C++) for the project so we can release under a BSD compatible license. It's almost done and it looks quite nice with overlapping windows and drag n drop. Cheers From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 20:05:52 2005 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 4098F16A41F for ; Sat, 20 Aug 2005 20:05:52 +0000 (GMT) (envelope-from tom@trancegeek.net) Received: from jet14.hasweb.com (jet14.hasweb.com [72.29.75.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id E22CD43D46 for ; Sat, 20 Aug 2005 20:05:51 +0000 (GMT) (envelope-from tom@trancegeek.net) Received: from pool-151-204-247-162.bos.east.verizon.net ([151.204.247.162] helo=[192.168.1.47]) by jet14.hasweb.com with esmtpa (Exim 4.51) id 1E6ZbB-0004zL-Er; Sat, 20 Aug 2005 16:05:49 -0400 Message-ID: <43078D2C.4020000@trancegeek.net> Date: Sat, 20 Aug 2005 16:06:04 -0400 From: Tom Norris User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Adewole References: In-Reply-To: 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 - jet14.hasweb.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - trancegeek.net X-Source: X-Source-Args: X-Source-Dir: Cc: freebsd-hackers@freebsd.org Subject: Re: Project BSDVISION Wants To Develop Native *BSD Console Desktop 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, 20 Aug 2005 20:05:52 -0000 > So if you love the BSD console and would like to see it sport a complete > desktop environment, the bsdvision project can really use your support. And > since this project developed from an attempt to do a cleanroom > implementation of libh, we'll be using the old libh mailing list until we > have another one. Come help us make *BSD a truly complete platform with the > best console desktop environment in the universe :-) I would be willing to test that out and I might be able to help with code. (School starting again, and I have a feeling there's going to be a LOT of work coming from my physics classes) - Tom From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 22:51:13 2005 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 D116016A420 for ; Sat, 20 Aug 2005 22:51:13 +0000 (GMT) (envelope-from michael@gargantuan.com) Received: from phoenix.gargantuan.com (srv01.lak.lwxdatacom.net [24.73.171.238]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FA9443D69 for ; Sat, 20 Aug 2005 22:50:37 +0000 (GMT) (envelope-from michael@gargantuan.com) Received: from localhost (localhost.gargantuan.com [127.0.0.1]) by spamassassin-injector (Postfix) with SMTP id 454EE78D; Sat, 20 Aug 2005 18:50:36 -0400 (EDT) Received: by phoenix.gargantuan.com (Postfix, from userid 1001) id C8147571; Sat, 20 Aug 2005 18:50:29 -0400 (EDT) Date: Sat, 20 Aug 2005 18:50:29 -0400 From: "Michael W. Oliver" To: Dmitry Mityugov Message-ID: <20050820225029.GF5673@gargantuan.com> Mail-Followup-To: Dmitry Mityugov , freebsd-hackers@freebsd.org References: <42F93030.2050509@thesnodgrass.com> <10303.145.248.192.30.1123662749.squirrel@webmail.thilelli.net> <57189.145.248.192.30.1123665610.squirrel@webmail.thilelli.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HWvPVVuAAfuRc6SZ" Content-Disposition: inline In-Reply-To: X-WWW-URL: http://michael.gargantuan.com X-GPG-PGP-Public-Key: http://michael.gargantuan.com/gnupg/pubkey.asc X-GPG-PGP-Fingerprint: 2694 0179 AE3F BFAE 0916 0BF5 B16B FBAB C5FA A3C9 X-Home-Phone: +1-863-816-8091 X-Mobile-Phone: +1-863-738-2334 X-Mailing-Address0: 8008 Apache Lane X-Mailing-Address1: Lakeland, FL X-Mailing-Address2: 33810-2172 X-Mailing-Address3: United States of America X-Guide-Questions: http://www.catb.org/~esr/faqs/smart-questions.html X-Guide-Netiquette: http://www.ietf.org/rfc/rfc1855.txt User-Agent: Mutt/1.5.9i X-Spam-DCC: CTc-dcc2: phoenix.gargantuan.com 1031; Body=1 Fuz1=1 Fuz2=1 X-Spam-Flag: NO X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on phoenix.gargantuan.com X-Spam-Level: X-Spam-Status: No, score=-106.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, USER_IN_WHITELIST autolearn=ham version=3.0.3 X-Spam-Pyzor: Reported 0 times. Cc: freebsd-hackers@freebsd.org Subject: Re: Realtek RTL8169 on FreeBSD 5.4: no carrier. 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, 20 Aug 2005 22:51:14 -0000 --HWvPVVuAAfuRc6SZ Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2005-08-20T09:50:53+0400, Dmitry Mityugov wrote: > On 8/10/05, Julien Gabel wrote: >>>> Regrettably, i always encountered this problem. I spoke about that >>>> since the middle of 2004, and didn't really receive feedback on this. >>>> I try a lot of things but none worked better than the other. >>>> To not forget about it, i filled a bug report on this particular >>>> problem, see PR kern/80005 for more details. >>>> The last thing i want to give another try is to upgrade to RELENG_6, >>>> since i currently follow the RELENG_5 branch. But i am not *very* >>>> confident about that... >>>> Sorry not to have better answer to give you. >>> IIRC, I have a RTL8169S-based D-Link gigabit network card at home and >>> it works with FreeBSD just fine. >> Yes, i know it simply works for a lot of users. It doesn't mean that it >> is the case for all users... i am of those. >=20 > Just realized that with ACPI disabled, this card does not work with > FreeBSD 5.4 (at least in my machine), with ACPI enabled - it does. > Hope this information will help somebody. I have RTL8169S in my laptop, and have seen the same up/down/up/down etc. behavior that is noted in PR 80005. I am running 7-CURRENT about a day old. I switched from my custom kernel back to GENERIC and the problem went away, so I started adding things from my custom config file into GENERIC to see what finally broke it, and it turned out to be: options ACPI_DEBUG Just thought that I would mention it... re0: Reserved 0x100 bytes for rid 0x10 type 4 at 0x1000 re0: port 0x1000-0x10ff mem 0x= d0008800-0xd00088ff irq 19 at device 8.0 on pci0 miibus0: on re0 rgephy0: on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000b= aseTX-FDX, auto re0: bpf attached re0: Ethernet address: 00:90:f5:32:35:9f re0: [GIANT-LOCKED] --=20 Mike Oliver [see complete headers for contact information] --HWvPVVuAAfuRc6SZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDB7O1sWv7q8X6o8kRAt8SAJ9Zk5ZZSt5DcRyvSflKWsLHn3/9VQCgxOYO B16Gdsa5GHhZCp5QhhRcd0I= =47Kx -----END PGP SIGNATURE----- --HWvPVVuAAfuRc6SZ-- From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 20 23:14:15 2005 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 A0E1216A41F for ; Sat, 20 Aug 2005 23:14:15 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.village.org (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41F8343D46 for ; Sat, 20 Aug 2005 23:14:15 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.3) with ESMTP id j7KNCY5T025174; Sat, 20 Aug 2005 17:12:38 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 20 Aug 2005 17:12:38 -0600 (MDT) Message-Id: <20050820.171238.122195775.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200508201230.37976.hselasky@c2i.net> References: <200508200359.j7K3xoHF015718@ambrisko.com> <20050820031508.A73274@odysseus.silby.com> <200508201230.37976.hselasky@c2i.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.village.org [127.0.0.1]); Sat, 20 Aug 2005 17:12:38 -0600 (MDT) Cc: freebsd-hackers@freebsd.org Subject: Re: Parking disk drive heads 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, 20 Aug 2005 23:14:15 -0000 In message: <200508201230.37976.hselasky@c2i.net> Hans Petter Selasky writes: : On Saturday 20 August 2005 10:18, Mike Silbersack wrote: : > On Fri, 19 Aug 2005, Doug Ambrisko wrote: : > > Flash is nice but it has some issues. Atleast dropping it isn't one! : > > : > > Doug A. : > : > I'd be really happy if I could get a USB flash drive to last more than 8 : > months. Luckily, I started weekly backups after the first failure. That : > helped a lot when the second failure happened. : > : : Flash drives does usually not last more than 10000 writes, per bit, from what : I know. Probably you need some kind of special file-system that moves the : files around as the write quoute gets used up! Eventually the size of the : disk will reach zero, and you have to move the files elsewhere :-) But this : is probably off topic. Actually, 10,000 writes per bit is one or two orders of magnitude too low these days. It was more typical for the Linear Flash PCMCIA cards from 10 years ago. Today, typically flash devices are good for more like 100,000 or 500,000 writes per cell, and all the fobs you'd buy these days have built-in wear averaging. I've tried three times now to wear out a flash by writing an incrementing counter to a single location only to give up after weeks of hammering due to external factors (power failure, network failure, etc). Warner