From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 02:01:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 827EE16A422; Sun, 26 Mar 2006 02:01:03 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4434143D48; Sun, 26 Mar 2006 02:01:03 +0000 (GMT) (envelope-from davidxu@freebsd.org) Received: from localhost.my.domain (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k2Q2116O025838; Sun, 26 Mar 2006 02:01:02 GMT (envelope-from davidxu@freebsd.org) From: David Xu To: freebsd-threads@freebsd.org Date: Sun, 26 Mar 2006 10:00:51 +0800 User-Agent: KMail/1.8.2 References: <44215FE9.2070602@highway.ne.jp> <20060324084834.GE27116@deviant.kiev.zoral.com.ua> <20060325100729.00713045@kan.dnsalias.net> In-Reply-To: <20060325100729.00713045@kan.dnsalias.net> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200603261000.52100.davidxu@freebsd.org> Cc: Kostik Belousov , freebsd-hackers@freebsd.org, Alexander Kabaev Subject: Re: [patch] Re: dlopen() and dlclose() are not MT-safe? YES, esp. for libthr 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, 26 Mar 2006 02:01:03 -0000 =D4=DA Saturday 25 March 2006 23:07=A3=ACAlexander Kabaev =D0=B4=B5=C0=A3=BA > The thread mask only makes sense when flags are per-thread. I meant > to use it to detect PLT recursions from locking primitives exported to > rtld by the threads library as those are not allowed and threads > implementations are required to take special care to provide only > self-contained locks.=20 >=20 > The 'default' lock implementation will not work with any library > other than libc_r, and even that holds true only for some definition of > "work". The dynamic loader never had a reliable locking and > furthermore, there was no way to make it work better without threading > library cooperation. This is why we came up with a set of callbacks > rtld expects every threading library to provide. libpthread was the > first where these callbacks were implemented. It comes as a surprise > that libthr did not have them, because David Xu was the one who did > most of the work on rtld locking callbacks in libpthread. >=20 > The def_thread_set_flag function use is racy and should be fixed. >=20 > --=20 > Alexander Kabaev I have fixed it in libthr yesterday, I think I must forgot to do it in the past. Regards, David Xu From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 07:20:20 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B081316A401; Sun, 26 Mar 2006 07:20:20 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1348443D45; Sun, 26 Mar 2006 07:20:15 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 95CBD131E35; Sun, 26 Mar 2006 17:50:09 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 6683F860D5; Sun, 26 Mar 2006 17:50:09 +1030 (CST) Date: Sun, 26 Mar 2006 17:50:09 +1030 From: Greg 'groggy' Lehey To: FreeBSD Hackers , FreeBSD Developers Message-ID: <20060326072009.GL25392@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9RXjJcDGNuBviZqz" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: Subject: Programs not accepting input? 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, 26 Mar 2006 07:20:20 -0000 --9RXjJcDGNuBviZqz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In the last month or two I've seen increasing occurrences of programs refusing keyboard input after they've been running for a while (between hours and days). They still respond to the mouse. At first I thought it was hardware, but it happens on a number of different machines, and only with certain programs, all of them X clients. Here's an overview (system names are simply to show that they're different machines). - System echunga, running a version of the klondike game that used to come with the X distribution. - System wantadilla, running firefox. After it refuses keyboard input, I can open a new window with the mouse, and the new window accepts input. The old one still doesn't. - The same problem again with system teevee. wantadilla had what I think were hardware problems a couple of weeks ago, so I changed the entire system board and memory (but kept the disks). The new system is stable, but the problems continue. echunga and teevee have been up for months: echunga up 49+02:25, 1 user, load 0.60, 0.50, 0.35 teevee up 100+22:08, 0 users, load 0.06, 0.31, 0.28 tvremote up 36+21:07, 0 users, load 0.18, 0.04, 0.01 wantadilla up 18+02:44, 3 users, load 0.46, 0.38, 0.49 One thing that the machines have in common is that they all run x2x (which joins X servers). echunga and wantadilla run one instance, and teevee runs another instance with tvermote, which I don't think has shown any problems. I've been running x2x for years as well, and only one of the machines has had a software upgrade anywhere near the time when the problem began. Here are the versions: FreeBSD echunga.lemis.com 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sun Feb= 5 14:15:02 CST 2006 grog@echunga.lemis.com:/usr/obj/src/FreeBSD/6-STA= BLE/src/sys/ECHUNGA i386 FreeBSD teevee.lemis.com 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #4: Sun Mar = 13 14:58:24 CST 2005 grog@teevee.lemis.com:/usr/obj/src/FreeBSD/TEEVEE/= src/sys/TEEVEE i386 FreeBSD tvremote.lemis.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 0= 4:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENER= IC i386 FreeBSD wantadilla.lemis.com 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Tue Jul 12= 11:57:56 CST 2005 grog@wantadilla.lemis.com:/usr/obj/src/FreeBSD/6-CUR= RENT/src/sys/WANTADILLA i386 Does this ring a bell with anybody? Any idea how to start debugging? The fact that new firefox windows accept input suggests that it's somewhere in X. Greg --=20 See complete headers for address and phone numbers. --9RXjJcDGNuBviZqz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFEJkCpIubykFB6QiMRAvayAJ46uTMS5ibB6P8h5lD1Z0VgjfMS0gCeOXmQ nVrttcoXqsUWhS8OcschD98= =UbyO -----END PGP SIGNATURE----- --9RXjJcDGNuBviZqz-- From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 07:36:59 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 246AD16A400 for ; Sun, 26 Mar 2006 07:36:59 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 447AD43D45 for ; Sun, 26 Mar 2006 07:36:58 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 19993 invoked by uid 2001); 26 Mar 2006 07:36:57 -0000 Date: Sun, 26 Mar 2006 01:36:57 -0600 From: "Rick C. Petty" To: Greg 'groggy' Lehey Message-ID: <20060326073657.GB19681@megan.kiwi-computer.com> References: <20060326072009.GL25392@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060326072009.GL25392@wantadilla.lemis.com> User-Agent: Mutt/1.4.2.1i Cc: FreeBSD Hackers Subject: Re: Programs not accepting input? 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, 26 Mar 2006 07:36:59 -0000 [ CC'd to hackers only ] On Sun, Mar 26, 2006 at 05:50:09PM +1030, Greg 'groggy' Lehey wrote: > In the last month or two I've seen increasing occurrences of programs > refusing keyboard input after they've been running for a while > (between hours and days). They still respond to the mouse. At first > I thought it was hardware, but it happens on a number of different > machines, and only with certain programs, all of them X clients. > One thing that the machines have in common is that they all run x2x I noticed very similar problems on both 5.4-stable and 6.0-RELEASE boxes running xorg. I've never used x2x, but I was running x11vnc, which I ended up assuming was the culprit. It's a really strange behavior-- I would have two rxvts side-by-side, one accepting keyboard input and the other I had to cut/paste text using the mouse. It was even more frustrating when it would happen in gaim & mozilla windows! The same gaim process wouldn't accept keyboard input in the conversation window but the buddy window did responded to commands (e.g. control-A brought up the accounts window). I was baffled.. The behavior was unpredictable but sometimes repeatable. Once a window stopped accepting keyboard events, that same window would continue ignoring the keyboard until I restarted that process. At first I thought it just affected GNOME apps, but when it happened to an rxvt, I gave up and recompiled that system and stopped using x11vnc. Sorry I'm no help, but at least I feel sane knowing it wasn't just me... -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 07:49:06 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC2E616A422; Sun, 26 Mar 2006 07:49:05 +0000 (UTC) (envelope-from duane@greenmeadow.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 602F143D46; Sun, 26 Mar 2006 07:49:05 +0000 (GMT) (envelope-from duane@greenmeadow.ca) Received: from ip03.eastlink.ca ([24.222.10.15]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IWQ005UV5PNCBO0@mta01.eastlink.ca>; Sun, 26 Mar 2006 03:48:59 -0400 (AST) Received: from blk-224-199-230.eastlink.ca (HELO [192.168.0.103]) ([24.224.199.230]) by ip03.eastlink.ca with ESMTP; Sun, 26 Mar 2006 03:49:04 -0400 Date: Sun, 26 Mar 2006 03:48:06 -0400 From: Duane Whitty In-reply-to: <20060326072009.GL25392@wantadilla.lemis.com> To: Greg 'groggy' Lehey Message-id: <44264736.10909@greenmeadow.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= References: <20060326072009.GL25392@wantadilla.lemis.com> User-Agent: Thunderbird 1.5 (X11/20060309) Cc: FreeBSD Hackers , FreeBSD Developers Subject: Re: Programs not accepting input? 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, 26 Mar 2006 07:49:06 -0000 Greg 'groggy' Lehey wrote: > In the last month or two I've seen increasing occurrences of programs > refusing keyboard input after they've been running for a while > (between hours and days). They still respond to the mouse. At first > I thought it was hardware, but it happens on a number of different > machines, and only with certain programs, all of them X clients. > Here's an overview (system names are simply to show that they're > different machines). > > - System echunga, running a version of the klondike game that used to > come with the X distribution. > - System wantadilla, running firefox. After it refuses keyboard > input, I can open a new window with the mouse, and the new window > accepts input. The old one still doesn't. > - The same problem again with system teevee. > > wantadilla had what I think were hardware problems a couple of weeks > ago, so I changed the entire system board and memory (but kept the > disks). The new system is stable, but the problems continue. echunga > and teevee have been up for months: > > echunga up 49+02:25, 1 user, load 0.60, 0.50, 0.35 > teevee up 100+22:08, 0 users, load 0.06, 0.31, 0.28 > tvremote up 36+21:07, 0 users, load 0.18, 0.04, 0.01 > wantadilla up 18+02:44, 3 users, load 0.46, 0.38, 0.49 > > One thing that the machines have in common is that they all run x2x > (which joins X servers). echunga and wantadilla run one instance, and > teevee runs another instance with tvermote, which I don't think has > shown any problems. I've been running x2x for years as well, and only > one of the machines has had a software upgrade anywhere near the time > when the problem began. Here are the versions: > > FreeBSD echunga.lemis.com 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #0: Sun Feb 5 14:15:02 CST 2006 grog@echunga.lemis.com:/usr/obj/src/FreeBSD/6-STABLE/src/sys/ECHUNGA i386 > FreeBSD teevee.lemis.com 5.3-RELEASE-p5 FreeBSD 5.3-RELEASE-p5 #4: Sun Mar 13 14:58:24 CST 2005 grog@teevee.lemis.com:/usr/obj/src/FreeBSD/TEEVEE/src/sys/TEEVEE i386 > FreeBSD tvremote.lemis.com 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 > FreeBSD wantadilla.lemis.com 6.0-CURRENT FreeBSD 6.0-CURRENT #1: Tue Jul 12 11:57:56 CST 2005 grog@wantadilla.lemis.com:/usr/obj/src/FreeBSD/6-CURRENT/src/sys/WANTADILLA i386 > > Does this ring a bell with anybody? Any idea how to start debugging? > The fact that new firefox windows accept input suggests that it's > somewhere in X. > > Greg > Hi, Well I feel a little out of my depth here but I have been having a similar yet different problem. What I have noticed is that sometimes when I try select a running application from my KDE panel via mouse the switch does not happen. Switching in these cases will usually work via Alt-Tab however. The program being switched to seems to be functional. Maybe this is just a problem with kpanel. Like I said, I'm out of my depth here. To recover I usually end-up killing the process I tried to switch too. Even though I quite literally spend fourteen to sixteen hours per day with my FreeBSD system there is only so much a person can learn in a given period of time. This is one of those issues that for now I have simply shrugged, adjusted, and carried on with what I was doing. Here are my system details FreeBSD dwpc.dwlabs.ca 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Fri Mar 24 19:34:58 AST 2006 root@dwpc.dwlabs.ca:/usr/obj/usr/src/sys/DWPC-200603230410 i386 3:41AM up 1 day, 5:48, 3 users, load averages: 0.03, 0.10, 0.08 X11R6 XOrg 6.9.0, KDE 3.5 I have noticed this in 6.0-RELEASE as well I hope this is at least in some way useful. Maybe it is not even related. Other than this I have nothing more to add except that if anyone has any ideas maybe I could help test them out. --Duane From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 08:17:25 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4A9B16A400; Sun, 26 Mar 2006 08:17:25 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail19.syd.optusnet.com.au (mail19.syd.optusnet.com.au [211.29.132.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBBC843D45; Sun, 26 Mar 2006 08:17:24 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail19.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k2Q8HKBB026557 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 26 Mar 2006 19:17:21 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k2Q8HKYA002175; Sun, 26 Mar 2006 19:17:20 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k2Q8HKMk002174; Sun, 26 Mar 2006 19:17:20 +1100 (EST) (envelope-from peter) Date: Sun, 26 Mar 2006 19:17:19 +1100 From: Peter Jeremy To: "Greg 'groggy' Lehey" Message-ID: <20060326081719.GB753@turion.vk2pj.dyndns.org> References: <20060326072009.GL25392@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20060326072009.GL25392@wantadilla.lemis.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: FreeBSD Hackers , FreeBSD Developers Subject: Re: Programs not accepting input? 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, 26 Mar 2006 08:17:25 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, 2006-Mar-26 17:50:09 +1030, Greg 'groggy' Lehey wrote: >In the last month or two I've seen increasing occurrences of programs >refusing keyboard input after they've been running for a while >(between hours and days). They still respond to the mouse. At first >I thought it was hardware, but it happens on a number of different >machines, and only with certain programs, all of them X clients. >Here's an overview (system names are simply to show that they're >different machines). Is the problem that the clients aren't taking focus or have focus but aren't accepting keyboard input? My work system runs separate X servers on two heads (rather than ximerama) and I have problems with windows occasionally refusing to accept focus after I move the pointer from screen to screen (though I can get an alternative window to accept focus and then switch back to the window I originally wanted). This started after an X.org upgrade but I'm not sure which one. >The fact that new firefox windows accept input suggests that it's >somewhere in X. What X server? --=20 Peter Jeremy --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEJk4L/opHv/APuIcRAsurAJ9Sxz/ZuoBbnp8jHkfR+57SGqaRSACfUQuS ZsHHJCAR3vudYsdNniPARmI= =PFGp -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI-- From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 09:44:01 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 009F016A401 for ; Sun, 26 Mar 2006 09:44:00 +0000 (UTC) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48E2143D48 for ; Sun, 26 Mar 2006 09:43:59 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.6/8.13.3) with ESMTP id k2Q9hteh034307 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 26 Mar 2006 11:43:55 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.6/8.13.3/Submit) id k2Q9httR034306 for hackers@freebsd.org; Sun, 26 Mar 2006 11:43:55 +0200 (CEST) Date: Sun, 26 Mar 2006 11:43:55 +0200 From: Divacky Roman To: hackers@freebsd.org Message-ID: <20060326094354.GA34169@stud.fit.vutbr.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.54 on 147.229.10.14 Cc: Subject: precompiled header 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, 26 Mar 2006 09:44:01 -0000 hi why fbsd dont use precompiled headers during buildword/buildkernel? I just did very naive test (which doesnt work for a lot of the headers) cd /sys; find . -name \*.h -exec gcc -x c-header {} \; time buildkernel and delete those compiled headers and time buildkernel again there is a speedup for the precompiled-headers case (but not very big) and I am sure if it was carefully integrated into the build (ie. compiling all headers) the difference might be quite visible... thnx roman From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 11:16:39 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8DA716A420; Sun, 26 Mar 2006 11:16:39 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93C7D43D45; Sun, 26 Mar 2006 11:16:37 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 47EE146B9E; Sun, 26 Mar 2006 06:16:36 -0500 (EST) Date: Sun, 26 Mar 2006 11:16:36 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Peter Jeremy In-Reply-To: <20060326081719.GB753@turion.vk2pj.dyndns.org> Message-ID: <20060326111317.V35431@fledge.watson.org> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Greg 'groggy' Lehey , FreeBSD Hackers Subject: Re: Programs not accepting input? 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, 26 Mar 2006 11:16:40 -0000 On Sun, 26 Mar 2006, Peter Jeremy wrote: > On Sun, 2006-Mar-26 17:50:09 +1030, Greg 'groggy' Lehey wrote: >> In the last month or two I've seen increasing occurrences of programs >> refusing keyboard input after they've been running for a while >> (between hours and days). They still respond to the mouse. At first >> I thought it was hardware, but it happens on a number of different >> machines, and only with certain programs, all of them X clients. >> Here's an overview (system names are simply to show that they're >> different machines). > > Is the problem that the clients aren't taking focus or have focus but aren't > accepting keyboard input? > > My work system runs separate X servers on two heads (rather than ximerama) > and I have problems with windows occasionally refusing to accept focus after > I move the pointer from screen to screen (though I can get an alternative > window to accept focus and then switch back to the window I originally > wanted). This started after an X.org upgrade but I'm not sure which one. I've noticed that KDE's window manager, especially the version currently in ports, seems to occasionally have focus management problems. If I use ctrl-alt-tab to manually switch the focus, keyboard and some mouse input works properly, and after a program exits, things start working right. I think what's going on is that the window manager becomes confused as the mouse passes over the panel or interacts with the panel, as at that point the focus gets "stuck". Probably because mouse input events have been grabbed and not released, which is not an unusual X window manager application bug. Once the grab has happened without a release, the mouse remains grabbed until that application exits or releases it, so that would be consistent with my triggering a release by the window manager through exiting another program and then triggering the bug again by passing over the panel (or whatever). So I'd almost certainly put this down to an X11 application bug, possibly in the window manager. The "grab" behavior is one of the more unfortunate ones in X11, since it allows an application to very trivially interfere with the operation of the window server as a whole, and it's an easy bug to implement (just like leaking memory -- you have an error path and forget to release all resources). Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 16:28:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 143B516A420 for ; Sun, 26 Mar 2006 16:28:21 +0000 (UTC) (envelope-from steve@post.pl) Received: from v00051.home.net.pl (post.pl [212.85.96.51]) by mx1.FreeBSD.org (Postfix) with SMTP id 742BB43D45 for ; Sun, 26 Mar 2006 16:28:19 +0000 (GMT) (envelope-from steve@post.pl) Received: from hq.home.net.pl (HELO ?10.0.10.10?) (steve.post@home@212.85.112.120) by matrix01b.home.net.pl with SMTP; Sun, 26 Mar 2006 16:28:15 -0000 Mime-Version: 1.0 (Apple Message framework v746.3) Content-Transfer-Encoding: 7bit Message-Id: <096BB455-D0E2-4D41-B867-D4F9181653AE@post.pl> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-hackers@freebsd.org From: Steven Jurczyk Date: Sun, 26 Mar 2006 18:28:12 +0200 X-Mailer: Apple Mail (2.746.3) Subject: actual status of 6.1-RELEASE ??? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Mar 2006 16:28:21 -0000 Does anyone know what is real deadline for 6.1-RELEASE (6.1-PR1)? Schedule on website is outdated, to-do list/status isn't updated from weeks. I can't find on mailing lists information about actual status of 6.1-RELEASE. I will be very thankful for information :) -- steve home.pl From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 16:41:10 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8D6EB16A425 for ; Sun, 26 Mar 2006 16:41:10 +0000 (UTC) (envelope-from ray.mihm@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2704143D45 for ; Sun, 26 Mar 2006 16:41:10 +0000 (GMT) (envelope-from ray.mihm@gmail.com) Received: by xproxy.gmail.com with SMTP id t10so741430wxc for ; Sun, 26 Mar 2006 08:41:09 -0800 (PST) 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=qm3E0p1/xmkXU1iySw8S/GEHQu5MflAD/a2rQWweXVwovFRJigloK7EQwJnqTF9Ic2NdRZZv70DlbN9k6RqmXFhUOoQDHxcVeP0NYR6d3ijeNDR+x2789DpBVS+HqefIBy4qtF8rnONJ6L8vTAJqM6lOZ4+HtPLvYOsaQyhjBao= Received: by 10.70.17.20 with SMTP id 20mr3208816wxq; Sun, 26 Mar 2006 08:41:09 -0800 (PST) Received: by 10.70.46.9 with HTTP; Sun, 26 Mar 2006 08:41:09 -0800 (PST) Message-ID: <1aa142960603260841m2cf31ba2hb6ef9f01461161e4@mail.gmail.com> Date: Sun, 26 Mar 2006 08:41:09 -0800 From: "Ray Mihm" 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: FreeBSD Xen 3.0 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, 26 Mar 2006 16:41:10 -0000 All, what's the status of FreeBSD Xen support? The last I heard was that it had DomU support and someone was working on Dom0 support? Has DomU support been integrated in to -current? Thanks, Ray. From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 20:31:17 2006 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58D5216A400; Sun, 26 Mar 2006 20:31:17 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B5C443D49; Sun, 26 Mar 2006 20:31:14 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k2QKVB4p056893; Sun, 26 Mar 2006 22:31:11 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k2QKV5Im031182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 26 Mar 2006 22:31:05 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k2QKV5Ip079241; Sun, 26 Mar 2006 22:31:05 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k2QKV2Yg079240; Sun, 26 Mar 2006 22:31:02 +0200 (CEST) (envelope-from ticso) Date: Sun, 26 Mar 2006 22:31:02 +0200 From: Bernd Walter To: Robert Watson Message-ID: <20060326203101.GJ77563@cicely12.cicely.de> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060326111317.V35431@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060326111317.V35431@fledge.watson.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-5.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 X-Spam-Report: * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on cicely12.cicely.de Cc: Greg 'groggy' Lehey , FreeBSD Hackers Subject: Re: Programs not accepting input? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Mar 2006 20:31:17 -0000 On Sun, Mar 26, 2006 at 11:16:36AM +0000, Robert Watson wrote: > On Sun, 26 Mar 2006, Peter Jeremy wrote: > >On Sun, 2006-Mar-26 17:50:09 +1030, Greg 'groggy' Lehey wrote: > >>In the last month or two I've seen increasing occurrences of programs > >>refusing keyboard input after they've been running for a while > >>(between hours and days). They still respond to the mouse. At first > >>I thought it was hardware, but it happens on a number of different > >>machines, and only with certain programs, all of them X clients. > >>Here's an overview (system names are simply to show that they're > >>different machines). > > > >Is the problem that the clients aren't taking focus or have focus but > >aren't accepting keyboard input? > > > >My work system runs separate X servers on two heads (rather than ximerama) > >and I have problems with windows occasionally refusing to accept focus > >after I move the pointer from screen to screen (though I can get an > >alternative window to accept focus and then switch back to the window I > >originally wanted). This started after an X.org upgrade but I'm not sure > >which one. > > I've noticed that KDE's window manager, especially the version currently in > ports, seems to occasionally have focus management problems. If I use > ctrl-alt-tab to manually switch the focus, keyboard and some mouse input > works properly, and after a program exits, things start working right. I I'm seeing focus problems every few months running WindowMaker, also in a 2 head configuration. The focus stick with one window - you can close that one using mouse, but you still won't be able get focus on another window. A restart of windowmaker won't help, so far I was forced doing a complete X restart whenever this happened. Not shure when it started, likely with an update from an old XFree to an Xorg release (installed xorg-6.8.2). -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-hackers@FreeBSD.ORG Sun Mar 26 21:43:11 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCA7716A400 for ; Sun, 26 Mar 2006 21:43:11 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 4226843D6D for ; Sun, 26 Mar 2006 21:43:08 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 25089 invoked by uid 2001); 26 Mar 2006 21:43:07 -0000 Date: Sun, 26 Mar 2006 15:43:07 -0600 From: "Rick C. Petty" To: Peter Jeremy Message-ID: <20060326214307.GA24969@megan.kiwi-computer.com> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060326081719.GB753@turion.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.1i Cc: Greg 'groggy' Lehey , FreeBSD Hackers Subject: Re: Programs not accepting input? 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, 26 Mar 2006 21:43:11 -0000 On Sun, Mar 26, 2006 at 07:17:19PM +1100, Peter Jeremy wrote: > > Is the problem that the clients aren't taking focus or have focus > but aren't accepting keyboard input? My problem wasn't about focus. I know the window had input focus (my settings change the border color for focused windows), but the keyboard events weren't accepted by certain clients. > My work system runs separate X servers on two heads (rather than > ximerama) and I have problems with windows occasionally refusing to > accept focus after I move the pointer from screen to screen (though I > can get an alternative window to accept focus and then switch back to > the window I originally wanted). This started after an X.org upgrade > but I'm not sure which one. I've seen that problem also, with and without xinerama enabled (always with dual-head nvidia cards). My keyboard input problem only affected certain clients. Like I said, one rxvt would accept keyboard events and another rxvt right next to it wouldn't. It was an X.org server, I forget the version. I've not noticed the problem recently, but I could try to reproduce the problem if necessary. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 00:53:44 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33ACC16A400 for ; Mon, 27 Mar 2006 00:53:44 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A6EF43D48 for ; Mon, 27 Mar 2006 00:53:43 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 6B625131DF6; Mon, 27 Mar 2006 11:23:42 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 560C0867FC; Mon, 27 Mar 2006 11:23:42 +1030 (CST) Date: Mon, 27 Mar 2006 11:23:42 +1030 From: Greg 'groggy' Lehey To: Peter Jeremy Message-ID: <20060327005342.GX25392@wantadilla.lemis.com> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Yz1KsSJf495ui8dy" Content-Disposition: inline In-Reply-To: <20060326081719.GB753@turion.vk2pj.dyndns.org> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: FreeBSD Hackers Subject: Re: Programs not accepting input? 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, 27 Mar 2006 00:53:44 -0000 --Yz1KsSJf495ui8dy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sunday, 26 March 2006 at 19:17:19 +1100, Peter Jeremy wrote: > On Sun, 2006-Mar-26 17:50:09 +1030, Greg 'groggy' Lehey wrote: >> In the last month or two I've seen increasing occurrences of programs >> refusing keyboard input after they've been running for a while >> (between hours and days). They still respond to the mouse. At first >> I thought it was hardware, but it happens on a number of different >> machines, and only with certain programs, all of them X clients. >> Here's an overview (system names are simply to show that they're >> different machines). > > Is the problem that the clients aren't taking focus or have focus > but aren't accepting keyboard input? The latter. It's not a question of focus. > My work system runs separate X servers on two heads (rather than > ximerama) and I have problems with windows occasionally refusing to > accept focus after I move the pointer from screen to screen (though > I can get an alternative window to accept focus and then switch back > to the window I originally wanted). This started after an X.org > upgrade but I'm not sure which one. Interesting. I've seen this one too: my mail window is at the left of the right-hand monitor on wantadilla (:0.1). Frequently when I move from :0.0 to 0:1, the window manager will highlight the window on :0.1, but focus remains with some window on :0.0. If I move further right and then back again, focus catches up with the correct window. That's mainly irritating; the problem I describe above is annoying. >> The fact that new firefox windows accept input suggests that it's >> somewhere in X. > > What X server? echunga: vendor string: The X.Org Foundation vendor release number: 60801000 X.Org version: 6.8.1 wantadilla: vendor string: The X.Org Foundation vendor release number: 60802000 X.Org version: 6.8.2 I don't think that the difference in version numbers is the issue. Greg -- See complete headers for address and phone numbers. --Yz1KsSJf495ui8dy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFEJzeWIubykFB6QiMRAv7rAJ9Ikaq9x2WaQOvtOhp0UFlqmWTTAgCfZ4JL gEjEYd9qeMtl3h6OuPjQGT4= =HNCU -----END PGP SIGNATURE----- --Yz1KsSJf495ui8dy-- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 00:59:17 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2663B16A400 for ; Mon, 27 Mar 2006 00:59:17 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59CED43D48 for ; Mon, 27 Mar 2006 00:59:16 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 78379131DF6; Mon, 27 Mar 2006 11:29:15 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 57480867FC; Mon, 27 Mar 2006 11:29:15 +1030 (CST) Date: Mon, 27 Mar 2006 11:29:15 +1030 From: Greg 'groggy' Lehey To: "Rick C. Petty" Message-ID: <20060327005915.GY25392@wantadilla.lemis.com> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060326214307.GA24969@megan.kiwi-computer.com> <20060326072009.GL25392@wantadilla.lemis.com> <20060326073657.GB19681@megan.kiwi-computer.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qx542RXz7QAsGbWW" Content-Disposition: inline In-Reply-To: <20060326214307.GA24969@megan.kiwi-computer.com> <20060326073657.GB19681@megan.kiwi-computer.com> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: FreeBSD Hackers Subject: Re: Programs not accepting input? 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, 27 Mar 2006 00:59:17 -0000 --qx542RXz7QAsGbWW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sunday, 26 March 2006 at 1:36:57 -0600, Rick C. Petty wrote: > On Sun, Mar 26, 2006 at 05:50:09PM +1030, Greg 'groggy' Lehey wrote: >> In the last month or two I've seen increasing occurrences of programs >> refusing keyboard input after they've been running for a while >> (between hours and days). They still respond to the mouse. At first >> I thought it was hardware, but it happens on a number of different >> machines, and only with certain programs, all of them X clients. > > > >> One thing that the machines have in common is that they all run x2x > > I noticed very similar problems on both 5.4-stable and 6.0-RELEASE > boxes running xorg. I've never used x2x, but I was running x11vnc, > which I ended up assuming was the culprit. It's a really strange > behavior-- I would have two rxvts side-by-side, one accepting > keyboard input and the other I had to cut/paste text using the > mouse. It was even more frustrating when it would happen in gaim & > mozilla windows! The same gaim process wouldn't accept keyboard > input in the conversation window but the buddy window did responded > to commands (e.g. control-A brought up the accounts window). Yes, this sounds quite close to what I'm experiencing. On Sunday, 26 March 2006 at 15:43:07 -0600, Rick C. Petty wrote: > On Sun, Mar 26, 2006 at 07:17:19PM +1100, Peter Jeremy wrote: >> >> Is the problem that the clients aren't taking focus or have focus >> but aren't accepting keyboard input? > > My problem wasn't about focus. I know the window had input focus (my > settings change the border color for focused windows), but the keyboard > events weren't accepted by certain clients. Same here. As mentioned in the original message, I can use the mouse to open a new window under firefox. The new window will accept keyboard input, the old one won't. It's almost as if it's deadlocking on input. Reminder: my final question was "how do I go about debugging this problem?". Greg -- See complete headers for address and phone numbers. --qx542RXz7QAsGbWW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFEJzjjIubykFB6QiMRAvsTAJ9+XtvYukUNubxRJJH7x/icMmmm5gCfQXDs X/6QGihWwg33ebkbxTLxo38= =z9Is -----END PGP SIGNATURE----- --qx542RXz7QAsGbWW-- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 07:35:18 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAFFF16A420; Mon, 27 Mar 2006 07:35:18 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail20.syd.optusnet.com.au (mail20.syd.optusnet.com.au [211.29.132.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0132F43D7B; Mon, 27 Mar 2006 07:35:07 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail20.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k2R7Z5un007589 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 27 Mar 2006 18:35:05 +1100 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k2R7Z5ha001133; Mon, 27 Mar 2006 18:35:05 +1100 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k2R7Z5lB001132; Mon, 27 Mar 2006 18:35:05 +1100 (EST) (envelope-from peter) Date: Mon, 27 Mar 2006 18:35:05 +1100 From: Peter Jeremy To: "Greg 'groggy' Lehey" Message-ID: <20060327073505.GA708@turion.vk2pj.dyndns.org> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060326214307.GA24969@megan.kiwi-computer.com> <20060326072009.GL25392@wantadilla.lemis.com> <20060326073657.GB19681@megan.kiwi-computer.com> <20060327005915.GY25392@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <20060327005915.GY25392@wantadilla.lemis.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: FreeBSD Hackers Subject: Re: Programs not accepting input? 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, 27 Mar 2006 07:35:18 -0000 --gBBFr7Ir9EOA20Yy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 2006-Mar-27 11:29:15 +1030, Greg 'groggy' Lehey wrote: >>> One thing that the machines have in common is that they all run x2x Can you drop this and just use a single X server? >Reminder: my final question was "how do I go about debugging this >problem?". X11 protocol tracing (eg xmon) and client ktracing might be a start to see where the keyboard events are disappearing. --=20 Peter Jeremy --gBBFr7Ir9EOA20Yy Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQFEJ5Wo/opHv/APuIcRAg7VAJ0bBAD7LtQ3n+HQ846GEw2xeqh2IgCffCmE qyJy7uLaVj0AYmQpDRpBj3I= =enTL -----END PGP SIGNATURE----- --gBBFr7Ir9EOA20Yy-- From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 09:21:09 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A6E716A420 for ; Mon, 27 Mar 2006 09:21:09 +0000 (UTC) (envelope-from frank.b.scholl@web.de) Received: from fmmailgate04.web.de (fmmailgate04.web.de [217.72.192.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 925CE43D46 for ; Mon, 27 Mar 2006 09:21:08 +0000 (GMT) (envelope-from frank.b.scholl@web.de) Received: by fmmailgate04.web.de (8.12.10/8.12.10/webde Linux 0.7) with ESMTP id k2R9L6b9015994 for ; Mon, 27 Mar 2006 11:21:06 +0200 Received: from [82.212.48.244] (helo=archimedes.homebase.hinterhof.org) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.106 #94) id 1FNnuM-0006dN-00 for freebsd-hackers@freebsd.org; Mon, 27 Mar 2006 11:21:06 +0200 Date: Mon, 27 Mar 2006 11:21:53 +0200 From: "Frank B. Scholl" To: freebsd-hackers@freebsd.org Message-Id: <20060327112153.2aa6bf65.frank.b.scholl@web.de> In-Reply-To: <20060327005342.GX25392@wantadilla.lemis.com> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060327005342.GX25392@wantadilla.lemis.com> X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.12; i386-portbld-freebsd5.4) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: frank.b.scholl@web.de X-Sender: frank.b.scholl@web.de Subject: Re: Programs not accepting input? 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, 27 Mar 2006 09:21:09 -0000 hello, i followed this discussion so far and wondered what your techniques are to have your running programs accepting input again. in my case, this phenomenon heavily depends on the windowmanager you chose. when being on fluxbox and having a running instance of firefox, it every once in a while refuses keyboard input. i have had this with other gtk apps, too, for example sylpheed. to circumvent the problem and getting your application back to accept further keyboard input, i just switch workspaces back and forth and thats it, no matter on what windowmanager i am working. i never have desktops running, mostly isolated gtk apps, but from subjective experience i can tell that people running full blown gnome desktops, dont have such problems. as well as it does not seem to happen with qt apps for me. obviously, some windowmanagers dont deliver input correctly or some gtk apps have a problem with receiving a certain kind of message type. frank From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 11:27:45 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E53816A422 for ; Mon, 27 Mar 2006 11:27:45 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from asmtp-out1.blueyonder.co.uk (asmtp-out1.blueyonder.co.uk [195.188.213.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id A007543D45 for ; Mon, 27 Mar 2006 11:27:44 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [62.31.10.160] (helo=[192.168.0.2]) by asmtp-out1.blueyonder.co.uk with esmtp (Exim 4.52) id 1FNpss-0007hp-Tv; Mon, 27 Mar 2006 12:27:42 +0100 Message-ID: <4427CC2E.5090506@dial.pipex.com> Date: Mon, 27 Mar 2006 12:27:42 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.12) Gecko/20060305 X-Accept-Language: en MIME-Version: 1.0 References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060326214307.GA24969@megan.kiwi-computer.com> <20060326072009.GL25392@wantadilla.lemis.com> <20060326073657.GB19681@megan.kiwi-computer.com> <20060327005915.GY25392@wantadilla.lemis.com> In-Reply-To: <20060327005915.GY25392@wantadilla.lemis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Hackers Subject: Re: Programs not accepting input? 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, 27 Mar 2006 11:27:45 -0000 Greg 'groggy' Lehey wrote: >Same here. As mentioned in the original message, I can use the mouse >to open a new window under firefox. The new window will accept >keyboard input, the old one won't. It's almost as if it's deadlocking >on input. > > Just a "me too". I used to get this with mozilla just as you described for Firefox but haven't had it in a while (fingers crossed). This is using standard Xorg server, single head display, simple window manager (fvwm2). Some time ago I switched to the NVidia driver over the Xorg one, but I really don't know that this is related. Just that I switched some time ago and that I haven't had the lockup in a while. For all I know, I unconsciously stopped doing whatever it was that triggered the lockup :-( --Alex From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 16:01:32 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6A8416A422 for ; Mon, 27 Mar 2006 16:01:32 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id E069143D48 for ; Mon, 27 Mar 2006 16:01:31 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10) with ESMTP id k2RG1UWG057741 for ; Mon, 27 Mar 2006 11:01:30 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10/Submit) id k2RG1U1Y057740 for hackers@freebsd.org; Mon, 27 Mar 2006 11:01:30 -0500 (EST) (envelope-from mwlucas) Date: Mon, 27 Mar 2006 11:01:30 -0500 From: "Michael W. Lucas" To: hackers@freebsd.org Message-ID: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Cc: Subject: syslogd not draining 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, 27 Mar 2006 16:01:33 -0000 Hi, I've got a machine running syslogd, DNS, DHCP, flow-capture, and other assorted UDP-loving programs. Occasionally, they all stop working. The machine has been up for a couple of hours now, and I see: ns1/etc;netstat -s | grep full Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory 122066 dropped due to full socket buffers ns1/etc; I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it still happens. After some help from questions@, I'm pretty sure that the culprit is syslogd. udp4 0 0 *.67 *.* udp4 43414 0 *.514 *.* udp4 0 0 *.49661 *.* Things run perfectly for a while, and then we suddenly stop answering UDP requests. We continue not answering UDP requests until I restart syslogd. syslogd -d didn't give anything interesting. I'm now running syslogd -n, to see if that helps. I'm also restarting syslogd every fifteen minutes, to ensure that the problem can last no longer than 14 minutes. :-) Anyone interested in why syslogd is not draining the queue? Thanks, ==ml -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 16:18:53 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 92F0316A422 for ; Mon, 27 Mar 2006 16:18:53 +0000 (UTC) (envelope-from BORJAMAR@SARENET.ES) Received: from smtp1.sarenet.es (smtp1.sarenet.es [194.30.0.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3340043D46 for ; Mon, 27 Mar 2006 16:18:52 +0000 (GMT) (envelope-from BORJAMAR@SARENET.ES) Received: from [127.0.0.1] (borja.sarenet.es [192.148.167.77]) by smtp1.sarenet.es (Postfix) with ESMTP id 5E0E289; Mon, 27 Mar 2006 18:18:51 +0200 (CEST) In-Reply-To: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> Mime-Version: 1.0 (Apple Message framework v746.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> Content-Transfer-Encoding: 7bit From: Borja Marcos Date: Mon, 27 Mar 2006 18:18:50 +0200 To: "Michael W. Lucas" X-Mailer: Apple Mail (2.746.3) Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 16:18:53 -0000 > I've got a machine running syslogd, DNS, DHCP, flow-capture, and other > assorted UDP-loving programs. Occasionally, they all stop working. > The machine has been up for a couple of hours now, and I see: > > ns1/etc;netstat -s | grep full > Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory > 122066 dropped due to full socket buffers > ns1/etc; > > I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it > still happens. > > After some help from questions@, I'm pretty sure that the culprit is > syslogd. > > udp4 0 0 *.67 *.* > udp4 43414 0 *.514 *.* > udp4 0 0 *.49661 *.* Are you using a serial console? I had similar problems in the past due to the serial port flow control. Borja. From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 16:49:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 24EDF16A42B for ; Mon, 27 Mar 2006 16:49:45 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (megan.kiwi-computer.com [63.224.10.3]) by mx1.FreeBSD.org (Postfix) with SMTP id DAB3943D4C for ; Mon, 27 Mar 2006 16:49:39 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 30854 invoked by uid 2001); 27 Mar 2006 16:49:38 -0000 Date: Mon, 27 Mar 2006 10:49:38 -0600 From: "Rick C. Petty" To: "Frank B. Scholl" Message-ID: <20060327164938.GA30787@megan.kiwi-computer.com> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060327005342.GX25392@wantadilla.lemis.com> <20060327112153.2aa6bf65.frank.b.scholl@web.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060327112153.2aa6bf65.frank.b.scholl@web.de> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Programs not accepting input? 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, 27 Mar 2006 16:49:45 -0000 On Mon, Mar 27, 2006 at 11:21:53AM +0200, Frank B. Scholl wrote: > > i followed this discussion so far and wondered what your techniques are to have your running programs accepting input again. in my case, this phenomenon heavily depends on the windowmanager you chose. when being on fluxbox and having a running instance of firefox, it every once in a while refuses keyboard input. i have had this with other gtk apps, too, for example sylpheed. > > to circumvent the problem and getting your application back to accept further keyboard input, i just switch workspaces back and forth and thats it, I've tried everything from switching desktops to killing fvwm2. This is how I know it's not window-manager related. As I said before, I can have two rxvts side-by-side. I focus over the left one, type, nothing appears. I focus over the right one, type, keyboard works. Focus back over the left one, nothing. Rinse, repeat. The problem happens more often with GTK apps than a plain rxvt. It's difficult to reproduce the problem, so it's nearly impossible to test. If it were more repeatable, I would have written a test client. Next time it happens, I'll try xev. But I haven't had the problem since I stopped using x11vnc. I only use the nVidia drivers and x.org. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 17:08:04 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE62016A420 for ; Mon, 27 Mar 2006 17:08:04 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4811843D45 for ; Mon, 27 Mar 2006 17:08:04 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10) with ESMTP id k2RH83WG058070; Mon, 27 Mar 2006 12:08:03 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10/Submit) id k2RH83Zb058069; Mon, 27 Mar 2006 12:08:03 -0500 (EST) (envelope-from mwlucas) Date: Mon, 27 Mar 2006 12:08:02 -0500 From: "Michael W. Lucas" To: Borja Marcos Message-ID: <20060327170802.GA58044@bewilderbeast.blackhelicopters.org> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 17:08:04 -0000 On Mon, Mar 27, 2006 at 06:18:50PM +0200, Borja Marcos wrote: > >I've got a machine running syslogd, DNS, DHCP, flow-capture, and other > >assorted UDP-loving programs. Occasionally, they all stop working. > >The machine has been up for a couple of hours now, and I see: > > > >ns1/etc;netstat -s | grep full > >Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory > > 122066 dropped due to full socket buffers > >ns1/etc; > > > >I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it > >still happens. > > > >After some help from questions@, I'm pretty sure that the culprit is > >syslogd. > > > >udp4 0 0 *.67 *.* > >udp4 43414 0 *.514 *.* > >udp4 0 0 *.49661 *.* > > Are you using a serial console? I had similar problems in the past > due to the serial port flow control. Yes, I am. So, if I disable syslogd writing to the console, it might clear this up? Thanks, ==ml -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 17:38:43 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D871316A401 for ; Mon, 27 Mar 2006 17:38:43 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B41343D48 for ; Mon, 27 Mar 2006 17:38:43 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10) with ESMTP id k2RHcfWG058308 for ; Mon, 27 Mar 2006 12:38:42 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10/Submit) id k2RHcfXC058307 for hackers@freebsd.org; Mon, 27 Mar 2006 12:38:41 -0500 (EST) (envelope-from mwlucas) Date: Mon, 27 Mar 2006 12:38:41 -0500 From: "Michael W. Lucas" To: hackers@freebsd.org Message-ID: <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Cc: Subject: Re: syslogd not draining 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, 27 Mar 2006 17:38:43 -0000 On Mon, Mar 27, 2006 at 06:18:50PM +0200, Borja Marcos wrote: > >I've got a machine running syslogd, DNS, DHCP, flow-capture, and other > >assorted UDP-loving programs. Occasionally, they all stop working. > >The machine has been up for a couple of hours now, and I see: > > > >ns1/etc;netstat -s | grep full > >Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory > > 122066 dropped due to full socket buffers > >ns1/etc; > > > >I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it > >still happens. > > > >After some help from questions@, I'm pretty sure that the culprit is > >syslogd. > > > >udp4 0 0 *.67 *.* > >udp4 43414 0 *.514 *.* > >udp4 0 0 *.49661 *.* > > Are you using a serial console? I had similar problems in the past > due to the serial port flow control. I've disabled syslog to the console, writing instead to /var/log/console.log. Moments after doing that, the problem reoccured. Thanks, Borja, but no success. :-( Any other suggestions, folks? Thanks, ==ml -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 18:01:48 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 272D516A434 for ; Mon, 27 Mar 2006 18:01:48 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 518AE43D46 for ; Mon, 27 Mar 2006 18:01:46 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.4/8.13.3) with ESMTP id k2RI1gNW088645; Mon, 27 Mar 2006 22:01:42 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Mon, 27 Mar 2006 22:01:42 +0400 (MSD) From: Maxim Konovalov To: "Michael W. Lucas" In-Reply-To: <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> Message-ID: <20060327214209.U87890@mp2.macomnet.net> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 18:01:48 -0000 On Mon, 27 Mar 2006, 12:38-0500, Michael W. Lucas wrote: > On Mon, Mar 27, 2006 at 06:18:50PM +0200, Borja Marcos wrote: > > >I've got a machine running syslogd, DNS, DHCP, flow-capture, and other > > >assorted UDP-loving programs. Occasionally, they all stop working. > > >The machine has been up for a couple of hours now, and I see: > > > > > >ns1/etc;netstat -s | grep full > > >Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory > > > 122066 dropped due to full socket buffers > > >ns1/etc; > > > > > >I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it > > >still happens. That's not enough. You need to teach syslogd to use this new value. > > >After some help from questions@, I'm pretty sure that the culprit is > > >syslogd. > > > > > >udp4 0 0 *.67 *.* > > >udp4 43414 0 *.514 *.* > > >udp4 0 0 *.49661 *.* > > > > Are you using a serial console? I had similar problems in the past > > due to the serial port flow control. > > I've disabled syslog to the console, writing instead to > /var/log/console.log. > > Moments after doing that, the problem reoccured. Thanks, Borja, but > no success. :-( > > Any other suggestions, folks? What's the incoming udp datagrams rate? netstat -sp udp | grep 'datagrams received'; sleep 10; \ netstat -sp udp | grep 'datagrams received' How much cpu time does syslogd use? -- Maxim Konovalov From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 18:15:03 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4342416A400 for ; Mon, 27 Mar 2006 18:15:03 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F2BC43D45 for ; Mon, 27 Mar 2006 18:15:02 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10) with ESMTP id k2RIF1WG058524; Mon, 27 Mar 2006 13:15:01 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10/Submit) id k2RIF1xY058523; Mon, 27 Mar 2006 13:15:01 -0500 (EST) (envelope-from mwlucas) Date: Mon, 27 Mar 2006 13:15:01 -0500 From: "Michael W. Lucas" To: Maxim Konovalov Message-ID: <20060327181501.GA58448@bewilderbeast.blackhelicopters.org> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> <20060327214209.U87890@mp2.macomnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060327214209.U87890@mp2.macomnet.net> User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 18:15:03 -0000 On Mon, Mar 27, 2006 at 10:01:42PM +0400, Maxim Konovalov wrote: > On Mon, 27 Mar 2006, 12:38-0500, Michael W. Lucas wrote: > > > On Mon, Mar 27, 2006 at 06:18:50PM +0200, Borja Marcos wrote: > > > >I've got a machine running syslogd, DNS, DHCP, flow-capture, and other > > > >assorted UDP-loving programs. Occasionally, they all stop working. > > > >The machine has been up for a couple of hours now, and I see: > > > > > > > >ns1/etc;netstat -s | grep full > > > >Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory > > > > 122066 dropped due to full socket buffers > > > >ns1/etc; > > > > > > > >I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it > > > >still happens. > > That's not enough. You need to teach syslogd to use this new value. I don't see this in syslogd(8); I presume it require source hacking? > > > >After some help from questions@, I'm pretty sure that the culprit is > > > >syslogd. > > > > > > > >udp4 0 0 *.67 *.* > > > >udp4 43414 0 *.514 *.* > > > >udp4 0 0 *.49661 *.* > > > > > > Are you using a serial console? I had similar problems in the past > > > due to the serial port flow control. > > > > I've disabled syslog to the console, writing instead to > > /var/log/console.log. > > > > Moments after doing that, the problem reoccured. Thanks, Borja, but > > no success. :-( > > > > Any other suggestions, folks? > > What's the incoming udp datagrams rate? > > netstat -sp udp | grep 'datagrams received'; sleep 10; \ > netstat -sp udp | grep 'datagrams received' 158169 dropped due to full socket buffers 2467251 datagrams received sleeping... 158903 dropped due to full socket buffers 2468299 datagrams received > How much cpu time does syslogd use? Not much. ps -ax | grep syslog gives: 4317 ?? Ss 0:01.60 /usr/sbin/syslogd -l /var/run/log -l /var/named/var/run/log Process has been running for about five minutes at that point. Another point that might be of interest: ns1/etc;rc.d/syslogd restart Stopping syslogd. Waiting for PIDS: 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317 Starting syslogd. ==ml -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 18:35:20 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9917516A422 for ; Mon, 27 Mar 2006 18:35:20 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 645EB43D73 for ; Mon, 27 Mar 2006 18:35:14 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.4/8.13.3) with ESMTP id k2RIZBhO089356; Mon, 27 Mar 2006 22:35:11 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Mon, 27 Mar 2006 22:35:11 +0400 (MSD) From: Maxim Konovalov To: "Michael W. Lucas" In-Reply-To: <20060327181501.GA58448@bewilderbeast.blackhelicopters.org> Message-ID: <20060327222836.J89207@mp2.macomnet.net> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> <20060327214209.U87890@mp2.macomnet.net> <20060327181501.GA58448@bewilderbeast.blackhelicopters.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 18:35:20 -0000 [....] > > > > >ns1/etc;netstat -s | grep full > > > > >Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory > > > > > 122066 dropped due to full socket buffers > > > > >ns1/etc; > > > > > > > > > >I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it > > > > >still happens. > > > > That's not enough. You need to teach syslogd to use this new value. > > I don't see this in syslogd(8); I presume it require source hacking? Yes. [...] > > netstat -sp udp | grep 'datagrams received'; sleep 10; \ > > netstat -sp udp | grep 'datagrams received' > > 158169 dropped due to full socket buffers > 2467251 datagrams received > sleeping... > 158903 dropped due to full socket buffers > 2468299 datagrams received ~100 datagrams per second, not a lot. Perhaps they are huge. > > How much cpu time does syslogd use? > > Not much. ps -ax | grep syslog gives: > > 4317 ?? Ss 0:01.60 /usr/sbin/syslogd -l /var/run/log -l > /var/named/var/run/log Try to remove a log socket for named and restart syslogd. > Process has been running for about five minutes at that point. > > Another point that might be of interest: > > ns1/etc;rc.d/syslogd restart Stopping syslogd. Waiting for PIDS: > 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, > 4317, 4317, 4317, 4317, 4317, 4317, 4317 Starting syslogd. What's the /var filesystem type? Something like gmirror? diff -u /etc/syslog.conf /usr/src/etc/syslog.conf? -- Maxim Konovalov From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 18:46:46 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6BDC116A401 for ; Mon, 27 Mar 2006 18:46:46 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id E27B743D46 for ; Mon, 27 Mar 2006 18:46:45 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10) with ESMTP id k2RIkiWG058720; Mon, 27 Mar 2006 13:46:44 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10/Submit) id k2RIkiRb058719; Mon, 27 Mar 2006 13:46:44 -0500 (EST) (envelope-from mwlucas) Date: Mon, 27 Mar 2006 13:46:44 -0500 From: "Michael W. Lucas" To: Maxim Konovalov Message-ID: <20060327184643.GA58674@bewilderbeast.blackhelicopters.org> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> <20060327214209.U87890@mp2.macomnet.net> <20060327181501.GA58448@bewilderbeast.blackhelicopters.org> <20060327222836.J89207@mp2.macomnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060327222836.J89207@mp2.macomnet.net> User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 18:46:46 -0000 On Mon, Mar 27, 2006 at 10:35:11PM +0400, Maxim Konovalov wrote: > [....] > > > > > >ns1/etc;netstat -s | grep full > > > > > >Warning: sysctl(net.inet6.ip6.rip6stats): No such file or directory > > > > > > 122066 dropped due to full socket buffers > > > > > >ns1/etc; > > > > > > > > > > > >I've doubled kern.ipc.maxsockbuf a couple of times now, and yet it > > > > > >still happens. > > > > > > That's not enough. You need to teach syslogd to use this new value. > > > > I don't see this in syslogd(8); I presume it require source hacking? > > Yes. OK, I'm going to avoid that for the moment. I haven't touched C in five years now, I'd probably confuse it even worse. Besides, I've had centralized logging hosts with this much activity -- and far more -- previously. I can't believe that this environment is so special that it requires that sort of customization. > [...] > > > netstat -sp udp | grep 'datagrams received'; sleep 10; \ > > > netstat -sp udp | grep 'datagrams received' > > > > 158169 dropped due to full socket buffers > > 2467251 datagrams received > > sleeping... > > 158903 dropped due to full socket buffers > > 2468299 datagrams received > > ~100 datagrams per second, not a lot. Perhaps they are huge. Not that I've noticed. It's syslogd, DHCP, DNS, and flow-capture from a variety of devices, all generally small packets. > > > How much cpu time does syslogd use? > > > > Not much. ps -ax | grep syslog gives: > > > > 4317 ?? Ss 0:01.60 /usr/sbin/syslogd -l /var/run/log -l > > /var/named/var/run/log > > Try to remove a log socket for named and restart syslogd. Removed the named socket and restarted. We'll see what happens. > > Process has been running for about five minutes at that point. > > > > Another point that might be of interest: > > > > ns1/etc;rc.d/syslogd restart Stopping syslogd. Waiting for PIDS: > > 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, 4317, > > 4317, 4317, 4317, 4317, 4317, 4317, 4317 Starting syslogd. > > What's the /var filesystem type? Something like gmirror? Nope. It's a big SATA drive with a swap partition at the top and the rest vanilla UFS2: ad4: 38146MB at ata2-master SATA150 ad5: 476940MB at ata2-slave SATA150 ns1~;mount /dev/ad4s1a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad4s1d on /tmp (ufs, local, soft-updates) /dev/ad4s1e on /usr (ufs, local, soft-updates) /dev/ad4s1f on /home (ufs, local, soft-updates) /dev/ad5s1d on /var (ufs, local, soft-updates) devfs on /var/named/dev (devfs, local) > diff -u /etc/syslog.conf /usr/src/etc/syslog.conf? # $FreeBSD: src/etc/syslog.conf,v 1.28 2005/03/12 12:31:16 glebius Exp $ -#$Id: syslog.conf,v 1.11 2006/03/17 18:56:18 system_mwl Exp system_mwl $ # # Spaces ARE valid field separators in this file. However, # other *nix-like systems still insist on using tabs as field # separators. If you are sharing this file between systems, you # may want to use only tabs as field separators here. # Consult the syslog.conf(5) manpage. -*.err;kern.warning;auth.notice;mail.crit;local4.none /var/log/console.log -#*.err;kern.warning;auth.notice;mail.crit;local4.none /dev/console -*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err;local0.none;local 1.none;local2.none;local3.none;local4.none;local5.none;local6.none;local7.none / var/log/messages +*.err;kern.warning;auth.notice;mail.crit /dev/console +*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err /var/log/message s security.* /var/log/security auth.info;authpriv.info /var/log/auth.log mail.info /var/log/maillog lpr.info /var/log/lpd-errs ftp.info /var/log/xferlog cron.* /var/log/cron -daemon.debug /var/log/daemon.debug *.=debug /var/log/debug.log *.emerg * -local0.* /var/log/router -local1.* /var/log/switch -#local2.* /var/log/kvm -#local 2-3 can be used -local4.* /var/log/pix -local5.* /var/log/vpn -local7.* /var/log/dhcpd # uncomment this to log all writes to /dev/console to /var/log/console.log #console.info /var/log/console.log # uncomment this to enable logging of all log messages to /var/log/all.log # touch /var/log/all.log and chmod it to mode 600 before it will work -*.* /var/log/all.log +#*.* /var/log/all.log # uncomment this to enable logging to a remote loghost named loghost #*.* @loghost # uncomment these if you're running inn @@ -40,5 +30,3 @@ *.* /var/log/slip.log !ppp *.* /var/log/ppp.log -!flow-capture -*.* /var/log/flow-capture -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 18:59:19 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C30A216A400 for ; Mon, 27 Mar 2006 18:59:19 +0000 (UTC) (envelope-from maxim@macomnet.ru) Received: from mp2.macomnet.net (mp2.macomnet.net [195.128.64.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2328F43D60 for ; Mon, 27 Mar 2006 18:59:18 +0000 (GMT) (envelope-from maxim@macomnet.ru) Received: from localhost (localhost [127.0.0.1]) by mp2.macomnet.net (8.13.4/8.13.3) with ESMTP id k2RIxGJV089932; Mon, 27 Mar 2006 22:59:16 +0400 (MSD) (envelope-from maxim@macomnet.ru) Date: Mon, 27 Mar 2006 22:59:16 +0400 (MSD) From: Maxim Konovalov To: "Michael W. Lucas" In-Reply-To: <20060327184643.GA58674@bewilderbeast.blackhelicopters.org> Message-ID: <20060327224826.U89207@mp2.macomnet.net> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> <20060327214209.U87890@mp2.macomnet.net> <20060327181501.GA58448@bewilderbeast.blackhelicopters.org> <20060327222836.J89207@mp2.macomnet.net> <20060327184643.GA58674@bewilderbeast.blackhelicopters.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 18:59:19 -0000 [...] > > ~100 datagrams per second, not a lot. Perhaps they are huge. > > Not that I've noticed. It's syslogd, DHCP, DNS, and flow-capture > from a variety of devices, all generally small packets. I know nothing about your netflow setup but it can generate a huge amount of udp traffic. Check 'pkts' and 'lost' fields in /var/log/flow-capture. > > > > How much cpu time does syslogd use? > > > > > > Not much. ps -ax | grep syslog gives: > > > > > > 4317 ?? Ss 0:01.60 /usr/sbin/syslogd -l /var/run/log -l > > > /var/named/var/run/log > > > > Try to remove a log socket for named and restart syslogd. > > Removed the named socket and restarted. We'll see what happens. [...] Can you check there is nothing from syslogd on the serial console? -- Maxim Konovalov From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 19:07:00 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94BEA16A41F for ; Mon, 27 Mar 2006 19:07:00 +0000 (UTC) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (bewilderbeast.blackhelicopters.org [198.22.63.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3C5D43D5E for ; Mon, 27 Mar 2006 19:06:47 +0000 (GMT) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: from bewilderbeast.blackhelicopters.org (mwlucas@localhost [127.0.0.1]) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10) with ESMTP id k2RJ6kWG058866; Mon, 27 Mar 2006 14:06:46 -0500 (EST) (envelope-from mwlucas@bewilderbeast.blackhelicopters.org) Received: (from mwlucas@localhost) by bewilderbeast.blackhelicopters.org (8.12.10/8.12.10/Submit) id k2RJ6kjH058865; Mon, 27 Mar 2006 14:06:46 -0500 (EST) (envelope-from mwlucas) Date: Mon, 27 Mar 2006 14:06:46 -0500 From: "Michael W. Lucas" To: Maxim Konovalov Message-ID: <20060327190646.GA58824@bewilderbeast.blackhelicopters.org> References: <20060327160130.GA57689@bewilderbeast.blackhelicopters.org> <20F3E06D-5727-4531-A81B-DF64765D1564@SARENET.ES> <20060327173841.GA58274@bewilderbeast.blackhelicopters.org> <20060327214209.U87890@mp2.macomnet.net> <20060327181501.GA58448@bewilderbeast.blackhelicopters.org> <20060327222836.J89207@mp2.macomnet.net> <20060327184643.GA58674@bewilderbeast.blackhelicopters.org> <20060327224826.U89207@mp2.macomnet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060327224826.U89207@mp2.macomnet.net> User-Agent: Mutt/1.4.1i X-Spam-Score: (0) X-Scanned-By: MIMEDefang 2.39 Cc: hackers@freebsd.org Subject: Re: syslogd not draining 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, 27 Mar 2006 19:07:00 -0000 On Mon, Mar 27, 2006 at 10:59:16PM +0400, Maxim Konovalov wrote: > [...] > > > ~100 datagrams per second, not a lot. Perhaps they are huge. > > > > Not that I've noticed. It's syslogd, DHCP, DNS, and flow-capture > > from a variety of devices, all generally small packets. > > I know nothing about your netflow setup but it can generate a > huge amount of udp traffic. Check 'pkts' and 'lost' fields in > /var/log/flow-capture. > > > > > > How much cpu time does syslogd use? > > > > > > > > Not much. ps -ax | grep syslog gives: > > > > > > > > 4317 ?? Ss 0:01.60 /usr/sbin/syslogd -l /var/run/log -l > > > > /var/named/var/run/log > > > > > > Try to remove a log socket for named and restart syslogd. > > > > Removed the named socket and restarted. We'll see what happens. > [...] > > Can you check there is nothing from syslogd on the serial console? I changed that this morning in response to an earlier suggestion. To be sure, I just ran: logger -p local0.err "test message" and got a message in /var/log/console.log, nothing on the serial console. BTW, running syslogd with -n seems to help the problem -- not cure it, mind you, but reduces its severity. ==ml -- Michael W. Lucas mwlucas@FreeBSD.org, mwlucas@BlackHelicopters.org http://www.BlackHelicopters.org/~mwlucas/ "The cloak of anonymity protects me from the nuisance of caring." -Non Sequitur From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 23:23:58 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C083316A41F for ; Mon, 27 Mar 2006 23:23:58 +0000 (UTC) (envelope-from ederbsd@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 53A8243D46 for ; Mon, 27 Mar 2006 23:23:58 +0000 (GMT) (envelope-from ederbsd@gmail.com) Received: by zproxy.gmail.com with SMTP id f1so609952nzc for ; Mon, 27 Mar 2006 15:23:57 -0800 (PST) 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; b=U0g2urbFI8Z5eL43Za9I4JbDYL2cQRM5sW0dVmvVcnOuKWRLWhbhj+rIRXaj4PTW32Lfrbu6blEsrff0z9/6m7fixI/fFLVPTHVSZCWHf83I7lzqKAq4cp39JqFJtGTWDPhYfU2fn4kr+8BLcIcjveWvp4MO6xUuK5Fj1IeJaQU= Received: by 10.65.242.5 with SMTP id u5mr2904439qbr; Mon, 27 Mar 2006 15:23:57 -0800 (PST) Received: by 10.37.13.17 with HTTP; Mon, 27 Mar 2006 15:23:57 -0800 (PST) Message-ID: <9dd63e580603271523p2571f66cye1230815de021bd1@mail.gmail.com> Date: Mon, 27 Mar 2006 20:23:57 -0300 From: Eder 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Direct access to hadware 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, 27 Mar 2006 23:23:58 -0000 Hi all, I would like to know if exite some header ".h" in FreeBSD so that I can make a direct access to hadware in machine with C. Thanks, Eder -- Linux is for people who hate Windows, BSD is for people who love UNIX" From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 27 23:37:48 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 555DE16A422 for ; Mon, 27 Mar 2006 23:37:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id D65F043D46 for ; Mon, 27 Mar 2006 23:37:47 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k2RNb9fR092565; Mon, 27 Mar 2006 16:37:09 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 27 Mar 2006 16:37:47 -0700 (MST) Message-Id: <20060327.163747.26928323.imp@bsdimp.com> To: ederbsd@gmail.com From: "M. Warner Losh" In-Reply-To: <9dd63e580603271523p2571f66cye1230815de021bd1@mail.gmail.com> References: <9dd63e580603271523p2571f66cye1230815de021bd1@mail.gmail.com> 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 Cc: freebsd-hackers@freebsd.org Subject: Re: Direct access to hadware 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, 27 Mar 2006 23:37:48 -0000 In message: <9dd63e580603271523p2571f66cye1230815de021bd1@mail.gmail.com> Eder writes: : I would like to know if exite some header ".h" in FreeBSD so : that I can make a direct access to hadware in machine with C. Yes. There is. However, without knowing what you want to do, it is impossible to recommend which one of the many .h files can enable this functionality. What's your hardware look like that you wish to get access to. One caveat: unless you have a driver, you can't have a interrupt. Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 00:21:40 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6113616A433 for ; Tue, 28 Mar 2006 00:21:40 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: from outbound7.internet-mail-service.net (outbound7.internet-mail-service.net [216.240.47.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id C759343D45 for ; Tue, 28 Mar 2006 00:21:39 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by outbound.internet-mail-service.net (Postfix) with ESMTP id 0D3AB242A47 for ; Fri, 24 Mar 2006 10:12:34 -0800 (PST) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id k2OICWqY089035 for ; Fri, 24 Mar 2006 10:12:33 -0800 (PST) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: (qmail 53972 invoked by uid 1001); 24 Mar 2006 18:12:32 -0000 Received: by localhost.mired.org (tmda-sendmail, from uid 1001); Fri, 24 Mar 2006 13:12:32 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17444.13967.998120.314837@bhuda.mired.org> Date: Fri, 24 Mar 2006 13:12:31 -0500 To: vd@freebsd.org In-Reply-To: <20060324174235.GA58111@qlovarnika.bg.datamax> References: <200603241719.k2OHJDbh012213@sora.hank.home> <20060324174235.GA58111@qlovarnika.bg.datamax> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: FreeBSD Hackers , Khaled Hussain , Dirk GOUDERS Subject: Re: cloning a FreeBSD HDD 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, 28 Mar 2006 00:21:40 -0000 In <20060324174235.GA58111@qlovarnika.bg.datamax>, Vasil Dimov typed: > On Fri, Mar 24, 2006 at 06:19:13PM +0100, Dirk GOUDERS wrote: > Without reading it, I would first try this, it's quite straightforward > > * boot into single user mode (enter "boot -s" at loader prompt) > * make sure filesystems are mounted readonly (mount) > dd if=/dev/ad0 of=/dev/ad1 bs=1m > (where ad0 is your disk with data and ad1 is your new disk, make sure > you do not swap them :) Doesn't really matter in single user mode - you'll just copy the swap over. But yeah, this procedure works fine for me in the past. One thing: 1m is a bit small for modern systems. Or for not-so-modern systems. Since nothing else is running, you might as well use all the memory you've got, or as big as you can get a process to be. 128m or more is perfectly reasonable. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 01:10:19 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3767516A432; Tue, 28 Mar 2006 01:10:19 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7114B43D4C; Tue, 28 Mar 2006 01:10:16 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp231-129.lns2.adl4.internode.on.net [203.122.231.129]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k2S19duk046177 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 28 Mar 2006 10:39:44 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 28 Mar 2006 11:39:27 +1030 User-Agent: KMail/1.9.1 References: <20060324174235.GA58111@qlovarnika.bg.datamax> <17444.13967.998120.314837@bhuda.mired.org> In-Reply-To: <17444.13967.998120.314837@bhuda.mired.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2874129.psiSsk8aZd"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200603281139.29588.doconnor@gsoft.com.au> X-Spam-Score: -0.259 () AWL X-Scanned-By: MIMEDefang 2.56 on 203.31.81.10 Cc: Mike Meyer , vd@freebsd.org, Khaled Hussain , Dirk GOUDERS Subject: Re: cloning a FreeBSD HDD 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, 28 Mar 2006 01:10:19 -0000 --nextPart2874129.psiSsk8aZd Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 25 March 2006 04:42, Mike Meyer wrote: > One thing: 1m is a bit small for modern systems. Or for not-so-modern > systems. Since nothing else is running, you might as well use all the > memory you've got, or as big as you can get a process to be. 128m or > more is perfectly reasonable. It won't go any faster.. In a modern system the CPU is so much faster than the disk than anything ab= ove=20 about 16k would be enough. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2874129.psiSsk8aZd Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEKIzJ5ZPcIHs/zowRAibIAJ4opV6MKXqXNBDhRRxqHL7wx0Ty7QCcC7BL KL191h3CAIOKPC9gQ6d5CPA= =VpUm -----END PGP SIGNATURE----- --nextPart2874129.psiSsk8aZd-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 01:13:47 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9126216A424 for ; Tue, 28 Mar 2006 01:13:47 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA40A43D53 for ; Tue, 28 Mar 2006 01:13:46 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id 03EFF131E0A; Tue, 28 Mar 2006 11:43:46 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id D7B5886F5A; Tue, 28 Mar 2006 11:43:45 +1030 (CST) Date: Tue, 28 Mar 2006 11:43:45 +1030 From: Greg 'groggy' Lehey To: babkin@users.sf.net Message-ID: <20060328011345.GC25392@wantadilla.lemis.com> References: <19770339.131791143464603498.JavaMail.root@vms075.mailsrvcs.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XpiJmOlWym1NsHNf" Content-Disposition: inline In-Reply-To: <19770339.131791143464603498.JavaMail.root@vms075.mailsrvcs.net> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: "Rick C. Petty" , FreeBSD Hackers Subject: Re: Re: Programs not accepting input? 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, 28 Mar 2006 01:13:47 -0000 --XpiJmOlWym1NsHNf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 27 March 2006 at 7:03:23 -0600, Sergey Babkin wrote: >> Same here. As mentioned in the original message, I can use the mouse >> to open a new window under firefox. The new window will accept >> keyboard input, the old one won't. It's almost as if it's deadlocking >> on input. >> >> Reminder: my final question was "how do I go about debugging this >> problem?". > > Does it happen with any kind of programs? No. So far I've only seen it with firefox, emacs and kklondike. > If yes, it would probably be something focus-related (and you'd be > able to see that the Focus event is not coming in). As already mentioned, this is not the case. I've seen this kind of problem too. > The focus management and the highlighting of the window manager > decoration are not physically connected in any way, so a bug in the > window manager might cause it to do the highlighting but forget to > give the focus to the application. But mouse focus and keyboard focus are the same, right? The windows respond to the mouse, but not to the keyboard. The remainder of your reply seems to build on the assumption that there is no focus. I'll leave it there in case I misunderstood and you want to refer to it. > To debug that you can add debugging printout to the WM. Or I've had > a script that sort of decoded the X protocol, so if you can get the > dump of these (maybe with ktrace), you can decode the dump and see > what happens with the focus. I'll look for it in my archives. > > If no, it might be something with the keyboard event translation to > keysyms/text. You can debug this by writing a test program that > would do it own dispatch loop - i.e. call XEvent() and then > XtDispatchEvent() (or some close names - I might not remember them > right), and print the debugging messages. So if you see that > XEvent() is getting events but then nothing comes out of dispatching > them, then the translation is broken somewhere. > > I might be able to find this kind of a program > in my archives too, I'll look around. thanks. > BTW, one place where the keyboard events might disappear is the > Input Method handling code. But I don't think that you run any Input > Methods. Not explicitly. Greg -- See complete headers for address and phone numbers. --XpiJmOlWym1NsHNf Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFEKI3JIubykFB6QiMRAoBsAJ469XT7tCyNraRiHTrQzSjq49gnoACdFHqw hU5mq36eRvi8bbiZqylTFY4= =ugra -----END PGP SIGNATURE----- --XpiJmOlWym1NsHNf-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 01:30:55 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE1C716A401 for ; Tue, 28 Mar 2006 01:30:55 +0000 (UTC) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: from outbound7.internet-mail-service.net (outbound7.internet-mail-service.net [216.240.47.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EA4943D49 for ; Tue, 28 Mar 2006 01:30:55 +0000 (GMT) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: from idiom.com (idiom.com [216.240.32.1]) by outbound.internet-mail-service.net (Postfix) with ESMTP id 5C679245386 for ; Mon, 27 Mar 2006 17:30:55 -0800 (PST) Received: from mired.org (mwm@idiom [216.240.32.1]) by idiom.com (8.12.11/8.12.11) with SMTP id k2S1Uq5U086489 for ; Mon, 27 Mar 2006 17:30:53 -0800 (PST) (envelope-from mwm-keyword-freebsdhackers.102a7e@mired.org) Received: (qmail 5515 invoked by uid 1001); 28 Mar 2006 01:30:52 -0000 Received: by localhost.mired.org (tmda-sendmail, from uid 1001); Mon, 27 Mar 2006 20:30:52 -0500 (EST) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17448.37324.47627.891930@bhuda.mired.org> Date: Mon, 27 Mar 2006 20:30:52 -0500 To: "Greg 'groggy' Lehey" In-Reply-To: <20060328011345.GC25392@wantadilla.lemis.com> References: <19770339.131791143464603498.JavaMail.root@vms075.mailsrvcs.net> <20060328011345.GC25392@wantadilla.lemis.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid X-Primary-Address: mwm@mired.org X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ X-Delivery-Agent: TMDA/1.0.3 (Seattle Slew) From: Mike Meyer Cc: babkin@users.sourceforge.net, FreeBSD Hackers , "Rick C. Petty" Subject: Re: Re: Programs not accepting input? 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, 28 Mar 2006 01:30:55 -0000 In <20060328011345.GC25392@wantadilla.lemis.com>, Greg 'groggy' Lehey typed: > > The focus management and the highlighting of the window manager > > decoration are not physically connected in any way, so a bug in the > > window manager might cause it to do the highlighting but forget to > > give the focus to the application. > But mouse focus and keyboard focus are the same, right? There isn't a "mouse focus". Mouse events are tied to window they happen in, not the one with focus. If you use a window manager that doesn't change the keyboard focus on mouse events, it's possible to have mouse events happen in a window that doesn't have the focus. http://www.mired.org/consulting.html Independent Network/Unix/Perforce consultant, email for more information. From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 01:48:19 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 981DF16A44C for ; Tue, 28 Mar 2006 01:48:19 +0000 (UTC) (envelope-from grog@lemis.com) Received: from ext-gw.lemis.com (ext-gw.lemis.com [150.101.14.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFCF843D45 for ; Tue, 28 Mar 2006 01:48:16 +0000 (GMT) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by ext-gw.lemis.com (Postfix) with ESMTP id F096A1310C4; Tue, 28 Mar 2006 12:18:15 +1030 (CST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id CFF2A86F5A; Tue, 28 Mar 2006 12:18:15 +1030 (CST) Date: Tue, 28 Mar 2006 12:18:15 +1030 From: Greg 'groggy' Lehey To: Mike Meyer Message-ID: <20060328014815.GI25392@wantadilla.lemis.com> References: <19770339.131791143464603498.JavaMail.root@vms075.mailsrvcs.net> <20060328011345.GC25392@wantadilla.lemis.com> <17448.37324.47627.891930@bhuda.mired.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yDCMjXnIyieoUzBP" Content-Disposition: inline In-Reply-To: <17448.37324.47627.891930@bhuda.mired.org> User-Agent: Mutt/1.4.2.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 VoIP: sip:0871270137@sip.internode.on.net WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Cc: babkin@users.sourceforge.net, FreeBSD Hackers , "Rick C. Petty" Subject: Re: Re: Programs not accepting input? 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, 28 Mar 2006 01:48:19 -0000 --yDCMjXnIyieoUzBP Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Monday, 27 March 2006 at 20:30:52 -0500, Mike Meyer wrote: > In <20060328011345.GC25392@wantadilla.lemis.com>, Greg 'groggy' Lehey typed: >>> The focus management and the highlighting of the window manager >>> decoration are not physically connected in any way, so a bug in the >>> window manager might cause it to do the highlighting but forget to >>> give the focus to the application. >> But mouse focus and keyboard focus are the same, right? > > There isn't a "mouse focus". Mouse events are tied to window they > happen in, not the one with focus. If you use a window manager that > doesn't change the keyboard focus on mouse events, it's possible to > have mouse events happen in a window that doesn't have the focus. Ah, good to know. That changes things somewhat. Greg -- See complete headers for address and phone numbers. --yDCMjXnIyieoUzBP Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFEKJXfIubykFB6QiMRAlgNAJ98IdO7q6Ipnm5zor8ny7pVhnEpmwCfeiBo I0AcWVWv5ktwmOGBnK88EHc= =kDBO -----END PGP SIGNATURE----- --yDCMjXnIyieoUzBP-- From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 06:10:45 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17F5B16A41F for ; Tue, 28 Mar 2006 06:10:45 +0000 (UTC) (envelope-from soralx@cydem.org) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9E7B43D48 for ; Tue, 28 Mar 2006 06:10:44 +0000 (GMT) (envelope-from soralx@cydem.org) Received: from pd4mr8so.prod.shaw.ca (pd4mr8so-qfe3.prod.shaw.ca [10.0.141.101]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWT006A8QHVMX10@l-daemon> for freebsd-hackers@freebsd.org; Mon, 27 Mar 2006 23:10:44 -0700 (MST) Received: from pn2ml4so.prod.shaw.ca ([10.0.121.148]) by pd4mr8so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWT003CPQHV9510@pd4mr8so.prod.shaw.ca> for freebsd-hackers@freebsd.org; Mon, 27 Mar 2006 23:10:43 -0700 (MST) Received: from soralx.cydem.org ([24.87.27.3]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWT00MTPQHVO660@l-daemon> for freebsd-hackers@freebsd.org; Mon, 27 Mar 2006 23:10:43 -0700 (MST) Date: Mon, 27 Mar 2006 22:10:42 -0800 From: soralx@cydem.org In-reply-to: <200603281139.29588.doconnor@gsoft.com.au> To: freebsd-hackers@freebsd.org Message-id: <200603272210.43032.soralx@cydem.org> MIME-version: 1.0 Content-type: text/plain; charset=koi8-r Content-transfer-encoding: 7bit Content-disposition: inline References: <17444.13967.998120.314837@bhuda.mired.org> <200603281139.29588.doconnor@gsoft.com.au> User-Agent: KMail/1.9.1 Subject: Re: cloning a FreeBSD HDD 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, 28 Mar 2006 06:10:45 -0000 > On Saturday 25 March 2006 04:42, Mike Meyer wrote: > > One thing: 1m is a bit small for modern systems. Or for not-so-modern > > systems. Since nothing else is running, you might as well use all the > > memory you've got, or as big as you can get a process to be. 128m or > > more is perfectly reasonable. > > It won't go any faster.. > > In a modern system the CPU is so much faster than the disk than anything above > about 16k would be enough. I found 64k to be optimal (e.g, max performance) on most machines Timestamp: 0x4428D30F [SorAlx] http://cydem.org.ua/ ridin' VN1500-B2 From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 17:15:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7012E16A401 for ; Tue, 28 Mar 2006 17:15:55 +0000 (UTC) (envelope-from joe@osoft.us) Received: from mail.osoft.us (osoft.us [67.14.192.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 333F744DA6 for ; Tue, 28 Mar 2006 17:15:55 +0000 (GMT) (envelope-from joe@osoft.us) Received: from [192.168.1.103] (unknown [64.19.242.82]) by mail.osoft.us (Postfix) with ESMTP id 494F733C9C; Tue, 28 Mar 2006 11:15:51 -0600 (CST) Message-ID: <44296F41.1050209@osoft.us> Date: Tue, 28 Mar 2006 11:15:45 -0600 From: Joe Koberg User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: soralx@cydem.org References: <17444.13967.998120.314837@bhuda.mired.org> <200603281139.29588.doconnor@gsoft.com.au> <200603272210.43032.soralx@cydem.org> In-Reply-To: <200603272210.43032.soralx@cydem.org> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD 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, 28 Mar 2006 17:15:55 -0000 soralx@cydem.org wrote: >> On Saturday 25 March 2006 04:42, Mike Meyer wrote: >> >>> One thing: 1m is a bit small for modern systems. Or for not-so-modern >>> systems. Since nothing else is running, you might as well use all the >>> memory you've got, or as big as you can get a process to be. 128m or >>> more is perfectly reasonable. >>> >> It won't go any faster.. >> >> In a modern system the CPU is so much faster than the disk than anything above >> about 16k would be enough. >> > > I found 64k to be optimal (e.g, max performance) on most machines > > I heard its faster if you use two dd's; i.e: # dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k allowing read and write to proceed in parallel. Joe Koberg joe at osoft dot us From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 19:59:24 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5795E16A428 for ; Tue, 28 Mar 2006 19:59:24 +0000 (UTC) (envelope-from julian@elischer.org) Received: from a50.ironport.com (a50.ironport.com [63.251.108.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0FFD43D73 for ; Tue, 28 Mar 2006 19:59:23 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.17.229]) ([10.251.17.229]) by a50.ironport.com with ESMTP; 28 Mar 2006 11:59:24 -0800 Message-ID: <4429959B.4070209@elischer.org> Date: Tue, 28 Mar 2006 11:59:23 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.11) Gecko/20050727 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joe Koberg References: <17444.13967.998120.314837@bhuda.mired.org> <200603281139.29588.doconnor@gsoft.com.au> <200603272210.43032.soralx@cydem.org> <44296F41.1050209@osoft.us> In-Reply-To: <44296F41.1050209@osoft.us> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD 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, 28 Mar 2006 19:59:24 -0000 Joe Koberg wrote: > soralx@cydem.org wrote: > >>> On Saturday 25 March 2006 04:42, Mike Meyer wrote: >>> >>> >>>> One thing: 1m is a bit small for modern systems. Or for not-so-modern >>>> systems. Since nothing else is running, you might as well use all the >>>> memory you've got, or as big as you can get a process to be. 128m or >>>> more is perfectly reasonable. >>>> >>> >>> It won't go any faster.. >>> >>> In a modern system the CPU is so much faster than the disk than >>> anything above about 16k would be enough. >>> >> >> >> I found 64k to be optimal (e.g, max performance) on most machines >> >> > > I heard its faster if you use two dd's; i.e: > > # dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k > > allowing read and write to proceed in parallel. that's what ddd and 'team' are for. I don't know if ddd is in the ports as it may clash inname with teh debugger ddd They internally fork and use several processes synchronised in some manner. > > Joe Koberg > joe at osoft dot us > > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 20:07:22 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 08E5116A420 for ; Tue, 28 Mar 2006 20:07:22 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id DFB0C43D55 for ; Tue, 28 Mar 2006 20:06:20 +0000 (GMT) (envelope-from eksffa@freebsdbrasil.com.br) Received: (qmail 11870 invoked by uid 0); 28 Mar 2006 17:06:09 -0300 Received: from eksffa@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.152.115):. Processed in 0.535176 secs); 28 Mar 2006 20:06:09 -0000 Received: from unknown (HELO ?10.69.69.69?) (201.17.152.115) by capeta.freebsdbrasil.com.br with SMTP; 28 Mar 2006 17:06:08 -0300 Message-ID: <4429972C.5030806@freebsdbrasil.com.br> Date: Tue, 28 Mar 2006 17:06:04 -0300 From: Patrick Tracanelli Organization: FreeBSD Brasil LTDA User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051013 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <17444.13967.998120.314837@bhuda.mired.org> <200603281139.29588.doconnor@gsoft.com.au> <200603272210.43032.soralx@cydem.org> <44296F41.1050209@osoft.us> <4429959B.4070209@elischer.org> In-Reply-To: <4429959B.4070209@elischer.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cloning a FreeBSD HDD 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, 28 Mar 2006 20:07:22 -0000 >> I heard its faster if you use two dd's; i.e: >> >> # dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k >> >> allowing read and write to proceed in parallel. > > > that's what ddd and 'team' are for. > I don't know if ddd is in the ports as it may clash inname with teh > debugger ddd > They internally fork and use several processes synchronised in some manner. Isn't dump+restore and a couple of fdisk+bsdlabel trick to copy the source partitioning a better choice to "clone" this HDD? -- Patrick Tracanelli (31) 3281-9633 / 3281-3547 316601@sip.freebsdbrasil.com.br From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 28 23:16:04 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C504E16A400 for ; Tue, 28 Mar 2006 23:16:04 +0000 (UTC) (envelope-from ederbsd@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54D2343D4C for ; Tue, 28 Mar 2006 23:16:04 +0000 (GMT) (envelope-from ederbsd@gmail.com) Received: by zproxy.gmail.com with SMTP id 18so49898nzp for ; Tue, 28 Mar 2006 15:16:03 -0800 (PST) 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; b=C0QliuMUm+zj3ehKiVFbyDurf9KYfmTAtJOWiqLpexhCryyGE9hS/U0BSmemG5PdqL/OXi7sWX7hRsJXO7lPVZhPEsAtxhguP2nA2wJ7UYRaQ3xAubCgZeLqe/X3E6kukyTjVrw58VHhVdGaKH/nczExmPFaOk+Kn2aFK3kDC1Q= Received: by 10.36.221.27 with SMTP id t27mr75901nzg; Tue, 28 Mar 2006 15:16:03 -0800 (PST) Received: by 10.37.13.17 with HTTP; Tue, 28 Mar 2006 15:16:03 -0800 (PST) Message-ID: <9dd63e580603281516jee694b6sa7274b48c25f98c8@mail.gmail.com> Date: Tue, 28 Mar 2006 20:16:03 -0300 From: Eder 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Direct access to hadware 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, 28 Mar 2006 23:16:04 -0000 Hi all, I would like to know if exite some header ".h" in FreeBSD so that I can make a direct access to hadware in machine with C. The intention is to make some things as, for example, to record ' FFFF ' in first the 512 bytes of hd or to record one floppy with ' FFFF ' of track zero. Eder -- Linux is for people who hate Windows, BSD is for people who love UNIX" From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 04:05:01 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3472C16A401 for ; Wed, 29 Mar 2006 04:05:01 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF2FA43D46 for ; Wed, 29 Mar 2006 04:05:00 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k2T44h0v013143; Tue, 28 Mar 2006 21:04:43 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 28 Mar 2006 21:05:24 -0700 (MST) Message-Id: <20060328.210524.68035803.imp@bsdimp.com> To: ederbsd@gmail.com From: "M. Warner Losh" In-Reply-To: <9dd63e580603281516jee694b6sa7274b48c25f98c8@mail.gmail.com> References: <9dd63e580603281516jee694b6sa7274b48c25f98c8@mail.gmail.com> 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 Cc: freebsd-hackers@freebsd.org Subject: Re: Direct access to hadware 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, 29 Mar 2006 04:05:01 -0000 In message: <9dd63e580603281516jee694b6sa7274b48c25f98c8@mail.gmail.com> Eder writes: : Hi all, : : I would like to know if exite some header ".h" in FreeBSD so : that I can make a direct access to hadware in machine with C. : : The intention is to make some things as, for example, to record ' FFFF ' in : first : the 512 bytes of hd or to record one floppy with ' FFFF ' of track zero. create a file with all ffff's. dd if=file of=/dev/ad0. Warner From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 04:05:03 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DFBC16A420 for ; Wed, 29 Mar 2006 04:05:03 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1430043D46 for ; Wed, 29 Mar 2006 04:05:03 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k2T43VK3013105; Tue, 28 Mar 2006 21:03:31 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 28 Mar 2006 21:04:12 -0700 (MST) Message-Id: <20060328.210412.18287651.imp@bsdimp.com> To: eksffa@freebsdbrasil.com.br From: "M. Warner Losh" In-Reply-To: <4429972C.5030806@freebsdbrasil.com.br> References: <44296F41.1050209@osoft.us> <4429959B.4070209@elischer.org> <4429972C.5030806@freebsdbrasil.com.br> 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 Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD 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, 29 Mar 2006 04:05:03 -0000 In message: <4429972C.5030806@freebsdbrasil.com.br> Patrick Tracanelli writes: : : >> I heard its faster if you use two dd's; i.e: : >> : >> # dd if=/dev/ad0 bs=64k | dd of=/dev/ad1 bs=64k : >> : >> allowing read and write to proceed in parallel. : > : > : > that's what ddd and 'team' are for. : > I don't know if ddd is in the ports as it may clash inname with teh : > debugger ddd : > They internally fork and use several processes synchronised in some manner. : : Isn't dump+restore and a couple of fdisk+bsdlabel trick to copy the : source partitioning a better choice to "clone" this HDD? Yes. That's what I *ALWAYS* do, because hard drives are never the exact same size. fdisk -I makes the fdisk part easy. bsdlabel -R makes the disklabel cloning relatively painless. dump + restore is slow but reliabe. Warner From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 06:27:39 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB83316A41F for ; Wed, 29 Mar 2006 06:27:39 +0000 (UTC) (envelope-from dr2867@pacbell.net) Received: from smtp108.sbc.mail.mud.yahoo.com (smtp108.sbc.mail.mud.yahoo.com [68.142.198.207]) by mx1.FreeBSD.org (Postfix) with SMTP id 6B55C43D45 for ; Wed, 29 Mar 2006 06:27:37 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 4321 invoked from network); 29 Mar 2006 06:27:36 -0000 Received: from unknown (HELO ?192.168.0.190?) (dr2867.business@pacbell.net@71.146.9.168 with plain) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 29 Mar 2006 06:27:36 -0000 Message-ID: <442A2918.9050804@pacbell.net> Date: Tue, 28 Mar 2006 22:28:40 -0800 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 6.0-RELEASE-p4; en-US; ja-JP; en-US; rv:1.7.11) Gecko/20050728 Mnenhy/0.7.2.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: What is the proper use of mlock(2)/munlock(2)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 06:27:39 -0000 Hello FreeBSD Hackers, I've been reading the man page on mlock(2) and a number of questions have arisen about it's use. I have looked at malloc and mmap, and I have not been able to figure this one out. There doesn't seem to be any compiler or library options dealing with this either. 1) How do you make sure that an allocated address range has been aligned on a multiple of the page size given FreeBSD's virtual address map? 2) If 1 cannot be done, then is there a way to force a memory allocation on a page alignment? 3) Is there another set of functions that do this besides mmap/malloc? munlock(2) is not the problem here, it's mlock(2) because according to the man page, it states the following: The mlock() system call locks into memory the physical pages associated with the virtual address range starting at addr for len bytes. The munlock() system call unlocks pages previously locked by one or more mlock() calls. For both, the addr argument should be aligned to a multi- ple of the page size. If the len argument is not a multiple of the page size, it will be rounded up to be so. The entire range must be allo- cated. The thing that is tripping me up is this sentence here: For both, the addr argument should be aligned to a multiple of the page size. And further on in the errors section, we have this: [EINVAL] The address given is not page aligned or the length is negative. Any ideas on how to properly use this? -- Daniel Rudy From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 06:43:21 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC44C16A400 for ; Wed, 29 Mar 2006 06:43:21 +0000 (UTC) (envelope-from nkoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A2E343D49 for ; Wed, 29 Mar 2006 06:43:20 +0000 (GMT) (envelope-from nkoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id B8F91BF747; Wed, 29 Mar 2006 08:43:18 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22876-10; Wed, 29 Mar 2006 08:43:13 +0200 (CEST) Received: from firewall.demig (p5083985D.dip0.t-ipconnect.de [80.131.152.93]) by server.absolute-media.de (Postfix) with ESMTP id A6B74A72DE; Wed, 29 Mar 2006 08:43:13 +0200 (CEST) Received: from [192.168.1.72] (ws-ew-3.demig.intra [192.168.1.72]) by firewall.demig (8.13.6/8.13.5) with ESMTP id k2T6fXcj021890; Wed, 29 Mar 2006 08:41:33 +0200 (CEST) (envelope-from nkoch@demig.de) Message-ID: <442A2C62.4030003@demig.de> Date: Wed, 29 Mar 2006 06:42:42 +0000 From: Norbert Koch User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Daniel Rudy References: <442A2918.9050804@pacbell.net> In-Reply-To: <442A2918.9050804@pacbell.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: freebsd-hackers@freebsd.org Subject: Re: What is the proper use of mlock(2)/munlock(2)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 06:43:21 -0000 Daniel Rudy schrieb: > Hello FreeBSD Hackers, > > I've been reading the man page on mlock(2) and a number of questions > have arisen about it's use. I have looked at malloc and mmap, and I > have not been able to figure this one out. There doesn't seem to be any > compiler or library options dealing with this either. > > 1) How do you make sure that an allocated address range has been aligned > on a multiple of the page size given FreeBSD's virtual address map? Memory allocated by calling mmap(2) is always page aligned. And its size is always rounded up to a multiple of getpagesize(3). From mmap(2): The mmap() function causes the **pages** starting at addr and continuing for at most len bytes to be mapped from the object described by fd, starting at byte offset offset. If len is not a multiple of the pagesize, the mapped region **may extend past** the specified range. Any such extension beyond the end of the mapped object will be zero-filled. Norbert From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 07:15:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E23816A41F for ; Wed, 29 Mar 2006 07:15:36 +0000 (UTC) (envelope-from dr2867@pacbell.net) Received: from smtp108.sbc.mail.mud.yahoo.com (smtp108.sbc.mail.mud.yahoo.com [68.142.198.207]) by mx1.FreeBSD.org (Postfix) with SMTP id DA15D43D45 for ; Wed, 29 Mar 2006 07:15:35 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 45561 invoked from network); 29 Mar 2006 07:15:35 -0000 Received: from unknown (HELO ?192.168.0.190?) (dr2867.business@pacbell.net@71.146.9.168 with plain) by smtp108.sbc.mail.mud.yahoo.com with SMTP; 29 Mar 2006 07:15:35 -0000 Message-ID: <442A3456.3070100@pacbell.net> Date: Tue, 28 Mar 2006 23:16:38 -0800 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 6.0-RELEASE-p4; en-US; ja-JP; en-US; rv:1.7.11) Gecko/20050728 Mnenhy/0.7.2.0 MIME-Version: 1.0 To: Norbert Koch References: <442A2918.9050804@pacbell.net> <442A2C62.4030003@demig.de> In-Reply-To: <442A2C62.4030003@demig.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: What is the proper use of mlock(2)/munlock(2)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 07:15:36 -0000 At about the time of 3/28/2006 10:42 PM, Norbert Koch stated the following: > > Daniel Rudy schrieb: >> Hello FreeBSD Hackers, >> >> I've been reading the man page on mlock(2) and a number of questions >> have arisen about it's use. I have looked at malloc and mmap, and I >> have not been able to figure this one out. There doesn't seem to be any >> compiler or library options dealing with this either. >> >> 1) How do you make sure that an allocated address range has been aligned >> on a multiple of the page size given FreeBSD's virtual address map? > > Memory allocated by calling mmap(2) is always page aligned. And its > size is always rounded up to a multiple of getpagesize(3). > > From mmap(2): > > The mmap() function causes the **pages** starting at addr and continuing > for at most len bytes to be mapped from the object described by fd, > starting at byte offset offset. If len is not a multiple of the > pagesize, the mapped region **may extend past** the specified range. > Any such extension beyond the end of the mapped object will be > zero-filled. > > > Norbert > _______________________________________________ > 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" > I'm not sure why I missed that, but thank you for pointing that out. -- Daniel Rudy From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 09:24:40 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D84DB16A401 for ; Wed, 29 Mar 2006 09:24:40 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D677243D72 for ; Wed, 29 Mar 2006 09:24:35 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp132-100.lns2.adl2.internode.on.net [59.167.132.100]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k2T9O5ue032081 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 29 Mar 2006 18:54:11 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 29 Mar 2006 19:52:39 +1030 User-Agent: KMail/1.9.1 References: <44296F41.1050209@osoft.us> <4429972C.5030806@freebsdbrasil.com.br> <20060328.210412.18287651.imp@bsdimp.com> In-Reply-To: <20060328.210412.18287651.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart6051914.eJDWqVTGaL"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200603291953.56112.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.56 on 203.31.81.10 Cc: eksffa@freebsdbrasil.com.br Subject: Re: cloning a FreeBSD HDD 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, 29 Mar 2006 09:24:40 -0000 --nextPart6051914.eJDWqVTGaL Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 29 March 2006 14:34, M. Warner Losh wrote: > dump + restore is slow but reliabe. =46aster than dd for disks that aren't full :) It also gives you a defrag as well as allowing you to change FS options. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart6051914.eJDWqVTGaL Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEKlIr5ZPcIHs/zowRAgmUAJ9EeD/kQ+ggZ+csNjrtv+p/goVEpgCgi163 m4KPxj0QZx7AZBwSHZzZnFA= =hAyZ -----END PGP SIGNATURE----- --nextPart6051914.eJDWqVTGaL-- From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 13:14:22 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B8C9C16A401 for ; Wed, 29 Mar 2006 13:14:22 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 4F52A43D48 for ; Wed, 29 Mar 2006 13:14:20 +0000 (GMT) (envelope-from eksffa@freebsdbrasil.com.br) Received: (qmail 65671 invoked by uid 0); 29 Mar 2006 10:14:21 -0300 Received: from eksffa@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.152.115):. Processed in 0.564681 secs); 29 Mar 2006 13:14:21 -0000 Received: from unknown (HELO ?10.69.69.69?) (201.17.152.115) by capeta.freebsdbrasil.com.br with SMTP; 29 Mar 2006 10:14:21 -0300 Message-ID: <442A882B.8000207@freebsdbrasil.com.br> Date: Wed, 29 Mar 2006 10:14:19 -0300 From: Patrick Tracanelli Organization: FreeBSD Brasil LTDA User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051013 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <44296F41.1050209@osoft.us> <4429972C.5030806@freebsdbrasil.com.br> <20060328.210412.18287651.imp@bsdimp.com> <200603291953.56112.doconnor@gsoft.com.au> In-Reply-To: <200603291953.56112.doconnor@gsoft.com.au> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: cloning a FreeBSD HDD 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, 29 Mar 2006 13:14:22 -0000 Daniel O'Connor wrote: > On Wednesday 29 March 2006 14:34, M. Warner Losh wrote: > >>dump + restore is slow but reliabe. > > > Faster than dd for disks that aren't full :) > > It also gives you a defrag as well as allowing you to change FS options. Yes, pretty much faster for non-full disks, even compared to paralell dd(1). And we always have the "-L" option to snapshot and dump(1) from live file systems, what makes it an interesting and completly viable choice to clone the disks in multiuser mode (no need to go single user). It is my choice to copy a disk into one other. It is even possible to copy a disk to a slower one (again, if the source is not full and if the dst disk have enough space to store all data currently in use in the source disk), and better (customizable new partitions) results when copying to a larger second disk, when compared to dd(1). -- Patrick Tracanelli FreeBSD Brasil LTDA. (31) 3281-9633 / 3281-3547 316601@sip.freebsdbrasil.com.br http://www.freebsdbrasil.com.br "Long live Hanin Elias, Kim Deal!" From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 16:46:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B7EE16A422 for ; Wed, 29 Mar 2006 16:46:26 +0000 (UTC) (envelope-from lidl@meketrex.pix.net) Received: from meketrex.pix.net (meketrex.pix.net [192.111.45.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 798C343D6D for ; Wed, 29 Mar 2006 16:46:25 +0000 (GMT) (envelope-from lidl@meketrex.pix.net) Received: (from lidl@localhost) by meketrex.pix.net (8.11.6/8.11.6) id k2TGkLD13677; Wed, 29 Mar 2006 11:46:21 -0500 (EST) Date: Wed, 29 Mar 2006 11:46:21 -0500 From: "Kurt J. Lidl" To: Patrick Tracanelli Message-ID: <20060329164620.GC13469@pix.net> Mail-Followup-To: Patrick Tracanelli , freebsd-hackers@freebsd.org References: <44296F41.1050209@osoft.us> <4429972C.5030806@freebsdbrasil.com.br> <20060328.210412.18287651.imp@bsdimp.com> <200603291953.56112.doconnor@gsoft.com.au> <442A882B.8000207@freebsdbrasil.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <442A882B.8000207@freebsdbrasil.com.br> User-Agent: Mutt/1.5.9i Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD 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, 29 Mar 2006 16:46:26 -0000 On Wed, Mar 29, 2006 at 10:14:19AM -0300, Patrick Tracanelli wrote: > Daniel O'Connor wrote: > >On Wednesday 29 March 2006 14:34, M. Warner Losh wrote: > > > >>dump + restore is slow but reliabe. > > > >Faster than dd for disks that aren't full :) > > > >It also gives you a defrag as well as allowing you to change FS options. > > Yes, pretty much faster for non-full disks, even compared to paralell > dd(1). And we always have the "-L" option to snapshot and dump(1) from > live file systems, what makes it an interesting and completly viable > choice to clone the disks in multiuser mode (no need to go single user). In a prior life, I had to generate a bunch (50 or 60) disk images from a master server image. The server image was updated periodically, so we decided to always go for doing it on the fly, rather than just restoring a known-good dumpfile from some place. (Questionable in hindsight, but...) Anyhow, we were using SCSI disks, so I got a shelf full of scsi disk canisters (since we had standardized on a particular one) and then wrote a zsh script to do the dumping. Zsh has a particular ability to have it duplicate the contents of a single input stream to multiple output streams. So we would fire up one dump on the master disk, and then pipe the output to multiple copies of restore running (one per disk) simultaneously. It was way faster than doing them sequentially. And, impressive to watch the access lights on the drives when you were making seven disk drives copies at once... -Kurt From owner-freebsd-hackers@FreeBSD.ORG Wed Mar 29 22:50:25 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28ACC16A420 for ; Wed, 29 Mar 2006 22:50:25 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id B16B543D46 for ; Wed, 29 Mar 2006 22:50:24 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (mo4aqbhd92dcypx7@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.4/8.13.3) with ESMTP id k2TMoNtJ082337; Wed, 29 Mar 2006 14:50:23 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.4/8.13.3/Submit) id k2TMoMkq082336; Wed, 29 Mar 2006 14:50:22 -0800 (PST) (envelope-from jmg) Date: Wed, 29 Mar 2006 14:50:22 -0800 From: John-Mark Gurney To: Patrick Tracanelli Message-ID: <20060329225022.GW7001@funkthat.com> Mail-Followup-To: Patrick Tracanelli , freebsd-hackers@freebsd.org References: <44296F41.1050209@osoft.us> <4429972C.5030806@freebsdbrasil.com.br> <20060328.210412.18287651.imp@bsdimp.com> <200603291953.56112.doconnor@gsoft.com.au> <442A882B.8000207@freebsdbrasil.com.br> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <442A882B.8000207@freebsdbrasil.com.br> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 22:50:25 -0000 Patrick Tracanelli wrote this message on Wed, Mar 29, 2006 at 10:14 -0300: > Daniel O'Connor wrote: > >On Wednesday 29 March 2006 14:34, M. Warner Losh wrote: > > > >>dump + restore is slow but reliabe. > > > > > >Faster than dd for disks that aren't full :) > > > >It also gives you a defrag as well as allowing you to change FS options. > > Yes, pretty much faster for non-full disks, even compared to paralell > dd(1). And we always have the "-L" option to snapshot and dump(1) from > live file systems, what makes it an interesting and completly viable > choice to clone the disks in multiuser mode (no need to go single user). > > It is my choice to copy a disk into one other. It is even possible to > copy a disk to a slower one (again, if the source is not full and if the > dst disk have enough space to store all data currently in use in the > source disk), and better (customizable new partitions) results when > copying to a larger second disk, when compared to dd(1). Though if you are using extended attributes, the dump/restore pair won't transfer them... :( -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 30 00:36:29 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4CB216A401; Thu, 30 Mar 2006 00:36:29 +0000 (UTC) (envelope-from so14k@so14k.com) Received: from ender.liquidneon.com (ender.liquidneon.com [64.78.150.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C6B443D4C; Thu, 30 Mar 2006 00:36:29 +0000 (GMT) (envelope-from so14k@so14k.com) Received: from localhost (localhost [127.0.0.1]) by ender.liquidneon.com (Postfix) with ESMTP id BBB022E02A; Wed, 29 Mar 2006 17:36:28 -0700 (MST) Received: from ender.liquidneon.com ([127.0.0.1]) by localhost (ender.liquidneon.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00158-03; Wed, 29 Mar 2006 17:36:28 -0700 (MST) Received: by ender.liquidneon.com (Postfix, from userid 1000) id 44CEA2E025; Wed, 29 Mar 2006 17:36:28 -0700 (MST) Date: Wed, 29 Mar 2006 17:36:28 -0700 From: Brad Davis To: hackers@freebsd.org Message-ID: <20060330003628.GA81305@ender.liquidneon.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at ender.liquidneon.com Cc: stable@freebsd.org, current@freebsd.org Subject: Call for FreeBSD Status Reports 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, 30 Mar 2006 00:36:30 -0000 Hi All, It is time for the quarterly Status Reports. As always, reports are encouraged for anything that relates to FreeBSD development, documentation, independent projects, or anything else that might be interesting to the community as a whole. Reports should be one to two paragraphs in length. The template for submissions is here: http://www.freebsd.org/news/status/report-sample.xml Submissions should be submitted to monthly at FreeBSD.org by April 7th. Regards, Brad Davis From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 30 01:47:52 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD0C216A401 for ; Thu, 30 Mar 2006 01:47:51 +0000 (UTC) (envelope-from awasthi.ashish@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14F0F43D49 for ; Thu, 30 Mar 2006 01:47:49 +0000 (GMT) (envelope-from awasthi.ashish@gmail.com) Received: by wproxy.gmail.com with SMTP id i24so311621wra for ; Wed, 29 Mar 2006 17:47:49 -0800 (PST) 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:references; b=P92f/kLzsbYw7wW32cW5pPzahp2nUVAqAN7nckUcTGRP72w0+R/6gtOPsS6xxay+ru4nShibM5xx5C0JXBIJB3B7LOQV3zsFKZNoE/XIqFZRS7BwODD+rhVq7i6h411i8fDviprr3bDs93Thstoo7P+msnZAMIJRvePtd47wyo0= Received: by 10.65.176.17 with SMTP id d17mr938361qbp; Wed, 29 Mar 2006 17:47:49 -0800 (PST) Received: by 10.65.252.10 with HTTP; Wed, 29 Mar 2006 17:47:49 -0800 (PST) Message-ID: <5289d17a0603291747yc74f86al2f045efb95f13b6@mail.gmail.com> Date: Wed, 29 Mar 2006 20:47:49 -0500 From: "Ashish Awasthi" To: freebsd-hackers@freebsd.org In-Reply-To: <5289d17a0603291736s2f05bb55m293e2ec32af8a3af@mail.gmail.com> MIME-Version: 1.0 References: <5289d17a0603291735u194807cbu853b438edc80049b@mail.gmail.com> <5289d17a0603291736s2f05bb55m293e2ec32af8a3af@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Packet drops and queue length upon bandwidth limiting in PF 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, 30 Mar 2006 01:47:52 -0000 Hi friends, I am a relative newbie, so please don't flame me if my question doesn't mak= e sense. In a network experiment to determine appropriate length of router buffers, = I am using pfctl on FreeBSD 5.3 to limit the bandwidth to 100 Mbps on a 1 Gig link and limit the queue to 240 packets, and I use iperf for sending out data. Connection is maintained between two routers running FreeBSD 5.3, connected by a 1 Gig link. I monitor on sender the pfctl and iperf statisitcs. As I see the iperf throughput go down from 94 Mbps to 50 Mbps and then rise again in accordance with the classic sawtooth curve of TCP, it is clear tha= t there must have been a packet drop, but "pfctl -s -queue -v -v" at the sender shows 0 losses and 0 drops. Moreover, the queue length as reported never overflows. Even netstat shows 0 retransmissions! I tried this with queue lengths of 50, 100, 240, 10 and 5. Only when queue length is on the order of 5 or 10 do I see packet drops in pfctl report (an= d also retransmissions in the netstat report); however, since I have limited the bandwidth and the outgoing traffic is shaped by this limitation, it is clear that there must be some packet losses in other cases as well. So, I tend to think that some other queueing is occuring apart from the ALTQ, and drops are occuring there. If so, how can I obtain those statistics? Thanks a lot for your help! Ashish From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 30 13:20:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C3DA16A400 for ; Thu, 30 Mar 2006 13:20:26 +0000 (UTC) (envelope-from eksffa@freebsdbrasil.com.br) Received: from capeta.freebsdbrasil.com.br (vrrp.freebsdbrasil.com.br [200.210.70.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 9F5C643D48 for ; Thu, 30 Mar 2006 13:20:23 +0000 (GMT) (envelope-from eksffa@freebsdbrasil.com.br) Received: (qmail 45045 invoked by uid 0); 30 Mar 2006 10:20:24 -0300 Received: from eksffa@freebsdbrasil.com.br by capeta.freebsdbrasil.com.br by uid 82 with qmail-scanner-1.22 (spamassassin: 2.64. Clear:RC:1(201.17.152.115):. Processed in 0.506868 secs); 30 Mar 2006 13:20:24 -0000 Received: from unknown (HELO ?10.69.69.69?) (201.17.152.115) by capeta.freebsdbrasil.com.br with SMTP; 30 Mar 2006 10:20:23 -0300 Message-ID: <442BDB11.70602@freebsdbrasil.com.br> Date: Thu, 30 Mar 2006 10:20:17 -0300 From: Patrick Tracanelli Organization: FreeBSD Brasil LTDA User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20051013 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John-Mark Gurney References: <44296F41.1050209@osoft.us> <4429972C.5030806@freebsdbrasil.com.br> <20060328.210412.18287651.imp@bsdimp.com> <200603291953.56112.doconnor@gsoft.com.au> <442A882B.8000207@freebsdbrasil.com.br> <20060329225022.GW7001@funkthat.com> In-Reply-To: <20060329225022.GW7001@funkthat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: cloning a FreeBSD HDD 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, 30 Mar 2006 13:20:26 -0000 John-Mark Gurney wrote: > Patrick Tracanelli wrote this message on Wed, Mar 29, 2006 at 10:14 -0300: > >>Daniel O'Connor wrote: >> >>>On Wednesday 29 March 2006 14:34, M. Warner Losh wrote: >>> >>> >>>>dump + restore is slow but reliabe. >>> >>> >>>Faster than dd for disks that aren't full :) >>> >>>It also gives you a defrag as well as allowing you to change FS options. >> >>Yes, pretty much faster for non-full disks, even compared to paralell >>dd(1). And we always have the "-L" option to snapshot and dump(1) from >>live file systems, what makes it an interesting and completly viable >>choice to clone the disks in multiuser mode (no need to go single user). >> >>It is my choice to copy a disk into one other. It is even possible to >>copy a disk to a slower one (again, if the source is not full and if the >>dst disk have enough space to store all data currently in use in the >>source disk), and better (customizable new partitions) results when >>copying to a larger second disk, when compared to dd(1). > > > Though if you are using extended attributes, the dump/restore pair won't > transfer them... :( > You are right, I am afraid it is true for ACLs and other MAC modules too. Sadly dump does not know about 'em (yet?). So it is really something to consider when backin' up full disks with the dump|restore pair, if the person use more sophisticated FS attributes. -- Patrick Tracanelli FreeBSD Brasil LTDA. (31) 3281-9633 / 3281-3547 316601@sip.freebsdbrasil.com.br http://www.freebsdbrasil.com.br "Long live Hanin Elias, Kim Deal!" From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 30 20:20:55 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F42C16A400; Thu, 30 Mar 2006 20:20:55 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D43B643D49; Thu, 30 Mar 2006 20:20:54 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd5mr6so.prod.shaw.ca (pd5mr6so-qfe3.prod.shaw.ca [10.0.141.182]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWY00D62J6UCWC0@l-daemon>; Thu, 30 Mar 2006 13:20:54 -0700 (MST) Received: from pn2ml3so.prod.shaw.ca ([10.0.121.147]) by pd5mr6so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWY003R8J6UJR00@pd5mr6so.prod.shaw.ca>; Thu, 30 Mar 2006 13:20:54 -0700 (MST) Received: from [192.168.0.60] ([24.82.18.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IWY006QCJ6TJY80@l-daemon>; Thu, 30 Mar 2006 13:20:54 -0700 (MST) Date: Thu, 30 Mar 2006 12:20:53 -0800 From: Colin Percival To: freebsd-hackers@freebsd.org, freebsd-security@freebsd.org Message-id: <442C3DA5.9010901@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 User-Agent: Thunderbird 1.5 (X11/20060112) Cc: Subject: Fundraising for FreeBSD security development 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, 30 Mar 2006 20:20:55 -0000 Dear FreeBSD users, Slightly more than three years ago, I released FreeBSD Update, my first major contribution to FreeBSD. Since then, I have become a FreeBSD committer, joined the FreeBSD Security Team, released Portsnap, and become the FreeBSD Security Officer. However, as I have gone from being a graduate student at Oxford University -- busy writing my thesis -- to a researcher at Simon Fraser University -- busy doing research and writing papers -- my "to do" list of FreeBSD-related work has continued growing, and I have now come to realize that some of the items on that list will probably never be finished until I get a chance to work full-time on FreeBSD. This is where you come in. I'm hoping to raise $15,000 Canadian (about US$13,000) to pay me to work full-time on FreeBSD for 16 weeks over the summer. This will allow me to devote more time to my role as FreeBSD Security Officer, perform a complete overhaul of FreeBSD Update, and make some significant improvements to Portsnap. Based on my estimates of the number of systems currently using Portsnap and FreeBSD Update (about 8500 and 4500 respectively based on my server logs) this works out to one US dollar per computer (or two dollars for systems using both Portsnap and FreeBSD Update); I don't think this is an unreasonable amount to ask for even if I only receive donations from people who are using Portsnap or FreeBSD Update. That said, if I don't reach my target for donations, I'll get as much work done within the time I have funds for before returning to other paying work (most likely at the university again). Donations can be sent by paypal to cperciva@freebsd.org; if you would prefer to send a cheque (which is probably only worthwhile for cheques in Canadian or US dollars), please contact me by email to obtain my mailing address. In either case, please let me know if you wish to remain anonymous. For more details, see http://people.freebsd.org/~cperciva/funding.html . Colin Percival From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 31 00:12:32 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBE6716A420 for ; Fri, 31 Mar 2006 00:12:32 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2788D43D48 for ; Fri, 31 Mar 2006 00:12:31 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon.PRO.v8.1.3.R) with ESMTP id md50002428994.msg for ; Fri, 31 Mar 2006 01:11:28 +0100 Message-ID: <014c01c65457$a576ebc0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Fri, 31 Mar 2006 01:11:18 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Spam-Processed: multiplay.co.uk, Fri, 31 Mar 2006 01:11:28 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Fri, 31 Mar 2006 01:11:30 +0100 Subject: How to get a driver patch into 6.1? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Mar 2006 00:12:33 -0000 Highpoint have released an updated driver for FreeBSD which fixes a nasty issue with large Seagate drives. What's the best way of ensuring this fixes makes it into 6.1-RELEASE? Source is available here: http://www.highpoint-tech.com/BIOS%20+%20Driver/rr1820a/FreeBSD/rr182x-opensource-bsd-1.14-0321.tgz Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 31 14:48:29 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC72D16A401 for ; Fri, 31 Mar 2006 14:48:29 +0000 (UTC) (envelope-from jandrese@mitre.org) Received: from smtp-bedford.mitre.org (smtpproxy1.mitre.org [192.160.51.76]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3F3B43D45 for ; Fri, 31 Mar 2006 14:48:28 +0000 (GMT) (envelope-from jandrese@mitre.org) Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (8.12.11.20060308/8.11.6) with SMTP id k2VEmR6K020946 for ; Fri, 31 Mar 2006 09:48:27 -0500 Received: from smtp-bedford.mitre.org (localhost.localdomain [127.0.0.1]) by smtp-bedford.mitre.org (Postfix) with ESMTP id 89826BEFB for ; Fri, 31 Mar 2006 09:48:27 -0500 (EST) Received: from imcfe2.MITRE.ORG (imcfe2.mitre.org [129.83.29.4]) by smtp-bedford.mitre.org (8.12.11.20060308/8.12.11) with ESMTP id k2VEmPxW020804; Fri, 31 Mar 2006 09:48:25 -0500 Received: from IMCSRV2.MITRE.ORG ([129.83.20.164]) by imcfe2.MITRE.ORG with Microsoft SMTPSVC(6.0.3790.211); Fri, 31 Mar 2006 09:48:24 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 31 Mar 2006 09:48:22 -0500 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: cloning a FreeBSD HDD Thread-Index: AcZT/UhJPC+nE/tOTTepNWTygci+tQA1Dqcg From: "Andresen, Jason" To: "Patrick Tracanelli" , "John-Mark Gurney" X-OriginalArrivalTime: 31 Mar 2006 14:48:24.0571 (UTC) FILETIME=[29AD0CB0:01C654D2] Cc: freebsd-hackers@freebsd.org Subject: RE: cloning a FreeBSD HDD 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, 31 Mar 2006 14:48:29 -0000 One further thing you might want to consider is a project out of the University of Utah called Emulab. I've been using the free client on there to dump and restore disks for a couple of years now. The advantage over dump/restore and especially dd is that it's _fast_. On my systems here I can get a GB or two per minute (admittedly over Gigabit ethernet). =20 Also, it's designed to work over the network, making it easy to store your filesystem dumps on a central repository. =20 http://www.emulab.net/ From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 31 15:05:38 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E359E16A401 for ; Fri, 31 Mar 2006 15:05:38 +0000 (UTC) (envelope-from molter@tin.it) Received: from vsmtp4.tin.it (vsmtp4.tin.it [212.216.176.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7060543D48 for ; Fri, 31 Mar 2006 15:05:38 +0000 (GMT) (envelope-from molter@tin.it) Received: from tortellino.codalunga (82.122.102.41) by vsmtp4.tin.it (7.2.072.1) (authenticated as molter@tin.it) id 442AA1E6001E1B7C; Fri, 31 Mar 2006 17:06:37 +0200 Received: by tortellino.codalunga (Postfix, from userid 1001) id 81C1F816F; Fri, 31 Mar 2006 16:09:04 +0200 (CEST) Date: Fri, 31 Mar 2006 16:09:04 +0200 From: Marco Molteni To: Marko Lerota Message-Id: <20060331160904.51992998.molter@tin.it> In-Reply-To: <86bqvm3e9m.fsf@redcloud.local> References: <442C3DA5.9010901@freebsd.org> <86fyky3g5i.fsf@redcloud.local> <442D2FC7.9050105@iang.org> <86bqvm3e9m.fsf@redcloud.local> X-Mailer: Sylpheed version 1.0.6 (GTK+ 1.2.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: methods of payment (was: Fundraising for FreeBSD security development) 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, 31 Mar 2006 15:05:39 -0000 On Fri, 31 Mar 2006 16:00:37 +0200 Marko Lerota wrote: > OK, thanks. But it's not only the Colin issue. The FreeBSD project > also can't be sponsored from here. what about good old postal money orders? Or maybe wester union ? marco From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 31 17:02:59 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6ECA716A420 for ; Fri, 31 Mar 2006 17:02:59 +0000 (UTC) (envelope-from vladgalu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2BF843D4C for ; Fri, 31 Mar 2006 17:02:58 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by zproxy.gmail.com with SMTP id l8so869448nzf for ; Fri, 31 Mar 2006 09:02:58 -0800 (PST) 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=oYlr/CoEklQQe+lgqBE4gNnaQca4V4zX4q2NBiDF2HolLBGgv37kRho03K8ZuUHK9PQtOabBAr34G+qQen7iZRntsLYYow31g+rJqW9M0mQX45Ptvr+sga9MvBzpK0ijgrmtkrccEumsVW2CRXUZeClLQUDgsZW4qxKpWtlpKT0= Received: by 10.35.97.17 with SMTP id z17mr389815pyl; Fri, 31 Mar 2006 09:02:52 -0800 (PST) Received: by 10.35.38.9 with HTTP; Fri, 31 Mar 2006 09:02:52 -0800 (PST) Message-ID: <79722fad0603310902p1a9c874eu4843d92a2ba4f2ab@mail.gmail.com> Date: Fri, 31 Mar 2006 20:02:52 +0300 From: "Vlad GALU" To: "freebsd hackers" In-Reply-To: <86bqvm3e9m.fsf@redcloud.local> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <442C3DA5.9010901@freebsd.org> <86fyky3g5i.fsf@redcloud.local> <442D2FC7.9050105@iang.org> <86bqvm3e9m.fsf@redcloud.local> Subject: Re: Fundraising for FreeBSD security development 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, 31 Mar 2006 17:02:59 -0000 On 3/31/06, Marko Lerota wrote: > Ian G writes: > > > In terms of cross-border payments, this is always > > difficult. You might want to look at one of the > > cross-border specialists like Kagi.com or > > moneybookers.com or the digital gold currencies. > > OK, thanks. But it's not only the Colin issue. The FreeBSD project > also can't be sponsored from here. Bank orders should be just fine, assuming Colin tells us his IBAN account number and SWIFT code. > > -- > One cannot sell the earth upon which the people walk > Tacunka Witco > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.or= g" > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. From owner-freebsd-hackers@FreeBSD.ORG Fri Mar 31 20:03:59 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27D8316A401 for ; Fri, 31 Mar 2006 20:03:59 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE82F43D4C for ; Fri, 31 Mar 2006 20:03:58 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mr1so.prod.shaw.ca (pd3mr1so-qfe3.prod.shaw.ca [10.0.141.177]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IX0006M1D2MB6E0@l-daemon> for freebsd-hackers@freebsd.org; Fri, 31 Mar 2006 13:03:58 -0700 (MST) Received: from pn2ml10so.prod.shaw.ca ([10.0.121.80]) by pd3mr1so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IX000K8PD2MA9O0@pd3mr1so.prod.shaw.ca> for freebsd-hackers@freebsd.org; Fri, 31 Mar 2006 13:03:58 -0700 (MST) Received: from [192.168.0.60] ([24.82.18.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IX0006VYD2LLPE0@l-daemon> for freebsd-hackers@freebsd.org; Fri, 31 Mar 2006 13:03:58 -0700 (MST) Date: Fri, 31 Mar 2006 12:03:57 -0800 From: Colin Percival In-reply-to: <79722fad0603310902p1a9c874eu4843d92a2ba4f2ab@mail.gmail.com> To: Vlad GALU Message-id: <442D8B2D.4070708@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 References: <442C3DA5.9010901@freebsd.org> <86fyky3g5i.fsf@redcloud.local> <442D2FC7.9050105@iang.org> <86bqvm3e9m.fsf@redcloud.local> <79722fad0603310902p1a9c874eu4843d92a2ba4f2ab@mail.gmail.com> User-Agent: Thunderbird 1.5 (X11/20060112) Cc: freebsd hackers Subject: Re: Fundraising for FreeBSD security development 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, 31 Mar 2006 20:03:59 -0000 Vlad GALU wrote: > Bank orders should be just fine, assuming Colin tells us his IBAN > account number and SWIFT code. I wish I could. Sadly, while Canadian banks are very good at handling payments to/from the US, they aren't very good at handling payments from outside of North America. When I asked about this I got the impression that such payment mechanisms were only available to business customers (i.e., those paying large fees for the privilege). Colin Percival From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 01:28:58 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6034716A400 for ; Sat, 1 Apr 2006 01:28:58 +0000 (UTC) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id C3FEC43D45 for ; Sat, 1 Apr 2006 01:28:57 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon.PRO.v8.1.3.R) with ESMTP id md50002431905.msg for ; Sat, 01 Apr 2006 02:27:50 +0100 Message-ID: <023e01c6552b$7ea75cd0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Sat, 1 Apr 2006 02:27:46 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Spam-Processed: multiplay.co.uk, Sat, 01 Apr 2006 02:27:51 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Sat, 01 Apr 2006 02:27:52 +0100 Subject: BTX Halted on intel se7500wv2 + highpoint 1820a 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, 01 Apr 2006 01:28:58 -0000 The install of 6.1-BETA4 goes fine but after rebooting to the disk I get: FreeBSD/i385 bootstrap loader, Revision 1.1 (root@wv1u.samsco.home, Tue Mar 14 94:42:47 UTC 2006) Loading /boot/defaults/loader.conf /boot/kernel/kernel text=0x4a49b4 \ int=0000000d err=00000013 efi=00010002 eip=0009f894 eaz=000000a1 ebx=0009c32e ecx=00000000 edx=00030206 esi=fe881d64 edi=0009c348 ebp=000017b4 esp=000017ac cs=0008 ds=9919 es=0010 fs=0000 gs=0000 ss=0010 cs:eip=eb 05 d1 e9 f3 66 a5 5f-5e 55 c7 45 1c 00 00 00 e2 fe 89 55 39 2b f7 89-75 28 61 83 c4 99 cf 61 ss:exp=00 00 0c 00 f1 85 0c 00-44 c3 09 00 60 1d 88 fe 50 03 00 00 d4 17 00 00-04 00 00 00 09 00 00 00 BTX halted Any ideas? Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 07:09:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A71316A400 for ; Sat, 1 Apr 2006 07:09:36 +0000 (UTC) (envelope-from vladgalu@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1531443D49 for ; Sat, 1 Apr 2006 07:09:35 +0000 (GMT) (envelope-from vladgalu@gmail.com) Received: by zproxy.gmail.com with SMTP id l8so1044876nzf for ; Fri, 31 Mar 2006 23:09:35 -0800 (PST) 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=rQJUpP4PpxxPpOJcl1Yw8KEs80PwvTsnYN+4SIxn4uEjLjq/mbZ+RGbgza4RVRPb898AOY9lTmVlCdO1c7lMfugzB9fvIgFWiaqy0u4ovpFgVZk7uUmoB3iX3L7sB0wWPRGi1/o2XqQp3szEmOgbGAo0rQNSsFkwT7zd+ZkOKE8= Received: by 10.35.9.2 with SMTP id m2mr1246420pyi; Fri, 31 Mar 2006 23:09:35 -0800 (PST) Received: by 10.35.38.9 with HTTP; Fri, 31 Mar 2006 23:09:35 -0800 (PST) Message-ID: <79722fad0603312309x7da6ce7dvc1c8c8a644d64538@mail.gmail.com> Date: Sat, 1 Apr 2006 10:09:35 +0300 From: "Vlad GALU" To: "freebsd hackers" In-Reply-To: <442D8B2D.4070708@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <442C3DA5.9010901@freebsd.org> <86fyky3g5i.fsf@redcloud.local> <442D2FC7.9050105@iang.org> <86bqvm3e9m.fsf@redcloud.local> <79722fad0603310902p1a9c874eu4843d92a2ba4f2ab@mail.gmail.com> <442D8B2D.4070708@freebsd.org> Subject: Re: Fundraising for FreeBSD security development 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, 01 Apr 2006 07:09:36 -0000 On 3/31/06, Colin Percival wrote: > Vlad GALU wrote: > > Bank orders should be just fine, assuming Colin tells us his IBAN > > account number and SWIFT code. > > I wish I could. Sadly, while Canadian banks are very good at handling > payments to/from the US, they aren't very good at handling payments from > outside of North America. When I asked about this I got the impression > that such payment mechanisms were only available to business customers > (i.e., those paying large fees for the privilege). > If I were to follow Marko's statement, I also live in a 3rd world country, which is Romania. Over here these services are available to absolutely everybody, no matter whether they have a credit or debit card. I've been using them for quite some time to transfer money in and out, without a single problem, be the transfers local or international. It's true that sometimes the managing fees were not exactly friendly (depends on each bank), but it was overall a lot less expensive than Western Union. I'm not familiar with the North American banking practices at all, but it might not hurt to push them a little ;) > Colin Percival > -- If it's there, and you can see it, it's real. If it's not there, and you can see it, it's virtual. If it's there, and you can't see it, it's transparent. If it's not there, and you can't see it, you erased it. From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 14:51:22 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B9B316A420 for ; Sat, 1 Apr 2006 14:51:22 +0000 (UTC) (envelope-from V.Haisman@sh.cvut.cz) Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id EFBAD43D45 for ; Sat, 1 Apr 2006 14:51:20 +0000 (GMT) (envelope-from V.Haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id C33481A32E2; Sat, 1 Apr 2006 16:51:18 +0200 (CEST) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12382-02; Sat, 1 Apr 2006 16:51:14 +0200 (CEST) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service.sh.cvut.cz (Postfix) with ESMTP id 9479E1A32F7; Sat, 1 Apr 2006 16:51:14 +0200 (CEST) Received: from [192.168.1.2] (localhost [127.0.0.1]) by logout.sh.cvut.cz (Postfix) with ESMTP id 5DCFD61C45; Sat, 1 Apr 2006 16:51:14 +0200 (CEST) Message-ID: <442E9354.5010700@sh.cvut.cz> Date: Sat, 01 Apr 2006 16:51:00 +0200 From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.94.0.0 OpenPGP: id=733031B4 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUnMzWJm5S+0864pn5r blp/hnW2up7X7uqftbNRVUrW1LGBdGfHwJqPi3ScoYtBQzhDxGEwAAAAB3RJTUUH1QoQDDgyQtx8 HQAAAkNJREFUeJzFU0toU0EUPYu66CpGdCUUmoUJkpUDQUoNBVEUrBJsq1Ki2EIKIUZ8mydBhYi0 wVUXJVCLCrFN4DIEQdxIqdBIFsMkWD9YJClCRGKjJaviynjfe8RPogtXPcObuXPOPXd+PHj+Aeyo QNmobGLXVeANGM+GsP0B2yqHHNVoCD2LwLglVGZx7yXSlADR0uZu9C4Bpy3hUxPvH/cuUw6UoPCL h64I8KAJuMpwRU8uUMJy0OIpHVeXmulZoCc/t0LlTbJLEY1EudPRcnVjgAP5Osdl4K5HVP4+2bAI okaUA0Iq6Q59+Zy2eMWN6EpFTsa3+uD1+JKj4TPHuYTSMaLScLAaqk94YJqG4ds30hojOVgYoNJc NTztNU2TBYbhu9Aafnq08ORja37da1NwBrN/b7NVEc+b8yecuYkp08vNvLYneVZRaSH1vS0UnfHm OUPzWaZufHPmCWSdWrfeGVQQKmcsO4If8pAdXJ/xF4QQAeOVY1AQQcfirwkLUWeWVTgi6vaGt2xe BGzBEIMQorru8RxgPqY1V6uxYnwVBRZEI1ytCm3dE8mC2DgcbzCJGHdBEVDKuWDSwsrSGoqzJmNt 2jJpNueIH0qS8/0JrDKnVBdvOzIsdVr4zaX9dn9xcLLKdCtQGfutVacLE9Ja+yfbDvO4aMWrklfK /JYv15C8Kw9S10kup5Bys0N1bLdcn4HvTl/Xlh6Fpllwj5/XpH9BUXn/ym0Dvv7Rt2MywojpYiSi i7Hsscaa19zZ//y/hR+BT/ns80nmJAAAAABJRU5ErkJggg== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD19178C198EE9223A95AABFE" X-Virus-Scanned: by amavisd-new at sh.cvut.cz X-Spam-Status: No, hits=-5.9 tagged_above=-255.0 required=5.0 tests=ALL_TRUSTED, BAYES_00 X-Spam-Level: Cc: Subject: kqueue oddity 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, 01 Apr 2006 14:51:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD19178C198EE9223A95AABFE Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, I have a little problem with kqueue/kevent. I am getting somewhat strange events from kevent(). The struct kevent's contents looks like thi= s: kevent {.ident =3D 1, .filter =3D 0xfffffffe, .flags =3D 0x0001, .fflags= =3D 0x00000000, .data =3D 0x000084c6} =2Eident =3D=3D 1 is stdout. =2Efilter =3D=3D 0x fffffffe is -2 is EVFILT_WRITE which makes sense for = stdout. =2Efflags is empty, nothing out of ordinary for EVFILT_WRITE. And here comes the oddity: .flags =3D=3D 0x0001 means EV_ADD which totall= y doesn't make sense to me and neither does according to man kqueue. The code that exhibits this behaviour is io_loop_handler_run() in ioloop-kqueue.c of Dovecot IMAP server. I have re-read the docs more than once but I haven't noticed any sign of that EV_ADD could be set for EVFILT_WRITE filter when I am receiving the events through kevent() funtion. I am out of ideas what to do with it. So I am asking all you hackers for any ideas of what might be going wrong. Is it the code in Dovecot or is it FreeBSD that is doing something wrong? Vaclav Haisman --------------enigD19178C198EE9223A95AABFE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRC6TXG56zbtzMDG0AQLZFggApzkUJQlBQkHQUyEhBWwDOfnAO23SI1Pd cXMWY9uBfyW02Ni+mV1YTRST7fTJtIC1j9rfhL2aRBezW93Q6zU0ZBOxc6UEC/bT aBoAPHBvPWeng6gRUOb2orgauxp4EJididcewpBjT+rWIK5mx4/8fzYJz3xOXrQF 32zHSqDMIFQYNo7gcry8U2/xlDF5E5R8cWyKqfG/yHsgPUPm+CYtWE8Wn5hRZRMh G2rqiqcr/AyHpQL+0MepBJGlukecqSelphIm5+HulOnUeWn5EDG2/38A0HQTksPD oMg5jsQnkVU1q+4mLFrDqbIzVFMOcmt7H6zQTEUpDi98jAu28xWBlg== =qpHI -----END PGP SIGNATURE----- --------------enigD19178C198EE9223A95AABFE-- From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 16:18:09 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0F1C16A420 for ; Sat, 1 Apr 2006 16:18:09 +0000 (UTC) (envelope-from Cy.Schubert@komquats.com) Received: from spqr.komquats.com (S0106002078125c0c.gv.shawcable.net [24.108.150.239]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0331243D49 for ; Sat, 1 Apr 2006 16:18:08 +0000 (GMT) (envelope-from Cy.Schubert@komquats.com) Received: from cwsys.cwsent.com (cwsys [10.1.1.1]) by spqr.komquats.com (Postfix) with ESMTP id 1E3654C5C7 for ; Sat, 1 Apr 2006 08:18:08 -0800 (PST) Received: from cwsys (localhost [127.0.0.1]) by cwsys.cwsent.com (8.13.4/8.13.4) with ESMTP id k31GI7PF076963 for ; Sat, 1 Apr 2006 08:18:07 -0800 (PST) (envelope-from Cy.Schubert@komquats.com) Message-Id: <200604011618.k31GI7PF076963@cwsys.cwsent.com> X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.komquats.com/ To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 01 Apr 2006 08:18:07 -0800 Sender: Cy.Schubert@komquats.com Subject: 2007 Zoneinfo X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Cy Schubert List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 16:18:09 -0000 I think we should start thinking about the Daylight Saving Time changes due in 2007. I'm not sure which locales will adopt the changes and which will not adopt the changes. -- Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5231 Team Leader, Solaris Team Email: Cy.Schubert@osg.gov.bc.ca Open Systems Group, CITS Ministry of Labour and Citizens' Services Province of BC FreeBSD UNIX: cy@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 18:03:12 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D096E16A424 for ; Sat, 1 Apr 2006 18:03:12 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48D9C43D5D for ; Sat, 1 Apr 2006 18:03:12 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k31I3Bp2041675; Sat, 1 Apr 2006 12:03:11 -0600 (CST) (envelope-from dan) Date: Sat, 1 Apr 2006 12:03:11 -0600 From: Dan Nelson To: =?utf-8?Q?V=C3=A1clav?= Haisman Message-ID: <20060401180311.GA83967@dan.emsphone.com> References: <442E9354.5010700@sh.cvut.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <442E9354.5010700@sh.cvut.cz> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: hackers@freebsd.org Subject: Re: kqueue oddity 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, 01 Apr 2006 18:03:12 -0000 In the last episode (Apr 01), Vclav Haisman said: > Hi, > I have a little problem with kqueue/kevent. I am getting somewhat > strange events from kevent(). The struct kevent's contents looks like this: > > kevent {.ident = 1, .filter = 0xfffffffe, .flags = 0x0001, > .fflags = 0x00000000, .data = 0x000084c6} > > .ident == 1 is stdout. > .filter == 0x fffffffe is -2 is EVFILT_WRITE which makes sense for stdout. > .fflags is empty, nothing out of ordinary for EVFILT_WRITE. > And here comes the oddity: .flags == 0x0001 means EV_ADD which totally > doesn't make sense to me and neither does according to man kqueue. The > code that exhibits this behaviour is io_loop_handler_run() in > ioloop-kqueue.c of Dovecot IMAP server. It's a kqueue bug, but a minor one. The problem is that the same "flags" field is used to pass "actions" from the client, and return status from the kernel. When you call kqueue with EV_ADD, the kernel never clears the flags when creating the internal object, so it's always visible when events fire. This can get annoying when trussing kqueue-using programs because very single event has the EV_ADD flag :) Apply the following diff to have the kernel strip EV_ADD: Index: kern_event.c =================================================================== RCS file: /home/ncvs/src/sys/kern/kern_event.c,v retrieving revision 1.79.2.9 diff -u -p -r1.79.2.9 kern_event.c --- kern_event.c 29 Jun 2005 18:08:31 -0000 1.79.2.9 +++ kern_event.c 7 Jul 2005 18:51:29 -0000 @@ -864,6 +864,7 @@ findkn: kev->fflags = 0; kev->data = 0; kn->kn_kevent = *kev; + kn->kn_kevent.flags &= ~EV_ADD; kn->kn_status = KN_INFLUX|KN_DETACHED; error = knote_attach(kn, kq); -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 18:35:36 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C9D6716A420 for ; Sat, 1 Apr 2006 18:35:36 +0000 (UTC) (envelope-from V.Haisman@sh.cvut.cz) Received: from service.sh.cvut.cz (service.sh.cvut.cz [147.32.127.214]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39DD143D53 for ; Sat, 1 Apr 2006 18:35:33 +0000 (GMT) (envelope-from V.Haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service.sh.cvut.cz (Postfix) with ESMTP id 6167B1A330B; Sat, 1 Apr 2006 20:35:32 +0200 (CEST) Received: from service.sh.cvut.cz ([127.0.0.1]) by localhost (service [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15298-10; Sat, 1 Apr 2006 20:35:27 +0200 (CEST) Received: from logout.sh.cvut.cz (logout.sh.cvut.cz [147.32.127.203]) by service.sh.cvut.cz (Postfix) with ESMTP id C0C3B1A3319; Sat, 1 Apr 2006 20:35:25 +0200 (CEST) Received: from [192.168.1.2] (localhost [127.0.0.1]) by logout.sh.cvut.cz (Postfix) with ESMTP id 7BD1F61C45; Sat, 1 Apr 2006 20:35:25 +0200 (CEST) Message-ID: <442EC7F7.3000608@sh.cvut.cz> Date: Sat, 01 Apr 2006 20:35:35 +0200 From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Dan Nelson References: <442E9354.5010700@sh.cvut.cz> <20060401180311.GA83967@dan.emsphone.com> In-Reply-To: <20060401180311.GA83967@dan.emsphone.com> X-Enigmail-Version: 0.94.0.0 OpenPGP: id=733031B4 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAMFBMVEUnMzWJm5S+0864pn5r blp/hnW2up7X7uqftbNRVUrW1LGBdGfHwJqPi3ScoYtBQzhDxGEwAAAAB3RJTUUH1QoQDDgyQtx8 HQAAAkNJREFUeJzFU0toU0EUPYu66CpGdCUUmoUJkpUDQUoNBVEUrBJsq1Ki2EIKIUZ8mydBhYi0 wVUXJVCLCrFN4DIEQdxIqdBIFsMkWD9YJClCRGKjJaviynjfe8RPogtXPcObuXPOPXd+PHj+Aeyo QNmobGLXVeANGM+GsP0B2yqHHNVoCD2LwLglVGZx7yXSlADR0uZu9C4Bpy3hUxPvH/cuUw6UoPCL h64I8KAJuMpwRU8uUMJy0OIpHVeXmulZoCc/t0LlTbJLEY1EudPRcnVjgAP5Osdl4K5HVP4+2bAI okaUA0Iq6Q59+Zy2eMWN6EpFTsa3+uD1+JKj4TPHuYTSMaLScLAaqk94YJqG4ds30hojOVgYoNJc NTztNU2TBYbhu9Aafnq08ORja37da1NwBrN/b7NVEc+b8yecuYkp08vNvLYneVZRaSH1vS0UnfHm OUPzWaZufHPmCWSdWrfeGVQQKmcsO4If8pAdXJ/xF4QQAeOVY1AQQcfirwkLUWeWVTgi6vaGt2xe BGzBEIMQorru8RxgPqY1V6uxYnwVBRZEI1ytCm3dE8mC2DgcbzCJGHdBEVDKuWDSwsrSGoqzJmNt 2jJpNueIH0qS8/0JrDKnVBdvOzIsdVr4zaX9dn9xcLLKdCtQGfutVacLE9Ja+yfbDvO4aMWrklfK /JYv15C8Kw9S10kup5Bys0N1bLdcn4HvTl/Xlh6Fpllwj5/XpH9BUXn/ym0Dvv7Rt2MywojpYiSi i7Hsscaa19zZ//y/hR+BT/ns80nmJAAAAABJRU5ErkJggg== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig42E91DB545B863081B0E1FE1" X-Virus-Scanned: by amavisd-new at sh.cvut.cz X-Spam-Status: No, hits=-5.9 tagged_above=-255.0 required=5.0 tests=ALL_TRUSTED, BAYES_00 X-Spam-Level: Cc: hackers@freebsd.org Subject: Re: kqueue oddity 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, 01 Apr 2006 18:35:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig42E91DB545B863081B0E1FE1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Dan Nelson wrote: > In the last episode (Apr 01), Vclav Haisman said: >> Hi, >> I have a little problem with kqueue/kevent. I am getting somewhat >> strange events from kevent(). The struct kevent's contents looks like = this: >> >> kevent {.ident =3D 1, .filter =3D 0xfffffffe, .flags =3D 0x0001,=20 >> .fflags =3D 0x00000000, .data =3D 0x000084c6} >> >> .ident =3D=3D 1 is stdout. >> .filter =3D=3D 0x fffffffe is -2 is EVFILT_WRITE which makes sense for= stdout. >> .fflags is empty, nothing out of ordinary for EVFILT_WRITE. >> And here comes the oddity: .flags =3D=3D 0x0001 means EV_ADD which tot= ally >> doesn't make sense to me and neither does according to man kqueue. The= >> code that exhibits this behaviour is io_loop_handler_run() in >> ioloop-kqueue.c of Dovecot IMAP server. >=20 > It's a kqueue bug, but a minor one. The problem is that the same > "flags" field is used to pass "actions" from the client, and return > status from the kernel. When you call kqueue with EV_ADD, the kernel > never clears the flags when creating the internal object, so it's > always visible when events fire. This can get annoying when trussing > kqueue-using programs because very single event has the EV_ADD flag :) > Apply the following diff to have the kernel strip EV_ADD: > =20 > Index: kern_event.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > RCS file: /home/ncvs/src/sys/kern/kern_event.c,v > retrieving revision 1.79.2.9 > diff -u -p -r1.79.2.9 kern_event.c > --- kern_event.c 29 Jun 2005 18:08:31 -0000 1.79.2.9 > +++ kern_event.c 7 Jul 2005 18:51:29 -0000 > @@ -864,6 +864,7 @@ findkn: > kev->fflags =3D 0; > kev->data =3D 0; > kn->kn_kevent =3D *kev; > + kn->kn_kevent.flags &=3D ~EV_ADD;=20 > kn->kn_status =3D KN_INFLUX|KN_DETACHED; > =20 > error =3D knote_attach(kn, kq); >=20 >=20 Thanks. Why isn't this fix applied? From the patch's time stamp it seems like it is known for quite some time now. Vaclav Haisman --------------enig42E91DB545B863081B0E1FE1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRC7H/m56zbtzMDG0AQLoUggAhwf/2GwWw5sU/icVfYzbJdioeAqqlhPj Wmlu11C0ooYi2+bdPxdgTqEZcvVEmT5H9WLnWpQgySY7zv7eCt4KilbD9XwjIc6R LIZeYB3eq8b4dw8EttxiuFDNqR1O8OqOVJyfLEzwTHLf27+dOEB9mhjbaePzeEvR 643fGTjY84IDjPGF/doQ4nsYW9qfoGTRwkegHqeKZPWdpM/dmpZaOAD8s+vwWyxB n3dxQHeREnbF7TnWtUom7QKrclP9fsiq7IJIzdhg6km/ydHotMT3ZeKuJ0xRgnMc K1ORJVSnwCU/MaEOZzo52dBV5FRt48MhXt4csUWLbDbb1kMK2Q+pug== =9Poo -----END PGP SIGNATURE----- --------------enig42E91DB545B863081B0E1FE1-- From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 20:06:46 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC84116A400 for ; Sat, 1 Apr 2006 20:06:46 +0000 (UTC) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (gate.funkthat.com [69.17.45.168]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20DE743D53 for ; Sat, 1 Apr 2006 20:06:45 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (ki9e7ab78prkoqq2@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.4/8.13.3) with ESMTP id k31K6eoF086179; Sat, 1 Apr 2006 12:06:41 -0800 (PST) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.4/8.13.3/Submit) id k31K6dpI086178; Sat, 1 Apr 2006 12:06:39 -0800 (PST) (envelope-from jmg) Date: Sat, 1 Apr 2006 12:06:39 -0800 From: John-Mark Gurney To: =?iso-8859-1?Q?V=E1clav?= Haisman Message-ID: <20060401200639.GD53811@funkthat.com> Mail-Followup-To: =?iso-8859-1?Q?V=E1clav?= Haisman , Dan Nelson , hackers@freebsd.org References: <442E9354.5010700@sh.cvut.cz> <20060401180311.GA83967@dan.emsphone.com> <442EC7F7.3000608@sh.cvut.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <442EC7F7.3000608@sh.cvut.cz> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.4-RELEASE-p6 i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: hackers@freebsd.org, Dan Nelson Subject: Re: kqueue oddity X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Apr 2006 20:06:46 -0000 Vclav Haisman wrote this message on Sat, Apr 01, 2006 at 20:35 +0200: > Dan Nelson wrote: > > In the last episode (Apr 01), Vclav Haisman said: > >> Hi, > >> I have a little problem with kqueue/kevent. I am getting somewhat > >> strange events from kevent(). The struct kevent's contents looks like this: > >> > >> kevent {.ident = 1, .filter = 0xfffffffe, .flags = 0x0001, > >> .fflags = 0x00000000, .data = 0x000084c6} > >> > >> .ident == 1 is stdout. > >> .filter == 0x fffffffe is -2 is EVFILT_WRITE which makes sense for stdout. > >> .fflags is empty, nothing out of ordinary for EVFILT_WRITE. > >> And here comes the oddity: .flags == 0x0001 means EV_ADD which totally > >> doesn't make sense to me and neither does according to man kqueue. The > >> code that exhibits this behaviour is io_loop_handler_run() in > >> ioloop-kqueue.c of Dovecot IMAP server. > > > > It's a kqueue bug, but a minor one. The problem is that the same > > "flags" field is used to pass "actions" from the client, and return > > status from the kernel. When you call kqueue with EV_ADD, the kernel > > never clears the flags when creating the internal object, so it's > > always visible when events fire. This can get annoying when trussing > > kqueue-using programs because very single event has the EV_ADD flag :) > > Apply the following diff to have the kernel strip EV_ADD: > > > > Index: kern_event.c > > =================================================================== > > RCS file: /home/ncvs/src/sys/kern/kern_event.c,v > > retrieving revision 1.79.2.9 > > diff -u -p -r1.79.2.9 kern_event.c > > --- kern_event.c 29 Jun 2005 18:08:31 -0000 1.79.2.9 > > +++ kern_event.c 7 Jul 2005 18:51:29 -0000 > > @@ -864,6 +864,7 @@ findkn: > > kev->fflags = 0; > > kev->data = 0; > > kn->kn_kevent = *kev; > > + kn->kn_kevent.flags &= ~EV_ADD; > > kn->kn_status = KN_INFLUX|KN_DETACHED; > > > > error = knote_attach(kn, kq); > > > > > Thanks. Why isn't this fix applied? From the patch's time stamp it seems > like it is known for quite some time now. Because I was never informed of the patch, so had no clue that it was necessary... I'll commit a similar patch shortly... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 1 21:46:12 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 976EA16A422 for ; Sat, 1 Apr 2006 21:46:12 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail02.syd.optusnet.com.au (mail02.syd.optusnet.com.au [211.29.132.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F71143DCE for ; Sat, 1 Apr 2006 21:45:54 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail02.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k31LjpjW015183 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sun, 2 Apr 2006 07:45:52 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.4/8.13.4) with ESMTP id k31LjpxQ003234; Sun, 2 Apr 2006 07:45:51 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.4/8.13.4/Submit) id k31Ljpxb003233; Sun, 2 Apr 2006 07:45:51 +1000 (EST) (envelope-from peter) Date: Sun, 2 Apr 2006 07:45:50 +1000 From: Peter Jeremy To: Cy Schubert Message-ID: <20060401214550.GE684@turion.vk2pj.dyndns.org> References: <200604011618.k31GI7PF076963@cwsys.cwsent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200604011618.k31GI7PF076963@cwsys.cwsent.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: 2007 Zoneinfo 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, 01 Apr 2006 21:46:12 -0000 On Sat, 2006-Apr-01 08:18:07 -0800, Cy Schubert wrote: >I think we should start thinking about the Daylight Saving Time changes due >in 2007. I'm not sure which locales will adopt the changes and which will >not adopt the changes. Having just been through a timezone rule change and followed the fallout both at work and on various mailing lists, I'd say it doesn't matter how much notice you give, people will wait until the last minute to actually do anything. (And then discover that to make the changes take effect, they need to restart processes but there's a ban on scheduled maintenance so they can't make the change until the change is irrelevant). I presume that (like Australia), each state is responsible for the legislation defining time in that state. In this case, you can't finalise much until the states individually make up their minds whether they are going to follow the changes or not. Depending on the degree of co-operative planning between states, this could even wind up being iterative - where states announce a decision and later change it due to pressure from surrounding states. On the assumption that not all states will follow the new rules, there are two areas that will need work: - At least some of the US timezones will have two active sets of rules (and therefore need two distinct names) - Will the knowledge of which locations use which rules be embedded in FreeBSD or not (ie, do I just select "I'm in Texas" and FreeBSD knows what timezone to select, or is there a choice of "I'm in CST using the old rules" vs "I'm in CST using the new rules"). Since FreeBSD basically imports the timezone files from NIH, this comes down to (probably) following whatever winds up in the imported TZ files. -- Peter Jeremy