From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 08:46:32 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEA6216A41C for ; Sun, 29 May 2005 08:46:32 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 011A343D1F for ; Sun, 29 May 2005 08:46:31 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.13.3/8.12.10) with ESMTP id j4T8kTFT027292 for ; Sun, 29 May 2005 10:46:29 +0200 (CEST) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.13.3/8.12.10/Submit) id j4T8kSU3027198 for hackers@freebsd.org; Sun, 29 May 2005 10:46:28 +0200 (CEST) (envelope-from kuku) Date: Sun, 29 May 2005 10:46:28 +0200 From: "Christoph P. Kukulies" To: hackers@freebsd.org Message-ID: <20050529084628.GA3276@kukulies.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Cc: Subject: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 08:46:32 -0000 I have a disk dump of a failed drive from some time ago which I want to recover. It is a complete dump with partitions and filesystems and I'm in seek again for a tool to allow me to recover the information from that disk. I was hoping to get a working ffsrecov now under -current but probably that wouldn't have helped me either. ffsrecov under -current ist still marked broken. I have a ffsrecov binary but that one requires libc.so.4. I noteced that the gpart port (/usr/ports/sysutils/gpart) was requiring ffsrecov when I built that. Can I trick ffsrecov and links something else to libc.so.4? Anyone knowing of a way to approach this problem? I can create a vnode (mdconfig) of that disk but trying to fsck on it fails for obvious reasons, since I had to access the slices and not the whole disk dump. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 09:16:26 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 241EF16A41C; Sun, 29 May 2005 09:16:26 +0000 (GMT) (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 6280043D1D; Sun, 29 May 2005 09:16:24 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j4T9GJsY099330; Sun, 29 May 2005 18:46:20 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sun, 29 May 2005 18:46:17 +0930 User-Agent: KMail/1.8 References: <20050529084628.GA3276@kukulies.org> In-Reply-To: <20050529084628.GA3276@kukulies.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5056939.3DEmk92CSm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505291846.18075.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO, PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT, REFERENCES, SPAM_PHRASE_00_01, USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Cc: hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 09:16:26 -0000 --nextPart5056939.3DEmk92CSm Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 29 May 2005 18:16, Christoph P. Kukulies wrote: > I can create a vnode (mdconfig) of that disk but trying to fsck on it > fails for obvious reasons, since I had to access the slices and not the > whole disk dump. What "obvious" reasons? Why fsck it at all? I would just mount it read only and then copy the=20 essential data off it.. How badly damaged is it? =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 --nextPart5056939.3DEmk92CSm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCmYhi5ZPcIHs/zowRAqlqAJ42ucqQyqPHZAZtaCeKGNKfLmgpjwCffEPt gYsuyuyhZm3lentdLwrcCUE= =9pfK -----END PGP SIGNATURE----- --nextPart5056939.3DEmk92CSm-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 09:16:26 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 241EF16A41C; Sun, 29 May 2005 09:16:26 +0000 (GMT) (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 6280043D1D; Sun, 29 May 2005 09:16:24 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j4T9GJsY099330; Sun, 29 May 2005 18:46:20 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Sun, 29 May 2005 18:46:17 +0930 User-Agent: KMail/1.8 References: <20050529084628.GA3276@kukulies.org> In-Reply-To: <20050529084628.GA3276@kukulies.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart5056939.3DEmk92CSm"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505291846.18075.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO, PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT, REFERENCES, SPAM_PHRASE_00_01, USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Cc: hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 09:16:26 -0000 --nextPart5056939.3DEmk92CSm Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 29 May 2005 18:16, Christoph P. Kukulies wrote: > I can create a vnode (mdconfig) of that disk but trying to fsck on it > fails for obvious reasons, since I had to access the slices and not the > whole disk dump. What "obvious" reasons? Why fsck it at all? I would just mount it read only and then copy the=20 essential data off it.. How badly damaged is it? =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 --nextPart5056939.3DEmk92CSm Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCmYhi5ZPcIHs/zowRAqlqAJ42ucqQyqPHZAZtaCeKGNKfLmgpjwCffEPt gYsuyuyhZm3lentdLwrcCUE= =9pfK -----END PGP SIGNATURE----- --nextPart5056939.3DEmk92CSm-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 09:37:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70AF416A41C; Sun, 29 May 2005 09:37:48 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id B878443D48; Sun, 29 May 2005 09:37:47 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.13.3/8.12.10) with ESMTP id j4T9biV9054864; Sun, 29 May 2005 11:37:44 +0200 (CEST) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.13.3/8.12.10/Submit) id j4T9bhLb054840; Sun, 29 May 2005 11:37:43 +0200 (CEST) (envelope-from kuku) Date: Sun, 29 May 2005 11:37:43 +0200 From: "Christoph P. Kukulies" To: "Daniel O'Connor" Message-ID: <20050529093743.GA52031@kukulies.org> References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505291846.18075.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.1i Cc: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 09:37:48 -0000 On Sun, May 29, 2005 at 06:46:17PM +0930, Daniel O'Connor wrote: > On Sun, 29 May 2005 18:16, Christoph P. Kukulies wrote: > > I can create a vnode (mdconfig) of that disk but trying to fsck on it > > fails for obvious reasons, since I had to access the slices and not the > > whole disk dump. > > What "obvious" reasons? I meant, when I have a dump image of the entire disk I cannot run fsck on the entire dump. I had to know about the partitions and the slices and extract these from the disk dump. > Why fsck it at all? I would just mount it read only and then copy the > essential data off it.. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 09:37:48 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 70AF416A41C; Sun, 29 May 2005 09:37:48 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id B878443D48; Sun, 29 May 2005 09:37:47 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.13.3/8.12.10) with ESMTP id j4T9biV9054864; Sun, 29 May 2005 11:37:44 +0200 (CEST) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.13.3/8.12.10/Submit) id j4T9bhLb054840; Sun, 29 May 2005 11:37:43 +0200 (CEST) (envelope-from kuku) Date: Sun, 29 May 2005 11:37:43 +0200 From: "Christoph P. Kukulies" To: "Daniel O'Connor" Message-ID: <20050529093743.GA52031@kukulies.org> References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505291846.18075.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.1i Cc: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 09:37:48 -0000 On Sun, May 29, 2005 at 06:46:17PM +0930, Daniel O'Connor wrote: > On Sun, 29 May 2005 18:16, Christoph P. Kukulies wrote: > > I can create a vnode (mdconfig) of that disk but trying to fsck on it > > fails for obvious reasons, since I had to access the slices and not the > > whole disk dump. > > What "obvious" reasons? I meant, when I have a dump image of the entire disk I cannot run fsck on the entire dump. I had to know about the partitions and the slices and extract these from the disk dump. > Why fsck it at all? I would just mount it read only and then copy the > essential data off it.. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 10:54:11 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 515F816A41C; Sun, 29 May 2005 10:54:11 +0000 (GMT) (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 8B58C43D1D; Sun, 29 May 2005 10:54:08 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j4TAs3Hl000131; Sun, 29 May 2005 20:24:04 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Christoph P. Kukulies" Date: Sun, 29 May 2005 20:23:51 +0930 User-Agent: KMail/1.8 References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> <20050529093743.GA52031@kukulies.org> In-Reply-To: <20050529093743.GA52031@kukulies.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart23774722.ydEYON2dcN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505292023.58180.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO, PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT, REFERENCES, SPAM_PHRASE_00_01, USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Cc: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 10:54:11 -0000 --nextPart23774722.ydEYON2dcN Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 29 May 2005 19:07, Christoph P. Kukulies wrote: > > What "obvious" reasons? > > I meant, when I have a dump image of the entire disk I cannot > run fsck on the entire dump. I had to know about the partitions > and the slices and extract these from the disk dump. You can't specify /dev/md0s2a or whatever to fsck/mount? =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 --nextPart23774722.ydEYON2dcN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCmZ9G5ZPcIHs/zowRAugXAJwLp56ypcmX2kwA0huynYM0wYkn2ACgkfs8 CzzKVgeZWHgNaAxRQNjCG/I= =yiTm -----END PGP SIGNATURE----- --nextPart23774722.ydEYON2dcN-- From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 10:54:11 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 515F816A41C; Sun, 29 May 2005 10:54:11 +0000 (GMT) (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 8B58C43D1D; Sun, 29 May 2005 10:54:08 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j4TAs3Hl000131; Sun, 29 May 2005 20:24:04 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: "Christoph P. Kukulies" Date: Sun, 29 May 2005 20:23:51 +0930 User-Agent: KMail/1.8 References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> <20050529093743.GA52031@kukulies.org> In-Reply-To: <20050529093743.GA52031@kukulies.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart23774722.ydEYON2dcN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505292023.58180.doconnor@gsoft.com.au> X-Spam-Score: -2.5 () IN_REP_TO, PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT, REFERENCES, SPAM_PHRASE_00_01, USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Cc: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 10:54:11 -0000 --nextPart23774722.ydEYON2dcN Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Sun, 29 May 2005 19:07, Christoph P. Kukulies wrote: > > What "obvious" reasons? > > I meant, when I have a dump image of the entire disk I cannot > run fsck on the entire dump. I had to know about the partitions > and the slices and extract these from the disk dump. You can't specify /dev/md0s2a or whatever to fsck/mount? =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 --nextPart23774722.ydEYON2dcN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCmZ9G5ZPcIHs/zowRAugXAJwLp56ypcmX2kwA0huynYM0wYkn2ACgkfs8 CzzKVgeZWHgNaAxRQNjCG/I= =yiTm -----END PGP SIGNATURE----- --nextPart23774722.ydEYON2dcN-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 27 23:43:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4628316A41C; Fri, 27 May 2005 23:43:28 +0000 (GMT) (envelope-from pheerboth@apple.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06BF943D48; Fri, 27 May 2005 23:43:27 +0000 (GMT) (envelope-from pheerboth@apple.com) Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id j4RNhR8S011191; Fri, 27 May 2005 16:43:27 -0700 (PDT) Received: from relay1.apple.com (relay1.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.17) with ESMTP id ; Fri, 27 May 2005 16:43:27 -0700 Received: from [17.206.48.62] (heerboth2.apple.com [17.206.48.62]) by relay1.apple.com (8.12.11/8.12.11) with ESMTP id j4RNhOvW014479 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Fri, 27 May 2005 16:43:25 -0700 (PDT) In-Reply-To: <37273927050526180026d23c7d@mail.gmail.com> References: <3727392705052613381067f2a2@mail.gmail.com> <4296410C.1020108@chiaro.com> <3727392705052617366706577c@mail.gmail.com> <37273927050526180026d23c7d@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Pete Heerboth Date: Fri, 27 May 2005 16:43:23 -0700 To: Aziz Kezzou X-Mailer: Apple Mail (2.730) X-Mailman-Approved-At: Sun, 29 May 2005 12:02:27 +0000 Cc: dave baukus , freebsd-hackers , freebsd-net Subject: Re: Pseudo-device driver & select ?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 27 May 2005 23:43:28 -0000 You might want to take a look at the bpf pseudo device and how it handles polls int bpf.c. You need to use the selrecord() and selwakeup() functions. Check out: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/net/ On May 26, 2005, at 6:00 PM, Aziz Kezzou wrote: >>> >>> Aziz Kezzou wrote: >>> >>>> Hi all, >>>> I am trying to implement a small kld pseudo-device driver on >>>> FreeBSD 5.3 that >>>> behaves just like a socket with regards to the select system call. >>>> >>>> Currently, I am using the sample echo pseudo-device driver from >>>> http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/ >>>> driverbasics-char.html >>>> as an example. However, whenever I call select on the file >>>> descriptor of "/dev/echo" it always returns even when there is >>>> no data >>>> to be read. >>>> >>>> I looked at the socket code and it looks like I need to provide >>>> my own >>>> "fo_select" function in the fileops data structure. Am i right ? >>>> How >>>> do I do that ? The sample echo pseudo-device driver above uses >>>> "struct cdevsw" instead... >>>> >>>> Thanks >>>> -aziz >>>> _______________________________________________ >>>> freebsd-net@freebsd.org mailing list >>>> http://lists.freebsd.org/mailman/listinfo/freebsd-net >>>> To unsubscribe, send any mail to "freebsd-net- >>>> unsubscribe@freebsd.org" >>>> >>>> >>>> >>> look at spec_poll() >>> I beleive that when your device is opened the fileops{} will >>> point to the spec ops and you're code will be entered via >>> spec_poll() - now you just need to implement the poll/select notion >>> for your device. >>> >>> >> >> Thanks, >> Actually, il turned out to be very simple. >> I needed only to provide a "d_poll" function as part of the structure >> cdevsw, as follows : >> >> /* Character device entry points */ >> static struct cdevsw echo_cdevsw = { >> .d_version = D_VERSION, >> .d_open = echo_open, >> .d_close = echo_close, >> .d_read = echo_read, >> .d_write = echo_write, >> .d_poll = echo_poll, >> .d_name = "echo", >> }; >> >> with echo_poll : >> static int >> echo_poll(struct cdev *dev, int events, struct thread *td) >> { >> >> uprintf( "echo_poll called : data_available = %d!\n", >> data_available ); >> if(data_available == 0) >> return 0; >> data_available = 0; >> return 1; >> } >> >> > > Now the question is, if I don't have any data available when select > (i.e d_poll ) is called, how do I notify select when data arrives ? > looks like "d_poll" is called only once (the name is a bit misleading > here ;-) , isn't it ? > > Any hints ? > Thanks. > -aziz > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 10:10:33 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 490BE16A41C for ; Sun, 29 May 2005 10:10:33 +0000 (GMT) (envelope-from mrcpu@mathisen.org) Received: from mathisen.org (main.mathisen.org [70.58.179.172]) by mx1.FreeBSD.org (Postfix) with SMTP id E150243D1D for ; Sun, 29 May 2005 10:10:32 +0000 (GMT) (envelope-from mrcpu@mathisen.org) Received: (qmail 79475 invoked by uid 29999); 29 May 2005 09:45:16 -0000 Date: Sun, 29 May 2005 02:45:16 -0700 From: Jaye Mathisen To: hackers@freebsd.org Message-ID: <20050529094516.GT57649@main.mathisen.org> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Sun, 29 May 2005 12:02:27 +0000 Cc: Subject: Panic with 5.4 -- kgdb output included X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 10:10:33 -0000 5.4-STABLE from 5/27, repeated panics. Finally got a crashdump, fired up kgdb and: (is there any advantage to booting the kernel.debug instead of the regular kernel? Can't think of one, but possibley...). The box does run several jails. It has been crashing regularly under both 5.3-RELEASE and now 5.4-STABLE. Apps are all mysql/apache/mail apps, nothing fancy. Disk controller is an adaptec using the asr0 driver, and it is a dual Xeon compiled with SMP suppo0rt. s1# kgdb kernel.debug /home/crash/vmcore.0 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". #0 doadump () at pcpu.h:160 160 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) where #0 doadump () at pcpu.h:160 #1 0xc051dfdb in boot (howto=260) at ../../../kern/kern_shutdown.c:410 #2 0xc051e301 in panic (fmt=0xc06b997e "%s") at ../../../kern/kern_shutdown.c:566 #3 0xc06937f0 in trap_fatal (frame=0xe9194968, eva=1109191441) at ../../../i386/i386/trap.c:817 #4 0xc0693533 in trap_pfault (frame=0xe9194968, usermode=0, eva=1109191441) at ../../../i386/i386/trap.c:735 #5 0xc069316d in trap (frame= {tf_fs = -1068433384, tf_es = -384237552, tf_ds = 16777232, tf_edi = -1002848656, tf_esi = 1109191437, tf_ebp = -384218704, tf_isp = -384218732, tf_ebx = -1023663500, tf_edx = 1109191437, tf_ecx = -1066185404, tf_eax = 0, tf_trapno = 12, tf_err = 2, tf_eip = -1068237450, tf_cs = 8, tf_eflags = 66050, tf_esp = -1023663616, tf_ss = -1026971648}) at ../../../i386/i386/trap.c:425 #6 0xc0680c7a in calltrap () at ../../../i386/i386/exception.s:140 #7 0xc0510018 in linker_find_file_by_name (filename=0xc439be70 "|¸pÀ\223\023mÀ\223\023mÀ") at ../../../kern/kern_linker.c:419 #8 0xc053fcca in selwakeuppri (sip=0xc2fc2274, pri=89) at ../../../kern/sys_generic.c:1081 #9 0xc054cb31 in ttwakeup (tp=0x10202) at ../../../kern/tty.c:2370 #10 0xc054b7d8 in ttymodem (tp=0xc2fc2200, flag=0) at ../../../kern/tty.c:1629 #11 0xc054f4c3 in ptcopen (dev=0xc2c9a800, flag=3, devtype=8192, td=0x0) at linedisc.h:136 #12 0xc04e220e in spec_open (ap=0xe9194a70) at ../../../fs/specfs/spec_vnops.c:207 #13 0xc04e1f53 in spec_vnoperate (ap=0x0) at ../../../fs/specfs/spec_vnops.c:118 #14 0xc057d361 in vn_open_cred (ndp=0xe9194bd4, flagp=0xe9194cd4, cmode=0, cred=0xc67ed300, fdidx=0) at vnode_if.h:228 #15 0xc057cf46 in vn_open (ndp=0x0, flagp=0xe9194cd4, cmode=0, fdidx=6) at ../../../kern/vfs_vnops.c:91 #16 0xc0576ec3 in kern_open (td=0xc22adc00, path=0x0, pathseg=UIO_USERSPACE, flags=3, mode=0) at ../../../kern/vfs_syscalls.c:937 #17 0xc0576dd4 in open (td=0xc22adc00, uap=0x0) at ../../../kern/vfs_syscalls.c:906 #18 0xc0693b2b in syscall (frame= {tf_fs = 47, tf_es = 134676527, tf_ds = -1078001617, tf_edi = -1, tf_esi = 671951917, tf_ebp = -1077943224, tf_isp = -384217756, tf_ebx = 671959136, tf_edx = 671951934, tf_ecx = 674500524, tf_eax = 5, tf_trapno = 12, tf_err = 2, tf_eip = 674003695, tf_cs = 31, tf_eflags = 662, tf_esp = -1077943316, tf_ss = 47}) at ../../../i386/i386/trap.c:1009 #19 0xc0680ccf in Xint0x80_syscall () at ../../../i386/i386/exception.s:201 #20 0x0000002f in ?? () #21 0x0807002f in ?? () #22 0xbfbf002f in ?? () #23 0xffffffff in ?? () #24 0x280d2c2d in ?? () #25 0xbfbfe448 in ?? () #26 0xe9194d64 in ?? () #27 0x280d4860 in ?? () #28 0x280d2c3e in ?? () #29 0x28340fac in ?? () #30 0x00000005 in ?? () #31 0x0000000c in ?? () #32 0x00000002 in ?? () #33 0x282c7aef in ?? () #34 0x0000001f in ?? () #35 0x00000296 in ?? () #36 0xbfbfe3ec in ?? () #37 0x0000002f in ?? () #38 0x00000000 in ?? () #39 0x00000000 in ?? () #40 0x00000000 in ?? () #41 0x00000000 in ?? () #42 0x2afb4000 in ?? () #43 0xc22aca98 in ?? () #44 0xc22adc00 in ?? () #45 0xe9194828 in ?? () #46 0xe9194810 in ?? () ---Type to continue, or q to quit--- #47 0xc1e9a480 in ?? () #48 0xc052e657 in sched_switch (td=0x280d2c2d, newtd=0x280d4860, flags=Cannot access memory at address 0xbfbfe458 ) at ../../../kern/sched_4bsd.c:881 Previous frame inner to this frame (corrupt stack?) From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 13:39:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 242FE16A41C; Sun, 29 May 2005 13:39:43 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 781F343D1D; Sun, 29 May 2005 13:39:41 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.13.3/8.12.10) with ESMTP id j4TDdbKq059807; Sun, 29 May 2005 15:39:38 +0200 (CEST) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.13.3/8.12.10/Submit) id j4TDdafT059806; Sun, 29 May 2005 15:39:36 +0200 (CEST) (envelope-from kuku) Date: Sun, 29 May 2005 15:39:36 +0200 From: "Christoph P. Kukulies" To: "Daniel O'Connor" Message-ID: <20050529133936.GA59774@kukulies.org> References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> <20050529093743.GA52031@kukulies.org> <200505292023.58180.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505292023.58180.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.1i Cc: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 13:39:43 -0000 On Sun, May 29, 2005 at 08:23:51PM +0930, Daniel O'Connor wrote: > On Sun, 29 May 2005 19:07, Christoph P. Kukulies wrote: > > > What "obvious" reasons? > > > > I meant, when I have a dump image of the entire disk I cannot > > run fsck on the entire dump. I had to know about the partitions > > and the slices and extract these from the disk dump. > > You can't specify /dev/md0s2a or whatever to fsck/mount? That works? OK, that would be fine. Will try that. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 13:39:43 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 242FE16A41C; Sun, 29 May 2005 13:39:43 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (www.kukulies.org [213.146.112.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id 781F343D1D; Sun, 29 May 2005 13:39:41 +0000 (GMT) (envelope-from kuku@www.kukulies.org) Received: from www.kukulies.org (localhost [127.0.0.1]) by www.kukulies.org (8.13.3/8.12.10) with ESMTP id j4TDdbKq059807; Sun, 29 May 2005 15:39:38 +0200 (CEST) (envelope-from kuku@www.kukulies.org) Received: (from kuku@localhost) by www.kukulies.org (8.13.3/8.12.10/Submit) id j4TDdafT059806; Sun, 29 May 2005 15:39:36 +0200 (CEST) (envelope-from kuku) Date: Sun, 29 May 2005 15:39:36 +0200 From: "Christoph P. Kukulies" To: "Daniel O'Connor" Message-ID: <20050529133936.GA59774@kukulies.org> References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> <20050529093743.GA52031@kukulies.org> <200505292023.58180.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505292023.58180.doconnor@gsoft.com.au> User-Agent: Mutt/1.4.1i Cc: freebsd-hackers@freebsd.org, hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 13:39:43 -0000 On Sun, May 29, 2005 at 08:23:51PM +0930, Daniel O'Connor wrote: > On Sun, 29 May 2005 19:07, Christoph P. Kukulies wrote: > > > What "obvious" reasons? > > > > I meant, when I have a dump image of the entire disk I cannot > > run fsck on the entire dump. I had to know about the partitions > > and the slices and extract these from the disk dump. > > You can't specify /dev/md0s2a or whatever to fsck/mount? That works? OK, that would be fine. Will try that. -- Chris Christoph P. U. Kukulies kuku_at_kukulies.org From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 13:52:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C9FB16A41C; Sun, 29 May 2005 13:52:49 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5443B43D1D; Sun, 29 May 2005 13:52:48 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j4TDqieB002402; Sun, 29 May 2005 16:52:44 +0300 Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j4TDogRX000767; Sun, 29 May 2005 16:50:42 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) by orion.daedalusnetworks.priv (8.13.3/8.13.3) with ESMTP id j4TDqgd7098975; Sun, 29 May 2005 16:52:42 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by orion.daedalusnetworks.priv (8.13.3/8.13.3/Submit) id j4TDqg7N098974; Sun, 29 May 2005 16:52:42 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Sun, 29 May 2005 16:52:42 +0300 From: Giorgos Keramidas To: "Christoph P. Kukulies" Message-ID: <20050529135242.GA98922@orion.daedalusnetworks.priv> References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> <20050529093743.GA52031@kukulies.org> <200505292023.58180.doconnor@gsoft.com.au> <20050529133936.GA59774@kukulies.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050529133936.GA59774@kukulies.org> Cc: hackers@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 13:52:49 -0000 On 2005-05-29 15:39, "Christoph P. Kukulies" wrote: >On Sun, May 29, 2005 at 08:23:51PM +0930, Daniel O'Connor wrote: >>On Sun, 29 May 2005 19:07, Christoph P. Kukulies wrote: >>> > What "obvious" reasons? >>> >>> I meant, when I have a dump image of the entire disk I cannot >>> run fsck on the entire dump. I had to know about the partitions >>> and the slices and extract these from the disk dump. >> >> You can't specify /dev/md0s2a or whatever to fsck/mount? > > That works? OK, that would be fine. Will try that. Sure. If you attach with mdconfig an image that contains partitions and/or labels, the respective /dev entries will appear automatically. PS: Guys, please *DON'T* post to hackers@ and freebsd-hackers@ at the same time. This ends up being delivered twice to the same list. From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 13:52:49 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C9FB16A41C; Sun, 29 May 2005 13:52:49 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5443B43D1D; Sun, 29 May 2005 13:52:48 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j4TDqieB002402; Sun, 29 May 2005 16:52:44 +0300 Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j4TDogRX000767; Sun, 29 May 2005 16:50:42 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) by orion.daedalusnetworks.priv (8.13.3/8.13.3) with ESMTP id j4TDqgd7098975; Sun, 29 May 2005 16:52:42 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by orion.daedalusnetworks.priv (8.13.3/8.13.3/Submit) id j4TDqg7N098974; Sun, 29 May 2005 16:52:42 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Sun, 29 May 2005 16:52:42 +0300 From: Giorgos Keramidas To: "Christoph P. Kukulies" Message-ID: <20050529135242.GA98922@orion.daedalusnetworks.priv> References: <20050529084628.GA3276@kukulies.org> <200505291846.18075.doconnor@gsoft.com.au> <20050529093743.GA52031@kukulies.org> <200505292023.58180.doconnor@gsoft.com.au> <20050529133936.GA59774@kukulies.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050529133936.GA59774@kukulies.org> Cc: hackers@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: ffsrecov still broken port? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 13:52:49 -0000 On 2005-05-29 15:39, "Christoph P. Kukulies" wrote: >On Sun, May 29, 2005 at 08:23:51PM +0930, Daniel O'Connor wrote: >>On Sun, 29 May 2005 19:07, Christoph P. Kukulies wrote: >>> > What "obvious" reasons? >>> >>> I meant, when I have a dump image of the entire disk I cannot >>> run fsck on the entire dump. I had to know about the partitions >>> and the slices and extract these from the disk dump. >> >> You can't specify /dev/md0s2a or whatever to fsck/mount? > > That works? OK, that would be fine. Will try that. Sure. If you attach with mdconfig an image that contains partitions and/or labels, the respective /dev entries will appear automatically. PS: Guys, please *DON'T* post to hackers@ and freebsd-hackers@ at the same time. This ends up being delivered twice to the same list. From owner-freebsd-hackers@FreeBSD.ORG Sun May 29 18:44:16 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13C0A16A41C; Sun, 29 May 2005 18:44:16 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5945543D49; Sun, 29 May 2005 18:44:15 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 81E8352620; Sun, 29 May 2005 11:44:14 -0700 (PDT) Date: Sun, 29 May 2005 11:44:14 -0700 From: Kris Kennaway To: Jaye Mathisen Message-ID: <20050529184414.GA16024@xor.obsecurity.org> References: <20050529094516.GT57649@main.mathisen.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gKMricLos+KVdGMg" Content-Disposition: inline In-Reply-To: <20050529094516.GT57649@main.mathisen.org> User-Agent: Mutt/1.4.2.1i Cc: dwhite@FreeBSD.org, hackers@freebsd.org Subject: Re: Panic with 5.4 -- kgdb output included X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 29 May 2005 18:44:16 -0000 --gKMricLos+KVdGMg Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, May 29, 2005 at 02:45:16AM -0700, Jaye Mathisen wrote: >=20 >=20 > 5.4-STABLE from 5/27, repeated panics. Finally got a crashdump, fired up= kgdb and: > (is there any advantage to booting the kernel.debug instead of the regula= r kernel? Can't think > of one, but possibley...). Unfortunately this is a known bug. Doug White was looking at it, so you should talk to him to see if you can provide anything further that he needs. Kris =20 > The box does run several jails. It has been crashing regularly under bot= h 5.3-RELEASE and now 5.4-STABLE. >=20 > Apps are all mysql/apache/mail apps, nothing fancy. >=20 > Disk controller is an adaptec using the asr0 driver, and it is a dual Xeo= n compiled with SMP suppo0rt. >=20 >=20 > s1# kgdb kernel.debug /home/crash/vmcore.0=20 > [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.s= o: Undefined symbol "ps_pglobal_lookup"] > GNU gdb 6.1.1 [FreeBSD] > Copyright 2004 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you = are > welcome to change it and/or distribute copies of it under certain conditi= ons. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for detail= s. > This GDB was configured as "i386-marcel-freebsd". > #0 doadump () at pcpu.h:160 > 160 __asm __volatile("movl %%fs:0,%0" : "=3Dr" (td)); > (kgdb) where > #0 doadump () at pcpu.h:160 > #1 0xc051dfdb in boot (howto=3D260) at ../../../kern/kern_shutdown.c:410 > #2 0xc051e301 in panic (fmt=3D0xc06b997e "%s") at ../../../kern/kern_shu= tdown.c:566 > #3 0xc06937f0 in trap_fatal (frame=3D0xe9194968, eva=3D1109191441) at ..= /../../i386/i386/trap.c:817 > #4 0xc0693533 in trap_pfault (frame=3D0xe9194968, usermode=3D0, eva=3D11= 09191441) > at ../../../i386/i386/trap.c:735 > #5 0xc069316d in trap (frame=3D > {tf_fs =3D -1068433384, tf_es =3D -384237552, tf_ds =3D 16777232, t= f_edi =3D -1002848656, tf_esi =3D 1109191437, tf_ebp =3D -384218704, tf_isp= =3D -384218732, tf_ebx =3D -1023663500, tf_edx =3D 1109191437, tf_ecx =3D = -1066185404, tf_eax =3D 0, tf_trapno =3D 12, tf_err =3D 2, tf_eip =3D -1068= 237450, tf_cs =3D 8, tf_eflags =3D 66050, tf_esp =3D -1023663616, tf_ss =3D= -1026971648}) at ../../../i386/i386/trap.c:425 > #6 0xc0680c7a in calltrap () at ../../../i386/i386/exception.s:140 > #7 0xc0510018 in linker_find_file_by_name (filename=3D0xc439be70 "|=B8p= =C0\223\023m=C0\223\023m=C0") > at ../../../kern/kern_linker.c:419 > #8 0xc053fcca in selwakeuppri (sip=3D0xc2fc2274, pri=3D89) at ../../../k= ern/sys_generic.c:1081 > #9 0xc054cb31 in ttwakeup (tp=3D0x10202) at ../../../kern/tty.c:2370 > #10 0xc054b7d8 in ttymodem (tp=3D0xc2fc2200, flag=3D0) at ../../../kern/t= ty.c:1629 > #11 0xc054f4c3 in ptcopen (dev=3D0xc2c9a800, flag=3D3, devtype=3D8192, td= =3D0x0) at linedisc.h:136 > #12 0xc04e220e in spec_open (ap=3D0xe9194a70) at ../../../fs/specfs/spec_= vnops.c:207 > #13 0xc04e1f53 in spec_vnoperate (ap=3D0x0) at ../../../fs/specfs/spec_vn= ops.c:118 > #14 0xc057d361 in vn_open_cred (ndp=3D0xe9194bd4, flagp=3D0xe9194cd4, cmo= de=3D0, cred=3D0xc67ed300, fdidx=3D0) > at vnode_if.h:228 > #15 0xc057cf46 in vn_open (ndp=3D0x0, flagp=3D0xe9194cd4, cmode=3D0, fdid= x=3D6) at ../../../kern/vfs_vnops.c:91 > #16 0xc0576ec3 in kern_open (td=3D0xc22adc00, path=3D0x0, pathseg=3DUIO_U= SERSPACE, flags=3D3, mode=3D0) > at ../../../kern/vfs_syscalls.c:937 > #17 0xc0576dd4 in open (td=3D0xc22adc00, uap=3D0x0) at ../../../kern/vfs_= syscalls.c:906 > #18 0xc0693b2b in syscall (frame=3D > {tf_fs =3D 47, tf_es =3D 134676527, tf_ds =3D -1078001617, tf_edi = =3D -1, tf_esi =3D 671951917, tf_ebp =3D -1077943224, tf_isp =3D -384217756= , tf_ebx =3D 671959136, tf_edx =3D 671951934, tf_ecx =3D 674500524, tf_eax = =3D 5, tf_trapno =3D 12, tf_err =3D 2, tf_eip =3D 674003695, tf_cs =3D 31, = tf_eflags =3D 662, tf_esp =3D -1077943316, tf_ss =3D 47}) at ../../../i386/= i386/trap.c:1009 > #19 0xc0680ccf in Xint0x80_syscall () at ../../../i386/i386/exception.s:2= 01 > #20 0x0000002f in ?? () > #21 0x0807002f in ?? () > #22 0xbfbf002f in ?? () > #23 0xffffffff in ?? () > #24 0x280d2c2d in ?? () > #25 0xbfbfe448 in ?? () > #26 0xe9194d64 in ?? () > #27 0x280d4860 in ?? () > #28 0x280d2c3e in ?? () > #29 0x28340fac in ?? () > #30 0x00000005 in ?? () > #31 0x0000000c in ?? () > #32 0x00000002 in ?? () > #33 0x282c7aef in ?? () > #34 0x0000001f in ?? () > #35 0x00000296 in ?? () > #36 0xbfbfe3ec in ?? () > #37 0x0000002f in ?? () > #38 0x00000000 in ?? () > #39 0x00000000 in ?? () > #40 0x00000000 in ?? () > #41 0x00000000 in ?? () > #42 0x2afb4000 in ?? () > #43 0xc22aca98 in ?? () > #44 0xc22adc00 in ?? () > #45 0xe9194828 in ?? () > #46 0xe9194810 in ?? () > ---Type to continue, or q to quit--- > #47 0xc1e9a480 in ?? () > #48 0xc052e657 in sched_switch (td=3D0x280d2c2d, newtd=3D0x280d4860, flag= s=3DCannot access memory at address 0xbfbfe458 > ) > at ../../../kern/sched_4bsd.c:881 > Previous frame inner to this frame (corrupt stack?) >=20 > _______________________________________________ > 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" >=20 --gKMricLos+KVdGMg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCmg1+Wry0BWjoQKURAuTqAJ9MpjlutL5RbDOMoA32lnyKOMdL0wCgkF6G W0AWHEsiV4yogvE+glKUczI= =cJz9 -----END PGP SIGNATURE----- --gKMricLos+KVdGMg-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 01:47:25 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 467BB16A41C; Mon, 30 May 2005 01:47:25 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 22B0043D1D; Mon, 30 May 2005 01:47:21 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.43 (FreeBSD)) id 1DcZbz-000Dsn-Ho; Mon, 30 May 2005 11:02:39 +0900 Message-Id: <6.2.1.2.2.20050530103618.03216770@202.179.0.80> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Mon, 30 May 2005 10:46:53 +0900 To: freebsd-stable@FreeBSD.org From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: freebsd-isp@freebsd.org, freebsd-hackers@freebsd.org, rwatson@freebsd.org, freebsd-questions@freebsd.org, freebsd-users@freebsd.org Subject: TFTP server problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 01:47:25 -0000 Hi Robert and all, I'm really sorry for my cross posting, I posted my problem a year ago and I'm still having trouble with tftp server. I switched to Windows tftp server like 3Com 3C daemon for a while and now I want to use tftp server on FreeBSD. I'm using FreeBSD 5.4-STABLE and I tested default tftp server in inetd.conf with options -s and -l. tftp dgram udp wait root /usr/libexec/tftpd tftpd -s /tftpboot -l Tftp server hangs after some time (6-7 hours or less) and it seems like entire tftp server stops responding because audio files stopped playing. I would like to use tftp server for IVR with Cisco. I didn't try to use second client while it was not responding. What flags do you recommend in inetd.conf? How to debug tftpd? Is there any other tftp server which is good for IVR? tia, Ganbold From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 02:01:04 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 251C316A41C; Mon, 30 May 2005 02:01:04 +0000 (GMT) (envelope-from owner-freebsd-questions@freebsd.org) Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7678843D1F; Mon, 30 May 2005 02:01:03 +0000 (GMT) (envelope-from owner-freebsd-questions@freebsd.org) Received: from [82.69.255.50] (helo=rtxnetworks.co.uk) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1DcZaQ-0006xK-OK; Mon, 30 May 2005 02:01:02 +0000 Received: from mail pickup service by rtxnetworks.co.uk with Microsoft SMTPSVC; Mon, 30 May 2005 03:00:43 +0100 thread-index: AcVku2MBaqSq6J/oTgyEsDLH5nHyjw== X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Mon, 30 May 2005 03:00:43 +0100 To: From: "Ganbold" Message-ID: <000101c564bb$6301c710$144da8c0@rtxnetworks.local> MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; format=flowed; charset="us-ascii" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: Errors-To: owner-freebsd-questions@freebsd.org X-Zen-Test-Spam-Score: 15 X-Zen-Test-Spam-Bar: (+) X-Originating-Schroedinger-IP: [216.136.204.119] X-Envelope-From: owner-freebsd-questions@freebsd.org X-Envelope-To: james@rtxnetworks.co.uk X-Apparently-To: james@rtxnetworks.co.uk X-Zen-Loop: 4e5e9d7b303bfa0036200918db506edf X-Zen-Stored: hausdorff.zen.co.uk/1DcZSJ-0001Hd-TI/2005-05-30 01:52:39 Content-Class: urn:content-classes:message Importance: normal X-Antivirus: AVG for E-mail 7.0.322 [267.2.0] Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 X-OriginalArrivalTime: 30 May 2005 02:00:43.0484 (UTC) FILETIME=[632331C0:01C564BB] X-Originating-Rutherford-IP: [82.69.255.50] Cc: freebsd-isp@freebsd.org, freebsd-hackers@freebsd.org, rwatson@freebsd.org, freebsd-questions@freebsd.org, freebsd-users@freebsd.org Subject: TFTP server problem X-BeenThere: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 02:01:04 -0000 Hi Robert and all, I'm really sorry for my cross posting, I posted my problem a year ago and I'm still having trouble with tftp server. I switched to Windows tftp server like 3Com 3C daemon for a while and now I want to use tftp server on FreeBSD. I'm using FreeBSD 5.4-STABLE and I tested default tftp server in inetd.conf with options -s and -l. tftp dgram udp wait root /usr/libexec/tftpd tftpd -s /tftpboot -l Tftp server hangs after some time (6-7 hours or less) and it seems like entire tftp server stops responding because audio files stopped playing. I would like to use tftp server for IVR with Cisco. I didn't try to use second client while it was not responding. What flags do you recommend in inetd.conf? How to debug tftpd? Is there any other tftp server which is good for IVR? tia, Ganbold _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 06:30:51 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0B2CB16A41C for ; Mon, 30 May 2005 06:30:51 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60E6D43D1D for ; Mon, 30 May 2005 06:30:49 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id DC5B02FD0C; Mon, 30 May 2005 08:30:47 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id C89722FD0B; Mon, 30 May 2005 08:30:47 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id 0204C1E3211; Mon, 30 May 2005 08:30:44 +0200 (CEST) Message-ID: <429AB314.6030908@atempo.com> Date: Mon, 30 May 2005 08:30:44 +0200 From: =?UTF-8?B?SGVydsOpIEtlcmdvdXJsYXk=?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: "Que, Wei-Feng" References: <42A44827271EB64C83E2B38A6E75787C03DCA3B4@exhkmb04.apac.nsroot.n et> In-Reply-To: <42A44827271EB64C83E2B38A6E75787C03DCA3B4@exhkmb04.apac.nsroot. net> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------020204060402000506040802 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Maslan , freebsd-hackers@freebsd.org, Max Laier Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 06:30:51 -0000 This is a multi-part message in MIME format. --------------020204060402000506040802 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit xorgconfig I launch this tools but I 'm not sure of the screen resolution details, vertical refresh rate, horizontal sync rate, ... I fill the answers with standard values but at the end, no xorg.conf file is written on the disk in /etc/X11 ? hervé Que, Wei-Feng a écrit : >Why not use "xorgconfig" (if you installed xorg) or > "XF86Config (if you installed XFree86) >to configure the screen resolution > >It can be set in the section: > > 400 Section "Screen" > 401 Identifier "Screen 1" > 402 Device "NVIDIA GeForce" > 403 Monitor "My Monitor" > 404 DefaultDepth 24 > 405 > 406 Subsection "Display" > 407 Depth 8 > 408 Modes "1280x1024" "1024x768" "800x600" "640x480" > 409 ViewPort 0 0 > 410 EndSubsection > 411 Subsection "Display" > 412 Depth 16 > 413 Modes "1280x1024" "1024x768" "800x600" "640x480" > 414 ViewPort 0 0 > 415 EndSubsection > 416 Subsection "Display" > 417 Depth 24 > 418 Modes "1024x768" "800x600" "640x480" > 419 ViewPort 0 0 > 420 EndSubsection > 421 EndSection > >Just remind the line 418.. >Modes the first value :"1024x768" will set the screen resolution >and you can press the Ctrl + Alt + "+" and Ctrl + Alt + "-" to switch the screen resolution >between this three value 1024x768/800x600/640x480. > >Best Regards >--Weifeng Que >RC + >Tel : 0086-21-38954626 ext 3725 >Mail: weifeng dot que at citigroup dot com > > > > >>-----Original Message----- >>From: owner-freebsd-hackers@freebsd.org >>[mailto:owner-freebsd-hackers@freebsd.org]On Behalf Of Maslan >>Sent: 2005å¹´5月25æ—¥ 12:31 >>To: Max Laier >>Cc: freebsd-hackers@freebsd.org; Herv¨¦ Kergourlay >>Subject: Re: Screen Resolution >> >> >>i think freebsd 5.3 is using Xfree86 not Xorg >>while 5.4 uses XOrg, but i cann't remember >> >> >>On 5/24/05, Max Laier wrote: >> >> >>>On Tuesday 24 May 2005 15:16, Hervé Kergourlay wrote: >>> >>> >>>>Just one simple question on the screen resolution on FreeBSD 5.3 >>>> >>>>I change the xinitrc to launch gnome-wm and gnome-panel >>>> >>>>but I can't change the resolution in the Desktop >>>> >>>> >>Preferences / Screen >> >> >>>>Resolution tool >>>>only 640*480 is listed which is very small >>>> >>>>I can't change to 800*600 ? >>>> >>>>any idea ? >>>> >>>>hervé >>>> >>>> >>>freebsd-hackers@ is not the right place for this kind of >>> >>> >>question, please take >> >> >>>it to freebsd-questions@ or maybe freebsd-x11@ >>> >>>-- >>>/"\ Best regards, | mlaier@freebsd.org >>>\ / Max Laier | ICQ #67774661 >>> X http://pf4freebsd.love2party.net/ | mlaier@EFnet >>>/ \ ASCII Ribbon Campaign | Against HTML Mail and News >>> >>> >>> >>> >>> >>-- >>I'm Searching For Perfection, >>So Even If U Need Portability U've To Use Assembly ;-) >>http://www.maslanlab.org >>_______________________________________________ >>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" >> >> >> > > > > --------------020204060402000506040802-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 06:42:32 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21F4516A41C for ; Mon, 30 May 2005 06:42:32 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: from sarajevo.pacific.net.sg (sarajevo.pacific.net.sg [203.120.90.134]) by mx1.FreeBSD.org (Postfix) with SMTP id 4B32443D1D for ; Mon, 30 May 2005 06:42:30 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 24653 invoked from network); 30 May 2005 06:42:29 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by sarajevo with SMTP; 30 May 2005 06:42:29 -0000 Received: from [192.168.0.107] ([210.24.246.101]) by maxwell6.pacific.net.sg with ESMTP id <20050530064228.OANA1233.maxwell6.pacific.net.sg@[192.168.0.107]>; Mon, 30 May 2005 14:42:28 +0800 Message-ID: <429AB5D2.7090102@pacific.net.sg> Date: Mon, 30 May 2005 14:42:26 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050514) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?UTF-8?B?SGVydsOpIEtlcmdvdXJsYXk=?= References: <42A44827271EB64C83E2B38A6E75787C03DCA3B4@exhkmb04.apac.nsroot.n et> <429AB314.6030908@atempo.com> In-Reply-To: <429AB314.6030908@atempo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Maslan , "Que, Wei-Feng" , Max Laier , freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 06:42:32 -0000 Hi, Hervé Kergourlay wrote: > xorgconfig > > I launch this tools but I 'm not sure of the screen resolution details, > vertical refresh rate, horizontal sync rate, ... > I fill the answers with standard values > Do not do this. You must have the details for you monitor. Especially if it is a CRT, it could even kill it if the details are wrong. > but at the end, no xorg.conf file is written on the disk in /etc/X11 ? > It has to be there. Erich From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 07:10:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF6B116A41C for ; Mon, 30 May 2005 07:10:59 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A76F43D1D for ; Mon, 30 May 2005 07:10:58 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 1EC212FD0E; Mon, 30 May 2005 09:10:57 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id EAE352FD0C; Mon, 30 May 2005 09:10:56 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id BD7101E3214; Mon, 30 May 2005 09:10:55 +0200 (CEST) Message-ID: <429ABC7F.7080602@atempo.com> Date: Mon, 30 May 2005 09:10:55 +0200 From: =?UTF-8?B?SGVydsOpIEtlcmdvdXJsYXk=?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Erich Dollansky References: <42A44827271EB64C83E2B38A6E75787C03DCA3B4@exhkmb04.apac.nsroot.n et> <429AB314.6030908@atempo.com> <429AB5D2.7090102@pacific.net.sg> In-Reply-To: <429AB5D2.7090102@pacific.net.sg> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------000305080906080502000505 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Maslan , "Que, Wei-Feng" , Max Laier , freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 07:11:00 -0000 This is a multi-part message in MIME format. --------------000305080906080502000505 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Erich Dollansky a écrit : > Hi, > > Hervé Kergourlay wrote: > >> xorgconfig >> >> I launch this tools but I 'm not sure of the screen resolution >> details, vertical refresh rate, horizontal sync rate, ... >> I fill the answers with standard values >> > Do not do this. You must have the details for you monitor. Especially > if it is a CRT, it could even kill it if the details are wrong. > for sure, I just wanted to make a test to see that xorg.conf >> but at the end, no xorg.conf file is written on the disk in /etc/X11 ? >> > It has to be there. bad luck for me I don't know if it's important but I'm in a vmware configuration for FreeBSD, vmware supply a tools kit but the tools is not available specifically for FreeBSD 5.3 or 5.4, and links for old FreeBSD version are broken > > Erich > > --------------000305080906080502000505-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 07:17:37 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2EFC16A421 for ; Mon, 30 May 2005 07:17:37 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: from salvador.pacific.net.sg (salvador.pacific.net.sg [203.120.90.219]) by mx1.FreeBSD.org (Postfix) with SMTP id BEB9243D1D for ; Mon, 30 May 2005 07:17:36 +0000 (GMT) (envelope-from oceanare@pacific.net.sg) Received: (qmail 32051 invoked from network); 30 May 2005 07:17:34 -0000 Received: from unknown (HELO maxwell6.pacific.net.sg) (203.120.90.212) by salvador with SMTP; 30 May 2005 07:17:34 -0000 Received: from [192.168.0.107] ([210.24.246.101]) by maxwell6.pacific.net.sg with ESMTP id <20050530071734.OGUE1233.maxwell6.pacific.net.sg@[192.168.0.107]>; Mon, 30 May 2005 15:17:34 +0800 Message-ID: <429ABE0B.3080200@pacific.net.sg> Date: Mon, 30 May 2005 15:17:31 +0800 From: Erich Dollansky Organization: oceanare pte ltd User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050514) X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?UTF-8?B?SGVydsOpIEtlcmdvdXJsYXk=?= References: <42A44827271EB64C83E2B38A6E75787C03DCA3B4@exhkmb04.apac.nsroot.n et> <429AB314.6030908@atempo.com> <429AB5D2.7090102@pacific.net.sg> <429ABC7F.7080602@atempo.com> In-Reply-To: <429ABC7F.7080602@atempo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Cc: Maslan , "Que, Wei-Feng" , Max Laier , freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 07:17:37 -0000 Hi, Hervé Kergourlay wrote: > Erich Dollansky a écrit : > >> Hervé Kergourlay wrote: >> >> It has to be there. > > > bad luck for me > I don't know if it's important but I'm in a vmware configuration > for FreeBSD, vmware supply a tools kit but the tools is not available > specifically for FreeBSD 5.3 or 5.4, and links for old FreeBSD version > are broken > This I do not know. You can create your own file with any text editor. Someone at the list might even have the right one to start with for you if you tell us the graphic card and the monitor you are using. You would have then a starting point. Erich From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 09:30:36 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8018C16A41F for ; Mon, 30 May 2005 09:30:36 +0000 (GMT) (envelope-from freebsd.macgregor@blueyonder.co.uk) Received: from the-macgregors.org (82-46-96-19.cable.ubr06.stav.blueyonder.co.uk [82.46.96.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id C768D43D48 for ; Mon, 30 May 2005 09:30:33 +0000 (GMT) (envelope-from freebsd.macgregor@blueyonder.co.uk) X-Urban-Legend: Mail headers contain urban legends Received: from fire (rob@fire.macgregor [192.168.32.100]) (user=freebsd mech=LOGIN bits=0) by the-macgregors.org (8.13.4/8.13.4) with ESMTP id j4U9UUve024225 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Mon, 30 May 2005 09:30:31 GMT Message-Id: <200505300930.j4U9UUve024225@the-macgregors.org> From: "Rob MacGregor" To: Date: Mon, 30 May 2005 10:30:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <429ABE0B.3080200@pacific.net.sg> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 thread-index: AcVk6GWejRP2w/PHRbCeoFZnrGhcqwAEMKqQ X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) Subject: RE: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 09:30:36 -0000 On Monday, May 30, 2005 8:18 AM, Erich Dollansky <> unleashed the infinite monkeys and produced: > Someone at the list might even have the right one to start with for you > if you tell us the graphic card and the monitor you are using. If it's inside VMWare then the "graphics card" is the VMWare one (non-standard), though AFAIK VESA should work. For the "monitor" then any LCD setting should do. Certainly that's how I've run Solaris x86 inside VMWare 4, and it's worked. Looking at VMWare's list of supported client OSs, FreeBSD 5 is only supported in the recently released VMWare 5. -- Rob | Oh my God! They killed init! You bastards! From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 10:13:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B436616A41C for ; Mon, 30 May 2005 10:13:58 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49A4943D4C for ; Mon, 30 May 2005 10:13:56 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id B3CA52FD17; Mon, 30 May 2005 12:13:55 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id A8C852FD15; Mon, 30 May 2005 12:13:55 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id 0FFC11E3178; Mon, 30 May 2005 12:13:52 +0200 (CEST) Message-ID: <429AE75F.20903@atempo.com> Date: Mon, 30 May 2005 12:13:51 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Rob MacGregor References: <200505300930.j4U9UUve024225@the-macgregors.org> In-Reply-To: <200505300930.j4U9UUve024225@the-macgregors.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------030209070707010101060109 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 10:13:58 -0000 This is a multi-part message in MIME format. --------------030209070707010101060109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Rob MacGregor a écrit : >On Monday, May 30, 2005 8:18 AM, Erich Dollansky <> unleashed the infinite >monkeys and produced: > > > >>Someone at the list might even have the right one to start with for you >>if you tell us the graphic card and the monitor you are using. >> >> > >If it's inside VMWare then the "graphics card" is the VMWare one (non-standard), >though AFAIK VESA should work. For the "monitor" then any LCD setting should >do. Certainly that's how I've run Solaris x86 inside VMWare 4, and it's worked. > >Looking at VMWare's list of supported client OSs, FreeBSD 5 is only supported in >the recently released VMWare 5. > > > I'm in vmware 4.5.2 I will try to upgrade in 5, if my licence support it :-) --------------030209070707010101060109-- From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 03:26:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D454816A41C for ; Mon, 30 May 2005 03:26:50 +0000 (GMT) (envelope-from littlegege@263.net) Received: from smtp.263.net (mx04.x263.net [211.150.96.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9014043D1D for ; Mon, 30 May 2005 03:26:50 +0000 (GMT) (envelope-from littlegege@263.net) Received: by smtp.263.net (Postfix, from userid 500) id CE08F4359F; Mon, 30 May 2005 11:26:47 +0800 (CST) From: littlegege@263.net To: freebsd-hackers@freebsd.org Date: Mon, 30 May 2005 11:26:52 +0800 X-Priority: 3 X-MSMail-Priority: Normal MIME-Version: 1.0 X-Mailer: XMail-3.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 Message-Id: <20050530032647.CE08F4359F@smtp.263.net> X-Mailman-Approved-At: Mon, 30 May 2005 11:47:09 +0000 Subject: how can I get the meminfo of each kernel process? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 03:26:50 -0000 SGkhDQpJIHdhbnQgdG8gZ2V0IHRoZSBtZW1pbmZvIG9mIGVhY2gga2VybmVsIHByb2Nlc3Ms c3VjaCBhcyBob3cgbXVjaCBtZW1vcnkgc2l6ZSBpcyBhbGxvY2F0ZWQgdG8gYSBwcm9jZXNz Lkhvdw0KY2FuIGkgZG8/IEkgd2lsbCBkbyB0aGlzIGluIGtlcm5lbCBzcGFjZSxzbyB3aGlj aCBkYXRhIHN0cnVjdHVyZSBjYW4gaSB1c2VkIHRvIGFjaGlldmUgdGhpcy4NCg0KDQoNCg0K DQo9PT09PT09PT09PT09PT09PT09PT09PT09PQ0KMjYztefX09PKvP6jrdDFwLXTytfU16jS tQ== From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 12:01:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 564B016A41C for ; Mon, 30 May 2005 12:01:16 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1700243D53 for ; Mon, 30 May 2005 12:01:13 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 459F346B2A; Mon, 30 May 2005 08:01:13 -0400 (EDT) Date: Mon, 30 May 2005 13:01:39 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: littlegege@263.net In-Reply-To: <20050530032647.CE08F4359F@smtp.263.net> Message-ID: <20050530125857.G52379@fledge.watson.org> References: <20050530032647.CE08F4359F@smtp.263.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: how can I get the meminfo of each kernel process? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 12:01:16 -0000 On Mon, 30 May 2005 littlegege@263.net wrote: > I want to get the meminfo of each kernel process,such as how much memory > size is allocated to a process.How can i do? I will do this in kernel > space,so which data structure can i used to achieve this. Kernel processes are a bit of a misnomer -- in general, they actually represent individual threads running in a single kernel address space. As such, memory is typically not owned by the kernel process, it's owned by the kernel as a whole. Normally, the approach taken is to track memory owned by individual kernel subsystems, which can (in most cases) be done using a combination of "vmstat -m" and "vmstat -z". Since individual threads may enter many different subsystems, and the largest volumes of memory are actually typically handed off between several threads (i.e., network packet buffers), this can provide better insight into memory use in the kernel. There are plans, in the future, to start using pure threads without associated kernel processes in the kernel, which will reduce overhead as well as make it more clear that kernel threads generally operate within a single process (task) address space. If you're interested in tracking memory allocation and use for specific kernel threads, you might want to look at ktr(4), which is a general kernel tracing primitive, and has hooks into the various kernel memory allocators to track memory allocation and free events. Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 12:11:00 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0EEE16A41C for ; Mon, 30 May 2005 12:11:00 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from aiolos.otenet.gr (aiolos.otenet.gr [195.170.0.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDD9943D4C for ; Mon, 30 May 2005 12:10:59 +0000 (GMT) (envelope-from keramida@freebsd.org) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by aiolos.otenet.gr (8.13.4/8.13.4/Debian-1) with ESMTP id j4UCApVd019752; Mon, 30 May 2005 15:10:51 +0300 Received: from orion.daedalusnetworks.priv (aris.bedc.ondsl.gr [62.103.39.226]) by kane.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j4UC8lWn023221; Mon, 30 May 2005 15:08:48 +0300 Received: from orion.daedalusnetworks.priv (orion [127.0.0.1]) by orion.daedalusnetworks.priv (8.13.3/8.13.3) with ESMTP id j4UCAoMJ036691; Mon, 30 May 2005 15:10:50 +0300 (EEST) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by orion.daedalusnetworks.priv (8.13.3/8.13.3/Submit) id j4UCAlYg036661; Mon, 30 May 2005 15:10:47 +0300 (EEST) (envelope-from keramida@freebsd.org) Date: Mon, 30 May 2005 15:10:47 +0300 From: Giorgos Keramidas To: littlegege@263.net Message-ID: <20050530121047.GA29209@orion.daedalusnetworks.priv> References: <20050530032647.CE08F4359F@smtp.263.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050530032647.CE08F4359F@smtp.263.net> Cc: freebsd-hackers@freebsd.org Subject: Re: how can I get the meminfo of each kernel process? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 12:11:00 -0000 On 2005-05-30 11:26, littlegege@263.net wrote: > I want to get the meminfo of each kernel process,such as how much > memory size is allocated to a process.How can i do? I will do this > in kernel space,so which data structure can i used to achieve this. AFAIK, the kernel threads run in the same address space as the kernel. It doesn't make sense to ask for their "resident size", because they share the same address space that all the other kernel threads use. From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 18:00:22 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1764F16A41C; Mon, 30 May 2005 18:00:22 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from manak.chamkila.org (c-24-4-168-13.hsd1.ca.comcast.net [24.4.168.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1791A43D1F; Mon, 30 May 2005 18:00:18 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from [192.168.96.202] ([69.36.228.194]) by manak.chamkila.org (8.12.10/8.12.10) with ESMTP id j4UHsJXH011585; Mon, 30 May 2005 10:54:23 -0700 Message-ID: <429B53F9.2020108@chamkila.org> Date: Mon, 30 May 2005 10:57:13 -0700 From: Amandeep User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <42923329.7040407@chamkila.org> <429254EB.6020604@chamkila.org> <000101c55fe6$fcc73e40$144da8c0@rtxnetworks.local> In-Reply-To: <000101c55fe6$fcc73e40$144da8c0@rtxnetworks.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, postmaster@freebsd.org Subject: Re: Error installing FreeBSd 5.3 AMD 64 bit-Highpoint 1820A X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 18:00:22 -0000 Steven Hartland wrote: > Sounds like u have followed the install guide with the drivers. > I couldn't get that to work ( without ACPI ) I had to install with > ACPI but this was 5.4-RELEASE but using the 5.3 driver from > highpoints site as there wasn't a 5.4 driver available. > 1. Boot from cd > 2. got to boot prompt, load the driver from floppy > 3. unplug the floppy ( must to this as floppy under amd64 is > broken ) > 4. boot the kernel and install. > > Notes: > 1. I was using a RAID 5 array 5 disks * 400Gb. > 2. Create the array using 16 k stripe or the performance will be > poor. > > ----- Original Message ----- From: "Amandeep" > >>> I am instalaling FreeBSD 5.3 AMD 64 bit with 6- 200GB drives. Using >>> Higpoint 1820A controller and doing RAID 10. I am using drivers for >>> the card from Highpoint Web. >>> >>> The problem is when I make the partitions and the machine tries to >>> format the partitions it says: >>> >>> unable to find device node for /dev/da0s1b under /dev! >>> >>> and then it comes out. >>> >>> Any ideas what is going on. Also tried making two slices no luck. >> > > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. > and the person or entity to whom it is addressed. In the event of > misdirection, the recipient is prohibited from using, copying, > printing or otherwise disseminating it or any information contained in > it. > In the event of misdirection, illegible or incomplete transmission > please telephone (023) 8024 3137 > or return the E.mail to postmaster@multiplay.co.uk. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > 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" > Hi all, Ok, The 3ware and Highpoint works fine with 4GB of RAM. But I can hook another 4GB wiht 3ware and it works fine wiht 8GB but thats not the case for Highpoint. Highpoint dont work with installation of 4GB and then inserting 4GB. And it works fine wiht ACPi disables and floppy is present. Aman From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 18:15:47 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 826F216A41C; Mon, 30 May 2005 18:15:47 +0000 (GMT) (envelope-from owner-freebsd-questions@freebsd.org) Received: from rutherford.zen.co.uk (rutherford.zen.co.uk [212.23.3.142]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCF8843D1D; Mon, 30 May 2005 18:15:46 +0000 (GMT) (envelope-from owner-freebsd-questions@freebsd.org) Received: from [82.69.255.50] (helo=rtxnetworks.co.uk) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1Dconi-0007s5-1N; Mon, 30 May 2005 18:15:46 +0000 Received: from mail pickup service by rtxnetworks.co.uk with Microsoft SMTPSVC; Mon, 30 May 2005 19:15:27 +0100 thread-index: AcVlQ45DEzEBZvduRTGwXVCSNFs8dA== X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Date: Mon, 30 May 2005 19:15:27 +0100 From: "Amandeep" User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Message-ID: <000101c56543$8e430be0$144da8c0@rtxnetworks.local> References: <42923329.7040407@chamkila.org> <429254EB.6020604@chamkila.org><000101c55fe6$fcc73e40$144da8c0@rtxnetworks.local> In-Reply-To: <000101c55fe6$fcc73e40$144da8c0@rtxnetworks.local> Content-Type: text/plain; format=flowed; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailer: Microsoft CDO for Exchange 2000 X-Mailman-Version: 2.1.5 Precedence: list Sender: Errors-To: owner-freebsd-questions@freebsd.org X-Zen-Test-Spam-Score: 1 X-Zen-Test-Spam-Bar: (/) X-Originating-Schroedinger-IP: [216.136.204.119] X-Envelope-From: owner-freebsd-questions@freebsd.org X-Envelope-To: james@rtxnetworks.co.uk Content-Class: urn:content-classes:message X-Apparently-To: james@rtxnetworks.co.uk Importance: normal X-Zen-Loop: 4e5e9d7b303bfa0036200918db506edf Priority: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181 X-Zen-Stored: hausdorff.zen.co.uk/1DcoaM-00082Y-CO/2005-05-30 18:01:58 X-Antivirus: AVG for E-mail 7.0.322 [267.2.0] X-OriginalArrivalTime: 30 May 2005 18:15:27.0609 (UTC) FILETIME=[8E647690:01C56543] X-Originating-Rutherford-IP: [82.69.255.50] Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org, postmaster@freebsd.org Subject: Re: Error installing FreeBSd 5.3 AMD 64 bit-Highpoint 1820A X-BeenThere: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2005 18:15:47 -0000 Steven Hartland wrote: > Sounds like u have followed the install guide with the drivers. > I couldn't get that to work ( without ACPI ) I had to install with > ACPI but this was 5.4-RELEASE but using the 5.3 driver from > highpoints site as there wasn't a 5.4 driver available. > 1. Boot from cd > 2. got to boot prompt, load the driver from floppy > 3. unplug the floppy ( must to this as floppy under amd64 is > broken ) > 4. boot the kernel and install. > > Notes: > 1. I was using a RAID 5 array 5 disks * 400Gb. > 2. Create the array using 16 k stripe or the performance will be > poor. > > ----- Original Message ----- From: "Amandeep" > >>> I am instalaling FreeBSD 5.3 AMD 64 bit with 6- 200GB drives. Using >>> Higpoint 1820A controller and doing RAID 10. I am using drivers for >>> the card from Highpoint Web. >>> >>> The problem is when I make the partitions and the machine tries to >>> format the partitions it says: >>> >>> unable to find device node for /dev/da0s1b under /dev! >>> >>> and then it comes out. >>> >>> Any ideas what is going on. Also tried making two slices no luck. >> > > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. > and the person or entity to whom it is addressed. In the event of > misdirection, the recipient is prohibited from using, copying, > printing or otherwise disseminating it or any information contained in > it. > In the event of misdirection, illegible or incomplete transmission > please telephone (023) 8024 3137 > or return the E.mail to postmaster@multiplay.co.uk. > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > > > _______________________________________________ > 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" > Hi all, Ok, The 3ware and Highpoint works fine with 4GB of RAM. But I can hook another 4GB wiht 3ware and it works fine wiht 8GB but thats not the case for Highpoint. Highpoint dont work with installation of 4GB and then inserting 4GB. And it works fine wiht ACPi disables and floppy is present. Aman _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 18:57:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B27F816A41C for ; Mon, 30 May 2005 18:57:50 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1878743D1D for ; Mon, 30 May 2005 18:57:49 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c211-30-75-229.belrs2.nsw.optusnet.com.au [211.30.75.229]) by mail07.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id j4UIvkwR017731 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 31 May 2005 04:57:46 +1000 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id j4UIvjRx026892; Tue, 31 May 2005 04:57:45 +1000 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id j4UIvjme026891; Tue, 31 May 2005 04:57:45 +1000 (EST) (envelope-from pjeremy) Date: Tue, 31 May 2005 04:57:45 +1000 From: Peter Jeremy To: Rob MacGregor Message-ID: <20050530185745.GC22660@cirb503493.alcatel.com.au> References: <429ABE0B.3080200@pacific.net.sg> <200505300930.j4U9UUve024225@the-macgregors.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505300930.j4U9UUve024225@the-macgregors.org> User-Agent: Mutt/1.4.2i Cc: freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 18:57:50 -0000 On Mon, 2005-May-30 10:30:30 +0100, Rob MacGregor wrote: >Looking at VMWare's list of supported client OSs, FreeBSD 5 is only > supported in the recently released VMWare 5. I've run FreeBSD 4.x, 5.x and 6.x as VMware 4.5.2 clients without problems. -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Mon May 30 23:25:55 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 861A016A41C; Mon, 30 May 2005 23:25:55 +0000 (GMT) (envelope-from thompsa@fud.org.nz) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2781043D1D; Mon, 30 May 2005 23:25:55 +0000 (GMT) (envelope-from thompsa@fud.org.nz) Received: from thompsa by heff.fud.org.nz with local (Exim 4.50 (FreeBSD)) id 1Dctdq-0002GV-4T; Tue, 31 May 2005 11:25:54 +1200 Date: Tue, 31 May 2005 11:25:54 +1200 From: Andrew Thompson To: net@freebsd.org Message-ID: <20050530232554.GA8674@heff.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Sender: Andrew Thompson Cc: pf@freebsd.org, hackers@freebsd.org Subject: RFC: if_bridge X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 30 May 2005 23:25:55 -0000 Hi, I am looking for testers and code review for if_bridge, the bridge implementation from NetBSD (and OpenBSD). The patch and instructions can be found at: http://people.freebsd.org/~thompsa/ Highlights include: - 802.1d spanning tree support - management of the bridge MAC table - view bridged packets with bpf(4) - good firewall support I am especially interested in people who can test !i386, and users with existing STP networks. I am looking forward to getting your feedback! Andrew From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 06:01:02 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0ECE016A41C for ; Tue, 31 May 2005 06:01:02 +0000 (GMT) (envelope-from freebsd.macgregor@blueyonder.co.uk) Received: from the-macgregors.org (82-46-96-19.cable.ubr06.stav.blueyonder.co.uk [82.46.96.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 824A843D1D for ; Tue, 31 May 2005 06:01:00 +0000 (GMT) (envelope-from freebsd.macgregor@blueyonder.co.uk) X-Urban-Legend: Mail headers contain urban legends Received: from fire (rob@fire.macgregor [192.168.32.100]) (user=freebsd mech=LOGIN bits=0) by the-macgregors.org (8.13.4/8.13.4) with ESMTP id j4V60wAb012413 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 31 May 2005 06:00:58 GMT Message-Id: <200505310600.j4V60wAb012413@the-macgregors.org> From: "Rob MacGregor" To: "'Peter Jeremy'" Date: Tue, 31 May 2005 07:00:58 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 In-Reply-To: <20050530185745.GC22660@cirb503493.alcatel.com.au> Thread-Index: AcVlSZldoNFiiHGDTx+A9YwXA+MnxwAXB5NA X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) Cc: freebsd-hackers@freebsd.org Subject: RE: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 06:01:02 -0000 On Monday, May 30, 2005 7:58 PM, Peter Jeremy unleashed the infinite monkeys and produced: > On Mon, 2005-May-30 10:30:30 +0100, Rob MacGregor wrote: >> Looking at VMWare's list of supported client OSs, FreeBSD 5 is only >> supported in the recently released VMWare 5. > > I've run FreeBSD 4.x, 5.x and 6.x as VMware 4.5.2 clients without problems. So have I (in fact that's how I started using FreeBSD 5.0). However the drivers required for their emulated graphics card are only supplied for FreeBSD 4.x with VMWare 4.5. It's the same situation as with Solaris x86 - it'll run under VMWare 4.5, but you're stuck with VESA graphics (though Sun did start including the appropriate driver with the betas of 10 last year). -- Rob | Oh my God! They killed init! You bastards! From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 06:47:45 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECD1716A41C for ; Tue, 31 May 2005 06:47:45 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59C5843D1F for ; Tue, 31 May 2005 06:47:44 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id A4D242FD5E; Tue, 31 May 2005 08:47:42 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 9A82D2FD0A; Tue, 31 May 2005 08:47:42 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id 25D6D1E3241; Tue, 31 May 2005 08:47:42 +0200 (CEST) Message-ID: <429C088D.2010809@atempo.com> Date: Tue, 31 May 2005 08:47:41 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Rob MacGregor References: <200505310600.j4V60wAb012413@the-macgregors.org> In-Reply-To: <200505310600.j4V60wAb012413@the-macgregors.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------020005060801000305020704 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 'Peter Jeremy' , freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 06:47:46 -0000 This is a multi-part message in MIME format. --------------020005060801000305020704 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Rob MacGregor a écrit : >On Monday, May 30, 2005 7:58 PM, Peter Jeremy > unleashed the infinite monkeys and >produced: > > > >>On Mon, 2005-May-30 10:30:30 +0100, Rob MacGregor wrote: >> >> >>>Looking at VMWare's list of supported client OSs, FreeBSD 5 is only >>>supported in the recently released VMWare 5. >>> >>> >>I've run FreeBSD 4.x, 5.x and 6.x as VMware 4.5.2 clients without problems. >> >> > >So have I (in fact that's how I started using FreeBSD 5.0). However the drivers >required for their emulated graphics card are only supplied for FreeBSD 4.x with >VMWare 4.5. > > > and did you install the vmware tools for FreeBSD ? I did it with one found on the web but startx failed after :-( hervé >It's the same situation as with Solaris x86 - it'll run under VMWare 4.5, but >you're stuck with VESA graphics (though Sun did start including the appropriate >driver with the betas of 10 last year). > > > --------------020005060801000305020704-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 07:03:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5169216A41C for ; Tue, 31 May 2005 07:03:20 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1B2F43D1F for ; Tue, 31 May 2005 07:03:19 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id B2AE135707 for ; Tue, 31 May 2005 09:03:18 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id A3EA87D18; Tue, 31 May 2005 09:03:15 +0200 (CEST) Date: Tue, 31 May 2005 09:03:15 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050531070315.GA23145@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20050530185745.GC22660@cirb503493.alcatel.com.au> <200505310600.j4V60wAb012413@the-macgregors.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505310600.j4V60wAb012413@the-macgregors.org> User-Agent: Mutt/1.5.9i Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 07:03:20 -0000 On Tue, May 31, 2005 at 07:00:58AM +0100, Rob MacGregor wrote: > So have I (in fact that's how I started using FreeBSD 5.0). However the drivers > required for their emulated graphics card are only supplied for FreeBSD 4.x with > VMWare 4.5. Doesn't the vmware driver shipped with Xorg work? Joerg From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 07:40:34 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BCB9D16A41C for ; Tue, 31 May 2005 07:40:34 +0000 (GMT) (envelope-from matusita@jp.FreeBSD.org) Received: from castle.jp.FreeBSD.org (castle.jp.FreeBSD.org [210.226.20.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 20CCA43D1F for ; Tue, 31 May 2005 07:40:33 +0000 (GMT) (envelope-from matusita@jp.FreeBSD.org) Received: from [192.168.120.243] (localhost [127.0.0.1]) by castle.jp.FreeBSD.org (8.11.6p2+3.4W/8.11.3) with ESMTP/inet id j4V7eUX56867; Tue, 31 May 2005 16:40:30 +0900 (JST) (envelope-from matusita@jp.FreeBSD.org) Message-ID: <429C14ED.7070003@jp.FreeBSD.org> Date: Tue, 31 May 2005 16:40:29 +0900 From: Makoto Matsushita X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: Rob MacGregor References: <200505310600.j4V60wAb012413@the-macgregors.org> In-Reply-To: <200505310600.j4V60wAb012413@the-macgregors.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 07:40:34 -0000 > So have I (in fact that's how I started using FreeBSD 5.0). However the drivers > required for their emulated graphics card are only supplied for FreeBSD 4.x with > VMWare 4.5. You can use graphic driver modules (${X11}/lib/modules/drivers/vmware_drv.o) that is bundled with recent Xorg/XFree86, and it is (ideally) the same one VMware supplies by VMware tools for FreeBSD. No worries, it just works. Don't forget to set Driver "vmware" to Section "Device" in xorg.conf/XF86Config. You may also set BusID "PCI:0:15:0" to "Device" section, but if my memory serves right, it is automatically set by driver itself. -- Makoto `MAR' Matsushita From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 07:56:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6F1A16A41C for ; Tue, 31 May 2005 07:56:40 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33B3943D58 for ; Tue, 31 May 2005 07:56:39 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 35B992FD61; Tue, 31 May 2005 09:56:38 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 2ADC52FD60; Tue, 31 May 2005 09:56:38 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id E89EC1E31F1; Tue, 31 May 2005 09:56:37 +0200 (CEST) Message-ID: <429C18B5.8050502@atempo.com> Date: Tue, 31 May 2005 09:56:37 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Joerg Sonnenberger References: <20050530185745.GC22660@cirb503493.alcatel.com.au><200505310600. j4V60wAb012413@the-macgregors.org> <20050531070315.GA23145@britannica.bec.de> In-Reply-To: <20050531070315.GA23145@britannica.bec.de> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------040406010608090605040302 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 07:56:40 -0000 This is a multi-part message in MIME format. --------------040406010608090605040302 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Joerg Sonnenberger a écrit : >On Tue, May 31, 2005 at 07:00:58AM +0100, Rob MacGregor wrote: > > >>So have I (in fact that's how I started using FreeBSD 5.0). However the drivers >>required for their emulated graphics card are only supplied for FreeBSD 4.x with >>VMWare 4.5. >> >> > >Doesn't the vmware driver shipped with Xorg work? > > only in 640*480 which is very small I'm searching a driver and a FreeBSD config to use a bigger resolution hervé >Joerg >_______________________________________________ >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" > > > > --------------040406010608090605040302-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 07:57:42 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34F0416A41C for ; Tue, 31 May 2005 07:57:42 +0000 (GMT) (envelope-from shiner_chen@yahoo.com.cn) Received: from web15501.mail.cnb.yahoo.com (web15501.mail.cnb.yahoo.com [202.165.102.30]) by mx1.FreeBSD.org (Postfix) with SMTP id 5053943D55 for ; Tue, 31 May 2005 07:57:40 +0000 (GMT) (envelope-from shiner_chen@yahoo.com.cn) Received: (qmail 38576 invoked by uid 60001); 31 May 2005 07:57:39 -0000 Message-ID: <20050531075739.38574.qmail@web15501.mail.cnb.yahoo.com> Received: from [61.187.16.2] by web15501.mail.cnb.yahoo.com via HTTP; Tue, 31 May 2005 15:57:39 CST Date: Tue, 31 May 2005 15:57:39 +0800 (CST) From: shiner chen To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-633563741-1117526259=:38258" Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: the error connection of socket in kernel(new) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 07:57:42 -0000 --0-633563741-1117526259=:38258 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit In order to test the process of connection of socket in kernel ,I wrote a kld . When i load the kld ,the code try to connect the server of ftp,but i foud the code does not work right . the function , connect ,which return is right ,but ,when i see the status of connection by "netstat -a" , i found the connection didn't establish! the detailed code is attached the following code have mistake!! The platform is freebsd 5.3 /* create socket */ td=curthread; sock.domain = AF_INET; sock.type = SOCK_STREAM; sock.protocol = 0; st = socket(td, &sock); /* does create ok? */ if( st != 0 ) { /* create error */ log(LOG_DEBUG,"create socket error!\n"); goto main_shutdown; } printf("the fd of socket is%d\n",control_fd); /* has create one ok socket */ printf("the socket is created!"); ///////////////////////////////////////////////////////////////// there are some mistake here!!!! /*connect*/ bzero(&sa_in, sizeof sa_in); sa_in.sin_family = AF_INET; /*this is port of ftp*/ sa_in.sin_port = htons(21); /*this is my computer ip:172.19.11.8*/ sa_in.sin_addr.s_addr = htonl((((((172 << 8) | 19) << 8) | 11) << 8) | 48); conn.s=control_fd ; conn.name=(char*) &sa_in; conn.namelen=sizeof(sa_in); /*why do not i connect the server of ftp*/ nError=connect(td,&conn); if (!nError){ printf("connect failed!"); goto main_shutdown; } ; printf("connect is secusess!"); --------------------------------- DO YOU YAHOO!? ÑÅ»¢Ãâ·ÑGÓÊÏ䣭ÖйúµÚÒ»¾øÎÞÀ¬»øÓʼþɧÈų¬´óÓÊÏä --0-633563741-1117526259=:38258-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 08:11:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D380416A41C for ; Tue, 31 May 2005 08:11:53 +0000 (GMT) (envelope-from ruselek@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 727C543D55 for ; Tue, 31 May 2005 08:11:53 +0000 (GMT) (envelope-from ruselek@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so2127075wra for ; Tue, 31 May 2005 01:11:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=LLkTjLiDJGMFQLc8rKP2WjBsnmw2Gusxf4FM4Bq+uLURjfJfEn0SctaCwTxpOLleC6/XazusKmG8m1xh1TPgPZm6YWB4dyw47rZ1lx96maOqc+8YlisXhSs/QzKaCyJmqLbrVkNR8r67M6knQnBjEbWvJ6N53SZF/XEd41iBaWo= Received: by 10.54.52.61 with SMTP id z61mr2966606wrz; Tue, 31 May 2005 01:11:52 -0700 (PDT) Received: by 10.54.84.9 with HTTP; Tue, 31 May 2005 01:11:52 -0700 (PDT) Message-ID: <1a8aebce050531011138950719@mail.gmail.com> Date: Tue, 31 May 2005 10:11:52 +0200 From: rusel To: freebsd-hackers@freebsd.org In-Reply-To: <20050531070315.GA23145@britannica.bec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050530185745.GC22660@cirb503493.alcatel.com.au> <200505310600.j4V60wAb012413@the-macgregors.org> <20050531070315.GA23145@britannica.bec.de> Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rusel List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 08:11:54 -0000 show error log On 5/31/05, Joerg Sonnenberger wrote: > On Tue, May 31, 2005 at 07:00:58AM +0100, Rob MacGregor wrote: > > So have I (in fact that's how I started using FreeBSD 5.0). However th= e drivers > > required for their emulated graphics card are only supplied for FreeBSD= 4.x with > > VMWare 4.5. >=20 > Doesn't the vmware driver shipped with Xorg work? >=20 > Joerg > _______________________________________________ > 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= " >=20 --=20 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCDR84vcL1obalX08RAoFhAJwNuXW5vKTb5bK6hlIFeFTymMiyPACgo6rI QtLBjucJJH+AtrEem2NBHKI=3D =3DbYD1 -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 08:15:34 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 28F3416A41C for ; Tue, 31 May 2005 08:15:34 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C496C43D1F for ; Tue, 31 May 2005 08:15:33 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id 9EB3335707 for ; Tue, 31 May 2005 10:15:32 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id 95C487D18; Tue, 31 May 2005 10:15:29 +0200 (CEST) Date: Tue, 31 May 2005 10:15:29 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050531081529.GB53652@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <20050531070315.GA23145@britannica.bec.de> <429C18B5.8050502@atempo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <429C18B5.8050502@atempo.com> User-Agent: Mutt/1.5.9i Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 08:15:34 -0000 On Tue, May 31, 2005 at 09:56:37AM +0200, Hervé Kergourlay wrote: > Joerg Sonnenberger a écrit : > >Doesn't the vmware driver shipped with Xorg work? > > only in 640*480 which is very small (a) check monitor config (it must support something above 640x480 after all) (b) try switching the video mode with --+ But this is drifting off to questions@ style :) Joerg From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 08:41:09 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25E4F16A41C for ; Tue, 31 May 2005 08:41:09 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 85A5B43D1F for ; Tue, 31 May 2005 08:41:08 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 4EB4F2FD60; Tue, 31 May 2005 10:41:07 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 26C202FD0F; Tue, 31 May 2005 10:41:07 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id 028461E3248; Tue, 31 May 2005 10:41:04 +0200 (CEST) Message-ID: <429C2320.60907@atempo.com> Date: Tue, 31 May 2005 10:41:04 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Makoto Matsushita References: <200505310600.j4V60wAb012413@the-macgregors.org> <429C14ED.7070003@jp.FreeBSD.org> In-Reply-To: <429C14ED.7070003@jp.FreeBSD.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------010506090202040908070300 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Rob MacGregor , freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 08:41:09 -0000 This is a multi-part message in MIME format. --------------010506090202040908070300 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Makoto Matsushita a écrit : >> So have I (in fact that's how I started using FreeBSD 5.0). However >> the drivers >> required for their emulated graphics card are only supplied for >> FreeBSD 4.x with >> VMWare 4.5. > > > You can use graphic driver modules > (${X11}/lib/modules/drivers/vmware_drv.o) that is bundled with recent > Xorg/XFree86, and it is (ideally) the same one VMware supplies by > VMware tools for FreeBSD. > > No worries, it just works. Don't forget to set > Driver "vmware" > to Section "Device" in xorg.conf/XF86Config. You may also set > BusID "PCI:0:15:0" > to "Device" section, but if my memory serves right, it is > automatically set by driver itself. > I found the vmware driver I copy the /usr/X11R6/lib/X11/xorg.conf.eg in /usr/X11R6/lib/X11/xorg.conf and change the Driver from vga to vmware activate the line BusID "PCI:0:15:0" startx failed (==) Using config file: "/usr/X11R6/lib/X11/xorg.conf" (EE) No devices detected hervé --------------010506090202040908070300-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 09:23:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DEB116A41C for ; Tue, 31 May 2005 09:23:13 +0000 (GMT) (envelope-from suse.lee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id A481D43D1F for ; Tue, 31 May 2005 09:23:12 +0000 (GMT) (envelope-from suse.lee@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so2150128wra for ; Tue, 31 May 2005 02:23:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=cIdodrjreJN2119NIzI2zkszZiBFup4+kiNlm+g03zbDgPjGlEblFcCGmwkCxKsdBCYkb2OKxW7qidDsnuahrP1V9tkIZj2ryXqPlqOEyXCkPmB2RbN47dPX5DaNyayzHZeW93TZUZquh6BbOXaUFDCrKO3X6RNOMjgXO2A9osE= Received: by 10.54.51.9 with SMTP id y9mr2977567wry; Tue, 31 May 2005 02:23:12 -0700 (PDT) Received: by 10.54.113.9 with HTTP; Tue, 31 May 2005 02:23:12 -0700 (PDT) Message-ID: Date: Tue, 31 May 2005 17:23:12 +0800 From: To: freebsd-hackers@freebsd.org In-Reply-To: <20050531081529.GB53652@britannica.bec.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050531070315.GA23145@britannica.bec.de> <429C18B5.8050502@atempo.com> <20050531081529.GB53652@britannica.bec.de> Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: suse.lee@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 09:23:13 -0000 in vmware when you press the + the mouse cursor will release from the vm, I can't change the screen resolution in this way. can I setting the short-cut key in the vmware ? 2005/5/31, Joerg Sonnenberger : > On Tue, May 31, 2005 at 09:56:37AM +0200, Herv=E9 Kergourlay wrote: > > Joerg Sonnenberger a =E9crit : > > >Doesn't the vmware driver shipped with Xorg work? > > > > only in 640*480 which is very small >=20 > (a) check monitor config (it must support something above 640x480 after a= ll) > (b) try switching the video mode with --+ >=20 > But this is drifting off to questions@ style :) >=20 > Joerg > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " > From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 09:26:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B828316A41C for ; Tue, 31 May 2005 09:26:35 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F92443D1F for ; Tue, 31 May 2005 09:26:34 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 2BB382FD63; Tue, 31 May 2005 11:26:33 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 1F5432FD11; Tue, 31 May 2005 11:26:33 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id B508E1E324A; Tue, 31 May 2005 11:26:30 +0200 (CEST) Message-ID: <429C2DC5.4000901@atempo.com> Date: Tue, 31 May 2005 11:26:29 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Joerg Sonnenberger References: <20050531070315.GA23145@britannica.bec.de><429C18B5.8050502@atem po.com> <20050531081529.GB53652@britannica.bec.de> In-Reply-To: <20050531081529.GB53652@britannica.bec.de> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------020708080106040303040100 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 09:26:35 -0000 This is a multi-part message in MIME format. --------------020708080106040303040100 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Joerg Sonnenberger a écrit : >On Tue, May 31, 2005 at 09:56:37AM +0200, Hervé Kergourlay wrote: > > >>Joerg Sonnenberger a écrit : >> >> >>>Doesn't the vmware driver shipped with Xorg work? >>> >>> >>only in 640*480 which is very small >> >> > >(a) check monitor config (it must support something above 640x480 after all) > > it support moree than 1024*768 :-) >(b) try switching the video mode with --+ > > > doesn't work, I already try it >But this is drifting off to questions@ style :) > >Joerg >_______________________________________________ >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" > > > > --------------020708080106040303040100-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 09:27:26 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 31FDE16A41C for ; Tue, 31 May 2005 09:27:26 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6693A43D1F for ; Tue, 31 May 2005 09:27:25 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id A2CD02FD63; Tue, 31 May 2005 11:27:24 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 974E42FD11; Tue, 31 May 2005 11:27:24 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id F07CB1E324A; Tue, 31 May 2005 11:27:23 +0200 (CEST) Message-ID: <429C2DFA.6070708@atempo.com> Date: Tue, 31 May 2005 11:27:22 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: rusel References: <20050530185745.GC22660@cirb503493.alcatel.com.au><200505310600. j4V60wAb012413@the-macgregors.org><20050531070315.GA23145@britannica.bec.d e > <1a8aebce050531011138950719@mail.gmail.com> In-Reply-To: <1a8aebce050531011138950719@mail.gmail.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------010100010708050700010102 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 09:27:26 -0000 This is a multi-part message in MIME format. --------------010100010708050700010102 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit rusel a écrit : >show error log > > > there is no erreor log, I've a display in 640*480 I just can't increase the resolution :-) hervé >On 5/31/05, Joerg Sonnenberger wrote: > > >>On Tue, May 31, 2005 at 07:00:58AM +0100, Rob MacGregor wrote: >> >> >>>So have I (in fact that's how I started using FreeBSD 5.0). However the drivers >>>required for their emulated graphics card are only supplied for FreeBSD 4.x with >>>VMWare 4.5. >>> >>> >>Doesn't the vmware driver shipped with Xorg work? >> >>Joerg >>_______________________________________________ >>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" >> >> >> > > > > --------------010100010708050700010102-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 11:07:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C30D16A42D for ; Tue, 31 May 2005 11:07:49 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id E390F43D49 for ; Tue, 31 May 2005 11:07:48 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so1826745nzp for ; Tue, 31 May 2005 04:07:48 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SWnkrFtY31o8WNPO+pjWacwrsFMVxKIjKA3E4CoBPow0w6kmdXlK2kB7Ku0P34F41eIInL2OXHTuawZLrHCV8WKru2lrrMy7ssIgqvQQkDjaEoj3reDfKj1xkPLPQuDKebHu0EGPRT6UJN1lYR3VlBzsHIim4049tASyFO6Dkd8= Received: by 10.36.178.20 with SMTP id a20mr858234nzf; Tue, 31 May 2005 04:07:48 -0700 (PDT) Received: by 10.36.58.12 with HTTP; Tue, 31 May 2005 04:07:48 -0700 (PDT) Message-ID: <3727392705053104072e9547df@mail.gmail.com> Date: Tue, 31 May 2005 07:07:48 -0400 From: Aziz Kezzou To: freebsd-hackers , freebsd-net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: Subject: Routing loop + raw IP packets : looking for clues ... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Aziz Kezzou List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2005 11:07:49 -0000 Hi all, For the purpose of my project I am simpulating a 3-hop network with QEMU on my workstation, as follows : |---------------------------------| =20 |-------------------------------| =20 |-------------------------------------| |Daemon1(user process)|---tun0---| Daemon 2 on QEMU |---tun1---| Daemon 3 (user porcess) | |---------------------------------| =20 |-------------------------------| =20 |-------------------------------------| My workstation is running FC3 and QEMU is running FreeBSD5.3 I am tryning to exchange raw IP packets between daemon 1 and 3 through daemon 2. I've succeded to by pass the system routing and get packets sent from daemon 1 to daemon 2 and from daemon 2 to daemon 3. BUT, on daemon 3 I can not receive them ??!! However, when I listen with tcpdump on tun0 and tun1 I see the packets travelling as expected : daemon1(192.168.0.1)------>(192.168.0.2)daemon2(192.168.1.2)------> daemon3(192.168.0.2) What could prevent me from receiving packets intended for daemon 3? I am suspecting some hard coded rule to prevent routing loops (which is my case) in the Linux kernel, am I on the right track ? Note : I disabled completely my firewalls, so this could not be the reason. Any help is highly appreciated. -aziz From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 11:20:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C16216A41C for ; Tue, 31 May 2005 11:20:06 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0B0443D54 for ; Tue, 31 May 2005 11:20:05 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 366D546B10; Tue, 31 May 2005 07:20:05 -0400 (EDT) Date: Tue, 31 May 2005 12:20:40 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: shiner chen In-Reply-To: <20050531075739.38574.qmail@web15501.mail.cnb.yahoo.com> Message-ID: <20050531121853.Q85876@fledge.watson.org> References: <20050531075739.38574.qmail@web15501.mail.cnb.yahoo.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1032786843-1117538440=:85876" Cc: freebsd-hackers@freebsd.org Subject: Re: the error connection of socket in kernel(new) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 11:20:06 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1032786843-1117538440=:85876 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 31 May 2005, shiner chen wrote: > In order to test the process of connection of socket in kernel ,I wrote= =20 > a kld . When i load the kld ,the code try to connect the server of=20 > ftp,but i foud the code does not work right . the function , connect=20 > ,which return is right ,but ,when i see the status of connection by=20 > "netstat -a" , i found the connection didn't establish! the detailed=20 > code is attached the following code have mistake!! The platform is=20 > freebsd 5.3 > > /* create socket */ > td=3Dcurthread; > > sock.domain =3D AF_INET; > sock.type =3D SOCK_STREAM; > sock.protocol =3D 0; > st =3D socket(td, &sock); > /* does create ok? */ > if( st !=3D 0 ) > { /* create error */ > log(LOG_DEBUG,"create socket error!\n"); > goto main_shutdown; > } > printf("the fd of socket is%d\n",control_fd); How do you initialize the value of "control_fd"? You need to load it out= =20 of td->td_reval[0]. What thread is this running in? > /* has create one ok socket */ > printf("the socket is created!"); > ///////////////////////////////////////////////////////////////// > there are some mistake here!!!! > /*connect*/ > bzero(&sa_in, sizeof sa_in); > sa_in.sin_family =3D AF_INET; > /*this is port of ftp*/ > sa_in.sin_port =3D htons(21); > /*this is my computer ip:172.19.11.8*/ > sa_in.sin_addr.s_addr =3D htonl((((((172 << 8) | 19) << 8) | 11) <<= 8) | 48); > > conn.s=3Dcontrol_fd ; > conn.name=3D(char*) &sa_in; > conn.namelen=3Dsizeof(sa_in); > /*why do not i connect the server of ftp*/ > nError=3Dconnect(td,&conn); > > if (!nError){ Shouldn't you check for "nError !=3D 0" here? If this is the real code,=20 it's probably the case that you're getting EBADF back because you didn't=20 set control_fd to the real file descriptor number. Robert N M Watson > printf("connect failed!"); > goto main_shutdown; > } ; > printf("connect is secusess!"); > > > > > > --------------------------------- > DO YOU YAHOO!? > =D1=C5=BB=A2=C3=E2=B7=D1G=D3=CA=CF=E4=A3=AD=D6=D0=B9=FA=B5=DA=D2=BB=BE= =F8=CE=DE=C0=AC=BB=F8=D3=CA=BC=FE=C9=A7=C8=C5=B3=AC=B4=F3=D3=CA=CF=E4 --0-1032786843-1117538440=:85876-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 12:14:13 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4767A16A41C; Tue, 31 May 2005 12:14:13 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from smtp-relay.tamu.edu (smtp-relay.tamu.edu [165.91.143.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01BA843D58; Tue, 31 May 2005 12:14:12 +0000 (GMT) (envelope-from tyler@tamu.edu) Received: from [128.194.150.11] (vpn-11.cs.tamu.edu [128.194.150.11]) by smtp-relay.tamu.edu (8.12.10/8.12.10) with ESMTP id j4VCE76v075913; Tue, 31 May 2005 07:14:08 -0500 (CDT) In-Reply-To: <20050530232554.GA8674@heff.fud.org.nz> References: <20050530232554.GA8674@heff.fud.org.nz> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: "R. Tyler Ballance" Date: Tue, 31 May 2005 07:14:47 -0500 To: Andrew Thompson X-Mailer: Apple Mail (2.730) Received-SPF: pass (smtp-relay.tamu.edu: 128.194.150.11 is authenticated by a trusted mechanism) X-Mailman-Approved-At: Tue, 31 May 2005 13:22:58 +0000 Cc: pf@freebsd.org, hackers@freebsd.org, net@freebsd.org Subject: Re: RFC: if_bridge X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 12:14:13 -0000 I'll throw another hme interface in my Sun Ultra 2 some time later today to test it out some more. Do you have any specific "tests" you would want us to run the if_bridge code through? Just simplistic bridging of two networks, or are there any bells and whistles you want me(/us) to setup as well? Other than that, do you know if the new OPENBSD_3_7 pf code will work with this patch? Thanks a lot for working on it! :) -R. Tyler Ballance On May 30, 2005, at 6:25 PM, Andrew Thompson wrote: > Hi, > > I am looking for testers and code review for if_bridge, the bridge > implementation from NetBSD (and OpenBSD). > > The patch and instructions can be found at: > > http://people.freebsd.org/~thompsa/ > > Highlights include: > - 802.1d spanning tree support > - management of the bridge MAC table > - view bridged packets with bpf(4) > - good firewall support > > > I am especially interested in people who can test !i386, and users > with > existing STP networks. I am looking forward to getting your feedback! > > > Andrew > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 12:35:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 75AE216A41C for ; Tue, 31 May 2005 12:35:53 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from Neo-Vortex.net (203-206-26-126.dyn.iinet.net.au [203.206.26.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77C7C43D48 for ; Tue, 31 May 2005 12:35:51 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from localhost.Neo-Vortex.net (Neo-Vortex@localhost.Neo-Vortex.net [127.0.0.1]) by Neo-Vortex.net (8.13.1/8.12.10) with ESMTP id j4VCZmSk089089; Tue, 31 May 2005 22:35:49 +1000 (EST) (envelope-from root@Neo-Vortex.net) Date: Tue, 31 May 2005 22:35:48 +1000 (EST) From: Neo-Vortex To: shiner chen In-Reply-To: <20050531075739.38574.qmail@web15501.mail.cnb.yahoo.com> Message-ID: <20050531223353.T88620@Neo-Vortex.net> References: <20050531075739.38574.qmail@web15501.mail.cnb.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-hackers@freebsd.org Subject: Re: the error connection of socket in kernel(new) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 12:35:53 -0000 On Tue, 31 May 2005, shiner chen wrote: > sa_in.sin_port = htons(21); > /*this is my computer ip:172.19.11.8*/ > sa_in.sin_addr.s_addr = htonl((((((172 << 8) | 19) << 8) | 11) << 8) | 48); Can't help much with your question, but that last line quoted could be made much simpler (and less prone to errors) by using the inet_addr() function... half asleep at the moment... will re-look over your actual question later :) ~Neo-Vortex From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 13:39:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BC1B16A41C for ; Tue, 31 May 2005 13:39:20 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 24A5043D55 for ; Tue, 31 May 2005 13:39:19 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 5714A1F1F0 for ; Tue, 31 May 2005 15:39:18 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id 35C7E68D2; Tue, 31 May 2005 15:39:18 +0200 (CEST) Date: Tue, 31 May 2005 15:39:18 +0200 From: Marc Olzheim To: freebsd-hackers@freebsd.org Message-ID: <20050531133918.GA50781@stack.nl> References: <20050425101008.GA57542@stack.nl> <20050425135044.GD769@empiric.icir.org> <20050425152314.GB58044@stack.nl> <20050425165041.GA71899@stack.nl> <20050426133115.GA52753@stack.nl> <20050426193320.GA72028@stack.nl> <20050427090554.GA87913@stack.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline In-Reply-To: <20050427090554.GA87913@stack.nl> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Subject: Re: preadv() / pwritev() X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 13:39:20 -0000 --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Now that 5.4-release has settled, who is willing to commit the preadv() patch at http://www.stack.nl/~marcolz/FreeBSD/ ? Btw: Why are the files generated by 'make syscalls.c' in /usr/src/sys/kern and 'make sysent' in /usr/src/sys/compat/freebsd32 in CVS and not just generated at build time ? Should I include those files in the patch as well ? Marc --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCnGkGezjnobFOgrERAlGPAJ45nd6rxUsLSmsFxQKCVxBsowe1nQCgimwr iKdEWtXRWkQkWjr6UDEqaD8= =v6AB -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 15:41:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 361D116A41C for ; Tue, 31 May 2005 15:41:43 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB03D43D4C for ; Tue, 31 May 2005 15:41:42 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 590C67EF52 for ; Tue, 31 May 2005 17:41:39 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03924-08 for ; Tue, 31 May 2005 17:41:34 +0200 (CEST) Received: from firewall.demig (p50838D1A.dip0.t-ipconnect.de [80.131.141.26]) by server.absolute-media.de (Postfix) with ESMTP id 926BB7ECB4 for ; Tue, 31 May 2005 17:41:34 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j4VFcjg7055186 for ; Tue, 31 May 2005 17:38:45 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: Date: Tue, 31 May 2005 17:38:45 +0200 Message-ID: <000001c565f6$d46b7720$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Subject: mutual exclusion in vkbd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 15:41:43 -0000 Hello. I am currently trying to backport vkbd to FreeBSD 4. Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for protecting access to data structures under FreeBSD 5/6 between the device functions and the kernel thread. How should I best do this under FreeBSD 4? Would something like splhigh() work in that context? Or should I use lockmgr with LK_EXCLUSIVE/LK_RELEASE? Is there any (pseudo)process context inside a kernel task? Thank you for any help, Norbert Koch From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 16:41:45 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72A9C16A41C for ; Tue, 31 May 2005 16:41:45 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id E53B943D5D for ; Tue, 31 May 2005 16:41:42 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 34CC03BEE9; Tue, 31 May 2005 11:41:42 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24734-01-86; Tue, 31 May 2005 11:41:42 -0500 (CDT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id 0827F3BE2D; Tue, 31 May 2005 11:41:42 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 31 May 2005 11:41:27 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 31 May 2005 11:41:17 -0500 Message-ID: <429C93AE.8060509@savvis.net> Date: Tue, 31 May 2005 09:41:18 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Norbert Koch References: <000001c565f6$d46b7720$4801a8c0@ws-ew-3.W2KDEMIG> In-Reply-To: <000001c565f6$d46b7720$4801a8c0@ws-ew-3.W2KDEMIG> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 31 May 2005 16:41:17.0196 (UTC) FILETIME=[90E59CC0:01C565FF] X-Virus-Scanned: amavisd-new at savvis.net Cc: freebsd-hackers@freebsd.org Subject: Re: mutual exclusion in vkbd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 16:41:45 -0000 Norbert, > I am currently trying to backport vkbd to FreeBSD 4. ok > Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for > protecting access to data structures under FreeBSD 5/6 > between the device functions and the kernel thread. > > How should I best do this under FreeBSD 4? > > Would something like splhigh() work in that context? > Or should I use lockmgr with LK_EXCLUSIVE/LK_RELEASE? > Is there any (pseudo)process context inside a kernel task? spltty() is what you probably need to use. you could just adjust the following defines like #define VKBD_LOCK_DECL int #define VKBD_LOCK_INIT(s) /* noop */ #define VKBD_LOCK_DESTROY(s) /* noop */ #define VKBD_LOCK(s) (s)->ks_lock = spltty() #define VKBD_UNLOCK(s) splx((s)->ks_lock) #define VKBD_LOCK_ASSERT(s, w) #define VKBD_SLEEP(s, f, d, t) \ tsleep(&(s)->f, PCATCH | (PZERO + 1), d, t) and you should be done. its not really required to store interrupt mask in softc structure, but this way its less changes to the code. thanks, max From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 17:26:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFE4C16A41C for ; Tue, 31 May 2005 17:26:17 +0000 (GMT) (envelope-from freebsd.macgregor@blueyonder.co.uk) Received: from the-macgregors.org (82-46-96-19.cable.ubr06.stav.blueyonder.co.uk [82.46.96.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11FAB43D1D for ; Tue, 31 May 2005 17:26:16 +0000 (GMT) (envelope-from freebsd.macgregor@blueyonder.co.uk) X-Urban-Legend: Mail headers contain urban legends Received: from fire (rob@fire.macgregor [192.168.32.100]) (user=freebsd mech=LOGIN bits=0) by the-macgregors.org (8.13.4/8.13.4) with ESMTP id j4VHQEdw004807 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO) for ; Tue, 31 May 2005 17:26:15 GMT Message-Id: <200505311726.j4VHQEdw004807@the-macgregors.org> From: "Rob MacGregor" To: Date: Tue, 31 May 2005 18:26:06 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Thread-Index: AcVlynm6Lsch5gYrR5Gp+5gcqsH5/wAO0d9g X-Virus-Scanned: by amavisd-milter (http://www.amavis.org/) Subject: RE: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 17:26:17 -0000 On Tuesday, May 31, 2005 10:23 AM, suse.lee@gmail.com <> unleashed the infinite monkeys and produced: > in vmware when you press the + the mouse cursor will > release from the vm, I can't change the screen resolution in this way. > can I setting the short-cut key in the vmware ? Yes. Off the top of my head I don't remember it, but it's fairly easy to find the menu option. -- Rob | Oh my God! They killed init! You bastards! From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 20:19:09 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0D3816A41F for ; Tue, 31 May 2005 20:19:09 +0000 (GMT) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7841843D4C; Tue, 31 May 2005 20:19:09 +0000 (GMT) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (kan@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j4VKJ9xv077363; Tue, 31 May 2005 20:19:09 GMT (envelope-from kan@freefall.freebsd.org) Received: (from kan@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j4VKJ8LU077362; Tue, 31 May 2005 20:19:09 GMT (envelope-from kan) Date: Tue, 31 May 2005 20:19:08 +0000 From: Alexander Kabaev To: Maksim Yevmenkin Message-ID: <20050531201908.GA77068@freefall.freebsd.org> References: <000001c565f6$d46b7720$4801a8c0@ws-ew-3.W2KDEMIG> <429C93AE.8060509@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <429C93AE.8060509@savvis.net> User-Agent: Mutt/1.4.2.1i Cc: Norbert Koch , freebsd-hackers@freebsd.org Subject: Re: mutual exclusion in vkbd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 20:19:09 -0000 On Tue, May 31, 2005 at 09:41:18AM -0700, Maksim Yevmenkin wrote: > Norbert, > > >I am currently trying to backport vkbd to FreeBSD 4. > > ok > > >Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for > >protecting access to data structures under FreeBSD 5/6 > >between the device functions and the kernel thread. > > > >How should I best do this under FreeBSD 4? > > > >Would something like splhigh() work in that context? > >Or should I use lockmgr with LK_EXCLUSIVE/LK_RELEASE? > >Is there any (pseudo)process context inside a kernel task? > > spltty() is what you probably need to use. you could just adjust the > following defines like > > #define VKBD_LOCK_DECL int > #define VKBD_LOCK_INIT(s) /* noop */ > #define VKBD_LOCK_DESTROY(s) /* noop */ > #define VKBD_LOCK(s) (s)->ks_lock = spltty() > #define VKBD_UNLOCK(s) splx((s)->ks_lock) > #define VKBD_LOCK_ASSERT(s, w) > #define VKBD_SLEEP(s, f, d, t) \ > tsleep(&(s)->f, PCATCH | (PZERO + 1), d, t) > The code above will probably crash the kernel in many spectacular and unpredictable ways. You will need to save interrupt flags locally to each VKBD_LOCK caller or they will end up restoring each other's flags. -- Alexander Kabaev From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 20:59:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18CD316A41C; Tue, 31 May 2005 20:59:48 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD17E43D1F; Tue, 31 May 2005 20:59:45 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 0E7833BE52; Tue, 31 May 2005 15:59:45 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 31125-01-75; Tue, 31 May 2005 15:59:44 -0500 (CDT) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id D69E03BE22; Tue, 31 May 2005 15:59:44 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 31 May 2005 15:59:12 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Tue, 31 May 2005 15:59:00 -0500 Message-ID: <429CD013.7070809@savvis.net> Date: Tue, 31 May 2005 13:58:59 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Alexander Kabaev References: <000001c565f6$d46b7720$4801a8c0@ws-ew-3.W2KDEMIG> <429C93AE.8060509@savvis.net> <20050531201908.GA77068@freefall.freebsd.org> In-Reply-To: <20050531201908.GA77068@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 31 May 2005 20:59:00.0686 (UTC) FILETIME=[91DAEEE0:01C56623] X-Virus-Scanned: amavisd-new at savvis.net Cc: Norbert Koch , freebsd-hackers@freebsd.org Subject: Re: mutual exclusion in vkbd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 20:59:48 -0000 Alexander Kabaev wrote: > On Tue, May 31, 2005 at 09:41:18AM -0700, Maksim Yevmenkin wrote: > >>Norbert, >> >> >>>I am currently trying to backport vkbd to FreeBSD 4. >> >>ok >> >> >>>Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for >>>protecting access to data structures under FreeBSD 5/6 >>>between the device functions and the kernel thread. >>> >>>How should I best do this under FreeBSD 4? >>> >>>Would something like splhigh() work in that context? >>>Or should I use lockmgr with LK_EXCLUSIVE/LK_RELEASE? >>>Is there any (pseudo)process context inside a kernel task? >> >>spltty() is what you probably need to use. you could just adjust the >>following defines like >> >>#define VKBD_LOCK_DECL int >>#define VKBD_LOCK_INIT(s) /* noop */ >>#define VKBD_LOCK_DESTROY(s) /* noop */ >>#define VKBD_LOCK(s) (s)->ks_lock = spltty() >>#define VKBD_UNLOCK(s) splx((s)->ks_lock) >>#define VKBD_LOCK_ASSERT(s, w) >>#define VKBD_SLEEP(s, f, d, t) \ >> tsleep(&(s)->f, PCATCH | (PZERO + 1), d, t) > > The code above will probably crash the kernel in many spectacular and > unpredictable ways. You will need to save interrupt flags locally to each > VKBD_LOCK caller or they will end up restoring each other's flags. yes, you are correct. my bad :( thanks for catching this max From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 23:48:17 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2406F16A41C; Tue, 31 May 2005 23:48:17 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j4VNmGok021529; Tue, 31 May 2005 19:48:16 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j4VNmG5V021528; Tue, 31 May 2005 19:48:16 -0400 (EDT) (envelope-from green) Date: Tue, 31 May 2005 19:48:16 -0400 From: Brian Fundakowski Feldman To: Andrew Thompson Message-ID: <20050531234816.GA975@green.homeunix.org> References: <20050530232554.GA8674@heff.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050530232554.GA8674@heff.fud.org.nz> User-Agent: Mutt/1.5.6i Cc: pf@freebsd.org, hackers@freebsd.org, net@freebsd.org Subject: Re: RFC: if_bridge X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 23:48:17 -0000 On Tue, May 31, 2005 at 11:25:54AM +1200, Andrew Thompson wrote: > Hi, > > I am looking for testers and code review for if_bridge, the bridge > implementation from NetBSD (and OpenBSD). > > The patch and instructions can be found at: > > http://people.freebsd.org/~thompsa/ > > Highlights include: > - 802.1d spanning tree support > - management of the bridge MAC table > - view bridged packets with bpf(4) > - good firewall support > > > I am especially interested in people who can test !i386, and users with > existing STP networks. I am looking forward to getting your feedback! As you know, I've been testing this on 5.4 in a transparent ipfw/ALTQ bridging/traffic-shaping-firewall setup. I ran into quite a few more issues with the driver's usage of locking while determining the proper configuration (which, btw, is to assign no layer 3 addresses to the internal or external interfaces, but assign them to the bridge interface). Some of these have since been fixed by you or I, but the most serious is the deadlock caused by not having consistency in data access between the input/output interfaces attached to the bridge and the bridge interface itself. It was quite simple to reproduce using IPFW dynamic rules and two fxp(4). The situation that occurs is the input path having locked the bridge, then the interface, and the output path locking the real interface and then trying to lock the bridge. It can be fixed by deferring the if_start(9), but having not run it with WITNESS I'm not certain that is the only big problem. Ideally, there should be a global bridge-list shared/exclusive lock and per-bridge shared/exclusive locks. This will require a fair bit of code churn... but the current state is largely not productionable on FreeBSD thanks to a locking versus IPL model being used in the kernel versus the if_bridge(4) code having been structured for IPL. I very much like this far more featureful and cleaner bridging implementation; it would benefit from implementing a locking strategy almost entirely not unlike Netgraph. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 23:58:51 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7093716A41C; Tue, 31 May 2005 23:58:51 +0000 (GMT) (envelope-from thompsa@fud.org.nz) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id E173E43D1D; Tue, 31 May 2005 23:58:50 +0000 (GMT) (envelope-from thompsa@fud.org.nz) Received: from thompsa by heff.fud.org.nz with local (Exim 4.50 (FreeBSD)) id 1DdGdF-0003VG-MF; Wed, 01 Jun 2005 11:58:49 +1200 Date: Wed, 1 Jun 2005 11:58:49 +1200 From: Andrew Thompson To: Brian Fundakowski Feldman Message-ID: <20050531235849.GA13258@heff.fud.org.nz> References: <20050530232554.GA8674@heff.fud.org.nz> <20050531234816.GA975@green.homeunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050531234816.GA975@green.homeunix.org> User-Agent: Mutt/1.4.2.1i Sender: Andrew Thompson Cc: pf@freebsd.org, hackers@freebsd.org, net@freebsd.org Subject: Re: RFC: if_bridge X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 23:58:51 -0000 On Tue, May 31, 2005 at 07:48:16PM -0400, Brian Fundakowski Feldman wrote: > On Tue, May 31, 2005 at 11:25:54AM +1200, Andrew Thompson wrote: > > Hi, > > > > I am looking for testers and code review for if_bridge, the bridge > > implementation from NetBSD (and OpenBSD). > > > > The patch and instructions can be found at: > > > > http://people.freebsd.org/~thompsa/ > > > > Some of these have since been fixed by you or I, but the most serious > is the deadlock caused by not having consistency in data access > between the input/output interfaces attached to the bridge and the > bridge interface itself. It was quite simple to reproduce using IPFW > dynamic rules and two fxp(4). The situation that occurs is the input > path having locked the bridge, then the interface, and the output path > locking the real interface and then trying to lock the bridge. It > can be fixed by deferring the if_start(9), but having not run it with > WITNESS I'm not certain that is the only big problem. > > Ideally, there should be a global bridge-list shared/exclusive lock > and per-bridge shared/exclusive locks. This will require a fair bit > of code churn... but the current state is largely not productionable > on FreeBSD thanks to a locking versus IPL model being used in the > kernel versus the if_bridge(4) code having been structured for IPL. > Have you looked at the patch above, I have been using bridge-list and per-bridge locks for about a week now. There have been a couple of changes from the original patch you have, are you able to re-test? cheers, Andrew From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 00:18:34 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 35FD216A41C; Wed, 1 Jun 2005 00:18:34 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j510IXTg021703; Tue, 31 May 2005 20:18:33 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j510IXp5021702; Tue, 31 May 2005 20:18:33 -0400 (EDT) (envelope-from green) Date: Tue, 31 May 2005 20:18:33 -0400 From: Brian Fundakowski Feldman To: Andrew Thompson Message-ID: <20050601001833.GB975@green.homeunix.org> References: <20050530232554.GA8674@heff.fud.org.nz> <20050531234816.GA975@green.homeunix.org> <20050531235849.GA13258@heff.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050531235849.GA13258@heff.fud.org.nz> User-Agent: Mutt/1.5.6i Cc: pf@freebsd.org, hackers@freebsd.org, net@freebsd.org Subject: Re: RFC: if_bridge X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 00:18:34 -0000 On Wed, Jun 01, 2005 at 11:58:49AM +1200, Andrew Thompson wrote: > On Tue, May 31, 2005 at 07:48:16PM -0400, Brian Fundakowski Feldman wrote: > > On Tue, May 31, 2005 at 11:25:54AM +1200, Andrew Thompson wrote: > > > Hi, > > > > > > I am looking for testers and code review for if_bridge, the bridge > > > implementation from NetBSD (and OpenBSD). > > > > > > The patch and instructions can be found at: > > > > > > http://people.freebsd.org/~thompsa/ > > > > > > > Some of these have since been fixed by you or I, but the most serious > > is the deadlock caused by not having consistency in data access > > between the input/output interfaces attached to the bridge and the > > bridge interface itself. It was quite simple to reproduce using IPFW > > dynamic rules and two fxp(4). The situation that occurs is the input > > path having locked the bridge, then the interface, and the output path > > locking the real interface and then trying to lock the bridge. It > > can be fixed by deferring the if_start(9), but having not run it with > > WITNESS I'm not certain that is the only big problem. > > > > Ideally, there should be a global bridge-list shared/exclusive lock > > and per-bridge shared/exclusive locks. This will require a fair bit > > of code churn... but the current state is largely not productionable > > on FreeBSD thanks to a locking versus IPL model being used in the > > kernel versus the if_bridge(4) code having been structured for IPL. > > > > Have you looked at the patch above, I have been using bridge-list and > per-bridge locks for about a week now. There have been a couple of > changes from the original patch you have, are you able to re-test? I only skimmed it enough to see you had fixed one of the issues (bridge_rtable_fini() asserting a lock it did not own) but not the issue where you simply cannot call or be called from both directions with regard to a bridged interface. Unfortunately, I don't think there's a 100% reliable way to defer if_start() calls :-/ -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 01:56:11 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D45CE16A41C for ; Wed, 1 Jun 2005 01:56:11 +0000 (GMT) (envelope-from suse.lee@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7885143D49 for ; Wed, 1 Jun 2005 01:56:11 +0000 (GMT) (envelope-from suse.lee@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so2504059wra for ; Tue, 31 May 2005 18:56:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=m/XDMlvXebj94mL2GthiRVXSiWY/TGQjke44dhPfVvmbNP4w1Ym5GP4HyGY0WMDPl56YoLSGw7jtx/DWnAr1X5I0g/P5ZraEXZdVmongWU5pFlaOVG0vbjWdDFNjdTwQyfYC1IBbNI22R1srZiDY411KnhRgKDtGtl2QLBfQoJE= Received: by 10.54.71.17 with SMTP id t17mr3299270wra; Tue, 31 May 2005 18:56:10 -0700 (PDT) Received: by 10.54.113.9 with HTTP; Tue, 31 May 2005 18:56:09 -0700 (PDT) Message-ID: Date: Wed, 1 Jun 2005 09:56:09 +0800 From: To: freebsd-hackers@freebsd.org In-Reply-To: <200505311726.j4VHQEdw004807@the-macgregors.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200505311726.j4VHQEdw004807@the-macgregors.org> Subject: Re: Screen Resolution X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: suse.lee@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 01:56:12 -0000 yes,I find it in Edit->preferences->Hot Keys. Thanks 2005/6/1, Rob MacGregor : > On Tuesday, May 31, 2005 10:23 AM, suse.lee@gmail.com <> unleashed the in= finite > monkeys and produced: >=20 > > in vmware when you press the + the mouse cursor will > > release from the vm, I can't change the screen resolution in this way. > > can I setting the short-cut key in the vmware ? >=20 > Yes. Off the top of my head I don't remember it, but it's fairly easy to= find > the menu option. >=20 > -- > Rob | Oh my God! They killed init! You bastards! >=20 > _______________________________________________ > 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 Jun 1 01:59:22 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3638116A41C; Wed, 1 Jun 2005 01:59:22 +0000 (GMT) (envelope-from iampinetan@netscape.net) Received: from imo-d01.mx.aol.com (imo-d01.mx.aol.com [205.188.157.33]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1FAC43D1D; Wed, 1 Jun 2005 01:59:21 +0000 (GMT) (envelope-from iampinetan@netscape.net) Received: from iampinetan@netscape.net by imo-d01.mx.aol.com (mail_out_v38_r1.7.) id n.13a.100c9dff (16240); Tue, 31 May 2005 21:59:19 -0400 (EDT) Received: from netscape.net (mow-d21.webmail.aol.com [205.188.139.162]) by air-in03.mx.aol.com (v106.2) with ESMTP id MAILININ34-3f70429d167614e; Tue, 31 May 2005 21:59:18 -0400 Date: Tue, 31 May 2005 21:59:18 -0400 From: iampinetan@netscape.net To: freebsd-net@freebsd.org MIME-Version: 1.0 Message-ID: <59C9FB8D.4CC432F3.0F1E5A0A@netscape.net> X-Mailer: Atlas Mailer 2.0 X-AOL-IP: 61.187.16.2 X-AOL-Language: english Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: OpenKeta@FreeBSD released! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 01:59:22 -0000 We have designed and implemented a novel kernel web accelerator, named as OpenKeta@FreeBSD, and released v0.8-alpha at openketa.sourceforge.net. It has similar function as TUX at Redhat. OpenKeta@FreeBSD has software pipeline architecture. It devides HTTP request process operation into several pipeline stages and uses defferent thread to do specified operation stage. It adapts to SMP platform. With one SMP server and 5 testing clients OpenKeta@FreeBSD can get better SPECweb99 performance than TUX. Currently OpenKeta@FreeBSD v0.80-alpha just implemented basic HTTP/1.1 protocol. We hope some volunteers can join us and get better OpenKeta. Enjoy OpenKeta@FreeBSD. Pine Tan __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 06:11:36 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D6D2316A41C; Wed, 1 Jun 2005 06:11:36 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4945343D48; Wed, 1 Jun 2005 06:11:35 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 4A00979C68; Wed, 1 Jun 2005 08:11:34 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05662-07; Wed, 1 Jun 2005 08:11:29 +0200 (CEST) Received: from firewall.demig (p50838D1A.dip0.t-ipconnect.de [80.131.141.26]) by server.absolute-media.de (Postfix) with ESMTP id 716EF712B0; Wed, 1 Jun 2005 08:11:29 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j5168Vgt093788; Wed, 1 Jun 2005 08:08:31 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: "Maksim Yevmenkin" , "Alexander Kabaev" Date: Wed, 1 Jun 2005 08:08:29 +0200 Message-ID: <002701c56670$54ee4980$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 In-Reply-To: <429CD013.7070809@savvis.net> X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Cc: freebsd-hackers@freebsd.org Subject: RE: mutual exclusion in vkbd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 06:11:37 -0000 Thank you all. I'll try it. Norbert > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org > [mailto:owner-freebsd-hackers@freebsd.org]On Behalf Of Maksim Yevmenkin > Sent: Tuesday, May 31, 2005 10:59 PM > To: Alexander Kabaev > Cc: Norbert Koch; freebsd-hackers@freebsd.org > Subject: Re: mutual exclusion in vkbd > > > Alexander Kabaev wrote: > > On Tue, May 31, 2005 at 09:41:18AM -0700, Maksim Yevmenkin wrote: > > > >>Norbert, > >> > >> > >>>I am currently trying to backport vkbd to FreeBSD 4. > >> > >>ok > >> > >> > >>>Maksim Yevmenkin uses mtx_lock()/mtx_unlock() for > >>>protecting access to data structures under FreeBSD 5/6 > >>>between the device functions and the kernel thread. > >>> > >>>How should I best do this under FreeBSD 4? > >>> > >>>Would something like splhigh() work in that context? > >>>Or should I use lockmgr with LK_EXCLUSIVE/LK_RELEASE? > >>>Is there any (pseudo)process context inside a kernel task? > >> > >>spltty() is what you probably need to use. you could just adjust the > >>following defines like > >> > >>#define VKBD_LOCK_DECL int > >>#define VKBD_LOCK_INIT(s) /* noop */ > >>#define VKBD_LOCK_DESTROY(s) /* noop */ > >>#define VKBD_LOCK(s) (s)->ks_lock = spltty() > >>#define VKBD_UNLOCK(s) splx((s)->ks_lock) > >>#define VKBD_LOCK_ASSERT(s, w) > >>#define VKBD_SLEEP(s, f, d, t) \ > >> tsleep(&(s)->f, PCATCH | (PZERO + 1), d, t) > > > > The code above will probably crash the kernel in many spectacular and > > unpredictable ways. You will need to save interrupt flags > locally to each > > VKBD_LOCK caller or they will end up restoring each other's flags. > > yes, you are correct. my bad :( thanks for catching this > > max > _______________________________________________ > 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 Jun 1 07:14:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5FD4C16A41C; Wed, 1 Jun 2005 07:14:17 +0000 (GMT) (envelope-from iampinetan@netscape.net) Received: from imo-d02.mx.aol.com (imo-d02.mx.aol.com [205.188.157.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id E19AA43D1D; Wed, 1 Jun 2005 07:14:16 +0000 (GMT) (envelope-from iampinetan@netscape.net) Received: from iampinetan@netscape.net by imo-d02.mx.aol.com (mail_out_v38_r1.7.) id n.1b1.e338385 (22683); Wed, 1 Jun 2005 03:14:13 -0400 (EDT) Received: from netscape.net (mow-d16.webmail.aol.com [205.188.139.132]) by air-in04.mx.aol.com (v106.2) with ESMTP id MAILININ44-589b429d60452fd; Wed, 01 Jun 2005 03:14:13 -0400 Date: Wed, 01 Jun 2005 03:14:13 -0400 From: iampinetan@netscape.net To: freebsd-net@freebsd.org MIME-Version: 1.0 Message-ID: <416BAF1E.6B1460E7.0F1E5A0A@netscape.net> X-Mailer: Atlas Mailer 2.0 X-AOL-IP: 61.187.16.2 X-AOL-Language: english Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: The performances of OpenKeta@FreeBSD v0.8-alpha X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 07:14:17 -0000 We use one server and several PCs to test OpenKETA@FreeBSD's performances. The server has two Xeon 2.4GHz CPUs (disabled the hyperthread function), 2 GB DDR2 memory, one 37 GB 10000 rpm SCSI hard disk and a Gigabit Ethernet network adaptor. Client PCs have a Pentium 4 2.0 GHz CPU, 512 DDR memory, one 40 GB 5400 rpm hard disk and an integrated 100 Mb Ethernet network adaptor. Testing tools are SPECweb99 and Benchmark Factory. We use SPECweb99 to experiment 300, 600 and 1000 simultaneous connections on four testing platforms including the OpenKETA@FreeBSD on FreeBSD v5.3, Apache v1.3.3 on FreeBSD v5.3, Apache v1.3.3 on Redhat Enterprise Linux v3.0, and TUX 3.2.14 on Redhat Enterprise Linux v3.0. All these environments setup and configure by default and without any optimization. Since OpenKETA just accelerates the static HTTP requests, we have set the dynamic request ratio to 0.0 in SPECweb99’s rc file. NOTE that: The experiments tests all are just on the default OSs Settting and without any optimizations. Table 1 experiment results of 300 simultaneous connections (2 clients) Mean Resp. Time (ms)/ Weighted Bandwidth (bps)/ Valid+Invalid connections/ Confirming Connections/ Throughput ops/sec/ Apache(FreeBSD) 410.0 303272.69 300+0 50 761 OpenKETA@FreeBSD 301.2 395701.82 300+0 300 963 Apache(RHEL) 382.2 313600.49 300+0 56 765 Tux(RHEL) 320.4 373585.24 300+0 300 907 Table 2 experiment results of 600 simultaneous connections (3 clients) Mean Resp. Time (ms)/ Weighted Bandwidth (bps)/ Valid+Invalid connections/ Confirming Connections/ Throughput ops/sec/ Apache(FreeBSD) 719.3 166083.41 600+0 0 771 OpenKETA@FreeBSD 340.4 360495.45 600+0 600 1752 Apache(RHEL) 758.2 157416.85 600+0 0 769 Tux(RHEL) 456.1 261535.11 600+0 0 1296 Table 3 experiment results of 1000 simultaneous connections (5 clients) Mean Resp. Time (ms)/ Weighted Bandwidth (bps)/ Valid+Invalid connections/ Confirming Connections/ Throughput ops/sec Apache(FreeBSD) 1077.7 110974.79 983+17 0 773 OpenKETA@FreeBSD 418.6 295451.23 1000+0 36 2362 Apache(RHEL) 1247.2 95514.28 989+11 0 750 Tux(RHEL) 791.1 150558.99 999+1 0 1244 __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 07:23:04 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A23016A41C; Wed, 1 Jun 2005 07:23:04 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from Neo-Vortex.net (203-173-58-65.dyn.iinet.net.au [203.173.58.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF0EB43D48; Wed, 1 Jun 2005 07:23:03 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from localhost.Neo-Vortex.net (Neo-Vortex@localhost.Neo-Vortex.net [127.0.0.1]) by Neo-Vortex.net (8.13.1/8.12.10) with ESMTP id j517N10B052999; Wed, 1 Jun 2005 17:23:01 +1000 (EST) (envelope-from root@Neo-Vortex.net) Date: Wed, 1 Jun 2005 17:23:01 +1000 (EST) From: Neo-Vortex To: iampinetan@netscape.net In-Reply-To: <416BAF1E.6B1460E7.0F1E5A0A@netscape.net> Message-ID: <20050601171953.Y51985@Neo-Vortex.net> References: <416BAF1E.6B1460E7.0F1E5A0A@netscape.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: The performances of OpenKeta@FreeBSD v0.8-alpha X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 07:23:04 -0000 On Wed, 1 Jun 2005 iampinetan@netscape.net wrote: > Mean Resp. Time (ms)/ Weighted Bandwidth (bps)/ Valid+Invalid connections/ Confirming Connections/ Throughput ops/sec > Apache(FreeBSD) 410.0 303272.69 300+0 50 761 > Apache(RHEL) 382.2 313600.49 300+0 56 765 > Apache(FreeBSD) 719.3 166083.41 600+0 0 771 > Apache(RHEL) 758.2 157416.85 600+0 0 769 > Apache(FreeBSD) 1077.7 110974.79 983+17 0 773 > Apache(RHEL) 1247.2 95514.28 989+11 0 750 Anyone care to explain why on FreeBSD (without OpenKeta) the preformance was lower than Linux for the 300 connection test although better for the 600 and 1000? (Just Curiosity) ~Neo-Vortex From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 07:44:22 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 520EE16A41C; Wed, 1 Jun 2005 07:44:22 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FB5D43D1F; Wed, 1 Jun 2005 07:44:21 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 442F746B7B; Wed, 1 Jun 2005 03:44:21 -0400 (EDT) Date: Wed, 1 Jun 2005 08:45:03 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: iampinetan@netscape.net In-Reply-To: <59C9FB8D.4CC432F3.0F1E5A0A@netscape.net> Message-ID: <20050601081927.Q24311@fledge.watson.org> References: <59C9FB8D.4CC432F3.0F1E5A0A@netscape.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-net@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: OpenKeta@FreeBSD released! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 07:44:22 -0000 On Tue, 31 May 2005 iampinetan@netscape.net wrote: > We have designed and implemented a novel kernel web accelerator, named > as OpenKeta@FreeBSD, and released v0.8-alpha at > openketa.sourceforge.net. It has similar function as TUX at Redhat. > > OpenKeta@FreeBSD has software pipeline architecture. It devides HTTP > request process operation into several pipeline stages and uses > defferent thread to do specified operation stage. It adapts to SMP > platform. With one SMP server and 5 testing clients OpenKeta@FreeBSD can > get better SPECweb99 performance than TUX. > > Currently OpenKeta@FreeBSD v0.80-alpha just implemented basic HTTP/1.1 > protocol. We hope some volunteers can join us and get better OpenKeta. Pine, This sounds really neat! Are you currently using the FreeBSD 5.x or 6.x kernel? It sounds like you're in a position to benchmark performance improvements, especially on SMP -- are you interested in doing benchmarking with network performance patches? :-) Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 10:19:00 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA41E16A41C for ; Wed, 1 Jun 2005 10:19:00 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from pinus.cc.fer.hr (pinus.cc.fer.hr [161.53.73.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0A2743D67 for ; Wed, 1 Jun 2005 10:18:58 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [161.53.72.113] (lara.cc.fer.hr [161.53.72.113]) by pinus.cc.fer.hr (8.12.2/8.12.2) with ESMTP id j51ALRpq014000 for ; Wed, 1 Jun 2005 12:21:27 +0200 (MEST) Message-ID: <429D8B4D.5090207@fer.hr> Date: Wed, 01 Jun 2005 12:17:49 +0200 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org References: <416BAF1E.6B1460E7.0F1E5A0A@netscape.net> In-Reply-To: <416BAF1E.6B1460E7.0F1E5A0A@netscape.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: The performances of OpenKeta@FreeBSD v0.8-alpha X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 10:19:01 -0000 iampinetan@netscape.net wrote: >v1.3.3 on FreeBSD v5.3, Apache v1.3.3 on Redhat Enterprise Linux v3.0, and TUX 3.2.14 >on Redhat Enterprise Linux v3.0. All these environments setup and configure by default and Note that RHEL3 uses Linux 2.4 kernel - you should get much better results with a 2.6 kernel (RHEL4 for example, or any recent distro out there). From owner-freebsd-hackers@FreeBSD.ORG Tue May 31 14:40:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A7A216A41C for ; Tue, 31 May 2005 14:40:40 +0000 (GMT) (envelope-from steve@lonres.com) Received: from anchor-post-36.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3748A43D49 for ; Tue, 31 May 2005 14:40:40 +0000 (GMT) (envelope-from steve@lonres.com) Received: from mail.lonres.com ([194.70.153.187]) by anchor-post-36.mail.demon.net with esmtp (Exim 4.42) id 1Dd7v3-000ED3-Km for freebsd-hackers@freebsd.org; Tue, 31 May 2005 14:40:38 +0000 Received: from bibipentium.lonres.com (bibipentium.lonres.com [10.10.10.225]) by mail.lonres.com (Postfix) with SMTP id 559532E09F for ; Tue, 31 May 2005 15:40:37 +0100 (BST) Received: by bibipentium.lonres.com (sSMTP sendmail emulation); Tue, 31 May 2005 15:41:15 +0100 From: "Steve Roome" Date: Tue, 31 May 2005 15:41:15 +0100 To: freebsd-hackers@freebsd.org Message-ID: <20050531144115.GA1317@bibipentium.lonres.com> Mail-Followup-To: Steve Roome , freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Wed, 01 Jun 2005 12:01:01 +0000 Subject: Snapshots mtime seems to be getting updated X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 31 May 2005 14:40:40 -0000 Hi posted this to -questions, but I'm not getting any takers. This is on a few variants on -stable up to and around 5.4. I've not tested this on any FreeBSD box yet and found things to be working as expected. ------------------------------------------------------------------------ I'm taking a snapshot of a filesystem, mdconfigging and then mounting it read only,noatime. Somehow the mtime on the snapshot file is being updated (I think it's when I read) from the newly mounted md device of the snapshot. This doesn't seem right, and I've included the script I'm using to do this. I'm not really interested in ways to fix this script, though there are probably many better ways to do this, right now I'm just unsure if this is the correct behavious for snapshots. Thanks in advance if anyone knows what's going on here, Steve Roome P.S. I'm not subscribed to the mailing list, please cc responses to me. dodgy snapshot/remount/tar up script. ------------------------------------------------------------------------ #!/bin/sh # Copyright Steve Roome. You can do what you like with this code, I'd # suggest that you delete it. If you want to run it use: # ./whateverthisis.sh SNAPMOUNT="/backup_mnt" die() { echo $* exit 1 } MOUNT=$1 MYUID=`id -u` [ $MYUID -eq "0" ] || die "You are not root, you will need to be root to mount the snapshot" # Check that this is a UFS2 mount point /sbin/mount -p -t ufs | /usr/bin/awk '{print $2}' | grep -cx ${MOUNT} 2>&1 >/dev/null || die "$MOUNT is not a mounted ufs filesystem" BACKUP_DIR=${MOUNT}/hourly_snaps # Check that BACKUP_DIR exists and is writable SNAPDIR=$MOUNT/.snap [ -d $SNAPDIR ] || mkdir $SNAPDIR || die "Can't create $SNAPDIR" SNAPBASE=${SNAPDIR}/`/bin/date "+%Y.%m.%d.%H:%M"` SNAPFILE=${SNAPBASE}.snap SNAPMOUNT="/backup_mnt" SNAPTGZ=${SNAPBASE}.tgz TEMPTGZ=${SNAPBASE}.temp START_PWD=`pwd` #echo "Snapshots will be saved in ${SNAPDIR}" #echo "The next snapshot will be named ${SNAPFILE}" #echo "The snapshot will be mounted on ${SNAPMOUNT}" #echo "${SNAPMOUNT} will be tgz'ed to ${SNAPTGZ}" touch ${SNAPFILE} > /dev/null 2>&1 && rm ${SNAPFILE} || die "Can't save snapshot in $SNAPFILE" touch ${TEMPTGZ} > /dev/null 2>&1 && rm ${TEMPTGZ} || die "Can't save snapshot in $SNAPFILE" [ -d $SNAPMOUNT ] || mkdir $SNAPMOUNT || die "Can't create mount point $SNAPMOUNT" # Check that SNAPFILE can be created/deleted mksnap_ffs $MOUNT $SNAPFILE && MD_DEV=`mdconfig -a -t vnode -f $SNAPFILE` && mount -o ro,noatime /dev/$MD_DEV /${SNAPMOUNT} cd ${SNAPMOUNT} && tar -czp --exclude .snap/ -f ${TEMPTGZ} . 2>/dev/null || die "Failed to create tarfile: ${TEMPTGZ} PLEASE INVESTIGATE" cd ${START_PWD} umount ${SNAPMOUNT} MD_UNIT=`echo $MD_DEV | sed -e 's/^md//g'` mdconfig -d -u ${MD_UNIT} && rm -f ${SNAPFILE} && rmdir ${SNAPMOUNT} && mv ${TEMPTGZ} ${SNAPTGZ} && echo "${SNAPTGZ} ceated successfully from snapshot of ${MOUNT}" || die "Did not manage to clear up after backing up ${MOUNT}\nIntervention recommended" # finished okay! exit 0 From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 13:37:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEC4016A41F for ; Wed, 1 Jun 2005 13:37:53 +0000 (GMT) (envelope-from j.unger@addict.de) Received: from crow.addict.de (raven.addict.de [80.86.187.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0330143D54 for ; Wed, 1 Jun 2005 13:37:52 +0000 (GMT) (envelope-from j.unger@addict.de) Received: from crow.addict.de (raven.addict.de [80.86.187.141]) by crow.addict.de (8.12.9/8.12.6) with ESMTP id j51Dbn3H071608 for ; Wed, 1 Jun 2005 15:37:49 +0200 (CEST) (envelope-from j.unger@addict.de) Received: (from unger@localhost) by crow.addict.de (8.12.9/8.12.6/Submit) id j51Dbn1H071607 for freebsd-hackers@freebsd.org; Wed, 1 Jun 2005 15:37:49 +0200 (CEST) X-Authentication-Warning: crow.addict.de: unger set sender to j.unger@addict.de using -f Date: Wed, 1 Jun 2005 15:37:49 +0200 From: Juergen Unger To: freebsd-hackers@freebsd.org Message-ID: <20050601133749.GA64511@crow.addict.de> References: <200505230517.j4N5HUYd032003@beastie.mckusick.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200505230517.j4N5HUYd032003@beastie.mckusick.com> User-Agent: Mutt/1.4i Subject: Re: snapshots and innds X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 13:37:53 -0000 Hi ! I don't know if its may or may not be from the same reason: On an 5.4-p1 I started using snapshots on loopback mouted files with mdconfig. First I seems to be all ok but then more first one, then more and more processes get stuck in some (for me) unknown state and in the end even the start of the login shell for the serial console hang. Since I did not know how to look more into detail with this stuck processes the only way was to power-cycle. What can I do to track down this problem when I am able to reproduce it on the my testmachine (which is identical except memory to the system where it happend) ? any help welcome, Juergen On Sun, May 22, 2005 at 10:17:30PM -0700, Kirk McKusick wrote: > Excellent detective work on your part. The invarient that is being > broken here is that you are never supposed to hold a vnode locked > when you call vn_start_write. The call to vn_start_write should > be done in vm_object_sync before acquiring the vnode lock rather > than later in vnode_pager_putpages. Of course, moving the > vn_start_write out of vnode_pager_putpages means that we have to > track down every other caller of vnode_pager_putpages to make sure > that they have also done the vn_start_write call as well. > > Jeff Robertson has come up with a much cleaner way of dealing with > the suspension code that I believe he is using in the -current tree. > It puts a hook in the ufs_lock code that tracks the number of locks > held in each filesystem. To do a suspend, it blocks all new lock > requests on that filesystem by any thread that does not already > hold a lock and waits for all the existing locks to be released. > This obviates the need for the vn_start_write calls sprinkled all > through the system. I have copied Jeff on this email so that he > can comment further on this issue as he is much more up to speed > on it at the moment than I am. > > Kirk McKusick > > =-=-=-=-=-=-= > > From: steve@Watt.COM (Steve Watt) > Date: Sun, 22 May 2005 14:02:39 -0700 > In-Reply-To: steve@wattres.Watt.COM (Steve Watt) > "snapshots and innds" (Dec 18, 17:39) > To: freebsd-hackers@freebsd.org > Subject: Re: snapshots and innds > Cc: mckusick@mckusick.com > X-Archived: 1116795759.948751269@wattres.Watt.COM > X-ASK-Info: Whitelist match [from steve@watt.com] (2005/05/22 14:03:00) > > [ OK, there's a lot of text in here, but I have definitively found a > deadlock between ffs_mksnap and msync(). ] -- ENOSIG From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 15:06:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B544916A41C; Wed, 1 Jun 2005 15:06:16 +0000 (GMT) (envelope-from iampinetan@netscape.net) Received: from imo-d02.mx.aol.com (imo-d02.mx.aol.com [205.188.157.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48ED843D48; Wed, 1 Jun 2005 15:06:16 +0000 (GMT) (envelope-from iampinetan@netscape.net) Received: from iampinetan@netscape.net by imo-d02.mx.aol.com (mail_out_v38_r1.7.) id n.19.118d4972 (22681); Wed, 1 Jun 2005 11:06:10 -0400 (EDT) Received: from netscape.net (mow-m01.webmail.aol.com [64.12.184.129]) by air-in04.mx.aol.com (v106.2) with ESMTP id MAILININ42-5899429dcee19d; Wed, 01 Jun 2005 11:06:09 -0400 Date: Wed, 01 Jun 2005 11:06:09 -0400 From: iampinetan@netscape.net To: freebsd-net@freebsd.org MIME-Version: 1.0 Message-ID: <131B4F54.02941BE5.0F1E5A0A@netscape.net> X-Mailer: Atlas Mailer 2.0 X-AOL-IP: 220.168.125.241 X-AOL-Language: english Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Update to OpenKETA@FreeBSD v0.81 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 15:06:16 -0000 I feel so sorry to release two news at one day. The first opened version of OpenKETA@FreeBSD(0.80-alpha) was released at 04/29/2005. And we just updated the newer version (v0.81) today. ver. 0.81: 1. Changes all initial & free functions. To avoid the error when free function try to call some uninitialed mutex when initial operations occured error. 2. Changes the init_dc function. Let user can change the setting of total DC size with the help of /etc/keta_conf/keta.conf while do not need to update the macro's definition of DC_SIZE. 3. Add valid checking process of socket list into receive thread. ***************************************** Moreover I need some help about OpenKETA@FreeBSD v0.81's stability. OpenKETA@FreeBSD will malloc more than 300 MB momory in kmem_map when it starts. When I use BenchMark Factory to test it it has pretty stability and can run more than two days continuously. While if I use SPECWeb99 to test it it just can run 5-7 hours and OS gives following information and panic kmem_malloc(4096): kmem_map too small: 629145600 total allocated I know it is the panic information of kmem_malloc. After I trace the panic context using KDB I got that all panices are results of soaccept or sosend. I cannot get any ideas about the it. When using BF the OS has more 20-30% idle CPU time, while when using SPECweb99 it will be busy 100%. Is the pager daemon can not scheduled to collect something to free memory list? What is the reasons and solutions about it? __________________________________________________________________ Switch to Netscape Internet Service. As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 15:49:03 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 210F716A41F for ; Wed, 1 Jun 2005 15:49:03 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id E055743D1D for ; Wed, 1 Jun 2005 15:49:02 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.3/8.13.3) with ESMTP id j51Fn2A3091743; Wed, 1 Jun 2005 08:49:02 -0700 (PDT) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.3/8.13.3/Submit) id j51Fn2Uu091742; Wed, 1 Jun 2005 08:49:02 -0700 (PDT) (envelope-from steve) Message-Id: <200506011549.j51Fn2Uu091742@wattres.watt.com> From: steve@Watt.COM (Steve Watt) Date: Wed, 1 Jun 2005 08:49:02 -0700 In-Reply-To: Juergen Unger "Re: snapshots and innds" (Jun 1, 15:24) X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: Juergen Unger X-Archived: 1117640942.673384347@wattres.Watt.COM X-Virus-Scanned: ClamAV 0.85.1/905/Wed Jun 1 00:28:38 2005 on wattres.Watt.COM X-Virus-Status: Clean Cc: freebsd-hackers@freebsd.org Subject: Re: snapshots and innds X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 15:49:03 -0000 On Jun 1, 15:24, Juergen Unger wrote: } Subject: Re: snapshots and innds } Hi ! } } I don't know if its may or may not be from the same reason: } On an 5.4-p1 I started using snapshots on loopback mouted } files with mdconfig. First I seems to be all ok but then } more first one, then more and more processes get stuck in some } (for me) unknown state and in the end even the start of the } login shell for the serial console hang. Since I did not } know how to look more into detail with this stuck processes } the only way was to power-cycle. } What can I do to track down this problem when I am able } to reproduce it on the my testmachine (which is identical } except memory to the system where it happend) ? You will need to compile DDB into your kernel. When the machine starts getting ill, if you can still run "ps -axl", and you're seeing this problem, you'll see a bunch of processes with wchan of "suspfs". If you can't run ps, hit ++ on the system console, and do "ps" there. The "wmesg" column on a number of processes/threads will say "suspfs", and somewhere there'll be a mksnap_ffs waiting on "ufs". If that's not what it looks like, you're not seeing this problem. The best choice at that point would be to type "call doadump" at the DDB prompt to get a kernel dump (going through doadump seems to be the most reliable way to get a usable dump, at least for me). -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM Whois: SW32 Free time? There's no such thing. It just comes in varying prices... From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 16:37:11 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 080F816A41C for ; Wed, 1 Jun 2005 16:37:11 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id A935943D4C for ; Wed, 1 Jun 2005 16:37:10 +0000 (GMT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by mailhost.stack.nl (Postfix) with ESMTP id 2003A1F021; Wed, 1 Jun 2005 18:37:09 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id EF7E56762; Wed, 1 Jun 2005 18:37:08 +0200 (CEST) Date: Wed, 1 Jun 2005 18:37:08 +0200 From: Marc Olzheim To: Steve Roome , freebsd-hackers@freebsd.org Message-ID: <20050601163708.GA79793@stack.nl> References: <20050531144115.GA1317@bibipentium.lonres.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20050531144115.GA1317@bibipentium.lonres.com> X-Operating-System: FreeBSD hammer.stack.nl 5.4-STABLE FreeBSD 5.4-STABLE X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.9i Cc: Subject: Re: Snapshots mtime seems to be getting updated X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 16:37:11 -0000 --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, May 31, 2005 at 03:41:15PM +0100, Steve Roome wrote: > # Check that SNAPFILE can be created/deleted >=20 > mksnap_ffs $MOUNT $SNAPFILE && MD_DEV=3D`mdconfig -a -t vnode -f $SNAPFIL= E` && mount -o ro,noatime /dev/$MD_DEV /${SNAPMOUNT} Perhaps a mdconfig option '-o readonly' might help... Zlo --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCneQ0ezjnobFOgrERAtezAJsGZYvZNfoSs5yz3n1VOyVdThOWqwCcC4Jg e8C2NTTxdx8j3neDYEDgI9Y= =UF4S -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 18:24:10 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D20D216A41C for ; Wed, 1 Jun 2005 18:24:10 +0000 (GMT) (envelope-from gizmen@blurp.one.pl) Received: from blurp.one.pl (blurp.t2.ds.pwr.wroc.pl [156.17.224.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C40643D53 for ; Wed, 1 Jun 2005 18:24:10 +0000 (GMT) (envelope-from gizmen@blurp.one.pl) Received: by blurp.one.pl (Postfix, from userid 1001) id EED5272F; Wed, 1 Jun 2005 20:24:05 +0200 (CEST) Date: Wed, 1 Jun 2005 20:24:05 +0200 From: GiZmen To: hackers@freebsd.org Message-ID: <20050601182405.GA31071@procent.t2.ds.pwr.wroc.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.9i Cc: Subject: problem with file system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 18:24:10 -0000 Hi, Recently my box had a power failure and after reboot when i wanted to check my encrypted filesystem with fsck i have that message: # fsck /dev/ad0s1g.bde ** /dev/ad0s1g.bde (NO WRITE) ** Last Mounted on /crypto ** Phase 1 - Check Blocks and Sizes fsck_ufs: cannot alloc 2129430592 bytes for inoinfo or: # fsck_ffs -p /dev/ad0s1g.bde /dev/ad0s1g.bde: NO WRITE ACCESS /dev/ad0s1g.bde: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. i know that i have no write access but this file system is mounted right now and it seems that everything is ok. I have tried to repair this when this file system was unmounted but i had the same errors. I don't know how to repair this file system. Could anyone point me what to do? thx -- Best Regards: GiZmen UNIX is user-friendly; it's just picky about its friends UNIX is simple; it just takes a genius to understand its simplicity From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 20:16:36 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A82216A41C for ; Wed, 1 Jun 2005 20:16:36 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from pasmtp.tele.dk (pasmtp.tele.dk [193.162.159.95]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B5B743D1D for ; Wed, 1 Jun 2005 20:16:35 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (0x535c0e2a.sgnxx1.adsl-dhcp.tele.dk [83.92.14.42]) by pasmtp.tele.dk (Postfix) with ESMTP id B6EEC1EC307 for ; Wed, 1 Jun 2005 22:16:32 +0200 (CEST) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.3) with ESMTP id j51KGSTm045628 for ; Wed, 1 Jun 2005 22:16:28 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: hackers@freebsd.org From: Poul-Henning Kamp Date: Wed, 01 Jun 2005 22:16:28 +0200 Message-ID: <45627.1117656988@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Subject: wishlist for sysutils/xbatt: two batteries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 20:16:36 -0000 My thinkpad has two batteries and apm reports this: APM version: 1.2 APM Management: Disabled AC Line status: on-line Battery Status: charging Remaining battery life: 49% Remaining battery time: unknown Number of batteries: 2 Battery 0: Battery Status: charging Remaining battery life: 98% Remaining battery time: 0:00:00 Battery 1: Battery Status: critical Remaining battery life: 0% Remaining battery time: 0:00:00 Resume timer: unknown Resume on ring indicator: disabled Isn't there some kind soul who can make sysutils/xbatt (or some other X11 tool) show the status for the two batteries individually ? -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 20:38:33 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E12216A41C for ; Wed, 1 Jun 2005 20:38:33 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from cheer.mahoroba.org (gw4.mahoroba.org [218.45.22.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id DDB4443D1D for ; Wed, 1 Jun 2005 20:38:32 +0000 (GMT) (envelope-from ume@mahoroba.org) Received: from lyrics.mahoroba.org (ume@lyrics.mahoroba.org [IPv6:3ffe:501:185b:8010:280:88ff:fe03:4841]) (user=ume mech=CRAM-MD5 bits=0) by cheer.mahoroba.org (8.13.3/8.13.3) with ESMTP/inet6 id j51KcNPn099093 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Jun 2005 05:38:23 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Thu, 02 Jun 2005 05:38:21 +0900 Message-ID: From: Hajimu UMEMOTO To: Poul-Henning Kamp In-Reply-To: <45627.1117656988@critter.freebsd.dk> References: <45627.1117656988@critter.freebsd.dk> User-Agent: xcite1.38> Wanderlust/2.15.1 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/22.0.50 (i386-unknown-freebsd5.4) MULE/5.0 (SAKAKI) X-Operating-System: FreeBSD 5.4-STABLE X-PGP-Key: http://www.imasy.or.jp/~ume/publickey.asc X-PGP-Fingerprint: 1F00 0B9E 2164 70FC 6DC5 BF5F 04E9 F086 BF90 71FE Organization: Internet Mutual Aid Society, YOKOHAMA MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-2.0b5 (cheer.mahoroba.org [IPv6:3ffe:501:185b:8010::1]); Thu, 02 Jun 2005 05:38:24 +0900 (JST) X-Virus-Scanned: by amavisd-new X-Virus-Status: Clean X-Spam-Status: No, score=-5.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on cheer.mahoroba.org Cc: hackers@freebsd.org Subject: Re: wishlist for sysutils/xbatt: two batteries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 20:38:33 -0000 Hi, >>>>> On Wed, 01 Jun 2005 22:16:28 +0200 >>>>> Poul-Henning Kamp said: phk> Isn't there some kind soul who can make sysutils/xbatt (or some other phk> X11 tool) show the status for the two batteries individually ? sysutils/gkrellm2 does. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 21:00:46 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AF1516A41C for ; Wed, 1 Jun 2005 21:00:46 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5E1643D53 for ; Wed, 1 Jun 2005 21:00:45 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id j51L0fug021413; Wed, 1 Jun 2005 16:00:41 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <429E21E7.2000501@centtech.com> Date: Wed, 01 Jun 2005 16:00:23 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050504 X-Accept-Language: en-us, en MIME-Version: 1.0 To: GiZmen References: <20050601182405.GA31071@procent.t2.ds.pwr.wroc.pl> In-Reply-To: <20050601182405.GA31071@procent.t2.ds.pwr.wroc.pl> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: problem with file system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jun 2005 21:00:46 -0000 GiZmen wrote: > Hi, > > Recently my box had a power failure and after reboot when > i wanted to check my encrypted filesystem with fsck i > have that message: > > # fsck /dev/ad0s1g.bde > ** /dev/ad0s1g.bde (NO WRITE) > ** Last Mounted on /crypto > ** Phase 1 - Check Blocks and Sizes > fsck_ufs: cannot alloc 2129430592 bytes for inoinfo > > or: > > # fsck_ffs -p /dev/ad0s1g.bde > /dev/ad0s1g.bde: NO WRITE ACCESS > /dev/ad0s1g.bde: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. > > > i know that i have no write access but this file system is > mounted right now and it seems that everything is ok. > I have tried to repair this when this file system was unmounted > but i had the same errors. > > I don't know how to repair this file system. Could anyone point me > what to do? I'm struggling with the same problem. Suggestion so far from Don Lewis: Try setting kern.maxdsiz to a larger value in /boot/loader.conf and rebooting. I've got mine set to 1GB. kern.maxdsiz="1073741824" This didn't do it for me, but it might work for you. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology A lost ounce of gold may be found, a lost moment of time never. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 2 02:14:11 2005 Return-Path: X-Original-To: hackers@FreeBSD.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 21B9F16A41C for ; Thu, 2 Jun 2005 02:14:11 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (217-ip-163.nccn.net [209.79.217.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id A947743D49 for ; Thu, 2 Jun 2005 02:14:10 +0000 (GMT) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.13.1/8.13.1) with ESMTP id j522DswH002222; Wed, 1 Jun 2005 19:13:59 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <200506020213.j522DswH002222@gw.catspoiler.org> Date: Wed, 1 Jun 2005 19:13:54 -0700 (PDT) From: Don Lewis To: anderson@centtech.com In-Reply-To: <429E21E7.2000501@centtech.com> MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Cc: hackers@FreeBSD.org Subject: Re: problem with file system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 02:14:11 -0000 On 1 Jun, Eric Anderson wrote: > GiZmen wrote: >> Hi, >> >> Recently my box had a power failure and after reboot when >> i wanted to check my encrypted filesystem with fsck i >> have that message: >> >> # fsck /dev/ad0s1g.bde >> ** /dev/ad0s1g.bde (NO WRITE) >> ** Last Mounted on /crypto >> ** Phase 1 - Check Blocks and Sizes >> fsck_ufs: cannot alloc 2129430592 bytes for inoinfo >> >> or: >> >> # fsck_ffs -p /dev/ad0s1g.bde >> /dev/ad0s1g.bde: NO WRITE ACCESS >> /dev/ad0s1g.bde: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. >> >> >> i know that i have no write access but this file system is >> mounted right now and it seems that everything is ok. >> I have tried to repair this when this file system was unmounted >> but i had the same errors. >> >> I don't know how to repair this file system. Could anyone point me >> what to do? > > I'm struggling with the same problem. Suggestion so far from Don Lewis: > > Try setting kern.maxdsiz to a larger value in /boot/loader.conf and > rebooting. I've got mine set to 1GB. > kern.maxdsiz="1073741824" > > This didn't do it for me, but it might work for you. I suspect this is a different problem. In your case fsck_ufs was trying to allocate a sane amount of memory, so my best guess was that your file system was sufficiently large that you were running into the kernel enforced datasize limit. Run "limit" in your shell to double check that the datasize limit increased. In this case >> fsck_ufs: cannot alloc 2129430592 bytes for inoinfo tells me that the power failure likely corrupted one of the cylinder group blocks. Here's my suggestion on how to fix this: At line 92 in src/sbin/fsck_ffs/pass1.c, you should see the following block of code: for (c = 0; c < sblock.fs_ncg; c++) { inumber = c * sblock.fs_ipg; setinodebuf(inumber); getblk(&cgblk, cgtod(&sblock, c), sblock.fs_cgsize); if (sblock.fs_magic == FS_UFS2_MAGIC) inosused = cgrp.cg_initediblk; else inosused = sblock.fs_ipg; Try changing inosused = cgrp.cg_initediblk; to inosused = (cgrp.cg_initediblk <= sblock.fs_ipg && cgrp.cg_initediblk > 0) ? cgrp.cg_initediblk : sblock.fs_ipg; Be prepared for the possibilty of a lot of file system damage. You might see a lot of files that claim the same blocks, and a lot of stuff could end up in lost+found. I recommend buying an UPS and installing one of the UPS utilities from ports that does a clean shutdown before the battery runs down. At some point, I'd like to commit a proper fix to fsck, but that's a little more involved and my day job is keeping me way too busy. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 1 17:14:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 34B6516A424 for ; Wed, 1 Jun 2005 17:14:43 +0000 (GMT) (envelope-from steve@lonres.com) Received: from anchor-post-36.mail.demon.net (anchor-post-36.mail.demon.net [194.217.242.86]) by mx1.FreeBSD.org (Postfix) with ESMTP id E78D443D62 for ; Wed, 1 Jun 2005 17:14:41 +0000 (GMT) (envelope-from steve@lonres.com) Received: from mail.lonres.com ([194.70.153.187]) by anchor-post-36.mail.demon.net with esmtp (Exim 4.42) id 1DdWnd-000NCT-Lk; Wed, 01 Jun 2005 17:14:41 +0000 Received: from bibipentium.lonres.com (bibipentium.lonres.com [10.10.10.225]) by mail.lonres.com (Postfix) with SMTP id 941E72E06C; Wed, 1 Jun 2005 18:14:37 +0100 (BST) Received: by bibipentium.lonres.com (sSMTP sendmail emulation); Wed, 1 Jun 2005 18:15:15 +0100 From: "Steve Roome" Date: Wed, 1 Jun 2005 18:15:15 +0100 To: Marc Olzheim Message-ID: <20050601171515.GG7584@bibipentium.lonres.com> Mail-Followup-To: Steve Roome , Marc Olzheim , freebsd-hackers@freebsd.org References: <20050531144115.GA1317@bibipentium.lonres.com> <20050601163708.GA79793@stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050601163708.GA79793@stack.nl> User-Agent: Mutt/1.4.2.1i X-Mailman-Approved-At: Thu, 02 Jun 2005 11:53:58 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Snapshots mtime seems to be getting updated X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 01 Jun 2005 17:14:43 -0000 On Wed, Jun 01, 2005 at 06:37:08PM +0200, Marc Olzheim wrote: > On Tue, May 31, 2005 at 03:41:15PM +0100, Steve Roome wrote: > > # Check that SNAPFILE can be created/deleted > > > > mksnap_ffs $MOUNT $SNAPFILE && MD_DEV=`mdconfig -a -t vnode -f $SNAPFILE` && mount -o ro,noatime /dev/$MD_DEV /${SNAPMOUNT} > > Perhaps a mdconfig option '-o readonly' might help... > > Zlo On this version 5.4-stable (as of 29 apr) readonly has no effect for mdconfig, it's documented somewhere, (certainly I at least remember seeing it in the code). I'll have another look later and see if anyone has changed md's to actually honour it. Many thanks though, I didn't think I was ever going to get any suggestions on this one! Steve From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 2 17:39:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BEE516A41C for ; Thu, 2 Jun 2005 17:39:29 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7C6F43D1F for ; Thu, 2 Jun 2005 17:39:28 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.13.4/8.13.4) with ESMTP id j52HdQGv007459 for ; Thu, 2 Jun 2005 13:39:26 -0400 (EDT) Received: from localhost (essenz@localhost) by beck.quonix.net (8.13.4/8.13.4/Submit) with ESMTP id j52HdQkY007456 for ; Thu, 2 Jun 2005 13:39:26 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Thu, 2 Jun 2005 13:39:26 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: freebsd-hackers@freebsd.org Message-ID: <20050602133007.O5423@beck.quonix.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamAssassin-3.0.3-Score: -2.82/5.8 ALL_TRUSTED X-MimeDefang-2.51: beck.quonix.net X-Scanned-By: MIMEDefang 2.51 on 146.145.66.90 Subject: ssh SOCKS proxy... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 02 Jun 2005 17:39:29 -0000 Is there a way to log ssh proxy traffic? Simply writing out transferred amounts to syslog would be fine, I could then go in and calculate daily and weekly totals. I havent tried changing the default levels with LogLevel in config file, but I wasn't sure if those would contain this data. If I can't record total data transfer from ssh proxy, my only other alternative is to do something at the switch - but I currently dont have a switch capable of doing this. Thanks John From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 00:49:36 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7387016A41C for ; Fri, 3 Jun 2005 00:49:36 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from staff.usd.ac.id (staff.usd.ac.id [202.152.7.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 49D4243D48 for ; Fri, 3 Jun 2005 00:49:35 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from localhost (webmail.usd.ac.id [202.152.7.139]) by staff.usd.ac.id (8.11.0/8.11.0) with ESMTP id j530tag05929 for ; Fri, 3 Jun 2005 07:55:37 +0700 Received: from 202.65.114.150 ([202.65.114.150]) by webmail.usd.ac.id (IMP) with HTTP for ; Fri, 3 Jun 2005 07:58:32 +0700 Message-ID: <1117760312.429fab380da4c@webmail.usd.ac.id> Date: Fri, 3 Jun 2005 07:58:32 +0700 From: iwan@staff.usd.ac.id To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Originating-IP: 202.65.114.150 Subject: squid and freebsd configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 00:49:36 -0000 Hi, I just setup freebsd box with squid. It is running normal, but ... it is very slow speed when I connect to internet through this proxy. I never set this freebsd with firewall or with ipf or ipfw. heeks ... internet | | ip public +----------+ | freebsd | | squid | +----------+ | ip private | local Somebody help me ... ========================== Sanata Dharma University http://www.usd.ac.id -------------------------- ICT Supported by BAPSI USD http://www.bapsi.usd.ac.id ========================== From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 02:20:21 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5BC516A41C for ; Fri, 3 Jun 2005 02:20:21 +0000 (GMT) (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 D3C7843D1D for ; Fri, 3 Jun 2005 02:20:20 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j532KBwa042158; Fri, 3 Jun 2005 11:50:11 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 3 Jun 2005 11:49:55 +0930 User-Agent: KMail/1.8 References: <1117760312.429fab380da4c@webmail.usd.ac.id> In-Reply-To: <1117760312.429fab380da4c@webmail.usd.ac.id> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2809507.JEucKFlHm3"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506031150.07331.doconnor@gsoft.com.au> X-Spam-Score: -1.7 () IN_REP_TO, PGP_SIGNATURE_2, REFERENCES, SPAM_PHRASE_00_01, USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Cc: iwan@staff.usd.ac.id Subject: Re: squid and freebsd configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 02:20:21 -0000 --nextPart2809507.JEucKFlHm3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 3 Jun 2005 10:28, iwan@staff.usd.ac.id wrote: > I just setup freebsd box with squid. It is running normal, but ... it is > very slow speed when I connect to internet through this proxy. I never set > this freebsd with firewall or with ipf or ipfw. heeks ... Read the squid log file? Have you tried downloading from the FreeBSD box using, say fetch? =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 --nextPart2809507.JEucKFlHm3 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCn75X5ZPcIHs/zowRAvmAAKCeCCaFoEdR6DHiMPqqP7iZtkqVdgCglugp x007r0b4/TalMNGdLlADwOk= =AaKR -----END PGP SIGNATURE----- --nextPart2809507.JEucKFlHm3-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 03:41:32 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A390616A41C for ; Fri, 3 Jun 2005 03:41:32 +0000 (GMT) (envelope-from shiner_chen@yahoo.com.cn) Received: from web15510.mail.cnb.yahoo.com (web15510.mail.cnb.yahoo.com [202.165.102.39]) by mx1.FreeBSD.org (Postfix) with SMTP id 10F8943D4C for ; Fri, 3 Jun 2005 03:41:31 +0000 (GMT) (envelope-from shiner_chen@yahoo.com.cn) Received: (qmail 34803 invoked by uid 60001); 3 Jun 2005 03:41:30 -0000 Message-ID: <20050603034129.34801.qmail@web15510.mail.cnb.yahoo.com> Received: from [61.187.16.2] by web15510.mail.cnb.yahoo.com via HTTP; Fri, 03 Jun 2005 11:41:29 CST Date: Fri, 3 Jun 2005 11:41:29 +0800 (CST) From: shiner chen To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: a error about the kern_sendit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 03:41:32 -0000 i wrote a function to send the data of my a data structure in my kld by socket in kernel, the function as follow: the arg 1 is file descriptor of socket. the arg 2 is the address of data structure. the arg 3 is the length of data structure and it is 20 bytes . the error return by kern_sendit is EFAULT(14), i check the address of data structure ,but it is right! why ? who can tell me. thanks!! int loadinfo_send(int so_fd, struct thread *td, char *snd_buf, unsigned int uBufLen) { int st = 0; /* read */ struct iovec aiov; struct msghdr msg; msg.msg_name = 0; msg.msg_namelen = 0; msg.msg_iov = &aiov; msg.msg_iovlen = 1; msg.msg_control = 0; msg.msg_flags = 0; /* do actual send operation now */ aiov.iov_base = snd_buf ; aiov.iov_len = uBufLen; ///////// there is error//////////////////////// /*st = kern_sendit(td, so_fd,&msg,0,0);*/ st = keta_kern_sendit(td, control_so,&msg,0,0); if( st!=0 ){ if ( st == EAGAIN ){ loadinfo_msleep(1); } else{ log(LOG_DEBUG,"in loadinfo_send, send error(%d)!\n",st); return st; } } log(LOG_DEBUG,"send successfully !\n"); return st; } --------------------------------- DO YOU YAHOO!? ÑÅ»¢Ãâ·ÑGÓÊÏ䣭ÖйúµÚÒ»¾øÎÞÀ¬»øÓʼþɧÈų¬´óÓÊÏä From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 05:20:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A96B16A41C for ; Fri, 3 Jun 2005 05:20:58 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from mail22.sea5.speakeasy.net (mail22.sea5.speakeasy.net [69.17.117.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id D075E43D54 for ; Fri, 3 Jun 2005 05:20:57 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 650 invoked from network); 3 Jun 2005 05:20:57 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail22.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 3 Jun 2005 05:20:57 -0000 Received: from hydrogen.funkthat.com (axydil@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.12.10/8.11.6) with ESMTP id j535KuEa045169; Thu, 2 Jun 2005 22:20:56 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id j535Kt4A045168; Thu, 2 Jun 2005 22:20:55 -0700 (PDT) Date: Thu, 2 Jun 2005 22:20:55 -0700 From: John-Mark Gurney To: shiner chen Message-ID: <20050603052054.GE594@funkthat.com> Mail-Followup-To: shiner chen , freebsd-hackers@freebsd.org References: <20050603034129.34801.qmail@web15510.mail.cnb.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050603034129.34801.qmail@web15510.mail.cnb.yahoo.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org Subject: Re: a error about the kern_sendit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 05:20:58 -0000 shiner chen wrote this message on Fri, Jun 03, 2005 at 11:41 +0800: > i wrote a function to send the data of my a data structure in my kld by socket in kernel, the function as follow: > the arg 1 is file descriptor of socket. the arg 2 is the address of data structure. the arg 3 is the length of data structure and it is 20 bytes . > > the error return by kern_sendit is EFAULT(14), i check the address of data structure ,but it is right! > why ? who can tell me. thanks!! This buffer is in SYSSPACE: > /* do actual send operation now */ > aiov.iov_base = snd_buf ; > aiov.iov_len = uBufLen; > ///////// there is error//////////////////////// > /*st = kern_sendit(td, so_fd,&msg,0,0);*/ ^ but you say it's in userspace.. Look at uio.h for the enum uio_seg definition... and uio(9) is also useful... Try replacing that last zero with UIO_SYSSPACE.. > st = keta_kern_sendit(td, control_so,&msg,0,0); and possibly here... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 07:11:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AAE516A41C for ; Fri, 3 Jun 2005 07:11:50 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from staff.usd.ac.id (staff.usd.ac.id [202.152.7.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id B242543D49 for ; Fri, 3 Jun 2005 07:11:48 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from localhost (webmail.usd.ac.id [202.152.7.139]) by staff.usd.ac.id (8.11.0/8.11.0) with ESMTP id j537HZg08288; Fri, 3 Jun 2005 14:17:39 +0700 Received: from 202.65.114.228 ([202.65.114.228]) by webmail.usd.ac.id (IMP) with HTTP for ; Fri, 3 Jun 2005 14:20:30 +0700 Message-ID: <1117783230.42a004bef322d@webmail.usd.ac.id> Date: Fri, 3 Jun 2005 14:20:30 +0700 From: iwan@staff.usd.ac.id To: "Daniel O'Connor" References: <1117760312.429fab380da4c@webmail.usd.ac.id> <200506031150.07331.doconnor@gsoft.com.au> In-Reply-To: <200506031150.07331.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Originating-IP: 202.65.114.228 Cc: freebsd-hackers@freebsd.org Subject: Re: squid and freebsd configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 07:11:50 -0000 I read the squid log file and I think no problem with it, its normal. I try to fetch something on internet i.e google.com, I found that my proxy goes well, and I think it is slow. Must I setting my box with ipf or ipfw ?? I use freebsd 5.3-release and squid v. 2.5-STABLE10 Thx. > On Fri, 3 Jun 2005 10:28, iwan@staff.usd.ac.id wrote: > > I just setup freebsd box with squid. It is running normal, but ... it is > > very slow speed when I connect to internet through this proxy. I never set > > this freebsd with firewall or with ipf or ipfw. heeks ... > > Read the squid log file? > Have you tried downloading from the FreeBSD box using, say fetch? > > -- > 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 > ========================== Sanata Dharma University http://www.usd.ac.id -------------------------- ICT Supported by BAPSI USD http://www.bapsi.usd.ac.id ========================== From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 07:18:34 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88BAD16A41C for ; Fri, 3 Jun 2005 07:18:34 +0000 (GMT) (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 B32EB43D53 for ; Fri, 3 Jun 2005 07:18:33 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j537IStT047162; Fri, 3 Jun 2005 16:48:28 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: iwan@staff.usd.ac.id Date: Fri, 3 Jun 2005 16:48:23 +0930 User-Agent: KMail/1.8 References: <1117760312.429fab380da4c@webmail.usd.ac.id> <200506031150.07331.doconnor@gsoft.com.au> <1117783230.42a004bef322d@webmail.usd.ac.id> In-Reply-To: <1117783230.42a004bef322d@webmail.usd.ac.id> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart7709879.nhLXQCDaZW"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506031648.23940.doconnor@gsoft.com.au> X-Spam-Score: -2 () IN_REP_TO, PGP_SIGNATURE_2, REFERENCES, SPAM_PHRASE_01_02, USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Cc: freebsd-hackers@freebsd.org Subject: Re: squid and freebsd configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 07:18:34 -0000 --nextPart7709879.nhLXQCDaZW Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 3 Jun 2005 16:50, iwan@staff.usd.ac.id wrote: > I read the squid log file and I think no problem with it, its normal. I t= ry > to fetch something on internet i.e google.com, I found that my proxy goes > well, and I think it is slow. I don't understand what you mean here.. Is it too slow? How are you testing it? Is it slow to transfer bulk data, or to do individual connections? Is your DNS set up properly? Can squid reverse lookup the names of the IPs= =20 that are connecting to it? =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 --nextPart7709879.nhLXQCDaZW Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCoAQ/5ZPcIHs/zowRAh3MAJ433yxenUAYQC+s1gkflfTQXCmUTACfVIin hWpE77/i3tF2KHIaG0LjoXU= =wkgn -----END PGP SIGNATURE----- --nextPart7709879.nhLXQCDaZW-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 07:36:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7092016A41C for ; Fri, 3 Jun 2005 07:36:28 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from staff.usd.ac.id (staff.usd.ac.id [202.152.7.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F7B643D1F for ; Fri, 3 Jun 2005 07:36:26 +0000 (GMT) (envelope-from iwan@staff.usd.ac.id) Received: from localhost (webmail.usd.ac.id [202.152.7.139]) by staff.usd.ac.id (8.11.0/8.11.0) with ESMTP id j537gOg08410; Fri, 3 Jun 2005 14:42:24 +0700 Received: from 202.65.114.154 ([202.65.114.154]) by webmail.usd.ac.id (IMP) with HTTP for ; Fri, 3 Jun 2005 14:45:20 +0700 Message-ID: <1117784720.42a00a9037266@webmail.usd.ac.id> Date: Fri, 3 Jun 2005 14:45:20 +0700 From: iwan@staff.usd.ac.id To: "Daniel O'Connor" References: <1117760312.429fab380da4c@webmail.usd.ac.id> <200506031150.07331.doconnor@gsoft.com.au> <1117783230.42a004bef322d@webmail.usd.ac.id> <200506031648.23940.doconnor@gsoft.com.au> In-Reply-To: <200506031648.23940.doconnor@gsoft.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Originating-IP: 202.65.114.154 Cc: freebsd-hackers@freebsd.org Subject: Re: squid and freebsd configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 07:36:28 -0000 > I don't understand what you mean here.. > Is it too slow? How are you testing it? I fetch to google.com, and I receive message that I get some bytes from there more about 25 seconds. > Is it slow to transfer bulk data, or to do individual connections? > I dont know about that data. > Is your DNS set up properly? Can squid reverse lookup the names of the IPs > that are connecting to it? Yes, I set my DNS properly, because I can lookup the names of the IP google.com less than 5 seconds. I confuse. I just setup and adding configuration to rc.conf: firewall_enable="YES" firewall_open="OPEN" And I want to add some rules with ipf, but I still confuse. Can you help me to this configuration ? Thanks alot. ========================== Sanata Dharma University http://www.usd.ac.id -------------------------- ICT Supported by BAPSI USD http://www.bapsi.usd.ac.id ========================== From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 07:37:51 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 230F216A41C for ; Fri, 3 Jun 2005 07:37:51 +0000 (GMT) (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 5295D43D1F for ; Fri, 3 Jun 2005 07:37:50 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j537bj9f047417; Fri, 3 Jun 2005 17:07:45 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: iwan@staff.usd.ac.id Date: Fri, 3 Jun 2005 17:07:40 +0930 User-Agent: KMail/1.8 References: <1117760312.429fab380da4c@webmail.usd.ac.id> <200506031648.23940.doconnor@gsoft.com.au> <1117784720.42a00a9037266@webmail.usd.ac.id> In-Reply-To: <1117784720.42a00a9037266@webmail.usd.ac.id> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2415251.uFKY2xQEQV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200506031707.41251.doconnor@gsoft.com.au> X-Spam-Score: -2.8 () IN_REP_TO, PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT, REFERENCES, SPAM_PHRASE_01_02, USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Cc: freebsd-hackers@freebsd.org Subject: Re: squid and freebsd configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 07:37:51 -0000 --nextPart2415251.uFKY2xQEQV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 3 Jun 2005 17:15, iwan@staff.usd.ac.id wrote: > > I don't understand what you mean here.. > > Is it too slow? How are you testing it? > > I fetch to google.com, and I receive message that I get some bytes from > there more about 25 seconds. I suspect squid can't look up the IP of machines in your network. > > Is your DNS set up properly? Can squid reverse lookup the names of the > > IPs that are connecting to it? > > Yes, I set my DNS properly, because I can lookup the names of the IP > google.com less than 5 seconds. > I confuse. That is just sending DNS requests out, what about machines inside your=20 network? > I just setup and adding configuration to rc.conf: > firewall_enable=3D"YES" > firewall_open=3D"OPEN" > > And I want to add some rules with ipf, but I still confuse. Can you help = me > to this configuration ? I think you should not touch your firewall configuration until you fix the= =20 rest of your network problems first. =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 --nextPart2415251.uFKY2xQEQV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCoAjF5ZPcIHs/zowRAvF4AJ9rdvpVJ2cPBgCIkouJpWnNYMlFZQCgm8Dn X7chNJzEs6i+HYdfej++L2I= =6jW4 -----END PGP SIGNATURE----- --nextPart2415251.uFKY2xQEQV-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 09:15:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F17716A41C for ; Fri, 3 Jun 2005 09:15:20 +0000 (GMT) (envelope-from baozhaolinuxer@yahoo.com) Received: from web31707.mail.mud.yahoo.com (web31707.mail.mud.yahoo.com [68.142.201.187]) by mx1.FreeBSD.org (Postfix) with SMTP id 023EA43D1F for ; Fri, 3 Jun 2005 09:15:19 +0000 (GMT) (envelope-from baozhaolinuxer@yahoo.com) Received: (qmail 31177 invoked by uid 60001); 3 Jun 2005 09:15:19 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RFFMzpxvcylGfAold4eRoV2SyQ5CJ/QVPuflGTg3J796C0PGA14QgIgHPQsLBlkk5EI/C0L9zhj8C0pKo0643x7X+wEK5UIvqxGhS/XZaQUHWP2+mO8l4JRO87RaXYwLfKOFNqRfQVN6JD7xbafhi70KWVRk3XNpit8ezLx3gnQ= ; Message-ID: <20050603091519.31175.qmail@web31707.mail.mud.yahoo.com> Received: from [218.75.247.252] by web31707.mail.mud.yahoo.com via HTTP; Fri, 03 Jun 2005 02:15:19 PDT Date: Fri, 3 Jun 2005 02:15:19 -0700 (PDT) From: Bao Zhao To: freebsd-hackers MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: How FREEBSD deals with request for continuous physical pages X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 09:15:20 -0000 Linux use buddy allocator.but I find it seems that FREEBSD uses single page linked list. but SLAB and some drivers need continuous physical pages, so I wonder how FREEBSD solved this problem. Best Regards, Bao Zhao __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 09:37:21 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF60F16A41C for ; Fri, 3 Jun 2005 09:37:21 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5149A43D49 for ; Fri, 3 Jun 2005 09:37:20 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id B7C25760C8 for ; Fri, 3 Jun 2005 11:37:18 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12779-09 for ; Fri, 3 Jun 2005 11:37:11 +0200 (CEST) Received: from firewall.demig (p50838965.dip0.t-ipconnect.de [80.131.137.101]) by server.absolute-media.de (Postfix) with ESMTP id ED7987F641 for ; Fri, 3 Jun 2005 11:37:10 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j539Zccj036689 for ; Fri, 3 Jun 2005 11:35:38 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: "Freebsd-Hackers@Freebsd. Org" Date: Fri, 3 Jun 2005 11:35:39 +0200 Message-ID: <000001c5681f$9a5eb4e0$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Subject: using vkbd device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 09:37:21 -0000 Hello, I am trying to use vkbd to multiplex an at keyboard and an usb keyboard into syscons. Vkbd's control device's write routine expects ints to queue to the slave device. As I understand, those ints map 1:1 to the chars I read from a keyboard device, right? So I open, for example, /dev/kbd0, set it to K_RAW, read chars from it and write them as ints to vkbd's control device, right? Thank you for any help, Norbert Koch From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 12:07:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8656E16A41C for ; Fri, 3 Jun 2005 12:07:13 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33D7843D1F for ; Fri, 3 Jun 2005 12:07:12 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from firewall.demig (p50838965.dip0.t-ipconnect.de [80.131.137.101]) by server.absolute-media.de (Postfix) with ESMTP id A8C547D61E for ; Fri, 3 Jun 2005 14:07:10 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j53C3vGZ043912 for ; Fri, 3 Jun 2005 14:03:57 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: "Freebsd-Hackers@Freebsd. Org" Date: Fri, 3 Jun 2005 14:03:56 +0200 Message-ID: <000001c56834$519f2720$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Spam-Status: No, score=-102.8 required=5.0 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.3 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on firewall.demig X-Virus-Scanned: by amavisd-new Subject: O_NONBLOCK vs IO_NDELAY: what to use where? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 12:07:13 -0000 Hello. In releng-4 the device driver's read/write functions check for non-blocking i/o using (flag & IO_NDELAY) Is that changed in current to O_NONBLOCK? As I understand: #include IO_NDELAY for releng-4 and #include O_NONBLOCK for current. Correct? If yes, what exact version should I test for? Thank you, Norbert Koch From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 2 22:59:37 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 002AE16A41C for ; Thu, 2 Jun 2005 22:59:36 +0000 (GMT) (envelope-from Vijay.Singh@netapp.com) Received: from mx2.netapp.com (mx2.netapp.com [216.240.18.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB04643D1D for ; Thu, 2 Jun 2005 22:59:36 +0000 (GMT) (envelope-from Vijay.Singh@netapp.com) Received: from smtp2.corp.netapp.com (10.57.159.114) by mx2.netapp.com with ESMTP; 02 Jun 2005 15:59:36 -0700 X-IronPort-AV: i="3.93,162,1115017200"; d="scan'208"; a="223319842:sNHT16558764" Received: from svlexc02.hq.netapp.com (svlexc02.corp.netapp.com [10.57.157.136]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id j52Mxaj4029671 for ; Thu, 2 Jun 2005 15:59:36 -0700 (PDT) Received: from lavender.hq.netapp.com ([10.56.11.75]) by svlexc02.hq.netapp.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 2 Jun 2005 15:59:36 -0700 Received: from magenta.hq.netapp.com ([10.56.11.84]) by lavender.hq.netapp.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 2 Jun 2005 15:59:36 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 2 Jun 2005 15:59:35 -0700 Message-ID: <637A278D8D0DBC438EA5E75C6E1818B90454D70F@magenta.hq.netapp.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: cc1: internal compiler error: Abort trap: 6 Thread-Index: AcVnxr8wGGxtkCBOQjaRDUnovY2eYw== From: "Singh, Vijay" To: X-OriginalArrivalTime: 02 Jun 2005 22:59:36.0411 (UTC) FILETIME=[BF8272B0:01C567C6] X-Mailman-Approved-At: Fri, 03 Jun 2005 12:18:36 +0000 Subject: cc1: internal compiler error: Abort trap: 6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 02 Jun 2005 22:59:37 -0000 Hello, while doing a make buildkernel on a FreeBSD 6.0 system, I get a compile failure in pf (depend): =3D=3D=3D> pf (depend) @ -> /usr/src/sys machine -> /usr/src/sys/i386/include echo "#define DEV_PF 1" > opt_pf.h echo "#define DEV_PFLOG 1" >> opt_pf.h echo "#define INET 1" > opt_inet.h echo "#define INET6 1" > opt_inet6.h echo "#define DEV_BPF 1" > opt_bpf.h rm -f .depend mkdep -f .depend -a -nostdinc -I/usr/src/sys/modules/pf/../../contrib/pf -D_KERNEL -DKLD_MODULE -I- -I/usr/src/sys/modules/pf/../../contrib/pf -I. -I@ -I@/contrib/altq -I@/../include -I/usr/include -I/usr/obj/usr/src/sys/SMP /usr/src/sys/modules/pf/../../contrib/pf/net/pf.c /usr/src/sys/modules/pf/../../contrib/pf/net/pf_if.c /usr/src/sys/modules/pf/../../contrib/pf/net/pf_subr.c /usr/src/sys/modules/pf/../../contrib/pf/net/pf_osfp.c /usr/src/sys/modules/pf/../../contrib/pf/net/pf_ioctl.c /usr/src/sys/modules/pf/../../contrib/pf/net/pf_norm.c /usr/src/sys/modules/pf/../../contrib/pf/net/pf_table.c /usr/src/sys/modules/pf/../../contrib/pf/net/if_pflog.c /usr/src/sys/modules/pf/../../contrib/pf/netinet/in4_cksum.c cc1: internal compiler error: Abort trap: 6 gcc -v Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.4.2 [FreeBSD] 20040728 Is this a known issue? How can I get around this? Vijay Singh NetApp=20 From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 13:11:16 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 623D216A41C for ; Fri, 3 Jun 2005 13:11:16 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D89643D48 for ; Fri, 3 Jun 2005 13:11:14 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.4/8.13.3) with ESMTP id j53DBBxZ032838 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 3 Jun 2005 15:11:11 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.4/8.13.3/Submit) id j53DBBax032837; Fri, 3 Jun 2005 15:11:11 +0200 (CEST) Date: Fri, 3 Jun 2005 15:11:11 +0200 From: Divacky Roman To: "Singh, Vijay" Message-ID: <20050603131111.GA32779@stud.fit.vutbr.cz> References: <637A278D8D0DBC438EA5E75C6E1818B90454D70F@magenta.hq.netapp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <637A278D8D0DBC438EA5E75C6E1818B90454D70F@magenta.hq.netapp.com> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.49 on 147.229.10.14 Cc: hackers@freebsd.org Subject: Re: cc1: internal compiler error: Abort trap: 6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 13:11:16 -0000 On Thu, Jun 02, 2005 at 03:59:35PM -0700, Singh, Vijay wrote: > Hello, while doing a make buildkernel on a FreeBSD 6.0 system, I get a > compile failure in pf (depend): > > ===> pf (depend) > @ -> /usr/src/sys > machine -> /usr/src/sys/i386/include > echo "#define DEV_PF 1" > opt_pf.h > echo "#define DEV_PFLOG 1" >> opt_pf.h > echo "#define INET 1" > opt_inet.h > echo "#define INET6 1" > opt_inet6.h > echo "#define DEV_BPF 1" > opt_bpf.h > rm -f .depend > mkdep -f .depend -a -nostdinc > -I/usr/src/sys/modules/pf/../../contrib/pf -D_KERNEL -DKLD_MODULE -I- > -I/usr/src/sys/modules/pf/../../contrib/pf -I. -I@ -I@/contrib/altq > -I@/../include -I/usr/include -I/usr/obj/usr/src/sys/SMP > /usr/src/sys/modules/pf/../../contrib/pf/net/pf.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_if.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_subr.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_osfp.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_ioctl.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_norm.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_table.c > /usr/src/sys/modules/pf/../../contrib/pf/net/if_pflog.c > /usr/src/sys/modules/pf/../../contrib/pf/netinet/in4_cksum.c > cc1: internal compiler error: Abort trap: 6 > > gcc -v > Using built-in specs. > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 3.4.2 [FreeBSD] 20040728 > > Is this a known issue? How can I get around this? gcc has just been upgraded to 3.4.4 so I expect a lot of ICEs fixed ;) ICE can also come from hw failure.. roman From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 13:17:26 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C272316A41C for ; Fri, 3 Jun 2005 13:17:26 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27BA743D4C for ; Fri, 3 Jun 2005 13:17:25 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) by eva.fit.vutbr.cz (envelope-from xdivac02@eva.fit.vutbr.cz) (8.13.4/8.13.3) with ESMTP id j53DHNiK033068 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Fri, 3 Jun 2005 15:17:23 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.4/8.13.3/Submit) id j53DHNsc033067; Fri, 3 Jun 2005 15:17:23 +0200 (CEST) Date: Fri, 3 Jun 2005 15:17:23 +0200 From: Divacky Roman To: Bao Zhao Message-ID: <20050603131723.GB32779@stud.fit.vutbr.cz> References: <20050603091519.31175.qmail@web31707.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050603091519.31175.qmail@web31707.mail.mud.yahoo.com> User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.49 on 147.229.10.14 Cc: freebsd-hackers Subject: Re: How FREEBSD deals with request for continuous physical pages X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 13:17:26 -0000 On Fri, Jun 03, 2005 at 02:15:19AM -0700, Bao Zhao wrote: > Linux use buddy allocator.but I find it seems that > FREEBSD uses single page linked list. but SLAB and > some drivers need continuous physical pages, so I > wonder how FREEBSD solved this problem. man contigmalloc From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 13:27:18 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50B7616A41C for ; Fri, 3 Jun 2005 13:27:18 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from server.absolute-media.de (server.absolute-media.de [213.239.231.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id E431543D49 for ; Fri, 3 Jun 2005 13:27:17 +0000 (GMT) (envelope-from NKoch@demig.de) Received: from localhost (unknown [127.0.0.1]) by server.absolute-media.de (Postfix) with ESMTP id 642C97F30D for ; Fri, 3 Jun 2005 15:27:15 +0200 (CEST) Received: from server.absolute-media.de ([127.0.0.1]) by localhost (server [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23756-10 for ; Fri, 3 Jun 2005 15:27:10 +0200 (CEST) Received: from firewall.demig (p50838965.dip0.t-ipconnect.de [80.131.137.101]) by server.absolute-media.de (Postfix) with ESMTP id 97FB57982E for ; Fri, 3 Jun 2005 15:27:10 +0200 (CEST) Received: from ws-ew-3 (ws-ew-3.w2kdemig [192.168.1.72]) by firewall.demig (8.13.4/8.13.1) with SMTP id j53DOKjg047520 for ; Fri, 3 Jun 2005 15:24:20 +0200 (CEST) (envelope-from NKoch@demig.de) From: "Norbert Koch" To: "Freebsd-Hackers@Freebsd. Org" Date: Fri, 3 Jun 2005 15:24:19 +0200 Message-ID: <000001c5683f$8c7c1e60$4801a8c0@ws-ew-3.W2KDEMIG> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2120.0 X-Virus-Scanned: by amavisd-new X-Virus-Scanned: by amavisd-new at absolute-media.de Subject: synchronization question about /sys/dev/vkbd/vkbd.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 13:27:18 -0000 Hello. When looking at /sys/dev/vkbd/vkbd.c I found one thing, that I do not understand. There are three places, where a flag TASK is used: 1. in vkbd_dev_close(): while(state->ks_flag & TASK) VKBD_SLEEP (...); 2. in vkbd_dev_write() VKBD_LOCK (); ... if (!(state->ks_flags & TASK) && task_enqueue(...)) state->ks_flags |= TASK; ... VKBD_UNLOCK (); 3. in vkbd_dev_intr() ... /* call intr */ ... VKBD_LOCK(); state->ks_flags &= ~TASK; wakeup(...); VKBD_UNLOCK(); As I understand: vkbd_dev_write() writes data into its queue and wants vkbd_dev_intr() to process the queue. My question is: Is it not possible, that vkbd_dev_intr() could be interrupted at any position before the VKBD_LOCK() and then vkbd_dev_write() called? If yes, how should vkbd_dev_write() know, that it should call task_enqueue(), as TASK is still set? Why not always call task_enqueue() unconditionally here and leave TASK only to synchronize the close call? Thank you for any help, Norbert Koch From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 14:22:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 58DA316A41F for ; Fri, 3 Jun 2005 14:22:13 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id E11BD43D58 for ; Fri, 3 Jun 2005 14:22:12 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so734892rne for ; Fri, 03 Jun 2005 07:22:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GmAw2vSS/ZWU1Xa4WlGX8z+MlBSiRpabbnKJE5fxCi/4TNpiQSTs5joesx69iW6gZejrBbXX3+5w3NZON8Pa7CTSLig0ZQMRaZq/WlP58bFv7yN7ggtZcuHgxZ6/YX03XQQVJt8uw6MXJc2pnvXIGJqajYMgVPzM4AbLOfD6Ywo= Received: by 10.38.88.44 with SMTP id l44mr902277rnb; Fri, 03 Jun 2005 07:22:12 -0700 (PDT) Received: by 10.38.209.31 with HTTP; Fri, 3 Jun 2005 07:22:12 -0700 (PDT) Message-ID: <84dead72050603072216c8ff46@mail.gmail.com> Date: Fri, 3 Jun 2005 19:52:12 +0530 From: Joseph Koshy To: "Singh, Vijay" In-Reply-To: <637A278D8D0DBC438EA5E75C6E1818B90454D70F@magenta.hq.netapp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <637A278D8D0DBC438EA5E75C6E1818B90454D70F@magenta.hq.netapp.com> Cc: freebsd-hackers@freebsd.org, Divacky Roman Subject: Re: cc1: internal compiler error: Abort trap: 6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Joseph Koshy List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 14:22:13 -0000 vijay> Is this a known issue? How can I get around this? Likely causes include flaky RAM, overclocking and CPU=20 overheating. Did the machine get through a full buildworld=20 cycle previously? You can check your CPU temperature with 'mbmon'. roman> gcc has just been upgraded to 3.4.4 so I expect a lot of=20 roman> ICEs fixed ;) ICE can True, but he's using v3.4.2, which has been pretty stable. --=20 FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 16:46:08 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9C4316A41C for ; Fri, 3 Jun 2005 16:46:08 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9FF1543D1D for ; Fri, 3 Jun 2005 16:46:08 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id E25BD3BF07; Fri, 3 Jun 2005 11:45:41 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 08230-01-13; Fri, 3 Jun 2005 11:45:41 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id ADA763BE25; Fri, 3 Jun 2005 11:45:41 -0500 (CDT) Received: from s228130hz1ew031.apptix-01.savvis.net ([10.146.4.28]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 3 Jun 2005 11:45:36 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew031.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 3 Jun 2005 11:45:25 -0500 Message-ID: <42A0891F.8080800@savvis.net> Date: Fri, 03 Jun 2005 09:45:19 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Norbert Koch References: <000001c5681f$9a5eb4e0$4801a8c0@ws-ew-3.W2KDEMIG> In-Reply-To: <000001c5681f$9a5eb4e0$4801a8c0@ws-ew-3.W2KDEMIG> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Jun 2005 16:45:26.0007 (UTC) FILETIME=[A4706870:01C5685B] X-Virus-Scanned: amavisd-new at savvis.net Cc: "Freebsd-Hackers@Freebsd. Org" Subject: Re: using vkbd device X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 16:46:09 -0000 Norbert, > I am trying to use vkbd to multiplex > an at keyboard and an usb keyboard > into syscons. ok > Vkbd's control device's write routine > expects ints to queue to the slave device. correct > As I understand, those ints map 1:1 > to the chars I read from a keyboard device, right? yes, the ints should represent AT keyboard scancodes. > So I open, for example, /dev/kbd0, set it to K_RAW, > read chars from it and write them as ints to > vkbd's control device, right? yes, it should work. keep in mind that vkbd(4) emulates only one keyboard and keeps only one state. that is if you feed scancodes from multiple sources into the same vkbd(4) then it will look like one huge keyboard with lots of duplicated keys. so you can press shift/ctrl/alt on one keyboard and actual key on another, but it still will look like you have presses the keys on the same keyboard. you also might want to look at experimental keyboard mux drivers. it is based on vkbd(4) and uses the idea of one super-keyboard that consumes scancodes from other keyboards. there are still a few issues i need to fix, but, in general, it works. http://www.geocities.com/m_evmenkin/kbdmux-2.tar.gz thanks, max From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 17:18:04 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D306016A41C for ; Fri, 3 Jun 2005 17:18:04 +0000 (GMT) (envelope-from dipjyoti.saikia@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D19443D49 for ; Fri, 3 Jun 2005 17:18:04 +0000 (GMT) (envelope-from dipjyoti.saikia@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so1114103nzp for ; Fri, 03 Jun 2005 10:18:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=OzfwwtL3z0zMXrghALIzjmodKDB9yc+8afkJaLtrSeZJHhazmqkkEl4UA8qVu6jyTj56xKXWZHYbKyy8JKwiRKBaIVtIzRvep9LozqDPYkBWyxCbAXlhgLk7IboTryHHQoSOIoSqmG+bP1erznf6tZ5AtESrFU1HJVItWoeZ75Q= Received: by 10.36.222.61 with SMTP id u61mr1429152nzg; Fri, 03 Jun 2005 10:18:04 -0700 (PDT) Received: by 10.36.77.20 with HTTP; Fri, 3 Jun 2005 10:18:04 -0700 (PDT) Message-ID: Date: Fri, 3 Jun 2005 22:48:04 +0530 From: Dipjyoti Saikia To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: NMI handlers ?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dipjyoti Saikia List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 17:18:04 -0000 Hi, I am working on IPMI watchdog implementation . The problem that I am facing is that in case of improper system shutdown or powerfail the watchdog keeps running and the next time system boots up , BIOS complains of FRB2 timeout and fails one of the CPU's ( Working on SMP system ) . My idea is to handle NMI generated by abruptly pushing power button and disabling the timer in the routine. Can we have a handlers for NMI ?? I am not very sure what is happening inside the kernel when NMI is delivered . Please provide me some inputs. Dip From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 17:18:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FCEA16A41C for ; Fri, 3 Jun 2005 17:18:41 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7ED643D4C for ; Fri, 3 Jun 2005 17:18:40 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 5AC073C04B; Fri, 3 Jun 2005 12:18:40 -0500 (CDT) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11061-01-23; Fri, 3 Jun 2005 12:18:40 -0500 (CDT) Received: from out002.email.savvis.net (out002.apptix.savvis.net [216.91.32.45]) by mailgate1b.savvis.net (Postfix) with ESMTP id 2E4EC3BE25; Fri, 3 Jun 2005 12:18:40 -0500 (CDT) Received: from s228130hz1ew171.apptix-01.savvis.net ([10.146.4.29]) by out002.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 3 Jun 2005 12:18:33 -0500 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew171.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Fri, 3 Jun 2005 12:18:24 -0500 Message-ID: <42A090DE.8060002@savvis.net> Date: Fri, 03 Jun 2005 10:18:22 -0700 From: Maksim Yevmenkin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050404) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Norbert Koch References: <000001c5683f$8c7c1e60$4801a8c0@ws-ew-3.W2KDEMIG> In-Reply-To: <000001c5683f$8c7c1e60$4801a8c0@ws-ew-3.W2KDEMIG> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 03 Jun 2005 17:18:24.0268 (UTC) FILETIME=[3F9314C0:01C56860] X-Virus-Scanned: amavisd-new at savvis.net Cc: "Freebsd-Hackers@Freebsd. Org" Subject: Re: synchronization question about /sys/dev/vkbd/vkbd.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 17:18:41 -0000 Norbert, > When looking at /sys/dev/vkbd/vkbd.c I found > one thing, that I do not understand. > > There are three places, where a flag TASK is used: > > 1. in vkbd_dev_close(): > > while(state->ks_flag & TASK) VKBD_SLEEP (...); > > 2. in vkbd_dev_write() > > VKBD_LOCK (); > ... > if (!(state->ks_flags & TASK) && task_enqueue(...)) > state->ks_flags |= TASK; > ... > VKBD_UNLOCK (); > > 3. in vkbd_dev_intr() > > ... > /* call intr */ > ... > VKBD_LOCK(); > state->ks_flags &= ~TASK; > wakeup(...); > VKBD_UNLOCK(); > > As I understand: > vkbd_dev_write() writes data into its queue > and wants vkbd_dev_intr() to process the queue. vkbd_dev_intr() is a "interrupt handler". the real keyboard would generate interrupt when keys are pressed/released. vkbd(4) does not have real keyboard. instead, as soon as vkbd_dev_write() puts scancodes into the queue it schedules vkbd_dev_intr() task (to emulate keyboard interrupt). the TASK flag is used to indicate the fact that "intrrupt" is pending and vkbd(4) does not need to schedule one. > My question is: > Is it not possible, that vkbd_dev_intr() could be > interrupted at any position before the VKBD_LOCK() > and then vkbd_dev_write() called? in theory it is possible. > If yes, how should vkbd_dev_write() know, that it should > call task_enqueue(), as TASK is still set? well, i guess it is possible to miss interrupt in this case. also, the scancodes are not lost, they will be processed on next write. i suspect that the vkbd_dev_intr() should be interrupted exactly in between (*kbdsw[kbd->kb_index]->intr)(kbd, NULL); and VKBD_LOCK(state); this is because most/all of intr() keyboard methods have something like while (check_char) { read_char() ... } > Why not always call task_enqueue() unconditionally here > and leave TASK only to synchronize the close call? yes, that could be done. it is also possible to have a callout going few times a second to check if there is a scancodes in the queue and schedule vkbd_dev_intr(). funny that atkbd(4) and ukbd(4) have just this. thanks, max From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 18:12:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCE5916A41C for ; Fri, 3 Jun 2005 18:12:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (CPE0050040655c8-CM00111ae02aac.cpe.net.cable.rogers.com [69.194.102.232]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82A1C43D48 for ; Fri, 3 Jun 2005 18:12:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id D39E051190; Fri, 3 Jun 2005 14:12:15 -0400 (EDT) Date: Fri, 3 Jun 2005 14:12:15 -0400 From: Kris Kennaway To: "Singh, Vijay" Message-ID: <20050603181215.GA41342@xor.obsecurity.org> References: <637A278D8D0DBC438EA5E75C6E1818B90454D70F@magenta.hq.netapp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <637A278D8D0DBC438EA5E75C6E1818B90454D70F@magenta.hq.netapp.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: cc1: internal compiler error: Abort trap: 6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 18:12:17 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 02, 2005 at 03:59:35PM -0700, Singh, Vijay wrote: > Hello, while doing a make buildkernel on a FreeBSD 6.0 system, I get a > compile failure in pf (depend): >=20 > =3D=3D=3D> pf (depend) > @ -> /usr/src/sys > machine -> /usr/src/sys/i386/include > echo "#define DEV_PF 1" > opt_pf.h > echo "#define DEV_PFLOG 1" >> opt_pf.h > echo "#define INET 1" > opt_inet.h > echo "#define INET6 1" > opt_inet6.h > echo "#define DEV_BPF 1" > opt_bpf.h > rm -f .depend > mkdep -f .depend -a -nostdinc > -I/usr/src/sys/modules/pf/../../contrib/pf -D_KERNEL -DKLD_MODULE -I- > -I/usr/src/sys/modules/pf/../../contrib/pf -I. -I@ -I@/contrib/altq > -I@/../include -I/usr/include -I/usr/obj/usr/src/sys/SMP > /usr/src/sys/modules/pf/../../contrib/pf/net/pf.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_if.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_subr.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_osfp.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_ioctl.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_norm.c > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_table.c > /usr/src/sys/modules/pf/../../contrib/pf/net/if_pflog.c > /usr/src/sys/modules/pf/../../contrib/pf/netinet/in4_cksum.c > cc1: internal compiler error: Abort trap: 6 Were you doing a buildworld -j on an SMP system? Kris --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCoJ1/Wry0BWjoQKURAtkJAJ92q7a3WndfL2dk34F3R85caT6BmwCbBsGT cOOiDFl2KcYZlmzjmtlapA4= =dPkA -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 20:57:25 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 280DE16A41C for ; Fri, 3 Jun 2005 20:57:25 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id F19C243D4C for ; Fri, 3 Jun 2005 20:57:24 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9p2/8.12.9) with ESMTP id j53KvO0e062013 for ; Fri, 3 Jun 2005 13:57:24 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id j53KvOFw062012; Fri, 3 Jun 2005 13:57:24 -0700 (PDT) (envelope-from dillon) Date: Fri, 3 Jun 2005 13:57:24 -0700 (PDT) From: Matthew Dillon Message-Id: <200506032057.j53KvOFw062012@apollo.backplane.com> To: freebsd-hackers@freebsd.org Subject: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 20:57:25 -0000 I've been tracking down a crash one of our users gets occassionally. He has a quad Intel(R) XEON(TM) CPU 2.00GHz (1996.61-MHz 686-class CPU) system. After getting a few of these crashes he pulled three of the four cpus out. But with just one physical cpu, with HTT turned on (so two logical cpus), he is still getting these crashes. This is the sequence that causes the bad data: cpu #0 write A write B (HT)cpu #1 read B if (B) read A <---- gets OLD data in A, not new data Now I was depending on the presumed write ordering, so if a foreign cpu sees that B is updated it can assume that A has also been updated. But I'm beginning to think that it isn't working as advertised. I've read the manuals over and over again and they seem to only guarentee write ordering between physical cpus, not between logical HT cpus, and even then it appears that a cpu can do a speculative read and thus get an old value for A even after getting a new value for B. I looked at the various SFENCE/LFENCE/MFENCE instructions and they do not seem to guarentee ordering for speculative accesses at all. They all say that they do not protect against speculative reads. Bus-locked instructions don't seem to avoid speculative reads either. I'm even more confused because this bug is occuring between two logical cpus on the same physical die. Is write ordering not guarenteed with respect to the other logical cpu? Can one logical cpu prefetch data early then then becomes obsolete by the time the instruction is actually run? Or perhaps its a pipeline bug... I just don't know. But it's damn annoying. The only solution I see is to use an actual serializing instruction like cpuid. I really do not want to have to use cpuid :-(. So, has anyone seen anything similar? -Matt From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 21:14:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 141E816A41C; Fri, 3 Jun 2005 21:14:12 +0000 (GMT) (envelope-from green@green.homeunix.org) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j53LECRh062079; Fri, 3 Jun 2005 17:14:12 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j53LECJw062078; Fri, 3 Jun 2005 17:14:12 -0400 (EDT) (envelope-from green) Date: Fri, 3 Jun 2005 17:14:12 -0400 From: Brian Fundakowski Feldman To: Dipjyoti Saikia Message-ID: <20050603211412.GB61800@green.homeunix.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Cc: freebsd-hackers@freebsd.org Subject: Re: NMI handlers ?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 21:14:13 -0000 On Fri, Jun 03, 2005 at 10:48:04PM +0530, Dipjyoti Saikia wrote: > Hi, > > > I am working on IPMI watchdog implementation . The problem that I am > facing is that in case of improper system shutdown or powerfail the > watchdog keeps running and the next time system boots up , BIOS > complains of FRB2 timeout and fails one of the CPU's ( Working on SMP > system ) . > > My idea is to handle NMI generated by abruptly pushing power button > and disabling the timer in the routine. > > Can we have a handlers for NMI ?? I am not very sure what is happening > inside the kernel when NMI is delivered . > > Please provide me some inputs. Look for "NMI" references in src/sys/i386/i386/trap.c. -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 21:50:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE63716A41C for ; Fri, 3 Jun 2005 21:50:06 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABBF543D48 for ; Fri, 3 Jun 2005 21:50:06 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mr5so.prod.shaw.ca (pd3mr5so-qfe3.prod.shaw.ca [10.0.141.12]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IHJ00BKW3A7S930@l-daemon> for freebsd-hackers@freebsd.org; Fri, 03 Jun 2005 15:49:19 -0600 (MDT) Received: from pn2ml7so.prod.shaw.ca ([10.0.121.151]) by pd3mr5so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IHJ00C2Y3A74530@pd3mr5so.prod.shaw.ca> for freebsd-hackers@freebsd.org; Fri, 03 Jun 2005 15:49:19 -0600 (MDT) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IHJ00J0W3A6SH@l-daemon> for freebsd-hackers@freebsd.org; Fri, 03 Jun 2005 15:49:19 -0600 (MDT) Date: Fri, 03 Jun 2005 14:49:17 -0700 From: Colin Percival In-reply-to: <200506032057.j53KvOFw062012@apollo.backplane.com> To: Matthew Dillon Message-id: <42A0D05D.8040809@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.91.0.0 References: <200506032057.j53KvOFw062012@apollo.backplane.com> User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050406) Cc: freebsd-hackers@freebsd.org Subject: Re: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 21:50:07 -0000 Matthew Dillon wrote: > I'm even more confused because this bug is occuring between two logical > cpus on the same physical die. Is write ordering not guarenteed with > respect to the other logical cpu? Can one logical cpu prefetch data > early then then becomes obsolete by the time the instruction is actually > run? My understanding is that the circuits which detect if a speculative read needs to be re-done work only with the logical addresses. As such, you can get bogus data from speculative reads even between two threads within the same core if you don't use proper fencing instructions. But I may be completely confused here -- all the interesting details are in NDA'ed manuals which I can't get access to. :-( Colin Percival From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 21:53:21 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 139CA16A41C for ; Fri, 3 Jun 2005 21:53:21 +0000 (GMT) (envelope-from ups@tree.com) Received: from smtp.speedfactory.net (talon.speedfactory.net [66.23.216.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 991E743D1F for ; Fri, 3 Jun 2005 21:53:20 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 29509 invoked by uid 210); 3 Jun 2005 22:48:56 +0000 Received: from 66.23.216.49 by talon (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.85.1/908. spamassassin: 3.0.2. perlscan: 1.25st. Clear:RC:1(66.23.216.49):. Processed in 0.043527 secs); 03 Jun 2005 22:48:56 -0000 X-Qmail-Scanner-Mail-From: ups@tree.com via talon X-Qmail-Scanner: 1.25st (Clear:RC:1(66.23.216.49):. Processed in 0.043527 secs Process 29503) Received: from 66-23-216-49.clients.speedfactory.net (HELO palm.tree.com) (66.23.216.49) by smtp.speedfactory.net with AES256-SHA encrypted SMTP; 3 Jun 2005 22:48:56 +0000 Received: from [127.0.0.1] (ups@localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id j53LrIpP055774; Fri, 3 Jun 2005 17:53:18 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: Matthew Dillon In-Reply-To: <200506032057.j53KvOFw062012@apollo.backplane.com> References: <200506032057.j53KvOFw062012@apollo.backplane.com> Content-Type: text/plain Message-Id: <1117835598.27369.12036.camel@palm> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 03 Jun 2005 17:53:18 -0400 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 21:53:21 -0000 On Fri, 2005-06-03 at 16:57, Matthew Dillon wrote: > I've been tracking down a crash one of our users gets occassionally. > He has a quad Intel(R) XEON(TM) CPU 2.00GHz (1996.61-MHz 686-class CPU) > system. > > After getting a few of these crashes he pulled three of the four cpus > out. But with just one physical cpu, with HTT turned on (so two > logical cpus), he is still getting these crashes. > > This is the sequence that causes the bad data: > > cpu #0 write A > write B > > (HT)cpu #1 read B > if (B) > read A <---- gets OLD data in A, not new data > > Now I was depending on the presumed write ordering, so if a foreign > cpu sees that B is updated it can assume that A has also been updated. > > But I'm beginning to think that it isn't working as advertised. I've > read the manuals over and over again and they seem to only guarentee > write ordering between physical cpus, not between logical HT cpus, and > even then it appears that a cpu can do a speculative read and > thus get an old value for A even after getting a new value for B. > > I looked at the various SFENCE/LFENCE/MFENCE instructions and they > do not seem to guarentee ordering for speculative accesses at all. > They all say that they do not protect against speculative reads. > Bus-locked instructions don't seem to avoid speculative reads either. > > I'm even more confused because this bug is occuring between two logical > cpus on the same physical die. Is write ordering not guarenteed with > respect to the other logical cpu? Can one logical cpu prefetch data > early then then becomes obsolete by the time the instruction is actually > run? Or perhaps its a pipeline bug... I just don't know. But it's > damn annoying. > > The only solution I see is to use an actual serializing instruction > like cpuid. I really do not want to have to use cpuid :-(. > > So, has anyone seen anything similar? This is normal behaviour. Take a look at IA-32 Intel Developers ... Vol 3, Section: 7.2.2 for details + solutions. Stephan From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 22:47:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F83B16A41C for ; Fri, 3 Jun 2005 22:47:27 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0751943D1D for ; Fri, 3 Jun 2005 22:47:26 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9p2/8.12.9) with ESMTP id j53MlQ0e062507; Fri, 3 Jun 2005 15:47:26 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id j53MlQBg062506; Fri, 3 Jun 2005 15:47:26 -0700 (PDT) (envelope-from dillon) Date: Fri, 3 Jun 2005 15:47:26 -0700 (PDT) From: Matthew Dillon Message-Id: <200506032247.j53MlQBg062506@apollo.backplane.com> To: Stephan Uphoff References: <200506032057.j53KvOFw062012@apollo.backplane.com> <1117835598.27369.12036.camel@palm> Cc: freebsd-hackers@freebsd.org Subject: Re: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 22:47:27 -0000 :This is normal behaviour. :Take a look at IA-32 Intel Developers ... Vol 3, :Section: 7.2.2 for details + solutions. : :Stephan Ok.. that section seems to indicate that speculative reads can pass writes, but it also says that the pipeline sniffs the address within the processor and ensures proper ordering. The latter part makes sense within the context of a single cpu, but the big question is: Is that supposed to hold true for interactions with HT cpus (that share the pipeline) as well? Or not ? It seems not. Speculative reads creating out of order situations seems to be the biggest issue. The AMD manual (Programmers manual volume 3 page 186, MFENCE instruction) says this: "The MFENCE instruction is weakly-ordered with respect to data and instruction prefetches. Speculative loads initiated by the processor, or specified explicitly using cache-prefetch instructions, can be reordered around an MFENCE". This seems to be different then what the Intel manual says, and doesn't make much sense. What's the point of having a fence instruction if it can't guarentee read/write ordering? Is the AMD manual simply wrong ? Other then that, the Intel manual does indicate that speculative reads will not pass locked bus cycle instructions (the AMD manual says nothing about that that I can see). So, presumably, doing a dummy locked bus cycle operation on e.g. the top of the stack, such as Linux does, would be sufficient to ensure read ordering. Would you concur with that assessment? What's really horrible here is that the 'old' value of the data being used is modified at location A something like 30 instructions prior to the instruction that updates the index (B). I think this is a situation that can only occur in an HT configuration, and then only if the speculative read issued by the HT cpu is being held for across 30 instructions executed by the primary cpu before the HT cpu issues the read of B. cpu #0 cpu #1 (HT cpu on same die as cpu #0) speculatively read A write A (stalled) [30 instructions] (stalled x 30) write B (stalled) read B see that B has been updated read A (get old value for A instead of new) Is that even possible ? Not only the 30 instruction latency, but also the fact that even with the shared pipeline you have a speculative read on the HT cpu surviving 30 instructions running on cpu #0 (but only one or two on the HT cpu)... even though they share the same pipeline. -Matt Matthew Dillon From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 23:55:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB72316A41C for ; Fri, 3 Jun 2005 23:55:35 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8451543D1D for ; Fri, 3 Jun 2005 23:55:35 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so1293387nzp for ; Fri, 03 Jun 2005 16:55:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=nDyKRcamTQ4hFtM1k4ugdWwbYFVfzUsL2zR7JRKvBYDe9cgJIWNV5ZdwAuuNbVQsJ5sonP9zcPkw0MSAmJlPv7jcck/EPxQVeg6dLcrQY3XCSS4yQf0GU7nGBGiRM6oUx8oODFtVDBt4iT2W6wYs0qLhsuDC2U3qunlsdgNKSas= Received: by 10.36.222.57 with SMTP id u57mr1555321nzg; Fri, 03 Jun 2005 16:55:29 -0700 (PDT) Received: by 10.36.58.12 with HTTP; Fri, 3 Jun 2005 16:55:29 -0700 (PDT) Message-ID: <3727392705060316555071c4ad@mail.gmail.com> Date: Fri, 3 Jun 2005 19:55:29 -0400 From: Aziz Kezzou To: freebsd-hackers Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Fork mystries.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Aziz Kezzou List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 23:55:35 -0000 Hi all, It's probably not the right mailing list to ask but I am really surprised about global variable sharing in a multithreaded C application. If I remember well my multithreading course global variables are shared between threads, right ? =20 Example : ---------------------------- int counter =3D 0; int main() { if( fork()=3D=3D0) { while(1) { sleep(1); counter++; printf("Son : counter =3D %d\n", counter); =20 } =20 } else { while(1) { sleep(1); printf("Parent : counter =3D %d\n", counter); =20 } }=09=20 return 0; } ---------------------------- All I get is : Parent : counter =3D 0 Son : counter =3D 1 Son : counter =3D 2 Parent : counter =3D 0 Son : counter =3D 3 Parent : counter =3D 0 Son : counter =3D 4 Parent : counter =3D 0 why counter isn't shared between the two threads ??! thanks, -aziz From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 00:05:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C57E916A41C for ; Sat, 4 Jun 2005 00:05:59 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75F5143D1F for ; Sat, 4 Jun 2005 00:05:59 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id 428DC35707 for ; Sat, 4 Jun 2005 02:05:54 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id 355607D19; Sat, 4 Jun 2005 02:05:44 +0200 (CEST) Date: Sat, 4 Jun 2005 02:05:44 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050604000544.GA31318@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <3727392705060316555071c4ad@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3727392705060316555071c4ad@mail.gmail.com> User-Agent: Mutt/1.5.9i Subject: Re: Fork mystries.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 00:05:59 -0000 On Fri, Jun 03, 2005 at 07:55:29PM -0400, Aziz Kezzou wrote: > It's probably not the right mailing list to ask but I am really > surprised about global variable sharing in a multithreaded C > application. If I remember well my multithreading course global > variables are shared between threads, right ? fork() creates new processes, not new threads. Check pthread_create for the latter. Joerg From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 00:07:25 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0762016A41C for ; Sat, 4 Jun 2005 00:07:25 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9951243D1F for ; Sat, 4 Jun 2005 00:07:24 +0000 (GMT) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.13.4/8.13.4/NETPLEX) with ESMTP id j5407NdB018562; Fri, 3 Jun 2005 20:07:23 -0400 (EDT) Date: Fri, 3 Jun 2005 20:07:23 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Aziz Kezzou In-Reply-To: <3727392705060316555071c4ad@mail.gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) Cc: freebsd-hackers Subject: Re: Fork mystries.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 00:07:25 -0000 On Fri, 3 Jun 2005, Aziz Kezzou wrote: > Hi all, > It's probably not the right mailing list to ask but I am really > surprised about global variable sharing in a multithreaded C > application. If I remember well my multithreading course global > variables are shared between threads, right ? Uhh, fork() creates a process, not a thread. The child is a _copy_ of the parent; they do not share address space. See the man page for fork. If you want really want threads, use threads (see man page for pthread). -- DE From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 00:15:08 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6B6516A41C for ; Sat, 4 Jun 2005 00:15:08 +0000 (GMT) (envelope-from julian@elischer.org) Received: from bigwoop.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8063843D1D for ; Sat, 4 Jun 2005 00:15:08 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by bigwoop.vicor-nb.com (Postfix) with ESMTP id 21BE67A424; Fri, 3 Jun 2005 17:15:08 -0700 (PDT) Message-ID: <42A0F28B.3060708@elischer.org> Date: Fri, 03 Jun 2005 17:15:07 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: Aziz Kezzou References: <3727392705060316555071c4ad@mail.gmail.com> In-Reply-To: <3727392705060316555071c4ad@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers Subject: Re: Fork mystries.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 00:15:08 -0000 Aziz Kezzou wrote: >Hi all, >It's probably not the right mailing list to ask but I am really >surprised about global variable sharing in a multithreaded C >application. If I remember well my multithreading course global >variables are shared between threads, right ? > > fork() is not a threading primative.. From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 00:47:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6845F16A41C for ; Sat, 4 Jun 2005 00:47:14 +0000 (GMT) (envelope-from ray@redshift.com) Received: from outgoing.redshift.com (outgoing.redshift.com [207.177.231.8]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4379943D48 for ; Sat, 4 Jun 2005 00:47:14 +0000 (GMT) (envelope-from ray@redshift.com) Received: from workstation (216-228-19-21.dsl.redshift.com [216.228.19.21]) by outgoing.redshift.com (Postfix) with SMTP id AE2D5970CF; Fri, 3 Jun 2005 17:47:12 -0700 (PDT) Message-Id: <3.0.1.32.20050603174714.00a44990@pop.redshift.com> X-Mailer: na X-Sender: redshift.com Date: Fri, 03 Jun 2005 17:47:14 -0700 To: Aziz Kezzou , freebsd-hackers From: ray@redshift.com In-Reply-To: <3727392705060316555071c4ad@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Cc: Subject: Re: Fork mystries.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 00:47:14 -0000 Aziz, Fork is for process creation. Look up pthread_create() and/or POSIX thread creation, etc. You should be able to find a lot of info on google with a quick search: http://math.arizona.edu/~swig/documentation/pthreads/ From the OS standpoint a process is like a different program when you fork it. A thread is more like a single program with a bunch of subsections all running at the same time, then the OS and CPU jump back and forth giving a little run-time to each subsection. Threads share a common space; processes [as far as I recal] do not (which is where inter process communication comes into play). Anyway, have fun! :) Ray At 07:55 PM 6/3/2005 -0400, Aziz Kezzou wrote: | Hi all, | It's probably not the right mailing list to ask but I am really | surprised about global variable sharing in a multithreaded C | application. If I remember well my multithreading course global | variables are shared between threads, right ? | | Example : | ---------------------------- | int counter = 0; | int main() { | if( fork()==0) { | while(1) { | sleep(1); | counter++; | printf("Son : counter = %d\n", counter); | } | } else { | while(1) { | sleep(1); | printf("Parent : counter = %d\n", counter); | } | } | return 0; | } | ---------------------------- | | All I get is : | Parent : counter = 0 | Son : counter = 1 | Son : counter = 2 | Parent : counter = 0 | Son : counter = 3 | Parent : counter = 0 | Son : counter = 4 | Parent : counter = 0 | | why counter isn't shared between the two threads ??! | thanks, | -aziz | _______________________________________________ | freebsd-hackers@freebsd.org mailing list | http://lists.freebsd.org/mailman/listinfo/freebsd-hackers | To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" | | From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 00:58:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32D7316A41C for ; Sat, 4 Jun 2005 00:58:41 +0000 (GMT) (envelope-from julian@elischer.org) Received: from bigwoop.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0592643D49 for ; Sat, 4 Jun 2005 00:58:40 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by bigwoop.vicor-nb.com (Postfix) with ESMTP id CC9247A403; Fri, 3 Jun 2005 17:58:40 -0700 (PDT) Message-ID: <42A0FCC0.6010805@elischer.org> Date: Fri, 03 Jun 2005 17:58:40 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050423 X-Accept-Language: en, hu MIME-Version: 1.0 To: shiner chen References: <20050603034129.34801.qmail@web15510.mail.cnb.yahoo.com> In-Reply-To: <20050603034129.34801.qmail@web15510.mail.cnb.yahoo.com> Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: 8bit Cc: freebsd-hackers@freebsd.org Subject: Re: a error about the kern_sendit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 00:58:41 -0000 shiner chen wrote: > i wrote a function to send the data of my a data structure in my kld by socket in kernel, the function as follow: > the arg 1 is file descriptor of socket. the arg 2 is the address of data structure. the arg 3 is the length of data structure and it is 20 bytes . > > the error return by kern_sendit is EFAULT(14), i check the address of data structure ,but it is right! > why ? who can tell me. thanks!! > > int loadinfo_send(int so_fd, struct thread *td, > char *snd_buf, unsigned int uBufLen) > { > int st = 0; > > /* read */ > struct iovec aiov; > struct msghdr msg; > > msg.msg_name = 0; > msg.msg_namelen = 0; > msg.msg_iov = &aiov; > msg.msg_iovlen = 1; > msg.msg_control = 0; > msg.msg_flags = 0; > > /* do actual send operation now */ > aiov.iov_base = snd_buf ; > aiov.iov_len = uBufLen; > ///////// there is error//////////////////////// I think that aio is expected to be the address of a userspace buffer. kern_sendit() is expecting to get the address info from the msg and passes it to so->so_proto->pr_usrreqs->pru_sosend() without there having ever been any work in making it a kernel address. an example of xxx->sosend() is sosend(). sosend uses uiomove() to bring the data in from user space unless you have set the UIO_SYSSPACE value for uio->uio_segflg. Since the uio is added in kern_sendit() you do not have the oportunity to change this. possibly this is what keta_kern_sendit() does but you do not show this function so I can not tell this. I'm also dubious whether you can use an int fd at that point.. are you runnin on behalf of a specific process of which you know the fd for the socket you want? For in-kernel use of a socket yuo should look at either the nfs code or the ng_ksocket code.. Not sure if this helps... > /*st = kern_sendit(td, so_fd,&msg,0,0);*/ > > st = keta_kern_sendit(td, control_so,&msg,0,0); > if( st!=0 ){ > if ( st == EAGAIN ){ > loadinfo_msleep(1); > } > else{ > log(LOG_DEBUG,"in loadinfo_send, send error(%d)!\n",st); > return st; > } > } > log(LOG_DEBUG,"send successfully !\n"); > return st; > } > > > > --------------------------------- > DO YOU YAHOO!? > ÑÅ»¢Ãâ·ÑGÓÊÏ䣭ÖйúµÚÒ»¾øÎÞÀ¬»øÓʼþɧÈų¬´óÓÊÏä > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 02:18:15 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 220E816A41C for ; Sat, 4 Jun 2005 02:18:15 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id C300C43D1D for ; Sat, 4 Jun 2005 02:18:14 +0000 (GMT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 16944 invoked from network); 4 Jun 2005 02:18:14 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail25.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 4 Jun 2005 02:18:14 -0000 Received: from hydrogen.funkthat.com (nmbcnc@localhost.funkthat.com [127.0.0.1]) by hydrogen.funkthat.com (8.12.10/8.11.6) with ESMTP id j542IDEa075730; Fri, 3 Jun 2005 19:18:13 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id j542IDAm075727; Fri, 3 Jun 2005 19:18:13 -0700 (PDT) Date: Fri, 3 Jun 2005 19:18:13 -0700 From: John-Mark Gurney To: Matthew Dillon Message-ID: <20050604021812.GG594@funkthat.com> Mail-Followup-To: Matthew Dillon , freebsd-hackers@freebsd.org References: <200506032057.j53KvOFw062012@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200506032057.j53KvOFw062012@apollo.backplane.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html Cc: freebsd-hackers@freebsd.org Subject: Re: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 02:18:15 -0000 Matthew Dillon wrote this message on Fri, Jun 03, 2005 at 13:57 -0700: > I've been tracking down a crash one of our users gets occassionally. > He has a quad Intel(R) XEON(TM) CPU 2.00GHz (1996.61-MHz 686-class CPU) > system. > > After getting a few of these crashes he pulled three of the four cpus > out. But with just one physical cpu, with HTT turned on (so two > logical cpus), he is still getting these crashes. > > This is the sequence that causes the bad data: > > cpu #0 write A > write B > > (HT)cpu #1 read B > if (B) > read A <---- gets OLD data in A, not new data [...] > I looked at the various SFENCE/LFENCE/MFENCE instructions and they > do not seem to guarentee ordering for speculative accesses at all. > They all say that they do not protect against speculative reads. > Bus-locked instructions don't seem to avoid speculative reads either. have you put a SFENCE between write A and write B? You never tell us where you've tried to put the various fence instructions... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 02:24:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1885516A41C for ; Sat, 4 Jun 2005 02:24:07 +0000 (GMT) (envelope-from shiner_chen@yahoo.com.cn) Received: from web15507.mail.cnb.yahoo.com (web15507.mail.cnb.yahoo.com [202.165.102.36]) by mx1.FreeBSD.org (Postfix) with SMTP id 4275743D1D for ; Sat, 4 Jun 2005 02:24:06 +0000 (GMT) (envelope-from shiner_chen@yahoo.com.cn) Received: (qmail 3905 invoked by uid 60001); 4 Jun 2005 02:24:01 -0000 Message-ID: <20050604022401.3903.qmail@web15507.mail.cnb.yahoo.com> Received: from [61.187.16.2] by web15507.mail.cnb.yahoo.com via HTTP; Sat, 04 Jun 2005 10:24:00 CST Date: Sat, 4 Jun 2005 10:24:00 +0800 (CST) From: shiner chen To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=gb2312 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: how to active the received function when the data arrived the socket in kld ! X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 02:24:07 -0000 Inorder to impliment the dynamic load freeback policy ,I wrote a kld on the front-end of cluster server for collecting the load of back nodes. I don't want the acceptive thread to detect the data arrived socket continuously,because ,which will affect the performance of the front-end.i want to know whether i can active the acceptive thread to receive the data when the data arrive the socket established. how shuld i do in the kernel ? thanks!! --------------------------------- DO YOU YAHOO!? ÑÅ»¢Ãâ·ÑGÓÊÏ䣭ÖйúµÚÒ»¾øÎÞÀ¬»øÓʼþɧÈų¬´óÓÊÏä From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 02:29:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1292D16A41C for ; Sat, 4 Jun 2005 02:29:06 +0000 (GMT) (envelope-from ups@tree.com) Received: from smtp.speedfactory.net (talon.speedfactory.net [66.23.216.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91B6043D1F for ; Sat, 4 Jun 2005 02:29:05 +0000 (GMT) (envelope-from ups@tree.com) Received: (qmail 25039 invoked by uid 210); 4 Jun 2005 03:24:41 +0000 Received: from 66.23.216.49 by talon (envelope-from , uid 201) with qmail-scanner-1.25st (clamdscan: 0.85.1/910. spamassassin: 3.0.2. perlscan: 1.25st. Clear:RC:1(66.23.216.49):. Processed in 0.408775 secs); 04 Jun 2005 03:24:41 -0000 X-Qmail-Scanner-Mail-From: ups@tree.com via talon X-Qmail-Scanner: 1.25st (Clear:RC:1(66.23.216.49):. Processed in 0.408775 secs Process 25027) Received: from 66-23-216-49.clients.speedfactory.net (HELO palm.tree.com) (66.23.216.49) by smtp.speedfactory.net with AES256-SHA encrypted SMTP; 4 Jun 2005 03:24:40 +0000 Received: from [127.0.0.1] (ups@localhost.tree.com [127.0.0.1]) by palm.tree.com (8.12.10/8.12.10) with ESMTP id j542T2pP057053; Fri, 3 Jun 2005 22:29:02 -0400 (EDT) (envelope-from ups@tree.com) From: Stephan Uphoff To: Matthew Dillon In-Reply-To: <200506032247.j53MlQBg062506@apollo.backplane.com> References: <200506032057.j53KvOFw062012@apollo.backplane.com> <1117835598.27369.12036.camel@palm> <200506032247.j53MlQBg062506@apollo.backplane.com> Content-Type: text/plain Message-Id: <1117852142.27369.13418.camel@palm> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Fri, 03 Jun 2005 22:29:02 -0400 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 02:29:06 -0000 On Fri, 2005-06-03 at 18:47, Matthew Dillon wrote: > :This is normal behaviour. > :Take a look at IA-32 Intel Developers ... Vol 3, > :Section: 7.2.2 for details + solutions. > : > :Stephan > > Ok.. that section seems to indicate that speculative reads > can pass writes, but it also says that the pipeline sniffs the address > within the processor and ensures proper ordering. The latter part > makes sense within the context of a single cpu, but the big question is: > Is that supposed to hold true for interactions with HT cpus (that share > the pipeline) as well? Or not ? It seems not. Memory ordering in logical HT CPUs is the same as in real CPUs (see 7.6.1.9) > > Speculative reads creating out of order situations seems to be the > biggest issue. The AMD manual (Programmers manual volume 3 page > 186, MFENCE instruction) says this: > > "The MFENCE instruction is weakly-ordered with respect to data and > instruction prefetches. Speculative loads initiated by the processor, > or specified explicitly using cache-prefetch instructions, can be > reordered around an MFENCE". Speculative loads can pass MFENCE - but can not pass load operations issued before MFENCE. > This seems to be different then what the Intel manual says, and doesn't > make much sense. What's the point of having a fence instruction if it > can't guarentee read/write ordering? Is the AMD manual simply wrong ? Not wrong - just confusing. READ A MFENCE READ B can cause READ A Speculative READ B MFENCE but NOT Speculative READ B READ A MFENCE > Other then that, the Intel manual does indicate that speculative reads > will not pass locked bus cycle instructions (the AMD manual says nothing > about that that I can see). AMD Volume 1 - 3.9.2 > So, presumably, doing a dummy locked bus > cycle operation on e.g. the top of the stack, such as Linux does, would > be sufficient to ensure read ordering. Would you concur with that > assessment? Yes > What's really horrible here is that the 'old' value of the data being > used is modified at location A something like 30 instructions prior to > the instruction that updates the index (B). I think this is a > situation that can only occur in an HT configuration, and then only if > the speculative read issued by the HT cpu is being held for across > 30 instructions executed by the primary cpu before the HT cpu issues the > read of B. > > cpu #0 cpu #1 (HT cpu on same die as cpu #0) > > speculatively read A > write A (stalled) > [30 instructions] (stalled x 30) > write B (stalled) > read B > see that B has been updated > read A (get old value for A instead of new) > > Is that even possible ? Not only the 30 instruction latency, but also > the fact that even with the shared pipeline you have a speculative read > on the HT cpu surviving 30 instructions running on cpu #0 (but only one > or two on the HT cpu)... even though they share the same pipeline. Take a look at store buffers. Reads have a higher priority than writes on some CPUs and data may be even stored indefinitely long in a store buffer. ( Where it can not be observed by other CPUs) Reading some of the Intel and AMD errata gives you a good picture. Stephan From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 02:57:41 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0654716A41C for ; Sat, 4 Jun 2005 02:57:41 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id BAAD943D48 for ; Sat, 4 Jun 2005 02:57:40 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9p2/8.12.9) with ESMTP id j542ve0e063488; Fri, 3 Jun 2005 19:57:40 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id j542veCm063487; Fri, 3 Jun 2005 19:57:40 -0700 (PDT) (envelope-from dillon) Date: Fri, 3 Jun 2005 19:57:40 -0700 (PDT) From: Matthew Dillon Message-Id: <200506040257.j542veCm063487@apollo.backplane.com> To: John-Mark Gurney References: <200506032057.j53KvOFw062012@apollo.backplane.com> <20050604021812.GG594@funkthat.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 02:57:41 -0000 :have you put a SFENCE between write A and write B? You never tell us :where you've tried to put the various fence instructions... : :-- : John-Mark Gurney Voice: +1 415 225 5579 No, I haven't tried doing that because both the AMD and Intel manuals make it very clear that writes are ordered. This is the code on the read side: wi = ip->ip_windex; <<<<<<< READ B (INDEX) while ((ri = ip->ip_rindex) != wi) { ip->ip_rindex = ri + 1; ri &= MAXCPUFIFO_MASK; ip->ip_func[ri](ip->ip_arg[ri], frame); ip->ip_xindex = ip->ip_rindex; } ip_func is lwkt_putport_remote which is basically: static void lwkt_putport_remote(lwkt_msg_t msg) { lwkt_port_t port = msg->ms_target_port; <<<<<< READ A thread_t td = port->mp_td; TAILQ_INSERT_TAIL(&port->mp_msgq, msg, ms_node); [ CRASH ON BAD 'PORT' VARIABLE ] if (port->mp_flags & MSGPORTF_WAITING) lwkt_schedule(td); } When the crash occurs, the data load of A is bad data... the contents of that field in the msg structure BEFORE the other cpu had written it rather then after. It is looking at the correct message structure, it happened to be in a register when it crashed and it matches the message structure that was transmitted. The contents of the field in the message structure post-crash was *CORRECT*. There are about 16 instructions between the READ B where the code sees the updated index and the READ A where the code reads the bad data. ------------ On the sending side we have this: int lwkt_default_putport(lwkt_port_t port, lwkt_msg_t msg) { crit_enter(); msg->ms_flags |= MSGF_QUEUED; /* abort interlock */ msg->ms_flags &= ~MSGF_DONE; msg->ms_target_port = port; <<<<<<<<<<< WRITE A _lwkt_putport(port, msg, 0); crit_exit(); return(EASYNC); } [ inline that default_putport calls obviously comes before, putting it after so the code flow is more obvious ] static __inline void _lwkt_putport(lwkt_port_t port, lwkt_msg_t msg, int force) { thread_t td = port->mp_td; if (force || td->td_gd == mycpu) { TAILQ_INSERT_TAIL(&port->mp_msgq, msg, ms_node); if (port->mp_flags & MSGPORTF_WAITING) lwkt_schedule(td); } else { lwkt_send_ipiq(td->td_gd, (ipifunc_t)lwkt_putport_remote, msg); } } lwkt_send_ipiq( ... ) { ... [ about 7-8 lines of executed C code ] ... /* * Queue the new message */ windex = ip->ip_windex & MAXCPUFIFO_MASK; ip->ip_func[windex] = (ipifunc2_t)func; ip->ip_arg[windex] = arg; ++ip->ip_windex; <<<<<<<<<<< WRITE B (INDEX) --gd->gd_intr_nesting_level; ... } Which is about ~30 instructions between the writing of A and the writing of B. It seems very unlikely that the writes got misordered on the sending side. But on the receiving side there are ~16 instructions between the read B and the read A. This seemed very unlikely to me too but I have not been able to come to any other conclusion. During tests when we added 'too much' debug code to the READ side the problem went away. When we added debug code to the WRITE side the problem seemed to stay put. The original crash was reported on a system with 4 processor boards (8 logical cpus). The user pulled 3 boards out so there was one processor board and 2 logical cpus and the problem still occured. It seems so unlikely that this could occur across physical cpus that I was not surprised at all by this. But 16 instructions seemed unlikely to me. The only scenario I can come up with is that the READ SIDE on the HT cpu (logical cpu #1) did a speculative read of B before logical cpu #0 wrote to it, then somehow held that speculative read for 16 whole instructions on logical cpu #1. Is that even possible ? holding speculative read data across 16 instructions ? The only other possibility is that there are major interactions in the instruction pipeline and cpu #1 is reading e.g. the index B from the pipeline or write buffer and data A from memory prior to data A being retired to memory by cpu #0. That seems ridiculous to me, but I wonder if it's possible without an SFENCE. This crash occurs fairly rarely. It takes a lot of packets for it to occur... perhaps a million or more. In anycase, we are now testing a kernel with a locked bus cycle inbetwen the READ B and the READ A to see if that fixes the problem. If that doesn't work I will put an SFENCE between the WRITE A and the WRITE B. And if that doesn't work then I'm shooting up the wrong alley and it isn't an instruction/memory ordering issue. -Matt Matthew Dillon From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 03:15:28 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03D6316A41C; Sat, 4 Jun 2005 03:15:28 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 78C1A43D49; Sat, 4 Jun 2005 03:15:27 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j543LvPR037084; Fri, 3 Jun 2005 21:21:57 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <42A11C92.5050505@samsco.org> Date: Fri, 03 Jun 2005 21:14:26 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "'FreeBSD Current'" , hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: Subject: HEADS UP! 6.0 Schedule, 6.0-CURRENT Snapshot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 03:15:28 -0000 All, The long anticipated and much feared 6.0 code freeze is about to begin! I'll cut to the chase: June 10 - Feature freeze + code slush ^^^^^^^ July 10 - RELENG_6 branch August 1 - RELENG_6_0 branch August 15 - 6.0-RELEASE From June 10 until the release, the number one priority is fixing bugs. All of the dates after June 10 are somewhat fluid and subject to change depending on where we are with stability. We won't release 6.0 until it is ready, but I'm pretty confident that we'll have it ready by August. Since SMPVFS is on by default on i386 and amd64, we need as much testing and bug fixing there as is possible. Jeff has been doing a fantastic job on this, but I'm sure that more help would be appreciated. Also, now is the time to start tracking down whatever strange panics or poor performance anyone might be seeing; the system is pretty stable at the 80% level, but there are a lot of edge cases that we need to work on to make it a good release. A stroll through the mailing lists and PR database would be a good place to start for anyone that wants to help. Again, the plan is for 6.0 to be a modest replacement for 5.x. We do plan on a 5.5 release in September to tie up the branch and help people move to 6.0/6.1, but 6.x is truly just a much improved 5.x at this point. For those with bosses who are fainting at the thought of there being a 7-CURRENT around the corner and 5-STABLE coming to a close, please keep in mind that migrating from 5.x to 6.x is trivial and is worthwhile. However, we need to do the branch now so that we can keep things like SMPVFS under control and produce a high-quality series of releases with it. For those who have already adopted 5.x and cannot spend the time/money to migrate again, RELENG_5 will still have secteam support into at least 2007 (going by their normal formula), and I expect there to be normal feature and bug-fix commits to it for at least another year from now. To jump-start the testing, I've posted a new set of 6.0-CURRENT snapshots to ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/Jun_2005. Once the freeze starts, I expect a new snapshot to be posted every 1-2 weeks until we get close to the release. So, please help test, report, and fix bugs! Thanks, Scott From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 03:27:04 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0107316A41C for ; Sat, 4 Jun 2005 03:27:04 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7335B43D48 for ; Sat, 4 Jun 2005 03:27:03 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j543XWEF037152; Fri, 3 Jun 2005 21:33:32 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <42A11F4A.40502@samsco.org> Date: Fri, 03 Jun 2005 21:26:02 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Matthew Dillon References: <200506032057.j53KvOFw062012@apollo.backplane.com> <20050604021812.GG594@funkthat.com> <200506040257.j542veCm063487@apollo.backplane.com> In-Reply-To: <200506040257.j542veCm063487@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: freebsd-hackers@freebsd.org, John-Mark Gurney Subject: Re: Possible instruction pipelining problem between HT's on the same die ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 03:27:04 -0000 Matthew Dillon wrote: [...] > It seems so unlikely that this could occur across physical cpus that > I was not surprised at all by this. But 16 instructions seemed unlikely > to me. The only scenario I can come up with is that the READ SIDE on > the HT cpu (logical cpu #1) did a speculative read of B before logical > cpu #0 wrote to it, then somehow held that speculative read for 16 > whole instructions on logical cpu #1. > > Is that even possible ? holding speculative read data across > 16 instructions ? Yes > > The only other possibility is that there are major interactions in the > instruction pipeline and cpu #1 is reading e.g. the index B from the > pipeline or write buffer and data A from memory prior to data A being > retired to memory by cpu #0. That seems ridiculous to me, but I > wonder if it's possible without an SFENCE. > > This crash occurs fairly rarely. It takes a lot of packets for it to > occur... perhaps a million or more. > > In anycase, we are now testing a kernel with a locked bus cycle inbetwen > the READ B and the READ A to see if that fixes the problem. If that > doesn't work I will put an SFENCE between the WRITE A and the WRITE B. > And if that doesn't work then I'm shooting up the wrong alley and it > isn't an instruction/memory ordering issue. I would expect that putting the fence on the write side will solve the problem. As Stephen discussed, the writes will land in a store buffer for a period of time, during which a fence on the write CPU will flush it out and make it visible to the other CPUs. Doing a fence on the read CPU will have no effect on the store buffers of the write CPU and will be a waste of time. Another thing to keep in mind is that there is no difference here between HT and non HT SMP protocol. While HT cores share execution units, they DO NOT share registers, store buffers, or cache (at least, not in a way that is visible outside of the low-level implementation of the chip). Scott From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 07:07:27 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D45516A41C for ; Sat, 4 Jun 2005 07:07:27 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6DDD43D48 for ; Sat, 4 Jun 2005 07:07:26 +0000 (GMT) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.12.9p2/8.12.9) with ESMTP id j5477Q0e064193; Sat, 4 Jun 2005 00:07:26 -0700 (PDT) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.12.9p2/8.12.9/Submit) id j5477Pr1064192; Sat, 4 Jun 2005 00:07:25 -0700 (PDT) (envelope-from dillon) Date: Sat, 4 Jun 2005 00:07:25 -0700 (PDT) From: Matthew Dillon Message-Id: <200506040707.j5477Pr1064192@apollo.backplane.com> To: Scott Long Cc: freebsd-hackers@freebsd.org, John-Mark Gurney Subject: (no subject) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 07:07:27 -0000 Subject: Re: Possible instruction pipelining problem between HT's on the same die ? References: <200506032057.j53KvOFw062012@apollo.backplane.com> <20050604021812.GG594@funkthat.com> <200506040257.j542veCm063487@apollo.backplane.com> <42A11F4A.40502@samsco.org> :I would expect that putting the fence on the write side will solve the :problem. As Stephen discussed, the writes will land in a store buffer :for a period of time, during which a fence on the write CPU will flush :it out and make it visible to the other CPUs. Doing a fence on the read :CPU will have no effect on the store buffers of the write CPU and will :be a waste of time. As a way to reduce latency... but a fence on the write side does not solve the reordering problem on the read side. When the write side writes the FIFO entry and then updates the FIFO index, the read side must be able to guarentee that the FIFO data it reads is valid when it sees that the FIFO index has been updated. This means that the read side cannot afford to allow the reads to be reordered and thus must use some sort of fence. :Another thing to keep in mind is that there is no difference here :between HT and non HT SMP protocol. While HT cores share execution :units, they DO NOT share registers, store buffers, or cache (at least, :not in a way that is visible outside of the low-level implementation of :the chip). : :Scott They do share the cache, but I see your point. I'm not sure about store buffers but from the behavior I've observed I suspect that store buffers either are not shared, or a logical cpu's store buffer sniffing does not extend to the other logical cpu's entries. In our case latency is not a big issue. These are almost universally asynchronous messages flying between the cpus. What matters is the cycle overhead on each side to send and process the message. Hence I was trying to avoid the use of locked bus cycle instructions. I'll have to run tests to check the relative expense of the *FENCE instructions (when supported) verses doing a lock; addl 0(%esp) to fence the read. At least I don't have to put the fence in the body of the processing loop... I just have to put it after the read of the FIFO's write index before the loop is entered. It's a real shame that special instructions are required at all. -Matt Matthew Dillon From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 07:44:37 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E11C16A41C for ; Sat, 4 Jun 2005 07:44:37 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from obelix.sunrise.ch (mailrelay3.sunrise.ch [194.158.229.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00C3E43D48 for ; Sat, 4 Jun 2005 07:44:36 +0000 (GMT) (envelope-from hampi@rootshell.be) Received: from gicco.homeip.net (pop-mu-8-1-dialup-188.freesurf.ch [194.230.245.188]) by obelix.sunrise.ch (8.12.10/8.12.10) with ESMTP id j547iYaY032113 for ; Sat, 4 Jun 2005 09:44:34 +0200 Received: from gicco.here (localhost [127.0.0.1]) by gicco.homeip.net (8.13.1/8.13.1) with ESMTP id j547iSLW002110 for ; Sat, 4 Jun 2005 09:44:28 +0200 (CEST) (envelope-from hampi@rootshell.be) Received: (from idefix@localhost) by gicco.here (8.13.1/8.12.11/Submit) id j547iSlS002109 for freebsd-hackers@freebsd.org; Sat, 4 Jun 2005 09:44:28 +0200 (CEST) (envelope-from hampi@rootshell.be) X-Authentication-Warning: gicco.here: idefix set sender to hampi@rootshell.be using -f Date: Sat, 4 Jun 2005 09:44:28 +0200 From: Hanspeter Roth To: freebsd-hackers@freebsd.org Message-ID: <20050604074428.GA2093@gicco.homeip.net> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: ath port for 4.11? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 07:44:37 -0000 Hello, is there a port of the ath driver for FreeBsd 4.11? -Hanspeter From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 19:54:43 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E0C316A41C; Fri, 3 Jun 2005 19:54:43 +0000 (GMT) (envelope-from omestre@freeshell.org) Received: from seville.procergs.com.br (seville.procergs.com.br [200.198.128.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3354E43D48; Fri, 3 Jun 2005 19:54:43 +0000 (GMT) (envelope-from omestre@freeshell.org) Received: from pro-pae-5513.procergs.rs.gov.br (unknown [172.28.5.20]) by seville.procergs.com.br (Postfix) with ESMTP id 9A50716FF615E; Fri, 3 Jun 2005 16:54:41 -0300 (BRST) Received: by pro-pae-5513.procergs.rs.gov.br (Postfix, from userid 100) id E79D4468EE; Fri, 3 Jun 2005 16:52:56 -0300 (BRT) Date: Fri, 3 Jun 2005 16:52:56 -0300 From: OMestre To: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org Message-ID: <20050603195256.GE2065@pro-pae-5513.procergs.reders> Mail-Followup-To: freebsd-hackers@freebsd.org, freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Sat, 04 Jun 2005 11:56:09 +0000 Cc: Subject: USB CDC ACM X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 19:54:43 -0000 Hello all... Has anyone a mobile phone (motorola v300?), in the FreeBSD environment? There are some apps like: kmobiletools, kandy, moto4lin, that just need a modem interface to contact to the cell phone and sync (contacts, meetings...). But i don't know if FreeBSD have these 'specs' implemented (USB CDC ACM). Maybe the umodem can handle the mobiles's modem. So, i just want to know if someone have a mobile phone working, and with which configurations? Thanks. -- omestre@freeshell.org http://omestre.freeshell.org ----------------------------------------------------- "I believe i need every ship we have if we're going to survive this attack. Then why did you allow the Nebuchadnezzar to leave"? (Commander Lock) "Because i believe our survival dependes on more than how many ships we have". (Councillor Hamann) - Matrix Reloaded - ----------------------------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 3 20:16:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA62116A41C for ; Fri, 3 Jun 2005 20:16:24 +0000 (GMT) (envelope-from Vijay.Singh@netapp.com) Received: from mx1.netapp.com (mx1.netapp.com [216.240.18.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6DBE643D53 for ; Fri, 3 Jun 2005 20:16:24 +0000 (GMT) (envelope-from Vijay.Singh@netapp.com) Received: from smtp2.corp.netapp.com (10.57.159.114) by mx1.netapp.com with ESMTP; 03 Jun 2005 13:16:24 -0700 X-IronPort-AV: i="3.93,167,1115017200"; d="scan'208"; a="184587000:sNHT17509184" Received: from svlexc03.hq.netapp.com (svlexc03.corp.netapp.com [10.57.156.149]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id j53KGOim028916; Fri, 3 Jun 2005 13:16:24 -0700 (PDT) Received: from lavender.hq.netapp.com ([10.56.11.75]) by svlexc03.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 3 Jun 2005 13:16:23 -0700 Received: from magenta.hq.netapp.com ([10.56.11.84]) by lavender.hq.netapp.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 3 Jun 2005 13:16:23 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Fri, 3 Jun 2005 13:16:22 -0700 Message-ID: <637A278D8D0DBC438EA5E75C6E1818B90454DA04@magenta.hq.netapp.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: cc1: internal compiler error: Abort trap: 6 Thread-Index: AcVoZ8/bLE5YxwEDR0CwuQgzH+IHPAAERMew From: "Singh, Vijay" To: "Kris Kennaway" X-OriginalArrivalTime: 03 Jun 2005 20:16:23.0732 (UTC) FILETIME=[1D07F740:01C56879] X-Mailman-Approved-At: Sat, 04 Jun 2005 11:56:09 +0000 Cc: freebsd-hackers@freebsd.org Subject: RE: cc1: internal compiler error: Abort trap: 6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 03 Jun 2005 20:16:24 -0000 I figured this out, basically somehow the pf_table.c file got truncated during the install. When I installed a fresh complete file, the make succeeded. However I am surprised that gcc did not report a more verbose warning. Br vijay=20 > -----Original Message----- > From: Kris Kennaway [mailto:kris@obsecurity.org]=20 > Sent: Friday, June 03, 2005 11:12 AM > To: Singh, Vijay > Cc: freebsd-hackers@freebsd.org > Subject: Re: cc1: internal compiler error: Abort trap: 6 >=20 > On Thu, Jun 02, 2005 at 03:59:35PM -0700, Singh, Vijay wrote: > > Hello, while doing a make buildkernel on a FreeBSD 6.0=20 > system, I get a=20 > > compile failure in pf (depend): > >=20 > > =3D=3D=3D> pf (depend) > > @ -> /usr/src/sys > > machine -> /usr/src/sys/i386/include > > echo "#define DEV_PF 1" > opt_pf.h > > echo "#define DEV_PFLOG 1" >> opt_pf.h echo "#define INET 1" >=20 > > opt_inet.h echo "#define INET6 1" > opt_inet6.h echo=20 > "#define DEV_BPF=20 > > 1" > opt_bpf.h rm -f .depend > > mkdep -f .depend -a -nostdinc > > -I/usr/src/sys/modules/pf/../../contrib/pf -D_KERNEL=20 > -DKLD_MODULE -I-=20 > > -I/usr/src/sys/modules/pf/../../contrib/pf -I. -I@ -I@/contrib/altq=20 > > -I@/../include -I/usr/include -I/usr/obj/usr/src/sys/SMP=20 > > /usr/src/sys/modules/pf/../../contrib/pf/net/pf.c > > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_if.c > > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_subr.c > > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_osfp.c > > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_ioctl.c > > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_norm.c > > /usr/src/sys/modules/pf/../../contrib/pf/net/pf_table.c > > /usr/src/sys/modules/pf/../../contrib/pf/net/if_pflog.c > > /usr/src/sys/modules/pf/../../contrib/pf/netinet/in4_cksum.c > > cc1: internal compiler error: Abort trap: 6 >=20 > Were you doing a buildworld -j on an SMP system? >=20 > Kris >=20 From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 08:21:33 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C78E16A41C for ; Sat, 4 Jun 2005 08:21:33 +0000 (GMT) (envelope-from keir.fraser@cl.cam.ac.uk) Received: from mta2.cl.cam.ac.uk (mta2.cl.cam.ac.uk [128.232.0.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 824CE43D49 for ; Sat, 4 Jun 2005 08:21:31 +0000 (GMT) (envelope-from keir.fraser@cl.cam.ac.uk) Received: from c063.vpn.cl.cam.ac.uk ([128.232.105.63]) by mta2.cl.cam.ac.uk with esmtp (Exim 3.092 #1) id 1DeTuM-00019k-00; Sat, 04 Jun 2005 09:21:30 +0100 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Keir Fraser Date: Sat, 4 Jun 2005 09:17:57 +0100 To: Kip Macy , dillon@apollo.backplane.com X-Mailer: Apple Mail (2.622) X-Mailman-Approved-At: Sat, 04 Jun 2005 11:56:09 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Possible instruction pipelining problem between HT's on the same die ? (fwd) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 08:21:33 -0000 Hi, I did a fair amount of lock-free programming during my PhD and for Xen, so I may be able to shed some light on this situation. OTOH I may also be confused: the x86 memory model is poorly specified and the reference manuals are often badly written and misleading. I'll address the points and questions out of order.... > But I'm beginning to think that it isn't working as advertised. > I've > read the manuals over and over again and they seem to only > guarentee > write ordering between physical cpus, not between logical HT cpus, > and > even then it appears that a cpu can do a speculative read and > thus get an old value for A even after getting a new value for B. The ordering guarantees between HTs are identical to those between physical cpus. I'm referring to Section 7.6.19 of IARM (Intel IA-32 Reference Manual) Vol 3. It's slightly confusing that it says "can further be defined as 'write-ordered with store buffer forwarding'" but this forwarding only occurs separately *within* each logical cpu (the store buffer is statically partitioned between the two HTs), and this phrase is identical to the one describing physical cpu behaviour in Section 7.2.2 (ie. it is redundant to reiterate it in this later section). Reads can be speculatively executed out-of-order, but this property isn't unique to HTs. This race could in theory happen across physical cpus. > Now I was depending on the presumed write ordering, so if a foreign > cpu sees that B is updated it can assume that A has also been > updated. You *can* depend on write ordering. But this ordering is no help if CPU#1 has already executed, and is retiring, the read from A by the time it executes the read from B. It's CPU#1 that is screwing up, not CPU#0. > I looked at the various SFENCE/LFENCE/MFENCE instructions and they > do not seem to guarentee ordering for speculative accesses at all. > They all say that they do not protect against speculative reads. > Bus-locked instructions don't seem to avoid speculative reads > either. I think the reference manual is being almost wilfully misleading by referring to the speculative prefetch mechanism and its total independence from the fence instructions: "data could be speculatively loaded into the cache just before, during, or after the execution of an MFENCE instruction". It is important to realise that speculative execution of a memory-reading instruction is quite different from speculative prefetch into a cache. The latter should not matter to the programmer: the cache coherency protocol hides it. Consider the code example in the original email: > cpu #0 write A > write B > > (HT)cpu #1 read B > if (B) > read A <---- gets OLD data in A, not new data If CPU#1 prefetches A into its cache before it reads B, it may indeed see the old value of A; *but* when CPU#0 writes A it will invalidate that cacheline in all remote caches; *furthermore* CPU#0 cannot commit its update of B until after it has committed its update of A (x86 guarantees write order). So, if CPU#1 reads the new value of B, then any stale value of A in its cache has been invalidated by that point. All you need to ensure is that CPU#1 hasn't speculatively executed the read from A: precisely the purpose of MFENCE and LFENCE. This is more complicated if both CPUs are sharing their memory hierarchy. However, either cache lines are tagged with an HT identifier and so the cache logically operates as two separate variable-sized caches (in which case normal cache coherency rules apply as described above), or there is true cacheline sharing (in which case there is no stale data to worry about, as CPU#0 will directly update the cache data that CPU#1 will read from). Either way, there's no weakening of the memory model. -- Keir From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 13:46:54 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66A8916A41C for ; Sat, 4 Jun 2005 13:46:54 +0000 (GMT) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8EF543D48 for ; Sat, 4 Jun 2005 13:46:53 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-199-63.daxnet.no ([193.217.199.63] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.3.2) with ESMTP id 386300461 for freebsd-hackers@freebsd.org; Sat, 04 Jun 2005 15:46:51 +0200 From: Hans Petter Selasky Date: Sat, 4 Jun 2005 15:47:42 +0200 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Disposition: inline To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200506041547.43456.hselasky@c2i.net> Subject: playing audio CD's on modern laptops X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 13:46:54 -0000 Hi, On my laptop, which is not very old, they have dropped support for playing CD's through "cdcontrol". To play CD's one has to read the samples off the CD-ROM and send it to the soundcard in software. The problem is that the ATAPI driver complains when trying to read audio data: acd0: WARNING - READ_CD UDMA ICRC error (retrying request) So I tried: sysctl hw.ata.atapi_dma=0 Which says I should put "hw.ata.atapi_dma=0" into a non-existent file. Then I tried: echo hw.ata.atapi_dma="0" >> /boot/device.hints And rebooted. Now things work. Why is PIO mode not selected automatically by the ATAPI driver? Hence obviously some manufacturers try to save money here, not supporting all modes for all mediums? UDMA works for data CD-ROM's though. --HPS From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 14:02:01 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2A0A16A41C for ; Sat, 4 Jun 2005 14:02:01 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from Neo-Vortex.net (203-173-58-65.dyn.iinet.net.au [203.173.58.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37ABD43D1D for ; Sat, 4 Jun 2005 14:02:00 +0000 (GMT) (envelope-from root@Neo-Vortex.net) Received: from localhost.Neo-Vortex.net (Neo-Vortex@localhost.Neo-Vortex.net [127.0.0.1]) by Neo-Vortex.net (8.13.1/8.12.10) with ESMTP id j54E1wOS063437 for ; Sun, 5 Jun 2005 00:01:58 +1000 (EST) (envelope-from root@Neo-Vortex.net) Date: Sun, 5 Jun 2005 00:01:58 +1000 (EST) From: Neo-Vortex To: freebsd-hackers@freebsd.org Message-ID: <20050604235846.X62115@Neo-Vortex.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: vmstat reporting incorrect cpu usage X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 14:02:02 -0000 I've noticed if i run vmstat with no params when rebuilding the kernel i get this right: # vmstat procs memory page disk faults cpu r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id 2 1 0 294156 44596 313 0 0 0 296 1 0 82 85 225 14 8 78 # But, if i run it like this # vmstat -c 2 procs memory page disk faults cpu r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id 1 1 0 299580 38204 313 0 0 0 296 1 0 82 85 225 14 8 78 1 1 0 294996 42876 886 0 0 0 2061 0 3 2222 1364 2231 81 19 0 # The second result shows what top does, but the first one seems to be completely wrong... # vmstat -c 6 procs memory page disk faults cpu r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id 1 1 0 300136 36196 313 0 0 0 296 1 0 82 85 225 14 8 78 1 1 0 301040 35312 230 0 0 0 9 0 0 2193 489 2156 87 13 0 1 1 0 296720 39644 1234 0 0 0 2326 0 5 2190 1530 2185 70 30 0 1 1 0 297092 39228 1435 0 0 0 1336 0 3 2200 1562 2188 75 25 0 1 1 0 298488 37844 1573 0 0 0 1229 0 4 2206 1592 2191 69 31 0 1 1 0 299372 36908 316 0 0 0 123 0 96 2301 618 2442 86 14 0 # Only the first one seems to do it though... FreeBSD 5.3-RELEASE. Does this happen for anyone else? (Mabe someone running 5.4 can test this?) ~Neo-Vortex From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 14:12:25 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DF1E16A41C for ; Sat, 4 Jun 2005 14:12:25 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F56443D4C for ; Sat, 4 Jun 2005 14:12:24 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (storm.stura.uni-rostock.de [139.30.252.72]) by hydra.bec.de (Postfix) with ESMTP id D688E35707 for ; Sat, 4 Jun 2005 16:12:21 +0200 (CEST) Received: by britannica.bec.de (Postfix, from userid 1001) id B43677D19; Sat, 4 Jun 2005 16:12:09 +0200 (CEST) Date: Sat, 4 Jun 2005 16:12:09 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050604141209.GB1620@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <200506041547.43456.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200506041547.43456.hselasky@c2i.net> User-Agent: Mutt/1.5.9i Subject: Re: playing audio CD's on modern laptops X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 14:12:25 -0000 On Sat, Jun 04, 2005 at 03:47:42PM +0200, Hans Petter Selasky wrote: > Why is PIO mode not selected automatically by the ATAPI driver? Hence > obviously some manufacturers try to save money here, not supporting all modes > for all mediums? UDMA works for data CD-ROM's though. (a) Because it adds a lot of overhead for normal operation e.g. playing a DVD. (b) Because not all drives are unable to correctly implement it, for many ATAPI-DMA and CDDA works fine. BTW, you can always switch without rebooting, atacontrol(8) is your friend. Joerg From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 14:58:35 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B96D616A41C for ; Sat, 4 Jun 2005 14:58:35 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from skippyii.compar.com (webpos.compar.com [216.208.38.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 12D9C43D1F for ; Sat, 4 Jun 2005 14:58:34 +0000 (GMT) (envelope-from matt@gsicomp.on.ca) Received: from hermes (CPE00062566c7bb-CM000039c69a66.cpe.net.cable.rogers.com [69.193.82.185]) by skippyii.compar.com (8.13.1/8.13.1) with ESMTP id j54F9MkM081636; Sat, 4 Jun 2005 11:09:23 -0400 (EDT) (envelope-from matt@gsicomp.on.ca) Message-ID: <001c01c56915$ed39e030$1200a8c0@gsicomp.on.ca> From: "Matt Emmerton" To: "Neo-Vortex" , References: <20050604235846.X62115@Neo-Vortex.net> Date: Sat, 4 Jun 2005 10:58:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1437 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Cc: Subject: Re: vmstat reporting incorrect cpu usage X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 14:58:35 -0000 ----- Original Message ----- From: "Neo-Vortex" To: Sent: Saturday, June 04, 2005 10:01 AM Subject: vmstat reporting incorrect cpu usage > I've noticed if i run vmstat with no params when rebuilding the kernel i > get this right: > > # vmstat > procs memory page disk faults cpu > r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id > 2 1 0 294156 44596 313 0 0 0 296 1 0 82 85 225 14 8 78 > # > > But, if i run it like this > > # vmstat -c 2 > procs memory page disk faults cpu > r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id > 1 1 0 299580 38204 313 0 0 0 296 1 0 82 85 225 14 8 78 > 1 1 0 294996 42876 886 0 0 0 2061 0 3 2222 1364 2231 81 19 0 > # > > The second result shows what top does, but the first one seems to be > completely wrong... > > # vmstat -c 6 > procs memory page disk faults cpu > r b w avm fre flt re pi po fr sr ad0 in sy cs us sy id > 1 1 0 300136 36196 313 0 0 0 296 1 0 82 85 225 14 8 78 > 1 1 0 301040 35312 230 0 0 0 9 0 0 2193 489 2156 87 13 0 > 1 1 0 296720 39644 1234 0 0 0 2326 0 5 2190 1530 2185 70 30 0 > 1 1 0 297092 39228 1435 0 0 0 1336 0 3 2200 1562 2188 75 25 0 > 1 1 0 298488 37844 1573 0 0 0 1229 0 4 2206 1592 2191 69 31 0 > 1 1 0 299372 36908 316 0 0 0 123 0 96 2301 618 2442 86 14 0 > # > > Only the first one seems to do it though... > > FreeBSD 5.3-RELEASE. > > Does this happen for anyone else? (Mabe someone running 5.4 can test > this?) The first line is the average since the system was last booted; all other lines are instantaneous. -- Matt Emmerton From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 15:07:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 94F3416A41C for ; Sat, 4 Jun 2005 15:07:17 +0000 (GMT) (envelope-from andrit@ukr.net) Received: from mail.emict.com (brig.emict.com [212.90.172.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B6E343D49 for ; Sat, 4 Jun 2005 15:07:16 +0000 (GMT) (envelope-from andrit@ukr.net) Received: from [10.0.0.232] (unknown [10.0.0.232]) by mail.emict.com (Postfix) with ESMTP id C765A275B9 for ; Sat, 4 Jun 2005 18:07:15 +0300 (EEST) From: Andriy Tkachuk Organization: eMICT To: freebsd-hackers@freebsd.org Date: Sat, 4 Jun 2005 18:07:15 +0300 User-Agent: KMail/1.8 References: <20050604235846.X62115@Neo-Vortex.net> <001c01c56915$ed39e030$1200a8c0@gsicomp.on.ca> In-Reply-To: <001c01c56915$ed39e030$1200a8c0@gsicomp.on.ca> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506041807.15556.andrit@ukr.net> Subject: Re: vmstat reporting incorrect cpu usage X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 15:07:17 -0000 On Saturday 04 June 2005 17:58, Matt Emmerton wrote: > The first line is the average since the system was last booted; all other > lines are instantaneous. yeap. from man page: -c Repeat the display count times. The first display is for the time since a reboot and each subsequent report is for the time period since the last display. From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 16:44:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAAB016A41C for ; Sat, 4 Jun 2005 16:44:53 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.village.org (berlin-qwest.village.org [168.103.84.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1BAC43D1F for ; Sat, 4 Jun 2005 16:44:52 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j54Gg8L7052663; Sat, 4 Jun 2005 10:42:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 04 Jun 2005 10:42:54 -0600 (MDT) Message-Id: <20050604.104254.56970090.imp@bsdimp.com> To: baozhaolinuxer@yahoo.com From: "M. Warner Losh" In-Reply-To: <20050603091519.31175.qmail@web31707.mail.mud.yahoo.com> References: <20050603091519.31175.qmail@web31707.mail.mud.yahoo.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: How FREEBSD deals with request for continuous physical pages X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 16:44:53 -0000 In message: <20050603091519.31175.qmail@web31707.mail.mud.yahoo.com> Bao Zhao writes: : Linux use buddy allocator.but I find it seems that : FREEBSD uses single page linked list. but SLAB and : some drivers need continuous physical pages, so I : wonder how FREEBSD solved this problem. contigmalloc() Warner From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 18:11:05 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E58A16A41C for ; Sat, 4 Jun 2005 18:11:05 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF7E543D1F for ; Sat, 4 Jun 2005 18:11:02 +0000 (GMT) (envelope-from fbsd.hackers@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so1323410rne for ; Sat, 04 Jun 2005 11:11:02 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SzyT/z6SFl0oo499LLKHyebLKzKiyhCRoLQmLXhbTW8ThFqOCYtknBhH+AT/GQMelVXqLklm0zaL3847wMu7PfVKljc7y6PQCxRVKULmAUmzt+hqrFAbChhAuVwU0kllNjZHcSOvs9ZWogdsIW4SCT3TuDhtvNNdhxrIvlCbf5M= Received: by 10.38.186.20 with SMTP id j20mr1571764rnf; Sat, 04 Jun 2005 11:11:01 -0700 (PDT) Received: by 10.38.11.11 with HTTP; Sat, 4 Jun 2005 11:11:01 -0700 (PDT) Message-ID: Date: Sat, 4 Jun 2005 14:11:01 -0400 From: Pablo Mora To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: help me with C languaje please, re: files. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Pablo Mora List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 18:11:05 -0000 Hi all,=20 I am programming in C and I need to read a quantity of lines of a file. How can I know when a line arrives at his end? exists some special character? exists some file in C in the kernel of FreeBSD (4.11) where I can find somewhat similar? example: how read four lines of a file.=20 thanks and sorry for my badly English. --=20 Concepci=F3n, Chile. From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 18:18:02 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A36516A41C for ; Sat, 4 Jun 2005 18:18:02 +0000 (GMT) (envelope-from victor@bsdes.net) Received: from alf.dyndns.ws (244.Red-217-126-240.pooles.rima-tde.net [217.126.240.244]) by mx1.FreeBSD.org (Postfix) with ESMTP id 307F243D49 for ; Sat, 4 Jun 2005 18:18:00 +0000 (GMT) (envelope-from victor@bsdes.net) Received: from alf.dyndns.ws (pato.euesrg02.net [192.168.0.3]) by alf.dyndns.ws (8.13.1/8.13.1) with ESMTP id j54IHwpA002219 for ; Sat, 4 Jun 2005 20:17:58 +0200 (CEST) (envelope-from victor@bsdes.net) Date: Sat, 4 Jun 2005 20:17:30 +0200 From: Victor Balada Diaz To: freebsd-hackers@freebsd.org Message-ID: <20050604181730.GB49520@pato.euesrg02.net> Mail-Followup-To: Victor Balada Diaz , freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Subject: Re: help me with C languaje please, re: files. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 18:18:02 -0000 On Sat, Jun 04, 2005 at 02:11:01PM -0400, Pablo Mora wrote: > Hi all, > > I am programming in C and I need to read a quantity of lines of a > file. How can I know when a line arrives at his end? exists some > special character? exists some file in C in the kernel of FreeBSD > (4.11) where I can find somewhat similar? > > example: how read four lines of a file. Take a look at fgets(3). The end of line character (in FreeBSD) is '\n'. -- La prueba mas fehaciente de que existe vida inteligente en otros planetas, es que no han intentado contactar con nosotros. From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 4 20:19:39 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF0AC16A41C for ; Sat, 4 Jun 2005 20:19:39 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D44243D1D for ; Sat, 4 Jun 2005 20:19:39 +0000 (GMT) (envelope-from french.linuxian@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so69148nzp for ; Sat, 04 Jun 2005 13:19:39 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hQtptc5LaN8dgFeOMB6xHzxgrSfKUSSjNI2j386HKlQpk4dxWsYYe40Vt/CqZyA2MKQuoqxyPSbdUaVegYNMmM4n+NJfANnilGr2glrTr0ldNblss/Mrjv9BmQpb7TtAoTQRygrIFremvx2tIVkLmfu3lnGFmmfXP2nS+5/7Hsw= Received: by 10.36.222.39 with SMTP id u39mr1730161nzg; Sat, 04 Jun 2005 13:19:39 -0700 (PDT) Received: by 10.36.58.12 with HTTP; Sat, 4 Jun 2005 13:19:38 -0700 (PDT) Message-ID: <3727392705060413194e5acda2@mail.gmail.com> Date: Sat, 4 Jun 2005 16:19:39 -0400 From: Aziz Kezzou To: ray@redshift.com In-Reply-To: <3.0.1.32.20050603174714.00a44990@pop.redshift.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <3727392705060316555071c4ad@mail.gmail.com> <3.0.1.32.20050603174714.00a44990@pop.redshift.com> Cc: freebsd-hackers Subject: Re: Fork mystries.... X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Aziz Kezzou List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Jun 2005 20:19:40 -0000 Thank you guys, I got it fork is creating a different process. Currently, I am working a lot that I forget even the basic principales ;-)= =20 I need a break ... -aziz On 6/3/05, ray@redshift.com wrote: > Aziz, >=20 > Fork is for process creation. Look up pthread_create() and/or POSIX > thread > creation, etc. You should be able to find a lot of info on google with a > quick > search: =20 >=20 > http://math.arizona.edu/~swig/documentation/pthreads/ >=20 > From the OS standpoint a process is like a different program when you f= ork > it. > A thread is more like a single program with a bunch of subsections all > running > at the same time, then the OS and CPU jump back and forth giving a little > run-time to each subsection. Threads share a common space; processes [as > far as > I recal] do not (which is where inter process communication comes into > play). >=20 > Anyway, have fun! :) >=20 > Ray >=20 >=20 > At 07:55 PM 6/3/2005 -0400, Aziz Kezzou wrote: > | Hi all, > | It's probably not the right mailing list to ask but I am really > | surprised about global variable sharing in a multithreaded C > | application. If I remember well my multithreading course global > | variables are shared between threads, right ? > | =20 > | Example : > | ---------------------------- > | int counter =3D 0; > | int main() { > | if( fork()=3D=3D0) { > | while(1) { > | sleep(1); > | counter++; > | printf("Son : counter =3D %d\n", counter); =20 > | } =20 > | } else { > | while(1) { > | sleep(1); > | printf("Parent : counter =3D %d\n", counter); =20 > | } > | }=09=20 > | return 0; > | } > | ---------------------------- > |=20 > | All I get is : > | Parent : counter =3D 0 > | Son : counter =3D 1 > | Son : counter =3D 2 > | Parent : counter =3D 0 > | Son : counter =3D 3 > | Parent : counter =3D 0 > | Son : counter =3D 4 > | Parent : counter =3D 0 > |=20 > | why counter isn't shared between the two threads ??! > | thanks, > | -aziz > | _______________________________________________ > | 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" > |=20 > |=20 >