From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 01:07:06 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2AF8E1065671 for ; Sun, 24 Aug 2008 01:07:06 +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 D736D8FC19 for ; Sun, 24 Aug 2008 01:07:05 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KX44O-0008CN-JA for freebsd-hackers@freebsd.org; Sun, 24 Aug 2008 01:07:04 +0000 Received: from 78-1-71-103.adsl.net.t-com.hr ([78.1.71.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2008 01:07:04 +0000 Received: from ivoras by 78-1-71-103.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2008 01:07:04 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sun, 24 Aug 2008 03:06:51 +0200 Lines: 27 Message-ID: References: <20080823153354.2ed632d4@peedub.jennejohn.org> <752.354102633213$1219529718@news.gmane.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig65421412AF42B67CB698B2D0" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-71-103.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: <752.354102633213$1219529718@news.gmane.org> X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows 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: Sun, 24 Aug 2008 01:07:06 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig65421412AF42B67CB698B2D0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable RW wrote: > There's another difference: your /etc/rc script doesn't export PATH.=20 And TERM. --------------enig65421412AF42B67CB698B2D0 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.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkiwtCsACgkQldnAQVacBchnsgCgt2RxgzTVMSC31XN66rsrcfEb GTwAn2kj70Y5qKyIoCMJ6wulwy6EFR39 =QB0N -----END PGP SIGNATURE----- --------------enig65421412AF42B67CB698B2D0-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 02:02:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F38D106567E for ; Sun, 24 Aug 2008 02:02:20 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.28]) by mx1.freebsd.org (Postfix) with ESMTP id 2F9538FC27 for ; Sun, 24 Aug 2008 02:02:20 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so523423yxb.13 for ; Sat, 23 Aug 2008 19:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=ARLaY4aU1vcVsXEQLuumgP8I8N7gvQ9fXVGMPN6xZYo=; b=uZimwWt7h6XMnnPIKYpG7ObEkSiD1sRHkXlfIUcE+gn7kigJlY0N2DasjnaYt78GvX Rha/HtLt+eQp0uaFuuN8/V1/HsPXlsmnMX5in36onDG3P5/ytNCztFPYNORP4DGPqEDC H6LJrlr7m2R47cFc1neJY9zMv3+kDBe+sYOE0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=V8AAmal6yMGd09ZLHI+JvwEzAfjc+yWf606ztrhHbsLDMR7Nij4L7vLN7ood9bptPu 0sv+ja+xhDO4cjwUOBZI15lSEchCdljYZj5HFW63AzF+8UX7Xnv2kUIyA03uM7Xeu0ON mSoQmGTm0CnMOuqGxjofMvJxKTTUK670wTVEA= Received: by 10.150.140.6 with SMTP id n6mr4598619ybd.31.1219543339123; Sat, 23 Aug 2008 19:02:19 -0700 (PDT) Received: by 10.150.144.6 with HTTP; Sat, 23 Aug 2008 19:02:14 -0700 (PDT) Message-ID: Date: Sat, 23 Aug 2008 22:02:14 -0400 From: "Aryeh Friedman" To: RW In-Reply-To: <20080824003920.34f6bf51@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080823153354.2ed632d4@peedub.jennejohn.org> <20080823231349.5941d9f3@gumby.homeunix.com.> <20080824003920.34f6bf51@gumby.homeunix.com.> Cc: freebsd-hackers@freebsd.org Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows 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: Sun, 24 Aug 2008 02:02:20 -0000 On Sat, Aug 23, 2008 at 7:39 PM, RW wrote: > On Sat, 23 Aug 2008 23:13:49 +0100 > RW wrote: > >> On Sat, 23 Aug 2008 16:38:13 -0400 >> "Aryeh Friedman" wrote: >> >> >> > c) See a additionally to prove all the above here is my /etc/rc (the >> > last 2 lines where added just to prove the point): >> > >> > #!/bin/sh >> > >> > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin >> > >> > swapon -a >> > fsck -p >> > ... >> > fuse: failed to exec mount program: No such file or directory >> > >> > Thus it is clear that the *ONLY* difference between the /etc/rc >> > calls and the post getty calls is when they are made. >> >> There's another difference: your /etc/rc script doesn't export PATH. > > That does seem to be the answer. > > I was curious as to why it only fails on ntfs, so I had a look > at the source. It seems that mount and fsck find mount_* and fsck_* > through a hard-coded path of "/rescue:/sbin:/usr/sbin", but > mount_ntfs-3g then additionally has to find mount_fusefs through the > environment path. > > Perhaps sysutils/fusefs-libs should be patched to make the whole thing > more self-consistent. > _______________________________________________ > 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" > Thanks that did it... but you're incorrect in saying it is only ntfs it is all fuse based fs's I had a the same error when doing a fuse-ssh mount to my machine at work From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 02:02:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C4B141065683 for ; Sun, 24 Aug 2008 02:02:41 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 816208FC29 for ; Sun, 24 Aug 2008 02:02:41 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so523460yxb.13 for ; Sat, 23 Aug 2008 19:02:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BjLkj/L2iKqpsJ12swWgg5eOlVLWBiaNgk2OdpQbvZE=; b=T3Rzw24dqIIaYIomBqQOWwxqj+ARJuyYCslAJcpWaIa0J1rVuBBIYbmT0rEPWNmMB9 FZQIvxgPzUoG/plVvMQJ5+ytuJ6XwWTHxU9f1uLZa6Of2UpUhcS9jJ8KBStVkopXxt34 3orGgVbijq1aOtz1C6QWMTQservS15FPIvmuY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=b99i/AetbtrwndHn1pkHBlL4T6lpKfbEN5ocR8vVUO5fbwTP0kNGDBveFUjlWf6PTR Fn7YHxQ7vPYQZzBQ9Dy2tNQJJN9WvUmR4PxhhVj1bVMlC9AS6xwYcZYbnNwFqBjTbi2Z YofF27NyKIWTJ5LcUNaa953r8w6G9tA+BwNF4= Received: by 10.150.92.13 with SMTP id p13mr4584860ybb.59.1219543360528; Sat, 23 Aug 2008 19:02:40 -0700 (PDT) Received: by 10.150.144.6 with HTTP; Sat, 23 Aug 2008 19:02:40 -0700 (PDT) Message-ID: Date: Sat, 23 Aug 2008 22:02:40 -0400 From: "Aryeh Friedman" To: "Ivan Voras" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080823153354.2ed632d4@peedub.jennejohn.org> <752.354102633213$1219529718@news.gmane.org> Cc: freebsd-hackers@freebsd.org Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows 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: Sun, 24 Aug 2008 02:02:41 -0000 On Sat, Aug 23, 2008 at 9:06 PM, Ivan Voras wrote: > RW wrote: > >> There's another difference: your /etc/rc script doesn't export PATH. > > And TERM. > > Since I never set TERM why export it? From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 02:08:44 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F33D106564A; Sun, 24 Aug 2008 02:08:44 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk1.360sip.com [72.236.70.240]) by mx1.freebsd.org (Postfix) with ESMTP id F3DEF8FC18; Sun, 24 Aug 2008 02:08:43 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.9] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.8/8.13.8) with ESMTP id m7O1q8d5030846 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 23 Aug 2008 18:52:09 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <48B0BEC7.1070806@FreeBSD.org> Date: Sat, 23 Aug 2008 18:52:07 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Peter Jeremy References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> In-Reply-To: <20080822225510.GI32539@server.vk2pj.dyndns.org> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org, kmacy@FreeBSD.org, freebsd-hackers@FreeBSD.org, Kris Kennaway , freebsd-sun4v@FreeBSD.org, freebsd-current@FreeBSD.org Subject: Re: sun4v arch 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, 24 Aug 2008 02:08:44 -0000 Peter Jeremy wrote: > Is there a summary of the open issues somewhere? There are no sun4v > PRs open. http://wiki.freebsd.org/FreeBSD/sun4v effectively hasn't > been touched since November 2006 and suggests that the only critical > issue is lack of serial port support. There is a better interpretation, which is that the only critical issue is lack of real users for this port, not lack of serial port support :). -Maxim From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 02:59:53 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44FC21065670 for ; Sun, 24 Aug 2008 02:59:53 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id BEB2E8FC0C for ; Sun, 24 Aug 2008 02:59:52 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1004290fgb.35 for ; Sat, 23 Aug 2008 19:59:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=QgDD9uhyjhxE+nWTkoBQoiu6x6WCiTN6u6prUvn7ZOk=; b=ZyCI0xmap8v1CpdCjOc58dSYQ7zqrKd7N2x74jJaY02rv/EcRelOubRujhFxFz+iZb w/yxG44ahx3Ya5+RZyBQ23Uh+YmB/GIMXfF8LllzW5LR94C6ENPQUo5jT/yMdzKz0xIL vnwz0sq4FBS2RqbNFVIb7VVG5ut4dduMP4n8k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=qZUlqxc7l2jL5Mnap5lUdmyrCAilWIEpAw+zD/LTl/VPiIjSZrm2QDQwknggRYtfmg l3qu5jmdj+GtkJnWmAM2liEP1ksLE5S/UuNYvQywhhPQaWlr2W4X2mTD/zqgj2JO9Yqp bklPsjkzsN06d5s0vMwSp+AkUIwJnUFPe+GZc= Received: by 10.86.29.19 with SMTP id c19mr2176616fgc.28.1219546791474; Sat, 23 Aug 2008 19:59:51 -0700 (PDT) Received: by 10.86.62.14 with HTTP; Sat, 23 Aug 2008 19:59:51 -0700 (PDT) Message-ID: <7d6fde3d0808231959i46027bd5xce2c142a21dcd940@mail.gmail.com> Date: Sat, 23 Aug 2008 19:59:51 -0700 From: "Garrett Cooper" To: "Aryeh Friedman" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080823153354.2ed632d4@peedub.jennejohn.org> <20080823231349.5941d9f3@gumby.homeunix.com.> <20080824003920.34f6bf51@gumby.homeunix.com.> Cc: RW , freebsd-hackers@freebsd.org Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows 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: Sun, 24 Aug 2008 02:59:53 -0000 On Sat, Aug 23, 2008 at 7:02 PM, Aryeh Friedman wrote: > On Sat, Aug 23, 2008 at 7:39 PM, RW wrote: >> On Sat, 23 Aug 2008 23:13:49 +0100 >> RW wrote: >> >>> On Sat, 23 Aug 2008 16:38:13 -0400 >>> "Aryeh Friedman" wrote: >>> >>> >>> > c) See a additionally to prove all the above here is my /etc/rc (the >>> > last 2 lines where added just to prove the point): >>> > >>> > #!/bin/sh >>> > >>> > PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin >>> > >>> > swapon -a >>> > fsck -p >>> > ... >>> > fuse: failed to exec mount program: No such file or directory >>> > >>> > Thus it is clear that the *ONLY* difference between the /etc/rc >>> > calls and the post getty calls is when they are made. >>> >>> There's another difference: your /etc/rc script doesn't export PATH. >> >> That does seem to be the answer. >> >> I was curious as to why it only fails on ntfs, so I had a look >> at the source. It seems that mount and fsck find mount_* and fsck_* >> through a hard-coded path of "/rescue:/sbin:/usr/sbin", but >> mount_ntfs-3g then additionally has to find mount_fusefs through the >> environment path. >> >> Perhaps sysutils/fusefs-libs should be patched to make the whole thing >> more self-consistent. Isn't the typical use-case for fuse-based FS'es to be executed in userland though by non-root users? -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 03:39:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0CA031065671 for ; Sun, 24 Aug 2008 03:39:31 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.156]) by mx1.freebsd.org (Postfix) with ESMTP id 9634C8FC1D for ; Sun, 24 Aug 2008 03:39:30 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1010786fgb.35 for ; Sat, 23 Aug 2008 20:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=FbR9LnBx4r9WCDAz92lLNz10AhdDhg/SeWR+Y4n02xs=; b=Vl2O6YIjOaKHreQbezujfAxZp49hC78AC5oTXVAX2J3QjAIwh9tdwuQj2rocmrL8QS eXYssdA9G01SZBD6nJF6o9hClBSjozCk1IJCsKVcerwKCv2pINFEVIZXq4i4mkIoyUQc FDO5yJupYzJtVWXPjpmHfEB9X0cFwkkphrZC0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ovDvLrcGMIjGUumSYqWeuAgz7s7IvfUvh+1r0U/+1XHW4f5EUx0Zwtb2K1gX1ZcMs9 0Q8dvFpkbq6l/mteufPOf3tIRkznbf9u9+JAKSP179J90QBH69bK13PAT1wRV9CTGy0Q buSZA+pPX+J6UPKfBJXKKJeGNETFyIumD70G8= Received: by 10.86.63.19 with SMTP id l19mr2163446fga.77.1219549169284; Sat, 23 Aug 2008 20:39:29 -0700 (PDT) Received: by 10.86.62.14 with HTTP; Sat, 23 Aug 2008 20:39:29 -0700 (PDT) Message-ID: <7d6fde3d0808232039i78fadb9bu7373e1c36f4f37a1@mail.gmail.com> Date: Sat, 23 Aug 2008 20:39:29 -0700 From: "Garrett Cooper" To: "Maxim Sobolev" In-Reply-To: <48B0BEC7.1070806@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> <48B0BEC7.1070806@FreeBSD.org> Cc: freebsd-stable@freebsd.org, kmacy@freebsd.org, freebsd-sun4v@freebsd.org, freebsd-current@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: sun4v arch 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, 24 Aug 2008 03:39:31 -0000 On Sat, Aug 23, 2008 at 6:52 PM, Maxim Sobolev wrote: > Peter Jeremy wrote: >> >> Is there a summary of the open issues somewhere? There are no sun4v >> PRs open. http://wiki.freebsd.org/FreeBSD/sun4v effectively hasn't >> been touched since November 2006 and suggests that the only critical >> issue is lack of serial port support. > > There is a better interpretation, which is that the only critical issue is > lack of real users for this port, not lack of serial port support :). > > -Maxim Maybe some time should be spent looking at stuff from NetBSD to see whether or not they've solved some already critical porting pieces that FreeBSD lacks in this architecture? -Garrett From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 04:00:42 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A0FF21065676; Sun, 24 Aug 2008 04:00:42 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (lefty.soaustin.net [66.135.55.46]) by mx1.freebsd.org (Postfix) with ESMTP id 837488FC08; Sun, 24 Aug 2008 04:00:42 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: by mail.soaustin.net (Postfix, from userid 502) id 79CF18C07F; Sat, 23 Aug 2008 22:40:55 -0500 (CDT) Date: Sat, 23 Aug 2008 22:40:55 -0500 To: Maxim Sobolev Message-ID: <20080824034055.GB12515@soaustin.net> References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> <48B0BEC7.1070806@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48B0BEC7.1070806@FreeBSD.org> User-Agent: Mutt/1.5.13 (2006-08-11) From: linimon@lonesome.com (Mark Linimon) X-Mailman-Approved-At: Sun, 24 Aug 2008 04:10:00 +0000 Cc: freebsd-stable@FreeBSD.org, kmacy@FreeBSD.org, Kris Kennaway , freebsd-sun4v@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-hackers@FreeBSD.org Subject: Re: sun4v arch 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, 24 Aug 2008 04:00:42 -0000 On Sat, Aug 23, 2008 at 06:52:07PM -0700, Maxim Sobolev wrote: > There is a better interpretation, which is that the only critical issue > is lack of real users for this port, not lack of serial port support :). My understanding is the the port is in a pre-alpha state due to unfinished work in the kernel, so expecting there to be any userbase is premature. All of our 'new' architectures which are in this state have so few non- developer users that there is hardly any reason to submit PRs. AFAICT the active developers already know what's missing :-) Our implementation of GNATS barely serves us as a problem report system; it fails almost completely as a system for listing missing features. We would need to have something like that to track the status of the non- Tier-1 ports. (I used to maintain a table of how feature-complete the various ports are, but it is now way out of date.) mcl From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 04:23:42 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D30DE1065674; Sun, 24 Aug 2008 04:23:42 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail15.syd.optusnet.com.au (mail15.syd.optusnet.com.au [211.29.132.196]) by mx1.freebsd.org (Postfix) with ESMTP id 65B1C8FC1A; Sun, 24 Aug 2008 04:23:42 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail15.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m7O4Nd6b006451 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Aug 2008 14:23:40 +1000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m7O4NdR1055219; Sun, 24 Aug 2008 14:23:39 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m7O4NdNr055218; Sun, 24 Aug 2008 14:23:39 +1000 (EST) (envelope-from peter) Date: Sun, 24 Aug 2008 14:23:39 +1000 From: Peter Jeremy To: freebsd-stable@freebsd.org, kmacy@freebsd.org, freebsd-hackers@freebsd.org, freebsd-sun4v@freebsd.org, freebsd-current@freebsd.org Message-ID: <20080824042339.GM32539@server.vk2pj.dyndns.org> References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> <48B0BEC7.1070806@FreeBSD.org> <7d6fde3d0808232039i78fadb9bu7373e1c36f4f37a1@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0UhZIN3Sa23/ILEd" Content-Disposition: inline In-Reply-To: <20080824034055.GB12515@soaustin.net> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Subject: Re: sun4v arch 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, 24 Aug 2008 04:23:43 -0000 --0UhZIN3Sa23/ILEd Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Aug-23 22:40:55 -0500, Mark Linimon wrote: >My understanding is the the port is in a pre-alpha state due to unfinished >work in the kernel, so expecting there to be any userbase is premature. Except that the wiki gives a far more optimistic picture. >All of our 'new' architectures which are in this state have so few non- >developer users that there is hardly any reason to submit PRs. AFAICT >the active developers already know what's missing :-) That makes it very difficult for someone outside that group to come up to speed. I can't find anything in the freebsd-sun4v archvies. I was hoping that there would be a list somewhere of what state various subsystems were in and what remained to be done. wiki.freebsd.org sounds like the ideal place for this. On 2008-Aug-23 20:39:29 -0700, Garrett Cooper wrote: >Maybe some time should be spent looking at stuff from NetBSD to see >whether or not they've solved some already critical porting pieces >that FreeBSD lacks in this architecture? I can't find anything that suggests NetBSD runs on sun4v. Their sparc64 port only covers the US-I/II families and there's no mention of sun4v. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --0UhZIN3Sa23/ILEd Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkiw4ksACgkQ/opHv/APuIfCKQCgkJgMnkua99IkNkpX4C+iHiaB GFQAmQH4EbznLy5sf/McyCpJG1u1Xo1N =A59I -----END PGP SIGNATURE----- --0UhZIN3Sa23/ILEd-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 04:39:35 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 942FF106566B for ; Sun, 24 Aug 2008 04:39:35 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by mx1.freebsd.org (Postfix) with ESMTP id 649348FC08 for ; Sun, 24 Aug 2008 04:39:35 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1838939rvf.43 for ; Sat, 23 Aug 2008 21:39:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=7H1UD66pqfwQAkv4fnW4Ygpc6TIEI3yfXfRUJ/CMg+c=; b=ATj+xjfnaMFTwLFulDo7sxpM9eF/mdUxM0GidtIi2dzYxs2kEyNFjU/o4wGI4sfH+A +961j9XRdC2aCizyg1m3RCOQU+B9dsDcklVB0SVfikhe03URYcCZSf6+ACBcH9hKgZqT OkgqU0711yCPFzjKSJcVQcUk6TSjEhl4/kI3I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=bIXtUm5NIHiSwOS9Bt2rGQw3E9UBgGW2lhOmGWzpn/7IKGhvrW2bZMMy6JahfX9b4a oVqIG5KZPWl3Xi5DC4qp00EJ6pWb7gOX4UBPh3Igm2m9EYYypRez4Mba32liTlIXlg/i rLqRJBqdDjMYxLdtYsfSSraEV0BfCptJ5xR28= Received: by 10.141.145.11 with SMTP id x11mr1405902rvn.215.1219552774808; Sat, 23 Aug 2008 21:39:34 -0700 (PDT) Received: by 10.141.101.21 with HTTP; Sat, 23 Aug 2008 21:39:34 -0700 (PDT) Message-ID: <3c1674c90808232139k76f8091bw34aa0f9b71437023@mail.gmail.com> Date: Sat, 23 Aug 2008 21:39:34 -0700 From: "Kip Macy" Sender: mat.macy@gmail.com To: "Peter Jeremy" In-Reply-To: <20080824042339.GM32539@server.vk2pj.dyndns.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> <48B0BEC7.1070806@FreeBSD.org> <7d6fde3d0808232039i78fadb9bu7373e1c36f4f37a1@mail.gmail.com> <20080824034055.GB12515@soaustin.net> <20080824042339.GM32539@server.vk2pj.dyndns.org> X-Google-Sender-Auth: 00e31adbbaeba537 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-sun4v@freebsd.org Subject: Re: sun4v arch 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, 24 Aug 2008 04:39:35 -0000 Hi Peter, There really isn't any magic to bringing up a port. You compile it, install it, and then run it until it breaks. Once it breaks you spend a lot of time instrumenting the code to track down what went wrong. Then, depending on the amount of technical insight you have in to the issue, you go through a number of iterations until it is fixed. Fixing the pmap issue is "just" (notice the quotes) a matter of tracking down the missing TLB shootdowns. For anyone who chooses pick this up it will be very educational. It will also be very time consuming. -Kip On Sat, Aug 23, 2008 at 9:23 PM, Peter Jeremy wrote: > On 2008-Aug-23 22:40:55 -0500, Mark Linimon wrote: >>My understanding is the the port is in a pre-alpha state due to unfinished >>work in the kernel, so expecting there to be any userbase is premature. > > Except that the wiki gives a far more optimistic picture. > >>All of our 'new' architectures which are in this state have so few non- >>developer users that there is hardly any reason to submit PRs. AFAICT >>the active developers already know what's missing :-) > > That makes it very difficult for someone outside that group to come up > to speed. I can't find anything in the freebsd-sun4v archvies. I was > hoping that there would be a list somewhere of what state various > subsystems were in and what remained to be done. wiki.freebsd.org > sounds like the ideal place for this. > > On 2008-Aug-23 20:39:29 -0700, Garrett Cooper wrote: >>Maybe some time should be spent looking at stuff from NetBSD to see >>whether or not they've solved some already critical porting pieces >>that FreeBSD lacks in this architecture? > > I can't find anything that suggests NetBSD runs on sun4v. Their sparc64 > port only covers the US-I/II families and there's no mention of sun4v. > > -- > Peter Jeremy > Please excuse any delays as the result of my ISP's inability to implement > an MTA that is either RFC2821-compliant or matches their claimed behaviour. > From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 04:49:49 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DABD1106566C for ; Sun, 24 Aug 2008 04:49:49 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.238]) by mx1.freebsd.org (Postfix) with ESMTP id A9DC28FC1D for ; Sun, 24 Aug 2008 04:49:49 +0000 (UTC) (envelope-from mat.macy@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so1841872rvf.43 for ; Sat, 23 Aug 2008 21:49:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=iskk53kQdmUP+vP/cEh1OU4g1bOAl8gyNZXcMR1NmIA=; b=kJWuN60mA1Oy0ETuSxHwnEVTI7VrkdSw1/tl5P2W5JX9nNZW1MR1QwaUVKcqICyRf5 xnlloZELcp0Sz0iT90qxrq04sKyGlZM9N+TgCi6I1iOcqUgGmbCEvM5kyUGwPMe4MrCB +SvlJ57hZqlNw6/5nYScqanlII/lCDmgYDQ+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=o0G2dg1aPsbFdsGYTFMu3hARTuaWU26aSTAX53I5d1Rd5oXHeOU2vp/1yXnAHVMQy8 MGP3IAe1Auu3u1Fui9utTI97qC6GMN0l9V6keypYbq1O6Ls82MREiEHvIU/zGRwy+HYI k+DVoN042N3b3fzzTQ9UGLD+xeVRkXJIsfTF0= Received: by 10.141.107.13 with SMTP id j13mr1401881rvm.276.1219553389078; Sat, 23 Aug 2008 21:49:49 -0700 (PDT) Received: by 10.141.101.21 with HTTP; Sat, 23 Aug 2008 21:49:49 -0700 (PDT) Message-ID: <3c1674c90808232149t58993f49x9bbc4ac561b40e4@mail.gmail.com> Date: Sat, 23 Aug 2008 21:49:49 -0700 From: "Kip Macy" Sender: mat.macy@gmail.com To: "Sevan / Venture37" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> <48B0BEC7.1070806@FreeBSD.org> <7d6fde3d0808232039i78fadb9bu7373e1c36f4f37a1@mail.gmail.com> <20080824042339.GM32539@server.vk2pj.dyndns.org> X-Google-Sender-Auth: 8ed0fd8b6e2ae2a8 Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-sun4v@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: sun4v arch 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, 24 Aug 2008 04:49:49 -0000 On Sat, Aug 23, 2008 at 9:34 PM, Sevan / Venture37 wrote: > > >> I can't find anything that suggests NetBSD runs on sun4v. Their sparc64 >> port only covers the US-I/II families and there's no mention of sun4v. > > OpenBSD/sparc64 supports the sun4v architecture & has done for a while. > Heh. The bugs that FreeBSD exhibits on sun4v won't be hit on UP and are much less prevalent without preemption. -Kip From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 05:03:54 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7952C106564A for ; Sun, 24 Aug 2008 05:03:54 +0000 (UTC) (envelope-from fbsd06+ZD=bcb8c0a2@mlists.homeunix.com) Received: from fallback-in1.mxes.net (fallback-out1.mxes.net [216.86.168.190]) by mx1.freebsd.org (Postfix) with ESMTP id 4861A8FC08 for ; Sun, 24 Aug 2008 05:03:54 +0000 (UTC) (envelope-from fbsd06+ZD=bcb8c0a2@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by fallback-in1.mxes.net (Postfix) with ESMTP id 2E905163F67 for ; Sun, 24 Aug 2008 00:48:26 -0400 (EDT) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id E785523E3EF for ; Sun, 24 Aug 2008 00:48:23 -0400 (EDT) Date: Sun, 24 Aug 2008 05:48:21 +0100 From: RW To: freebsd-hackers@freebsd.org Message-ID: <20080824054821.1c9d923d@gumby.homeunix.com.> In-Reply-To: References: <20080823153354.2ed632d4@peedub.jennejohn.org> <20080823231349.5941d9f3@gumby.homeunix.com.> <20080824003920.34f6bf51@gumby.homeunix.com.> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows 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: Sun, 24 Aug 2008 05:03:54 -0000 On Sat, 23 Aug 2008 22:02:14 -0400 "Aryeh Friedman" wrote: > Thanks that did it... but you're incorrect in saying it is only ntfs > it is all fuse based fs's I had a the same error when doing a fuse-ssh > mount to my machine at work I meant only ntfs out of all the other entries in your fstab. If PATH isn't exported then the question became: why are any of the mounts or fscks succeeding? Presumably all the fuse filesystems are mounted in the same way mount -t foo --> mount_foo --> mount_fusefs as opposed to mount -t foo --> mount_foo for native filesystems. Since it turns out that only the mount_foo --> mount_fusefs call needs a PATH variable, all fuse filesystems will fail if PATH isn't exported, but no native filesystem will be affected. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 09:36:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 679A81065672 for ; Sun, 24 Aug 2008 09:36:36 +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 D17A88FC18 for ; Sun, 24 Aug 2008 09:36:35 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KXC1S-0000Jo-9i for freebsd-hackers@freebsd.org; Sun, 24 Aug 2008 09:36:34 +0000 Received: from 78-1-71-103.adsl.net.t-com.hr ([78.1.71.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2008 09:36:34 +0000 Received: from ivoras by 78-1-71-103.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 24 Aug 2008 09:36:34 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Sun, 24 Aug 2008 11:36:11 +0200 Lines: 36 Message-ID: References: <20080823153354.2ed632d4@peedub.jennejohn.org> <752.354102633213$1219529718@news.gmane.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig5647918E79C6A6DE1F4EE1F6" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 78-1-71-103.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news Subject: Re: What is difference between /etc/rc called programs and ones called after login prompt shows 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: Sun, 24 Aug 2008 09:36:36 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig5647918E79C6A6DE1F4EE1F6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Aryeh Friedman wrote: > On Sat, Aug 23, 2008 at 9:06 PM, Ivan Voras wrote:= >> RW wrote: >> >>> There's another difference: your /etc/rc script doesn't export PATH. >> And TERM. >=20 > Since I never set TERM why export it? Sorry, by rereading the thread I think I misunderstood the context of the post I was replying to. The reason for my suggestion was that I know some utilitites that don't work when called before the login environment is present because they use curses and somehow fail if there's no TERM. --------------enig5647918E79C6A6DE1F4EE1F6 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.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkixK5cACgkQldnAQVacBcjqJgCfdS2q5QDH0OU9M4nV49v1YtsB 9y0AoKf0nIMwRG5lLh0mPHxyxLcVlanm =Aqh4 -----END PGP SIGNATURE----- --------------enig5647918E79C6A6DE1F4EE1F6-- From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 12:02:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A46E41065671 for ; Sun, 24 Aug 2008 12:02:57 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id F33158FC1C for ; Sun, 24 Aug 2008 12:02:56 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id m7OC2rU8079490 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 24 Aug 2008 14:02:54 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by cicely5.cicely.de (8.14.2/8.14.2) with ESMTP id m7OC2o3m084396 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 24 Aug 2008 14:02:50 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id m7OC2oRn030732; Sun, 24 Aug 2008 14:02:50 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id m7OC2nX9030731; Sun, 24 Aug 2008 14:02:49 +0200 (CEST) (envelope-from ticso) Date: Sun, 24 Aug 2008 14:02:49 +0200 From: Bernd Walter To: Peter B Message-ID: <20080824120234.GM23672@cicely7.cicely.de> References: <200808222002.m7MK2fvo004486@brother.ludd.ltu.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200808222002.m7MK2fvo004486@brother.ludd.ltu.se> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.3 required=5.0 tests=ALL_TRUSTED=-1.8, AWL=0.079, BAYES_00=-2.599 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on spamd.cicely.de Cc: freebsd-hackers@freebsd.org Subject: Re: usb match() function X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Aug 2008 12:02:57 -0000 On Fri, Aug 22, 2008 at 10:02:41PM +0200, Peter B wrote: > > Within the usb drivers (/usr/src/sys/dev/usb/u*.c) there's an matching routine > where the 'uaa->iface' is supposed to be assigned before the routine is called. > > However for a new device or class this doesn't seem to work. Instead 'uaa' > is set like for an generic device (two interfaces, no "default" in my case). > > So how is one supposed to make the kernel fill in 'uaa->iface' ..? Your function is potentially getting called multiple times. First all drivers (except ugen) are asked for the whole device and if all refuses it splits the device into the interfaces and asks every driver again - if no driver claims at least a single interface ugen is asked for the whole device. So you have to refuse the whole device and wait for the interface run. If there's no interface run then another driver already claimed it or your device has no interfaces defined. > Code excerpt (v7.x): > static int > *_match(device_t self) > { > struct usb_attach_arg *uaa = device_get_ivars(self); > usb_interface_descriptor_t *id; > > DPRINTFN(10,("*_match\n")); > if (uaa->iface == NULL) > return (UMATCH_NONE); > -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 06:47:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E8BA11065672; Sun, 24 Aug 2008 06:47:07 +0000 (UTC) (envelope-from brad@comstyle.com) Received: from mail.comstyle.com (speedy.comstyle.com [IPv6:2001:470:1f07:471::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6D0E88FC16; Sun, 24 Aug 2008 06:47:07 +0000 (UTC) (envelope-from brad@comstyle.com) Received: from booyah.home.comstyle.com (toronto-hs-216-138-195-228.s-ip.magma.ca [216.138.195.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id B8E31984C7; Sun, 24 Aug 2008 02:46:57 -0400 (EDT) Date: Sun, 24 Aug 2008 02:46:56 -0400 From: Brad To: freebsd-sun4v@freebsd.org Message-ID: <20080824064655.GB11196@booyah.home.comstyle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-comstyle-MailScanner-Information: Please contact the ISP for more information X-comstyle-MailScanner-ID: B8E31984C7.0FB6F X-comstyle-MailScanner: Found to be clean X-comstyle-MailScanner-From: brad@comstyle.com X-Spam-Status: No X-Mailman-Approved-At: Sun, 24 Aug 2008 14:15:40 +0000 Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: sun4v arch 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, 24 Aug 2008 06:47:08 -0000 > I can't find anything that suggests NetBSD runs on sun4v. Their sparc64 > port only covers the US-I/II families and there's no mention of sun4v. OpenBSD/sparc64 runs UltraSPARC-T1 and UltraSPARC-T2 systems... and the com port works too. ;) In addition to UltraSPARC III, III+, IIIi, IV and Fujitsu SPARC64 V, VI, VII systems (PRIMEPOWER / Mx000). console is /virtual-devices@100/console@1 Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2008 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.4-current (GENERIC.MP) #7: Sun Aug 24 00:01:05 MDT 2008 root@sun4v.openbsd.org:/usr/src/sys/arch/sparc64/compile/GENERIC.MP real mem = 34225520640 (32640MB) avail mem = 33572167680 (32016MB) mainbus0 at root: SPARC Enterprise T5120 cpu0 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu1 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu2 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu3 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu4 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu5 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu6 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu7 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu8 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu9 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu10 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu11 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu12 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu13 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu14 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu15 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu16 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu17 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu18 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu19 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu20 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu21 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu22 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu23 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu24 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu25 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu26 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu27 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu28 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu29 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu30 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu31 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu32 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu33 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu34 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu35 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu36 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu37 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu38 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu39 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu40 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu41 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu42 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu43 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu44 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu45 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu46 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu47 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu48 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu49 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu50 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu51 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu52 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu53 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu54 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu55 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu56 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu57 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu58 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu59 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu60 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu61 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu62 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz cpu63 at mainbus0: SUNW,UltraSPARC-T2 (rev 0.0) @ 1165.379 MHz vbus0 at mainbus0 "flashprom" at vbus0 not configured "channel-devices" at vbus0 not configured "n2cp" at vbus0 not configured "ncp" at vbus0 not configured "random-number-generator" at vbus0 not configured vcons0 at vbus0 vrtc0 at vbus0 "niu" at mainbus0 not configured vpci0 at mainbus0: bus 2 to 18, dvma map 80000000-ffffffff pci0 at vpci0 ppb0 at pci0 dev 0 function 0 "PLX PEX 8533" rev 0xaa pci1 at ppb0 bus 3 ppb1 at pci1 dev 1 function 0 "PLX PEX 8533" rev 0xaa pci2 at ppb1 bus 4 ppb2 at pci2 dev 0 function 0 "PLX PEX 8517" rev 0xad pci3 at ppb2 bus 5 ppb3 at pci3 dev 1 function 0 "PLX PEX 8517" rev 0xad pci4 at ppb3 bus 6 ppb4 at pci4 dev 0 function 0 "PLX PEX 8112" rev 0xaa pci5 at ppb4 bus 7 ohci0 at pci5 dev 0 function 0 "NEC USB" rev 0x43: ivec 0x16, version 1.0 ohci1 at pci5 dev 0 function 1 "NEC USB" rev 0x43: ivec 0x17, version 1.0 ehci0 at pci5 dev 0 function 2 "NEC USB" rev 0x04: ivec 0x14 usb0 at ehci0: USB revision 2.0 uhub0 at usb0 "NEC EHCI root hub" rev 2.00/1.00 addr 1 usb1 at ohci0: USB revision 1.0 uhub1 at usb1 "NEC OHCI root hub" rev 1.00/1.00 addr 1 usb2 at ohci1: USB revision 1.0 uhub2 at usb2 "NEC OHCI root hub" rev 1.00/1.00 addr 1 ppb5 at pci3 dev 2 function 0 "PLX PEX 8517" rev 0xad pci6 at ppb5 bus 8 em0 at pci6 dev 0 function 0 "Intel PRO/1000 PT (82571EB)" rev 0x06: ivec 0x17, address 00:14:4f:d4:d2:c6 em1 at pci6 dev 0 function 1 "Intel PRO/1000 PT (82571EB)" rev 0x06: ivec 0x14, address 00:14:4f:d4:d2:c7 ppb6 at pci3 dev 3 function 0 "PLX PEX 8517" rev 0xad pci7 at ppb6 bus 9 em2 at pci7 dev 0 function 0 "Intel PRO/1000 PT (82571EB)" rev 0x06: ivec 0x14, address 00:14:4f:d4:d2:c8 em3 at pci7 dev 0 function 1 "Intel PRO/1000 PT (82571EB)" rev 0x06: ivec 0x15, address 00:14:4f:d4:d2:c9 ppb7 at pci1 dev 2 function 0 "PLX PEX 8533" rev 0xaa pci8 at ppb7 bus 10 mpi0 at pci8 dev 0 function 0 "Symbios Logic SAS1068E" rev 0x02: ivec 0x16 scsibus0 at mpi0: 112 targets, initiator 112 sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed sd0: 140009MB, 14089 cyl, 24 head, 848 sec, 512 bytes/sec, 286739329 sec total sd1 at scsibus0 targ 1 lun 0: SCSI3 0/direct fixed sd1: 140009MB, 14089 cyl, 24 head, 848 sec, 512 bytes/sec, 286739329 sec total ppb8 at pci1 dev 8 function 0 "PLX PEX 8533" rev 0xaa pci9 at ppb8 bus 11 ppb9 at pci9 dev 0 function 0 "PLX PEX 8533" rev 0xaa pci10 at ppb9 bus 12 ppb10 at pci10 dev 1 function 0 "PLX PEX 8533" rev 0xaa: ivec 0x16 pci11 at ppb10 bus 13 ppb11 at pci10 dev 2 function 0 "PLX PEX 8533" rev 0xaa: ivec 0x14 pci12 at ppb11 bus 14 ppb12 at pci10 dev 8 function 0 "PLX PEX 8533" rev 0xaa: ivec 0x14 pci13 at ppb12 bus 15 ppb13 at pci10 dev 9 function 0 "PLX PEX 8533" rev 0xaa: ivec 0x16 pci14 at ppb13 bus 16 ppb14 at pci10 dev 10 function 0 "PLX PEX 8533" rev 0xaa: ivec 0x14 pci15 at ppb14 bus 17 ppb15 at pci1 dev 9 function 0 "PLX PEX 8533" rev 0xaa: ivec 0x16 pci16 at ppb15 bus 18 "pci-performance-counters" at mainbus0 not configured ebus0 at mainbus0 com0 at ebus0 addr ca0000-ca0007 ivec 0x13: ns16550a, 16 byte fifo umass0 at uhub0 port 2 configuration 1 interface 0 "Texas Instruments Incorporated 6250 FW: 03.05.02.22.562AD423" rev 2.00/2.00 addr 2 umass0: using SCSI over Bulk-Only scsibus1 at umass0: 2 targets, initiator 0 cd0 at scsibus1 targ 1 lun 0: SCSI0 5/cdrom removable uhub3 at uhub0 port 4 "Cypress Semiconductor USB2 Hub" rev 2.00/0.0b addr 3 softraid0 at root bootpath: /pci@0,0/pci@0,0/pci@2,0/scsi@0,0/disk@0,0 root on sd0a swap on sd0b dump on sd0b -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 20:01:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E3E81065682 for ; Sun, 24 Aug 2008 20:01:26 +0000 (UTC) (envelope-from gballet@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by mx1.freebsd.org (Postfix) with ESMTP id BDF228FC1A for ; Sun, 24 Aug 2008 20:01:25 +0000 (UTC) (envelope-from gballet@gmail.com) Received: by ug-out-1314.google.com with SMTP id o4so393800uge.39 for ; Sun, 24 Aug 2008 13:01:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Av/2WGPySz6VOqjibD5CYLSubKEIRZRlUsunFtGryyQ=; b=wSjMrOPAcYV4q0CEHX6WoufwFEB/XnZXRp5FxfARC16JXXFJNIitG1gjw0mzVtPbgT 4/md3uqpcJn4vGFMQcPHugIorUaLf1/g2hMiol/drG+N+onjU6vSMMFJVPx2dgiW4f7/ cKGyOHbpDyVeuR57FuirGq4STqxeHMZTk/5mM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=NJcvCoVflsVKg41Es8czOkob2BdM7out9Oy/ptwQ3dm1dAw8R2YjjKzcxPhD7gz3pG RMUK5V29XdZdS11mElYdbpZSiIqb4zoQgr+M/BxhVKKmFcAFFTUGxqJqzATn2OMx26wx dJEKEj83BxlK9oca1sNfxx4zVaB9dvq91s/9U= Received: by 10.187.230.4 with SMTP id h4mr289799far.12.1219608084150; Sun, 24 Aug 2008 13:01:24 -0700 (PDT) Received: by 10.187.247.12 with HTTP; Sun, 24 Aug 2008 13:01:24 -0700 (PDT) Message-ID: Date: Sun, 24 Aug 2008 20:01:24 +0000 From: "Guillaume Ballet" To: freebsd-hackers@freebsd.org In-Reply-To: <200808181002.14885.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48A70B37.60401@freebsd.org> <200808181002.14885.jhb@freebsd.org> Cc: Sam Leffler Subject: Re: Extending the ddb command set 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, 24 Aug 2008 20:01:26 -0000 On Mon, Aug 18, 2008 at 2:02 PM, John Baldwin wrote: > (snip) > A simpler approach is probably to make DB_COMMAND() use a SYSINIT to register > new functions instead of teaching DDB about that linker set. You just need > to write a shared "register_command()" function (and a deregister for > SYSUNINIT for module unload) that the SYSINIT uses. This also probably > requires changing the structure of the DDB tables, though you might be able > to make it simpler now. You could probably just make the tables be sorted > linked lists now instead of arrays. This would also remove the whole "aux > table" hack. > Following Sam and John's advice, I have rewritten the patch so as to use SYS(UN)INIT. It uses a linked list instead of an array to store commands. As the patch is more than 400 lines long, it is available for reviewing at: http://dl.free.fr/jQQQkB72h0 I used 7.0 ; 6.2 requires a bit more work. Many thanks to Sam, John and Kostik for their suggestions. Feedback is still welcome :) From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 24 20:07:40 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF7AC1065670 for ; Sun, 24 Aug 2008 20:07:40 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.186]) by mx1.freebsd.org (Postfix) with ESMTP id 4C2F48FC14 for ; Sun, 24 Aug 2008 20:07:40 +0000 (UTC) (envelope-from pali.gabor@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so702120nfh.33 for ; Sun, 24 Aug 2008 13:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :organization:user-agent:mime-version:to:subject:x-enigmail-version :content-type:content-transfer-encoding:sender; bh=83Fd66ENSNp5Mi+1GoP/KEI0PcjxzzP9SpM3+a3XWz4=; b=yH6k9sIIuR67Ozjq7N/PFkmzEj7ZgeAYmLHK52B17CTyLCivO+SC1l63m70r8g57il dz6IqHYsyQzO+YS8T8ogjvPMVtm4wFisTvoelgKFGZgDgHYjfjA06mkBxVK+K04ooIIx K9HIE6EOL+cUNKxztZ26bdsykjKcTqKip9FLg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:organization:user-agent:mime-version:to :subject:x-enigmail-version:content-type:content-transfer-encoding :sender; b=Lubr/YzA/rlaGT7bOcdhXZYxRcXegGnTpPNn0fBfAwkN7hHVvPFPQFJPg4n09PMtmo 8YjQdzeTj/n/sWqLdTpfLo7CingO9XPJ2R9DciB1AKaceC+qp18n9xtzTaHHFTKS57Zy sI2v/qzEUgKIKQ+MKgGATxGPhRuzJ6cxOi1Q8= Received: by 10.210.119.5 with SMTP id r5mr5409801ebc.17.1219606926150; Sun, 24 Aug 2008 12:42:06 -0700 (PDT) Received: from ?192.168.0.1? ( [80.99.205.120]) by mx.google.com with ESMTPS id f6sm23326917nfh.12.2008.08.24.12.41.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 24 Aug 2008 12:42:05 -0700 (PDT) Message-ID: <48B1B972.1090500@FreeBSD.org> Date: Sun, 24 Aug 2008 21:41:38 +0200 From: Gabor PALI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.14 (X11/20080521) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: =?UTF-8?B?UMOBTEkgR8OhYm9yIErDoW5vcw==?= Subject: Request for Comments: Update to developers-handbook/policies 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, 24 Aug 2008 20:07:40 -0000 Dear Members, A few weeks ago, I started to work on docs/126030 [1] in cooperation with Gavin Atkinson (gavin@) and Giorgos Keramidas (keramida@) to update chapter ``Source Tree Guidelines and Policies'' of the ``FreeBSD Developers' Handbook'' [2]. Based on Gavin's original patch, I created drafts on how to fix the sections in question (and I linked them below). During the update, I found useful to include a section of Dag-Erling's Subversion Primer on the Wiki [3] about vendor imports. At the moment, I do not erase the old text (about vendor imports with CVS) but I kept it for compatibility reasons (and moved to a separate subsection as des@ advised). However, if somebody says it is deemed to be removed I will do that. Because I am not so experienced in vendor imports (as a doc committer) but I would like to help Gavin (and others who want this book updated), I ask you to review my changes and express your ideas, comments and suggestion. Note: This mail was posted to -doc a few days ago. I have not received any answer to it (maybe due to its highly technical nature), but I hope members of list will comment on this. Draft of section (5.1) MAINTAINER on Makefiles: http://people.freebsd.org/~pgj/for_review/2008-08-21/html/policies.html Draft of section (5.2) Contributed Software: http://people.freebsd.org/~pgj/for_review/2008-08-21/html/policies-contributed.html Diff for the curious: http://people.freebsd.org/~pgj/for_review/2008-08-21/books.developers-handbook.policies.diff Thank you in advance. Cheers, :g [1] http://www.freebsd.org/cgi/query-pr.cgi?pr=docs%2F126030 [2] http://www.freebsd.org/doc/en/books/developers-handbook [3] http://wiki.freebsd.org/SubversionPrimer/VendorImports From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 06:52:54 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2CCD106564A for ; Mon, 25 Aug 2008 06:52:54 +0000 (UTC) (envelope-from nikhil.rao@intel.com) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx1.freebsd.org (Postfix) with ESMTP id D187C8FC12 for ; Mon, 25 Aug 2008 06:52:54 +0000 (UTC) (envelope-from nikhil.rao@intel.com) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 24 Aug 2008 23:51:13 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.32,264,1217833200"; d="scan'208";a="373354602" Received: from orsmsx335.amr.corp.intel.com (HELO orsmsx335.jf.intel.com) ([10.22.226.40]) by fmsmga002.fm.intel.com with ESMTP; 24 Aug 2008 23:50:19 -0700 Received: from orsmsx419.amr.corp.intel.com ([10.22.226.88]) by orsmsx335.jf.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Sun, 24 Aug 2008 23:52:53 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sun, 24 Aug 2008 23:52:52 -0700 Message-ID: <12A5C15467D5B94F8E0FF265D9498ADD038AA0E9@orsmsx419.amr.corp.intel.com> In-Reply-To: <12A5C15467D5B94F8E0FF265D9498ADD0383F1CA@orsmsx419.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: pmap->pm_stats.resident_count Thread-Index: AckBKhQLd0o4eU90ToGWJVTn0UwbjwAMB09wAUiGRiA= References: <20080818120021.751FB106568E@hub.freebsd.org> <12A5C15467D5B94F8E0FF265D9498ADD0383F1CA@orsmsx419.amr.corp.intel.com> From: "Rao, Nikhil" To: X-OriginalArrivalTime: 25 Aug 2008 06:52:53.0972 (UTC) FILETIME=[32CDA140:01C9067F] Subject: pmap->pm_stats.resident_count 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, 25 Aug 2008 06:52:55 -0000 vm_daemon() looks at pmap->pm_stats.resident_count in the pmap structure using vmspace_resident_count() which calls pmap_resident_count(), pm_stats.resident_count is also incremented for device memory either if the device memory has been mapped using pmap_object_init_pt or using pmap_enter. Since these pages do not belong to memory that is managed by the kernel, they should not really be accounted in the if check below in vm_pageout.c ? if (limit >=3D 0 && size >=3D limit) { 1593 vm_pageout_map_deactivate_pages( 1594 &p->p_vmspace->vm_map, limit); 1595 } Is my understanding correct ? What do the members of this list think ? Thanks, Nikhil From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 12:42:34 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B03E41065672 for ; Mon, 25 Aug 2008 12:42:34 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id 864378FC0A for ; Mon, 25 Aug 2008 12:42:34 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1491447wfg.7 for ; Mon, 25 Aug 2008 05:42:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=xWYgU5NiUqSE7Z+Q0PpcR/qKn5axUnNSbd2xw7Kgx2U=; b=pqRa1fHPvbRDRnXBMOY/L0PKpx7kn0yceIkwSoWdvFMemQHUvunuS5Ta8/s6SFoiYd MYWbd2z6I4kW9IeZz/49aXL+Amtod4A/2kifOK1yViEerPGG8UjQGYaZKuGM5IaZDqw4 2ln+N7IeFYVWdNx6UgMvc46sgwCBkyt/h+wDk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=QK4uRxmMsRBKqVEoaqpHi4YNKOmqOXGlzVYEP1aLphng4oxmLoA4081Gy95Dx+hU8d 9gQb+1lIosRKntWMmMRUHDN/cf+EvUWZ42ZDMJem8HVS0NSJzVl6BEqgzeY8cTxoqAP5 jKgCIdqdGsdcEsJbsRjvnIC0YnS9XRFMUQDvs= Received: by 10.142.194.4 with SMTP id r4mr1494687wff.292.1219666192344; Mon, 25 Aug 2008 05:09:52 -0700 (PDT) Received: by 10.142.242.3 with HTTP; Mon, 25 Aug 2008 05:09:52 -0700 (PDT) Message-ID: Date: Mon, 25 Aug 2008 17:39:52 +0530 From: "vasanth raonaik" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: netstat: kvm_read: Bad address 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, 25 Aug 2008 12:42:34 -0000 Hello Hackers, I am facing with this Issue. Though netstat -a does show some output but the error is consistently seen. Does any one has some pointers to the cause and fix for the same. Thanks, Vasanth From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 12:49:11 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4AF6E1065687 for ; Mon, 25 Aug 2008 12:49:11 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id ACC268FC08; Mon, 25 Aug 2008 12:49:10 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48B2AA41.4070608@FreeBSD.org> Date: Mon, 25 Aug 2008 14:49:05 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: vasanth raonaik References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: netstat: kvm_read: Bad address 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, 25 Aug 2008 12:49:11 -0000 vasanth raonaik wrote: > Hello Hackers, > > I am facing with this Issue. Though netstat -a does show some output but the > error is consistently seen. Does any one has some pointers to the cause and > fix for the same. It is usually caused when your libkvm and/or netstat binary was compiled against different versions of the sources than your kernel. Rebuild world to fix it. Kris From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 12:49:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A99AA106567B for ; Mon, 25 Aug 2008 12:49:31 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id 974808FC22 for ; Mon, 25 Aug 2008 12:49:31 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 5C0401CC0C7; Mon, 25 Aug 2008 05:49:31 -0700 (PDT) Date: Mon, 25 Aug 2008 05:49:31 -0700 From: Jeremy Chadwick To: vasanth raonaik Message-ID: <20080825124931.GA78966@eos.sc1.parodius.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: netstat: kvm_read: Bad address 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, 25 Aug 2008 12:49:31 -0000 On Mon, Aug 25, 2008 at 05:39:52PM +0530, vasanth raonaik wrote: > Hello Hackers, > > I am facing with this Issue. Though netstat -a does show some output but the > error is consistently seen. Does any one has some pointers to the cause and > fix for the same. I've seen this message when a user upgrades the kernel to newer sources (e.g. csup/cvsup), and rebuilds/reinstalls the kernel, but **does not** rebuild/reinstall userland program (e.g. world). -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 13:20:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDF491065680 for ; Mon, 25 Aug 2008 13:20:02 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 73F548FC23 for ; Mon, 25 Aug 2008 13:20:02 +0000 (UTC) (envelope-from olivier@gid0.org) Received: by ey-out-2122.google.com with SMTP id 6so151349eyi.7 for ; Mon, 25 Aug 2008 06:20:01 -0700 (PDT) Received: by 10.180.227.2 with SMTP id z2mr2083077bkg.20.1219668768232; Mon, 25 Aug 2008 05:52:48 -0700 (PDT) Received: by 10.181.5.10 with HTTP; Mon, 25 Aug 2008 05:52:48 -0700 (PDT) Message-ID: <367b2c980808250552i630dd176wf500bb83960f64ed@mail.gmail.com> Date: Mon, 25 Aug 2008 14:52:48 +0200 From: "Olivier SMEDTS" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Call for testers - new ichwd ids 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, 25 Aug 2008 13:20:03 -0000 Hello hackers, If you have an Intel ICH chipset and the ichwd driver doesn't work for you, please test this patch : http://www.freebsd.org/cgi/query-pr.cgi?prp=126736-1-txt&n=/PATCH It adds new PCI IDs to the ichwd driver. It has been tested on an ICH10R-based motherboard (Asus P5Q3 Deluxe). The watchdog is detected and works (don't forget watchdogd_enable="YES" in /etc/rc.conf). See http://www.freebsd.org/cgi/query-pr.cgi?pr=126736 for more details. Olivier -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas." From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 13:52:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66DA9106566C for ; Mon, 25 Aug 2008 13:52:20 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.174]) by mx1.freebsd.org (Postfix) with ESMTP id 23AF98FC19 for ; Mon, 25 Aug 2008 13:52:20 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1511688wfg.7 for ; Mon, 25 Aug 2008 06:52:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=Pchr4VviJ9tAnXpOLb0ZA+6tZzGr9OrkwrA5JSHAc4U=; b=fcGTOvmVClhTkN8zxpS+Xio32l4fZ8Wr7IaijLJ5nbipeRMFvXQnWn5mut3ufWYvOC h2Iew4dlw9zftdFsrFL8+XEDA5aFfRTQnJeTrLZDLnMIWxTdldKUzFEWHFs0STApf9k5 Dg7fKDKekvs/Sxk47vHx+WPDr1OaIfuCmoafc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=OsUR/LpdZzrp2ZHsTfBa3I9ndCjhCdNU6B6HGS3xt2cWQ2aJWmm62dIMABVjcH4OoX DlpBylp7INLcce7uratSjmqw4/KrK6hHtwms1nAM/HL1Su1sK0FOyW7lmITNd7aybhxx uVgxOp3y451A208gmiG1YtMAPOcsvIoylSCPM= Received: by 10.143.31.4 with SMTP id i4mr1545270wfj.87.1219672339748; Mon, 25 Aug 2008 06:52:19 -0700 (PDT) Received: by 10.142.242.3 with HTTP; Mon, 25 Aug 2008 06:52:19 -0700 (PDT) Message-ID: Date: Mon, 25 Aug 2008 19:22:19 +0530 From: "vasanth raonaik" To: "Jeremy Chadwick" In-Reply-To: <20080825124931.GA78966@eos.sc1.parodius.com> MIME-Version: 1.0 References: <20080825124931.GA78966@eos.sc1.parodius.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: netstat: kvm_read: Bad address 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, 25 Aug 2008 13:52:20 -0000 Both kernel and utility are in sync. Any more ideas? On Mon, Aug 25, 2008 at 6:19 PM, Jeremy Chadwick wrote: > On Mon, Aug 25, 2008 at 05:39:52PM +0530, vasanth raonaik wrote: > > Hello Hackers, > > > > I am facing with this Issue. Though netstat -a does show some output but > the > > error is consistently seen. Does any one has some pointers to the cause > and > > fix for the same. > > I've seen this message when a user upgrades the kernel to newer sources > (e.g. csup/cvsup), and rebuilds/reinstalls the kernel, but **does not** > rebuild/reinstall userland program (e.g. world). > > -- > | Jeremy Chadwick jdc at parodius.com | > | Parodius Networking http://www.parodius.com/ | > | UNIX Systems Administrator Mountain View, CA, USA | > | Making life hard for others since 1977. PGP: 4BD6C0CB | > > From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 14:42:47 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29E831065690 for ; Mon, 25 Aug 2008 14:42:47 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id ED66B8FC22 for ; Mon, 25 Aug 2008 14:42:46 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 6DC881CC0C2; Mon, 25 Aug 2008 07:42:46 -0700 (PDT) Date: Mon, 25 Aug 2008 07:42:46 -0700 From: Jeremy Chadwick To: vasanth raonaik Message-ID: <20080825144246.GA88631@eos.sc1.parodius.com> References: <20080825124931.GA78966@eos.sc1.parodius.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: netstat: kvm_read: Bad address 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, 25 Aug 2008 14:42:47 -0000 On Mon, Aug 25, 2008 at 07:22:19PM +0530, vasanth raonaik wrote: > Both kernel and utility are in sync. Any more ideas? > > On Mon, Aug 25, 2008 at 6:19 PM, Jeremy Chadwick wrote: > > > On Mon, Aug 25, 2008 at 05:39:52PM +0530, vasanth raonaik wrote: > > > Hello Hackers, > > > > > > I am facing with this Issue. Though netstat -a does show some output but > > the > > > error is consistently seen. Does any one has some pointers to the cause > > and > > > fix for the same. > > > > I've seen this message when a user upgrades the kernel to newer sources > > (e.g. csup/cvsup), and rebuilds/reinstalls the kernel, but **does not** > > rebuild/reinstall userland program (e.g. world). Nope, don't have any. Others will have to help. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 20:05:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E653B1065680 for ; Mon, 25 Aug 2008 20:05:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 576C78FC20 for ; Mon, 25 Aug 2008 20:05:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m7PK4Y8N043991; Mon, 25 Aug 2008 16:04:53 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "M. Warner Losh" Date: Mon, 25 Aug 2008 10:40:41 -0400 User-Agent: KMail/1.9.7 References: <200808212351.13464.max@love2party.net> <200808230742.10902.jhb@freebsd.org> <20080823.155034.1260392773.imp@bsdimp.com> In-Reply-To: <20080823.155034.1260392773.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808251040.41587.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Mon, 25 Aug 2008 16:04:54 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8087/Mon Aug 25 14:40:37 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_03_06,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, max@love2party.net Subject: Re: MFC of r180753: ABI problems? 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, 25 Aug 2008 20:05:03 -0000 On Saturday 23 August 2008 05:50:34 pm M. Warner Losh wrote: > In message: <200808230742.10902.jhb@freebsd.org> > John Baldwin writes: > : On Saturday 23 August 2008 02:42:09 am M. Warner Losh wrote: > : > In message: <200808212351.13464.max@love2party.net> > : > > : > Max Laier writes: > : > : Hi, > : > : > : > : I'm wondering how to merge r180753 to stable/7 as luoqi@ has indicated > : > : that he doesn't have time to take care of it right now. > : > : > : > : It seems that changing the size of pcicfgregs (aka struct pcicfg) which > : > : is part of struct pci_devinfo is out of the question, right? Ideas where > : > : to store the HT related state or how to avoid storing the state are > : > : welcome. > : > : > : > : The merge result is attached for reference. This fix is essential for > : > : many nforce based boards from ASUS which are rather common, I'm afraid. > : > : So it would be good to have this in 7.1/6.4, I think. > : > > : > I think this is OK. > : > > : > pcicfgregs is an internal to pci implementation detail. You've added > : > it at the end, so any leakage of the offsets won't matter. All > : > subclasses of pci would be affected. Internal to the kernel isn't all > : > that interesting, since they are all compiled at the same time. This > : > would only matter for modules. Cardbus and acpi would be the only > : > modules affected. That would mean you couldn't boot a 7.0 kernel with > : > a 7.1 set of modules or vice versa. I'm not sure that is actually > : > going to work anyway... > : > : ACPI (and OFW's) PCI bus code isn't going to care, and I doubt cardbus is > : either. Hmm, actually, cardbus doesn't, but ACPI actually does (acpi_pci > > CardBus' does because it creates a slightly larger pcicfgreg per device... I thought it did but couldn't find it in the code. ACPI is basically doing the same thing. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 20:05:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA57710656BF for ; Mon, 25 Aug 2008 20:05:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 4FDDC8FC1C for ; Mon, 25 Aug 2008 20:05:19 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m7PK4Y8Q043991; Mon, 25 Aug 2008 16:05:13 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Mon, 25 Aug 2008 11:22:23 -0400 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808251122.23325.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Mon, 25 Aug 2008 16:05:13 -0400 (EDT) X-Virus-Scanned: ClamAV 0.93.1/8087/Mon Aug 25 14:40:37 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_03_06,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: vasanth raonaik Subject: Re: netstat: kvm_read: Bad address 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, 25 Aug 2008 20:05:19 -0000 On Monday 25 August 2008 08:09:52 am vasanth raonaik wrote: > Hello Hackers, > > I am facing with this Issue. Though netstat -a does show some output but the > error is consistently seen. Does any one has some pointers to the cause and > fix for the same. Some parts of netstat still use direct kvm access to read kernel variables instead of sysctls for live kernels. If it tries to walk a linked list while the list is being changed, then it can end up following a free'd pointer and get this error. Is the system doing something like adding and deleting lots of psuedo-interfaces, addresses, etc.? -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Mon Aug 25 21:35:17 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D06811065672; Mon, 25 Aug 2008 21:35:17 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk1.360sip.com [72.236.70.240]) by mx1.freebsd.org (Postfix) with ESMTP id 85B178FC15; Mon, 25 Aug 2008 21:35:16 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.9] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.8/8.13.8) with ESMTP id m7PLZEDT061265 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 25 Aug 2008 14:35:15 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <48B3259E.8070601@FreeBSD.org> Date: Mon, 25 Aug 2008 14:35:26 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> <48B0BEC7.1070806@FreeBSD.org> In-Reply-To: <48B0BEC7.1070806@FreeBSD.org> Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org, kmacy@FreeBSD.org, Kris Kennaway , freebsd-sun4v@FreeBSD.org, freebsd-current@FreeBSD.org, freebsd-hackers@FreeBSD.org Subject: Re: sun4v arch 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, 25 Aug 2008 21:35:18 -0000 Maxim Sobolev wrote: > Peter Jeremy wrote: >> Is there a summary of the open issues somewhere? There are no sun4v >> PRs open. http://wiki.freebsd.org/FreeBSD/sun4v effectively hasn't >> been touched since November 2006 and suggests that the only critical >> issue is lack of serial port support. > > There is a better interpretation, which is that the only critical issue > is lack of real users for this port, not lack of serial port support :). Just to clarify a bit - my point was not to suggest that port is irrelevant, or that the FreeBSD should not go there. In fact I believe on contrary from what I know sun4v is good as a testbed for the future of multi-processor architectures today - definitely we will see ever increasing number of cores in commodity Intel/AMD servers in few years from now. So that in that sense sun4v work is very important if the FreeBSD project wants to keep ahead of things, not catching-up later. However, realistically immaturity of the port as well as scarcity of hardware limits number of users severely. Therefore, absence of PRs should not be surprising to anyone. -Maxim From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 26 18:25:11 2008 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EB5B1065681; Tue, 26 Aug 2008 18:25:11 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from server.mypc.hu (server.mypc.hu [87.229.73.95]) by mx1.freebsd.org (Postfix) with ESMTP id A111D8FC19; Tue, 26 Aug 2008 18:25:10 +0000 (UTC) (envelope-from gabor@kovesdan.org) Received: from localhost (localhost [127.0.0.1]) by server.mypc.hu (Postfix) with ESMTP id 1EEB714D6C5D; Tue, 26 Aug 2008 20:25:09 +0200 (CEST) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.mypc.hu ([127.0.0.1]) by localhost (server.mypc.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yrMrd3pRcMsJ; Tue, 26 Aug 2008 20:25:04 +0200 (CEST) Received: from [89.134.207.83] (catv-5986cf53.catv.broadband.hu [89.134.207.83]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.mypc.hu (Postfix) with ESMTPSA id 9F16914D6C54; Tue, 26 Aug 2008 20:25:04 +0200 (CEST) Message-ID: <48B44A7D.3070108@kovesdan.org> Date: Tue, 26 Aug 2008 20:25:01 +0200 From: Gabor Kovesdan User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: hackers@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 26 Aug 2008 18:30:50 +0000 Cc: Max Khon , dougb@FreeBSD.org, krion@FreeBSD.org, current@FreeBSD.org Subject: CFT: BSD grep 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, 26 Aug 2008 18:25:11 -0000 Hello all, I've reviewed BSD grep based on your comments and the bug reports I received. The new version is committed to the ports tree as textproc/bsdgrep and there is a base patch available: http://kovesdan.org/patches/grep-base.diff I've asked portmgr to test my patch on pointyhat if they have available resources, but haven't got an answer yet. In the meantime, I'd like to ask for your comments and feedback on BSD grep. Currently, it is supposed to be highly compatible with GNU grep, except from some differences in the handling of the regular expressions. This comes from the different manners in the GNU regex library and in our regex library, thus it would be very difficult to fix at the level of grep. For example, GNU grep accepts empty subexpressions in regexes, like "(|b)", but BSD grep does not. I don't know how often such non-standard constructions are used, we need to see the results of a portbuild first, but I know that there are some in portmaster. That's why I CC'd Doug, I'm interested in his comments. There are another question to discuss. GNU grep supports -P for Perl regexes based on PCRE. This is not available in FreeBSD, though, but I'd be glad to add it to BSD grep. This would require us to import PCRE to base. It is BSD-licensed and maybe other tools would make use of it in the future. I don't know how this can cooperate with the ports version and how difficult it would be to maintain it in base. I remember that Perl was removed from base due to this overhead. What do you think about this? I've CC'd krion@, the maintainer of devel/pcre, maybe he can comment on this. Thanks, Gabor From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 26 21:23:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1B2631065671 for ; Tue, 26 Aug 2008 21:23:50 +0000 (UTC) (envelope-from andenore@freebsd.org) Received: from osl1smout1.broadpark.no (osl1smout1.broadpark.no [80.202.4.58]) by mx1.freebsd.org (Postfix) with ESMTP id B1F178FC08 for ; Tue, 26 Aug 2008 21:23:49 +0000 (UTC) (envelope-from andenore@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; format=flowed; delsp=yes; charset=utf-8 Received: from osl1sminn1.broadpark.no ([80.202.4.59]) by osl1smout1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0K6800EAX8RK9P50@osl1smout1.broadpark.no> for freebsd-hackers@freebsd.org; Tue, 26 Aug 2008 23:23:44 +0200 (CEST) Received: from duckjen.nextgentel.no ([84.48.58.232]) by osl1sminn1.broadpark.no (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTP id <0K680075N8RJ59RI@osl1sminn1.broadpark.no> for freebsd-hackers@freebsd.org; Tue, 26 Aug 2008 23:23:44 +0200 (CEST) Date: Tue, 26 Aug 2008 23:18:50 +0200 To: Garrett Cooper From: Anders Nore References: <1d3ed48c0808211456h779bec94n9b6597c66f7741b2@mail.gmail.com> <1d3ed48c0808211500i4445b443t4a67da7cf514adaa@mail.gmail.com> <7d6fde3d0808222236t45103e4eseb8f174ffb89fdca@mail.gmail.com> Message-id: In-reply-to: <7d6fde3d0808222236t45103e4eseb8f174ffb89fdca@mail.gmail.com> User-Agent: Opera Mail/9.50 (FreeBSD) Cc: "freebsd-hackers@freebsd.org" Subject: Re: pkg_improved GSoC 2008 finished 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, 26 Aug 2008 21:23:50 -0000 On Sat, 23 Aug 2008 07:36:02 +0200, Garrett Cooper wrote: > > How about this? > > For standalone packages, specify: > > Makefile.inc <-- redefine variables here. > pkg_install/ <-- sources go here. > > Seems like a simple solution ;). > > As for diff, you probably what to use: > > --exclude-from=SCM_patterns.txt > > where SCM_patterns.txt consists of: > -------------- > CVS > .git > .svn > .CC > -------------- > ... etc. > > As for patch, `patch -p0 < pkg_install.patch' does the trick if you do > `diff -Naur .'. > > Cheers and good work on finishing off this awesome task. I'll gladly > write up tests for you if you like =], > -Garrett I've been making a lot of mistakes trying to make correct patches, but I think I finally got a hang of it now :) I'd really appreciate some tests if you're willing to write some. I've also discovered two bugs in all -CURRENT, -RELENG_7 and -RELENG_7_0 of pkg_install: 1. Bug in pkg_info -W, it does not handle empty @cwd's correctly in the packinglist, so if you have any packages with an empty @cwd before the files listed it will not show as installed by a package. e.g., if you have the kdeadmin-4.1.0 package installed, one of the files it installs is `/usr/local/kde4/libdata/ldconfig/kdeadmin4' but running `pkg_info -W /usr/local/kde4/libdata/ldconfig/kdeadmin4' will not show that it installed by kdeadmin-4.1.0. 2. Bug in pkg_add, adding two packages where the first package recursively pkg_add's dependencies using slave mode will cause an `pkg_add: fatal error during execution: getcwd'. Because it doesn't save and recover previous working directories correctly. e.g., if you delete packages "joe-3.5,1", "gettext-0.16.1_3" and "zip-2.32", and run `pkg_add -r joe zip' this error will occur as joe depends on gettext. If you run `pkg_add -r zip joe' this error will not occur. Here's a patch for these errors: http://home.no.net/andenore/patches/pkg_install_bugfix-2008-08-26_RELENG_7.diff Can someone confirm these bugs, and if the patch is suitable? Thanks a bunch, Anders Nore From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 00:32:10 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 98D12106564A for ; Wed, 27 Aug 2008 00:32:10 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5018FC12 for ; Wed, 27 Aug 2008 00:32:09 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1880874fgb.35 for ; Tue, 26 Aug 2008 17:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Uylrno6K3zS8dtc4f3lhOZA+z67DHeK4BxYZfBbH+Gs=; b=CQBv3sIEitkjWBbyQ2FtoZBfZ1YUKRdQZzi9PfjWxVoN5UvfDwZK4TI39DqAji4ka9 Zh5YOO0ru1aHPTZ92cCin6KkJd0RZHPyvOi3rkhiKuQwer1lu8Ft6PvtbY3CcKPvbyAY Pna5KVEjagjYtn3xXSNRkC1G7U/OBSWT/Fr6I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=QE7HJc5Tdga9qccp/gx0W/9XS/Of6k1Zxv762LT+kuJg7yBcL6aWrO+jvdUQi9oYfw 2xYpEOqeiC3C7KMZW10IKgxtVeDMx2RXyeRh7uGcEJjbN+DRx6vocUEQGf0rACuJaG/8 AnNsl5Lbu1b6GFTa1ON4QaUwHmyWISfXlK98o= Received: by 10.86.82.16 with SMTP id f16mr4837740fgb.16.1219797128777; Tue, 26 Aug 2008 17:32:08 -0700 (PDT) Received: by 10.86.62.14 with HTTP; Tue, 26 Aug 2008 17:32:08 -0700 (PDT) Message-ID: <7d6fde3d0808261732w2dba8451ufd6683bc08d55a85@mail.gmail.com> Date: Tue, 26 Aug 2008 17:32:08 -0700 From: "Garrett Cooper" To: "Anders Nore" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <1d3ed48c0808211456h779bec94n9b6597c66f7741b2@mail.gmail.com> <1d3ed48c0808211500i4445b443t4a67da7cf514adaa@mail.gmail.com> <7d6fde3d0808222236t45103e4eseb8f174ffb89fdca@mail.gmail.com> Cc: "freebsd-hackers@freebsd.org" Subject: Re: pkg_improved GSoC 2008 finished 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, 27 Aug 2008 00:32:10 -0000 On Tue, Aug 26, 2008 at 2:18 PM, Anders Nore wrote: > On Sat, 23 Aug 2008 07:36:02 +0200, Garrett Cooper > wrote: >> >> How about this? >> >> For standalone packages, specify: >> >> Makefile.inc <-- redefine variables here. >> pkg_install/ <-- sources go here. >> >> Seems like a simple solution ;). >> >> As for diff, you probably what to use: >> >> --exclude-from=SCM_patterns.txt >> >> where SCM_patterns.txt consists of: >> -------------- >> CVS >> .git >> .svn >> .CC >> -------------- >> ... etc. >> >> As for patch, `patch -p0 < pkg_install.patch' does the trick if you do >> `diff -Naur .'. >> >> Cheers and good work on finishing off this awesome task. I'll gladly >> write up tests for you if you like =], >> -Garrett > > > I've been making a lot of mistakes trying to make correct patches, but I > think I finally got a hang of it now :) > I'd really appreciate some tests if you're willing to write some. > > I've also discovered two bugs in all -CURRENT, -RELENG_7 and -RELENG_7_0 of > pkg_install: > > 1. Bug in pkg_info -W, it does not handle empty @cwd's correctly in the > packinglist, so if you have any packages with an empty @cwd before the files > listed it will not show as installed by a package. > e.g., if you have the kdeadmin-4.1.0 package installed, one of the files it > installs is `/usr/local/kde4/libdata/ldconfig/kdeadmin4' but running > `pkg_info -W /usr/local/kde4/libdata/ldconfig/kdeadmin4' will not show that > it installed by kdeadmin-4.1.0. > > 2. Bug in pkg_add, adding two packages where the first package recursively > pkg_add's dependencies using slave mode will cause an `pkg_add: fatal error > during execution: getcwd'. Because it doesn't save and recover previous > working directories correctly. > e.g., if you delete packages "joe-3.5,1", "gettext-0.16.1_3" and "zip-2.32", > and run `pkg_add -r joe zip' this error will occur as joe depends on > gettext. If you run `pkg_add -r zip joe' this error will not occur. > > Here's a patch for these errors: > http://home.no.net/andenore/patches/pkg_install_bugfix-2008-08-26_RELENG_7.diff > Can someone confirm these bugs, and if the patch is suitable? > > > Thanks a bunch, > Anders Nore I'll look through the diff at a later date to determine what new features you've added, but I'll be sure to add regression tests soon via Python / dev-pynose (sometime tonight if at all possible -- automation and testing Cisco stuff is eating up a lot of my free time :(...). Cheers, -Garrett From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 00:37:43 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44921106568C for ; Wed, 27 Aug 2008 00:37:43 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from hercules.mthelicon.com (hercules.mthelicon.com [IPv6:2001:49f0:2023::2]) by mx1.freebsd.org (Postfix) with ESMTP id E2BF38FC14 for ; Wed, 27 Aug 2008 00:37:42 +0000 (UTC) (envelope-from ken@mthelicon.com) Received: from feathers.mthelicon.com (host81-159-203-237.range81-159.btcentralplus.com [81.159.203.237]) (authenticated bits=0) by hercules.mthelicon.com (8.14.2/8.14.2) with ESMTP id m7R0beih091813 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO) for ; Wed, 27 Aug 2008 00:37:42 GMT (envelope-from ken@mthelicon.com) From: Pegasus Mc Cleaft Organization: Feathers To: freebsd-hackers@freebsd.org Date: Wed, 27 Aug 2008 00:37:35 +0000 User-Agent: KMail/1.10.0 (FreeBSD/7.1-PRERELEASE; KDE/4.1.0; amd64; ; ) References: <367b2c980808250552i630dd176wf500bb83960f64ed@mail.gmail.com> In-Reply-To: <367b2c980808250552i630dd176wf500bb83960f64ed@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200808270037.35273.ken@mthelicon.com> Subject: Re: Call for testers - new ichwd ids 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, 27 Aug 2008 00:37:43 -0000 On Monday 25 August 2008 12:52:48 Olivier SMEDTS wrote: > Hello hackers, > > If you have an Intel ICH chipset and the ichwd driver doesn't work for > you, please test this patch : Oliver, Thanks for the patch, but sadly this didnt help the situation I have with my motherboard. It identifies the ICH9R chipset, but sadly looks like the motherboard company has disabled the watchdog action. I have already spoken to the motherboard producers and they sware they have not, but looking at the code I cant see any other explanation for the behavior. The motherboard is a Gigabyte GA-X48-DS5 Bios F7 (latest) Output is: ichwd0: on isa0 ichwd0: ICH WDT present but disabled in BIOS or hardware device_attach: ichwd0 attach returned 6 I looked at the datasheet for the ICH9 chipset and I believe they have a pull-up on the speaker line that is telling the chip to disable the watchdog functions. Peg From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 01:48:46 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A9BD1065677; Wed, 27 Aug 2008 01:48:46 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (nagual.pp.ru [194.87.13.69]) by mx1.freebsd.org (Postfix) with ESMTP id A7B9C8FC1C; Wed, 27 Aug 2008 01:48:45 +0000 (UTC) (envelope-from ache@nagual.pp.ru) Received: from nagual.pp.ru (ache@localhost [127.0.0.1]) by nagual.pp.ru (8.14.2/8.14.2) with ESMTP id m7R1WN9d083933; Wed, 27 Aug 2008 05:32:23 +0400 (MSD) (envelope-from ache@nagual.pp.ru) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nagual.pp.ru; s=default; t=1219800743; bh=rofMg4Dp3slkqBp0rG72cR3xhRwXhy4nubi8W3P Shzg=; l=1398; h=Date:From:To:Cc:Subject:Message-ID:References: MIME-Version:Content-Type:In-Reply-To; b=HmLSiwDzIwbMrGzySKS5RvMlg yXO2vG7chgbVk3a1hEIwvGqRWPcHNmPr8wMXisOt7Lez8KQvYLxGZ+6DFCSkEeOvH3L R5l5C8XBqGOnyRA7DF3poOTMUm2ULpXJUpKqKHlBSyN4kMq7H0kOIKDQ/YonnpbpDDP lQIz6pHprTtU= Received: (from ache@localhost) by nagual.pp.ru (8.14.2/8.14.2/Submit) id m7R1WMnX083931; Wed, 27 Aug 2008 05:32:22 +0400 (MSD) (envelope-from ache) Date: Wed, 27 Aug 2008 05:32:21 +0400 From: Andrey Chernov To: Gabor Kovesdan Message-ID: <20080827013221.GA82176@nagual.pp.ru> Mail-Followup-To: Andrey Chernov , Gabor Kovesdan , hackers@freebsd.org, Max Khon , dougb@freebsd.org, krion@freebsd.org, current@freebsd.org References: <48B44A7D.3070108@kovesdan.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48B44A7D.3070108@kovesdan.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Mailman-Approved-At: Wed, 27 Aug 2008 02:22:27 +0000 Cc: current@freebsd.org, Max Khon , hackers@freebsd.org, krion@freebsd.org, dougb@freebsd.org Subject: Re: CFT: BSD grep 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, 27 Aug 2008 01:48:46 -0000 On Tue, Aug 26, 2008 at 08:25:01PM +0200, Gabor Kovesdan wrote: > Hello all, > > I've reviewed BSD grep based on your comments and the bug reports I > received. The new version is committed to the ports tree as > textproc/bsdgrep and there is a base patch available: > http://kovesdan.org/patches/grep-base.diff Just from quick looking at the sources... This code looks suspicious: wend = sscanf(&l->dat[pmatch.rm_eo], "%lc", &wend); Perhaps it should be if (sscanf(&l->dat[pmatch.rm_eo], "%lc", &wend) != 1) r = REG_NOMATCH; The next thing is that perhaps each r = REG_NOMATCH; case should be isolated from others in this block (with "else if"?) F.e. failing mbstowcs() can leave buffer for sscanf() in junk. wbegin = grep_malloc(mbstowcs(NULL, l->dat, pmatch.rm_so)); grep_malloc() here could terminate program for invalid mbstowcs() sequence, but really must set only r = REG_NOMATCH; Think about files which, for various reasons, may contain not only valid MB sequences. fgrepcomp() uses toupper()/tolower() while should use wide chars analogs (MB chars can be in the pattern too). There are also many other places where pattern treated as single chars one, fastcomp() etc. grep_cmp() compares single chars toupper(data[]) too. There must be no plain ctype usage in the whole data _and_ pattern handling code. -- http://ache.pp.ru/ From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 03:55:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8BCCF1065675 for ; Wed, 27 Aug 2008 03:55:25 +0000 (UTC) (envelope-from bab@acciodata.com) Received: from mail.acciodata.com (host34.acciodata.com [207.200.31.34]) by mx1.freebsd.org (Postfix) with ESMTP id 297D08FC1E for ; Wed, 27 Aug 2008 03:55:25 +0000 (UTC) (envelope-from bab@acciodata.com) Received: from bravo.acciodata.com (root@bravo [10.1.5.2]) by mail.acciodata.com (8.14.1/8.14.1) with ESMTP id m7R3KY5A039744 for ; Tue, 26 Aug 2008 22:20:34 -0500 (CDT) (envelope-from bab@acciodata.com) Received: from bravo.acciodata.com (bab@localhost [127.0.0.1]) by bravo.acciodata.com (8.14.2/8.14.2) with ESMTP id m7R3KXVl031204 for ; Tue, 26 Aug 2008 22:20:33 -0500 (CDT) (envelope-from bab@bravo.acciodata.com) Received: (from bab@localhost) by bravo.acciodata.com (8.14.2/8.14.2/Submit) id m7R3KXNc031201; Tue, 26 Aug 2008 22:20:33 -0500 (CDT) (envelope-from bab) From: Barry Boes MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18612.51201.285688.628405@gargle.gargle.HOWL> Date: Tue, 26 Aug 2008 22:20:33 -0500 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid X-Mailman-Approved-At: Wed, 27 Aug 2008 04:40:09 +0000 Subject: kvm on amd64 - >6G? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: barry.boes@acciodata.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 03:55:25 -0000 With the advent of ZFS, Solaris users are devoting 30G or more to their ARC caches today. If FreeBSD 8 is going to up the KVM size, is there a reason to not increase the limit to something that will not be reached in the lifetime of 8? 100GB? -Barry From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 10:00:08 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7DC5E1065675 for ; Wed, 27 Aug 2008 10:00:08 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (unknown [IPv6:2a01:170:102f::2]) by mx1.freebsd.org (Postfix) with ESMTP id D23BE8FC3A for ; Wed, 27 Aug 2008 10:00:07 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.2/8.14.2) with ESMTP id m7R9xRHe086924; Wed, 27 Aug 2008 11:59:27 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.2/8.14.2/Submit) id m7R9xOMo086923; Wed, 27 Aug 2008 11:59:24 +0200 (CEST) (envelope-from olli) Date: Wed, 27 Aug 2008 11:59:24 +0200 (CEST) Message-Id: <200808270959.m7R9xOMo086923@lurza.secnetix.de> From: Oliver Fromme To: freebsd-hackers@FreeBSD.ORG, barry.boes@acciodata.com In-Reply-To: <18612.51201.285688.628405@gargle.gargle.HOWL> X-Newsgroups: list.freebsd-hackers User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (FreeBSD/6.3-STABLE (i386)) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 27 Aug 2008 11:59:27 +0200 (CEST) Cc: Subject: Re: kvm on amd64 - >6G? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@FreeBSD.ORG, barry.boes@acciodata.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 10:00:08 -0000 Barry Boes wrote: > With the advent of ZFS, Solaris users are devoting 30G or more to > their ARC caches today. If FreeBSD 8 is going to up the KVM size, is > there a reason to not increase the limit to something that will not be > reached in the lifetime of 8? 100GB? I think Alan Cox recently increased the kmem limit in 8-current from 1.5 GB to 7 GB, and the default is 4.2 GB. http://svn.freebsd.org/viewvc/base?view=revision&revision=180311 I don't know if this will be MFCed. It will not be in 7.1-Release; it's too late for that. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things." -- Doug Gwyn From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 10:22:45 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F2857106568B for ; Wed, 27 Aug 2008 10:22:45 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6B6B08FC20; Wed, 27 Aug 2008 10:22:44 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48B52AEE.9080205@FreeBSD.org> Date: Wed, 27 Aug 2008 12:22:38 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: barry.boes@acciodata.com References: <18612.51201.285688.628405@gargle.gargle.HOWL> In-Reply-To: <18612.51201.285688.628405@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: kvm on amd64 - >6G? 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, 27 Aug 2008 10:22:46 -0000 Barry Boes wrote: > With the advent of ZFS, Solaris users are devoting 30G or more to > their ARC caches today. If FreeBSD 8 is going to up the KVM size, is > there a reason to not increase the limit to something that will not be > reached in the lifetime of 8? 100GB? It's easily configurable on HEAD. From an email alc sent me: ---- This: Index: amd64/include/pmap.h =================================================================== --- amd64/include/pmap.h (revision 180373) +++ amd64/include/pmap.h (working copy) @@ -111,7 +111,7 @@ /* Initial number of kernel page tables. */ #ifndef NKPT -#define NKPT 32 +#define NKPT 1023 #endif #define NKPML4E 1 /* number of kernel PML4 slots */ Index: amd64/include/vmparam.h =================================================================== --- amd64/include/vmparam.h (revision 180373) +++ amd64/include/vmparam.h (working copy) @@ -163,7 +163,7 @@ */ #define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, NPDEPG-1, NPTEPG-1) -#define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-7, 0, 0) +#define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, 0, 0, 0) #define DMAP_MIN_ADDRESS KVADDR(DMPML4I, 0, 0, 0) #define DMAP_MAX_ADDRESS KVADDR(DMPML4I+1, 0, 0, 0) will now get you this: vm.kvm_free: 547729960960 vm.kvm_size: 549755809792 on HEAD. :-) ---- Kris From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 11:45:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6E63E106567D; Wed, 27 Aug 2008 11:45:13 +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 6D3788FC16; Wed, 27 Aug 2008 11:45:12 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (ppp121-45-186-163.lns11.adl2.internode.on.net [121.45.186.163]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id m7RBCoLx007232 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 27 Aug 2008 20:42:52 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 27 Aug 2008 20:42:35 +0930 User-Agent: KMail/1.9.7 References: <18612.51201.285688.628405@gargle.gargle.HOWL> <48B52AEE.9080205@FreeBSD.org> In-Reply-To: <48B52AEE.9080205@FreeBSD.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1761992.qOsn1zepxy"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200808272042.43260.doconnor@gsoft.com.au> X-Spam-Score: -2.212 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: barry.boes@acciodata.com Subject: Re: kvm on amd64 - >6G? 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, 27 Aug 2008 11:45:13 -0000 --nextPart1761992.qOsn1zepxy Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 27 Aug 2008, Kris Kennaway wrote: > will now get you this: > > vm.kvm_free: 547729960960 > vm.kvm_size: 549755809792 > > on HEAD. :-) Holy fat cache Batman! Any chance it could be made a tunable? =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 --nextPart1761992.qOsn1zepxy Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iD8DBQBItTar5ZPcIHs/zowRAkK3AJ0fCQqL9PH8ECY7P32tL0BOGpOfaACcC1Yz eMqRLCqtRN6pmQ5cATN1z8E= =KTni -----END PGP SIGNATURE----- --nextPart1761992.qOsn1zepxy-- From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 11:51:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D74331065677 for ; Wed, 27 Aug 2008 11:51:46 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B6FD88FC12; Wed, 27 Aug 2008 11:51:44 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48B53FCB.4000107@FreeBSD.org> Date: Wed, 27 Aug 2008 13:51:39 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Daniel O'Connor References: <18612.51201.285688.628405@gargle.gargle.HOWL> <48B52AEE.9080205@FreeBSD.org> <200808272042.43260.doconnor@gsoft.com.au> In-Reply-To: <200808272042.43260.doconnor@gsoft.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, barry.boes@acciodata.com Subject: Re: kvm on amd64 - >6G? 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, 27 Aug 2008 11:51:46 -0000 Daniel O'Connor wrote: > On Wed, 27 Aug 2008, Kris Kennaway wrote: >> will now get you this: >> >> vm.kvm_free: 547729960960 >> vm.kvm_size: 549755809792 >> >> on HEAD. :-) > > Holy fat cache Batman! > > Any chance it could be made a tunable? > I don't know what the impact might be of changing these constants to runtime variable accesses, if they are in a critical path somewhere. Kris From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 13:56:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1E2C106567A for ; Wed, 27 Aug 2008 13:56:41 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 075E38FC1A; Wed, 27 Aug 2008 13:56:40 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <48B55D13.1060609@FreeBSD.org> Date: Wed, 27 Aug 2008 15:56:35 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: Barry Boes References: <18612.51201.285688.628405@gargle.gargle.HOWL> <48B52AEE.9080205@FreeBSD.org> <18613.21419.16360.120533@gargle.gargle.HOWL> In-Reply-To: <18613.21419.16360.120533@gargle.gargle.HOWL> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: kvm on amd64 - >6G? 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, 27 Aug 2008 13:56:42 -0000 Barry Boes wrote: > I could apply such a patch to my servers, but there are two disadvantages : > o who wants to apply kernel patches to mission critical servers? Isn't > that a linux thing (joke!) A trivial tweak would let you set both parameters in your kernel configuration as an option. > o what about apps like the linuxulator that might not stand for this? Why do you think they will care? > On the tunable option : with today's kmem_size and kmem_size_max > tunables, would there also be a need to tune the portion of address > space available to kmem? Yes, it is still suballocated out of the kernel map. Kris From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 13:16:29 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD4661065674 for ; Wed, 27 Aug 2008 13:16:29 +0000 (UTC) (envelope-from bab@acciodata.com) Received: from mail.acciodata.com (host34.acciodata.com [207.200.31.34]) by mx1.freebsd.org (Postfix) with ESMTP id 64AF68FC08 for ; Wed, 27 Aug 2008 13:16:29 +0000 (UTC) (envelope-from bab@acciodata.com) Received: from bravo.acciodata.com (root@bravo [10.1.5.2]) by mail.acciodata.com (8.14.1/8.14.1) with ESMTP id m7RDGShr084298; Wed, 27 Aug 2008 08:16:28 -0500 (CDT) (envelope-from bab@acciodata.com) Received: from bravo.acciodata.com (bab@localhost [127.0.0.1]) by bravo.acciodata.com (8.14.2/8.14.2) with ESMTP id m7RDGRpp081167; Wed, 27 Aug 2008 08:16:27 -0500 (CDT) (envelope-from bab@bravo.acciodata.com) Received: (from bab@localhost) by bravo.acciodata.com (8.14.2/8.14.2/Submit) id m7RDGRmu081164; Wed, 27 Aug 2008 08:16:27 -0500 (CDT) (envelope-from bab) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18613.21419.16360.120533@gargle.gargle.HOWL> Date: Wed, 27 Aug 2008 08:16:27 -0500 To: freebsd-hackers@freebsd.org In-Reply-To: <48B52AEE.9080205@FreeBSD.org> References: <18612.51201.285688.628405@gargle.gargle.HOWL> <48B52AEE.9080205@FreeBSD.org> X-Mailer: VM 7.17 under 21.4 (patch 20) "Double Solitaire" XEmacs Lucid From: Barry Boes X-Mailman-Approved-At: Wed, 27 Aug 2008 14:17:10 +0000 Cc: Subject: Re: kvm on amd64 - >6G? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Barry Boes List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Aug 2008 13:16:29 -0000 I could apply such a patch to my servers, but there are two disadvantages : o who wants to apply kernel patches to mission critical servers? Isn't that a linux thing (joke!) o what about apps like the linuxulator that might not stand for this? On the tunable option : with today's kmem_size and kmem_size_max tunables, would there also be a need to tune the portion of address space available to kmem? Thanks, Barry Kris Kennaway writes: > Barry Boes wrote: > > With the advent of ZFS, Solaris users are devoting 30G or more to > > their ARC caches today. If FreeBSD 8 is going to up the KVM size, is > > there a reason to not increase the limit to something that will not be > > reached in the lifetime of 8? 100GB? > > It's easily configurable on HEAD. From an email alc sent me: > > ---- > This: > > Index: amd64/include/pmap.h > =================================================================== > --- amd64/include/pmap.h (revision 180373) > +++ amd64/include/pmap.h (working copy) > @@ -111,7 +111,7 @@ > > /* Initial number of kernel page tables. */ > #ifndef NKPT > -#define NKPT 32 > +#define NKPT 1023 > #endif > > #define NKPML4E 1 /* number of kernel PML4 > slots */ > Index: amd64/include/vmparam.h > =================================================================== > --- amd64/include/vmparam.h (revision 180373) > +++ amd64/include/vmparam.h (working copy) > @@ -163,7 +163,7 @@ > */ > > #define VM_MAX_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-1, > NPDEPG-1, NPTEPG-1) > -#define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, NPDPEPG-7, 0, 0) > +#define VM_MIN_KERNEL_ADDRESS KVADDR(KPML4I, 0, 0, 0) > > #define DMAP_MIN_ADDRESS KVADDR(DMPML4I, 0, 0, 0) > #define DMAP_MAX_ADDRESS KVADDR(DMPML4I+1, 0, 0, 0) > > will now get you this: > > vm.kvm_free: 547729960960 > vm.kvm_size: 549755809792 > > on HEAD. :-) > ---- > > Kris From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 27 17:02:12 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 123111065696 for ; Wed, 27 Aug 2008 17:02:12 +0000 (UTC) (envelope-from jchen@teekoo.com) Received: from mout.perfora.net (mout.perfora.net [74.208.4.194]) by mx1.freebsd.org (Postfix) with ESMTP id DAA968FC1D for ; Wed, 27 Aug 2008 17:02:11 +0000 (UTC) (envelope-from jchen@teekoo.com) Received: from jchen-lap.teekoo.com (dhcp-128-107-135-156.cisco.com [128.107.135.156]) by mrelay.perfora.net (node=mrus0) with ESMTP (Nemesis) id 0MKp8S-1KYOD42wX4-0005gx; Wed, 27 Aug 2008 12:49:32 -0400 Received: by jchen-lap.teekoo.com (Postfix, from userid 1001) id B37D7175E4; Wed, 27 Aug 2008 09:08:19 -0700 (PDT) Date: Wed, 27 Aug 2008 09:08:19 -0700 From: Jingshao Chen To: freebsd-hackers@freebsd.org Message-ID: <20080827160819.GA770@teekoo.com> References: <39DC135F7F0571489196E0B6F5D58B4A03B46055@MWBEXCH.mweb.com> <20080819070253.GH87062@nexus.in-nomine.org> <39DC135F7F0571489196E0B6F5D58B4A03B46056@MWBEXCH.mweb.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <39DC135F7F0571489196E0B6F5D58B4A03B46056@MWBEXCH.mweb.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Provags-ID: V01U2FsdGVkX18bSb/sN+N/kwZ2583uBmhUeNHsGSIIzew3AQg hOw7m5aShNddNwfIVQX1IDtLSx/kBLLrJcjvglPW9VZ/4jypzk EMeT9ntwcuJmegeGszvgiUpYrItZTxq Subject: Re: Recommend literature for beginner programer 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, 27 Aug 2008 17:02:12 -0000 Hi, Since you have been unix admin for a few years, I guess you probably have some experience with C programming. This book is more advanced, but it is a really good one. Advanced Programming in the UNIX Environment: Paperback Edition (2nd Edition) http://www.amazon.com/Advanced-Programming-UNIX-Environment-Addison-Wesley/dp/0321525949/ref=sr_1_1?ie=UTF8&s=books&qid=1219855535&sr=1-1 Thanks, Jingshao On Tue, Aug 19, 2008 at 09:36:12AM +0200, Rudi Kramer - MWEB wrote: > > > Ruigrok van der Werven > > > > What is your goal? > > I learn how FreeBSD is put together and eventually contribute code to > the base. > > Rudi > _______________________________________________ > 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 Wed Aug 27 19:02:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1950F106567E for ; Wed, 27 Aug 2008 19:02:02 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from math.missouri.edu (math.missouri.edu [128.206.184.200]) by mx1.freebsd.org (Postfix) with ESMTP id E03958FC08 for ; Wed, 27 Aug 2008 19:02:01 +0000 (UTC) (envelope-from stephen@math.missouri.edu) Received: from [128.206.184.213] (cauchy.math.missouri.edu [128.206.184.213]) by math.missouri.edu (8.13.1/8.13.1) with ESMTP id m7RIMK8G006556; Wed, 27 Aug 2008 13:22:21 -0500 (CDT) (envelope-from stephen@math.missouri.edu) Message-ID: <48B59B4B.9050500@math.missouri.edu> Date: Wed, 27 Aug 2008 13:22:03 -0500 From: Stephen Montgomery-Smith User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.16) Gecko/20080823 SeaMonkey/1.1.11 MIME-Version: 1.0 To: Jingshao Chen References: <39DC135F7F0571489196E0B6F5D58B4A03B46055@MWBEXCH.mweb.com> <20080819070253.GH87062@nexus.in-nomine.org> <39DC135F7F0571489196E0B6F5D58B4A03B46056@MWBEXCH.mweb.com> <20080827160819.GA770@teekoo.com> In-Reply-To: <20080827160819.GA770@teekoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/8099/Wed Aug 27 08:14:40 2008 on math.missouri.edu X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: Recommend literature for beginner programer 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, 27 Aug 2008 19:02:02 -0000 Jingshao Chen wrote: > Hi, > > Since you have been unix admin for a few years, I guess you probably have > some experience with C programming. This book is more advanced, but it > is a really good one. > > Advanced Programming in the UNIX Environment: Paperback Edition (2nd Edition) > http://www.amazon.com/Advanced-Programming-UNIX-Environment-Addison-Wesley/dp/0321525949/ref=sr_1_1?ie=UTF8&s=books&qid=1219855535&sr=1-1 > > Thanks, > Jingshao I have read some other books by (the late) Richard Stevens, and he writes really good books. Some of the info is slightly outdated or inapplicable for FreeBSD, but those finer points you can get from the man pages. But for getting a good overview, his writing style is so easy to follow. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 28 11:49:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 180371065690; Thu, 28 Aug 2008 11:49:46 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail16.syd.optusnet.com.au (mail16.syd.optusnet.com.au [211.29.132.197]) by mx1.freebsd.org (Postfix) with ESMTP id 9B4EB8FC20; Thu, 28 Aug 2008 11:49:45 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-215-175.belrs3.nsw.optusnet.com.au [122.106.215.175]) by mail16.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m7SBnhoQ014014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 28 Aug 2008 21:49:43 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.2/8.14.2) with ESMTP id m7SBng4M078768; Thu, 28 Aug 2008 21:49:42 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.2/8.14.2/Submit) id m7SBngdd078767; Thu, 28 Aug 2008 21:49:42 +1000 (EST) (envelope-from peter) Date: Thu, 28 Aug 2008 21:49:42 +1000 From: Peter Jeremy To: Kip Macy Message-ID: <20080828114942.GN33600@server.vk2pj.dyndns.org> References: <136a340a0808220719t3a170786s7fd4bcb662d0b981@mail.gmail.com> <48AED560.8010001@FreeBSD.org> <20080822225510.GI32539@server.vk2pj.dyndns.org> <48B0BEC7.1070806@FreeBSD.org> <7d6fde3d0808232039i78fadb9bu7373e1c36f4f37a1@mail.gmail.com> <20080824034055.GB12515@soaustin.net> <20080824042339.GM32539@server.vk2pj.dyndns.org> <3c1674c90808232139k76f8091bw34aa0f9b71437023@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+1TulI7fc0PCHNy3" Content-Disposition: inline In-Reply-To: <3c1674c90808232139k76f8091bw34aa0f9b71437023@mail.gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org, freebsd-sun4v@freebsd.org Subject: Re: sun4v arch 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, 28 Aug 2008 11:49:46 -0000 --+1TulI7fc0PCHNy3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2008-Aug-23 21:39:34 -0700, Kip Macy wrote: >There really isn't any magic to bringing up a port. You compile it, >install it, and then run it until it breaks. Once it breaks you spend >a lot of time instrumenting the code to track down what went wrong. About what I expected. I've just bumped into your bsdtalk interview: http://cisx1.uma.maine.edu/~wbackman/bsdtalk/bsdtalk086.mp3 This appears to give a useful overview into the sun4v port. One thing you mention is that you'd started work on a virtual network driver. How far did this get and can you point me to the code, It seems that the latest OpenBSD runs on sun4v. I haven't investigated how well supported it is. --=20 Peter Jeremy Please excuse any delays as the result of my ISP's inability to implement an MTA that is either RFC2821-compliant or matches their claimed behaviour. --+1TulI7fc0PCHNy3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAki2kNYACgkQ/opHv/APuIf9DgCfVHEWQhXUcSc8TjlxA/EY5W/i plcAn34QjtjzFVr5g/jDlpx0wmNApoO2 =mLT6 -----END PGP SIGNATURE----- --+1TulI7fc0PCHNy3-- From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 28 12:30:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D20B106564A for ; Thu, 28 Aug 2008 12:30:59 +0000 (UTC) (envelope-from prvs=1126b68502=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 0FE778FC14 for ; Thu, 28 Aug 2008 12:30:58 +0000 (UTC) (envelope-from prvs=1126b68502=killing@multiplay.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=multiplay.co.uk; s=Multiplay; t=1219925645; x=1220530445; q=dns/txt; h=Received: Message-ID:From:To:Subject:Date:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=N+uZ8MjEBkMN7kxGrhtB5/+n1qJMOtVbPj zr8DrqedU=; b=jCvjCj+IvySNHIG21ZPlS3t8qCL+ymIm3iw9Q0e85ZlS29BfeB 938fqpR3hXE93bkwUkA81ySZtuHkZDw6YHlDi3C9ftNNlM3qh7s0KvnH8qFtuaga 5TME0l9NuAGp3QE4Zp3ESB/T+exivPphMioNT3FaqH2wlUJpd4zraaTNs= X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-14.7 required=6.0 tests=BAYES_00, FORGED_MUA_OUTLOOK, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=ham version=3.1.8 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v9.6.6) with ESMTP id md50006097758.msg for ; Thu, 28 Aug 2008 13:14:03 +0100 X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 85.236.106.102 X-Return-Path: prvs=1126b68502=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org Message-ID: From: "Steven Hartland" To: Date: Thu, 28 Aug 2008 13:13:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Spam-Processed: mail1.multiplay.co.uk, Thu, 28 Aug 2008 13:14:04 +0100 X-MDAV-Processed: mail1.multiplay.co.uk, Thu, 28 Aug 2008 13:14:05 +0100 Subject: lighttpd failing to accept new connections ( connection reset ) 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, 28 Aug 2008 12:30:59 -0000 We're using lighttpd here for a new project and we're having issues where by it simply stops processing after a 1-2 days. Having looked at it in some detail this morning it seems that the kernel is resetting the connection without notifying the lighttpd process there is a new connection attempt. I assume that the listen queue is full but why kevent is not notifying lighttpd that there are outstanding events is beyond me. The following is a truss of the process which is currently in this state:- kevent(6,0x0,0,{},11096,{1.000000000}) = 0 (0x0) gettimeofday({1219920575.149428},0x0) = 0 (0x0) kevent(6,0x0,0,{},11096,{1.000000000}) = 0 (0x0) gettimeofday({1219920576.150443},0x0) = 0 (0x0) ktrace of the operation as well:- 28363 lighttpd RET kevent 0 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) 28363 lighttpd RET gettimeofday 0 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) 28363 lighttpd GIO fd 6 wrote 0 bytes "" 28363 lighttpd GIO fd 6 read 0 bytes "" 28363 lighttpd RET kevent 0 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) 28363 lighttpd RET gettimeofday 0 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) 28363 lighttpd GIO fd 6 wrote 0 bytes "" 28363 lighttpd GIO fd 6 read 0 bytes "" 28363 lighttpd RET kevent 0 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) 28363 lighttpd RET gettimeofday 0 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) 28363 lighttpd GIO fd 6 wrote 0 bytes "" 28363 lighttpd GIO fd 6 read 0 bytes "" 28363 lighttpd RET kevent 0 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) 28363 lighttpd RET gettimeofday 0 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) 28363 lighttpd GIO fd 6 wrote 0 bytes "" 28363 lighttpd GIO fd 6 read 0 bytes "" 28363 lighttpd RET kevent 0 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) 28363 lighttpd RET gettimeofday 0 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) 28363 lighttpd GIO fd 6 wrote 0 bytes "" 28363 lighttpd GIO fd 6 read 0 bytes "" 28363 lighttpd RET kevent 0 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) 28363 lighttpd RET gettimeofday 0 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) tcpdump shows:- 12:10:29.475255 IP (tos 0x10, ttl 64, id 9536, offset 0, flags [DF], proto: TCP (6), length: 64) client.61224 > server.80: S, cksum 0x6d22 (incorrect (-> 0xedfa), 291994449:291994449(0) win 65535 12:10:29.481396 IP (tos 0x0, ttl 61, id 25503, offset 0, flags [DF], proto: TCP (6), length: 60) server.80 > client.61224: S, cksum 0xbf22 (correct), 3444532576:3444532576(0) ack 291994450 win 65535 12:10:29.481419 IP (tos 0x10, ttl 64, id 9538, offset 0, flags [DF], proto: TCP (6), length: 52) client.61224 > server.80: ., cksum 0x6d16 (incorrect (-> 0x6bd2), 1:1(0) ack 1 win 33304 12:10:29.487519 IP (tos 0x10, ttl 61, id 25504, offset 0, flags [DF], proto: TCP (6), length: 40) server.80 > client.61224: R, cksum 0x20c7 (correct), 3444532577:3444532577(0) win 0 This may have been raised before back 2003 as bug kern/57380 but it was closed after no response from the reporter. Another possible issues related to this is:- http://trac.lighttpd.net/trac/ticket/1734 I've currently got one of the production machines offline with this error ( hence the important flag ) in the hope that someone can suggest a test which will shed more light on the issue before I restart it. Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 28 13:27:01 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 40D891065682 for ; Thu, 28 Aug 2008 13:27:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA10.emeryville.ca.mail.comcast.net (qmta10.emeryville.ca.mail.comcast.net [76.96.30.17]) by mx1.freebsd.org (Postfix) with ESMTP id 2988D8FC16 for ; Thu, 28 Aug 2008 13:27:01 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by QMTA10.emeryville.ca.mail.comcast.net with comcast id 7p3a1a00G0x6nqcAApB040; Thu, 28 Aug 2008 13:11:00 +0000 Received: from koitsu.dyndns.org ([67.180.253.227]) by OMTA12.emeryville.ca.mail.comcast.net with comcast id 7pAz1a00S4v8bD78YpB03l; Thu, 28 Aug 2008 13:11:00 +0000 X-Authority-Analysis: v=1.0 c=1 a=I1d2fs1MqMYA:10 a=6eUu7kQhCf0A:10 a=QycZ5dHgAAAA:8 a=Y8zkqK7kAAAA:8 a=HaBu6kI-yaig9Upfr6cA:9 a=BqbZ-gWeLJWJF5ETbDMA:7 a=ue09byFU0qaEnzQugg0FZF8A-kIA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 95EA417B81A; Thu, 28 Aug 2008 06:10:59 -0700 (PDT) Date: Thu, 28 Aug 2008 06:10:59 -0700 From: Jeremy Chadwick To: Steven Hartland Message-ID: <20080828131059.GA46853@icarus.home.lan> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: lighttpd failing to accept new connections ( connection reset ) 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, 28 Aug 2008 13:27:01 -0000 On Thu, Aug 28, 2008 at 01:13:57PM +0100, Steven Hartland wrote: > We're using lighttpd here for a new project and we're having issues > where by it simply stops processing after a 1-2 days. > > Having looked at it in some detail this morning it seems that > the kernel is resetting the connection without notifying the > lighttpd process there is a new connection attempt. I assume > that the listen queue is full but why kevent is not notifying > lighttpd that there are outstanding events is beyond me. > > > The following is a truss of the process which is currently in > this state:- > kevent(6,0x0,0,{},11096,{1.000000000}) = 0 (0x0) > gettimeofday({1219920575.149428},0x0) = 0 (0x0) > kevent(6,0x0,0,{},11096,{1.000000000}) = 0 (0x0) > gettimeofday({1219920576.150443},0x0) = 0 (0x0) > > ktrace of the operation as well:- > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > > > tcpdump shows:- > 12:10:29.475255 IP (tos 0x10, ttl 64, id 9536, offset 0, flags [DF], > proto: TCP (6), length: 64) client.61224 > server.80: S, cksum 0x6d22 > (incorrect (-> 0xedfa), 291994449:291994449(0) win 65535 1460,nop,wscale 1,nop,nop,timestamp 3661727139 0,sackOK,eol> > 12:10:29.481396 IP (tos 0x0, ttl 61, id 25503, offset 0, flags [DF], > proto: TCP (6), length: 60) server.80 > client.61224: S, cksum 0xbf22 > (correct), 3444532576:3444532576(0) ack 291994450 win 65535 1460,nop,wscale 9,sackOK,timestamp 3136311843 3661727139> > 12:10:29.481419 IP (tos 0x10, ttl 64, id 9538, offset 0, flags [DF], > proto: TCP (6), length: 52) client.61224 > server.80: ., cksum 0x6d16 > (incorrect (-> 0x6bd2), 1:1(0) ack 1 win 33304 3661727145 3136311843> > 12:10:29.487519 IP (tos 0x10, ttl 61, id 25504, offset 0, flags [DF], > proto: TCP (6), length: 40) server.80 > client.61224: R, cksum 0x20c7 > (correct), 3444532577:3444532577(0) win 0 > > This may have been raised before back 2003 as bug kern/57380 > but it was closed after no response from the reporter. > > Another possible issues related to this is:- > http://trac.lighttpd.net/trac/ticket/1734 > > > I've currently got one of the production machines offline > with this error ( hence the important flag ) in the hope > that someone can suggest a test which will shed more light > on the issue before I restart it. Can you change the polling method in lighttpd to use poll or select instead of kqueue? This would help in determining if the problem is with the daemon itself or the kevent system. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 28 15:36:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FA5B106567E for ; Thu, 28 Aug 2008 15:36:15 +0000 (UTC) (envelope-from prvs=1126b68502=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 69CB78FC1F for ; Thu, 28 Aug 2008 15:36:13 +0000 (UTC) (envelope-from prvs=1126b68502=killing@multiplay.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=multiplay.co.uk; s=Multiplay; t=1219937743; x=1220542543; q=dns/txt; h=Received: Message-ID:From:To:Cc:References:Subject:Date:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=v8bRKuA7Flhssny+0P8LM 0T+LxtfRVwp4A0UjOD/klk=; b=WeJy1J7XUwOXJAK4qdhm7DHAHPF8x9cJeF3fH aujJcVez55EU3tshshRPSaw3G71DeEioGMjnjDQhRMzDVLraf8dGkbOWfaoP0ZMg xFumElc875VDpBlqgsGjPMj6A3x6fIs51PugggcLRShQnK0Wpx1dA5dCooIfZ01q vEYIXg= X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-14.7 required=6.0 tests=BAYES_00, FORGED_MUA_OUTLOOK, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=ham version=3.1.8 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v9.6.6) with ESMTP id md50006098837.msg; Thu, 28 Aug 2008 16:35:41 +0100 X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 85.236.106.102 X-Return-Path: prvs=1126b68502=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <8A808063A5604856845574C05FE96E0C@multiplay.co.uk> From: "Steven Hartland" To: "Jeremy Chadwick" References: <20080828131059.GA46853@icarus.home.lan> Date: Thu, 28 Aug 2008 16:35:35 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Spam-Processed: mail1.multiplay.co.uk, Thu, 28 Aug 2008 16:35:42 +0100 X-MDAV-Processed: mail1.multiplay.co.uk, Thu, 28 Aug 2008 16:35:43 +0100 Cc: freebsd-hackers@freebsd.org Subject: Re: lighttpd failing to accept new connections ( connection reset ) / possible kqueue bug 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, 28 Aug 2008 15:36:15 -0000 ----- Original Message ----- From: "Jeremy Chadwick" > > Can you change the polling method in lighttpd to use poll or select > instead of kqueue? This would help in determining if the problem is > with the daemon itself or the kevent system. Yep already scheduled that change for our London node tomorrow morning. ATM we are seeing this issue every 1 - 2 days so it may take a little while before I can answer that question. I've had a look through the source and I can't see any reason why kevent would suddenly stop notifying the app that new connections are present. Event registration appears to only be done once on app startup and similarly unregisters are only done on shutdown, so my current thinking is there may be an problem with kqueue itself. I don't suppose your aware of any way to query the status of this in the kernel or app given I have a node in this "hung" state? Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Thu Aug 28 22:28:43 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E16261065679 for ; Thu, 28 Aug 2008 22:28:43 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.freebsd.org (Postfix) with ESMTP id EFA258FC1F for ; Thu, 28 Aug 2008 22:28:42 +0000 (UTC) (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 1CA0846C99; Thu, 28 Aug 2008 18:28:42 -0400 (EDT) Date: Thu, 28 Aug 2008 23:28:42 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Steven Hartland In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (BSF 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: lighttpd failing to accept new connections ( connection reset ) 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, 28 Aug 2008 22:28:44 -0000 On Thu, 28 Aug 2008, Steven Hartland wrote: > We're using lighttpd here for a new project and we're having issues where by > it simply stops processing after a 1-2 days. > > Having looked at it in some detail this morning it seems that the kernel is > resetting the connection without notifying the lighttpd process there is a > new connection attempt. I assume that the listen queue is full but why > kevent is not notifying lighttpd that there are outstanding events is beyond > me. The connections getting reset without application notification is a classic symptom of a full listen queue. A couple of questions: (1) What FreeBSD version? (2) Are you using accept filters? (3) If possibly, are you able to instrument lighthttpd so that you can trigger it to query SO_LISTENQLIMIT, SO_LISTENQLEN, and SO_LISTENINCQLEN on the listen socket once things have gone wrong? The respectively (and perhaps obviously) querye the current administrative limit on queue depth, the number queue depth on completed connections, and the current queue depth on incomplete connections. The last of these will only be used with accept filters on recent FreeBSD network stacks (since the syncache was added). Hopefully doing (3) will allow us to try to determine whether it's indeed the case that somehow the listen queue or event handling has gotten "wedged" in some way. In terms of analyzing the state of the machine -- if you have a kernel.debug around and are willing to do a bit of digging, the best thing to do would be to track down the listen socket and directly inspect it using kgdb to dump its field contents. This can be done on a live box by attaching kgdb to kernel memory using /dev/mem as the target device. You can find the kernel memory address of the listen socket by tracking it down in fstat -- a typical entry might look like this: root inetd 1158 9* internet stream tcp c5350000 So you can do a "print *(socket *)0xc5350000" to print out the socket structure once attached to /dev/mem. If you need more pointers on how to do this, send me a private e-mail and I can walk you through it in detail. Robert N M Watson Computer Laboratory University of Cambridge > > > The following is a truss of the process which is currently in > this state:- > kevent(6,0x0,0,{},11096,{1.000000000}) = 0 (0x0) > gettimeofday({1219920575.149428},0x0) = 0 (0x0) > kevent(6,0x0,0,{},11096,{1.000000000}) = 0 (0x0) > gettimeofday({1219920576.150443},0x0) = 0 (0x0) > > ktrace of the operation as well:- > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > 28363 lighttpd GIO fd 6 wrote 0 bytes > "" > 28363 lighttpd GIO fd 6 read 0 bytes > "" > 28363 lighttpd RET kevent 0 > 28363 lighttpd CALL gettimeofday(0x7fffffffeb20,0) > 28363 lighttpd RET gettimeofday 0 > 28363 lighttpd CALL kevent(0x6,0,0,0x800e66000,0x2b58,0x7fffffffeb20) > > > tcpdump shows:- > 12:10:29.475255 IP (tos 0x10, ttl 64, id 9536, offset 0, flags [DF], proto: > TCP (6), length: 64) client.61224 > server.80: S, cksum 0x6d22 (incorrect (-> > 0xedfa), 291994449:291994449(0) win 65535 1,nop,nop,timestamp 3661727139 0,sackOK,eol> > 12:10:29.481396 IP (tos 0x0, ttl 61, id 25503, offset 0, flags [DF], proto: > TCP (6), length: 60) server.80 > client.61224: S, cksum 0xbf22 (correct), > 3444532576:3444532576(0) ack 291994450 win 65535 9,sackOK,timestamp 3136311843 3661727139> > 12:10:29.481419 IP (tos 0x10, ttl 64, id 9538, offset 0, flags [DF], proto: > TCP (6), length: 52) client.61224 > server.80: ., cksum 0x6d16 (incorrect (-> > 0x6bd2), 1:1(0) ack 1 win 33304 > 12:10:29.487519 IP (tos 0x10, ttl 61, id 25504, offset 0, flags [DF], proto: > TCP (6), length: 40) server.80 > client.61224: R, cksum 0x20c7 (correct), > 3444532577:3444532577(0) win 0 > > This may have been raised before back 2003 as bug kern/57380 > but it was closed after no response from the reporter. > > Another possible issues related to this is:- > http://trac.lighttpd.net/trac/ticket/1734 > > > I've currently got one of the production machines offline > with this error ( hence the important flag ) in the hope > that someone can suggest a test which will shed more light > on the issue before I restart it. > > Regards > Steve > > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. and the > person or entity to whom it is addressed. In the event of misdirection, the > recipient is prohibited from using, copying, printing or otherwise > disseminating it or any information contained in it. > In the event of misdirection, illegible or incomplete transmission please > telephone +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 Fri Aug 29 00:36:30 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4A7431065689; Fri, 29 Aug 2008 00:36:30 +0000 (UTC) (envelope-from prvs=112715c899=killing@multiplay.co.uk) Received: from mail1.multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.freebsd.org (Postfix) with ESMTP id 9A0B68FC16; Fri, 29 Aug 2008 00:36:29 +0000 (UTC) (envelope-from prvs=112715c899=killing@multiplay.co.uk) DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=multiplay.co.uk; s=Multiplay; t=1219969137; x=1220573937; q=dns/txt; h=Received: Message-ID:From:To:Cc:References:Subject:Date:MIME-Version: Content-Type:Content-Transfer-Encoding; bh=yV4K05LQS3gJ4NCg8KYat 1ZLjxzCJdBXSJa+Z7xxEAY=; b=oaE45Rs7HDI021r/YWnyDB+omDg6rCgRl3VGl bDtNzSM3W03+YccDCg5UDtBohEYP8ozwiiP1o3Sr5EDE8rYmcfjNd216Qzs7A9UH 2jPUT8aK/IW8NELJrjOwGs4ZUm2nK/e7QMY9J0ds9uWsb0Dn01rlUQaAO1aRW2Wi Z72rYQ= X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on mail1.multiplay.co.uk X-Spam-Level: X-Spam-Status: No, score=-14.7 required=6.0 tests=BAYES_00, FORGED_MUA_OUTLOOK, USER_IN_WHITELIST,USER_IN_WHITELIST_TO autolearn=ham version=3.1.8 Received: from r2d2 by mail1.multiplay.co.uk (MDaemon PRO v9.6.6) with ESMTP id md50006101210.msg; Fri, 29 Aug 2008 01:18:55 +0100 X-Authenticated-Sender: Killing@multiplay.co.uk X-MDRemoteIP: 85.236.106.102 X-Return-Path: prvs=112715c899=killing@multiplay.co.uk X-Envelope-From: killing@multiplay.co.uk Message-ID: <78454DA58F8C48F8A31196BD2E407110@multiplay.co.uk> From: "Steven Hartland" To: "Robert Watson" References: Date: Fri, 29 Aug 2008 01:18:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Spam-Processed: mail1.multiplay.co.uk, Fri, 29 Aug 2008 01:18:56 +0100 X-MDAV-Processed: mail1.multiplay.co.uk, Fri, 29 Aug 2008 01:18:57 +0100 Cc: freebsd-hackers@freebsd.org Subject: Re: lighttpd failing to accept new connections ( connection reset ) 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, 29 Aug 2008 00:36:30 -0000 ----- Original Message ----- From: "Robert Watson" > The connections getting reset without application notification is a classic > symptom of a full listen queue. A couple of questions: Yep thats what I thought. > (1) What FreeBSD version? 7.0-RELEASE-p2 (amd64) > (2) Are you using accept filters? The modules there but not loaded, so no. > (3) If possibly, are you able to instrument lighthttpd so that you can trigger > it to query SO_LISTENQLIMIT, SO_LISTENQLEN, and SO_LISTENINCQLEN on the > listen socket once things have gone wrong? The respectively (and perhaps > obviously) querye the current administrative limit on queue depth, the > number queue depth on completed connections, and the current queue depth > on incomplete connections. The last of these will only be used with > accept filters on recent FreeBSD network stacks (since the syncache was > added). > > Hopefully doing (3) will allow us to try to determine whether it's indeed the > case that somehow the listen queue or event handling has gotten "wedged" in > some way. This should be possible, I'll have a look, assuming the kgdb stuff doesn't turn up the required results. Regards Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 30 17:06:55 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 32FCB106566B for ; Sat, 30 Aug 2008 17:06:55 +0000 (UTC) (envelope-from stef-list@memberwebs.com) Received: from mx.npubs.com (mail.wsfamily.com [209.66.100.224]) by mx1.freebsd.org (Postfix) with ESMTP id 1E3258FC1D for ; Sat, 30 Aug 2008 17:06:54 +0000 (UTC) (envelope-from stef-list@memberwebs.com) Received: from mx.npubs.com (avhost [209.66.100.194]) by mx.npubs.com (Postfix) with ESMTP id 7F56929C1BB8; Sat, 30 Aug 2008 16:43:05 +0000 (UTC) Received: from northstar-srv2 (unknown [172.27.2.11]) by mx.npubs.com (Postfix) with ESMTP id 0658229C1BBA; Sat, 30 Aug 2008 16:43:04 +0000 (UTC) From: Stef User-Agent: Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: Barry Boes References: <18612.51201.285688.628405@gargle.gargle.HOWL> <48B52AEE.9080205@FreeBSD.org> <18613.21419.16360.120533@gargle.gargle.HOWL> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20080830164305.0658229C1BBA@mx.npubs.com> X-Virus-Scanned: ClamAV using ClamSMTP Date: Sat, 30 Aug 2008 16:43:05 +0000 (UTC) Cc: freebsd-hackers@freebsd.org Subject: Re: kvm on amd64 - >6G? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: stef@memberwebs.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Aug 2008 17:06:55 -0000 Barry Boes wrote: > I could apply such a patch to my servers, but there are two disadvantages : > o who wants to apply kernel patches to mission critical servers? Isn't > that a linux thing (joke!) Unfortunately it's not. There's a whole raft of patches (with PR's filed) that are required when you're using certain configurations of FreeBSD. In particular my 6.3 production servers require: * A bunch of patches to ataraid to prevent panics, make the raid work during failures etc... Many can be found here: http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting * Patch to the 4BSD scheduler to prevent regular deadlocks on all quad core systems I have access to: http://www.mail-archive.com/freebsd-hackers@freebsd.org/msg64390.html * Patch for fixing devfs to have proper behavior with symlinks in jails: http://www.freebsd.org/cgi/query-pr.cgi?pr=114057 And there are one or two other patches on some deployed systems (eg: 'multi ip jail patches'). I used to be in the no-patches-on-my-production-servers camp, but I've found that it was unrealistic and resulted in less stable systems. Cheers, Stef Walter