From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 05:54: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 D626C16A4DE for ; Sun, 16 Jul 2006 05:54:36 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (h-66-166-149-50.snvacaid.covad.net [66.166.149.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2E7643D49 for ; Sun, 16 Jul 2006 05:54:35 +0000 (GMT) (envelope-from kientzle@freebsd.org) Received: from [10.0.0.221] (p54.kientzle.com [66.166.149.54]) by kientzle.com (8.12.9/8.12.9) with ESMTP id k6G5sYjU005337; Sat, 15 Jul 2006 22:54:35 -0700 (PDT) (envelope-from kientzle@freebsd.org) Message-ID: <44B9D49A.6080401@freebsd.org> Date: Sat, 15 Jul 2006 22:54:34 -0700 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <031501c6a225$27797a00$b3db87d4@multiplay.co.uk> In-Reply-To: <031501c6a225$27797a00$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: BSD tar broken file name parsing 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, 16 Jul 2006 05:54:36 -0000 File a bug and I'll take a look at it. Bonus if you can check this on -CURRENT; I have fixed a bunch of problems in -CURRENT that aren't yet merged into 6.x but I can't remember right now if this is one of them. Ti Steven Hartland wrote: > Just had a really strange one, on a fresh 6.1 install > tar will not extract named files e.g. > tar -xvzPf my.tar.gz /usr/local/etc/apache/httpd.conf > > The above fails to extract the file which quite > clearly exists: > tar -tvzPf my.tar.gz | grep /usr/local/etc/httpd.conf > -rw-r--r-- 0 root wheel 37202 May 6 23:30 > /usr/local/etc/apache/httpd.conf > > Similarly -tvzPf naming the file doesnt find the file. > > Using wild cards finds the file: > tar -tvzPf my.tar.gz '*httpd.conf' > -rw-r--r-- 0 root wheel 37202 May 6 23:30 > /usr/local/etc/apache/httpd.conf > > I suspect its -P processing that is broken. Installing > gtar and using that works fine: > gtar -xvzPf my.tar.gz /usr/local/etc/apache/httpd.conf > /usr/local/etc/apache/httpd.conf > > gtar -tvzPf my.tar.gz /usr/local/etc/apache/httpd.conf > -rw-r--r-- root/wheel 37202 2006-05-06 23:30:58 > /usr/local/etc/apache/httpd.conf > > Steve > > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. and > the person or entity to whom it is addressed. In the event of > misdirection, the recipient is prohibited from using, copying, printing > or otherwise disseminating it or any information contained in it. > In the event of misdirection, illegible or incomplete transmission > please telephone +44 845 868 1337 > or return the E.mail to postmaster@multiplay.co.uk. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 10:57:08 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 5F50916A4DE for ; Sun, 16 Jul 2006 10:57:08 +0000 (UTC) (envelope-from Roland.Dittel@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADB8343D53 for ; Sun, 16 Jul 2006 10:57:07 +0000 (GMT) (envelope-from Roland.Dittel@web.de) Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 69EE5988922; Sun, 16 Jul 2006 12:57:06 +0200 (CEST) Received: from [88.64.224.55] (helo=freebsd.localnet) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.107 #114) id 1G24J7-0004kC-00; Sun, 16 Jul 2006 12:57:06 +0200 Received: from [192.168.99.22] (notebook.localnet [192.168.99.22]) by freebsd.localnet (8.13.6/8.13.1) with ESMTP id k6GAv25p022142; Sun, 16 Jul 2006 12:57:03 +0200 (CEST) (envelope-from Roland.Dittel@web.de) Message-ID: <44BA1B7B.8000305@web.de> Date: Sun, 16 Jul 2006 12:56:59 +0200 From: Roland Dittel User-Agent: Thunderbird 1.5.0.4 (X11/20060617) MIME-Version: 1.0 To: "Simon 'corecode' Schubert" References: <62d3f75eb4400604406fdea341d91e41@web.de> <44B92FD7.90801@fs.ei.tum.de> In-Reply-To: <44B92FD7.90801@fs.ei.tum.de> Content-Type: multipart/mixed; boundary="------------000906080702090603030500" Sender: Roland.Dittel@web.de X-Sender: Roland.Dittel@web.de X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: hackers@freebsd.org Subject: Re: dlsym() on implicit loaded symbols 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, 16 Jul 2006 10:57:08 -0000 This is a multi-part message in MIME format. --------------000906080702090603030500 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Simon 'corecode' Schubert wrote: > Roland Dittel wrote: >> Hi all, >> >> We have a issue with dlsym() on symbols imported by a library that was >> loaded with dlopen(). Our code loads the libssl with dlopen() and then >> do a dlsym() on several symbols. This works for all symbols exported >> by libssl itself but fails for symbols exported by libcrypto. Libssl >> is dynamically linked to libcrypto and should be loaded for libssl. I >> did a truss and the FreeBSD loader loads libcrypto but does not read >> anything from the file pointer. > > could you post a sample code fragment which illustrates the problem you > are seeing? Sure, attached is a simple example that tries to load the symbol CRYPTO_set_id_callback from a libssl handle. The symbol is located in libcrypto and NOT in libssl. Because libssl is dynamically linked to libcrypto I would expect the loader is able to find the symbol, but that's not the case on freebsd. > > cheers > simon > --------------000906080702090603030500-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 12:33:13 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 4D4AB16A4DD for ; Sun, 16 Jul 2006 12:33:13 +0000 (UTC) (envelope-from corecode@fs.ei.tum.de) Received: from stella.fs.ei.tum.de (stella.fs.ei.tum.de [129.187.54.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 96C5443D49 for ; Sun, 16 Jul 2006 12:33:10 +0000 (GMT) (envelope-from corecode@fs.ei.tum.de) Received: from localhost (localhost [127.0.0.1]) by localhost.fs.ei.tum.de (Postfix) with ESMTP id B611C8CE52; Sun, 16 Jul 2006 14:33:08 +0200 (CEST) Received: from stella.fs.ei.tum.de ([127.0.0.1]) by localhost (stella [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 27772-03; Sun, 16 Jul 2006 14:33:07 +0200 (CEST) Received: from [84.155.210.132] (p549BD284.dip.t-dialin.net [84.155.210.132]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by stella.fs.ei.tum.de (Postfix) with ESMTP id 7F1DE8C5EE; Sun, 16 Jul 2006 14:33:07 +0200 (CEST) Message-ID: <44BA31FE.7070200@fs.ei.tum.de> Date: Sun, 16 Jul 2006 14:33:02 +0200 From: Simon 'corecode' Schubert User-Agent: Mail/News 1.5.0.4 (X11/20060619) MIME-Version: 1.0 To: Roland Dittel References: <62d3f75eb4400604406fdea341d91e41@web.de> <44B92FD7.90801@fs.ei.tum.de> <44BA1B7B.8000305@web.de> In-Reply-To: <44BA1B7B.8000305@web.de> X-Enigmail-Version: 0.94.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA86F4B6AFFC8D6C383C08255" X-Virus-Scanned: by amavisd-new at fs.ei.tum.de Cc: hackers@freebsd.org Subject: Re: dlsym() on implicit loaded symbols 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, 16 Jul 2006 12:33:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA86F4B6AFFC8D6C383C08255 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Roland Dittel wrote: >>> We have a issue with dlsym() on symbols imported by a library that=20 >>> was loaded with dlopen(). Our code loads the libssl with dlopen() and= =20 >>> then do a dlsym() on several symbols. This works for all symbols=20 >>> exported by libssl itself but fails for symbols exported by=20 >>> libcrypto. [..] > func =3D dlsym(handle, "CRYPTO_set_id_callback"); you have to use RTLD_DEFAULT instead of handle, but I agree, this is not = in conformance with SUSv3: The dlsym() function shall search for the named symbol in all objects= loaded automatically as a result of loading the object referenced by han= dle (see dlopen()). Load ordering is used in dlsym() operations upon the = global symbol object. The symbol resolution algorithm used shall be depen= dency order as described in dlopen(). The RTLD_DEFAULT and RTLD_NEXT flags are reserved for future use. Note "in all objects loaded automatically". Good catch! cheers simon --=20 Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low =E2=82=AC=E2=82=AC=E2=82=AC NOW!1 +++= Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \ --------------enigA86F4B6AFFC8D6C383C08255 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.3 (DragonFly) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEujICr5S+dk6z85oRArhwAKD2xn+pZ4sAuX1YkdrSFO9YXcnS8wCeMtDj 0RWwEay+/rO+NIo8EQXiux8= =GCni -----END PGP SIGNATURE----- --------------enigA86F4B6AFFC8D6C383C08255-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 13:26:37 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 EC83216A4DE for ; Sun, 16 Jul 2006 13:26:37 +0000 (UTC) (envelope-from Roland.Dittel@web.de) Received: from fmmailgate03.web.de (fmmailgate03.web.de [217.72.192.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F04943D46 for ; Sun, 16 Jul 2006 13:26:37 +0000 (GMT) (envelope-from Roland.Dittel@web.de) Received: from smtp06.web.de (fmsmtp06.dlan.cinetic.de [172.20.5.172]) by fmmailgate03.web.de (Postfix) with ESMTP id 0513B98C832; Sun, 16 Jul 2006 15:26:36 +0200 (CEST) Received: from [88.64.224.55] (helo=freebsd.localnet) by smtp06.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.107 #114) id 1G26dn-0007WW-00; Sun, 16 Jul 2006 15:26:35 +0200 Received: from [192.168.99.21] (apple.localnet [192.168.99.21]) by freebsd.localnet (8.13.6/8.13.1) with ESMTP id k6GDQUao022500; Sun, 16 Jul 2006 15:26:30 +0200 (CEST) (envelope-from Roland.Dittel@web.de) In-Reply-To: <44BA31FE.7070200@fs.ei.tum.de> References: <62d3f75eb4400604406fdea341d91e41@web.de> <44B92FD7.90801@fs.ei.tum.de> <44BA1B7B.8000305@web.de> <44BA31FE.7070200@fs.ei.tum.de> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=WINDOWS-1252; format=flowed Message-Id: Content-Transfer-Encoding: quoted-printable From: Roland Dittel Date: Sun, 16 Jul 2006 15:26:33 +0200 To: "Simon 'corecode' Schubert" X-Mailer: Apple Mail (2.624) Sender: Roland.Dittel@web.de X-Sender: Roland.Dittel@web.de Cc: hackers@freebsd.org Subject: Re: dlsym() on implicit loaded symbols 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, 16 Jul 2006 13:26:38 -0000 Am 16.07.2006 um 14:33 schrieb Simon 'corecode' Schubert: > Roland Dittel wrote: >>>> We have a issue with dlsym() on symbols imported by a library that=20= >>>> was loaded with dlopen(). Our code loads the libssl with dlopen()=20= >>>> and then do a dlsym() on several symbols. This works for all=20 >>>> symbols exported by libssl itself but fails for symbols exported by=20= >>>> libcrypto. > [..] >> func =3D dlsym(handle, "CRYPTO_set_id_callback"); > > you have to use RTLD_DEFAULT instead of handle, but I agree, this is=20= > not in conformance with SUSv3: That's it. Thank you very much. Roland > > The dlsym() function shall search for the named symbol in all=20 > objects loaded automatically as a result of loading the object=20 > referenced by handle (see dlopen()). Load ordering is used in dlsym()=20= > operations upon the global symbol object. The symbol resolution=20 > algorithm used shall be dependency order as described in dlopen(). > > The RTLD_DEFAULT and RTLD_NEXT flags are reserved for future use. > > Note "in all objects loaded automatically". Good catch! > > cheers > simon > > --=20 > Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon = /"\ > Work - Mac +++ space for low =80=80=80 NOW!1 +++ Campaign = \ / > Party Enjoy Relax | http://dragonflybsd.org Against HTML \ > Dude 2c 2 the max ! http://golden-apple.biz Mail + News / = \ > From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 19:51:27 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 7853216A4E1 for ; Sun, 16 Jul 2006 19:51:27 +0000 (UTC) (envelope-from bob@tamara-b.org) Received: from mail1.panix.com (mail1.panix.com [166.84.1.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id C631343D82 for ; Sun, 16 Jul 2006 19:51:19 +0000 (GMT) (envelope-from bob@tamara-b.org) Received: from mailspool3.panix.com (mailspool3.panix.com [166.84.1.78]) by mail1.panix.com (Postfix) with ESMTP id 38B0C58879 for ; Sun, 16 Jul 2006 15:51:19 -0400 (EDT) Received: from [192.168.1.100] (pool-71-247-9-241.nycmny.east.verizon.net [71.247.9.241]) by mailspool3.panix.com (Postfix) with ESMTP id 78F69AF0261 for ; Sun, 16 Jul 2006 15:51:15 -0400 (EDT) Message-ID: <44BA98A9.9040903@tamara-b.org> Date: Sun, 16 Jul 2006 15:51:05 -0400 From: Bob Richards User-Agent: Thunderbird 1.5 (X11/20060628) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: LinkLib Issues In freebsd Lazarus 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, 16 Jul 2006 19:51:27 -0000 Hi Folks: I believe this is a "hacker" issue, at least any possible solution is. I recently moved from Linux to FreeBSD as my primary work environment. My development system of choice is FreePascal. I installed FPC-2.0.2 from the official FreePascal distribution tar ball, and all compiled/installed without a hitch; all my CVS sources compile and run. My next step was to install Lazarus, the FPC IDE, and here is where I have run into troubles. A tar-ball install ran well until Lazarus was being Linked. The errors were: the following libraries were not found by ld: glib12, gdk12, and gtk12. a grep -r in the FPC-2.0.2 source tree revealed the problems, in every case of: packages/extra/ glib, gtk, and gdk the linklib statements were wrong thus: {$ifdef FreeBSD} gtkdll='gtk12'; {$linklib gtk12} So, I created a patch to fix the above constructs to: {$ifdef FreeBSD} gtkdll='gtk-12'; {$linklib gtk-12} For all three libraries; since freebsd names these libraries with a "-" I recompiled and reinstalled FPC-2.0.2 with the patches applied, re-tested the compiler; all OK! I went back to the Lazarus source tree gmake clean; gmake and received the following error: Free Pascal Compiler version 2.0.2 [2006/07/14] for i386 Copyright (c) 1993-2005 by Florian Klaempfl Target OS: FreeBSD/ELF for i386 Compiling lazarus.pp Linking ../lazarus /usr/bin/ld: cannot find -lgdk_pixbuf lazarus.pp(113,1) Error: Error while linking a locate gdk_pixbuf finds: /usr/X11R6/lib/libgdk_pixbuf-2.0 So, at this point I just sym-linked my libgdk_pixbuf-2.0 to libgdk_pixbuf: ln -s libgdk_pixbuf-2.0.a libgdk_pixbuf.a and ran gmake again, only to produce: Linking ../lazarus /usr/home/bob/lazarus/lcl/units/i386-freebsd/gtk/gtkint.o(.text+0x6f65): In function `DATASOURCEINITIALIZE': gtkobject.inc:2309: undefined reference to `gdk_pixbuf_get_from_drawable' Many many more "undefined reference" to something missing in gdk_pixbuf. so: freebsd's stock-installed gdk_pixbuf does not contain the functions needed! So, I went to ports and found "ruby18-gdk_pixbuf2-0.14.1" a make install provided "gdk_pixbuf2.so" but no "gdk_pixbuf2.a" !! I find it odd that no provision is provided to link to this lib! Funny! I moved away from Linux mainly because of Library-Hell issues :-) Any thoughts on this would be greatly appreciated. I seem to have run out of things to try here. Surely someone has successfully compiled Lazarus on freebsd.... Bob From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 20:30:14 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8292016A4DD for ; Sun, 16 Jul 2006 20:30:14 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F38E43D45 for ; Sun, 16 Jul 2006 20:30:14 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.13.7/8.13.7) with ESMTP id k6GKTkhI047911; Sun, 16 Jul 2006 13:29:46 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.7/8.13.7/Submit) id k6GKTk4q047910; Sun, 16 Jul 2006 13:29:46 -0700 (PDT) (envelope-from sgk) Date: Sun, 16 Jul 2006 13:29:46 -0700 From: Steve Kargl To: Bob Richards Message-ID: <20060716202946.GA47862@troutmask.apl.washington.edu> References: <44BA98A9.9040903@tamara-b.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44BA98A9.9040903@tamara-b.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: LinkLib Issues In freebsd Lazarus 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, 16 Jul 2006 20:30:14 -0000 On Sun, Jul 16, 2006 at 03:51:05PM -0400, Bob Richards wrote: > > I recently moved from Linux to FreeBSD as my primary work environment. > My development system of choice is FreePascal. I installed FPC-2.0.2 > from the official FreePascal distribution tar ball, and all > compiled/installed without a hitch; all my CVS sources compile and run. > > My next step was to install Lazarus, the FPC IDE, and here is where I > have run into troubles. > Are you aware of the Ports Collections? See /usr/ports/lang/fpc and /usr/ports/editors/fpc-ide -- Steve From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 22:05:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E89F16A4DA for ; Sun, 16 Jul 2006 22:05:08 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B13E443D58 for ; Sun, 16 Jul 2006 22:05:07 +0000 (GMT) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1G2EjW-000166-Ui for freebsd-hackers@freebsd.org; Mon, 17 Jul 2006 00:05:03 +0200 Received: from cmung1953.cmu.carnet.hr ([193.198.135.175]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jul 2006 00:05:02 +0200 Received: from ivoras by cmung1953.cmu.carnet.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 17 Jul 2006 00:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Mon, 17 Jul 2006 00:01:43 +0200 Lines: 8 Message-ID: References: <44BA98A9.9040903@tamara-b.org> <20060716202946.GA47862@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cmung1953.cmu.carnet.hr User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en In-Reply-To: <20060716202946.GA47862@troutmask.apl.washington.edu> Sender: news Subject: Re: LinkLib Issues In freebsd Lazarus 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, 16 Jul 2006 22:05:08 -0000 > Are you aware of the Ports Collections? > > See /usr/ports/lang/fpc and /usr/ports/editors/fpc-ide Lazarus != "FPC-IDE", despite parent post :) It's inconvenient to use lang/fpc port with Lazarus becuase sometime there's a need to recompile runtime libraries. From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 22:16:44 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 4460516A4DA for ; Sun, 16 Jul 2006 22:16:44 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id F041E43D45 for ; Sun, 16 Jul 2006 22:16:43 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.13.7/8.13.7) with ESMTP id k6GMGCOW048467; Sun, 16 Jul 2006 15:16:12 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.7/8.13.7/Submit) id k6GMGCCa048466; Sun, 16 Jul 2006 15:16:12 -0700 (PDT) (envelope-from sgk) Date: Sun, 16 Jul 2006 15:16:12 -0700 From: Steve Kargl To: Ivan Voras Message-ID: <20060716221612.GA48425@troutmask.apl.washington.edu> References: <44BA98A9.9040903@tamara-b.org> <20060716202946.GA47862@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: LinkLib Issues In freebsd Lazarus 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, 16 Jul 2006 22:16:44 -0000 On Mon, Jul 17, 2006 at 12:01:43AM +0200, Ivan Voras wrote: > >Are you aware of the Ports Collections? > > > >See /usr/ports/lang/fpc and /usr/ports/editors/fpc-ide > > Lazarus != "FPC-IDE", despite parent post :) I realized this. However, the OP had 2 problems. He had problems installing fpc because of library issues. lang/fpc will remove those problem. The 2nd problem was with Lazarus. If he had a working coherent fpc, it may be easier to build Lazarus. He could even submit a port. -- Steve From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 22:35:46 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AC6016A540 for ; Sun, 16 Jul 2006 22:35:46 +0000 (UTC) (envelope-from ederbs.hackers@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 915B143D45 for ; Sun, 16 Jul 2006 22:35:45 +0000 (GMT) (envelope-from ederbs.hackers@gmail.com) Received: by py-out-1112.google.com with SMTP id c59so1282082pyc for ; Sun, 16 Jul 2006 15:35:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=QROMgtq9N2tU7Cbz2dLP05sVvKe9zkpB6mmgPaXBFT5raNoHRutXcBxsTFrDvl3n50L01ujYyLB36Tu3bSMRizv2RX++zANvq95E5YwKqYig6ny5qCMIM+aCsdMKZK6pXt7NgPwi0ITm3WBRuJfXKH3U/ug74f7N+Es9RsLAcRo= Received: by 10.35.109.2 with SMTP id l2mr2996588pym; Sun, 16 Jul 2006 15:35:44 -0700 (PDT) Received: by 10.35.73.1 with HTTP; Sun, 16 Jul 2006 15:35:43 -0700 (PDT) Message-ID: <2699850607161535o22a8fef1g67a3283adef5a5dd@mail.gmail.com> Date: Sun, 16 Jul 2006 19:35:44 -0300 From: Eder To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Error Api OpenLdap 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, 16 Jul 2006 22:35:46 -0000 Hi all, I am having problems to use the API of ldap simply when I compile the code says that the archive does not exist. #include int main(void) { } % cc test.c test.c:2:18: ldap.h: No such file or directory Being that the archive is in include. % cat /usr/local/include/ldap.h Somebody knows what it can be ! Ederson de Moura -- Unix is very simple, but it takes a genius to understand the simplicity. (Dennis Ritchie) From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 22:49: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 E4C7416A4E1 for ; Sun, 16 Jul 2006 22:49:04 +0000 (UTC) (envelope-from bob@tamara-b.org) Received: from mail3.panix.com (mail3.panix.com [166.84.1.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4652543DEB for ; Sun, 16 Jul 2006 22:48:24 +0000 (GMT) (envelope-from bob@tamara-b.org) Received: from mailspool2.panix.com (mailspool2.panix.com [166.84.1.79]) by mail3.panix.com (Postfix) with ESMTP id E5DAF13A7AB for ; Sun, 16 Jul 2006 18:48:15 -0400 (EDT) Received: from [192.168.1.100] (pool-71-247-9-241.nycmny.east.verizon.net [71.247.9.241]) by mailspool2.panix.com (Postfix) with ESMTP id 1539F2350C3 for ; Sun, 16 Jul 2006 18:48:15 -0400 (EDT) Message-ID: <44BAC223.5090308@tamara-b.org> Date: Sun, 16 Jul 2006 18:48:03 -0400 From: Bob Richards User-Agent: Thunderbird 1.5 (X11/20060628) MIME-Version: 1.0 CC: freebsd-hackers@freebsd.org References: <44BA98A9.9040903@tamara-b.org> <20060716202946.GA47862@troutmask.apl.washington.edu> In-Reply-To: <20060716202946.GA47862@troutmask.apl.washington.edu> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: LinkLib Issues In freebsd Lazarus 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, 16 Jul 2006 22:49:05 -0000 Steve Kargl wrote: > > > Are you aware of the Ports Collections? > Yup. > See /usr/ports/lang/fpc and /usr/ports/editors/fpc-ide > > The first is a binary-only install (I need the full sources), the second is the text-mode IDE, not Lazarus. Bob From owner-freebsd-hackers@FreeBSD.ORG Sun Jul 16 22:59: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 4646B16A4E2 for ; Sun, 16 Jul 2006 22:59:19 +0000 (UTC) (envelope-from bob@tamara-b.org) Received: from mail2.panix.com (mail2.panix.com [166.84.1.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 914B143D6E for ; Sun, 16 Jul 2006 22:59:18 +0000 (GMT) (envelope-from bob@tamara-b.org) Received: from mailspool2.panix.com (mailspool2.panix.com [166.84.1.79]) by mail2.panix.com (Postfix) with ESMTP id 01CA09D89A for ; Sun, 16 Jul 2006 18:59:17 -0400 (EDT) Received: from [192.168.1.100] (pool-71-247-9-241.nycmny.east.verizon.net [71.247.9.241]) by mailspool2.panix.com (Postfix) with ESMTP id 502472350C3 for ; Sun, 16 Jul 2006 18:59:18 -0400 (EDT) Message-ID: <44BAC4BC.2070401@tamara-b.org> Date: Sun, 16 Jul 2006 18:59:08 -0400 From: Bob Richards User-Agent: Thunderbird 1.5 (X11/20060628) MIME-Version: 1.0 CC: freebsd-hackers@freebsd.org References: <44BA98A9.9040903@tamara-b.org> <20060716202946.GA47862@troutmask.apl.washington.edu> <20060716221612.GA48425@troutmask.apl.washington.edu> In-Reply-To: <20060716221612.GA48425@troutmask.apl.washington.edu> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: LinkLib Issues In freebsd Lazarus 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, 16 Jul 2006 22:59:19 -0000 Steve Kargl wrote: > > I realized this. However, the OP had 2 problems. > He had problems installing fpc because of library > issues. No, I had a problem compiling Lazarus because of an incorrect library call in FPC. FPC installed/compiled correctly from the freepascal _sources_ (Not available via ports). What's called sources in ports is nothing more than a collection of pre-built binaries and libs. To compile Lazarus, you need FPC-2.0.2 source tree, > lang/fpc will remove those problem. Whether or not the pre-built ports FPC has the proper libs compiled in or not is meaningless, since I need a good source tree. The only way to get one of those on freebsd is to manually patch the freepascal sources. Do you know of a freebsd-patched FPC-2.0.2 source? > 2nd problem was with Lazarus. If he had a working > coherent fpc, it may be easier to build Lazarus. > He could even submit a port. > I will submit a port if I can get Lazarus to compile. What's needed to compile Lazarus is a proper 2.0.2 source tree (binaries won't do), and a Lazarus source tree which properly calls for available/proper freebsd libs. Neither of which exist AFAIK. Bob From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 02:53:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D4F0716A4DF for ; Mon, 17 Jul 2006 02:53:16 +0000 (UTC) (envelope-from mezz7@cox.net) Received: from centrmmtao02.cox.net (centrmmtao02.cox.net [70.168.83.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F4F543D4C for ; Mon, 17 Jul 2006 02:53:16 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([24.255.149.218]) by centrmmtao02.cox.net (InterMail vM.6.01.06.01 201-2131-130-101-20060113) with ESMTP id <20060717025316.CRAU22014.centrmmtao02.cox.net@mezz.mezzweb.com>; Sun, 16 Jul 2006 22:53:16 -0400 Date: Sun, 16 Jul 2006 21:53:34 -0500 To: "Bob Richards" From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: <44BA98A9.9040903@tamara-b.org> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: <44BA98A9.9040903@tamara-b.org> User-Agent: Opera Mail/9.00 (Linux) Cc: freebsd-hackers@freebsd.org Subject: Re: LinkLib Issues In freebsd Lazarus 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, 17 Jul 2006 02:53:16 -0000 On Sun, 16 Jul 2006 14:51:05 -0500, Bob Richards wrote: > I went back to the Lazarus source tree gmake clean; gmake and received > the following error: > > Free Pascal Compiler version 2.0.2 [2006/07/14] for i386 > Copyright (c) 1993-2005 by Florian Klaempfl > Target OS: FreeBSD/ELF for i386 > Compiling lazarus.pp > Linking ../lazarus > /usr/bin/ld: cannot find -lgdk_pixbuf > lazarus.pp(113,1) Error: Error while linking > > a locate gdk_pixbuf finds: /usr/X11R6/lib/libgdk_pixbuf-2.0 > > So, at this point I just sym-linked my libgdk_pixbuf-2.0 to > libgdk_pixbuf: ln -s libgdk_pixbuf-2.0.a libgdk_pixbuf.a > > and ran gmake again, only to produce: > > Linking ../lazarus > /usr/home/bob/lazarus/lcl/units/i386-freebsd/gtk/gtkint.o(.text+0x6f65): > In function `DATASOURCEINITIALIZE': > gtkobject.inc:2309: undefined reference to `gdk_pixbuf_get_from_drawable' > > Many many more "undefined reference" to something missing in gdk_pixbuf. libgdk_pixbuf-2.0 is a GTK2 stuff, not GTK1. If it's GTK1 (libgdk_pixbuf.a) is what you need, install graphics/gdk-pixbuf. The 'ln -s libgdk_pixbuf-2.0.a libgdk_pixbuf.a' is incorrect and will causing more break stuff. > so: freebsd's stock-installed gdk_pixbuf does not contain the functions > needed! So, I went to ports and found "ruby18-gdk_pixbuf2-0.14.1" a make > install provided "gdk_pixbuf2.so" but no "gdk_pixbuf2.a" !! I find it > odd that no provision is provided to link to this lib! It is a Ruby binding, which it is not a gdk_pixbuf library that you are looking for. Cheers, Mezz -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src) http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org http://wiki.freebsd.org/multimedia - multimedia@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 03:04:08 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CD52016A4E0 for ; Mon, 17 Jul 2006 03:04:08 +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 10E4043D46 for ; Mon, 17 Jul 2006 03:04:01 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k6H341QG029193; Sun, 16 Jul 2006 22:04:01 -0500 (CDT) (envelope-from dan) Date: Sun, 16 Jul 2006 22:04:01 -0500 From: Dan Nelson To: Eder Message-ID: <20060717030400.GA81811@dan.emsphone.com> References: <2699850607161535o22a8fef1g67a3283adef5a5dd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2699850607161535o22a8fef1g67a3283adef5a5dd@mail.gmail.com> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: Error Api OpenLdap 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, 17 Jul 2006 03:04:08 -0000 In the last episode (Jul 16), Eder said: > I am having problems to use the API of ldap simply when I compile the > code says that the archive does not exist. > > #include > int main(void) > { > } > > % cc test.c > test.c:2:18: ldap.h: No such file or directory You want "cc -I/usr/local/include test.c", and if you intend on linking to the library, you will also need to add "-L/usr/local/lib -lldap". -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 09:02: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 53AD016A4DA for ; Mon, 17 Jul 2006 09:02:53 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (fw.zoral.com.ua [213.186.206.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 98FE443D45 for ; Mon, 17 Jul 2006 09:02:52 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id k6GI71Nt020502 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 16 Jul 2006 21:07:01 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6) with ESMTP id k6GI71Vb047611; Sun, 16 Jul 2006 21:07:01 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6/Submit) id k6GI70li047497; Sun, 16 Jul 2006 21:07:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sun, 16 Jul 2006 21:07:00 +0300 From: Kostik Belousov To: Roland Dittel Message-ID: <20060716180700.GP32624@deviant.kiev.zoral.com.ua> References: <62d3f75eb4400604406fdea341d91e41@web.de> <44B92FD7.90801@fs.ei.tum.de> <44BA1B7B.8000305@web.de> <44BA31FE.7070200@fs.ei.tum.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="JvUS8mwutKMHKosv" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=0.4 required=5.0 tests=ALL_TRUSTED, DNS_FROM_RFC_ABUSE,SPF_NEUTRAL autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on fw.zoral.com.ua Cc: hackers@freebsd.org, Simon 'corecode' Schubert Subject: Re: dlsym() on implicit loaded symbols 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, 17 Jul 2006 09:02:53 -0000 --JvUS8mwutKMHKosv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 16, 2006 at 03:26:33PM +0200, Roland Dittel wrote: >=20 > Am 16.07.2006 um 14:33 schrieb Simon 'corecode' Schubert: >=20 > >Roland Dittel wrote: > >>>>We have a issue with dlsym() on symbols imported by a library that=20 > >>>>was loaded with dlopen(). Our code loads the libssl with dlopen()=20 > >>>>and then do a dlsym() on several symbols. This works for all=20 > >>>>symbols exported by libssl itself but fails for symbols exported by= =20 > >>>>libcrypto. > >[..] > >> func =3D dlsym(handle, "CRYPTO_set_id_callback"); > > > >you have to use RTLD_DEFAULT instead of handle, but I agree, this is=20 > >not in conformance with SUSv3: >=20 > That's it. Thank you very much. >=20 > Roland >=20 > > > > The dlsym() function shall search for the named symbol in all=20 > >objects loaded automatically as a result of loading the object=20 > >referenced by handle (see dlopen()). Load ordering is used in dlsym()=20 > >operations upon the global symbol object. The symbol resolution=20 > >algorithm used shall be dependency order as described in dlopen(). > > > > The RTLD_DEFAULT and RTLD_NEXT flags are reserved for future use. > > > >Note "in all objects loaded automatically". Good catch! > > Try this (against RELENG_6), patch for CURRENT needs some editing. Index: rtld.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: /usr/local/arch/ncvs/src/libexec/rtld-elf/rtld.c,v retrieving revision 1.106.2.2 diff -u -r1.106.2.2 rtld.c --- rtld.c 30 Dec 2005 22:13:56 -0000 1.106.2.2 +++ rtld.c 16 Jul 2006 18:05:39 -0000 @@ -123,7 +123,7 @@ static const Elf_Sym *symlook_default(const char *, unsigned long hash, const Obj_Entry *refobj, const Obj_Entry **defobj_out, bool in_plt); static const Elf_Sym *symlook_list(const char *, unsigned long, - Objlist *, const Obj_Entry **, bool in_plt, DoneList *); + const Objlist *, const Obj_Entry **, bool in_plt, DoneList *); static void trace_loaded_objects(Obj_Entry *obj); static void unlink_object(Obj_Entry *); static void unload_object(Obj_Entry *); @@ -1805,25 +1805,22 @@ def =3D symlook_default(name, hash, obj, &defobj, true); } } else { + DoneList donelist; + if ((obj =3D dlcheck(handle)) =3D=3D NULL) { rlock_release(rtld_bind_lock, lockstate); return NULL; } =20 + donelist_init(&donelist); if (obj->mainprog) { - DoneList donelist; =20 /* Search main program and all libraries loaded by it. */ - donelist_init(&donelist); def =3D symlook_list(name, hash, &list_main, &defobj, true, &donelist); } else { - /* - * XXX - This isn't correct. The search should include the whole - * DAG rooted at the given object. - */ - def =3D symlook_obj(name, hash, obj, true); - defobj =3D obj; + def =3D symlook_list(name, hash, &(obj->dagmembers), &defobj, true, + &donelist); } } =20 @@ -2274,7 +2271,7 @@ } =20 static const Elf_Sym * -symlook_list(const char *name, unsigned long hash, Objlist *objlist, +symlook_list(const char *name, unsigned long hash, const Objlist *objlist, const Obj_Entry **defobj_out, bool in_plt, DoneList *dlp) { const Elf_Sym *symp; --JvUS8mwutKMHKosv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEuoBDC3+MBN1Mb4gRApgAAKC+IOPo/dHm5SnzfTHYikN2vfXnIQCgn6/f imNm8J4tjJ0MyvLCzeC8bLw= =VGKN -----END PGP SIGNATURE----- --JvUS8mwutKMHKosv-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 06:39:56 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9CC016A4DE for ; Mon, 17 Jul 2006 06:39:56 +0000 (UTC) (envelope-from Benjamin.Close@clearchain.com) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFABF43D46 for ; Mon, 17 Jul 2006 06:39:55 +0000 (GMT) (envelope-from Benjamin.Close@clearchain.com) Received: from mail.clearchain.com (ppp207-105.lns1.adl2.internode.on.net [203.122.207.105]) by smtp1.adl2.internode.on.net (8.13.6/8.13.5) with ESMTP id k6H6drNT080495 for ; Mon, 17 Jul 2006 16:09:54 +0930 (CST) (envelope-from Benjamin.Close@clearchain.com) Received: from [192.168.0.152] (cis220313.levels.unisa.edu.au [130.220.37.202]) (authenticated bits=0) by mail.clearchain.com (8.12.9p2/8.12.9) with ESMTP id k6H6drV5049466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Jul 2006 16:09:55 +0930 (CST) (envelope-from Benjamin.Close@clearchain.com) Message-ID: <44BB31BE.6050505@clearchain.com> Date: Mon, 17 Jul 2006 16:14:14 +0930 From: Benjamin Close User-Agent: Thunderbird 1.5.0.2 (X11/20060523) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on pegasus.clearchain.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (mail.clearchain.com [192.168.155.5]); Mon, 17 Jul 2006 16:09:56 +0930 (CST) X-Mailman-Approved-At: Mon, 17 Jul 2006 11:59:31 +0000 Subject: [RFT]: InFlight Mode Patch 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, 17 Jul 2006 06:39:56 -0000 Hi Folks, After receiving no feedback on -current, figured I'd send this to -hackers... probably should of in the first place. Please CC any comments as I'm not on the hackers list. ------------- Hi All, Whilst looking on the FreeBSD projects page I noticed the 'InFlight' mode project. A patch is available at: http://www.clearchain.com/people/benjsc/download/20060712-inflight_mode.patch.gz Which implements a boot menu item, sysctl tunable (hw.inflight_mode) and prevents all wireless & bluetooth drivers from attaching (probe succeeds still). Testing / comments welcome. Cheers, Benjamin From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 14:22:28 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4E47616A4DF for ; Mon, 17 Jul 2006 14:22:28 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B528143D46 for ; Mon, 17 Jul 2006 14:22:27 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.139] (helo=anti-virus01-10) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1G2TzO-0006wk-IP; Mon, 17 Jul 2006 15:22:26 +0100 Received: from [82.41.34.175] (helo=[192.168.0.2]) by asmtp-out3.blueyonder.co.uk with esmtp (Exim 4.52) id 1G2TzN-0004wo-WC; Mon, 17 Jul 2006 15:22:26 +0100 Message-ID: <44BB9D21.3010400@dial.pipex.com> Date: Mon, 17 Jul 2006 15:22:25 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 14:22:28 -0000 No responses from questions@. Anyone here understand what's going on? Thanks]. __ I was monitoring a machine with "systat -vmstat" and noticed something about the interrupts and I don't know if it's a problem or not. If it is a problem, is there anything I can do about it? The interrupts for the network interface (em0) on irq 64 exactly match those for a uhc device on irq 16. And the interrupts for the hardware raid (amr) on irq 46 exactly match those for a uhc device on irq 18. The machine is a Dell 2850 running 5.4. Relevant bits from the dmesg are: ioapic0: Changing APIC ID to 2 ioapic1: Changing APIC ID to 3 ioapic1: WARNING: intbase 32 != expected base 24 ioapic2: Changing APIC ID to 4 ioapic2: WARNING: intbase 64 != expected base 56 ioapic3: Changing APIC ID to 5 ioapic3: WARNING: intbase 96 != expected base 88 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 32-55 on motherboard ioapic2 irqs 64-87 on motherboard ioapic3 irqs 96-119 on motherboard [...] amr0: mem 0xdfdc0000-0xdfdfffff,0xd80f0000-0xd80fffff irq 46 at device 14.0 on pci2 [...] em0: port 0xecc0-0xecff mem 0xdfae0000-0xdfafffff irq 64 at device 7.0 on pci6 [...] uhci0: port 0xace0-0xacff irq 16 at device 29.0 on pci0 [...] uhci2: port 0xaca0-0xacbf irq 18 at device 29.2 on pci0 [...] Turning off USB isn't an option as it's required for the pseudo-keyboard/mouse used by the DRAC. Here a sample of the interrupt section. The number of interrupts for em0@64/uhc@16 can easily be in the thousands rather than hundreds. Interrupts 1950 total 6: fdc0 128 8: rtc 13: npx 14: ata 450 16: uhc 409 18: uhc 19: uhc 23: ata 409 46: amr 450 64: em0 4 65: em1 106: ah 107: ah Any insight appreciated, --Alex From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 15:29:54 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 53E8516A4E1 for ; Mon, 17 Jul 2006 15:29:54 +0000 (UTC) (envelope-from root@scienceclue.ath.cx) Received: from scienceclue.ath.cx (mic92-1-87-90-12-116.dsl.club-internet.fr [87.90.12.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F81443D45 for ; Mon, 17 Jul 2006 15:29:53 +0000 (GMT) (envelope-from root@scienceclue.ath.cx) Received: from scienceclue.ath.cx (localhost [127.0.0.1]) by scienceclue.ath.cx (8.13.6/8.13.6) with ESMTP id k6HF7HQV099926 for ; Mon, 17 Jul 2006 17:07:17 +0200 (CEST) (envelope-from root@scienceclue.ath.cx) Received: (from root@localhost) by scienceclue.ath.cx (8.13.6/8.13.6/Submit) id k6HF79ZH099925 for freebsd-hackers@freebsd.org; Mon, 17 Jul 2006 17:07:09 +0200 (CEST) (envelope-from root) Date: Mon, 17 Jul 2006 17:07:09 +0200 From: Mathieu Prevot To: freebsd-hackers@freebsd.org Message-ID: <20060717150709.GA99879@scienceclue.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: automatic KSE for multithreaded programs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mathieu Prevot List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 15:29:54 -0000 Hello, the KSE system is complicated. Are there projects or possibilities to split automatically threads into groups given a SMP system in a clever manner ? Mathieu From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 16:07: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 A5E0716A4E0 for ; Mon, 17 Jul 2006 16:07:09 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E41743D49 for ; Mon, 17 Jul 2006 16:07:08 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.7/8.13.7/NETPLEX) with ESMTP id k6HG769b021296; Mon, 17 Jul 2006 12:07:07 -0400 (EDT) Date: Mon, 17 Jul 2006 12:07:06 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Mathieu Prevot In-Reply-To: <20060717150709.GA99879@scienceclue.ath.cx> Message-ID: References: <20060717150709.GA99879@scienceclue.ath.cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-hackers@freebsd.org Subject: Re: automatic KSE for multithreaded programs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 16:07:09 -0000 On Mon, 17 Jul 2006, Mathieu Prevot wrote: > Hello, > > the KSE system is complicated. Are there projects or possibilities to split > automatically threads into groups given a SMP system in a clever manner ? Not yet, that was one of the things on my TODO list and isn't really too difficult to allow depending on how you define "clever" (my definition is to allow the application to decide). -- DE From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 16:25:54 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 8E4D616A4DA for ; Mon, 17 Jul 2006 16:25:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07FEA43D45 for ; Mon, 17 Jul 2006 16:25:53 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6HGPijw038606; Mon, 17 Jul 2006 12:25:46 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 17 Jul 2006 11:27:59 -0400 User-Agent: KMail/1.9.1 References: <44BB9D21.3010400@dial.pipex.com> In-Reply-To: <44BB9D21.3010400@dial.pipex.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607171128.00303.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 17 Jul 2006 12:25:49 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1600/Sat Jul 15 11:03:46 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Alex Zbyslaw Subject: Re: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 16:25:54 -0000 On Monday 17 July 2006 10:22, Alex Zbyslaw wrote: > No responses from questions@. Anyone here understand what's going on? > Thanks]. > __ > I was monitoring a machine with "systat -vmstat" and noticed something > about the interrupts and I don't know if it's a problem or not. If it > is a problem, is there anything I can do about it? > > The interrupts for the network interface (em0) on irq 64 exactly match > those for a uhc device on irq 16. > > And the interrupts for the hardware raid (amr) on irq 46 exactly match > those for a uhc device on irq 18. > > The machine is a Dell 2850 running 5.4. Relevant bits from the dmesg are: FAQ. It's due to brain damage in the Intel PCIX hubs and can't be fixed directly. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 16:41:13 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E564916A4E0; Mon, 17 Jul 2006 16:41:13 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8027043D49; Mon, 17 Jul 2006 16:41:12 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.139] (helo=anti-virus01-10) by smtp-out4.blueyonder.co.uk with smtp (Exim 4.52) id 1G2W9f-0001lf-VV; Mon, 17 Jul 2006 17:41:12 +0100 Received: from [82.41.34.175] (helo=[192.168.0.2]) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1G2W9f-0002Ll-4n; Mon, 17 Jul 2006 17:41:11 +0100 Message-ID: <44BBBDA6.4010209@dial.pipex.com> Date: Mon, 17 Jul 2006 17:41:10 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin References: <44BB9D21.3010400@dial.pipex.com> <200607171128.00303.jhb@freebsd.org> In-Reply-To: <200607171128.00303.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 16:41:14 -0000 John Baldwin wrote: >On Monday 17 July 2006 10:22, Alex Zbyslaw wrote: > > >>No responses from questions@. Anyone here understand what's going on? >>Thanks]. >>__ >>I was monitoring a machine with "systat -vmstat" and noticed something >>about the interrupts and I don't know if it's a problem or not. If it >>is a problem, is there anything I can do about it? >> >>The interrupts for the network interface (em0) on irq 64 exactly match >>those for a uhc device on irq 16. >> >>And the interrupts for the hardware raid (amr) on irq 46 exactly match >>those for a uhc device on irq 18. >> >>The machine is a Dell 2850 running 5.4. Relevant bits from the dmesg are: >> >> > >FAQ. It's due to brain damage in the Intel PCIX hubs and can't be fixed >directly. > > > Thanks. I did search and couldn't find anything; guess I didn't search for the right thing :-( Any idea how much this might impact performance, especially of the disk? One thing I realised I missed from original dmesg was > Interrupt storm detected on "irq18: uhci2"; throttling interrupt source which ties to the disk interrupt. Will that be slowing things down? Would increasing the storm threshold help (especially disk performance)? Guess I'm looking for any mitigation that might be possible. Thanks again, --Alex From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 17:26:43 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A212416A4E1 for ; Mon, 17 Jul 2006 17:26:43 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 28FAD43D4C for ; Mon, 17 Jul 2006 17:26:42 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6HHQXre038976; Mon, 17 Jul 2006 13:26:36 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Alex Zbyslaw Date: Mon, 17 Jul 2006 13:26:16 -0400 User-Agent: KMail/1.9.1 References: <44BB9D21.3010400@dial.pipex.com> <200607171128.00303.jhb@freebsd.org> <44BBBDA6.4010209@dial.pipex.com> In-Reply-To: <44BBBDA6.4010209@dial.pipex.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607171326.17133.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Mon, 17 Jul 2006 13:26:37 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1600/Sat Jul 15 11:03:46 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2006 17:26:43 -0000 On Monday 17 July 2006 12:41, Alex Zbyslaw wrote: > John Baldwin wrote: > > >On Monday 17 July 2006 10:22, Alex Zbyslaw wrote: > > > > > >>No responses from questions@. Anyone here understand what's going on? > >>Thanks]. > >>__ > >>I was monitoring a machine with "systat -vmstat" and noticed something > >>about the interrupts and I don't know if it's a problem or not. If it > >>is a problem, is there anything I can do about it? > >> > >>The interrupts for the network interface (em0) on irq 64 exactly match > >>those for a uhc device on irq 16. > >> > >>And the interrupts for the hardware raid (amr) on irq 46 exactly match > >>those for a uhc device on irq 18. > >> > >>The machine is a Dell 2850 running 5.4. Relevant bits from the dmesg are: > >> > >> > > > >FAQ. It's due to brain damage in the Intel PCIX hubs and can't be fixed > >directly. > > > > > > > Thanks. I did search and couldn't find anything; guess I didn't search > for the right thing :-( > > Any idea how much this might impact performance, especially of the disk? > > One thing I realised I missed from original dmesg was > > > Interrupt storm detected on "irq18: uhci2"; throttling interrupt source > > which ties to the disk interrupt. Will that be slowing things down? > Would increasing the storm threshold help (especially disk > performance)? Guess I'm looking for any mitigation that might be possible. > > Thanks again, There's no easy answer on this. You'll have to run your own benchmarks. If you don't need USB, then you may just want to leave it out of your kernel which might help some. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 17 18:30:44 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 E352C16A4E1 for ; Mon, 17 Jul 2006 18:30:44 +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 E592143D64 for ; Mon, 17 Jul 2006 18:30:38 +0000 (GMT) (envelope-from julian@elischer.org) Received: from unknown (HELO [10.251.18.229]) ([10.251.18.229]) by a50.ironport.com with ESMTP; 17 Jul 2006 11:30:38 -0700 Message-ID: <44BBD74E.5070307@elischer.org> Date: Mon, 17 Jul 2006 11:30:38 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.13) Gecko/20060414 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Benjamin Close References: <44BB31BE.6050505@clearchain.com> In-Reply-To: <44BB31BE.6050505@clearchain.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: [RFT]: InFlight Mode Patch 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, 17 Jul 2006 18:30:45 -0000 Benjamin Close wrote: > Hi Folks, > After receiving no feedback on -current, figured I'd send this to > -hackers... probably should of in the first place. > Please CC any comments as I'm not on the hackers list. I initially thought this was a patch for the tcp_inflight packet window calcualtion code. I think relabelling it as "Mode for FreeBSD when on an aeroplane (airplane)" to catch people's attention. > > ------------- > > Hi All, > Whilst looking on the FreeBSD projects page I noticed the 'InFlight' > mode project. > A patch is available at: > > http://www.clearchain.com/people/benjsc/download/20060712-inflight_mode.patch.gz > > > Which implements a boot menu item, sysctl tunable (hw.inflight_mode) and > prevents all wireless & bluetooth drivers from attaching (probe succeeds > still). > > Testing / comments welcome. > > Cheers, > Benjamin > _______________________________________________ > 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 Jul 18 04:39: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 AC33C16A4DE for ; Tue, 18 Jul 2006 04:39:55 +0000 (UTC) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5772343D45 for ; Tue, 18 Jul 2006 04:39:55 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id 3E2961D7F1; Tue, 18 Jul 2006 00:39:54 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id D9E464AC2C; Tue, 18 Jul 2006 00:39:50 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17596.26134.831813.158138@canoe.dclg.ca> Date: Tue, 18 Jul 2006 00:39:50 -0400 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid Subject: On the use of Tun interfaces. 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, 18 Jul 2006 04:39:55 -0000 The man pages of if_tun are out-of-date in some respects, but with comments from the group and reading the sources of ppp, I have worked around most of the problems I've found. However, I'm stuck with one quandry. My tunnel setup process produces the following: tun0: flags=8051 mtu 1500 inet6 fe80::214:22ff:fede:f175%tun0 prefixlen 64 scopeid 0x5 inet 192.168.12.2 --> 192.168.22.1 netmask 0xffffffff Opened by PID 86506 but then I ask: [3:14:314]dgilbert@canoe:~/devel/failsafe> route get 192.168.22.1 route to: 192.168.22.1 destination: default mask: default gateway: strike1 interface: bge0 and indeed: [3:15:315]dgilbert@canoe:~/devel/failsafe> netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default xx.yy.zz.33 UGS 0 1629642 bge0 xx.yy.zz.32/27 link#1 UC 0 0 bge0 xx.yy.zz.33 00:80:c8:c9:22:31 UHLW 2 16 bge0 1046 127.0.0.1 127.0.0.1 UH 0 4111852 lo0 192.168.22.1 192.168.12.2 UH 0 0 tun0 shouldn't the last route there be active? Any clues here? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 05:36: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 A136116A4DE for ; Tue, 18 Jul 2006 05:36:26 +0000 (UTC) (envelope-from lists-freebsd@silverwraith.com) Received: from pear.silverwraith.com (pear.silverwraith.com [69.12.167.160]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F78643D45 for ; Tue, 18 Jul 2006 05:36:26 +0000 (GMT) (envelope-from lists-freebsd@silverwraith.com) Received: from avleen by pear.silverwraith.com with local (Exim 4.61 (FreeBSD)) (envelope-from ) id 1G2iFu-0001TV-8n for freebsd-hackers@freebsd.org; Mon, 17 Jul 2006 22:36:26 -0700 Date: Mon, 17 Jul 2006 22:36:26 -0700 From: Avleen Vig To: freebsd-hackers@freebsd.org Message-ID: <20060718053626.GC821@silverwraith.com> References: <44BB31BE.6050505@clearchain.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44BB31BE.6050505@clearchain.com> User-Agent: Mutt/1.5.11 Subject: Re: [RFT]: InFlight Mode Patch 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, 18 Jul 2006 05:36:26 -0000 On Mon, Jul 17, 2006 at 04:14:14PM +0930, Benjamin Close wrote: > Which implements a boot menu item, sysctl tunable (hw.inflight_mode) and > prevents all wireless & bluetooth drivers from attaching (probe succeeds > still). Attaching isn't the problem. The FAA and other international air authorities specifically disallow any transmitting of receiving. The only way you'll get this is by disabling the hardware itself. From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 11:05: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 51CA816A512 for ; Tue, 18 Jul 2006 11:05:29 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93A7A43D4C for ; Tue, 18 Jul 2006 11:05:27 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5CDAD.dip.t-dialin.net [84.165.205.173]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k6IAschS050581; Tue, 18 Jul 2006 12:54:39 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k6IB5Fvo055914; Tue, 18 Jul 2006 13:05:15 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Tue, 18 Jul 2006 13:05:15 +0200 Message-ID: <20060718130515.6n0co5insww0kwk4@netchild.homeip.net> X-Priority: 3 (Normal) Date: Tue, 18 Jul 2006 13:05:15 +0200 From: Alexander Leidinger To: Avleen Vig References: <44BB31BE.6050505@clearchain.com> <20060718053626.GC821@silverwraith.com> In-Reply-To: <20060718053626.GC821@silverwraith.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new X-Mailman-Approved-At: Tue, 18 Jul 2006 11:42:16 +0000 Cc: freebsd-hackers@freebsd.org, Benjamin Close Subject: Re: [RFT]: InFlight Mode Patch 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, 18 Jul 2006 11:05:29 -0000 Quoting Avleen Vig (from Mon, 17 Jul 2006 22:36:26 -0700): > On Mon, Jul 17, 2006 at 04:14:14PM +0930, Benjamin Close wrote: >> Which implements a boot menu item, sysctl tunable (hw.inflight_mode) and >> prevents all wireless & bluetooth drivers from attaching (probe succeeds >> still). > > Attaching isn't the problem. > The FAA and other international air authorities specifically disallow > any transmitting of receiving. The only way you'll get this is by > disabling the hardware itself. AFAIK we have code in the tree which powers down all devices which aren't attached. I'm not sure if this code needs to be enabled with a tunable/sysctl, or if it is enabled by default. Bye, Alexander. -- A truly great man will neither trample on a worm nor sneak to an emperor. -- B. Franklin http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137 From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 12:18:07 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 380F716A4DA for ; Tue, 18 Jul 2006 12:18:07 +0000 (UTC) (envelope-from GMcCaughan@synaptics-uk.com) Received: from mx2.synaptics-uk.com (mx2.synaptics-uk.com [194.203.111.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C0AA43D49 for ; Tue, 18 Jul 2006 12:18:06 +0000 (GMT) (envelope-from GMcCaughan@synaptics-uk.com) Received: from firewall.synaptics-uk.com ([194.203.111.212] helo=ukexchange2k.synaptics-inc.local) by mx2.synaptics-uk.com with esmtp (Exim 4.20) id 1G2ozG-0008EA-4D for freebsd-hackers@freebsd.org; Tue, 18 Jul 2006 13:47:42 +0100 Received: from lists.synaptics-uk.com ([172.20.11.6]) by ukexchange2k.synaptics-inc.local with Microsoft SMTPSVC(5.0.2195.6713); Tue, 18 Jul 2006 13:17:34 +0100 Received: from [172.20.11.5] (unknown [172.20.11.5]) by lists.synaptics-uk.com (Postfix) with ESMTP id DE46A17011 for ; Tue, 18 Jul 2006 12:57:56 +0100 (BST) From: Gareth McCaughan To: freebsd-hackers@freebsd.org Date: Tue, 18 Jul 2006 13:17:32 +0100 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607181317.33416.gmccaughan@synaptics-uk.com> X-OriginalArrivalTime: 18 Jul 2006 12:17:34.0777 (UTC) FILETIME=[269AD290:01C6AA64] X-Mailman-Approved-At: Tue, 18 Jul 2006 12:27:11 +0000 Subject: "swiN: clock sio" process taking 75% CPU 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, 18 Jul 2006 12:18:07 -0000 (I've asked this question on -questions and -stable, with no success; hence I'm taking it to the assembled wizardry of -hackers. A bit of googling suggests that I'm far from the first person to have had a similar problem, though it seems to be worse for me than for the others I've found.) I have a box running 6-STABLE, cvsupped last week. Until recently it was running 5.something and showed the same peculiar behaviour as I'm about to describe. Further back, it used to run 4.x, and I don't recall anything like this happening then. About 6 minutes after booting (on three occasions, but I don't guarantee this doesn't vary), a process (well, a kernel interrupt thread, I guess) that appears in the output of "ps" as "[swi4: clock sio]" begins to use about 3/4 of the machine's CPU. I think it does so more or less instantaneously. It continues to do so indefinitely, so far as I can tell. I'm not aware of anything specific that triggers this, though I suppose there must *be* something. It happens apparently spontaneously, on a lightly loaded machine. Those cycles are genuinely being consumed; other processes run much more slowly than they "should", and take much more wall time than CPU time. I've tried diddling my kernel's HZ value; the behaviour with HZ=100 and with HZ=1000 is the same, so far as I'm able to tell. I've no idea whether it might be relevant, but I have option DEVICE_POLLING turned on; toggling sysctl kern.polling.enable doesn't seem to make any difference. The machine is a very uninteresting single-CPU Athlon box, clocked at 1.6GHz, several years old. Here's its dmesg output, with a few uninteresting bits of information leakage elided. ---------- dmesg output begins ---------- Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.1-STABLE #3: Thu Jul 13 16:46:07 BST 2006 root@xxxxxxx.xxxxxxxx.com:/usr/obj/usr/src/sys/xxxxxxxx ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP 1900+ (1599.73-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xc0480800 real memory = 536805376 (511 MB) avail memory = 515944448 (492 MB) ioapic0 irqs 0-23 on motherboard netsmb_dev: loaded acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xec00-0xec7f mem 0xdfffff80-0xdfffffff irq 17 at device 6.0 on pci0 miibus0: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: 00:04:75:7e:54:fd isab0: at device 17.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 17.1 on pci0 ata0: on atapci0 ata1: on atapci0 uhci0: port 0xdc00-0xdc1f irq 5 at device 17.2 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe000-0xe01f irq 5 at device 17.3 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xe400-0xe41f irq 5 at device 17.4 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: at device 17.5 (no driver attached) acpi_button1: on acpi0 fdc0: port 0x3f2-0x3f3,0x3f4-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 pmtimer0 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1599730245 Hz quality 800 Timecounters tick every 10.000 msec ad0: 38166MB at ata0-master UDMA100 acd0: DVDROM at ata1-master UDMA33 Trying to mount root from ufs:/dev/ad0s1a ---------- dmesg output ends ---------- vmstat -i produces pretty normal-looking numbers (this is while running with HZ=100): | interrupt total rate | irq1: atkbd0 3 0 | irq6: fdc0 10 0 | irq14: ata0 2913 1 | irq15: ata1 47 0 | irq17: xl0 7342 4 | cpu0: timer 302649 199 | Total 312964 206 A little more information, in case it's useful: | $ echo; sysctl debug | egrep to_ | debug.to_avg_mpcalls: 2890 | debug.to_avg_mtxcalls: 0 | debug.to_avg_gcalls: 768 | debug.to_avg_depth: 3815 That's with HZ = 100. Here are some numbers from a message in freebsd-ia64, from Marcel Moolenaar, in 2004-07, to someone seeing symptoms like mine. They're meant to be typical healthy numbers. Mine above look somewhat worse, but not insanely so; surely not enough to explain the difference between using 0.3% cpu and using 75%. Marcel also had HZ=100. | % sysctl debug | grep to_avg | debug.to_avg_depth: 2500 | debug.to_avg_gcalls: 1003 | debug.to_avg_mpcalls: 1255 I would be grateful for any insight into what's going wrong and how (if at all) it can be fixed or worked around. I'm not subscribed to -hackers, so would prefer to be cc'ed, but I'll check the web archives and should therefore see any responses that go only to the list. I can diddle fairly freely with the machine if that proves useful, and don't mind tweaking internals if it's diagnostically helpful, but I'm not a FreeBSD kernel expert and may therefore need some help identifying what to tweak and how to interpret the results. Thanks in advance! -- Gareth McCaughan From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 13:03:51 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0824016A4DA for ; Tue, 18 Jul 2006 13:03:51 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C3B243D45 for ; Tue, 18 Jul 2006 13:03:50 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from mail01.m-online.net (svr21.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id EF6A577EFF for ; Tue, 18 Jul 2006 11:24:00 +0200 (CEST) Received: from fw.reifenberger.com (ppp-62-245-210-36.dynamic.mnet-online.de [62.245.210.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.m-online.net (Postfix) with ESMTP id E21BC91941 for ; Tue, 18 Jul 2006 11:24:00 +0200 (CEST) Received: from localhost (mike@localhost) by fw.reifenberger.com (8.13.6/8.13.4/Submit) with ESMTP id k6I9O04o020563 for ; Tue, 18 Jul 2006 11:24:00 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Tue, 18 Jul 2006 11:24:00 +0200 (CEST) From: Michael Reifenberger To: FreeBSD-Hackers Message-ID: <20060718110442.S20487@fw.reifenberger.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: VIA padlock performance 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, 18 Jul 2006 13:03:51 -0000 Hi, with a via epia EN-15000 MB and an U160 scsi disk I get with eli(4) I get ~27-40MB/s read/write performance trough eli(4) with AES265 key. cryptotest gives: (totum)(root) ./cryptotest -a aes256 100000 4096 7.838 sec, 200000 aes256 crypts, 4096 bytes, 104511751 byte/sec, 797.4 Mb/sec not too bad, isn't it? :-) Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 13:13: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 1624716A4DF; Tue, 18 Jul 2006 13:13:58 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id D662A43D81; Tue, 18 Jul 2006 13:13:51 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.138] (helo=anti-virus01-09) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1G2pOY-0006Tr-4N; Tue, 18 Jul 2006 14:13:50 +0100 Received: from [82.41.34.175] (helo=[192.168.0.2]) by asmtp-out6.blueyonder.co.uk with esmtp (Exim 4.52) id 1G2pOW-0001P5-SE; Tue, 18 Jul 2006 14:13:48 +0100 Message-ID: <44BCDE8C.9000003@dial.pipex.com> Date: Tue, 18 Jul 2006 14:13:48 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: John Baldwin References: <44BB9D21.3010400@dial.pipex.com> <200607171128.00303.jhb@freebsd.org> <44BBBDA6.4010209@dial.pipex.com> <200607171326.17133.jhb@freebsd.org> In-Reply-To: <200607171326.17133.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 13:13:58 -0000 John Baldwin wrote: >>>Interrupt storm detected on "irq18: uhci2"; throttling interrupt source >>> >>> >>which ties to the disk interrupt. Will that be slowing things down? >>Would increasing the storm threshold help (especially disk >>performance)? Guess I'm looking for any mitigation that might be possible. >> >> >> > >There's no easy answer on this. You'll have to run your own benchmarks. If >you don't need USB, then you may just want to leave it out of your kernel >which might help some. > > > OK, thanks for the info and suggestions. Regrettably, leaving out USB isn't an option for us. I'll schedule some benchmarking for all that ample free time I have :-) Best, --Alex From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 13:14: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 390B616A4DF for ; Tue, 18 Jul 2006 13:14:17 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCFF843D55 for ; Tue, 18 Jul 2006 13:14:11 +0000 (GMT) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from circe (circe.rz.RWTH-Aachen.DE [134.130.3.36]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0J2L00JOVOR9V7@ms-dienst.rz.rwth-aachen.de> for hackers@freebsd.org; Tue, 18 Jul 2006 15:13:58 +0200 (MEST) Received: from talos.rz.RWTH-Aachen.DE ([134.130.3.22]) by circe (MailMonitor for SMTP v1.2.2 ) ; Tue, 18 Jul 2006 15:13:57 +0200 (MEST) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by smarthost.rwth-aachen.de (8.13.6/8.13.1/1) with ESMTP id k6IDDubd000634; Tue, 18 Jul 2006 15:13:56 +0200 Received: from haakonia.hitnet.rwth-aachen.de ([137.226.181.92]) by bigboss.hitnet.rwth-aachen.de with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1G2pOf-0002lb-GG; Tue, 18 Jul 2006 15:13:57 +0200 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 2AE523F41C; Tue, 18 Jul 2006 15:13:57 +0200 (CEST) Date: Tue, 18 Jul 2006 15:13:57 +0200 From: Christian Brueffer In-reply-to: <20060718110442.S20487@fw.reifenberger.com> To: Michael Reifenberger Message-id: <20060718131356.GC1756@haakonia.hitnet.RWTH-Aachen.DE> MIME-version: 1.0 Content-type: multipart/signed; boundary=aVD9QWMuhilNxW9f; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.11 X-Operating-System: FreeBSD 6.1-STABLE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <20060718110442.S20487@fw.reifenberger.com> Cc: FreeBSD-Hackers Subject: Re: VIA padlock performance 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, 18 Jul 2006 13:14:17 -0000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 18, 2006 at 11:24:00AM +0200, Michael Reifenberger wrote: > Hi, > with a via epia EN-15000 MB and an U160 scsi disk I get with eli(4) I get > ~27-40MB/s read/write performance trough eli(4) with AES265 key. >=20 > cryptotest gives: > (totum)(root) ./cryptotest -a aes256 100000 4096 > 7.838 sec, 200000 aes256 crypts, 4096 bytes, 104511751 byte/sec, = =20 > 797.4 Mb/sec >=20 > not too bad, isn't it? :-) >=20 Nice, could you update padlock(4) with information about supported C7 processors? Thanks. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEvN6UbHYXjKDtmC0RAtaZAKCicyvZRDny/AX5N+4c4dV0oo709ACg8SdQ vJHXq4NhS/6w08lYk2yIjfs= =3HYy -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 14:14:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5709E16A4E0 for ; Tue, 18 Jul 2006 14:14:42 +0000 (UTC) (envelope-from matt@gsicomp.on.ca) Received: from gabby.gsicomp.on.ca (CPE00062566c7bb-CM0011e6ede298.cpe.net.cable.rogers.com [70.28.254.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1369543D58 for ; Tue, 18 Jul 2006 14:13:53 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from localhost (localhost [127.0.0.1]) by gabby.gsicomp.on.ca (Postfix) with ESMTP id CBAA7629C; Tue, 18 Jul 2006 10:55:55 -0400 (EDT) Received: from unknown by localhost (amavisd-new, unix socket) id client-kOEkEK26; Tue, 18 Jul 2006 10:55:36 -0400 (EDT) Received: from webmail.gsicomp.on.ca (localhost [127.0.0.1]) by gabby.gsicomp.on.ca (Postfix) with ESMTP id 301D560F4; Tue, 18 Jul 2006 10:55:36 -0400 (EDT) Received: from 192.168.0.1 (SquirrelMail authenticated user matt@gsicomp.on.ca) by webmail.gsicomp.on.ca with HTTP; Tue, 18 Jul 2006 10:55:36 -0400 (EDT) Message-ID: <3902.192.168.0.1.1153234536.squirrel@webmail.gsicomp.on.ca> In-Reply-To: <17596.26134.831813.158138@canoe.dclg.ca> References: <17596.26134.831813.158138@canoe.dclg.ca> Date: Tue, 18 Jul 2006 10:55:36 -0400 (EDT) From: matt@gsicomp.on.ca To: "David Gilbert" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: amavisd-new at gsicomp.on.ca Cc: freebsd-hackers@freebsd.org Subject: Re: On the use of Tun interfaces. 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, 18 Jul 2006 14:14:42 -0000 > The man pages of if_tun are out-of-date in some respects, but with > comments from the group and reading the sources of ppp, I have worked > around most of the problems I've found. However, I'm stuck with one > quandry. My tunnel setup process produces the following: > > tun0: flags=8051 mtu 1500 > inet6 fe80::214:22ff:fede:f175%tun0 prefixlen 64 scopeid 0x5 > inet 192.168.12.2 --> 192.168.22.1 netmask 0xffffffff > Opened by PID 86506 > > but then I ask: > > [3:14:314]dgilbert@canoe:~/devel/failsafe> route get 192.168.22.1 > route to: 192.168.22.1 > destination: default > mask: default > gateway: strike1 > interface: bge0 > > and indeed: > > [3:15:315]dgilbert@canoe:~/devel/failsafe> netstat -rn > Routing tables > > Internet: > Destination Gateway Flags Refs Use Netif Expire > default xx.yy.zz.33 UGS 0 1629642 bge0 > xx.yy.zz.32/27 link#1 UC 0 0 bge0 > xx.yy.zz.33 00:80:c8:c9:22:31 UHLW 2 16 bge0 1046 > 127.0.0.1 127.0.0.1 UH 0 4111852 lo0 > 192.168.22.1 192.168.12.2 UH 0 0 tun0 > > shouldn't the last route there be active? Any clues here? Have you set net.inet.ip.forwarding=1 via sysctl? -- Matt Emmerton From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 14:55: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 3B64F16A4E9 for ; Tue, 18 Jul 2006 14:55:12 +0000 (UTC) (envelope-from myself@rojer.pp.ru) Received: from wooster.rojer.pp.ru (wooster.rojer.pp.ru [80.68.246.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60A5443D62 for ; Tue, 18 Jul 2006 14:55:07 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from wooster.rojer.pp.ru (localhost [127.0.0.1]) by wooster.rojer.pp.ru (Postfix) with ESMTP id 2B3D4114F9; Tue, 18 Jul 2006 18:55:06 +0400 (MSD) X-Spam-Checker-Version: SpamAssassin 3.1.3-rojer (2006-06-01) on wooster.rojer.pp.ru X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.1.3-rojer Received: from [172.28.3.233] (unknown [80.169.137.162]) by wooster.rojer.pp.ru (Postfix) with ESMTP; Tue, 18 Jul 2006 18:54:57 +0400 (MSD) Message-ID: <44BD044A.4090509@rojer.pp.ru> Date: Tue, 18 Jul 2006 16:54:50 +0100 From: Deomid Ryabkov User-Agent: Thunderbird 1.5.0.4 (X11/20060707) MIME-Version: 1.0 To: Gareth McCaughan References: <200607181317.33416.gmccaughan@synaptics-uk.com> In-Reply-To: <200607181317.33416.gmccaughan@synaptics-uk.com> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms020607010803030402000309" Cc: freebsd-hackers@freebsd.org Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 18 Jul 2006 14:55:12 -0000 This is a cryptographically signed message in MIME format. --------------ms020607010803030402000309 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Gareth McCaughan wrote: > About 6 minutes after booting (on three occasions, but I > don't guarantee this doesn't vary), a process (well, a > kernel interrupt thread, I guess) that appears in the > output of "ps" as "[swi4: clock sio]" begins to use > about 3/4 of the machine's CPU. I recall seeing similar behavior on a Sun V20z, running 5.x at the time. I have definitely seen a lot of interrupts and CPU usage on the sio interrupt corresponding to serial console. Needless to say there was no activity on the console itself. I think turning off serial console solved that for me. -- Deomid Ryabkov aka Rojer myself@rojer.pp.ru rojer@sysadmins.ru ICQ: 8025844 --------------ms020607010803030402000309 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJPTCC AvkwggJioAMCAQICEA6d3TvG5eRen2BAM1uAkm0wDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UE BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDQwMTE4MjY1NFoX DTA3MDQwMTE4MjY1NFowXzEQMA4GA1UEBBMHUnlhYmtvdjEPMA0GA1UEKhMGRGVvbWlkMRcw FQYDVQQDEw5EZW9taWQgUnlhYmtvdjEhMB8GCSqGSIb3DQEJARYSbXlzZWxmQHJvamVyLnBw LnJ1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmnOKvalRf0lrl/4S2fAVovyt 2FxjDn8hDhSOeYNY97Ddi8Y2t+eELg7cpxAUq9GnymPBQanGlvUN2VTuSA4YUVg+VE1yhGgE TDKm0CNVh0v5LOVVAs52IFvdQ0wREYRH0nPBa/ovPWVvlsJ/cIR5GhvRfAW3FbvuP+bEYU54 ESo7OTu7EeGVOLBTF5ow1zaU9PStIied3ffaK5xl8lB6TnQ7DBnIir0ugCqdAuaVxsjD4SfG hqzv42uOuvNjFCQhtFn9dUSnx1cF1TI39cumqVV4UNrqDlQZ4bgrBu/ClqSI4oJnfxgafNkq oSVx7mXNuD1U7V8tJRbOiNdZFpS6mwIDAQABoy8wLTAdBgNVHREEFjAUgRJteXNlbGZAcm9q ZXIucHAucnUwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOBgQAmvjeaZmSMwreI1RIl M1frBBOatokRhsStY6nyswNwxpCCcMGiK6sS8a0rtE4Iowvm48oCfXG062anUAFUMJ+e6Fse uOE1lJKrFQRJWGUzp61BOZJH8HZfKnrb7ll2GXY7YvvBicmif/wdjEBgp0WwNucm6jJS/57f mY3M9LQbwzCCAvkwggJioAMCAQICEA6d3TvG5eRen2BAM1uAkm0wDQYJKoZIhvcNAQEEBQAw YjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4x LDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA2MDQw MTE4MjY1NFoXDTA3MDQwMTE4MjY1NFowXzEQMA4GA1UEBBMHUnlhYmtvdjEPMA0GA1UEKhMG RGVvbWlkMRcwFQYDVQQDEw5EZW9taWQgUnlhYmtvdjEhMB8GCSqGSIb3DQEJARYSbXlzZWxm QHJvamVyLnBwLnJ1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmnOKvalRf0lr l/4S2fAVovyt2FxjDn8hDhSOeYNY97Ddi8Y2t+eELg7cpxAUq9GnymPBQanGlvUN2VTuSA4Y UVg+VE1yhGgETDKm0CNVh0v5LOVVAs52IFvdQ0wREYRH0nPBa/ovPWVvlsJ/cIR5GhvRfAW3 FbvuP+bEYU54ESo7OTu7EeGVOLBTF5ow1zaU9PStIied3ffaK5xl8lB6TnQ7DBnIir0ugCqd AuaVxsjD4SfGhqzv42uOuvNjFCQhtFn9dUSnx1cF1TI39cumqVV4UNrqDlQZ4bgrBu/ClqSI 4oJnfxgafNkqoSVx7mXNuD1U7V8tJRbOiNdZFpS6mwIDAQABoy8wLTAdBgNVHREEFjAUgRJt eXNlbGZAcm9qZXIucHAucnUwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQFAAOBgQAmvjea ZmSMwreI1RIlM1frBBOatokRhsStY6nyswNwxpCCcMGiK6sS8a0rtE4Iowvm48oCfXG062an UAFUMJ+e6FseuOE1lJKrFQRJWGUzp61BOZJH8HZfKnrb7ll2GXY7YvvBicmif/wdjEBgp0Ww Nucm6jJS/57fmY3M9LQbwzCCAz8wggKooAMCAQICAQ0wDQYJKoZIhvcNAQEFBQAwgdExCzAJ BgNVBAYTAlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEa MBgGA1UEChMRVGhhd3RlIENvbnN1bHRpbmcxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2Vy dmljZXMgRGl2aXNpb24xJDAiBgNVBAMTG1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBDQTEr MCkGCSqGSIb3DQEJARYccGVyc29uYWwtZnJlZW1haWxAdGhhd3RlLmNvbTAeFw0wMzA3MTcw MDAwMDBaFw0xMzA3MTYyMzU5NTlaMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUg Q29uc3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1h aWwgSXNzdWluZyBDQTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAxKY8VXNV+065ypla HmjAdQRwnd/p/6Me7L3N9VvyGna9fww6YfK/Uc4B1OVQCjDXAmNaLIkVcI7dyfArhVqqP3FW y688Cwfn8R+RNiQqE88r1fOCdz0Dviv+uxg+B79AgAJk16emu59l0cUqVIUPSAR/p7bRPGEE QB5kGXJgt/sCAwEAAaOBlDCBkTASBgNVHRMBAf8ECDAGAQH/AgEAMEMGA1UdHwQ8MDowOKA2 oDSGMmh0dHA6Ly9jcmwudGhhd3RlLmNvbS9UaGF3dGVQZXJzb25hbEZyZWVtYWlsQ0EuY3Js MAsGA1UdDwQEAwIBBjApBgNVHREEIjAgpB4wHDEaMBgGA1UEAxMRUHJpdmF0ZUxhYmVsMi0x MzgwDQYJKoZIhvcNAQEFBQADgYEASIzRUIPqCy7MDaNmrGcPf6+svsIXoUOWlJ1/TCG4+DYf qi2fNi/A9BxQIJNwPP2t4WFiw9k6GX6EsZkbAMUaC4J0niVQlGLH2ydxVyWN3amcOY6MIE9l X5Xa9/eH1sYITq726jTlEBpbNU1341YheILcIRk13iSx0x1G/11fZU8xggNkMIIDYAIBATB2 MGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29uc3VsdGluZyAoUHR5KSBMdGQu MSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwgSXNzdWluZyBDQQIQDp3dO8bl 5F6fYEAzW4CSbTAJBgUrDgMCGgUAoIIBwzAYBgkqhkiG9w0BCQMxCwYJKoZIhvcNAQcBMBwG CSqGSIb3DQEJBTEPFw0wNjA3MTgxNTU0NTBaMCMGCSqGSIb3DQEJBDEWBBQKIN9XMm1vNUQl C2G1iDvaQ9lguTBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3DQMCAgIA gDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDCBhQYJKwYBBAGCNxAE MXgwdjBiMQswCQYDVQQGEwJaQTElMCMGA1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkg THRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECEA6d 3TvG5eRen2BAM1uAkm0wgYcGCyqGSIb3DQEJEAILMXigdjBiMQswCQYDVQQGEwJaQTElMCMG A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECEA6d3TvG5eRen2BAM1uAkm0wDQYJKoZIhvcN AQEBBQAEggEANxtXJ1P1Mfw7Ka0q6xyPeL+m0uzYAg2qwgfJEQ1+FUyiz6wDp32eilKebCY0 Tsl7oOnS6dSCH2HLiIhD/2i7sV1nUO9ns5F8aX0uN8anY4Hb3alzPWlDMESjrQwPTj9ZJW/w t2/sccTzoX9wdVYmsliQ3tmdih3wnHSUgwAoeISUzr5EKp2kjKIffsLyV0RGVpU3ZTV+6Q1B 9SwI3KTGvWUkvsJOs18R4BLRUQvGwnJgllT3Wkrq2zjVioNtjLCVY/KwNI/PGM6DoEZxRfoh jddkXGsl+8wKZx9TqUQwQ2OX8fzDI6sT/rdCW3jU+V4TsN/d0NLhLb+xpEGO/hzzRAAAAAAA AA== --------------ms020607010803030402000309-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 16:13: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 CCFDB16A51E for ; Tue, 18 Jul 2006 16:13:58 +0000 (UTC) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7921443D4C for ; Tue, 18 Jul 2006 16:13:58 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id D87F61EAF4; Tue, 18 Jul 2006 12:13:57 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 6C5C84AC2C; Tue, 18 Jul 2006 12:13:56 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17597.2244.269350.815231@canoe.dclg.ca> Date: Tue, 18 Jul 2006 12:13:56 -0400 To: matt@gsicomp.on.ca In-Reply-To: <3902.192.168.0.1.1153234536.squirrel@webmail.gsicomp.on.ca> References: <17596.26134.831813.158138@canoe.dclg.ca> <3902.192.168.0.1.1153234536.squirrel@webmail.gsicomp.on.ca> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid Cc: freebsd-hackers@freebsd.org, David Gilbert Subject: Re: On the use of Tun interfaces. 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, 18 Jul 2006 16:13:58 -0000 >>>>> "matt" == matt writes: [ responding to my lack of tun routing ] matt> Have you set net.inet.ip.forwarding=1 via sysctl? yes. From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 17:05: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 6948716A4E1 for ; Tue, 18 Jul 2006 17:05:19 +0000 (UTC) (envelope-from GMcCaughan@synaptics-uk.com) Received: from mx2.synaptics-uk.com (mx2.synaptics-uk.com [194.203.111.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id E23EB43D49 for ; Tue, 18 Jul 2006 17:05:18 +0000 (GMT) (envelope-from GMcCaughan@synaptics-uk.com) Received: from firewall.synaptics-uk.com ([194.203.111.212] helo=ukexchange2k.synaptics-inc.local) by mx2.synaptics-uk.com with esmtp (Exim 4.20) id 1G2tTC-0001wK-B7; Tue, 18 Jul 2006 18:34:54 +0100 Received: from lists.synaptics-uk.com ([172.20.11.6]) by ukexchange2k.synaptics-inc.local with Microsoft SMTPSVC(5.0.2195.6713); Tue, 18 Jul 2006 18:04:48 +0100 Received: from [172.20.11.5] (unknown [172.20.11.5]) by lists.synaptics-uk.com (Postfix) with ESMTP id 3C23917013; Tue, 18 Jul 2006 17:45:11 +0100 (BST) From: Gareth McCaughan To: Deomid Ryabkov Date: Tue, 18 Jul 2006 18:04:42 +0100 User-Agent: KMail/1.9.1 References: <200607181317.33416.gmccaughan@synaptics-uk.com> <44BD044A.4090509@rojer.pp.ru> In-Reply-To: <44BD044A.4090509@rojer.pp.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607181804.44813.gmccaughan@synaptics-uk.com> X-OriginalArrivalTime: 18 Jul 2006 17:04:49.0066 (UTC) FILETIME=[470AA0A0:01C6AA8C] X-Mailman-Approved-At: Tue, 18 Jul 2006 17:18:22 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 18 Jul 2006 17:05:19 -0000 On Tuesday 2006-07-18 16:54, Deomid Ryabkov wrote: > Gareth McCaughan wrote: > > > About 6 minutes after booting (on three occasions, but I > > don't guarantee this doesn't vary), a process (well, a > > kernel interrupt thread, I guess) that appears in the > > output of "ps" as "[swi4: clock sio]" begins to use > > about 3/4 of the machine's CPU. > > I recall seeing similar behavior on a Sun V20z, running 5.x at the time. > I have definitely seen a lot of interrupts and CPU usage on the sio interrupt > corresponding to serial console. Needless to say there was no activity > on the console itself. > I think turning off serial console solved that for me. Do you mean commenting out the entries in /etc/ttys related to serial TTYs, or something else? (I've tried the former, and it didn't help.) In the spirit of grotesque voodoo chicken-waving, I also tried taking the "sio" device out of my kernel entirely. The problem remains unaltered. -- g From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 18:10:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 566D516A4EA for ; Tue, 18 Jul 2006 18:10:18 +0000 (UTC) (envelope-from john@essenz.com) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id F222543D60 for ; Tue, 18 Jul 2006 18:10:07 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.13.7/8.13.7) with ESMTP id k6IIA79q065496 for ; Tue, 18 Jul 2006 14:10:07 -0400 (EDT) Received: from localhost (essenz@localhost) by beck.quonix.net (8.13.7/8.13.7/Submit) with ESMTP id k6IIA7vE065493 for ; Tue, 18 Jul 2006 14:10:07 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Tue, 18 Jul 2006 14:10:07 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: freebsd-hackers@freebsd.org Message-ID: <20060718140354.V64880@beck.quonix.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spamassassin-Score: -1.442/6 ALL_TRUSTED,SPF_HELO_PASS,SPF_PASS X-Mimedefang: beck.quonix.net X-Scanned-By: MIMEDefang 2.57 on 146.145.66.90 Subject: odd behavior in apache 2.0.58 today 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, 18 Jul 2006 18:10:18 -0000 Had a little crash today, that appears to be apache related, but is confusing nonetheless. My server hosts a fair amount of websites, but nothing crazy. Uptime is usually only 0.5. Anyway, it got real slow, when I finally logged in, uptime was 152, ps -aux showed alot of apache pids, over a 100 (its usually 10 or so), and a netstat -an showed alot of connections to port 80. The odd thing though was all the connections were CLOSED_WAIT Machine is running 6-STABLE, and has 1Gb of memory, with a HT P4 3.2 GHz. And the HT has been turned on, even though its disabled by default. Any ideas as to what is going on? Is there maybe an issue with apache that triggered something, or maybe it was just a random DoS attack. Thanks John From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 18:25: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 A177916A4DD for ; Tue, 18 Jul 2006 18:25:03 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.FreeBSD.org (Postfix) with SMTP id 10D3A43D49 for ; Tue, 18 Jul 2006 18:25:02 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 3395 invoked by uid 399); 18 Jul 2006 18:25:02 -0000 Received: from localhost (HELO ?192.168.0.7?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 18 Jul 2006 18:25:02 -0000 Message-ID: <44BD2783.1000609@FreeBSD.org> Date: Tue, 18 Jul 2006 11:25:07 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: John Von Essen References: <20060718140354.V64880@beck.quonix.net> In-Reply-To: <20060718140354.V64880@beck.quonix.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: odd behavior in apache 2.0.58 today 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, 18 Jul 2006 18:25:03 -0000 John Von Essen wrote: > Had a little crash today, that appears to be apache related, but is > confusing nonetheless. > > My server hosts a fair amount of websites, but nothing crazy. Uptime is > usually only 0.5. Anyway, it got real slow, when I finally logged in, > uptime was 152, ps -aux showed alot of apache pids, over a 100 (its > usually 10 or so), and a netstat -an showed alot of connections to port > 80. The odd thing though was all the connections were CLOSED_WAIT > > Machine is running 6-STABLE, and has 1Gb of memory, with a HT P4 3.2 > GHz. And the HT has been turned on, even though its disabled by default. > > Any ideas as to what is going on? Is there maybe an issue with apache > that triggered something, or maybe it was just a random DoS attack. Back when I was doing hosting I saw that same behavior with Apache 1.x when a very aggressive spider went after sites on our systems. Restarting Apache was usually all it took to set things right again. hth, Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 18:39: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 207EA16A4DD for ; Tue, 18 Jul 2006 18:39:25 +0000 (UTC) (envelope-from john@essenz.com) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1020E43D6E for ; Tue, 18 Jul 2006 18:39:23 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.13.7/8.13.7) with ESMTP id k6IIdNYH068122 for ; Tue, 18 Jul 2006 14:39:23 -0400 (EDT) Received: from localhost (essenz@localhost) by beck.quonix.net (8.13.7/8.13.7/Submit) with ESMTP id k6IIdNW5068119 for ; Tue, 18 Jul 2006 14:39:23 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Tue, 18 Jul 2006 14:39:23 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: freebsd-hackers@freebsd.org In-Reply-To: <44BD2783.1000609@FreeBSD.org> Message-ID: <20060718143105.B64880@beck.quonix.net> References: <20060718140354.V64880@beck.quonix.net> <44BD2783.1000609@FreeBSD.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Spamassassin-Score: -1.442/6 ALL_TRUSTED,SPF_HELO_PASS,SPF_PASS X-Mimedefang: beck.quonix.net X-Scanned-By: MIMEDefang 2.57 on 146.145.66.90 Subject: Re: odd behavior in apache 2.0.58 today 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, 18 Jul 2006 18:39:25 -0000 Doug, Did some googling and I did find a connection between excessive CLOSED_WAITS, and hanging apache, and webbots. Some of the IP's I saw in my netstat were bots too. The problem has something to do with the bot no longer accepting data, but apache will continue to send it back since the bot didn't close the connection. Because my MaxClients was set to 150, my server got so bogged down, that it actually crashed and I had to power cycle. I moved that down to 75, which is still more than enough for me, so if it happens again, my system should remain up in order to restart apache. Any ideas if I can tweak apache to prevent this from happening? Maybe turn-off keepalive? I have to allow bots, maybe some are worse then others. -John On Tue, 18 Jul 2006, Doug Barton wrote: > John Von Essen wrote: >> Had a little crash today, that appears to be apache related, but is >> confusing nonetheless. >> >> My server hosts a fair amount of websites, but nothing crazy. Uptime is >> usually only 0.5. Anyway, it got real slow, when I finally logged in, >> uptime was 152, ps -aux showed alot of apache pids, over a 100 (its >> usually 10 or so), and a netstat -an showed alot of connections to port >> 80. The odd thing though was all the connections were CLOSED_WAIT >> >> Machine is running 6-STABLE, and has 1Gb of memory, with a HT P4 3.2 >> GHz. And the HT has been turned on, even though its disabled by default. >> >> Any ideas as to what is going on? Is there maybe an issue with apache >> that triggered something, or maybe it was just a random DoS attack. > > Back when I was doing hosting I saw that same behavior with Apache 1.x when > a very aggressive spider went after sites on our systems. Restarting Apache > was usually all it took to set things right again. > > hth, > > Doug > > -- > > This .signature sanitized for your protection > _______________________________________________ > 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 Jul 18 19:00: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 BAD0616A4DF for ; Tue, 18 Jul 2006 19:00:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 078E543D4C for ; Tue, 18 Jul 2006 19:00:35 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6IJ0TOm055606; Tue, 18 Jul 2006 15:00:30 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 18 Jul 2006 14:41:26 -0400 User-Agent: KMail/1.9.1 References: <200607181317.33416.gmccaughan@synaptics-uk.com> <44BD044A.4090509@rojer.pp.ru> <200607181804.44813.gmccaughan@synaptics-uk.com> In-Reply-To: <200607181804.44813.gmccaughan@synaptics-uk.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607181441.26875.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Tue, 18 Jul 2006 15:00:33 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1604/Tue Jul 18 11:41:03 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Deomid Ryabkov , Gareth McCaughan Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 18 Jul 2006 19:00:36 -0000 On Tuesday 18 July 2006 13:04, Gareth McCaughan wrote: > On Tuesday 2006-07-18 16:54, Deomid Ryabkov wrote: > > Gareth McCaughan wrote: > > > > > About 6 minutes after booting (on three occasions, but I > > > don't guarantee this doesn't vary), a process (well, a > > > kernel interrupt thread, I guess) that appears in the > > > output of "ps" as "[swi4: clock sio]" begins to use > > > about 3/4 of the machine's CPU. > > > > I recall seeing similar behavior on a Sun V20z, running 5.x at the time. > > I have definitely seen a lot of interrupts and CPU usage on the sio interrupt > > corresponding to serial console. Needless to say there was no activity > > on the console itself. > > I think turning off serial console solved that for me. > > Do you mean commenting out the entries in /etc/ttys related to > serial TTYs, or something else? (I've tried the former, and it > didn't help.) > > In the spirit of grotesque voodoo chicken-waving, I also tried > taking the "sio" device out of my kernel entirely. The problem > remains unaltered. In that case, something is scheduling a lot of timeouts (via callout_reset() or timeout()) or you have timeout handlers that are taking a very long time to run. There aren't any easy ways to debug this. :-P You can try turning on the DIGANOSTIC check in kern_timeout.c to catch long-running timeouts, and you can try adding some KTR traces to softclock() to see which timeout functions are running and try to do some analysis on that. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 19:03: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 4FD3716A4DD for ; Tue, 18 Jul 2006 19:03:39 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx22.fluidhosting.com [204.14.89.5]) by mx1.FreeBSD.org (Postfix) with SMTP id 67E9543D70 for ; Tue, 18 Jul 2006 19:03:29 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 12716 invoked by uid 399); 18 Jul 2006 19:03:28 -0000 Received: from localhost (HELO ?192.168.0.7?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 18 Jul 2006 19:03:28 -0000 Message-ID: <44BD3086.1010906@FreeBSD.org> Date: Tue, 18 Jul 2006 12:03:34 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: John Von Essen References: <20060718140354.V64880@beck.quonix.net> <44BD2783.1000609@FreeBSD.org> <20060718143105.B64880@beck.quonix.net> In-Reply-To: <20060718143105.B64880@beck.quonix.net> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: odd behavior in apache 2.0.58 today 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, 18 Jul 2006 19:03:39 -0000 John Von Essen wrote: > Doug, > > Did some googling and I did find a connection between excessive > CLOSED_WAITS, and hanging apache, and webbots. Some of the IP's I saw in > my netstat were bots too. The problem has something to do with the bot > no longer accepting data, but apache will continue to send it back since > the bot didn't close the connection. Yep, that sounds right to me. > Because my MaxClients was set to 150, my server got so bogged down, that > it actually crashed and I had to power cycle. I moved that down to 75, > which is still more than enough for me, so if it happens again, my > system should remain up in order to restart apache. > > Any ideas if I can tweak apache to prevent this from happening? Maybe > turn-off keepalive? Reducing MaxClients to a sane level is the best bet here. Maybe throw in a monitoring script for system load, and/or apache going insane with too many children. Keepalives are generally a good idea, and for legit clients do more good than harm, so I wouldn't turn them off personally. Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Tue Jul 18 22:14: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 86FA516A4DA for ; Tue, 18 Jul 2006 22:14:20 +0000 (UTC) (envelope-from ulf@alameda.net) Received: from mail.alameda.net (mail.alameda.net [64.81.53.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3BE2B43D45 for ; Tue, 18 Jul 2006 22:14:20 +0000 (GMT) (envelope-from ulf@alameda.net) Received: by mail.alameda.net (Postfix, from userid 1000) id 581E333D1E; Tue, 18 Jul 2006 15:14:16 -0700 (PDT) Date: Tue, 18 Jul 2006 15:14:16 -0700 From: Ulf Zimmermann To: hackers@freebsd.org Message-ID: <20060718221415.GI45191@evil.alameda.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 5.3-STABLE X-ANI-MailScanner-Information: Please contact the ISP for more information X-ANI-MailScanner: Found to be clean X-ANI-MailScanner-From: ulf@alameda.net Cc: Subject: sshd throwing signal 6 (sigabrt) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ulf@Alameda.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2006 22:14:20 -0000 I have a FreeBSD server (was 5.4-prerelease, now 6-stable as of noon PDT). On this server I got a problem with sshd throwing signal 6: Jul 18 15:04:03 log01 sshd[66161]: debug2: User child is on pid 66163 Jul 18 15:04:03 log01 sshd[66163]: debug3: PAM: opening session Jul 18 15:04:03 log01 sshd[66163]: debug1: PAM: reinitializing credentials Jul 18 15:04:03 log01 sshd[66163]: debug2: set_newkeys: mode 0 Jul 18 15:04:03 log01 sshd[66163]: debug2: set_newkeys: mode 1 Jul 18 15:04:03 log01 sshd[66163]: debug1: Entering interactive session for SSH2. Jul 18 15:04:03 log01 sshd[66163]: debug2: fd 5 setting O_NONBLOCK Jul 18 15:04:03 log01 sshd[66163]: debug2: fd 6 setting O_NONBLOCK Jul 18 15:04:03 log01 sshd[66163]: debug1: server_init_dispatch_20 Jul 18 15:04:03 log01 sshd[66163]: debug1: server_input_channel_open: ctype session rchan 0 win 131072 max 32768 Jul 18 15:04:03 log01 sshd[66163]: debug1: input_session_request Jul 18 15:04:03 log01 sshd[66163]: debug1: channel 0: new [server-session] Jul 18 15:04:03 log01 sshd[66163]: debug1: session_new: init Jul 18 15:04:03 log01 sshd[66163]: debug1: session_new: session 0 Jul 18 15:04:03 log01 sshd[66163]: debug1: session_open: channel 0 Jul 18 15:04:03 log01 sshd[66163]: debug1: session_open: session 0: link with channel 0 Jul 18 15:04:03 log01 sshd[66163]: debug1: server_input_channel_open: confirm session Jul 18 15:04:03 log01 sshd[66163]: debug1: server_input_channel_req: channel 0 request exec reply 0 Jul 18 15:04:03 log01 sshd[66163]: debug1: session_by_channel: session 0 channel 0 Jul 18 15:04:03 log01 sshd[66163]: debug1: session_input_channel_req: session 0 req exec Jul 18 15:04:03 log01 sshd[66163]: debug2: fd 8 setting O_NONBLOCK Jul 18 15:04:03 log01 sshd[66163]: debug3: fd 8 is O_NONBLOCK Jul 18 15:04:03 log01 sshd[66163]: debug2: fd 10 setting O_NONBLOCK Jul 18 15:04:03 log01 sshd[66163]: debug2: channel 0: rcvd eof Jul 18 15:04:03 log01 sshd[66163]: debug2: channel 0: output open -> drain Jul 18 15:04:03 log01 sshd[66163]: debug2: channel 0: obuf empty Jul 18 15:04:03 log01 sshd[66163]: debug2: channel 0: close_write Jul 18 15:04:03 log01 sshd[66163]: debug2: channel 0: output drain -> closed Jul 18 15:04:03 log01 pid 66163 (sshd), uid 10042: exited on signal 6 About 80 servers have two cronjobs each starting at the full hour. Each cronjob has a random sleep of 0 to 900 seconds before it executes ssh/scp/rsync to copy one or multiple files to that FreeBSD server. One cronjob copies one file ranging in size 30KB to 300KB. The other cronjob copies 10-30 RRD files, ranging in size from 200KB to 1MB. Of these about 160 ssh connections in a time range of 15 minutes, I get 1 to 10 errors at the end of the connection. All files get copied as far I can tell but when the connection closes I see the above signal 6. On the source side of the ssh connection I get error messages like "Connection to xxxx closed by remote host" "ssh_exchange_identification: Connection closed by remote host lost connection" Anyone have an idea what the problem could be that sshd see sigabrt? -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://seven.Alameda.net/~ulf/resume.html From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 11:34: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 30A7E16A4DE for ; Wed, 19 Jul 2006 11:34:04 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 738E943D45 for ; Wed, 19 Jul 2006 11:34:03 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (uxoxqv@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k6JBXuUH044592 for ; Wed, 19 Jul 2006 13:34:01 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k6JBXuV4044591; Wed, 19 Jul 2006 13:33:56 +0200 (CEST) (envelope-from olli) Date: Wed, 19 Jul 2006 13:33:56 +0200 (CEST) Message-Id: <200607191133.k6JBXuV4044591@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <44BCDE8C.9000003@dial.pipex.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 19 Jul 2006 13:34:01 +0200 (CEST) X-Mailman-Approved-At: Wed, 19 Jul 2006 11:53:47 +0000 Cc: Subject: Re: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 11:34:04 -0000 Alex Zbyslaw wrote: > John Baldwin wrote: > > There's no easy answer on this. You'll have to run your own benchmarks. If > > you don't need USB, then you may just want to leave it out of your kernel > > which might help some. > > OK, thanks for the info and suggestions. Regrettably, leaving out USB > isn't an option for us. >From your dmesg excerpt it seems that you have at least three USB controllers in that machine. Depending on your requirements, it might make sense to disable all of them _except_ one, and then connect your USB devices to that one controller (using additional USB hubs if necessary). Of course, the controller that you keep enabled should be the one that's causing the least problems (which seems to be uhci1 "USB-B" in your case, if I read your first email correctly). Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. > Can the denizens of this group enlighten me about what the > advantages of Python are, versus Perl ? "python" is more likely to pass unharmed through your spelling checker than "perl". -- An unknown poster and Fredrik Lundh From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 12:06: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 5A52816A4DD for ; Wed, 19 Jul 2006 12:06:26 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67DDC43D6B for ; Wed, 19 Jul 2006 12:06:25 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (mbcncv@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k6JC6IWv045920 for ; Wed, 19 Jul 2006 14:06:23 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k6JC6Iaj045919; Wed, 19 Jul 2006 14:06:18 +0200 (CEST) (envelope-from olli) Date: Wed, 19 Jul 2006 14:06:18 +0200 (CEST) Message-Id: <200607191206.k6JC6Iaj045919@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <20060718110442.S20487@fw.reifenberger.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 19 Jul 2006 14:06:23 +0200 (CEST) X-Mailman-Approved-At: Wed, 19 Jul 2006 12:08:39 +0000 Cc: Subject: Re: VIA padlock performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 12:06:26 -0000 Michael Reifenberger wrote: > with a via epia EN-15000 MB and an U160 scsi disk I get with eli(4) I get > ~27-40MB/s read/write performance trough eli(4) with AES265 key. > > cryptotest gives: > (totum)(root) ./cryptotest -a aes256 100000 4096 > 7.838 sec, 200000 aes256 crypts, 4096 bytes, 104511751 byte/sec, 797.4 > Mb/sec Quite cool. On my EPIA 10000 (1GHz VIA Nehemia) I did some performance testing a few months ago under RELENG_6 (not sophisticated enough to call it benchmarking). For testing I used scp(1) of a large file (an ISO9660 image, 213 MBytes), because that's what I often need to do, so it's an important thing for me. These are the results (averages of several runs): A - No padlock(4) loaded: 213 MB in 56 seconds (3.8 MB/s) 37.5 s user (67%) 10.0 s sys (18%) 8.5 s int (15%) 0.0 s idle ( 0%) B - With padlock loaded, no bandwidth limit: 213 MB in 33 seconds (6.5 MB/s) 8.0 s user (24%) 16.0 s sys (48%) 9.0 s int (27%) 0.0 s idle ( 0%) C - With padlock loaded, bandwidth limited: 213 MB in 58 seconds (3.7 MB/s) 7.5 s user (13%) 14.5 s sys (25%) 7.0 s int (12%) 29.0 s idle (50%) As you can see, the throughput of scp was almost doubled when padlock(4) was enabled (from 3.8 MB/s to 6.5 MB/s). The time spent in user mode drops to about a fifth, while the "sys" time increases by 60%, which is to be expected (caused by the overhead of setting up and running the padlock engine). The interrupt time doesn't change at all. I did a third test where I limited the bandwith (Dummynet) to about the same value that was reached during the first test. Now the throughput was the same as in the first test (of course), but the CPU was 50% idle and available for other tasks. The other side of the test was a 1.6 GHz Pentium-M which had the test file in a large RAM disk, so the bottleneck was clearly the EPIA system. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. Perl is worse than Python because people wanted it worse. -- Larry Wall From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 12:09: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 CFE5E16A4E1 for ; Wed, 19 Jul 2006 12:09:01 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from smtp-out5.blueyonder.co.uk (smtp-out5.blueyonder.co.uk [195.188.213.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B70B43D73 for ; Wed, 19 Jul 2006 12:08:58 +0000 (GMT) (envelope-from xfb52@dial.pipex.com) Received: from [172.23.170.145] (helo=anti-virus03-08) by smtp-out5.blueyonder.co.uk with smtp (Exim 4.52) id 1G3ArJ-0003E5-6Z; Wed, 19 Jul 2006 13:08:57 +0100 Received: from [82.41.34.175] (helo=[192.168.0.2]) by asmtp-out4.blueyonder.co.uk with esmtp (Exim 4.52) id 1G3ArI-0002V9-Kx; Wed, 19 Jul 2006 13:08:56 +0100 Message-ID: <44BE20D8.609@dial.pipex.com> Date: Wed, 19 Jul 2006 13:08:56 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20060515 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.ORG References: <200607191133.k6JBXuV4044591@lurza.secnetix.de> In-Reply-To: <200607191133.k6JBXuV4044591@lurza.secnetix.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 12:09:01 -0000 Oliver Fromme wrote: >Alex Zbyslaw wrote: > > John Baldwin wrote: > > > There's no easy answer on this. You'll have to run your own benchmarks. If > > > you don't need USB, then you may just want to leave it out of your kernel > > > which might help some. > > > > OK, thanks for the info and suggestions. Regrettably, leaving out USB > > isn't an option for us. > >>From your dmesg excerpt it seems that you have at least >three USB controllers in that machine. Depending on your >requirements, it might make sense to disable all of them >_except_ one, and then connect your USB devices to that >one controller (using additional USB hubs if necessary). >Of course, the controller that you keep enabled should be >the one that's causing the least problems (which seems to >be uhci1 "USB-B" in your case, if I read your first email > > Thanks for the suggestion. Can you tell me how to disable specific controllers? Were you thinking BIOS? or FreeBSD? Can device.hints do this? uhci man page is somewhat brief. I'm not sure which of those controllers I might actually need and it might be none of them. The USB requirement is because there is a DRAC (remote console) card which simulates a USB keyboard/mouse and offhand I'm not sure what they are connected to. But if I know how to turn specific controllers off, I can just try and see if what I need still works :-) (Probably studying the dmesg will give me some hints). Thanks, --Alex From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 13:02: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 1DCEA16A506 for ; Wed, 19 Jul 2006 13:02:32 +0000 (UTC) (envelope-from ato@amper.iem.pw.edu.pl) Received: from amper.iem.pw.edu.pl (amper.iem.pw.edu.pl [194.29.146.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 384EC43E1F for ; Wed, 19 Jul 2006 13:01:28 +0000 (GMT) (envelope-from ato@amper.iem.pw.edu.pl) Received: by amper.iem.pw.edu.pl (Postfix, from userid 700) id 2F13C26AD9; Wed, 19 Jul 2006 15:01:17 +0200 (CEST) Date: Wed, 19 Jul 2006 15:01:17 +0200 From: Andrzej Tobola To: freebsd-hackers@freebsd.org Message-ID: <20060719130117.GA66208@amper.iem.pw.edu.pl> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20060718110442.S20487@fw.reifenberger.com> <200607191206.k6JC6Iaj045919@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607191206.k6JC6Iaj045919@lurza.secnetix.de> User-Agent: Mutt/1.5.11 X-Mailman-Approved-At: Wed, 19 Jul 2006 13:48:45 +0000 Subject: Re: VIA padlock performance 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, 19 Jul 2006 13:02:32 -0000 Hello Oliver, On Wed, Jul 19, 2006 at 02:06:18PM +0200, Oliver Fromme wrote: > On my EPIA 10000 (1GHz VIA Nehemia) I did some performance > testing a few months ago under RELENG_6 (not sophisticated > enough to call it benchmarking). For testing I used scp(1) > of a large file (an ISO9660 image, 213 MBytes), because > that's what I often need to do, so it's an important thing > for me. These are the results (averages of several runs): How exactly you enable it ? I have on -current: # kldload padlock DLOCK: No ACE support. module_register_init: MOD_LOAD (padlock, 0xc3dd790c, 0) error 22 However: % kldstat Id Refs Address Size Name ............... 20 1 0xc3dd6000 3000 padlock.ko 21 1 0xc3dd9000 19000 crypto.ko 22 1 0xc3f2d000 9000 zlib.ko via5% uname -a FreeBSD via5 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Sun Jul 16 19:27:03 CEST 2006 ato@vol2:/usr/obj/i386/usr/src/sys/DISKLESS i386 cheers, -a From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 14:06: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 BFFDF16A4DF for ; Wed, 19 Jul 2006 14:06:48 +0000 (UTC) (envelope-from victor.cruceru@gmail.com) Received: from wx-out-0102.google.com (wx-out-0102.google.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EB9943D49 for ; Wed, 19 Jul 2006 14:06:44 +0000 (GMT) (envelope-from victor.cruceru@gmail.com) Received: by wx-out-0102.google.com with SMTP id s7so104747wxc for ; Wed, 19 Jul 2006 07:06:43 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=qp2BKlIeqlTRYewrgEHrI9C/Prfa3zvhZ822gNTk8sbK4Z+Qq0DepSDClevzP64HCuNdsAefqY/trGkNmxGa/aPWquLWHddrKVWPhwuNoozncO0/MCH3q4aFqqKKzsUGwizZw8m/MpMynaIuiUCtDME8M9FtozytYdA1/UeWQDg= Received: by 10.70.45.18 with SMTP id s18mr1199894wxs; Wed, 19 Jul 2006 07:06:43 -0700 (PDT) Received: by 10.70.49.2 with HTTP; Wed, 19 Jul 2006 07:06:43 -0700 (PDT) Message-ID: <49402550607190706q6548ebe7lb9c4dd1ff66b3f1@mail.gmail.com> Date: Wed, 19 Jul 2006 17:06:43 +0300 From: "victor cruceru" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: "swiN: clock sio" process taking 75% CPU X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: soc-victor@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 14:06:48 -0000 Hi Gareth, Did you try to disable the console screensaver? Sometimes this helps. > Message: 1 > Date: Tue, 18 Jul 2006 13:17:32 +0100 > From: Gareth McCaughan > Subject: "swiN: clock sio" process taking 75% CPU > To: freebsd-hackers@freebsd.org > Message-ID: <200607181317.33416.gmccaughan@synaptics-uk.com> > Content-Type: text/plain; charset="us-ascii" > > (I've asked this question on -questions and -stable, with no success; > hence I'm taking it to the assembled wizardry of -hackers. A bit of > googling suggests that I'm far from the first person to have had a > similar problem, though it seems to be worse for me than for the > others I've found.) > > I have a box running 6-STABLE, cvsupped last week. > Until recently it was running 5.something and showed > the same peculiar behaviour as I'm about to describe. > Further back, it used to run 4.x, and I don't recall > anything like this happening then. > > About 6 minutes after booting (on three occasions, but I > don't guarantee this doesn't vary), a process (well, a > kernel interrupt thread, I guess) that appears in the > output of "ps" as "[swi4: clock sio]" begins to use > about 3/4 of the machine's CPU. I think it does so > more or less instantaneously. It continues to do so > indefinitely, so far as I can tell. > > I'm not aware of anything specific that triggers this, > though I suppose there must *be* something. It happens > apparently spontaneously, on a lightly loaded machine. > > Those cycles are genuinely being consumed; other processes > run much more slowly than they "should", and take much more > wall time than CPU time. > > I've tried diddling my kernel's HZ value; the behaviour > with HZ=100 and with HZ=1000 is the same, so far as I'm > able to tell. I've no idea whether it might be relevant, > but I have option DEVICE_POLLING turned on; toggling > sysctl kern.polling.enable doesn't seem to make any > difference. > > The machine is a very uninteresting single-CPU Athlon box, > clocked at 1.6GHz, several years old. Here's its dmesg output, > with a few uninteresting bits of information leakage elided. > -- victor cruceru ------------------------------------------------ Non est respondendum ad omnia. ( Cicero, Pro Murena Oratio ) ------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 14:14: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 4AE0816A4DF for ; Wed, 19 Jul 2006 14:14:12 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AB1A43D5A for ; Wed, 19 Jul 2006 14:14:10 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (wtcfqp@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k6JEE4O7050308; Wed, 19 Jul 2006 16:14:09 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k6JEE4Dw050307; Wed, 19 Jul 2006 16:14:04 +0200 (CEST) (envelope-from olli) Date: Wed, 19 Jul 2006 16:14:04 +0200 (CEST) Message-Id: <200607191414.k6JEE4Dw050307@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, ato@iem.pw.edu.pl In-Reply-To: <20060719130117.GA66208@amper.iem.pw.edu.pl> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 19 Jul 2006 16:14:10 +0200 (CEST) X-Mailman-Approved-At: Wed, 19 Jul 2006 14:15:26 +0000 Cc: Subject: Re: VIA padlock performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, ato@iem.pw.edu.pl List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 14:14:12 -0000 Andrzej Tobola wrote: > Oliver Fromme wrote: > > On my EPIA 10000 (1GHz VIA Nehemia) I did some performance > > testing a few months ago under RELENG_6 (not sophisticated > > enough to call it benchmarking). For testing I used scp(1) > > of a large file (an ISO9660 image, 213 MBytes), because > > that's what I often need to do, so it's an important thing > > for me. These are the results (averages of several runs): > > How exactly you enable it ? You need crypto, cryptodev and padlock in your kernel; see the padlock(4) manpage (you can also load it as a module). That's all. You don't have to enable it explicitly. > I have on -current: > # kldload padlock > DLOCK: No ACE support. That output is pretty clear: Either your CPU does not support ACE (that's the name of Nehemia's padlock engine), or it isn't recognized by your version of the padlock(4) driver. What kind of CPU do you have exactly? Please quote the line from your dmesg output. Mine says: CPU: VIA C3 Nehemiah+RNG+ACE (1002.28-MHz 686-class CPU) Origin = "CentaurHauls" Id = 0x698 Stepping = 8 Features=0x381b83f As you can see, it explicitly mentions "ACE" in the first line. By the way, it also mentions "RNG" which is a hardware random-number generator, which is supported and used by FreeBSD through /dev/random automatically. Cool, eh? :-) (You also get the information from ``sysctl hw.model''.) > 20 1 0xc3dd6000 3000 padlock.ko > 21 1 0xc3dd9000 19000 crypto.ko You will also need "cryptodev" in addition to "crypto". "crypto" manages only in-kernel access to the cryptographic facilities (including hardware acceleration through the padlock driver), which is used by FAST_IPSEC, for example. "cryptodev" will enable access by userland applications (e.g. scp) and libraries (OpenSSL) through /dev/crypto. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "If you think C++ is not overly complicated, just what is a protected abstract virtual base pure virtual private destructor, and when was the last time you needed one?" -- Tom Cargil, C++ Journal From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 14:38: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 62D8116A4DA for ; Wed, 19 Jul 2006 14:38:22 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E489943D49 for ; Wed, 19 Jul 2006 14:38:19 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from mail01.m-online.net (svr21.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 44FCF98229; Wed, 19 Jul 2006 16:38:18 +0200 (CEST) Received: from fw.reifenberger.com (ppp-62-245-163-2.dynamic.mnet-online.de [62.245.163.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.m-online.net (Postfix) with ESMTP id 3599691A74; Wed, 19 Jul 2006 16:38:18 +0200 (CEST) Received: from localhost (mike@localhost) by fw.reifenberger.com (8.13.6/8.13.4/Submit) with ESMTP id k6JEcHPD038070; Wed, 19 Jul 2006 16:38:17 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Wed, 19 Jul 2006 16:38:17 +0200 (CEST) From: Michael Reifenberger To: freebsd-hackers@freebsd.org, ato@iem.pw.edu.pl In-Reply-To: <200607191414.k6JEE4Dw050307@lurza.secnetix.de> Message-ID: <20060719163232.C38044@fw.reifenberger.com> References: <200607191414.k6JEE4Dw050307@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: VIA padlock performance 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, 19 Jul 2006 14:38:22 -0000 On Wed, 19 Jul 2006, Oliver Fromme wrote: ... > You will also need "cryptodev" in addition to "crypto". > "crypto" manages only in-kernel access to the cryptographic > facilities (including hardware acceleration through the > padlock driver), which is used by FAST_IPSEC, for example. > "cryptodev" will enable access by userland applications > (e.g. scp) and libraries (OpenSSL) through /dev/crypto. > With OpenSSL you have two choices: engine cryptodev : uses /dev/crypto engine padlock : uses the xcrypt commands directly engine padlock should be the fastest of course. Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 15:13: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 03E8616A4E0; Wed, 19 Jul 2006 15:13:32 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D498A43D46; Wed, 19 Jul 2006 15:13:30 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from mail01.m-online.net (svr21.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id DAE2298062; Wed, 19 Jul 2006 17:13:29 +0200 (CEST) Received: from fw.reifenberger.com (ppp-62-245-163-2.dynamic.mnet-online.de [62.245.163.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.m-online.net (Postfix) with ESMTP id C55C7918E8; Wed, 19 Jul 2006 17:13:29 +0200 (CEST) Received: from localhost (mike@localhost) by fw.reifenberger.com (8.13.6/8.13.4/Submit) with ESMTP id k6JFDT9A038211; Wed, 19 Jul 2006 17:13:29 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Wed, 19 Jul 2006 17:13:29 +0200 (CEST) From: Michael Reifenberger To: Christian Brueffer In-Reply-To: <20060718131356.GC1756@haakonia.hitnet.RWTH-Aachen.DE> Message-ID: <20060719171025.P38044@fw.reifenberger.com> References: <20060718110442.S20487@fw.reifenberger.com> <20060718131356.GC1756@haakonia.hitnet.RWTH-Aachen.DE> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1669140317-1153322009=:38044" Cc: FreeBSD-Hackers Subject: Re: VIA padlock performance 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, 19 Jul 2006 15:13:32 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1669140317-1153322009=:38044 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Tue, 18 Jul 2006, Christian Brueffer wrote: ... > > Nice, could you update padlock(4) with information about supported C7 > processors? > Something like the attached patch? Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com --0-1669140317-1153322009=:38044 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=man Content-Transfer-Encoding: BASE64 Content-ID: <20060719171329.B38044@fw.reifenberger.com> Content-Description: Content-Disposition: attachment; filename=man SW5kZXg6IG1hbjQuaTM4Ni9wYWRsb2NrLjQNCj09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT0NClJDUyBmaWxlOiAvaG9tZS9uY3ZzL3NyYy9zaGFyZS9tYW4vbWFu NC9tYW40LmkzODYvcGFkbG9jay40LHYNCnJldHJpZXZpbmcgcmV2aXNpb24g MS4zDQpkaWZmIC11IC1yMS4zIHBhZGxvY2suNA0KLS0tIG1hbjQuaTM4Ni9w YWRsb2NrLjQJNSBKdW4gMjAwNiAxNjoyNDozMSAtMDAwMAkxLjMNCisrKyBt YW40LmkzODYvcGFkbG9jay40CTE5IEp1bCAyMDA2IDE1OjEyOjM0IC0wMDAw DQpAQCAtMjksNyArMjksNyBAQA0KIC5Pcw0KIC5TaCBOQU1FDQogLk5tIHBh ZGxvY2sNCi0uTmQgImRyaXZlciBmb3IgdGhlIGNyeXB0b2dyYXBoaWMgZnVu Y3Rpb25zIGFuZCBSTkcgaW4gVklBIEMzIGFuZCBFZGVuIHByb2Nlc3NvcnMi DQorLk5kICJkcml2ZXIgZm9yIHRoZSBjcnlwdG9ncmFwaGljIGZ1bmN0aW9u cyBpbiBWSUEgQzcsIEMzIGFuZCBFZGVuIHByb2Nlc3NvcnMiDQogLlNoIFNZ Tk9QU0lTDQogVG8gY29tcGlsZSB0aGlzIGRyaXZlciBpbnRvIHRoZSBrZXJu ZWwsDQogcGxhY2UgdGhlIGZvbGxvd2luZyBsaW5lcyBpbiB5b3VyDQpAQCAt NDksNiArNDksOSBAQA0KIFRoZSBDMyBhbmQgRWRlbiBwcm9jZXNzb3Igc2Vy aWVzIGZyb20gVklBIGluY2x1ZGUgaGFyZHdhcmUgYWNjZWxlcmF0aW9uIGZv cg0KIEFFUywgYXMgd2VsbCBhcyBhIGhhcmR3YXJlIHJhbmRvbSBudW1iZXIg Z2VuZXJhdG9yLg0KIC5QcA0KK1RoZSBDNyBwcm9jZXNzb3Igc2VyaWVzIGZy b20gVklBIGluY2x1ZGUgaGFyZHdhcmUgYWNjZWxlcmF0aW9uIGZvcg0KK0FF UywgU0hBIGFuZCBSU0EsIGFzIHdlbGwgYXMgYSBoYXJkd2FyZSByYW5kb20g bnVtYmVyIGdlbmVyYXRvci4NCisuUHANCiBUaGUNCiAuTm0NCiBkcml2ZXIg cmVnaXN0ZXJzIGl0c2VsZiB0byBhY2NlbGVyYXRlIEFFUyBvcGVyYXRpb25z IGZvcg0K --0-1669140317-1153322009=:38044-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 15:52: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 1FFAB16A4DD for ; Wed, 19 Jul 2006 15:52:19 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BA3A43D5A for ; Wed, 19 Jul 2006 15:52:06 +0000 (GMT) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from circe (circe.rz.RWTH-Aachen.DE [134.130.3.36]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0J2N00MRJQQPPM@ms-dienst.rz.rwth-aachen.de> for hackers@freebsd.org; Wed, 19 Jul 2006 17:52:01 +0200 (MEST) Received: from talos.rz.RWTH-Aachen.DE ([134.130.3.22]) by circe (MailMonitor for SMTP v1.2.2 ) ; Wed, 19 Jul 2006 17:52:00 +0200 (MEST) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by smarthost.rwth-aachen.de (8.13.6/8.13.1/1) with ESMTP id k6JFpxY4006181; Wed, 19 Jul 2006 17:51:59 +0200 Received: from haakonia.hitnet.rwth-aachen.de ([137.226.181.92]) by bigboss.hitnet.rwth-aachen.de with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1G3ELA-0000jF-Dr; Wed, 19 Jul 2006 17:52:00 +0200 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 344B33F413; Wed, 19 Jul 2006 17:52:00 +0200 (CEST) Date: Wed, 19 Jul 2006 17:52:00 +0200 From: Christian Brueffer In-reply-to: <20060719171025.P38044@fw.reifenberger.com> To: Michael Reifenberger Message-id: <20060719155200.GD1342@haakonia.hitnet.RWTH-Aachen.DE> MIME-version: 1.0 Content-type: multipart/signed; boundary=FN+gV9K+162wdwwF; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.11 X-Operating-System: FreeBSD 6.1-STABLE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <20060718110442.S20487@fw.reifenberger.com> <20060718131356.GC1756@haakonia.hitnet.RWTH-Aachen.DE> <20060719171025.P38044@fw.reifenberger.com> Cc: FreeBSD-Hackers Subject: Re: VIA padlock performance 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, 19 Jul 2006 15:52:19 -0000 --FN+gV9K+162wdwwF Content-Type: multipart/mixed; boundary="WChQLJJJfbwij+9x" Content-Disposition: inline --WChQLJJJfbwij+9x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 19, 2006 at 05:13:29PM +0200, Michael Reifenberger wrote: > On Tue, 18 Jul 2006, Christian Brueffer wrote: > ... > > > >Nice, could you update padlock(4) with information about supported C7 > >processors? > > >=20 > Something like the attached patch? >=20 I'd prefer a more compact version. How about the attached patch? Also applies some more word smithing. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --WChQLJJJfbwij+9x Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="padlock.4.diff" Index: padlock.4 =================================================================== RCS file: /data/ncvs/freebsd/src/share/man/man4/man4.i386/padlock.4,v retrieving revision 1.3 diff -u -r1.3 padlock.4 --- padlock.4 5 Jun 2006 16:24:31 -0000 1.3 +++ padlock.4 19 Jul 2006 15:46:27 -0000 @@ -24,12 +24,12 @@ .\" .\" $FreeBSD: src/share/man/man4/man4.i386/padlock.4,v 1.3 2006/06/05 16:24:31 pjd Exp $ .\" -.Dd June 5, 2006 +.Dd July 19, 2006 .Dt PADLOCK 4 i386 .Os .Sh NAME .Nm padlock -.Nd "driver for the cryptographic functions and RNG in VIA C3 and Eden processors" +.Nd "driver for the cryptographic functions and RNG in VIA C3, C7 and Eden processors" .Sh SYNOPSIS To compile this driver into the kernel, place the following lines in your @@ -47,14 +47,18 @@ .Ed .Sh DESCRIPTION The C3 and Eden processor series from VIA include hardware acceleration for -AES, as well as a hardware random number generator. +AES. +The C7 series includes hardware acceleration for AES, SHA and RSA. +All of the above processor series include a hardware random number generator. .Pp The .Nm driver registers itself to accelerate AES operations for .Xr crypto 4 . -It also registers itself to accelerate various HMAC algorithms, but there is no -hardware acceleration for those algorithms, this is only needed, so +It also registers itself to accelerate various HMAC algorithms, although +there is no +hardware acceleration for those algorithms. +This is only needed, so .Nm can work with .Xr fast_ipsec 4 . @@ -74,6 +78,7 @@ .Sh SEE ALSO .Xr crypt 3 , .Xr crypto 4 , +.Xr fast_ipsec 4 , .Xr intro 4 , .Xr random 4 , .Xr crypto 9 --WChQLJJJfbwij+9x-- --FN+gV9K+162wdwwF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEvlUgbHYXjKDtmC0RAsD2AJ49BW+hwxr+XovHwBCWfjMyN7IvaQCfVacS kxloGgKTFpaBlNQrYDOSoqw= =9yZO -----END PGP SIGNATURE----- --FN+gV9K+162wdwwF-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 14:51:41 2006 Return-Path: X-Original-To: freebsd-hackers@FreeBSD.ORG Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E24E316A4DD for ; Wed, 19 Jul 2006 14:51:41 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F01143D5E for ; Wed, 19 Jul 2006 14:51:40 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (tcfqps@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k6JEpXHl052175 for ; Wed, 19 Jul 2006 16:51:39 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k6JEpXYH052174; Wed, 19 Jul 2006 16:51:33 +0200 (CEST) (envelope-from olli) Date: Wed, 19 Jul 2006 16:51:33 +0200 (CEST) Message-Id: <200607191451.k6JEpXYH052174@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <20060719163232.C38044@fw.reifenberger.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 19 Jul 2006 16:51:39 +0200 (CEST) X-Mailman-Approved-At: Wed, 19 Jul 2006 16:00:10 +0000 Cc: Subject: Re: VIA padlock performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 14:51:42 -0000 Michael Reifenberger wrote: > On Wed, 19 Jul 2006, Oliver Fromme wrote: > ... > > You will also need "cryptodev" in addition to "crypto". > > "crypto" manages only in-kernel access to the cryptographic > > facilities (including hardware acceleration through the > > padlock driver), which is used by FAST_IPSEC, for example. > > "cryptodev" will enable access by userland applications > > (e.g. scp) and libraries (OpenSSL) through /dev/crypto. > > With OpenSSL you have two choices: > engine cryptodev : uses /dev/crypto > engine padlock : uses the xcrypt commands directly > > engine padlock should be the fastest of course. Is there any kind of locking (in hardware or software)? I mean, what happens if both padlock(4) and OpenSSL try to access the ACE engine directly? (If the answer is "don't do that", then it's probably better to use cryptodev with OpenSSL, even if it's a little less efficient.) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "One of the main causes of the fall of the Roman Empire was that, lacking zero, they had no way to indicate successful termination of their C programs." -- Robert Firth From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 16:09:30 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 2E49816A4DF for ; Wed, 19 Jul 2006 16:09:30 +0000 (UTC) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA4D743D4C for ; Wed, 19 Jul 2006 16:09:29 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id B71BD1DEFC; Wed, 19 Jul 2006 12:09:28 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 7A3274AC2C; Wed, 19 Jul 2006 12:09:31 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17598.22843.432022.14966@canoe.dclg.ca> Date: Wed, 19 Jul 2006 12:09:31 -0400 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid Subject: more if_tun frustration. 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, 19 Jul 2006 16:09:30 -0000 To recap, I have tun0: flags=8051 mtu 1500 inet6 fe80::214:22ff:fede:f175%tun0 prefixlen 64 scopeid 0x5 inet 192.168.12.2 --> 192.168.22.1 netmask 0xffffffff Opened by PID 15236 And I see: [4:18:318]root@canoe:/usr/home/dgilbert> netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default xx.yy.zz.33 UGS 1 3393155 bge0 xx.yy.zz.32/27 link#1 UC 0 0 bge0 xx.yy.zz.33 00:80:c8:c9:22:31 UHLW 2 115 bge0 1178 127.0.0.1 127.0.0.1 UH 0 6251818 lo0 192.168.22.1 192.168.12.2 UH 0 0 tun0 frstratingly, when I ask: [4:21:321]root@canoe:/usr/home/dgilbert> route get 192.168.22.1 route to: 192.168.22.1 destination: default mask: default gateway: strike1 interface: bge0 flags: And even more frustratingly, when I do: [4:16:316]root@canoe:/usr/home/dgilbert> route add 192.168.24.1 192.168.12.2 add host 192.168.24.1: gateway 192.168.12.2 I then see: [4:18:318]root@canoe:/usr/home/dgilbert> netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 66.96.20.33 UGS 1 3393155 bge0 66.96.20.32/27 link#1 UC 0 0 bge0 66.96.20.33 00:80:c8:c9:22:31 UHLW 2 115 bge0 1178 127.0.0.1 127.0.0.1 UH 0 6251818 lo0 192.168.22.1 192.168.12.2 UH 0 0 tun0 192.168.24.1 192.168.12.2 UGHS 0 0 bge0 !?! Clearly, both 24.1 and 22.1 should route via tun0. Even though 22.1 says tun0 here, it in fact routes via bge0. Any clues offered as to what I'm doing wrong? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================ From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 16:31: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 08AEF16A4E6; Wed, 19 Jul 2006 16:31:48 +0000 (UTC) (envelope-from mike@reifenberger.com) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F0F743D49; Wed, 19 Jul 2006 16:31:47 +0000 (GMT) (envelope-from mike@reifenberger.com) Received: from mail01.m-online.net (svr21.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id 139E173E16; Wed, 19 Jul 2006 18:31:46 +0200 (CEST) Received: from fw.reifenberger.com (ppp-62-245-163-2.dynamic.mnet-online.de [62.245.163.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.m-online.net (Postfix) with ESMTP id 063E5919E8; Wed, 19 Jul 2006 18:31:45 +0200 (CEST) Received: from localhost (mike@localhost) by fw.reifenberger.com (8.13.6/8.13.4/Submit) with ESMTP id k6JGVjU8038495; Wed, 19 Jul 2006 18:31:45 +0200 (CEST) (envelope-from mike@reifenberger.com) X-Authentication-Warning: fw.reifenberger.com: mike owned process doing -bs Date: Wed, 19 Jul 2006 18:31:45 +0200 (CEST) From: Michael Reifenberger To: Christian Brueffer In-Reply-To: <20060719155200.GD1342@haakonia.hitnet.RWTH-Aachen.DE> Message-ID: <20060719183116.R38044@fw.reifenberger.com> References: <20060718110442.S20487@fw.reifenberger.com> <20060718131356.GC1756@haakonia.hitnet.RWTH-Aachen.DE> <20060719171025.P38044@fw.reifenberger.com> <20060719155200.GD1342@haakonia.hitnet.RWTH-Aachen.DE> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD-Hackers Subject: Re: VIA padlock performance 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, 19 Jul 2006 16:31:48 -0000 On Wed, 19 Jul 2006, Christian Brueffer wrote: ... >> Something like the attached patch? >> > > I'd prefer a more compact version. How about the attached patch? Also > applies some more word smithing. > commited. Thanks! Bye/2 --- Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 17:40: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 B267016A4DD for ; Wed, 19 Jul 2006 17:40:58 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from koef.zs64.net (koef.zs64.net [213.238.47.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67F5D43D5F for ; Wed, 19 Jul 2006 17:40:46 +0000 (GMT) (envelope-from stb@lassitu.de) Received: (from stb@koef.zs64.net) (authenticated) by koef.zs64.net (8.13.7/8.13.7) with ESMTP id k6JHeHcK056963 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Wed, 19 Jul 2006 19:40:27 +0200 (CEST) (envelope-from stb@lassitu.de) In-Reply-To: <17596.26134.831813.158138@canoe.dclg.ca> References: <17596.26134.831813.158138@canoe.dclg.ca> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Wed, 19 Jul 2006 19:40:12 +0200 To: David Gilbert X-Mailer: Apple Mail (2.752.2) Cc: freebsd-hackers@freebsd.org Subject: Re: On the use of Tun interfaces. 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, 19 Jul 2006 17:40:58 -0000 Am 18.07.2006 um 06:39 schrieb David Gilbert: > [3:15:315]dgilbert@canoe:~/devel/failsafe> netstat -rn ... > 192.168.22.1 192.168.12.2 UH 0 0 tun0 > > shouldn't the last route there be active? Any clues here? The last time I tried to get a tun interface set up (admittedly, back in 2.2 days), I had similiar problems with weird routing entries. IIRC, when configuring the tun interface, I failed to initialize all sockaddr's properly. The interface looked right, but the routes were botched. memset took care of it then. HTH, Stefan -- Stefan Bethke Fon +49 170 346 0140 From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 18:09:30 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 B4CCA16A4DA for ; Wed, 19 Jul 2006 18:09:30 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33E9443D45 for ; Wed, 19 Jul 2006 18:09:30 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6JI9Hi7063912; Wed, 19 Jul 2006 14:09:29 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Gareth McCaughan Date: Wed, 19 Jul 2006 13:36:54 -0400 User-Agent: KMail/1.9.1 References: <200607181317.33416.gmccaughan@synaptics-uk.com> <200607181441.26875.jhb@freebsd.org> <200607191711.11966.gmccaughan@synaptics-uk.com> In-Reply-To: <200607191711.11966.gmccaughan@synaptics-uk.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607191336.54880.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Wed, 19 Jul 2006 14:09:29 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1609/Wed Jul 19 08:13:27 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 19 Jul 2006 18:09:30 -0000 On Wednesday 19 July 2006 12:11, Gareth McCaughan wrote: > (The particular screen saver I turned on was the one called > "warp"; I haven't checked yet whether others have the same > CPU-guzzling effect.) Actually, if you could test that, that would be helpful as that would narrow down where the bug is (syscons vs. the specific screen saver). -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 16:11:50 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 9290016A4DE; Wed, 19 Jul 2006 16:11:50 +0000 (UTC) (envelope-from GMcCaughan@synaptics-uk.com) Received: from mx2.synaptics-uk.com (mx2.synaptics-uk.com [194.203.111.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id E22E343D49; Wed, 19 Jul 2006 16:11:44 +0000 (GMT) (envelope-from GMcCaughan@synaptics-uk.com) Received: from firewall.synaptics-uk.com ([194.203.111.212] helo=ukexchange2k.synaptics-inc.local) by mx2.synaptics-uk.com with esmtp (Exim 4.20) id 1G3F70-00041K-NL; Wed, 19 Jul 2006 17:41:26 +0100 Received: from lists.synaptics-uk.com ([172.20.11.6]) by ukexchange2k.synaptics-inc.local with Microsoft SMTPSVC(5.0.2195.6713); Wed, 19 Jul 2006 17:11:12 +0100 Received: from [172.20.11.5] (unknown [172.20.11.5]) by lists.synaptics-uk.com (Postfix) with ESMTP id 1521B17011; Wed, 19 Jul 2006 16:51:36 +0100 (BST) From: Gareth McCaughan To: John Baldwin Date: Wed, 19 Jul 2006 17:11:11 +0100 User-Agent: KMail/1.9.1 References: <200607181317.33416.gmccaughan@synaptics-uk.com> <200607181804.44813.gmccaughan@synaptics-uk.com> <200607181441.26875.jhb@freebsd.org> In-Reply-To: <200607181441.26875.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607191711.11966.gmccaughan@synaptics-uk.com> X-OriginalArrivalTime: 19 Jul 2006 16:11:12.0816 (UTC) FILETIME=[F46B9300:01C6AB4D] X-Mailman-Approved-At: Wed, 19 Jul 2006 18:35:55 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 19 Jul 2006 16:11:50 -0000 On Tuesday 2006-07-18 19:41, John Baldwin wrote: > On Tuesday 18 July 2006 13:04, Gareth McCaughan wrote: > > On Tuesday 2006-07-18 16:54, Deomid Ryabkov wrote: > > > Gareth McCaughan wrote: > > > > > > > About 6 minutes after booting (on three occasions, but I > > > > don't guarantee this doesn't vary), a process (well, a > > > > kernel interrupt thread, I guess) that appears in the > > > > output of "ps" as "[swi4: clock sio]" begins to use > > > > about 3/4 of the machine's CPU. ... > In that case, something is scheduling a lot of timeouts (via callout_reset() > or timeout()) or you have timeout handlers that are taking a very long time > to run. There aren't any easy ways to debug this. :-P You can try turning > on the DIGANOSTIC check in kern_timeout.c to catch long-running timeouts, and > you can try adding some KTR traces to softclock() to see which timeout > functions are running and try to do some analysis on that. Thanks for the excellent advice! So, I turned on DIAGNOSTIC. That produced only two messages, both implicating what turns out to be the scrn_timer function from syscons.c. Once it took about 10ms, once about 100ms. There may for all I know have been an awful lot of 10ms-ish ones, since the threshold doubles on each report. (I'll check, but not today. If the answer is that the DIAGNOSTIC check just happened to catch a couple of freakishly long times, then we've found a situation where timeout functions can take too much CPU despite no single one being bad enough to be noticed; in that case, it might be worth enhancing the code in softclock() a bit.) After a quick glance at the code for scrn_timer, I tried disabling the console screen saver (saver="NO" in rc.conf), and lo! all is now well. It seems to me that one of two things should be done. 1. If this is considered pilot error: Put a big warning somewhere saying that the screen saver makes no attempt to avoid eating all your CPU even when the machine is heavily loaded, and that it should therefore not be used if your machine will ever be used unattended. 2. If not: Find out why the syscons screen saver is taking so many cycles on my machine, and find a way to stop it. I'd be up for putting a bit of work into #2, but if the consensus is that I was a twit to think that I could use a machine for real work with the screen saver enabled then maybe #1 would do almost as well. (The particular screen saver I turned on was the one called "warp"; I haven't checked yet whether others have the same CPU-guzzling effect.) -- g From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 19 18:47: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 46D8516A4DF for ; Wed, 19 Jul 2006 18:47:29 +0000 (UTC) (envelope-from jahrens@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4085E43D6E for ; Wed, 19 Jul 2006 18:47:26 +0000 (GMT) (envelope-from jahrens@centtech.com) Received: from moat.centtech.com (mailbox.centtech.com [10.20.0.15]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k6JIlPFn001483 for ; Wed, 19 Jul 2006 13:47:25 -0500 (CDT) (envelope-from jahrens@centtech.com) Received: from 70.52.116.83 (SquirrelMail authenticated user jahrens); by otter.centtech.com with HTTP; Wed, 19 Jul 2006 13:47:25 -0500 (CDT) Message-ID: <3714.70.52.116.83.1153334845.squirrel@70.52.116.83> In-Reply-To: <200607191451.k6JEpXYH052174@lurza.secnetix.de> References: <20060719163232.C38044@fw.reifenberger.com> <200607191451.k6JEpXYH052174@lurza.secnetix.de> Date: Wed, 19 Jul 2006 13:47:25 -0500 (CDT) From: "Jesse Ahrens" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.5.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal X-Virus-Scanned: ClamAV 0.87.1/1609/Wed Jul 19 07:13:27 2006 on mh2.centtech.com X-Virus-Status: Clean Subject: Re: VIA padlock performance X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jahrens@centtech.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2006 18:47:29 -0000 There's no locking in the hardware, all the xcrypt commands are ring3 accessible. Shouldn't be an issue to use either. > Michael Reifenberger wrote: > > On Wed, 19 Jul 2006, Oliver Fromme wrote: > > ... > > > You will also need "cryptodev" in addition to "crypto". > > > "crypto" manages only in-kernel access to the cryptographic > > > facilities (including hardware acceleration through the > > > padlock driver), which is used by FAST_IPSEC, for example. > > > "cryptodev" will enable access by userland applications > > > (e.g. scp) and libraries (OpenSSL) through /dev/crypto. > > > > With OpenSSL you have two choices: > > engine cryptodev : uses /dev/crypto > > engine padlock : uses the xcrypt commands directly > > > > engine padlock should be the fastest of course. > > Is there any kind of locking (in hardware or software)? > I mean, what happens if both padlock(4) and OpenSSL try > to access the ACE engine directly? > > (If the answer is "don't do that", then it's probably > better to use cryptodev with OpenSSL, even if it's a > little less efficient.) > > Best regards > Oliver > > -- > Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing > Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd > Any opinions expressed in this message may be personal to the author > and may not necessarily reflect the opinions of secnetix in any way. > > "One of the main causes of the fall of the Roman Empire was that, > lacking zero, they had no way to indicate successful termination > of their C programs." > -- Robert Firth > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 01:40:27 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 2165316A4E1 for ; Thu, 20 Jul 2006 01:40:27 +0000 (UTC) (envelope-from davidn@datalinktech.com.au) Received: from mail-ihug.icp-qv1-irony1.iinet.net.au (ihug-mail.icp-qv1-irony1.iinet.net.au [203.59.1.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02CB743D4C for ; Thu, 20 Jul 2006 01:40:24 +0000 (GMT) (envelope-from davidn@datalinktech.com.au) Received: from 203-206-162-119.perm.iinet.net.au (HELO mail.datalinktech.com.au) ([203.206.162.119]) by mail-ihug.icp-qv1-irony1.iinet.net.au with ESMTP; 20 Jul 2006 09:39:54 +0800 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.07,158,1151856000"; d="scan'208"; a="570656895:sNHT787854582" Received: from [192.168.4.232] ([192.168.4.232]) by mail.datalinktech.com.au with esmtp; Thu, 20 Jul 2006 11:39:53 +1000 id 0018D947.44BEDEE9.00012B54 Message-ID: <44BEDECF.5010609@datalinktech.com.au> Date: Thu, 20 Jul 2006 11:39:27 +1000 From: David Nugent User-Agent: Thunderbird 1.5.0.4 (X11/20060704) MIME-Version: 1.0 To: Matthias Andree References: <200607092136.k69LaNDX055391@www.freebsd.org> <84dead720607092015q7f1701abse143f3855c2aa95a@mail.gmail.com> <1152540567.99616@origin.intron.ac> <44B2AE69.4080703@elischer.org> <44B2D2DF.2000401@sh.cvut.cz> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, delphij@delphij.net, Julian Elischer , mag@intron.ac Subject: Re: kern/99979: Get Ready for Kernel Module in C++ 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, 20 Jul 2006 01:40:27 -0000 Matthias Andree wrote: >> Deciding that some features are bad beforehand, before you evaluate them >> is IMO bad idea. Let interested people write a bunch of C++ modules with >> the complete language before deciding on what shouldn't be used. >> > > No, that won't work -- plus you need a bunch of run-time support > (libstdc++ isn't exactly something that belongs into the kernel you know). > libstdc++ would not be used, just as userland libc isn't. There is a spec for embedded C++, and it is certainly appropriate to kernel level development. Many parts of the language that require runtime support can be dropped with impunity; for example most embedded environments don't include for exceptions , rtti, many don't support objects at module scope with constructors/destructors, and so on. C++ itself is quite usable in an embedded environment, but you don't (and should not expect) to get the complete feature list of the mainstream language. From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 04:35:07 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 D760516A4DD for ; Thu, 20 Jul 2006 04:35:07 +0000 (UTC) (envelope-from jdp@polstra.com) Received: from blake.polstra.com (blake.polstra.com [64.81.189.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 656C043D45 for ; Thu, 20 Jul 2006 04:35:07 +0000 (GMT) (envelope-from jdp@polstra.com) Received: from strings.polstra.com (strings.polstra.com [64.81.189.67]) by blake.polstra.com (8.13.6/8.13.6) with ESMTP id k6K4Z2SR019069; Wed, 19 Jul 2006 21:35:03 -0700 (PDT) (envelope-from jdp@polstra.com) Message-ID: X-Mailer: XFMail 1.5.5 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <44BB9D21.3010400@dial.pipex.com> Date: Wed, 19 Jul 2006 21:35:02 -0700 (PDT) From: John Polstra To: Alex Zbyslaw Cc: freebsd-hackers@freebsd.org Subject: RE: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 04:35:07 -0000 On 17-Jul-2006 Alex Zbyslaw wrote: > I was monitoring a machine with "systat -vmstat" and noticed something > about the interrupts and I don't know if it's a problem or not. If it > is a problem, is there anything I can do about it? > > The interrupts for the network interface (em0) on irq 64 exactly match > those for a uhc device on irq 16. > > And the interrupts for the hardware raid (amr) on irq 46 exactly match > those for a uhc device on irq 18. The problem involving the "em" device was solved in -current around January by making the device use a fast interrupt handler. If you can update to the latest driver from -current (if it will build on whatever version you are running), you can solve that part of the problem. I don't think there's an equivalent fix for the "amr" driver, though. John From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 08:37: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 1491C16A4DD; Thu, 20 Jul 2006 08:37:11 +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 5AA2C43D45; Thu, 20 Jul 2006 08:37:09 +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 k6K8b8TB003825 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 20 Jul 2006 18:37:08 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k6K8b8px001167; Thu, 20 Jul 2006 18:37:08 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k6K8b8aR001166; Thu, 20 Jul 2006 18:37:08 +1000 (EST) (envelope-from peter) Date: Thu, 20 Jul 2006 18:37:08 +1000 From: Peter Jeremy To: "Greg 'groggy' Lehey" Message-ID: <20060720083708.GA968@turion.vk2pj.dyndns.org> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060327005342.GX25392@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: <20060327005342.GX25392@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: Thu, 20 Jul 2006 08:37:11 -0000 --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable To resurrect a fairly old thread... On Mon, 2006-Mar-27 11:23:42 +1030, Greg 'groggy' Lehey wrote: >On Sunday, 26 March 2006 at 19:17:19 +1100, Peter Jeremy wrote: >> 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. I've been keeping a closer eye on my problem. I'm using fvwm1 with click-to-focus and lose-focus-on-screen-switch. If I move from one screen to another and quickly click on a window, the border changes colour to indicate that it has focus but keyboard input is ignored. If the target is an xterm, the cursor stays as a hollow rectangle instead of being filled - it looks like the WM knows that the window has focus but either forgets to tell the client or the client loses the message. It I leave the mouse in the target window for a while before clicking (maybe a few hundred msec) then all works correctly. I wonder if some X events are being delayed and misordered. >That's mainly irritating; the problem I describe above is annoying. Did you get anywhere in debugging it? --=20 Peter Jeremy --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEv0Cz/opHv/APuIcRAjPPAKCKvQgAJGAwnpIh1VZ5EzqLBxw0BwCeOrVA +ZsZ00ydosSv+3IaileDRns= =+98W -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD-- From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 12:05:02 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 4E54A16A4E0 for ; Thu, 20 Jul 2006 12:05:02 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail24.syd.optusnet.com.au (mail24.syd.optusnet.com.au [211.29.133.165]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FCBD43D58 for ; Thu, 20 Jul 2006 12:05:01 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail24.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k6KC4x3d017615 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 20 Jul 2006 22:04:59 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k6KC4xBv001863; Thu, 20 Jul 2006 22:04:59 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k6KC4xh3001862; Thu, 20 Jul 2006 22:04:59 +1000 (EST) (envelope-from peter) Date: Thu, 20 Jul 2006 22:04:59 +1000 From: Peter Jeremy To: babkin@users.sourceforge.net Message-ID: <20060720120459.GC716@turion.vk2pj.dyndns.org> References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZmUaFz6apKcXQszQ" Content-Disposition: inline In-Reply-To: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: 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: Thu, 20 Jul 2006 12:05:02 -0000 --ZmUaFz6apKcXQszQ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, 2006-Jul-20 06:31:08 -0500, Sergey Babkin wrote: >This is likely an fvwm1 problem. I use it too (without >2 monitors) and after some time something gets broken in >its focus handling, and the windows stop getting focus. >Restarting fvwm clears up the problem. I've seen that as well and I'm fairly certain it's a different bug. Grog reports a similar problem to mine and (in my case) it seems to be just something being too slow - fvwm continues running correctly. >>>That's mainly irritating; the problem I describe above is annoying. >> >>Did you get anywhere in debugging it? > >BTW, I've promised Greg a script to dump the X protocol >from binary log, then I was busy and and forgot about it.=20 >Is there still any interest in this tool? What does your script do? I've used xmon in the (distant) past but it is designed to sit in the middle of an X connection. I think Wireshark can decode X11. --=20 Peter Jeremy --ZmUaFz6apKcXQszQ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEv3Fq/opHv/APuIcRAsZdAJ4zzzIaaQYmoHSnOxbrqf2l05fI0QCgkMBi 2iAArFVpSUS1aZ/zhjYeOaw= =RN+J -----END PGP SIGNATURE----- --ZmUaFz6apKcXQszQ-- From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 12:07:30 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 D561F16A4E1 for ; Thu, 20 Jul 2006 12:07:30 +0000 (UTC) (envelope-from nitro@263.net) Received: from smtp.263.net (263.net.cn [211.150.96.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2CD843D5D for ; Thu, 20 Jul 2006 12:07:26 +0000 (GMT) (envelope-from nitro@263.net) Received: from origin.intron.ac (unknown [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id AE566F1B36 for ; Thu, 20 Jul 2006 20:07:31 +0800 (CST) X-KSVirus-check: 0 References: <20060720103228.GA716@turion.vk2pj.dyndns.org> In-Reply-To: <20060720103228.GA716@turion.vk2pj.dyndns.org> From: "Intron" To: Peter Jeremy Date: Thu, 20 Jul 2006 19:25:27 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset="gb2312"; format=flowed Content-Transfer-Encoding: 7bit Message-Id: <1153397244.66653@origin.intron.ac> Cc: freebsd-hackers@freebsd.org, "Charles A. Landemaine" , freebsd-hardware@freebsd.org Subject: Re: Improving FreeBSD's hardware compatibility 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, 20 Jul 2006 12:07:30 -0000 Peter Jeremy wrote: > On Tue, 2006-Jul-18 22:11:45 -0300, Charles A. Landemaine wrote: >>Aside from the fact that some vendors don't cooperate to release >>hardware specifications, is there something we could do to revert this >>situation? > > I suspect the major problems are lack of interface documentation for > the various chips and non-compliance with standards on things like > ACPI. I don't believe there's a general solution to the problem, > rather work-arounds need to be developed on a case-by-case basis. > >> How could the community act to change things? > > Getting action from vendors has been unsuccessful in the past - the > Free OS community (Linux + *BSD) is too small for vendors to be > concerned about. I cannot agree with you. Linux has achieved much more support from hardware vendors than FreeBSD. You may look in Linux source code. In linux-2.6.x/drivers/, there are so many hardware drivers. On the other hand, so many hardware vendors (especially some small enterprises, which are eager to obtain software support) have publicized data sheets of their integrated circuit products, but so few people would write hardware driver for FreeBSD. > > I suspect the best solution is to publicise configurations that are > known to work and what problems exist with other configurations. > > -- > Peter Jeremy FreeBSD must be more open than before. Otherwise, it will lose developping energy/vitality and fall behind the time. ------------------------------------------------------------------------ From Beijing, China From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 06:04:35 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 BB09A16A4DA for ; Thu, 20 Jul 2006 06:04:35 +0000 (UTC) (envelope-from pfgshield-freebsd@yahoo.com) Received: from web32702.mail.mud.yahoo.com (web32702.mail.mud.yahoo.com [68.142.207.246]) by mx1.FreeBSD.org (Postfix) with SMTP id 45CC043D45 for ; Thu, 20 Jul 2006 06:04:35 +0000 (GMT) (envelope-from pfgshield-freebsd@yahoo.com) Received: (qmail 39004 invoked by uid 60001); 20 Jul 2006 06:04:34 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=h/xRlMMkVewSM4DuERtINKExECclRH70E0fDVXW/Wi/lmZqmhIKqjm1oJYCnqpwgeLVTnScs07c+4myZ1Y2x27A0dmMUBhw3H3T1eQ6nCZBcZ22IiqrlWvrwM9m5ONSqAXxMo3jtrI2opaH/6jysy/tWRECAX+7+ODIdo+eoUd0= ; Message-ID: <20060720060434.39002.qmail@web32702.mail.mud.yahoo.com> Received: from [200.118.58.25] by web32702.mail.mud.yahoo.com via HTTP; Thu, 20 Jul 2006 08:04:34 CEST Date: Thu, 20 Jul 2006 08:04:34 +0200 (CEST) From: To: hackers@freebsd.org In-Reply-To: <17589.6498.456179.132004@bhuda.mired.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Mailman-Approved-At: Thu, 20 Jul 2006 14:11:37 +0000 Cc: Subject: Re: kern/99979: Get Ready for Kernel Module in C++ X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pfgshield-freebsd@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 06:04:35 -0000 FWIW; I went on to check that Embedded C++ that David Nugent mentioned, and I found this: http://www.caravan.net/ec2plus/ Acording to the Q&A section: "The goal of EC++ is to provide embedded systems programmers with a subset of C++ that is easy for the average C programmer to understand and use. The subset should offer upward compatibility with ISO/ANSI Standard C++ and retain the major advantages of C++. To achieve the goal, several guidelines were established for creating the subset such as avoiding excessive memory consumption (overhead) and removing complex features." ... And also FWIW, I wouldn't object to having support for other languages (Objective C ? ), if someone has/finds modules that could use the features. cheers, Pedro. Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 11:14: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 B6FBF16A4E7 for ; Thu, 20 Jul 2006 11:14:29 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id C2F2E43D49 for ; Thu, 20 Jul 2006 11:14:28 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (vmzsxe@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k6KBELBD089268 for ; Thu, 20 Jul 2006 13:14:26 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k6KBELal089267; Thu, 20 Jul 2006 13:14:21 +0200 (CEST) (envelope-from olli) Date: Thu, 20 Jul 2006 13:14:21 +0200 (CEST) Message-Id: <200607201114.k6KBELal089267@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <44BE20D8.609@dial.pipex.com> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 20 Jul 2006 13:14:26 +0200 (CEST) X-Mailman-Approved-At: Thu, 20 Jul 2006 14:12:20 +0000 Cc: Subject: Re: [Fwd: Interrupts question] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 11:14:29 -0000 Alex Zbyslaw wrote: > Oliver Fromme wrote: > > From your dmesg excerpt it seems that you have at least > > three USB controllers in that machine. Depending on your > > requirements, it might make sense to disable all of them > > _except_ one, and then connect your USB devices to that > > one controller (using additional USB hubs if necessary). > > Of course, the controller that you keep enabled should be > > the one that's causing the least problems (which seems to > > be uhci1 "USB-B" in your case, if I read your first email > > Thanks for the suggestion. Can you tell me how to disable specific > controllers? Were you thinking BIOS? or FreeBSD? I meant to say to disable them in the BIOS. I'm afraid there is no generic way to disable specific devices in FreeBSD anymore. > Can device.hints do this? uhci man page is somewhat brief. No, uhci doesn't use hints (in theory, however, it wouldn't be difficult to add support for "hints.uhci.X.disabled", I think). Most of the device hints can only be used for legacy (non-PnP) ISA devices. > I'm not sure which of those controllers I might actually need and it > might be none of them. The USB requirement is because there is a DRAC > (remote console) card which simulates a USB keyboard/mouse and offhand > I'm not sure what they are connected to. Should be easy to find out. Just look at dmesg or the output from "usbdevs -v". You should be able to see to which controller the ums/ukbd of your remote console are connected. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "That's what I love about GUIs: They make simple tasks easier, and complex tasks impossible." -- John William Chambless From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 11:31:14 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 1B4FB16A501; Thu, 20 Jul 2006 11:31:14 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms048pub.verizon.net (vms048pub.verizon.net [206.46.252.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id A4EF543D5E; Thu, 20 Jul 2006 11:31:12 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms068.mailsrvcs.net ([192.168.1.1]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J2P00GKW9BWXTH5@vms048.mailsrvcs.net>; Thu, 20 Jul 2006 06:31:08 -0500 (CDT) Received: from 198.190.8.100 ([198.190.8.100]) by vms068.mailsrvcs.net (Verizon Webmail) with HTTP; Thu, 20 Jul 2006 06:31:08 -0500 (CDT) Date: Thu, 20 Jul 2006 06:31:08 -0500 (CDT) From: Sergey Babkin X-Originating-IP: [198.190.8.100] To: Peter Jeremy , Greg 'groggy' Lehey Message-id: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Mailman-Approved-At: Thu, 20 Jul 2006 14:12:31 +0000 Cc: FreeBSD Hackers Subject: Re: Re: Programs not accepting input? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 11:31:14 -0000 >From: Peter Jeremy >To resurrect a fairly old thread... > >On Mon, 2006-Mar-27 11:23:42 +1030, Greg 'groggy' Lehey wrote: >>On Sunday, 26 March 2006 at 19:17:19 +1100, Peter Jeremy wrote: >>> 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. > >I've been keeping a closer eye on my problem. I'm using fvwm1 with >click-to-focus and lose-focus-on-screen-switch. If I move from one >screen to another and quickly click on a window, the border changes >colour to indicate that it has focus but keyboard input is ignored. This is likely an fvwm1 problem. I use it too (without 2 monitors) and after some time something gets broken in its focus handling, and the windows stop getting focus. Restarting fvwm clears up the problem. >>That's mainly irritating; the problem I describe above is annoying. > >Did you get anywhere in debugging it? BTW, I've promised Greg a script to dump the X protocol from binary log, then I was busy and and forgot about it. Is there still any interest in this tool? -SB From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 13:13: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 071E116A4DD for ; Thu, 20 Jul 2006 13:13:22 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2FDF543D53 for ; Thu, 20 Jul 2006 13:13:20 +0000 (GMT) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (pyjsba@localhost [127.0.0.1]) by lurza.secnetix.de (8.13.4/8.13.4) with ESMTP id k6KDDDhp092921 for ; Thu, 20 Jul 2006 15:13:18 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.13.4/8.13.1/Submit) id k6KDDCrP092920; Thu, 20 Jul 2006 15:13:12 +0200 (CEST) (envelope-from olli) Date: Thu, 20 Jul 2006 15:13:12 +0200 (CEST) Message-Id: <200607201313.k6KDDCrP092920@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <1153397244.66653@origin.intron.ac> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.0-20051224 ("Ronay") (UNIX) (FreeBSD/4.11-STABLE (i386)) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Thu, 20 Jul 2006 15:13:18 +0200 (CEST) X-Mailman-Approved-At: Thu, 20 Jul 2006 14:12:41 +0000 Cc: Subject: Re: Improving FreeBSD's hardware compatibility X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 13:13:22 -0000 Intron wrote: > Peter Jeremy wrote: > > Getting action from vendors has been unsuccessful in the past - the > > Free OS community (Linux + *BSD) is too small for vendors to be > > concerned about. > > I cannot agree with you. Linux has achieved much more support from > hardware vendors than FreeBSD. Interestingly, when I looked for a new laptop last year, it turned out that the number of laptops that ran FreeBSD was greater than those that ran Linux. (I finally chose a Samsung X20-XVM 1600-V, which works perfectly fine for me except for the built-in winmodem [which I don't need anyway]. A Linux live CD didn't even boot on it.) > You may look in Linux source code. > In linux-2.6.x/drivers/, there are so many hardware drivers. Yeah, most of which are crap. :-) The raw number of drivers says _nothing_ about hardware vendors' support. > > I suspect the best solution is to publicise configurations that are > > known to work and what problems exist with other configurations. I tend to agree with Peter here. By the way, a very good resource for hardware support information is the search facility at Rambler: http://freebsd.rambler.ru/ Best regards Oliver PS: I think this thread might be inappropriate for the -hackers list. How about moving it to either -hardware or -chat? (I watch them all, so either is fine with me.) -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "Documentation is like sex; when it's good, it's very, very good, and when it's bad, it's better than nothing." -- Dick Brandon From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 14:30:42 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A4B6116A4DF for ; Thu, 20 Jul 2006 14:30:42 +0000 (UTC) (envelope-from onlyopensource@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5021343DD4 for ; Thu, 20 Jul 2006 14:28:48 +0000 (GMT) (envelope-from onlyopensource@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so853083uge for ; Thu, 20 Jul 2006 07:28:47 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AcWqcnXyddc/lFkLBMuyJ0LnV+gIGeQBJfGeaIbsHM2nMywH7VrK5fqRCCPdgnxxzjExzElr/TCCZ4Zvjfszd9pkUmvxgufpokx6CQmIW+eVvEnOShEXFmvDh592ZwezNvymv8Qqi4WqiU7THJPTCU6hhnZTI/dASnb11udONq0= Received: by 10.78.165.16 with SMTP id n16mr407369hue; Thu, 20 Jul 2006 07:28:47 -0700 (PDT) Received: by 10.78.180.4 with HTTP; Thu, 20 Jul 2006 07:28:47 -0700 (PDT) Message-ID: Date: Thu, 20 Jul 2006 19:58:47 +0530 From: "Only OpenSource" To: freebsd-hackers@freebsd.org In-Reply-To: <20060720060434.39002.qmail@web32702.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <17589.6498.456179.132004@bhuda.mired.org> <20060720060434.39002.qmail@web32702.mail.mud.yahoo.com> Subject: Re: kern/99979: Get Ready for Kernel Module in C++ 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, 20 Jul 2006 14:30:42 -0000 On 7/20/06, pfgshield-freebsd@yahoo.com wrote: > FWIW; > > I went on to check that Embedded C++ that David Nugent mentioned, and I found > this: > > http://www.caravan.net/ec2plus/ > > Acording to the Q&A section: > > "The goal of EC++ is to provide embedded systems programmers with a subset of > C++ that is easy for the average C programmer to understand and use. The subset > should offer upward compatibility with ISO/ANSI Standard C++ and retain the > major advantages of C++. > To achieve the goal, several guidelines were established for creating the > subset such as avoiding excessive memory consumption (overhead) and removing > complex features." ... > > And also FWIW, I wouldn't object to having support for other languages > (Objective C ? ), if someone has/finds modules that could use the features. > > cheers, > > Pedro. > Pedro How about thinking ahead in time ? say 10 years ahead ? May be driver code would be as simple as scripting or even written in XML ! The schema is standardized (ie. interface) and translator tools do the rest. What is the point of replacing a 25 yr technology with a 20 year old technology ? If you really want to be a pioneer think 10 years ahead in time ! -- oo@@oo From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 18:12:30 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 42E2B16A4E0; Thu, 20 Jul 2006 18:12:30 +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 802A643D7E; Thu, 20 Jul 2006 18:12:18 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from hydrogen.funkthat.com (u8flq0hzmiogvbs3@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.13.6/8.13.3) with ESMTP id k6KICHRY061266; Thu, 20 Jul 2006 11:12:17 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.13.6/8.13.3/Submit) id k6KICGJ8061263; Thu, 20 Jul 2006 11:12:16 -0700 (PDT) (envelope-from jmg) Date: Thu, 20 Jul 2006 11:12:16 -0700 From: John-Mark Gurney To: Intron Message-ID: <20060720181216.GJ96589@funkthat.com> Mail-Followup-To: Intron , Peter Jeremy , freebsd-hackers@freebsd.org, "Charles A. Landemaine" , freebsd-hardware@freebsd.org References: <20060720103228.GA716@turion.vk2pj.dyndns.org> <1153397244.66653@origin.intron.ac> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1153397244.66653@origin.intron.ac> 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: "Charles A. Landemaine" , freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: Improving FreeBSD's hardware compatibility 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: Thu, 20 Jul 2006 18:12:30 -0000 Intron wrote this message on Thu, Jul 20, 2006 at 19:25 +0800: > On the other hand, so many hardware vendors (especially some small > enterprises, which are eager to obtain software support) > have publicized data sheets of their integrated circuit products, > but so few people would write hardware driver for FreeBSD. I haven't seen this. The only case that I can think of is due to developers not having the hardware, or a need to use said hardware, so nothing happens... Do you have a list of hardware that has documntation available that needs device drivers to be written? -- 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 Jul 20 18:31:50 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 3900016A4DF for ; Thu, 20 Jul 2006 18:31:50 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id E498143D45 for ; Thu, 20 Jul 2006 18:31:49 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms063.mailsrvcs.net ([192.168.1.4]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J2P008DPSSG6FA0@vms044.mailsrvcs.net> for hackers@freebsd.org; Thu, 20 Jul 2006 13:31:28 -0500 (CDT) Received: from 198.190.8.100 ([198.190.8.100]) by vms063.mailsrvcs.net (Verizon Webmail) with HTTP; Thu, 20 Jul 2006 13:31:28 -0500 (CDT) Date: Thu, 20 Jul 2006 13:31:27 -0500 (CDT) From: Sergey Babkin X-Originating-IP: [198.190.8.100] To: Peter Jeremy , babkin@users.sourceforge.net Message-id: <1887331.732121153420288819.JavaMail.root@vms063.mailsrvcs.net> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Mailman-Approved-At: Thu, 20 Jul 2006 19:50:46 +0000 Cc: FreeBSD Hackers Subject: Re: Re: Re: Programs not accepting input? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 18:31:50 -0000 >From: Peter Jeremy >>BTW, I've promised Greg a script to dump the X protocol >>from binary log, then I was busy and and forgot about it. >>Is there still any interest in this tool? > >What does your script do? I've used xmon in the (distant) past but >it is designed to sit in the middle of an X connection. I think >Wireshark can decode X11. It takes a hex dump produced in whatever way (kdump, strace or maybe tcpdump) and tries to decode the X protocol fields in it. The dump can be made at either client or server side and can include both sides of transmissions (with separators between the portions of the file). Converting the output of a tracing tool into a proper raw hex dump is a separate task. I have a script that does that with output of SVR4 truss. The information about the X protocol fields gets taken from a simplistic parsing of the slightly massaged X header files. At some point I neede to trace the X protocol and I didn't know about the other tools (your e-mail is the first time I hear about them), so I've made this script. -SB From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 16:14:27 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 64EA216A4E0 for ; Thu, 20 Jul 2006 16:14:27 +0000 (UTC) (envelope-from admin@cwt.uz) Received: from relay.st.uz (relay2.st.uz [217.29.116.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1332043D46 for ; Thu, 20 Jul 2006 16:14:24 +0000 (GMT) (envelope-from admin@cwt.uz) Received: from cwt.buzton.com ([217.29.120.242] verified) by relay.st.uz (CommuniGate Pro SMTP 4.1.8) with ESMTP id 4133916 for hackers@FreeBSD.org; Thu, 20 Jul 2006 21:14:18 +0500 Received: from 192.168.220.200 ([192.168.220.200]) (authenticated user admin@cwt.uz) by cwt.buzton.com (cwt.buzton.com [192.168.220.200]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 36-md50000000002.tmp for ; Thu, 20 Jul 2006 21:23:58 +0500 Message-ID: <44BFAE1D.30906@cwt.uz> Date: Thu, 20 Jul 2006 21:23:57 +0500 From: Timur Yuldashev User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authenticated-Sender: admin@cwt.uz X-Spam-Processed: cwt.buzton.com, Thu, 20 Jul 2006 21:23:58 +0500 (not processed: spam filter disabled) X-MDRemoteIP: 192.168.220.200 X-Return-Path: admin@cwt.uz X-MDaemon-Deliver-To: hackers@FreeBSD.org X-Mailman-Approved-At: Thu, 20 Jul 2006 22:04:18 +0000 Cc: Subject: New Welcome message for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2006 16:14:27 -0000 New motd-welcome message for FreeBSD. http://www.cwt.uz/motd best regards -- Timur Yuldashev Technical Administrator, IT Services Email: admin@cwt.uz Carlson Wagonlit Travel 5,Center-2 street, Mirzo-Ulugbek region 700000,Tashkent,Uzbekistan Reception: +998 71 1326267(68,69,70) Fax: +998 71 1326265 Carlson Wagonlit Travel is a world leader in business travel management, partnering with large corporations, small and medium-sized companies, and government institutions. CWT designs and implements superior travel management programs for clients based upon its recognized consulting expertise, strong purchasing power, technological strength and consistent delivery of high-quality service. CWT has operations in more than 150 countries and services 60 of the world's 100 largest companies. Annual sales of $22 billion are generated under the Carlson Wagonlit Travel brand. For more information, please visit www.carlsonwagonlit.com .-------------------------------------------------------------------------------------------------------------------------------------------- This email may contain confidential and/or privileged information and is intended only for the use of the individual or entity name above.If you have received it in error,please advise Carlson Wagonlit Travel immediately by reply email and delete the original.Any further use of this email by you is strictly prohibited. From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 20 23:21:23 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 D719316A4DD for ; Thu, 20 Jul 2006 23:21:23 +0000 (UTC) (envelope-from freebsd@hub.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B2F343D49 for ; Thu, 20 Jul 2006 23:21:23 +0000 (GMT) (envelope-from freebsd@hub.org) Received: from localhost (wm.hub.org [200.46.204.128]) by hub.org (Postfix) with ESMTP id 6B036291B05 for ; Thu, 20 Jul 2006 20:21:18 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 97627-01 for ; Thu, 20 Jul 2006 23:21:22 +0000 (UTC) Received: from ganymede.hub.org (blk-224-179-167.eastlink.ca [24.224.179.167]) by hub.org (Postfix) with ESMTP id 22A68291AFC for ; Thu, 20 Jul 2006 19:58:01 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id A4D494675A; Thu, 20 Jul 2006 19:58:08 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 9C7ED33DF1 for ; Thu, 20 Jul 2006 19:58:08 -0300 (ADT) Date: Thu, 20 Jul 2006 19:58:08 -0300 (ADT) From: User Freebsd To: freebsd-hackers@FreeBSD.ORG In-Reply-To: <200607201313.k6KDDCrP092920@lurza.secnetix.de> Message-ID: <20060720195655.T1799@ganymede.hub.org> References: <200607201313.k6KDDCrP092920@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: Re: Improving FreeBSD's hardware compatibility 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, 20 Jul 2006 23:21:23 -0000 On Thu, 20 Jul 2006, Oliver Fromme wrote: > PS: I think this thread might be inappropriate for the -hackers list. > How about moving it to either -hardware or -chat? (I watch them all, so > either is fine with me.) The problem with -hardware or -chat, and, even to a certain extent, -hackers is that they aren't very high visibility ... I don't know the # of subscribers on those lists, but, for something like a 'hardware compatibility list', you want to get as much input as possible ... ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664 From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 03:11:35 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 C327E16A4DF for ; Fri, 21 Jul 2006 03:11:35 +0000 (UTC) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 285E943D4C for ; Fri, 21 Jul 2006 03:11:34 +0000 (GMT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 050E39BD89; Fri, 21 Jul 2006 12:41:34 +0930 (CST) Date: Fri, 21 Jul 2006 12:41:33 +0930 From: Greg 'groggy' Lehey To: Peter Jeremy Message-ID: <20060721031133.GJ27268@wantadilla.lemis.com> References: <20060326072009.GL25392@wantadilla.lemis.com> <20060326081719.GB753@turion.vk2pj.dyndns.org> <20060327005342.GX25392@wantadilla.lemis.com> <20060720083708.GA968@turion.vk2pj.dyndns.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKy6e3LXpfmanBFM" Content-Disposition: inline In-Reply-To: <20060720083708.GA968@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: Fri, 21 Jul 2006 03:11:35 -0000 --tKy6e3LXpfmanBFM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thursday, 20 July 2006 at 18:37:08 +1000, Peter Jeremy wrote: > To resurrect a fairly old thread... > > On Mon, 2006-Mar-27 11:23:42 +1030, Greg 'groggy' Lehey wrote: >> On Sunday, 26 March 2006 at 19:17:19 +1100, Peter Jeremy wrote: >>> 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. > > I've been keeping a closer eye on my problem. I'm using fvwm1 with > click-to-focus and lose-focus-on-screen-switch. If I move from one > screen to another and quickly click on a window, the border changes > colour to indicate that it has focus but keyboard input is ignored. > If the target is an xterm, the cursor stays as a hollow rectangle > instead of being filled - it looks like the WM knows that the window > has focus but either forgets to tell the client or the client loses > the message. It I leave the mouse in the target window for a while > before clicking (maybe a few hundred msec) then all works correctly. > I wonder if some X events are being delayed and misordered. Yes, this seems possible. I'd say that you're describing the same problem as I do above. >> That's mainly irritating; the problem I describe above is annoying. > > Did you get anywhere in debugging it? Not really. It seems to be happening less often now. Greg -- See complete headers for address and phone numbers. --tKy6e3LXpfmanBFM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEwEXlIubykFB6QiMRAtfOAJ9d+2hejyZHjbLzITqOqECWPU1EQwCgpSjj JsYcTwqtdhxXe8pklKbGvwo= =ukFi -----END PGP SIGNATURE----- --tKy6e3LXpfmanBFM-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 03:13:10 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 0AAB516A4DD for ; Fri, 21 Jul 2006 03:13:10 +0000 (UTC) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67DAE43D45 for ; Fri, 21 Jul 2006 03:13:09 +0000 (GMT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 9485B9BD89; Fri, 21 Jul 2006 12:43:08 +0930 (CST) Date: Fri, 21 Jul 2006 12:43:08 +0930 From: Greg 'groggy' Lehey To: babkin@users.sf.net Message-ID: <20060721031308.GK27268@wantadilla.lemis.com> References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8kI7hWEHMS8Z+7/0" Content-Disposition: inline In-Reply-To: <18075337.124391153395068232.JavaMail.root@vms068.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: 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: Fri, 21 Jul 2006 03:13:10 -0000 --8kI7hWEHMS8Z+7/0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thursday, 20 July 2006 at 6:31:08 -0500, Sergey Babkin wrote: >> From: Peter Jeremy > >> To resurrect a fairly old thread... >> >> On Mon, 2006-Mar-27 11:23:42 +1030, Greg 'groggy' Lehey wrote: >>> On Sunday, 26 March 2006 at 19:17:19 +1100, Peter Jeremy wrote: >>>> 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. >> >> I've been keeping a closer eye on my problem. I'm using fvwm1 with >> click-to-focus and lose-focus-on-screen-switch. If I move from one >> screen to another and quickly click on a window, the border changes >> colour to indicate that it has focus but keyboard input is ignored. > > This is likely an fvwm1 problem. I use it too (without > 2 monitors) and after some time something gets broken in > its focus handling, and the windows stop getting focus. > Restarting fvwm clears up the problem. In my case, it's erratic. I suppose I could try restarting the window manager next time a window freezes. >>> That's mainly irritating; the problem I describe above is annoying. >> >> Did you get anywhere in debugging it? > > BTW, I've promised Greg a script to dump the X protocol > from binary log, then I was busy and and forgot about it. > Is there still any interest in this tool? I'd certainly be interested. It would still be a challenge to catch the event that causes the freeze, though. Are you thinking of anything that ethereal can't do? Greg -- See complete headers for address and phone numbers. --8kI7hWEHMS8Z+7/0 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEwEZEIubykFB6QiMRAvu/AJwIg122ZlNwY8iGkyJq6bLZQmIRfACfUiVd Sj4O+aSaNl8yVFyBSuXQeRk= =zLBb -----END PGP SIGNATURE----- --8kI7hWEHMS8Z+7/0-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 13:24: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 28F2E16A4DA for ; Fri, 21 Jul 2006 13:24:01 +0000 (UTC) (envelope-from master@preved.cn) Received: from mail.mccolo.com (mc79.mccolo.com [208.66.192.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE2AD43D45 for ; Fri, 21 Jul 2006 13:24:00 +0000 (GMT) (envelope-from master@preved.cn) Received: (qmail 43194 invoked by uid 89); 21 Jul 2006 13:24:00 -0000 Received: from unknown (HELO ?192.0.0.1?) (tarasov@mccolo.com@62.140.244.50) by mail.mccolo.com with (DHE-RSA-AES256-SHA encrypted) SMTP; 21 Jul 2006 13:24:00 -0000 Message-ID: <44C0D55B.60500@preved.cn> Date: Fri, 21 Jul 2006 17:23:39 +0400 From: Tarasov Alexey User-Agent: Thunderbird 1.5.0.4 (X11/20060618) MIME-Version: 1.0 To: Timur Yuldashev , hackers@freebsd.org References: <44BFAE1D.30906@cwt.uz> In-Reply-To: <44BFAE1D.30906@cwt.uz> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: New Welcome message for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 13:24:01 -0000 Timur Yuldashev wrote: > New motd-welcome message for FreeBSD. > > http://www.cwt.uz/motd > > best regards > I like it! Very good. -- Best regards, Tarasov Alexey. From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 13:32:05 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 38F2B16A4DD; Fri, 21 Jul 2006 13:32:05 +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 D5E5443D49; Fri, 21 Jul 2006 13:32:04 +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 5CD2046C18; Fri, 21 Jul 2006 09:32:04 -0400 (EDT) Date: Fri, 21 Jul 2006 14:32:04 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Greg 'groggy' Lehey In-Reply-To: <20060721031308.GK27268@wantadilla.lemis.com> Message-ID: <20060721143024.W79560@fledge.watson.org> References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> <20060721031308.GK27268@wantadilla.lemis.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: FreeBSD Hackers , babkin@users.sf.net 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: Fri, 21 Jul 2006 13:32:05 -0000 On Fri, 21 Jul 2006, Greg 'groggy' Lehey wrote: >>> I've been keeping a closer eye on my problem. I'm using fvwm1 with >>> click-to-focus and lose-focus-on-screen-switch. If I move from one screen >>> to another and quickly click on a window, the border changes colour to >>> indicate that it has focus but keyboard input is ignored. >> >> This is likely an fvwm1 problem. I use it too (without 2 monitors) and >> after some time something gets broken in its focus handling, and the >> windows stop getting focus. Restarting fvwm clears up the problem. > > In my case, it's erratic. I suppose I could try restarting the window > manager next time a window freezes. I've occasionally also had weird focus problems with KDE. Among other things, it looks like occasionally the mouse release event is lost somewhere in the system (or something along these lines) -- I don't know if it's a driver problem, a moused problem, an X11 probem, or a KDE problem. If I press and release each of the buttons, especially the third button, things will often recover. As long as the button is "held down", KDE doesn't switch the focus and other events are largely ignored. Odd, eh? Robert N M Watson Computer Laboratory University of Cambridge From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 14:08: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 C327716A505; Fri, 21 Jul 2006 14:08:12 +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 A637B43D4C; Fri, 21 Jul 2006 14:08:08 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp231-198.lns2.adl4.internode.on.net [203.122.231.198]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k6LE7xVX000154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Jul 2006 23:38:01 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 21 Jul 2006 23:38:00 +0930 User-Agent: KMail/1.9.3 References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> <20060721031308.GK27268@wantadilla.lemis.com> <20060721143024.W79560@fledge.watson.org> In-Reply-To: <20060721143024.W79560@fledge.watson.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3951458.ozIRUnuzUZ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200607212338.01728.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.56 on 203.31.81.10 Cc: Greg 'groggy' Lehey , babkin@users.sourceforge.net, FreeBSD Hackers , Robert Watson 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: Fri, 21 Jul 2006 14:08:12 -0000 --nextPart3951458.ozIRUnuzUZ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 21 July 2006 23:02, Robert Watson wrote: > I've occasionally also had weird focus problems with KDE. Among other > things, it looks like occasionally the mouse release event is lost > somewhere in the system (or something along these lines) -- I don't know = if > it's a driver problem, a moused problem, an X11 probem, or a KDE problem.= =20 > If I press and release each of the buttons, especially the third button, > things will often recover. As long as the button is "held down", KDE > doesn't switch the focus and other events are largely ignored. Odd, eh? One thing that IS a KDE problem is having it manage 2 distinct desktops=20 (ie :0.0 [laptop LCD] and :0.1 [TV out]) - it occasionally decides to give= =20 the other display focus after a dialog has been closed.. Makes using kmail annoying because the only way to bring back focus is to u= se=20 the mouse :( =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 --nextPart3951458.ozIRUnuzUZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEwN/B5ZPcIHs/zowRAgb0AJ90B3OfPtQpaxSXIZXXx/dr6iw/SwCfb9Xe lW5I0p6MucfS9gkYG/1f4q0= =l0q+ -----END PGP SIGNATURE----- --nextPart3951458.ozIRUnuzUZ-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 14:08: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 C327716A505; Fri, 21 Jul 2006 14:08:12 +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 A637B43D4C; Fri, 21 Jul 2006 14:08:08 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp231-198.lns2.adl4.internode.on.net [203.122.231.198]) (authenticated bits=0) by cain.gsoft.com.au (8.13.5/8.13.4) with ESMTP id k6LE7xVX000154 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Jul 2006 23:38:01 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 21 Jul 2006 23:38:00 +0930 User-Agent: KMail/1.9.3 References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> <20060721031308.GK27268@wantadilla.lemis.com> <20060721143024.W79560@fledge.watson.org> In-Reply-To: <20060721143024.W79560@fledge.watson.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3951458.ozIRUnuzUZ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200607212338.01728.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.56 on 203.31.81.10 Cc: Greg 'groggy' Lehey , babkin@users.sourceforge.net, FreeBSD Hackers , Robert Watson 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: Fri, 21 Jul 2006 14:08:12 -0000 --nextPart3951458.ozIRUnuzUZ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Friday 21 July 2006 23:02, Robert Watson wrote: > I've occasionally also had weird focus problems with KDE. Among other > things, it looks like occasionally the mouse release event is lost > somewhere in the system (or something along these lines) -- I don't know = if > it's a driver problem, a moused problem, an X11 probem, or a KDE problem.= =20 > If I press and release each of the buttons, especially the third button, > things will often recover. As long as the button is "held down", KDE > doesn't switch the focus and other events are largely ignored. Odd, eh? One thing that IS a KDE problem is having it manage 2 distinct desktops=20 (ie :0.0 [laptop LCD] and :0.1 [TV out]) - it occasionally decides to give= =20 the other display focus after a dialog has been closed.. Makes using kmail annoying because the only way to bring back focus is to u= se=20 the mouse :( =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 --nextPart3951458.ozIRUnuzUZ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iD8DBQBEwN/B5ZPcIHs/zowRAgb0AJ90B3OfPtQpaxSXIZXXx/dr6iw/SwCfb9Xe lW5I0p6MucfS9gkYG/1f4q0= =l0q+ -----END PGP SIGNATURE----- --nextPart3951458.ozIRUnuzUZ-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 14:09: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 AB6C016A4DD for ; Fri, 21 Jul 2006 14:09:19 +0000 (UTC) (envelope-from tyler@bleepsoft.com) Received: from zeus.lunarpages.com (zeus.lunarpages.com [216.193.211.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F15543D46 for ; Fri, 21 Jul 2006 14:09:19 +0000 (GMT) (envelope-from tyler@bleepsoft.com) Received: from 24-240-211-104.dhcp.sprn.tx.charter.com ([24.240.211.104] helo=[192.168.250.100]) by zeus.lunarpages.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.52) id 1G3vhp-0004xy-7D for hackers@freebsd.org; Fri, 21 Jul 2006 07:10:17 -0700 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <20060720060434.39002.qmail@web32702.mail.mud.yahoo.com> References: <20060720060434.39002.qmail@web32702.mail.mud.yahoo.com> X-Gpgmail-State: !signed Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9363A463-63CF-4D21-9F5E-FC7E39CFF4E4@bleepsoft.com> Content-Transfer-Encoding: 7bit From: "R. Tyler Ballance" Date: Fri, 21 Jul 2006 09:09:13 -0500 To: hackers@freebsd.org X-Mailer: Apple Mail (2.752.2) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - zeus.lunarpages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - bleepsoft.com X-Source: X-Source-Args: X-Source-Dir: Cc: Subject: Re: kern/99979: Get Ready for Kernel Module in C++ 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, 21 Jul 2006 14:09:19 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Jul 20, 2006, at 1:04 AM, wrote: > FWIW; > > I went on to check that Embedded C++ that David Nugent mentioned, > and I found > this: > > http://www.caravan.net/ec2plus/ > > Acording to the Q&A section: > > "The goal of EC++ is to provide embedded systems programmers with a > subset of > C++ that is easy for the average C programmer to understand and > use. The subset > should offer upward compatibility with ISO/ANSI Standard C++ and > retain the > major advantages of C++. > To achieve the goal, several guidelines were established for > creating the > subset such as avoiding excessive memory consumption (overhead) and > removing > complex features." ... > > And also FWIW, I wouldn't object to having support for other languages > (Objective C ? ), if someone has/finds modules that could use the > features. I've been keeping track on this discussion, and I guess I'll toss my 2 cents in here. Objective-C, while a wonderful smalltalk-ish language (I use it daily), is definitely not nearly as suitable as C+ + for kernel modules, or embedded programming for that matter. The Core Audio framework on Mac OS X is mostly C++ for performance reasons, for example. Objective-C's reliance on message passing is probably as suitable for kernel modules as C# via Mono is, the runtime is a bit too bloated IMHO and because of the inherent design the two languages they just aren't suited (again IMHO) for real time work, or performance dependent functionality. Of course, if anybody has any links to anything performance intensive (audio code is the best example in my book) using either C# or ObjC then I will both be shocked and sickened ;) I really can't think of support for any other languages that would be good to add, C & C++ cover most of what the rest of the world writes their lower level code in. Cheers, - -R. Tyler Ballance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFEwN/kqO6nEJfroRsRAjyvAJ9BCvK9jC/GEWfjxFdZBbMK7UQiSgCfYRd7 VF1l80jl6vZhhJqc9dr2l3w= =XnRr -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 14:07: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 4C97316A501; Fri, 21 Jul 2006 14:07:12 +0000 (UTC) (envelope-from GMcCaughan@synaptics-uk.com) Received: from mx2.synaptics-uk.com (mx2.synaptics-uk.com [194.203.111.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 21CA943D55; Fri, 21 Jul 2006 14:07:10 +0000 (GMT) (envelope-from GMcCaughan@synaptics-uk.com) Received: from firewall.synaptics-uk.com ([194.203.111.212] helo=ukexchange2k.synaptics-inc.local) by mx2.synaptics-uk.com with esmtp (Exim 4.62) (envelope-from ) id 1G3vem-00078C-J0; Fri, 21 Jul 2006 15:07:08 +0100 Received: from lists.synaptics-uk.com ([172.20.11.6]) by ukexchange2k.synaptics-inc.local with Microsoft SMTPSVC(5.0.2195.6713); Fri, 21 Jul 2006 15:07:03 +0100 Received: from [172.20.11.5] (unknown [172.20.11.5]) by lists.synaptics-uk.com (Postfix) with ESMTP id 393AC17011; Fri, 21 Jul 2006 14:47:28 +0100 (BST) From: Gareth McCaughan To: freebsd-hackers@freebsd.org Date: Fri, 21 Jul 2006 15:07:01 +0100 User-Agent: KMail/1.9.1 References: <200607181317.33416.gmccaughan@synaptics-uk.com> <200607191711.11966.gmccaughan@synaptics-uk.com> <200607191336.54880.jhb@freebsd.org> In-Reply-To: <200607191336.54880.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607211507.02139.gmccaughan@synaptics-uk.com> X-OriginalArrivalTime: 21 Jul 2006 14:07:03.0480 (UTC) FILETIME=[F1189B80:01C6ACCE] X-Mailman-Approved-At: Fri, 21 Jul 2006 14:53:39 +0000 Cc: Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 21 Jul 2006 14:07:12 -0000 On Wednesday 2006-07-19 18:36, John Baldwin wrote: > On Wednesday 19 July 2006 12:11, Gareth McCaughan wrote: > > (The particular screen saver I turned on was the one called > > "warp"; I haven't checked yet whether others have the same > > CPU-guzzling effect.) > > Actually, if you could test that, that would be helpful as that would > narrow down where the bug is (syscons vs. the specific screen saver). OK, so here's what's happening. 1. On my machine, every call to vesa_set_origin takes about 0.2ms; about 0.1ms in each of two calls to int 10h, code 4f/05, which is the bank switching VESA VBE BIOS call. 2. The "fire" and "star" screen savers make rather a lot of calls to set_origin, which on my machine gets handled by vesa_set_origin. For instance, fire_saver.c *always* performs at least one call per screen row. On the box in question, the screen is in a 320x200x1byte mode, so there are 200 bank switches even though the entire screen sits within a single bank! 3. With "fire", I get about 10 updates per second, each calling set_origin 200 times, for a total of about 2000*0.2ms = 0.4s per second. In other words, about half my CPU. Ouch. Suggestions: 1. Make vesa_set_origin remember the last origin it was given and do nothing if it's being asked for the same origin again. Two ways: put a field in video_adapter_t, or -- easier and more localized but rather icky -- make vesa_set_origin remember the last (origin,adapter) pair it was fed and do nothing only if both elements are the same. I'm assuming that there aren't any circumstances in which the origin can be changed *between* vesa_set_origin calls. 2. If #1 is a bad idea for some reason, make the syscons screen savers that call set_origin remember what origin they set. This would also need to be per-adapter if it has to persist between updates; but it would probably suffice just to avoid gratuitous repeated set_origin calls *within* a single update. 3. Regardless of whether #1 or #2 is done, it might be wise to keep track of how much time is spent running syscons screen savers and slow down the update rate if it's more than (say) 10%. If any of these is thought a good idea, I can provide a patch. -- g From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 15:57:49 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 A63DE16A4E5 for ; Fri, 21 Jul 2006 15:57:49 +0000 (UTC) (envelope-from ozkan@mersin.edu.tr) Received: from mail.mersin.edu.tr (mail.mersin.edu.tr [193.255.128.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25F8043D4C for ; Fri, 21 Jul 2006 15:57:48 +0000 (GMT) (envelope-from ozkan@mersin.edu.tr) Received: from localhost (localhost.mersin.edu.tr [127.0.0.1]) by mail.mersin.edu.tr (Postfix) with ESMTP id 5F19545964; Fri, 21 Jul 2006 18:59:46 +0300 (EEST) X-Virus-Scanned: by amavisd-new at mersin.edu.tr Received: from mail.mersin.edu.tr ([127.0.0.1]) by localhost (mail.mersin.edu.tr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TF4jDdOBZC5d; Fri, 21 Jul 2006 18:59:44 +0300 (EEST) Received: from [10.0.50.20] (unknown [81.213.166.209]) by mail.mersin.edu.tr (Postfix) with ESMTP id CCDC14595C; Fri, 21 Jul 2006 18:59:43 +0300 (EEST) Message-ID: <44C0F977.8050000@mersin.edu.tr> Date: Fri, 21 Jul 2006 18:57:43 +0300 From: =?ISO-8859-9?Q?=D6zkan_KIRIK?= User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050927) X-Accept-Language: tr-TR, tr, en-US, en MIME-Version: 1.0 To: Tarasov Alexey References: <44BFAE1D.30906@cwt.uz> <44C0D55B.60500@preved.cn> In-Reply-To: <44C0D55B.60500@preved.cn> Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 8bit Cc: hackers@freebsd.org, Timur Yuldashev Subject: Re: New Welcome message for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2006 15:57:49 -0000 i think i'll be better if slogan of freebsd added to this motd ;) The Power To Serve! Tarasov Alexey yazmış: > Timur Yuldashev wrote: > >> New motd-welcome message for FreeBSD. >> >> http://www.cwt.uz/motd >> >> best regards >> > > I like it! Very good. > From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 16:04:16 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C884916A4DA for ; Fri, 21 Jul 2006 16:04:16 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9B7A43D46 for ; Fri, 21 Jul 2006 16:04:11 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6LG48FV099200; Fri, 21 Jul 2006 12:04:10 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Gareth McCaughan Date: Fri, 21 Jul 2006 11:37:57 -0400 User-Agent: KMail/1.9.1 References: <200607181317.33416.gmccaughan@synaptics-uk.com> <200607191336.54880.jhb@freebsd.org> <200607211507.02139.gmccaughan@synaptics-uk.com> In-Reply-To: <200607211507.02139.gmccaughan@synaptics-uk.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607211137.58230.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [192.168.0.1]); Fri, 21 Jul 2006 12:04:10 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1612/Thu Jul 20 15:41:45 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 21 Jul 2006 16:04:17 -0000 On Friday 21 July 2006 10:07, Gareth McCaughan wrote: > On Wednesday 2006-07-19 18:36, John Baldwin wrote: > > On Wednesday 19 July 2006 12:11, Gareth McCaughan wrote: > > > (The particular screen saver I turned on was the one called > > > "warp"; I haven't checked yet whether others have the same > > > CPU-guzzling effect.) > > > > Actually, if you could test that, that would be helpful as that would > > narrow down where the bug is (syscons vs. the specific screen saver). > > OK, so here's what's happening. > > 1. On my machine, every call to vesa_set_origin takes about 0.2ms; > about 0.1ms in each of two calls to int 10h, code 4f/05, which > is the bank switching VESA VBE BIOS call. > > 2. The "fire" and "star" screen savers make rather a lot of calls > to set_origin, which on my machine gets handled by vesa_set_origin. > For instance, fire_saver.c *always* performs at least one call > per screen row. On the box in question, the screen is in a 320x200x1byte > mode, so there are 200 bank switches even though the entire screen > sits within a single bank! > > 3. With "fire", I get about 10 updates per second, each calling > set_origin 200 times, for a total of about 2000*0.2ms = 0.4s > per second. In other words, about half my CPU. Ouch. > > Suggestions: > > 1. Make vesa_set_origin remember the last origin it was given > and do nothing if it's being asked for the same origin again. > Two ways: put a field in video_adapter_t, or -- easier and > more localized but rather icky -- make vesa_set_origin remember > the last (origin,adapter) pair it was fed and do nothing only > if both elements are the same. I'm assuming that there aren't > any circumstances in which the origin can be changed *between* > vesa_set_origin calls. > > 2. If #1 is a bad idea for some reason, make the syscons screen > savers that call set_origin remember what origin they set. > This would also need to be per-adapter if it has to persist > between updates; but it would probably suffice just to avoid > gratuitous repeated set_origin calls *within* a single update. > > 3. Regardless of whether #1 or #2 is done, it might be wise to > keep track of how much time is spent running syscons screen savers > and slow down the update rate if it's more than (say) 10%. > > If any of these is thought a good idea, I can provide a patch. Either 1 or 2 sounds like a good idea to me. I think perhaps I slightly favor 2, but not by much. 1 would probably be simpler. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 21 18:57:02 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 71DDF16A4E9; Fri, 21 Jul 2006 18:57:02 +0000 (UTC) (envelope-from GMcCaughan@synaptics-uk.com) Received: from mx2.synaptics-uk.com (mx2.synaptics-uk.com [194.203.111.209]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3959943D7C; Fri, 21 Jul 2006 18:56:57 +0000 (GMT) (envelope-from GMcCaughan@synaptics-uk.com) Received: from firewall.synaptics-uk.com ([194.203.111.212] helo=ukexchange2k.synaptics-inc.local) by mx2.synaptics-uk.com with esmtp (Exim 4.62) (envelope-from ) id 1G40BE-00007w-35; Fri, 21 Jul 2006 19:56:56 +0100 Received: from lists.synaptics-uk.com ([172.20.11.6]) by ukexchange2k.synaptics-inc.local with Microsoft SMTPSVC(5.0.2195.6713); Fri, 21 Jul 2006 19:56:50 +0100 Received: from [172.20.11.5] (unknown [172.20.11.5]) by lists.synaptics-uk.com (Postfix) with ESMTP id 0554317030; Fri, 21 Jul 2006 19:37:16 +0100 (BST) From: Gareth McCaughan To: freebsd-hackers@freebsd.org Date: Fri, 21 Jul 2006 19:56:50 +0100 User-Agent: KMail/1.9.1 References: <200607181317.33416.gmccaughan@synaptics-uk.com> <200607211507.02139.gmccaughan@synaptics-uk.com> <200607211137.58230.jhb@freebsd.org> In-Reply-To: <200607211137.58230.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607211956.50518.gmccaughan@synaptics-uk.com> X-OriginalArrivalTime: 21 Jul 2006 18:56:51.0042 (UTC) FILETIME=[6CE40420:01C6ACF7] X-Mailman-Approved-At: Fri, 21 Jul 2006 21:55:15 +0000 Cc: Subject: Re: "swiN: clock sio" process taking 75% CPU 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, 21 Jul 2006 18:57:02 -0000 On Friday 2006-07-21 16:37, John Baldwin wrote: > On Friday 21 July 2006 10:07, Gareth McCaughan wrote: ... > > OK, so here's what's happening. ... > > Suggestions: ... > > If any of these is thought a good idea, I can provide a patch. > > Either 1 or 2 sounds like a good idea to me. I think perhaps I > slightly favor 2, but not by much. 1 would probably be simpler. I've just sent a PR, category "kern", subject something like "syscons screen savers can use up to 75% CPU", with a patch attached taking approach #2. -- g From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 02:43:16 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 9275A16A4DD for ; Sat, 22 Jul 2006 02:43:16 +0000 (UTC) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (ns1.ecoms.com [207.44.130.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 477C243D46 for ; Sat, 22 Jul 2006 02:43:13 +0000 (GMT) (envelope-from mv@thebeastie.org) Received: from p4.roq.com (localhost.roq.com [127.0.0.1]) by p4.roq.com (Postfix) with ESMTP id E6A264D21C; Sat, 22 Jul 2006 02:43:13 +0000 (GMT) Received: from [150.101.157.158] (ppp157-158.static.internode.on.net [150.101.157.158]) by p4.roq.com (Postfix) with ESMTP id 9B2D44D1FA; Sat, 22 Jul 2006 02:43:12 +0000 (GMT) Message-ID: <44C190BE.9020109@thebeastie.org> Date: Sat, 22 Jul 2006 12:43:10 +1000 From: Michael Vince User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.13) Gecko/20060526 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-9?Q?=D6zkan_KIRIK?= References: <44BFAE1D.30906@cwt.uz> <44C0D55B.60500@preved.cn> <44C0F977.8050000@mersin.edu.tr> In-Reply-To: <44C0F977.8050000@mersin.edu.tr> Content-Type: text/plain; charset=ISO-8859-9; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: hackers@freebsd.org, Timur Yuldashev , Tarasov Alexey Subject: Re: New Welcome message for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 02:43:16 -0000 Yes I agree with "The Power To Serve!" change, its less controversial and helps diminish arguments. If you like arguments how about the idea of having both in the base system and let users choose which one they prefer via rc.conf. I think I might actually put that motd on some of my servers. Thanks. Mike Özkan KIRIK wrote: > i think i'll be better if slogan of freebsd added to this motd ;) > > The Power To Serve! > > > > Tarasov Alexey yazmış: > >> Timur Yuldashev wrote: >> >>> New motd-welcome message for FreeBSD. >>> >>> http://www.cwt.uz/motd >>> >>> best regards >>> >> >> I like it! Very good. >> > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 04:24: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 613EA16A4DA for ; Sat, 22 Jul 2006 04:24:44 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8995943D46 for ; Sat, 22 Jul 2006 04:24:40 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.pc (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.7/8.13.7/Debian-1) with ESMTP id k6M4NssM008373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 22 Jul 2006 07:23:58 +0300 Received: from gothmog.pc (gothmog [127.0.0.1]) by gothmog.pc (8.13.7/8.13.7) with ESMTP id k6M4NmRk055192; Sat, 22 Jul 2006 07:23:49 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.pc (8.13.7/8.13.7/Submit) id k6M4NmNi055191; Sat, 22 Jul 2006 07:23:48 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 22 Jul 2006 07:23:47 +0300 From: Giorgos Keramidas To: Tarasov Alexey Message-ID: <20060722042347.GE53239@gothmog.pc> References: <44BFAE1D.30906@cwt.uz> <44C0D55B.60500@preved.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44C0D55B.60500@preved.cn> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.751, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.65, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: hackers@freebsd.org, Timur Yuldashev Subject: Re: New Welcome message for FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 04:24:44 -0000 On 2006-07-21 17:23, Tarasov Alexey wrote: >Timur Yuldashev wrote: >> New motd-welcome message for FreeBSD. >> >> http://www.cwt.uz/motd >> >> best regards > > I like it! Very good. I don't. It is pretty "content free" when compared with our current default motd. The information in the current motd file is useful and provides hints towards stuff that may be interesting both to a new admin who just installed FreeBSD and a new user who just happened to log into a FreeBSD system. More importantly, the default /etc/motd is just a sample motd file, which you are free to edit locally :) From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 05:46:56 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D182716A4DD for ; Sat, 22 Jul 2006 05:46:56 +0000 (UTC) (envelope-from george@m5p.com) Received: from mailhost.m5p.com (209-162-215-52.dq1sn.easystreet.com [209.162.215.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E46C43D49 for ; Sat, 22 Jul 2006 05:46:56 +0000 (GMT) (envelope-from george@m5p.com) Received: from m5p.com (ssh.m5p.com [IPv6:2001:418:3fd::fb]) by mailhost.m5p.com (8.13.7/8.13.7) with ESMTP id k6M5ktIf063294 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=OK) for ; Fri, 21 Jul 2006 22:46:55 -0700 (PDT) Received: (from george@localhost) by m5p.com (8.13.7/8.13.7/Submit) id k6M5kq59001314; Fri, 21 Jul 2006 22:46:52 -0700 (PDT) Date: Fri, 21 Jul 2006 22:46:52 -0700 (PDT) Message-Id: <200607220546.k6M5kq59001314@m5p.com> From: george+freebsd@m5p.com To: freebsd-hackers@freebsd.org X-Spam-Score: -2.168 () AWL,BAYES_00,NO_RELAYS X-Scanned-By: MIMEDefang 2.56 on IPv6:2001:418:3fd::f7 Subject: FreeBSD 6.0/6.1: open ("/dev/lpt0" ...) hangs up 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, 22 Jul 2006 05:46:56 -0000 A couple of days ago, I upgraded from FreeBSD 5.3 to 6.1 (installed on a previously unused disk partition). Happiness ensued for the most part, but I could not get printing to work at all with the generic kernel. I played around for a while and eventually found that open ("/dev/lpt0" ...) would hang up. But if I tried it in single user mode, it worked fine. I could even "cat foo.txt >/dev/lpt0" in single user mode and print. But as soon as I went multi-user, no joy. I compiled a custom kernel, kicking out all sorts of stuff I didn't need, and then everything started working. But I could make it go bad again by putting "device plip" back in. With that kernel, as before, I could open /dev/lpt0 in single-user mode but not in multi- user mode. Specifically, it's hanging up when it tries to request the ppbus (line 478 of lpt.c) (as determined from the printfs I sprinkled in). I'm guessing that if_plip.c has requested it and not released it, which apparently happens when there's been an ioctl on the plip. There's no plausible reason why anythhing should be happeneing on plip, as far as I can tell. What can I call in lpioctl (if_plip.c line 302) to print out some identifying information about the process doing the ioctl? This problem is also present in 6.0. Why haven't a whole bunch of people already run into it? Am I the only person still using a parallel port printer and (at first) a generic kernel? -- George Mitchell From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 06:01:37 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 E8C5E16A4DA for ; Sat, 22 Jul 2006 06:01:37 +0000 (UTC) (envelope-from gjb@gbch.net) Received: from gw.gbch.net (gw.gbch.net [203.143.238.93]) by mx1.FreeBSD.org (Postfix) with SMTP id ED1E343D46 for ; Sat, 22 Jul 2006 06:01:36 +0000 (GMT) (envelope-from gjb@gbch.net) Received: (qmail 9118 invoked from network); 22 Jul 2006 16:01:34 +1000 Received: from iliad.gbch.net (172.16.1.9) by gw.gbch.net with SMTP; 22 Jul 2006 16:01:34 +1000 Received: (qmail 7295 invoked by uid 1001); 22 Jul 2006 16:01:33 +1000 Message-ID: Date: Sat, 22 Jul 2006 16:01:33 +1000 From: Greg Black To: george+freebsd@m5p.com References: <200607220546.k6M5kq59001314@m5p.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607220546.k6M5kq59001314@m5p.com> User-Agent: Mutt/1.4.2.2i; gjb-muttsend.sh 1.7 2004-10-05 X-Uptime: 6 days X-Operating-System: FreeBSD 6.0-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Blog: http://www.gbch.net/gjb/blog/ X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-PGP-Key-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-Request-PGP: http://www.gbch.net/keys/4B04B7D6.asc Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 6.0/6.1: open ("/dev/lpt0" ...) hangs up 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, 22 Jul 2006 06:01:38 -0000 On 2006-07-21, george+freebsd@m5p.com wrote: > This problem is also present in 6.0. Why haven't a whole bunch of > people already run into it? Am I the only person still using a > parallel port printer and (at first) a generic kernel? I use parallel printers under 6.0 and 6.1 on i386 and amd64 generic kernels and have never had a problem. So your issue must be a little more specific than you've so far identified. Greg From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 07:01: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 9C26A16A4DE for ; Sat, 22 Jul 2006 07:01:55 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swip.net [212.247.155.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1056643D45 for ; Sat, 22 Jul 2006 07:01:54 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.217.36.161] (HELO [10.0.0.249]) by mailfe12.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 69884525; Sat, 22 Jul 2006 09:01:52 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Sat, 22 Jul 2006 09:01:56 +0200 User-Agent: KMail/1.7 References: <200607220546.k6M5kq59001314@m5p.com> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607220902.00263.hselasky@c2i.net> Cc: george+freebsd@m5p.com Subject: Re: FreeBSD 6.0/6.1: open ("/dev/lpt0" ...) hangs up 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, 22 Jul 2006 07:01:55 -0000 On Saturday 22 July 2006 08:01, Greg Black wrote: > On 2006-07-21, george+freebsd@m5p.com wrote: > > This problem is also present in 6.0. Why haven't a whole bunch of > > people already run into it? Am I the only person still using a > > parallel port printer and (at first) a generic kernel? > > I use parallel printers under 6.0 and 6.1 on i386 and amd64 > generic kernels and have never had a problem. So your issue > must be a little more specific than you've so far identified. > You could try installing my USB driver at: http://www.turbocat.net/~hselasky/usb4bsd And see if there is any change. PS: If you want the latest sources, then: svn --username anonsvn --password anonsvn checkout svn://svn.turbocat.net/i4b cd i4b/trunk/i4b/FreeBSD.usb make S=../src package make install Follow the "make help" instructions. --HPS From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 08:20:30 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 4841316A4E1 for ; Sat, 22 Jul 2006 08:20:30 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91A3443D45 for ; Sat, 22 Jul 2006 08:20:29 +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 mail07.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k6M8KR8Z008936 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 22 Jul 2006 18:20:27 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k6M8KQtQ011344; Sat, 22 Jul 2006 18:20:26 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k6M8KQAT011343; Sat, 22 Jul 2006 18:20:26 +1000 (EST) (envelope-from peter) Date: Sat, 22 Jul 2006 18:20:26 +1000 From: Peter Jeremy To: george+freebsd@m5p.com Message-ID: <20060722082026.GG728@turion.vk2pj.dyndns.org> References: <200607220546.k6M5kq59001314@m5p.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SUk9VBj82R8Xhb8H" Content-Disposition: inline In-Reply-To: <200607220546.k6M5kq59001314@m5p.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: FreeBSD 6.0/6.1: open ("/dev/lpt0" ...) hangs up 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, 22 Jul 2006 08:20:30 -0000 --SUk9VBj82R8Xhb8H Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, 2006-Jul-21 22:46:52 -0700, george+freebsd@m5p.com wrote: >sprinkled in). I'm guessing that if_plip.c has requested it and not >released it, which apparently happens when there's been an ioctl on >the plip. There's no plausible reason why anythhing should be >happeneing on plip, as far as I can tell. There are several points in the startup code where it iterates through all the available network interfaces. Possibly one of those is the culprit. > What can I call in lpioctl >(if_plip.c line 302) to print out some identifying information >about the process doing the ioctl?=20 All I can suggest is looking in curproc (struct proc). There doesn't seem to be anything passed to lpioctl() that would allow you to locate the calling process. >This problem is also present in 6.0. Why haven't a whole bunch of >people already run into it? Am I the only person still using a >parallel port printer and (at first) a generic kernel? I suspect plip has outlived its usefulness. --=20 Peter Jeremy --SUk9VBj82R8Xhb8H Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQFEwd/J/opHv/APuIcRAnZTAJ4trxhJIwXX7EM8xdGm+lHaaRFqnwCfcAMJ VQxgLjJ+U/tMf4UBHgH8z+c= =RsGD -----END PGP SIGNATURE----- --SUk9VBj82R8Xhb8H-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 09:58:18 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EB2416A554 for ; Sat, 22 Jul 2006 09:58:18 +0000 (UTC) (envelope-from jhs@flat.berklix.net) Received: from thin.berklix.org (thin.berklix.org [194.246.123.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6950243D55 for ; Sat, 22 Jul 2006 09:58:16 +0000 (GMT) (envelope-from jhs@flat.berklix.net) Received: from js.berklix.net (p549A67F5.dip.t-dialin.net [84.154.103.245]) (authenticated bits=128) by thin.berklix.org (8.12.11/8.12.11) with ESMTP id k6M9wDCP027593; Sat, 22 Jul 2006 11:58:14 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (fire.jhs.private [192.168.91.41]) by js.berklix.net (8.12.11/8.12.11) with ESMTP id k6M9wBeR003420; Sat, 22 Jul 2006 11:58:12 +0200 (CEST) (envelope-from jhs@flat.berklix.net) Received: from fire.jhs.private (localhost.jhs.private [127.0.0.1]) by fire.jhs.private (8.13.1/8.13.1) with ESMTP id k6M9wBvJ012219; Sat, 22 Jul 2006 11:58:11 +0200 (CEST) (envelope-from jhs@fire.jhs.private) Message-Id: <200607220958.k6M9wBvJ012219@fire.jhs.private> To: Peter Jeremy In-Reply-To: Message from Peter Jeremy of "Sat, 22 Jul 2006 18:20:26 +1000." <20060722082026.GG728@turion.vk2pj.dyndns.org> Date: Sat, 22 Jul 2006 11:58:11 +0200 From: "Julian H. Stacey" Cc: freebsd-hackers@freebsd.org, george+freebsd@m5p.com Subject: Re: FreeBSD 6.0/6.1: open ("/dev/lpt0" ...) hangs up 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, 22 Jul 2006 09:58:18 -0000 > I suspect plip has outlived its usefulness. PL-IP is still useful. Like ed, one wouldnt want to use it every day, but it's useful for fallback bootstrapping / rescue / 1st install, if ether fails etc. -- Julian Stacey. Consultant Unix Net & Sys. Eng., Munich. http://berklix.com Mail in Ascii, HTML=spam. Ihr Rauch = mein allergischer Kopfschmerz. From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 17:03:27 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 D3FF016A4DE for ; Sat, 22 Jul 2006 17:03:27 +0000 (UTC) (envelope-from george@m5p.com) Received: from mailhost.m5p.com (209-162-215-52.dq1sn.easystreet.com [209.162.215.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F87243D4C for ; Sat, 22 Jul 2006 17:03:27 +0000 (GMT) (envelope-from george@m5p.com) Received: from m5p.com (ssh.m5p.com [IPv6:2001:418:3fd::fb]) by mailhost.m5p.com (8.13.7/8.13.7) with ESMTP id k6MH3PJA077579 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=OK) for ; Sat, 22 Jul 2006 10:03:25 -0700 (PDT) Received: (from george@localhost) by m5p.com (8.13.7/8.13.7/Submit) id k6MH3Pb4000823; Sat, 22 Jul 2006 10:03:25 -0700 (PDT) Date: Sat, 22 Jul 2006 10:03:25 -0700 (PDT) Message-Id: <200607221703.k6MH3Pb4000823@m5p.com> From: george+freebsd@m5p.com To: freebsd-hackers@freebsd.org X-Spam-Score: -2.185 () AWL,BAYES_00,NO_RELAYS X-Scanned-By: MIMEDefang 2.56 on IPv6:2001:418:3fd::f7 Subject: open ("/dev/lpt0" ...) hangup solved 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, 22 Jul 2006 17:03:27 -0000 As was suggested, the problem is that when the system automatically brings up the plip0 interface, it grabs the ppbus and doesn't let it go until someone takes the interface down. I now believe this problem was present even in 5.3, but I didn't see it because I routinely compiled custom 5.x kernels, always without plip. So the real simple fix is to prevent the plip0 interface from coming up. I thought the simple fix for this was to put: ifconfig_plip0="noauto" into my rc.conf. But it still came up anyway. So I put: network_interfaces="sis0 re0 lo0" in rc.conf, explicitly excluding plip0. But plip0 still came up! What am I doing wrong now? (When I manually "ifconfig plip0 down", the whole printing problem is solved.) Whatever the correct way for keeping plip0 off the list of interfaces automagically brought up is, I suggest it should go into /etc/defaults/rc.conf to keep future losers like me from running into this problem. -- George Mitchell From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 17:14:23 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 E716016A4DA; Sat, 22 Jul 2006 17:14:22 +0000 (UTC) (envelope-from lofi@freebsd.org) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 155C543D45; Sat, 22 Jul 2006 17:14:22 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-09-z2.arcor-online.net (mail-in-09-z2.arcor-online.net [151.189.8.21]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id D21D919F8DD; Sat, 22 Jul 2006 19:14:20 +0200 (CEST) Received: from mail-in-08.arcor-online.net (mail-in-08.arcor-online.net [151.189.21.48]) by mail-in-09-z2.arcor-online.net (Postfix) with ESMTP id C1B45980CB; Sat, 22 Jul 2006 19:14:20 +0200 (CEST) Received: from lofi.dyndns.org (dslb-084-061-132-249.pools.arcor-ip.net [84.61.132.249]) by mail-in-08.arcor-online.net (Postfix) with ESMTP id 380471615D9; Sat, 22 Jul 2006 19:14:20 +0200 (CEST) Received: from kiste.my.domain (root@kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id k6MHEG9h031871 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 22 Jul 2006 19:14:16 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from kiste.my.domain (lofi@localhost [127.0.0.1]) by kiste.my.domain (8.13.6/8.13.4) with ESMTP id k6MHEGeh074844; Sat, 22 Jul 2006 19:14:16 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste.my.domain (8.13.6/8.13.4/Submit) id k6MHEFft074843; Sat, 22 Jul 2006 19:14:15 +0200 (CEST) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste.my.domain: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: freebsd-hackers@freebsd.org Date: Sat, 22 Jul 2006 19:14:11 +0200 User-Agent: KMail/1.9.3 X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y, $]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<.jnfV[ 3#>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)A2!* vNkB/|L->&QdSbQg X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org Subject: WINE vs. FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 17:14:23 -0000 --nextPart6146326.I1hCXOmlRH Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Dear -hackers and -emulation readers, I would like to call your attention to a few long-standing problems that ha= ve=20 so far prevented WINE from living up to its capabilities on FreeBSD. I am afraid that I still don't fully grasp the scope of the problem, nor do= I=20 have a clear idea of what the solution might be, but what I've gathered so= =20 far is this: WINE does have certain requirements regarding memory allocation. In particu= lar=20 it (or Windows, rather) really wants a few memory ranges for itself: (from wine-0.9.17/loader/preloader.c): * 0x00000000 - 0x00110000 the DOS area * 0x80000000 - 0x81000000 the shared heap * ??? - ??? the PE binary load address (usually starting a= t=20 0x00400000) The first two are particularly important for WINE running in win98 (or=20 earlier) emulation mode, which is currently completely broken on FreeBSD,=20 since those two memory ranges tend to be unavailable. The preloader bit from which this is quoted is WINE's "own shared object=20 loader that reserves memory that is important to Wine, and then loads the=20 main binary and its ELF interpreter", and obviously does not work right on FreeBSD. I'm not sure whether it can be made to or not, perhaps somebody familiar with both our VM and runtime linker could take a look. Some more references: http://www.winehq.org/pipermail/wine-devel/2004-December/031750.html http://bugs.winehq.org/show_bug.cgi?id=3D5732 The other big issue with WINE on FreeBSD seems to be our threading support.= =20 WINE quite reliably manages to confuse libpthread, see http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dthreads/100701. On SMP machine= s,=20 I've even been able to trigger kernel panics with WINE (in win2k+ emulation= =20 mode) by merely hitting the close button on a windows application (and WINE= =20 subsequently shutting down): http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026219.html. WINE's threads interface can be found in loader/pthread.c and=20 loader/kthread.c - again, it would be great, if someone to whom that sort o= f=20 code means more than just random gibberish could take a look. Cheers, =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart6146326.I1hCXOmlRH Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQBEwlznXhc68WspdLARAvC4AKCEOdaRjbJHRXLiGXJ58chDdBc1gACfVV/e CHFuqVURFbO+eOQCz7qLYVc= =1K6U -----END PGP SIGNATURE----- --nextPart6146326.I1hCXOmlRH-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 17:25:50 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 BDB6F16A4E2 for ; Sat, 22 Jul 2006 17:25:50 +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 C64FA43D55 for ; Sat, 22 Jul 2006 17:25:47 +0000 (GMT) (envelope-from rick@kiwi-computer.com) Received: (qmail 79329 invoked by uid 2001); 22 Jul 2006 17:25:46 -0000 Date: Sat, 22 Jul 2006 12:25:46 -0500 From: "Rick C. Petty" To: george+freebsd@m5p.com Message-ID: <20060722172546.GA79233@megan.kiwi-computer.com> References: <200607221703.k6MH3Pb4000823@m5p.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607221703.k6MH3Pb4000823@m5p.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: open ("/dev/lpt0" ...) hangup solved X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 17:25:50 -0000 On Sat, Jul 22, 2006 at 10:03:25AM -0700, george+freebsd@m5p.com wrote: > > So the real simple fix is to prevent the plip0 interface from coming > up. I thought the simple fix for this was to put: > > ifconfig_plip0="noauto" This is supposed to work? I thought the values to the ifconfig_* variables were passed directly to ifconfig(8).. > into my rc.conf. But it still came up anyway. So I put: > > network_interfaces="sis0 re0 lo0" > > in rc.conf, explicitly excluding plip0. But plip0 still came up! > What am I doing wrong now? > > (When I manually "ifconfig plip0 down", the whole printing problem > is solved.) What's wrong with using: ifconfig_plip0="down" ??? -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 19:21:36 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A226F16A4E0 for ; Sat, 22 Jul 2006 19:21:36 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9305743D8E for ; Sat, 22 Jul 2006 19:20:46 +0000 (GMT) (envelope-from kip.macy@gmail.com) Received: by py-out-1112.google.com with SMTP id b36so1550954pyb for ; Sat, 22 Jul 2006 12:20:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=iYE+UlK6IZZjnMWcEJbB8fvM7HubIPzwUoS7dxEwBUHMtdbxbPtuDGUKM3CPVgmfsi+leZ1F6YIOp5arw/Kx6u2PSV6gW3kqSElAvQvovqHbHA8+aLg67enCRXCHu5HY4AiqBFMvpmfnrBo6kIVjNpRA6+jhBt6IVKRi/w1dXmk= Received: by 10.35.111.14 with SMTP id o14mr3845043pym; Sat, 22 Jul 2006 12:20:46 -0700 (PDT) Received: by 10.35.16.20 with HTTP; Sat, 22 Jul 2006 12:20:45 -0700 (PDT) Message-ID: Date: Sat, 22 Jul 2006 12:20:45 -0700 From: "Kip Macy" To: "Michael Nottebrock" In-Reply-To: <200607221914.15826.lofi@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200607221914.15826.lofi@freebsd.org> Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: WINE vs. FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kmacy@fsmware.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 19:21:36 -0000 Thanks for your input. The relative merits of the different threading libraries is currently under discussion. Could you also try it with libthr (it may not work at all), I'd like to hear what happens. Thanks. -Kip On 7/22/06, Michael Nottebrock wrote: > Dear -hackers and -emulation readers, > > I would like to call your attention to a few long-standing problems that > have > so far prevented WINE from living up to its capabilities on FreeBSD. > > I am afraid that I still don't fully grasp the scope of the problem, nor do > I > have a clear idea of what the solution might be, but what I've gathered so > far is this: > > WINE does have certain requirements regarding memory allocation. In > particular > it (or Windows, rather) really wants a few memory ranges for itself: > > (from wine-0.9.17/loader/preloader.c): > > * 0x00000000 - 0x00110000 the DOS area > * 0x80000000 - 0x81000000 the shared heap > * ??? - ??? the PE binary load address (usually starting at > 0x00400000) > > The first two are particularly important for WINE running in win98 (or > earlier) emulation mode, which is currently completely broken on FreeBSD, > since those two memory ranges tend to be unavailable. > > The preloader bit from which this is quoted is WINE's "own shared object > loader that reserves memory that is important to Wine, and then loads the > main binary and its ELF interpreter", and obviously does not work > right on FreeBSD. I'm not sure whether it can be made to or not, perhaps > somebody familiar with both our VM and runtime linker could take a look. > > Some more references: > > http://www.winehq.org/pipermail/wine-devel/2004-December/031750.html > http://bugs.winehq.org/show_bug.cgi?id=5732 > > The other big issue with WINE on FreeBSD seems to be our threading support. > WINE quite reliably manages to confuse libpthread, see > http://www.freebsd.org/cgi/query-pr.cgi?pr=threads/100701. On SMP machines, > I've even been able to trigger kernel panics with WINE (in win2k+ emulation > mode) by merely hitting the close button on a windows application (and WINE > subsequently shutting down): > http://lists.freebsd.org/pipermail/freebsd-stable/2006-June/026219.html. > > WINE's threads interface can be found in loader/pthread.c and > loader/kthread.c - again, it would be great, if someone to whom that sort of > code means more than just random gibberish could take a look. > > > Cheers, > -- > ,_, | Michael Nottebrock | lofi@freebsd.org > (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org > \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org > > From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 21:49:11 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BEBD316A4DE; Sat, 22 Jul 2006 21:49:11 +0000 (UTC) (envelope-from lofi@freebsd.org) Received: from mail-in-07.arcor-online.net (mail-in-07.arcor-online.net [151.189.21.47]) by mx1.FreeBSD.org (Postfix) with ESMTP id 993D043D45; Sat, 22 Jul 2006 21:49:10 +0000 (GMT) (envelope-from lofi@freebsd.org) Received: from mail-in-05-z2.arcor-online.net (mail-in-05-z2.arcor-online.net [151.189.8.17]) by mail-in-07.arcor-online.net (Postfix) with ESMTP id 5541F19F400; Sat, 22 Jul 2006 23:49:09 +0200 (CEST) Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) by mail-in-05-z2.arcor-online.net (Postfix) with ESMTP id 47F811A9819; Sat, 22 Jul 2006 23:49:09 +0200 (CEST) Received: from lofi.dyndns.org (dslb-084-061-132-249.pools.arcor-ip.net [84.61.132.249]) by mail-in-02.arcor-online.net (Postfix) with ESMTP id 0F85324F0B2; Sat, 22 Jul 2006 23:49:09 +0200 (CEST) Received: from kiste (kiste.my.domain [192.168.8.4]) by lofi.dyndns.org (8.13.4/8.13.3) with ESMTP id k6MLn5rW035132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 22 Jul 2006 23:49:05 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from kiste (localhost [127.0.0.1]) by kiste (8.13.6/8.13.4) with ESMTP id k6MLn4W9002802; Sat, 22 Jul 2006 23:49:04 +0200 (CEST) (envelope-from lofi@freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by kiste (8.13.6/8.13.4/Submit) id k6MLf5g7002642; Sat, 22 Jul 2006 23:41:05 +0200 (CEST) (envelope-from lofi@freebsd.org) X-Authentication-Warning: kiste: lofi set sender to lofi@freebsd.org using -f From: Michael Nottebrock To: kmacy@fsmware.com Date: Sat, 22 Jul 2006 23:41:01 +0200 User-Agent: KMail/1.9.3 References: <200607221914.15826.lofi@freebsd.org> In-Reply-To: X-Face: =Ym$`&q\+S2X$4`X%x%6"L4>Y,$]<":'L%c9"#7#`2tb&E&wsN31on!N\)3BD[g<=?utf-8?q?=2EjnfV=5B=0A=093=23?=>XchLK,o; >bD>c:]^; :>0>vyZ.X[,63GW`&M>}nYnr]-Fp``,[[@lJ!QL|sfW!s)=?utf-8?q?A2!*=0A=09vNkB/=7CL-?=>&QdSbQg X-Virus-Scanned: by amavisd-new Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: WINE vs. FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 21:49:11 -0000 --nextPart230723474.Esb07eD5hD Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday, 22. July 2006 21:20, Kip Macy wrote: > Thanks for your input. > > The relative merits of the different threading libraries is currently > under discussion. Could you also try it with libthr (it may not work > at all), I'd like to hear what happens. Thanks. WINE crashes in roughly the same spot. This is however with a libthr on=20 =46reeBSD 5.5-RELEASE-p2, which is nothing short of disastrous (with a glob= al=20 lib mapping from libpthread to libthr, about 1/3 of all the programs in my= =20 default KDE session start at all - the rest hangs in state sbwait). Cheers, =2D-=20 ,_, | Michael Nottebrock | lofi@freebsd.org (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org --nextPart230723474.Esb07eD5hD Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (FreeBSD) iD8DBQBEwptxXhc68WspdLARAsMQAJ9DmmltJcxsvBf4SJs7M7QpcWFFIwCaAqQe GDTSw9mRmRMQf9ZDY1e4k9E= =Pdq6 -----END PGP SIGNATURE----- --nextPart230723474.Esb07eD5hD-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 22:59:06 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB42C16A4DE for ; Sat, 22 Jul 2006 22:59:06 +0000 (UTC) (envelope-from kip.macy@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4510043D4C for ; Sat, 22 Jul 2006 22:59:05 +0000 (GMT) (envelope-from kip.macy@gmail.com) Received: by py-out-1112.google.com with SMTP id b36so1579489pyb for ; Sat, 22 Jul 2006 15:59:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LB3WbQSqcRQqcJ6AjpGckBJjatsaevqL7EDHFOQkaLeoXfS0IA8Gi8sNbtXA86ZyqSUVqcT4Zxsy1POFCkL5pK6oRoCaDftoCWLd2hY28j9/6uxodxRCxpG85abpcEoU10R6ASBWbVxLaCZfMpCjMJJgzwfwGHR8TypD2SL+NRE= Received: by 10.35.78.9 with SMTP id f9mr4203595pyl; Sat, 22 Jul 2006 15:59:05 -0700 (PDT) Received: by 10.35.16.20 with HTTP; Sat, 22 Jul 2006 15:59:04 -0700 (PDT) Message-ID: Date: Sat, 22 Jul 2006 15:59:04 -0700 From: "Kip Macy" To: "Michael Nottebrock" In-Reply-To: <200607222341.05180.lofi@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200607221914.15826.lofi@freebsd.org> <200607222341.05180.lofi@freebsd.org> Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org Subject: Re: WINE vs. FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: kmacy@fsmware.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 22:59:06 -0000 Thanks. That is a useful data point but David Xu has done a lot of work on libthr that has probably not been MFC'd back to 5.x. When I get the chance I'll try building KDE on my desktop which runs a derivative of -CURRENT. It may well be a general kernel bug, as I recall seeing the same error running FreeBSD on Xen with several threaded apps. -Kip On 7/22/06, Michael Nottebrock wrote: > On Saturday, 22. July 2006 21:20, Kip Macy wrote: > > Thanks for your input. > > > > The relative merits of the different threading libraries is currently > > under discussion. Could you also try it with libthr (it may not work > > at all), I'd like to hear what happens. Thanks. > > WINE crashes in roughly the same spot. This is however with a libthr on > FreeBSD 5.5-RELEASE-p2, which is nothing short of disastrous (with a global > lib mapping from libpthread to libthr, about 1/3 of all the programs in my > default KDE session start at all - the rest hangs in state sbwait). > > > Cheers, > -- > ,_, | Michael Nottebrock | lofi@freebsd.org > (/^ ^\) | FreeBSD - The Power to Serve | http://www.freebsd.org > \u/ | K Desktop Environment on FreeBSD | http://freebsd.kde.org > > > From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 22:59: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 ED29C16A4E1; Sat, 22 Jul 2006 22:59:47 +0000 (UTC) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 117ED43D5F; Sat, 22 Jul 2006 22:59:43 +0000 (GMT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 92FC79BD8A; Sun, 23 Jul 2006 08:29:42 +0930 (CST) Date: Sun, 23 Jul 2006 08:29:42 +0930 From: Greg 'groggy' Lehey To: Robert Watson Message-ID: <20060722225942.GA16230@wantadilla.lemis.com> References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> <20060721031308.GK27268@wantadilla.lemis.com> <20060721143024.W79560@fledge.watson.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dDRMvlgZJXvWKvBx" Content-Disposition: inline In-Reply-To: <20060721143024.W79560@fledge.watson.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 , babkin@users.sf.net 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: Sat, 22 Jul 2006 22:59:48 -0000 --dDRMvlgZJXvWKvBx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 21 July 2006 at 14:32:04 +0100, Robert Watson wrote: > > On Fri, 21 Jul 2006, Greg 'groggy' Lehey wrote: > >>>> I've been keeping a closer eye on my problem. I'm using fvwm1 with >>>> click-to-focus and lose-focus-on-screen-switch. If I move from one >>>> screen to another and quickly click on a window, the border changes >>>> colour to indicate that it has focus but keyboard input is ignored. >>> >>> This is likely an fvwm1 problem. I use it too (without 2 monitors) and >>> after some time something gets broken in its focus handling, and the >>> windows stop getting focus. Restarting fvwm clears up the problem. >> >> In my case, it's erratic. I suppose I could try restarting the window >> manager next time a window freezes. > > I've occasionally also had weird focus problems with KDE. Among other > things, it looks like occasionally the mouse release event is lost > somewhere in the system (or something along these lines) -- I don't know if > it's a driver problem, a moused problem, an X11 probem, or a KDE problem. > If I press and release each of the buttons, especially the third button, > things will often recover. As long as the button is "held down", KDE > doesn't switch the focus and other events are largely ignored. Odd, eh? Indeed. Initially it doesn't look like my problems, where things hang up permanently. I've now tried the suggestion I made above, restarting the window manager. It didn't make any difference.e Greg -- See complete headers for address and phone numbers. --dDRMvlgZJXvWKvBx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEwq3eIubykFB6QiMRAkLqAKCUb7CjFoKyEOgD2EVEB0l1QQPt9QCeKGt/ hsOiHwvPvdvaBPZVClfGR8Q= =djHe -----END PGP SIGNATURE----- --dDRMvlgZJXvWKvBx-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 23:03:31 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 C753A16A4DA; Sat, 22 Jul 2006 23:03:31 +0000 (UTC) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D40943D45; Sat, 22 Jul 2006 23:03:31 +0000 (GMT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 73CB19BD8A; Sun, 23 Jul 2006 08:33:30 +0930 (CST) Date: Sun, 23 Jul 2006 08:33:30 +0930 From: Greg 'groggy' Lehey To: Daniel O'Connor Message-ID: <20060722230330.GB16230@wantadilla.lemis.com> References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> <20060721031308.GK27268@wantadilla.lemis.com> <20060721143024.W79560@fledge.watson.org> <200607212338.01728.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: <200607212338.01728.doconnor@gsoft.com.au> 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@freebsd.org, babkin@users.sourceforge.net, FreeBSD Hackers , Robert Watson 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: Sat, 22 Jul 2006 23:03:31 -0000 --yEPQxsgoJgBvi8ip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 21 July 2006 at 23:38:00 +0930, Daniel O'Connor wrote: > On Friday 21 July 2006 23:02, Robert Watson wrote: >> I've occasionally also had weird focus problems with KDE. Among other >> things, it looks like occasionally the mouse release event is lost >> somewhere in the system (or something along these lines) -- I don't know if >> it's a driver problem, a moused problem, an X11 probem, or a KDE problem. >> If I press and release each of the buttons, especially the third button, >> things will often recover. As long as the button is "held down", KDE >> doesn't switch the focus and other events are largely ignored. Odd, eh? > > One thing that IS a KDE problem is having it manage 2 distinct desktops > (ie :0.0 [laptop LCD] and :0.1 [TV out]) - it occasionally decides to give > the other display focus after a dialog has been closed.. Are you sure? This sounds like the issue that Peter and I have been discussing in the context of fvwm. > Makes using kmail annoying because the only way to bring back focus > is to use the mouse :( Which reminds me of the reason for click focus in the first place: on the machines of 15 years ago, focus following the cursor could place an unacceptable load on the X server. Maybe what we're seeing here is related. Greg -- See complete headers for address and phone numbers. --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEwq7CIubykFB6QiMRAtC7AJsHfIP/LVsaoud76sQ9ggQtXA/xxgCfRCFg 05OBN5IbCv53Wj9Js+/3TWk= =eFzX -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 23:03:31 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 C753A16A4DA; Sat, 22 Jul 2006 23:03:31 +0000 (UTC) (envelope-from grog@lemis.com) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.135]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D40943D45; Sat, 22 Jul 2006 23:03:31 +0000 (GMT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 73CB19BD8A; Sun, 23 Jul 2006 08:33:30 +0930 (CST) Date: Sun, 23 Jul 2006 08:33:30 +0930 From: Greg 'groggy' Lehey To: Daniel O'Connor Message-ID: <20060722230330.GB16230@wantadilla.lemis.com> References: <18075337.124391153395068232.JavaMail.root@vms068.mailsrvcs.net> <20060721031308.GK27268@wantadilla.lemis.com> <20060721143024.W79560@fledge.watson.org> <200607212338.01728.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yEPQxsgoJgBvi8ip" Content-Disposition: inline In-Reply-To: <200607212338.01728.doconnor@gsoft.com.au> 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@freebsd.org, babkin@users.sourceforge.net, FreeBSD Hackers , Robert Watson 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: Sat, 22 Jul 2006 23:03:31 -0000 --yEPQxsgoJgBvi8ip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Friday, 21 July 2006 at 23:38:00 +0930, Daniel O'Connor wrote: > On Friday 21 July 2006 23:02, Robert Watson wrote: >> I've occasionally also had weird focus problems with KDE. Among other >> things, it looks like occasionally the mouse release event is lost >> somewhere in the system (or something along these lines) -- I don't know if >> it's a driver problem, a moused problem, an X11 probem, or a KDE problem. >> If I press and release each of the buttons, especially the third button, >> things will often recover. As long as the button is "held down", KDE >> doesn't switch the focus and other events are largely ignored. Odd, eh? > > One thing that IS a KDE problem is having it manage 2 distinct desktops > (ie :0.0 [laptop LCD] and :0.1 [TV out]) - it occasionally decides to give > the other display focus after a dialog has been closed.. Are you sure? This sounds like the issue that Peter and I have been discussing in the context of fvwm. > Makes using kmail annoying because the only way to bring back focus > is to use the mouse :( Which reminds me of the reason for click focus in the first place: on the machines of 15 years ago, focus following the cursor could place an unacceptable load on the X server. Maybe what we're seeing here is related. Greg -- See complete headers for address and phone numbers. --yEPQxsgoJgBvi8ip Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEwq7CIubykFB6QiMRAtC7AJsHfIP/LVsaoud76sQ9ggQtXA/xxgCfRCFg 05OBN5IbCv53Wj9Js+/3TWk= =eFzX -----END PGP SIGNATURE----- --yEPQxsgoJgBvi8ip-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 22 23:15:37 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 2AAF216A4DF; Sat, 22 Jul 2006 23:15:37 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EA0843D45; Sat, 22 Jul 2006 23:15:36 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.7/8.13.7/NETPLEX) with ESMTP id k6MNFZ9Q003099; Sat, 22 Jul 2006 19:15:35 -0400 (EDT) Date: Sat, 22 Jul 2006 19:15:35 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Michael Nottebrock In-Reply-To: <200607222341.05180.lofi@freebsd.org> Message-ID: References: <200607221914.15826.lofi@freebsd.org> <200607222341.05180.lofi@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-hackers@freebsd.org, freebsd-emulation@freebsd.org, kmacy@fsmware.com Subject: Re: WINE vs. FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2006 23:15:37 -0000 On Sat, 22 Jul 2006, Michael Nottebrock wrote: > On Saturday, 22. July 2006 21:20, Kip Macy wrote: >> Thanks for your input. >> >> The relative merits of the different threading libraries is currently >> under discussion. Could you also try it with libthr (it may not work >> at all), I'd like to hear what happens. Thanks. > > WINE crashes in roughly the same spot. This is however with a libthr on > FreeBSD 5.5-RELEASE-p2, which is nothing short of disastrous (with a global > lib mapping from libpthread to libthr, about 1/3 of all the programs in my > default KDE session start at all - the rest hangs in state sbwait). I think it is because WINE stomps on or TLS. Nothing we can do about that except patch wine so it doesn't. Look at the console messages for: Warning: pid XXX used static ldt allocation -- DE