From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 14 16:18:35 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3A7A61065670 for ; Sun, 14 Dec 2008 16:18:35 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by mx1.freebsd.org (Postfix) with ESMTP id BD0088FC13 for ; Sun, 14 Dec 2008 16:18:34 +0000 (UTC) (envelope-from yonyossef.lists@gmail.com) Received: by ug-out-1314.google.com with SMTP id 30so79948ugs.39 for ; Sun, 14 Dec 2008 08:18:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:x-mailer:thread-index :x-mimeole; bh=7GW99+ghMHd71rypDhrCelqHsa1rsLgIcx1uuKiSpGw=; b=oILcXSOyTAwRo72eCbHDdElxhuIy13uWnZXEdmhhoD9NQtJMQB2FovtMmkX0W8bQvR MkN7eLNDTztTtpVPZ95mzvTwxpIr6w2YWrYBXzJzj+IP3YTXcZ0JBwUR/fYeDTZj01OL 2QIJY3NznFG0uG9IPGfP0wyUxEGNgvnpfRBJ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type:x-mailer :thread-index:x-mimeole; b=P04SbsOd5rz56292JWnkgCmg1ze4+8Q7rnUi8jmJvdhGzUmAoSYnJtnkTCzcyyWQ4P oXCQ6vd+OrpmYel9CKRykI5bB6EpjJ4BIn1+a8P1fqMSwMGl5Y3dwYKjbu5SRwN5aRYg eoeqiuqoE1SAoLteKn6Z3gSVEYFtGgG/ecN0Y= Received: by 10.67.10.18 with SMTP id n18mr1253742ugi.45.1229271513721; Sun, 14 Dec 2008 08:18:33 -0800 (PST) Received: from mtllpt03 (DSL212-235-20-133.bb.netvision.net.il [212.235.20.133]) by mx.google.com with ESMTPS id 32sm1391985ugf.37.2008.12.14.08.18.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 14 Dec 2008 08:18:29 -0800 (PST) From: "Yony Yossef" To: , Date: Sun, 14 Dec 2008 18:18:26 +0200 Message-ID: <000001c95e07$9a00b750$220f000a@mtl.com> MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcleB3L1w1FPfM67Th2QhCAfTPGeZw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Detecting network memory leaks using netstat -m X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2008 16:18:35 -0000 Hi All, I'm trying to find out whether my ethernet driver is leaking. I just found out about netstat -m, but I don't understand some of it's output. Can somebody explain me what is "mbuf+clusters out of packet secondary zone in use" ? My output shows it raised significantly during equilibrium after several stress runs: BEFORE 16641/217734/234375 mbufs in use (current/cache/total) 16640/217766/234406/262144 mbuf clusters in use (current/cache/total/max) 256/1664 mbuf+clusters out of packet secondary zone in use (current/cache) AFTER 625083/86562/711645 mbufs in use (current/cache/total) 180264/81880/262144/262144 mbuf clusters in use (current/cache/total/max) 160420/311 mbuf+clusters out of packet secondary zone in use (current/cache) Thanks Yony From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 14 16:16:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EEF3F1065680 for ; Sun, 14 Dec 2008 16:16:22 +0000 (UTC) (envelope-from yoniy@mellanox.co.il) Received: from mellanox.co.il (mail.mellanox.co.il [194.90.237.43]) by mx1.freebsd.org (Postfix) with ESMTP id 087248FC1C for ; Sun, 14 Dec 2008 16:16:21 +0000 (UTC) (envelope-from yoniy@mellanox.co.il) Received: from Internal Mail-Server by MTLPINE1 (envelope-from yoniy@mellanox.co.il) with SMTP; 14 Dec 2008 17:49:38 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sun, 14 Dec 2008 17:49:37 +0200 Message-ID: <5D49E7A8952DC44FB38C38FA0D758EAD01335E8C@mtlexch01.mtl.com> In-Reply-To: <877i6ct1kj.fsf@kobe.laptop> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Detecting network memory leaks using netstat -m Thread-Index: AclYhWeoe95GSZt3QlCl//ARQwccPAFfOEQw References: <20def4870812070756n649f442fwc6e1d3da195a0669@mail.gmail.com> <877i6ct1kj.fsf@kobe.laptop> From: "Yehonatan Yossef" To: , X-Mailman-Approved-At: Sun, 14 Dec 2008 16:39:45 +0000 Cc: Subject: Detecting network memory leaks using netstat -m X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2008 16:16:23 -0000 Hi All, I'm trying to find out whether my ethernet driver is leaking. I just found out about netstat -m, but I don't understand some of it's output. Can somebody explain me what is "mbuf+clusters out of packet secondary zone in use" ? My output shows it raised significantly during equilibrium after several stress runs: BEFORE 16641/217734/234375 mbufs in use (current/cache/total) 16640/217766/234406/262144 mbuf clusters in use (current/cache/total/max) 256/1664 mbuf+clusters out of packet secondary zone in use (current/cache) AFTER 625083/86562/711645 mbufs in use (current/cache/total) 180264/81880/262144/262144 mbuf clusters in use (current/cache/total/max) 160420/311 mbuf+clusters out of packet secondary zone in use (current/cache) Thanks Yony From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 05:03:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D415D1065670 for ; Mon, 15 Dec 2008 05:03:19 +0000 (UTC) (envelope-from ravi.murty@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.224]) by mx1.freebsd.org (Postfix) with ESMTP id A6ED28FC33 for ; Mon, 15 Dec 2008 05:03:19 +0000 (UTC) (envelope-from ravi.murty@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2553226rvf.43 for ; Sun, 14 Dec 2008 21:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=e/ftFXHvkR7gkNCwS4j2g5aE0JNgFahcISP5GoN1ers=; b=EJ+rbvIrQGBYHTwX/rdxaq7q3vQLUwPvqCdO+mimx1IFs7lnCFyFFkX+kftrFTekt0 lPqIORLC/4qcV1Jc3OZbqfU7+TGYdaZna8RNW7MYJsFZdW/8Wgse6M7+h9K/cb0Xag0J bln9lDt8HEwlqMDTxgA41PHC4LzXabkafxE7U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=GmqhkIirtewBJCUL5VUCYz50sdzJUrKzO+Pdj0XCsaRbyG2NtisG2hv43CrKDPSriu X0JHqjWobDQpizqR/Me9I8GL+ppCXKw9kEyqSKtDeL6HBz7HNlNnNpLjMgqY0LMvwROD kZ6MyuDqeiLao3DGPO70fHu2RWeQaeROI0tW8= Received: by 10.141.88.3 with SMTP id q3mr3481209rvl.229.1229317399274; Sun, 14 Dec 2008 21:03:19 -0800 (PST) Received: by 10.141.34.7 with HTTP; Sun, 14 Dec 2008 21:03:19 -0800 (PST) Message-ID: <95b10a340812142103u3ab8bd2br97033a7c7e8bec3@mail.gmail.com> Date: Sun, 14 Dec 2008 21:03:19 -0800 From: "Ravi Murty" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: td_critnest X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 05:03:19 -0000 Hello All, The implementation of critical_enter and critical_exit changed between freebsd 5 and freebsd 6. In the newer implemtnation, the code checks if td_critnest is 1 and if it is sets it to zero, then checks if the thread owes a preempt. If so, it increments td_critnest by 1 before grabbing a lock and then decrements it back to zero. I can't figure out why it does this. The freebsd 5 implementation seems straightforward where we check if the thread owes a preempt and if so we switch to the new thread. Can anyone help me with this? Thanks Ravi From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 05:42:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA4B3106564A for ; Mon, 15 Dec 2008 05:42:57 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.delphij.net (delphij-pt.tunnel.tserv2.fmt.ipv6.he.net [IPv6:2001:470:1f03:2c9::2]) by mx1.freebsd.org (Postfix) with ESMTP id 82D208FC2D for ; Mon, 15 Dec 2008 05:42:57 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [211.166.10.233]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tarsier.delphij.net (Postfix) with ESMTPS id 9171528448 for ; Mon, 15 Dec 2008 13:42:56 +0800 (CST) Received: from localhost (tarsier.geekcn.org [211.166.10.233]) by tarsier.geekcn.org (Postfix) with ESMTP id EF180EC4FA3; Mon, 15 Dec 2008 13:42:55 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([211.166.10.233]) by localhost (mail.geekcn.org [211.166.10.233]) (amavisd-new, port 10024) with ESMTP id dB+9+ErY+Nqm; Mon, 15 Dec 2008 13:42:50 +0800 (CST) Received: from charlie.delphij.net (c-67-180-38-12.hsd1.ca.comcast.net [67.180.38.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTPSA id E2A00EC4821; Mon, 15 Dec 2008 13:42:48 +0800 (CST) Message-ID: <4945EE55.2050401@delphij.net> Date: Sun, 14 Dec 2008 21:42:45 -0800 From: Xin LI Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081125) MIME-Version: 1.0 To: Ravi Murty References: <95b10a340812142103u3ab8bd2br97033a7c7e8bec3@mail.gmail.com> In-Reply-To: <95b10a340812142103u3ab8bd2br97033a7c7e8bec3@mail.gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=18EDEBA0; url=http://www.delphij.net/delphij.asc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: td_critnest X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 05:42:57 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ravi Murty wrote: > Hello All, > > The implementation of critical_enter and critical_exit changed between > freebsd 5 and freebsd 6. In the newer implemtnation, the code checks if > td_critnest is 1 and if it is sets it to zero, then checks if the thread > owes a preempt. If so, it increments td_critnest by 1 before grabbing a lock > and then decrements it back to zero. I can't figure out why it does this. > The freebsd 5 implementation seems straightforward where we check if the > thread owes a preempt and if so we switch to the new thread. Can anyone help > me with this? My guess is to prevent race conditions (i.e. to split the owepreempt flag into a separate variable), since this value could be changed in an interrupt context, and not only during the current thread context. Cheers, - -- Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklF7lUACgkQi+vbBBjt66C0sQCeOZCFZu4VBTRk3it4/424pAbc LRoAoLfdoS09ZX2SSZ1Z/SOw+rqkrkQ0 =P2Ez -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 09:27:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1E44F106564A for ; Mon, 15 Dec 2008 09:27:15 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.189]) by mx1.freebsd.org (Postfix) with ESMTP id CFCD38FC13 for ; Mon, 15 Dec 2008 09:27:14 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so2816224rne.12 for ; Mon, 15 Dec 2008 01:27:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=sQo1JBxnAXfLbVlZiZKKzDinFymWVWcc8/6wWLR1eos=; b=e37Mk/5oIqVbyqjP9CSOEpZFl9uQCZgQ0FA7ll9N1FGviHXoOhJmlweAgkQ25O/q+z xYRnXnfkVmc2b6BFTAfy11KKIrdk4lQfTRmMiUieKiVfM+uZ/d4APFDFfelng6rfXRAy ESOwYAgDmn75RtoFVsbbgW4sKLdNf2/yuaNvs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=bfrIh7tApmelhoGDjHcCI+TVW2GQqrDMJQkBlGizX5M10TZEU90wFxdfn+IxonEYZK S90tzNIlgdtMFfmE+jWDOS74RFFoYK6k0swhOSSaWO4V0h1m5PBqESLPUzdg1dexFBpY U0Xax01TS7OwMTgrlYJd0YHdQEhsxm82jSFa4= Received: by 10.90.115.17 with SMTP id n17mr3569065agc.7.1229333234152; Mon, 15 Dec 2008 01:27:14 -0800 (PST) Received: by 10.90.81.12 with HTTP; Mon, 15 Dec 2008 01:27:14 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2008 14:57:14 +0530 From: "vasanth raonaik" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: simulate ntp leap second adjustments X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 09:27:15 -0000 I would like to test the behavior of ntpd during leap second adjustments. Could any one please help me how to simulate the scenario locally to test if ntpd works fine. Thanks, Vasanth From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 12:08:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 602251065678 for ; Mon, 15 Dec 2008 12:08:27 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 840A18FC16 for ; Mon, 15 Dec 2008 12:08:25 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA17034; Mon, 15 Dec 2008 14:08:16 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <494648AF.6010009@icyb.net.ua> Date: Mon, 15 Dec 2008 14:08:15 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: Peter Jeremy , freebsd-hackers@freebsd.org References: <4909DC03.1080901@icyb.net.ua> <20081030184625.GA99398@server.vk2pj.dyndns.org> <490B05BA.9090306@icyb.net.ua> <4942483D.8000003@icyb.net.ua> In-Reply-To: <4942483D.8000003@icyb.net.ua> Content-Type: multipart/mixed; boundary="------------000403070303080800080101" Cc: Subject: memtest86+ on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 12:08:27 -0000 This is a multi-part message in MIME format. --------------000403070303080800080101 Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit on 12/12/2008 13:17 Andriy Gapon said the following: > Just in case anybody still remembers this issue. > It seams that the main culprit here was the following line in the linker > script: > > OUTPUT_FORMAT("elf32-i386"); > > I was tipped just today that it should have read: > OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", > "elf32-i386-freebsd"); In fact it was Stephan Eisvogel who provided me with this hint. He has also kindly pointed me to his version of memtest86+ for FreeBSD that not only has porting changes but also some functional changes/enhancements as well: http://seitics.de/pub/memtest/ Stephan has also offered/suggested the following: > If there is sufficient interest I could be persuaded to donate > our Forth triple boot menu code that we use in our own products > (primary FreeBSD partition, secondary dito, memtest) to help > FreeBSD gain memtest on boot. I personally think that this sounds cool, especially for certain kinds of applications. And just for the reference I am attaching my minimal patch that allows memtest86+ to compile on FreeBSD. I haven't tested the result though. I have some doubts about .code32 change in setup.S. Also I see that Stephan changed memtest.lds so that . = 0x10000; became . = 0xc0120000; -- Andriy Gapon --------------000403070303080800080101 Content-Type: text/plain; name="memtest.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="memtest.patch" ZGlmZiAtcnVwIG1lbXRlc3Q4NistMi4wMS9lcnJvci5jIG1lbXRlc3Q4NistMi4wMS9lcnJv ci5jCi0tLSBtZW10ZXN0ODYrLTIuMDEvZXJyb3IuYwkyMDA4LTAyLTIxIDEzOjI2OjA1LjAw MDAwMDAwMCArMDIwMAorKysgbWVtdGVzdDg2Ky0yLjAxL2Vycm9yLmMJMjAwOC0xMi0xMiAx MzoxNTowMC45NDM3Nzg3NjYgKzAyMDAKQEAgLTExLDcgKzExLDYgQEAKICAKICNpbmNsdWRl ICJ0ZXN0LmgiCiAjaW5jbHVkZSAiY29uZmlnLmgiCi0jaW5jbHVkZSA8c3lzL2lvLmg+CiAj aW5jbHVkZSAiZG1pLmgiCiAKIGV4dGVybiBpbnQgdGVzdF90aWNrcywgbnRpY2tzLCBiZWVw bW9kZTsKZGlmZiAtcnVwIG1lbXRlc3Q4NistMi4wMS9tZW10ZXN0LmxkcyBtZW10ZXN0ODYr LTIuMDEvbWVtdGVzdC5sZHMKLS0tIG1lbXRlc3Q4NistMi4wMS9tZW10ZXN0LmxkcwkyMDA4 LTAyLTIxIDEzOjI2OjA1LjAwMDAwMDAwMCArMDIwMAorKysgbWVtdGVzdDg2Ky0yLjAxL21l bXRlc3QubGRzCTIwMDgtMTItMTIgMTM6MDk6MDcuOTkzMjI2Mjk2ICswMjAwCkBAIC0xLDQg KzEsNCBAQAotT1VUUFVUX0ZPUk1BVCgiZWxmMzItaTM4NiIpOw0KK09VVFBVVF9GT1JNQVQo ImVsZjMyLWkzODYtZnJlZWJzZCIsICJlbGYzMi1pMzg2LWZyZWVic2QiLCAiZWxmMzItaTM4 Ni1mcmVlYnNkIik7DQogT1VUUFVUX0FSQ0goaTM4Nik7DQogDQogRU5UUlkoX3N0YXJ0KTsg DQpkaWZmIC1ydXAgbWVtdGVzdDg2Ky0yLjAxL21lbXRlc3Rfc2hhcmVkLmxkcyBtZW10ZXN0 ODYrLTIuMDEvbWVtdGVzdF9zaGFyZWQubGRzCi0tLSBtZW10ZXN0ODYrLTIuMDEvbWVtdGVz dF9zaGFyZWQubGRzCTIwMDgtMDItMjEgMTM6MjY6MDUuMDAwMDAwMDAwICswMjAwCisrKyBt ZW10ZXN0ODYrLTIuMDEvbWVtdGVzdF9zaGFyZWQubGRzCTIwMDgtMTItMTIgMTM6MDk6MTku MTg0OTM4ODA0ICswMjAwCkBAIC0xLDQgKzEsNCBAQAotT1VUUFVUX0ZPUk1BVCgiZWxmMzIt aTM4NiIpOw0KK09VVFBVVF9GT1JNQVQoImVsZjMyLWkzODYtZnJlZWJzZCIsICJlbGYzMi1p Mzg2LWZyZWVic2QiLCAiZWxmMzItaTM4Ni1mcmVlYnNkIik7DQogT1VUUFVUX0FSQ0goaTM4 Nik7DQogDQogRU5UUlkoc3RhcnR1cF8zMik7IA0KZGlmZiAtcnVwIG1lbXRlc3Q4NistMi4w MS9zZXR1cC5TIG1lbXRlc3Q4NistMi4wMS9zZXR1cC5TCi0tLSBtZW10ZXN0ODYrLTIuMDEv c2V0dXAuUwkyMDA4LTAyLTIxIDEzOjI2OjA1LjAwMDAwMDAwMCArMDIwMAorKysgbWVtdGVz dDg2Ky0yLjAxL3NldHVwLlMJMjAwOC0xMi0xMiAxMzoxNjo0OC40MDQ5ODk3NDYgKzAyMDAK QEAgLTQyLDcgKzQyLDkgQEAgc3RhcnQ6DQogCWp6CWFsdF9hMjBfZG9uZQ0KIAkNCiAJLyog c2V0IG9yIGNsZWFyIGJpdDEsIHRoZSBBTFRfQTIwX0dBVEUgYml0ICovDQorCS5jb2RlMzIN CiAJbW92Ygk0KCVlc3ApLCAlYWgNCisJLmNvZGUxNg0KIAl0ZXN0YgklYWgsICVhaA0KIAlq eglhbHRfYTIwX2NvbnQxDQogCW9yYgkkMiwgJWFsDQpkaWZmIC1ydXAgbWVtdGVzdDg2Ky0y LjAxL3Rlc3QuYyBtZW10ZXN0ODYrLTIuMDEvdGVzdC5jCi0tLSBtZW10ZXN0ODYrLTIuMDEv dGVzdC5jCTIwMDgtMDItMjEgMTM6MjY6MDUuMDAwMDAwMDAwICswMjAwCisrKyBtZW10ZXN0 ODYrLTIuMDEvdGVzdC5jCTIwMDgtMTItMTIgMTM6MTQ6MDYuMjU3MzYxNDExICswMjAwCkBA IC05LDkgKzksMTAgQEAKICAqIGh0dHA6Ly93d3cueDg2LXNlY3JldC5jb20gLSBodHRwOi8v d3d3Lm1lbXRlc3Qub3JnCiAgKi8KIAorI2luY2x1ZGUgPHN5cy90eXBlcy5oPgorI2luY2x1 ZGUgPG1hY2hpbmUvY3B1ZnVuYy5oPgogI2luY2x1ZGUgInRlc3QuaCIKICNpbmNsdWRlICJj b25maWcuaCIKLSNpbmNsdWRlIDxzeXMvaW8uaD4KICNpbmNsdWRlICJkbWkuaCIKIAogZXh0 ZXJuIGludCBzZWdzLCBiYWlsOwpAQCAtMTQwNywxOCArMTQwOCwxOCBAQCB2b2lkIGJlZXAo dW5zaWduZWQgaW50IGZyZXF1ZW5jeSkKIAl1bnNpZ25lZCBpbnQgY291bnQgPSAxMTkzMTgw IC8gZnJlcXVlbmN5OwogCiAJLy8gU3dpdGNoIG9uIHRoZSBzcGVha2VyCi0Jb3V0Yl9wKGlu Yl9wKDB4NjEpfDMsIDB4NjEpOworCW91dGIoMHg2MSwgaW5iKDB4NjEpfDMpOwogCiAJLy8g U2V0IGNvbW1hbmQgZm9yIGNvdW50ZXIgMiwgMiBieXRlIHdyaXRlCi0Jb3V0Yl9wKDB4QjYs IDB4NDMpOworCW91dGIoMHg0MywgMHhCNik7CiAKIAkvLyBTZWxlY3QgZGVzaXJlZCBIegot CW91dGJfcChjb3VudCAmIDB4ZmYsIDB4NDIpOwotCW91dGIoKGNvdW50ID4+IDgpICYgMHhm ZiwgMHg0Mik7CisJb3V0YigweDQyLCBjb3VudCAmIDB4ZmYpOworCW91dGIoMHg0MiwgKGNv dW50ID4+IDgpICYgMHhmZik7CiAKIAkvLyBCbG9jayBmb3IgMTAwIG1pY3Jvc2Vjb25kcwog CXNsZWVwKDEwMCwgMSk7CiAKIAkvLyBTd2l0Y2ggb2ZmIHRoZSBzcGVha2VyCi0Jb3V0Yihp bmJfcCgweDYxKSYweEZDLCAweDYxKTsKKwlvdXRiKDB4NjEsIGluYigweDYxKSYweEZDKTsK IH0K --------------000403070303080800080101-- From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 13:07:27 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A09AB1065678 for ; Mon, 15 Dec 2008 13:07:27 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id 5BCC88FC1A for ; Mon, 15 Dec 2008 13:07:27 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so1052336yxb.13 for ; Mon, 15 Dec 2008 05:07:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=YClr432km9QYoeQtG389/LN3wGg6Cl63FFpYxsQcNyk=; b=uxp3oVxwbyVRhVpDWl7kG5g/ixFDe0EXrx0d9mLAtY+9yiYry4urB48Z5P99vFuMH4 vO/i5N3G3hakmQCRs71z+XKvoM7s0AjPMZUbPBPfOqMTX3oqHDJ92bePGR1rcFuDL93q sZ+BvxHW+lLwfvGWIULLL9XjvTOoR0vmhPi7g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=lIkETYN7EOYKflAWy+XV72Twm5+MMyACDdj6uqk9Eh0B80nz1vY2cis68mBqnfICeD Dd8i8apYqwNygs+urMhMRft76ZTTpipMQtjew6mo5+Aaj4ulkhQbbCrkJR7tBtsZ0fc7 uLN9DrJht+Gc7zLsxI5qktqbMbuYY9HNUkRdA= Received: by 10.90.71.16 with SMTP id t16mr3672105aga.1.1229346446401; Mon, 15 Dec 2008 05:07:26 -0800 (PST) Received: by 10.90.81.12 with HTTP; Mon, 15 Dec 2008 05:07:26 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2008 18:37:26 +0530 From: "vasanth raonaik" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ntpd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 13:07:27 -0000 hello hackers, I am looking into the ntpd code. I need to know in which file and function does ntpd reply/reponse query packets are formulated. Please provide any pointers for the same. Thanks, Vasanth From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 13:19:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A17F81065673 for ; Mon, 15 Dec 2008 13:19:00 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.17.10]) by mx1.freebsd.org (Postfix) with ESMTP id 328E08FC1C for ; Mon, 15 Dec 2008 13:19:00 +0000 (UTC) (envelope-from max@love2party.net) Received: from vampire.homelinux.org (dslb-088-066-061-136.pools.arcor-ip.net [88.66.61.136]) by mrelayeu.kundenserver.de (node=mrelayeu8) with ESMTP (Nemesis) id 0ML31I-1LCDLe2YuK-0006Md; Mon, 15 Dec 2008 14:18:58 +0100 Received: (qmail 37239 invoked from network); 15 Dec 2008 13:18:58 -0000 Received: from fbsd8.laiers.local (192.168.4.151) by router.laiers.local with SMTP; 15 Dec 2008 13:18:58 -0000 From: Max Laier Organization: FreeBSD To: freebsd-hackers@freebsd.org Date: Mon, 15 Dec 2008 14:18:57 +0100 User-Agent: KMail/1.10.1 (FreeBSD/8.0-CURRENT; KDE/4.1.1; i386; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812151418.58169.max@love2party.net> X-Provags-ID: V01U2FsdGVkX1+3UyC6g7fDERPgHemDXlZHABO3X2+YeL7kn+Z OqTktg+DBF7HFHm4DUuqq6WmL1nHBwCNG9I67I9ZF6NcaI0/Rf JqTwvO0bXCNhH4UlNrXcA== Cc: vasanth raonaik Subject: Re: ntpd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 13:19:00 -0000 On Monday 15 December 2008 14:07:26 vasanth raonaik wrote: > I am looking into the ntpd code. I need to know in which file and function > does ntpd reply/reponse query packets are formulated. Please provide any > pointers for the same. I don't know what "query packets" are supposed to be in the NTP context, but it looks like you are looking for ntp_proto.c - convenient name, isn't it? ;) -- /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 13:26:55 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8725C1065677 for ; Mon, 15 Dec 2008 13:26:55 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: from rn-out-0910.google.com (rn-out-0910.google.com [64.233.170.191]) by mx1.freebsd.org (Postfix) with ESMTP id 3FB1A8FC0C for ; Mon, 15 Dec 2008 13:26:55 +0000 (UTC) (envelope-from vasanth.raonaik@gmail.com) Received: by rn-out-0910.google.com with SMTP id j71so2893615rne.12 for ; Mon, 15 Dec 2008 05:26:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=1eftIFldmKLDNEw3MV+W9vKZ9+XBEMZDyU8Cf9m8t1M=; b=VskogLq3DHq9gCmqVxlv5XCAXEFvg3tACIu9q2zmBajxT1xjpVZdtzbUx7QOlpezVU dlXVYr0Qp5KBxEc834h27WR5iaGFE46RndXe8X5WxPY7fNyVJNkPh5dXOVhTT/J9IMO/ KIINB4vEWV2jEyL5vThSQTwVXF6JnPZMbEs0k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=inWEWpcXgZ5Mh2Ct5S/vojV0Gu5VjCTD4lqNnsNwzOEdDzr/ELmYkKOG9lSXQGAGf4 Kezv6dqqynlkaKt5ccYllWzYtngFwDP5goYyZrshP1SQR5+3+SnAvjuzlTzkoypakLS5 Q0bTxaslYY5zYDNRxmY1rVzQFKNKRGrr3szGo= Received: by 10.90.68.20 with SMTP id q20mr3673936aga.110.1229347614599; Mon, 15 Dec 2008 05:26:54 -0800 (PST) Received: by 10.90.81.12 with HTTP; Mon, 15 Dec 2008 05:26:54 -0800 (PST) Message-ID: Date: Mon, 15 Dec 2008 18:56:54 +0530 From: "vasanth raonaik" To: "Max Laier" In-Reply-To: <200812151418.58169.max@love2party.net> MIME-Version: 1.0 References: <200812151418.58169.max@love2party.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: ntpd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 13:26:55 -0000 Thanks for your reply Max. I will start from that file and let you know if I need more info. Thanks, Vasanth From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 14:27:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AF0F1106564A for ; Mon, 15 Dec 2008 14:27:15 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id 591348FC1B for ; Mon, 15 Dec 2008 14:27:14 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=mNEr84tGe/QVW7WJZXAABosdP6+MiGbYUrIpNd57SnEd7OW+qh4Jk+3jpIECTIOUITMwKieDhgn3cBABAdoW+rM6SJ//f0OG/iZAwL4BOfunegs44Am3gFK2psYSoZ/HiGxHR/1jALqqdDMBFeUxDuZ8Y40PxzpFzFBb1NzpFic=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1LCEPd-0004cw-GK; Mon, 15 Dec 2008 17:27:09 +0300 Date: Mon, 15 Dec 2008 17:27:08 +0300 From: Eygene Ryabinkin To: Andriy Gapon Message-ID: References: <4909DC03.1080901@icyb.net.ua> <20081030184625.GA99398@server.vk2pj.dyndns.org> <490B05BA.9090306@icyb.net.ua> <4942483D.8000003@icyb.net.ua> <494648AF.6010009@icyb.net.ua> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wwtQuX191/I956S7" Content-Disposition: inline In-Reply-To: <494648AF.6010009@icyb.net.ua> Sender: rea-fbsd@codelabs.ru Cc: freebsd-hackers@freebsd.org Subject: Re: memtest86+ on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rea-fbsd@codelabs.ru List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 14:27:15 -0000 --wwtQuX191/I956S7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Andriy, good day. Mon, Dec 15, 2008 at 02:08:15PM +0200, Andriy Gapon wrote: > on 12/12/2008 13:17 Andriy Gapon said the following: > > Just in case anybody still remembers this issue. > > It seams that the main culprit here was the following line in the linker > > script: > >=20 > > OUTPUT_FORMAT("elf32-i386"); > >=20 > > I was tipped just today that it should have read: > > OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", > > "elf32-i386-freebsd"); >=20 > In fact it was Stephan Eisvogel who provided me with this hint. Yes, it is a somewhat known culprit. A number of packages that are messing with assembly code have troubles due to this directive. The better way to overcome this issue is not to patch linker scripts, but to override object format via '--oformat elf32-i386-freebsd' command-line switch to ld(1). With this your proposed patch could be made even smaller, providing that you can override linker command-line switches, and it will be more robust in respect to the patching troubles when linker scripts will be changed. --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --wwtQuX191/I956S7 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklGaTwACgkQthUKNsbL7YgFygCfdFfShV5bubDTqFZDbEGeYduz PN4AnRY6Kx+3Kqof4L4QmfjAjulo0ev+ =b6Zq -----END PGP SIGNATURE----- --wwtQuX191/I956S7-- From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 15 14:39:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E271065672 for ; Mon, 15 Dec 2008 14:39:00 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 956D28FC19 for ; Mon, 15 Dec 2008 14:38:59 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id QAA22246; Mon, 15 Dec 2008 16:37:19 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <49466B9E.1090900@icyb.net.ua> Date: Mon, 15 Dec 2008 16:37:18 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: rea-fbsd@codelabs.ru References: <4909DC03.1080901@icyb.net.ua> <20081030184625.GA99398@server.vk2pj.dyndns.org> <490B05BA.9090306@icyb.net.ua> <4942483D.8000003@icyb.net.ua> <494648AF.6010009@icyb.net.ua> In-Reply-To: Content-Type: text/plain; charset=KOI8-U Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: memtest86+ on freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Dec 2008 14:39:00 -0000 on 15/12/2008 16:27 Eygene Ryabinkin said the following: > Andriy, good day. > > Mon, Dec 15, 2008 at 02:08:15PM +0200, Andriy Gapon wrote: >> on 12/12/2008 13:17 Andriy Gapon said the following: >>> Just in case anybody still remembers this issue. >>> It seams that the main culprit here was the following line in the linker >>> script: >>> >>> OUTPUT_FORMAT("elf32-i386"); >>> >>> I was tipped just today that it should have read: >>> OUTPUT_FORMAT("elf32-i386-freebsd", "elf32-i386-freebsd", >>> "elf32-i386-freebsd"); >> In fact it was Stephan Eisvogel who provided me with this hint. > > Yes, it is a somewhat known culprit. A number of packages that are > messing with assembly code have troubles due to this directive. The > better way to overcome this issue is not to patch linker scripts, but to > override object format via '--oformat elf32-i386-freebsd' command-line > switch to ld(1). With this your proposed patch could be made even > smaller, providing that you can override linker command-line switches, > and it will be more robust in respect to the patching troubles when > linker scripts will be changed. Eygene, thanks a lot! this option is indeed sufficient. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 05:49:17 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C0298106564A for ; Tue, 16 Dec 2008 05:49:17 +0000 (UTC) (envelope-from venkatb18@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.224]) by mx1.freebsd.org (Postfix) with ESMTP id 7358D8FC17 for ; Tue, 16 Dec 2008 05:49:17 +0000 (UTC) (envelope-from venkatb18@gmail.com) Received: by qb-out-0506.google.com with SMTP id f30so1419371qba.35 for ; Mon, 15 Dec 2008 21:49:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=x8ZRy1S5ohn07Sf94OD1BW3MhAPL5yy19j8ScjkvKvQ=; b=mxIn9pxGaC6/kFt+eFpnO2Cl5H2MyrFKB2TSJL2W76LJWX3WVyi8tsDjHJnKmyw/ZY pA10/sSR5z55e7HnOkBDknzGnzHKX3ESkmRgpszTFw4y++gYtguZ7V0eUTc2DxVRCFVJ 5ZRneWwbBnKYHYM5Ky3FteQC8wIU2Cm51zk98= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=n49YcFiFdd/SqbEt2JjkwehRPWGN7+KbTHfuNV6urBb4lbKDUcpdiiSCToXRL2Vepw XF6VGfYcOkx+w2ThCHOBE43tn5rpb6nz15iWWxEvazQMdgVbPqcxqImMf0HbGnkuUxTF 6lO9vAS02Hcdw4YZ8pCI5IDHQ5bM5KjNqOXXw= Received: by 10.142.172.12 with SMTP id u12mr3154264wfe.26.1229405727423; Mon, 15 Dec 2008 21:35:27 -0800 (PST) Received: by 10.142.126.5 with HTTP; Mon, 15 Dec 2008 21:35:27 -0800 (PST) Message-ID: Date: Tue, 16 Dec 2008 11:05:27 +0530 From: "Venki B" To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: [patch] Path MTU Discovery when routing over IPSec connections X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 05:49:17 -0000 SGkKCkZhbGxvdyB0aGlzIHdlYnBhZ2U6Cmh0dHA6Ly93d3cuaXBzZWMtaG93dG8ub3JnL3gzMDQu aHRtbApmcmVlIGJzZCBpcyBzaW1pbGFyIHRvIGxpbnV4ClRoYW5rcywKLS1WZW5rYXRlc2gg77+9 Cg== From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 12:23:29 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CA19106564A for ; Tue, 16 Dec 2008 12:23:29 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 3FF048FC1E for ; Tue, 16 Dec 2008 12:23:29 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1697995ywe.13 for ; Tue, 16 Dec 2008 04:23:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=SWPd6V/aLw/2goi/BhXAOpOW+LmgPEoEkd0OGYMi2F4=; b=SkEsgpyGv0ypYo9bDrq+bqFFeFC5fQlib2bro9i2PmzuYcKWQC3NUizGqkVr5TMPop l+FSjJiO9tnPLpkNoA12E4ZXidZrcqyzC73tAJrus8znDyGlrGtTAChVisC30utqEdRd 1u35YzDgsqAStCiROWalxQxh0da0qap65dmHU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=eh1rU77rkohh3CdyhDb64Kkyh0Hb75U66HcIurGFLQ/fMNmyHkm1wFbBkrIPIXt5hh bVU5cFndLxyFSmV6tku9/hdEXh7p87zfjWFfU/FU6oAIxSavnvwvaq/QSPn13PVQ+gTu lKh5f43qbbuXXq+LClYetasjbLAmyHUV4H4NU= Received: by 10.90.83.18 with SMTP id g18mr4445896agb.53.1229430208473; Tue, 16 Dec 2008 04:23:28 -0800 (PST) Received: by 10.90.91.14 with HTTP; Tue, 16 Dec 2008 04:23:28 -0800 (PST) Message-ID: Date: Tue, 16 Dec 2008 15:23:28 +0300 From: pluknet To: jb@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 12:23:29 -0000 Hi. Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 without merging a possible underlining infrastructure and breaking something else? I want to use it in my custom freebsd6 because I see "interspersed strings written from different CPUs at the same time": uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t pde) eaxtx cfcorke1 22e3e deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 ) at fork1 223 I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. Thanks. -- wbr, pluknet From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 13:16:48 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22ADB1065675 for ; Tue, 16 Dec 2008 13:16:48 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 60D298FC25 for ; Tue, 16 Dec 2008 13:16:46 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA03767; Tue, 16 Dec 2008 15:16:44 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <4947AA3C.4040005@icyb.net.ua> Date: Tue, 16 Dec 2008 15:16:44 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.18 (X11/20081124) MIME-Version: 1.0 To: freebsd-hackers@FreeBSD.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: usb keyboard vs btx: an SMI theory X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 13:16:48 -0000 I am not a close-to-hardware guy, my knowledge of IA32 architecture and IA32 assembly is very (very!) limited, so my reasoning can have some glaring flaws. Also, I am quite fuzzy on the details of btx workings and some other aspects. Still I have a theory (or a "gut feeling") about the bad interaction between "newer" loader and USB keyboard that I experienced. I believe that a number other people had the same or similar issues. It seems that i386 btx code contains routines, intx31/int_hw + rret_tramp, to enter real mode, execute an interrupt handler and exit real mode. It seems that this code can be invoked in two cases: (1) when protected code wishes to execute a BIOS int function and calls into btx via int 31h; (2) when a hardware interrupt happens while in protected mode. It also looks that the routine saves and restores certain context before entering and after exiting real mode. This is done in a special fixed memory location (MEM_ESPR). This memory lcoation also seems to be used as a stack base address for real mode. Normally there can not be any shared/overlapping access to that location. This is because in all cases interrupts are disabled and machine is supposed to be uniprocessor mode still. Now lets look at the other end - "USB legacy support". I think that BIOS emulates PS/2 keyboard for real USB keyboard in the following way. When a key is pressed a USB event is generated by the keyboard. USB host controller generates an SMI upon the USB event. SMM code checks if SMI was generated by USB, performs necessary USB chores and then pretends as if the key press was made on an PS/2 keyboard. This is something that I am very fuzzy about, but I think that SMM code somehow invokes IRQ 1 handler. And I think that because SMI is not maskable it can be "nested" inside any other interrupt (software or hardware) and it is possible that IRQ1 handler for protected mode can be executed (and thus int_hw) while we were already executing int_hw for some other reason - a "system call" from protected mode code or hardware interrupt. In this case the context data stored in memory would get corrupted. I suspect that what I actually observe looks like interrupts never getting re-enabled. Again, I am very fuzzy about the exact details, but I think that this is something that could be happening and I think that SMI is of primary interest here. I also think that this might explain to a certain degree the difference in behavior between "older" btx and "newer" btx. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 13:40:44 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 729A01065670 for ; Tue, 16 Dec 2008 13:40:44 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.terabit.net.ua (mail.terabit.net.ua [195.137.202.147]) by mx1.freebsd.org (Postfix) with ESMTP id 1D2948FC1B for ; Tue, 16 Dec 2008 13:40:44 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from skuns.zoral.com.ua ([91.193.166.194] helo=mail.zoral.com.ua) by mail.terabit.net.ua with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1LCaAB-000O7p-AQ; Tue, 16 Dec 2008 15:40:39 +0200 Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id mBGDeaV7042767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 16 Dec 2008 15:40:36 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3) with ESMTP id mBGDea9V062130; Tue, 16 Dec 2008 15:40:36 +0200 (EET) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.3/8.14.3/Submit) id mBGDeZ19062129; Tue, 16 Dec 2008 15:40:35 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 16 Dec 2008 15:40:35 +0200 From: Kostik Belousov To: pluknet Message-ID: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="fPlFr9CTKi+yOJ4Y" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua X-Virus-Scanned: mail.terabit.net.ua 1LCaAB-000O7p-AQ 108f8f98dbc3831897f16d54c16a7a8a X-Terabit: YES Cc: freebsd-hackers@freebsd.org, jb@freebsd.org Subject: Re: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 13:40:44 -0000 --fPlFr9CTKi+yOJ4Y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 16, 2008 at 03:23:28PM +0300, pluknet wrote: > Hi. >=20 > Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 without > merging a possible underlining infrastructure and breaking something else? > I want to use it in my custom freebsd6 because I see "interspersed strings > written from different CPUs at the same time": >=20 > uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t > pde) eaxtx cfcorke1 22e3e > deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 > ) at fork1 223 >=20 > I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. >=20 > Thanks. I did a backport of the option some time ago, see http://people.freebsd.org/~kib/misc/releng_6_printf_bufr.3.patch --fPlFr9CTKi+yOJ4Y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAklHr9MACgkQC3+MBN1Mb4j61ACaAqserSkkAP0nDbXIFJJkdYeq TMYAoJ/bMtEaaJvdjffOyjdqtXjSbscR =POtG -----END PGP SIGNATURE----- --fPlFr9CTKi+yOJ4Y-- From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 22:25:08 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 545C51065676; Tue, 16 Dec 2008 22:25:08 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: from mail.0x20.net (mail.0x20.net [IPv6:2001:aa8:fffb::3]) by mx1.freebsd.org (Postfix) with ESMTP id 14FE28FC23; Tue, 16 Dec 2008 22:25:08 +0000 (UTC) (envelope-from lars@e.0x20.net) Received: by mail.0x20.net (Postfix, from userid 1002) id 5933A3A6A4; Tue, 16 Dec 2008 23:25:07 +0100 (CET) Date: Tue, 16 Dec 2008 23:25:07 +0100 From: Lars Engels To: Giorgos Keramidas Message-ID: <20081216222507.GP161@e.0x20.net> References: <871vwmtawz.fsf@kobe.laptop> <87prk5ms72.fsf@kobe.laptop> <878wqtia75.fsf@kobe.laptop> <87ljut2jji.fsf@kobe.laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Y4JO1JP6mbYWtFW3" Content-Disposition: inline In-Reply-To: <87ljut2jji.fsf@kobe.laptop> X-Editor: VIM - Vi IMproved 7.1 X-Operation-System: FreeBSD 5.5-RELEASE-p19 User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: freebsd-hackers@freebsd.org, Sheldon Givens , Konstantin Belousov Subject: Re: Small change to wc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Lars Engels List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 22:25:08 -0000 --Y4JO1JP6mbYWtFW3 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 06, 2008 at 09:25:05PM +0200, Giorgos Keramidas wrote: > On Sat, 06 Dec 2008 17:40:14 +0200, Giorgos Keramidas wrote: > > The updated patch, and a manpage change to document the new option is > > attached below. Konstantin, if you like this version of the patch, > > I'll commit it to /head and schedule an MFC after a week or so. >=20 > Committed to /head as change 185714: >=20 > http://svn.freebsd.org/viewvc/base?view=3Drevision&revision=3D185714 >=20 > Sheldon, thanks for the patch. I will merge it to the stable branches > after about a few days :-) Yay, now we can add it to 7.1 release notes just like sun had "df now supports -h" when Solaris 10 came out. ;-) --Y4JO1JP6mbYWtFW3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklIKsMACgkQKc512sD3afh17ACeK1uVu4p3wxzCy9e1gYwJUPxs U9oAoIoAz3iFwLzpFLjjUhScX8Gyblb+ =29Ik -----END PGP SIGNATURE----- --Y4JO1JP6mbYWtFW3-- From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 23:00:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C12D7106567C; Tue, 16 Dec 2008 23:00:20 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 2F3888FC1A; Tue, 16 Dec 2008 23:00:19 +0000 (UTC) (envelope-from keramida@freebsd.org) Received: from kobe.laptop (adsl115-32.kln.forthnet.gr [77.49.234.32]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-5) with ESMTP id mBGMxw01003097 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 17 Dec 2008 01:00:07 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.3/8.14.3) with ESMTP id mBGMxuDT043484; Wed, 17 Dec 2008 00:59:56 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from keramida@localhost) by kobe.laptop (8.14.3/8.14.3/Submit) id mBGMxtgE043483; Wed, 17 Dec 2008 00:59:55 +0200 (EET) (envelope-from keramida@freebsd.org) From: Giorgos Keramidas To: Lars Engels References: <871vwmtawz.fsf@kobe.laptop> <87prk5ms72.fsf@kobe.laptop> <878wqtia75.fsf@kobe.laptop> <87ljut2jji.fsf@kobe.laptop> <20081216222507.GP161@e.0x20.net> Date: Wed, 17 Dec 2008 00:59:49 +0200 In-Reply-To: <20081216222507.GP161@e.0x20.net> (Lars Engels's message of "Tue, 16 Dec 2008 23:25:07 +0100") Message-ID: <87zlivk9p6.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-MailScanner-ID: mBGMxw01003097 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.294, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.10, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@freebsd.org X-Spam-Status: No Cc: freebsd-hackers@freebsd.org, Sheldon Givens , Konstantin Belousov Subject: Re: Small change to wc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 23:00:20 -0000 --=-=-= On Tue, 16 Dec 2008 23:25:07 +0100, Lars Engels wrote: >On Sat, Dec 06, 2008 at 09:25:05PM +0200, Giorgos Keramidas wrote: >>On Sat, 06 Dec 2008 17:40:14 +0200, Giorgos Keramidas wrote: >>> The updated patch, and a manpage change to document the new option is >>> attached below. Konstantin, if you like this version of the patch, >>> I'll commit it to /head and schedule an MFC after a week or so. >> >> Committed to /head as change 185714: >> >> http://svn.freebsd.org/viewvc/base?view=revision&revision=185714 >> >> Sheldon, thanks for the patch. I will merge it to the stable branches >> after about a few days :-) > > Yay, now we can add it to 7.1 release notes just like sun had "df now > supports -h" when Solaris 10 came out. ;-) I'm afraid it is too late for 7.1-RELEASE. But it will be part of 7.2 for sure :) --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAklIMusACgkQ1g+UGjGGA7buQACgqov+LavyVVQJVHNkfC5daDrD O8AAoK7fB2BMa6bO1Vq1tBwCqdTHlHrv =GQAN -----END PGP SIGNATURE----- --=-=-=-- From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 16 23:20:35 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC6C21065670 for ; Tue, 16 Dec 2008 23:20:35 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from thoth.sbs.de (thoth.sbs.de [192.35.17.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3530D8FC08 for ; Tue, 16 Dec 2008 23:20:34 +0000 (UTC) (envelope-from Andre.Albsmeier@siemens.com) Received: from mail1.siemens.de (localhost [127.0.0.1]) by thoth.sbs.de (8.12.11.20060308/8.12.11) with ESMTP id mBGN4V94006562 for ; Wed, 17 Dec 2008 00:04:31 +0100 Received: from curry.mchp.siemens.de (curry.mchp.siemens.de [139.25.40.130]) by mail1.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id mBGN4ViG032659 for ; Wed, 17 Dec 2008 00:04:31 +0100 Received: (from localhost) by curry.mchp.siemens.de (8.14.3/8.14.3) id mBGN4VdE030675; Date: Wed, 17 Dec 2008 00:04:30 +0100 From: Andre Albsmeier To: freebsd-hackers@freebsd.org Message-ID: <20081216230430.GA24352@curry.mchp.siemens.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Echelon: X-Advice: Drop that crappy M$-Outlook, I'm tired of your viruses! User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Andre.Albsmeier@siemens.com Subject: How to "detach" a foreign driver from a device so my driver can attach? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 23:20:35 -0000 Hello all, I am writing a driver which attaches to the Host-PCI bridge. When compiled into the kernel or loaded by the loader everything works and the driver gets attached. This is due to the fact that I return BUS_PROBE_SPECIFIC in my probe routine which gains over the -10000 returned by pci_hostb_probe() in i386/pci/pci_bus.c. However, when I want to load my driver via kldload this fails since the hostb device has already been attached during kernel load (when my driver was not present): hostb0@pci0:0:0: class=0x060000 card=0x11d510cf chip=0x35808086 rev=0x02 hdr=0x00 What can I do to make my driver load via kldload? Is there a way to detach the hostb0 from the Host-PCI bridge? I have been digging around in the sources but didn't find something similar. In case of any hints, please CC me since I am currently travelling and can't easily read the lists at home... Thanks, -Andre From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 07:06:30 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26871106564A for ; Wed, 17 Dec 2008 07:06:30 +0000 (UTC) (envelope-from v.haisman@sh.cvut.cz) Received: from service2.sh.cvut.cz (ns2.sh.cvut.cz [IPv6:2001:718:2::241]) by mx1.freebsd.org (Postfix) with ESMTP id 5FC248FC16 for ; Wed, 17 Dec 2008 07:06:29 +0000 (UTC) (envelope-from v.haisman@sh.cvut.cz) Received: from localhost (localhost [127.0.0.1]) by service2.sh.cvut.cz (Postfix) with ESMTP id 1A375137710; Wed, 17 Dec 2008 08:06:28 +0100 (CET) Received: from service2.sh.cvut.cz ([127.0.0.1]) by localhost (service2.sh.cvut.cz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06494-01; Wed, 17 Dec 2008 08:06:20 +0100 (CET) Received: from [192.168.1.2] (35.201.broadband4.iol.cz [85.71.201.35]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by service2.sh.cvut.cz (Postfix) with ESMTP id AE4DE137700; Wed, 17 Dec 2008 08:06:20 +0100 (CET) Message-ID: <4948A4E7.8040706@sh.cvut.cz> Date: Wed, 17 Dec 2008 08:06:15 +0100 From: =?UTF-8?B?VsOhY2xhdiBIYWlzbWFu?= User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 Cc: freebsd-hackers@freebsd.org References: In-Reply-To: X-Enigmail-Version: 0.95.7 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigB1D54F5D3556E49DB74400D4" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at service2.sh.cvut.cz X-Spam-Status: No, hits=2.6 tagged_above=-255.0 required=5.0 tests=AWL, BOTNET, CRM114_HAM_00, JR_RCVD_HOST_PROBS1, JR_RCVD_TOO_FEW_HOPS X-Spam-Level: ** Subject: Re: Small change to wc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 07:06:30 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigB1D54F5D3556E49DB74400D4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sheldon Givens wrote, On 5.12.2008 23:14: > Hello everyone, > In the process of migrating the last of a few Linux servers to FreeBSD,= we > ran in to a bit of a snag with one of our scripts when BSD wc didn't ha= ve an > equivalent to the Linux -L. This flag tells wc to keep track of the lon= gest > line in the input. >=20 > Here's a little diff to add this functionality to BSD wc. >=20 > With this patch, an additional parameter is added to output that shows = the > length of the longest line >=20 > My apologies if this is in the wrong format. I don't often post here. >=20 > Happy Holidays, >=20 > Sheldon Givens >[...] You can install sysutils/coreutils and use its gwc executable. -- VH --------------enigB1D54F5D3556E49DB74400D4 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) iFYEAREIAAYFAklIpO4ACgkQhQBMvHf/WHmU0gDeJOcbvSPYaDBbaA64BFhY72Kq 21IxpCeNFWNBIQDg0MXlUOnk4Ipu2Gr6sL9APkSMwZOa7Bkf3IiZng== =7n2/ -----END PGP SIGNATURE----- --------------enigB1D54F5D3556E49DB74400D4-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 10:48:12 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CB67C106564A; Wed, 17 Dec 2008 10:48:12 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 712B98FC1E; Wed, 17 Dec 2008 10:48:12 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2255857ywe.13 for ; Wed, 17 Dec 2008 02:48:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=qoFirAPyuhSNLngGl6+EVcQRUDxbcu7qJm5QjHaTVDM=; b=m0S51Qv7r4w7Wg/DWJjJIuFtUtfbEgS1dfLhK4kukhojJ5SAFeHzPluoKaA0HsIYJZ wkl89LW6bgN1/0WIm3KtStNjgHzeLxGFXKfrvtD2KaeJVGdRJDJ4DMnQdJed+DIaKoe+ fwlGhNmU9YezE+hT9jGCGSM8QZoaeODmi4yIo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Mz2wUY9Pma0P0+3sLQg5iNCOaKA3w7K195Af5nYtJSmy5QrESCd5pljOByo6jQzB2M 4fvoBWp9QOjk/80XgG64ENIAC/t4yfjja+1Nv/ULQfu+O9bUJis3CY9KByhl1e1EifdF EH5lJTEbx/nXNf95AMb9pRMp5QHOy15y2TsWo= Received: by 10.90.119.20 with SMTP id r20mr266945agc.49.1229510891637; Wed, 17 Dec 2008 02:48:11 -0800 (PST) Received: by 10.90.91.14 with HTTP; Wed, 17 Dec 2008 02:48:11 -0800 (PST) Message-ID: Date: Wed, 17 Dec 2008 13:48:11 +0300 From: pluknet To: "Kostik Belousov" In-Reply-To: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> Cc: freebsd-hackers@freebsd.org, jb@freebsd.org Subject: Re: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 10:48:12 -0000 2008/12/16 Kostik Belousov : > On Tue, Dec 16, 2008 at 03:23:28PM +0300, pluknet wrote: >> Hi. >> >> Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 without >> merging a possible underlining infrastructure and breaking something else? >> I want to use it in my custom freebsd6 because I see "interspersed strings >> written from different CPUs at the same time": >> >> uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t >> pde) eaxtx cfcorke1 22e3e >> deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 >> ) at fork1 223 >> >> I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. >> >> Thanks. > > I did a backport of the option some time ago, see > http://people.freebsd.org/~kib/misc/releng_6_printf_bufr.3.patch > Thank you! 6.3 system panics (many page faults, one after another) early at boot without the option, and boots with it in the QEMU environment. Next step to test it on a real (and SMPable) hardware. -- wbr, pluknet From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 13:52:39 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADF571065670; Wed, 17 Dec 2008 13:52:39 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 4A3178FC12; Wed, 17 Dec 2008 13:52:39 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2278469ywe.13 for ; Wed, 17 Dec 2008 05:52:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=LOFa2y50W9PkRTVz5jjoF+vxffqQjQEDP4qv54rhJto=; b=LmFDO0V44vSxNiE/2NoZUnaJg4emIPNOvihvUlwFaujMazGLr/2bQZoPjkaBU7M32O jfCocVbRb5NyJj8pj8G8vgevM31yJqviNNsAQQ5tHzHT/V9Ya52z87nuP206Z2cyOWDh MoFJnnBfO13IxyiWT3mRs0c1Yn2bCR4b/MniY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=FDZd35ah8MiIQHmjxGinXzuPg2yu37UTwFXULkS8fswPX6GSMRrX8WhBDCyOjO/3ST MZcSAZMkdTkGE4EBzsT8flIbvZuOK47vVvyZIlnWZCH0npFYhpdJAsDH3rWyhOf92MdM r7uxp5t2N4EoScgQS4sem+SLF0jt3/qrL9QUI= Received: by 10.90.101.17 with SMTP id y17mr349998agb.48.1229521958589; Wed, 17 Dec 2008 05:52:38 -0800 (PST) Received: by 10.90.91.14 with HTTP; Wed, 17 Dec 2008 05:52:38 -0800 (PST) Message-ID: Date: Wed, 17 Dec 2008 16:52:38 +0300 From: pluknet To: "Kostik Belousov" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> Cc: freebsd-hackers@freebsd.org, jb@freebsd.org Subject: Re: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 13:52:39 -0000 2008/12/17 pluknet : > 2008/12/16 Kostik Belousov : >> On Tue, Dec 16, 2008 at 03:23:28PM +0300, pluknet wrote: >>> Hi. >>> >>> Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 without >>> merging a possible underlining infrastructure and breaking something else? >>> I want to use it in my custom freebsd6 because I see "interspersed strings >>> written from different CPUs at the same time": >>> >>> uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t >>> pde) eaxtx cfcorke1 22e3e >>> deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 >>> ) at fork1 223 >>> >>> I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. >>> >>> Thanks. >> >> I did a backport of the option some time ago, see >> http://people.freebsd.org/~kib/misc/releng_6_printf_bufr.3.patch >> > > Thank you! > > 6.3 system panics (many page faults, one after another) early at boot > without the option, and boots with it in the QEMU environment. > Next step to test it on a real (and SMPable) hardware. > Now tested on a real 2xXeon 3.0 w/ HTT enabled w/ PRINTF_BUFR_SIZE enabled. Received the following panic: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 00 fault virtual address = 0x72 fault code = supervisor read, page not present instruction pointer = 0x20:0xc07fc8c3 stack pointer = 0x28:0xe4f56a78 frame pointer = 0x28:0xe4f56b44 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 14 (swi4: clock sio) [thread pid 14 tid 100002 ] Stopped at vm_fault+0x1e3: cmpw $0,0x72(%eax) db> bt Tracing pid 14 tid 100002 td 0xc63e9c80 vm_fault(c1066000,c009e000,2,0) at vm_fault+0x1e3 trap_pfault(e4f56bb0,0,c009effe) at trap_pfault+0x137 trap(410008,c63e0028,e4f50028,c009effe,c638effe,...) at trap+0x325 calltrap() at calltrap+0x5 --- trap 0xc, eip = 0xc08a2cad, esp = 0xe4f56bf0, ebp = 0xe4f56c10 --- generic_bcopy(c0a63a68,7cf,c0a63a4c,7cf,fffff832) at generic_bcopy+0x41 vga_txtdraw(c0a63a40,7cf,fffff832,0) at vga_txtdraw+0xbe scrn_update(c0a63a40,1) at scrn_update+0x22d scrn_timer(c0a6c1e0) at scrn_timer+0x1e0 softclock(0) at softclock+0x1f4 ithread_execute_handlers(c63e8460,c6629800) at ithread_execute_handlers+0xd6 ithread_loop(c63a7910,e4f56d38,c0a10040,0,c0922ea6,...) at ithread_loop+0x53 fork_exit(c068d158,c63a7910,e4f56d38) at fork_exit+0x61 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xe4f56d6c, ebp = 0 --- db> From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 14:10:30 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C912B1065672 for ; Wed, 17 Dec 2008 14:10:30 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id 788548FC1B for ; Wed, 17 Dec 2008 14:10:29 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so1765245anc.13 for ; Wed, 17 Dec 2008 06:10:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=CB2CF1f84TJ5Cfx253JzM+F1hXEBw9BdRZwYiCxpvec=; b=Nh7rg2aRnuHPl0MDvAzvR8/2RCI+7mEQrUJF0qBKhCPRxoIr3qmlnUqZbAPsII18oR I/l68R/DzSAcXxVpGydBVYEERgmNRp9Hrky4+DY9P2WlILSRfINDxmhmrSPO1rUsQnh4 otvrQiGlnUVKTavh6NbAmPhN1pA8YVmk7lcYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=f84m0WffXDOhkfC3u/Ha+37xPWmbeoBkjZVirKZbGvQrY8VJExokSq1D8NsyNKKQ7L at3RRCzL8wTSYvVVtTq+AWsq3/bicNXUe2oQCE96stj4vrSceIomfkYp5PIP73cFtpzW TKy9QuNRCZJXaOgP/GNvGBtSP8Yv55rK+qmJg= Received: by 10.231.10.140 with SMTP id p12mr7294ibp.13.1229523028526; Wed, 17 Dec 2008 06:10:28 -0800 (PST) Received: by 10.231.16.202 with HTTP; Wed, 17 Dec 2008 06:10:28 -0800 (PST) Message-ID: <3a142e750812170610r25a48762y845010c6898f52d4@mail.gmail.com> Date: Wed, 17 Dec 2008 15:10:28 +0100 From: "Paul B. Mahol" To: pluknet In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> Cc: freebsd-hackers@freebsd.org Subject: Re: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 14:10:30 -0000 On 12/17/08, pluknet wrote: > 2008/12/17 pluknet : >> 2008/12/16 Kostik Belousov : >>> On Tue, Dec 16, 2008 at 03:23:28PM +0300, pluknet wrote: >>>> Hi. >>>> >>>> Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 without >>>> merging a possible underlining infrastructure and breaking something >>>> else? >>>> I want to use it in my custom freebsd6 because I see "interspersed >>>> strings >>>> written from different CPUs at the same time": >>>> >>>> uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t >>>> pde) eaxtx cfcorke1 22e3e >>>> deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 >>>> ) at fork1 223 >>>> >>>> I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. >>>> >>>> Thanks. >>> >>> I did a backport of the option some time ago, see >>> http://people.freebsd.org/~kib/misc/releng_6_printf_bufr.3.patch >>> >> >> Thank you! >> >> 6.3 system panics (many page faults, one after another) early at boot >> without the option, and boots with it in the QEMU environment. >> Next step to test it on a real (and SMPable) hardware. >> > > Now tested on a real 2xXeon 3.0 w/ HTT enabled w/ PRINTF_BUFR_SIZE enabled. > > Received the following panic: And how big is PRINTF_BUFR_SIZE ? -- Paul From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 14:22:14 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3D671065680 for ; Wed, 17 Dec 2008 14:22:14 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 834E08FC25 for ; Wed, 17 Dec 2008 14:22:14 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so2285265ywe.13 for ; Wed, 17 Dec 2008 06:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=dFeoCGY3ytvwgT/+tm2VUcr6+Qq4o/vec9kEslsnG6g=; b=xKpu5RA+XBPkJNsl+DxNrUvMFjqzrVpjZIeI99iXg7dvOXvevPCpN2g12Zjam9LxMr 2hBvPwev5LSFOGgnOHiqA1hmkbAs880kykjsgmVLiZsB7NYyk+1hI5SvcuV1usddmgOK WPj02NmZb5XaaGrpxxAyC9HE8hUvUrUChdzTI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RXiFenZtKwKWHzasM8iXiZ9W0/pOW4iR9m2i/DoGAJw5ZPb+l0H4Djn5xx22XQqKIB +F6K/t/e+yTgGwCK0AzNT02E45Ea9PaqgOBKVjB3jJG6m5zNTZ/2Rkq2hsWB3h2X5kFS QWlobKAFmwD5efIqBGaCwejOmLvdUYY/gHRqs= Received: by 10.90.30.13 with SMTP id d13mr376506agd.43.1229523733653; Wed, 17 Dec 2008 06:22:13 -0800 (PST) Received: by 10.90.91.14 with HTTP; Wed, 17 Dec 2008 06:22:13 -0800 (PST) Message-ID: Date: Wed, 17 Dec 2008 17:22:13 +0300 From: pluknet To: "Paul B. Mahol" In-Reply-To: <3a142e750812170610r25a48762y845010c6898f52d4@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> <3a142e750812170610r25a48762y845010c6898f52d4@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 14:22:14 -0000 2008/12/17 Paul B. Mahol : > On 12/17/08, pluknet wrote: >> 2008/12/17 pluknet : >>> 2008/12/16 Kostik Belousov : >>>> On Tue, Dec 16, 2008 at 03:23:28PM +0300, pluknet wrote: >>>>> Hi. >>>>> >>>>> Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 without >>>>> merging a possible underlining infrastructure and breaking something >>>>> else? >>>>> I want to use it in my custom freebsd6 because I see "interspersed >>>>> strings >>>>> written from different CPUs at the same time": >>>>> >>>>> uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t >>>>> pde) eaxtx cfcorke1 22e3e >>>>> deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 >>>>> ) at fork1 223 >>>>> >>>>> I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. >>>>> >>>>> Thanks. >>>> >>>> I did a backport of the option some time ago, see >>>> http://people.freebsd.org/~kib/misc/releng_6_printf_bufr.3.patch >>>> >>> >>> Thank you! >>> >>> 6.3 system panics (many page faults, one after another) early at boot >>> without the option, and boots with it in the QEMU environment. >>> Next step to test it on a real (and SMPable) hardware. >>> >> >> Now tested on a real 2xXeon 3.0 w/ HTT enabled w/ PRINTF_BUFR_SIZE enabled. >> >> Received the following panic: > > And how big is PRINTF_BUFR_SIZE ? Hi. I set options PRINTF_BUFR_SIZE=128 And maybe it's not enough (?) because I stress-tested server triggering to appear many kernel messages simultaneously. I don't know coherence between buffer size and this panic though. > > -- > Paul > From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 16:04:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C53C1065673 for ; Wed, 17 Dec 2008 16:04:07 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id F22778FC08 for ; Wed, 17 Dec 2008 16:04:06 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so2353909yxb.13 for ; Wed, 17 Dec 2008 08:04:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=g3mmKKzaqDfZE5iZgXL31IOR+2Pa8pd4adOJvZmDl9k=; b=P6M4Ye2Kw7UUjtPbaRMY/XTggsxqOpRSuF2DFP5VwEaexwfsGbmIwKX8/FgH3usXPH vzPquWV+tM7iZJ2TAybxoTXE47VZPw36JqChV9PFTTe+WuwZd/O+jQlnJPrvkTxkWKSW KABUe71RsI7DezN4p2QYcCzDflTS6FT0rZzJ4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=xNiCgP9b3iIflgWrFH4jq4yA5oKmnRHkP05dA9jEuwYcXo0mh0PSh4qwKXYulaZqTt ZJzRe0di9T1/LPsCVaR4URE2aq7GVmaudPmXrkTehApQ9vgvsQyB9URCkSuR4JJK9Own N0bg7gMrFPWZGuU2uL52RGnzIvw8AX8wJo8M0= Received: by 10.231.30.198 with SMTP id v6mr11177ibc.26.1229529845676; Wed, 17 Dec 2008 08:04:05 -0800 (PST) Received: by 10.231.16.202 with HTTP; Wed, 17 Dec 2008 08:04:05 -0800 (PST) Message-ID: <3a142e750812170804v345457f0n1261baa418111a2f@mail.gmail.com> Date: Wed, 17 Dec 2008 17:04:05 +0100 From: "Paul B. Mahol" To: pluknet In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> <3a142e750812170610r25a48762y845010c6898f52d4@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 16:04:07 -0000 On 12/17/08, pluknet wrote: > 2008/12/17 Paul B. Mahol : >> On 12/17/08, pluknet wrote: >>> 2008/12/17 pluknet : >>>> 2008/12/16 Kostik Belousov : >>>>> On Tue, Dec 16, 2008 at 03:23:28PM +0300, pluknet wrote: >>>>>> Hi. >>>>>> >>>>>> Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 >>>>>> without >>>>>> merging a possible underlining infrastructure and breaking something >>>>>> else? >>>>>> I want to use it in my custom freebsd6 because I see "interspersed >>>>>> strings >>>>>> written from different CPUs at the same time": >>>>>> >>>>>> uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t >>>>>> pde) eaxtx cfcorke1 22e3e >>>>>> deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 >>>>>> ) at fork1 223 >>>>>> >>>>>> I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. >>>>>> >>>>>> Thanks. >>>>> >>>>> I did a backport of the option some time ago, see >>>>> http://people.freebsd.org/~kib/misc/releng_6_printf_bufr.3.patch >>>>> >>>> >>>> Thank you! >>>> >>>> 6.3 system panics (many page faults, one after another) early at boot >>>> without the option, and boots with it in the QEMU environment. >>>> Next step to test it on a real (and SMPable) hardware. >>>> >>> >>> Now tested on a real 2xXeon 3.0 w/ HTT enabled w/ PRINTF_BUFR_SIZE >>> enabled. >>> >>> Received the following panic: >> >> And how big is PRINTF_BUFR_SIZE ? > > Hi. > > I set options PRINTF_BUFR_SIZE=128 > > And maybe it's not enough (?) because I stress-tested server triggering > to appear many kernel messages simultaneously. > I don't know coherence between buffer size and this panic though. How long such kernel messages are? -- Paul From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 16:40:44 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B0221065687 for ; Wed, 17 Dec 2008 16:40:44 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.29]) by mx1.freebsd.org (Postfix) with ESMTP id EB3598FC2F for ; Wed, 17 Dec 2008 16:40:43 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by yx-out-2324.google.com with SMTP id 8so2372500yxb.13 for ; Wed, 17 Dec 2008 08:40:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=qvNhEq0y72exixNgmdtGvIGCEUD5lrLqPlIjPDZgiTY=; b=K6VROwX4Ofnpy7DhKtghbfREaeYWJGrHncHOhVttN/l0F31oGkuuISbRqx0RVPW+uI RzyXM8CkCih3Ar1CgbL6Lp4b6XAJkcrWvleKJ8Uf8/AXqCa+OHTTWo+NmsNViEMiPDlR qhDR1gxowIuN0K+T6K8nVrtdd+Gu9ph9DJpdQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=XAVYorwrMNhc8lWa836Q1tuWVGSIZ83b9E/6WitfqZysynKXZo104Y60Zvi1jYd6zz V2dMP1ESlsZqZKrqKQtlzFbQegoCK6jUfVIUQg/uvHe8tCbcjgND8qkHm2iaKJeDEUmX Z1dy+v1da1H/a/bn2ji+ix8SB2vDzwPOOOz1s= Received: by 10.90.99.6 with SMTP id w6mr504609agb.81.1229532042853; Wed, 17 Dec 2008 08:40:42 -0800 (PST) Received: by 10.90.91.14 with HTTP; Wed, 17 Dec 2008 08:40:42 -0800 (PST) Message-ID: Date: Wed, 17 Dec 2008 19:40:42 +0300 From: pluknet To: "Paul B. Mahol" In-Reply-To: <3a142e750812170804v345457f0n1261baa418111a2f@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081216134035.GU2038@deviant.kiev.zoral.com.ua> <3a142e750812170610r25a48762y845010c6898f52d4@mail.gmail.com> <3a142e750812170804v345457f0n1261baa418111a2f@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: PRINTF_BUFR_SIZE in freebsd6 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 16:40:44 -0000 2008/12/17 Paul B. Mahol : > On 12/17/08, pluknet wrote: >> 2008/12/17 Paul B. Mahol : >>> On 12/17/08, pluknet wrote: >>>> 2008/12/17 pluknet : >>>>> 2008/12/16 Kostik Belousov : >>>>>> On Tue, Dec 16, 2008 at 03:23:28PM +0300, pluknet wrote: >>>>>>> Hi. >>>>>>> >>>>>>> Could the PRINTF_BUFR_SIZE option be safely merged into RELENG_6 >>>>>>> without >>>>>>> merging a possible underlining infrastructure and breaking something >>>>>>> else? >>>>>>> I want to use it in my custom freebsd6 because I see "interspersed >>>>>>> strings >>>>>>> written from different CPUs at the same time": >>>>>>> >>>>>>> uuusseseerrvmrem: vlmivmeimtme :e mx:ceed eldi bly 2i89m68m (iihttt t >>>>>>> pde) eaxtx cfcorke1 22e3e >>>>>>> deded ebyd by28 296898 68(h t(tpdh) att ftorkp1 22d3 >>>>>>> ) at fork1 223 >>>>>>> >>>>>>> I'm talking about only merging kern/subr_prf.c 1.126, 1.128, 1.129. >>>>>>> >>>>>>> Thanks. >>>>>> >>>>>> I did a backport of the option some time ago, see >>>>>> http://people.freebsd.org/~kib/misc/releng_6_printf_bufr.3.patch >>>>>> >>>>> >>>>> Thank you! >>>>> >>>>> 6.3 system panics (many page faults, one after another) early at boot >>>>> without the option, and boots with it in the QEMU environment. >>>>> Next step to test it on a real (and SMPable) hardware. >>>>> >>>> >>>> Now tested on a real 2xXeon 3.0 w/ HTT enabled w/ PRINTF_BUFR_SIZE >>>> enabled. >>>> >>>> Received the following panic: >>> >>> And how big is PRINTF_BUFR_SIZE ? >> >> Hi. >> >> I set options PRINTF_BUFR_SIZE=128 >> >> And maybe it's not enough (?) because I stress-tested server triggering >> to appear many kernel messages simultaneously. >> I don't know coherence between buffer size and this panic though. > > How long such kernel messages are? 48 symbols plus length of a process name... it added 6 in my case, i.e. 54 symbols totally. -- wbr, pluknet From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 23:35:59 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ADBF6106564A for ; Wed, 17 Dec 2008 23:35:59 +0000 (UTC) (envelope-from oxy@field.hu) Received: from green.field.hu (green.field.hu [217.20.130.28]) by mx1.freebsd.org (Postfix) with ESMTP id 60FEB8FC16 for ; Wed, 17 Dec 2008 23:35:59 +0000 (UTC) (envelope-from oxy@field.hu) Received: from localhost (green.field.hu [217.20.130.28]) by green.field.hu (Postfix) with ESMTP id 7F139B2563 for ; Thu, 18 Dec 2008 00:18:18 +0100 (CET) X-Virus-Scanned: by Amavisd-new (Spamassassin+Razor2+Pyzor+DCC+Bayes db, Clamd Antivirus) at field.hu Received: from green.field.hu ([217.20.130.28]) by localhost (green.field.hu [217.20.130.28]) (amavisd-new, port 10024) with ESMTP id X9mlUTBss1Fl for ; Thu, 18 Dec 2008 00:18:14 +0100 (CET) Received: from [192.168.1.2] (catv5403BE91.pool.t-online.hu [84.3.190.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by green.field.hu (Postfix) with ESMTPSA id 9715BB2515 for ; Thu, 18 Dec 2008 00:18:14 +0100 (CET) Message-ID: <494988B6.4060600@field.hu> Date: Thu, 18 Dec 2008 00:18:14 +0100 From: oxy User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: missing mount_devfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 23:35:59 -0000 hi! I installed 7.0-RELEASE/amd64 and tried to create a jail with jailctl. after a couple errors i noticed that mount_devfs is missing! is there any other way to create devfs in order to make jails? thank you! From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 23:56:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4CB81065676 for ; Wed, 17 Dec 2008 23:56:33 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from kiwi-computer.com (keira.kiwi-computer.com [63.224.10.3]) by mx1.freebsd.org (Postfix) with SMTP id A395D8FC0C for ; Wed, 17 Dec 2008 23:56:33 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 59748 invoked by uid 2001); 17 Dec 2008 23:56:33 -0000 Date: Wed, 17 Dec 2008 17:56:33 -0600 From: "Rick C. Petty" To: oxy Message-ID: <20081217235633.GB59101@keira.kiwi-computer.com> References: <494988B6.4060600@field.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <494988B6.4060600@field.hu> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: missing mount_devfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 23:56:34 -0000 On Thu, Dec 18, 2008 at 12:18:14AM +0100, oxy wrote: > > I installed 7.0-RELEASE/amd64 and tried to create a jail with jailctl. > after a couple errors i noticed that mount_devfs is missing! > is there any other way to create devfs in order to make jails? > thank you! What about: "mount -t devfs devfs /dev" I believe I saw recently that devfs mounts were merged into standard mount code. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 17 23:59:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6AFD106564A for ; Wed, 17 Dec 2008 23:59:00 +0000 (UTC) (envelope-from jille@quis.cx) Received: from istud.quis.cx (ip83-113-174-82.adsl2.static.versatel.nl [82.174.113.83]) by mx1.freebsd.org (Postfix) with ESMTP id 8C2F18FC1C for ; Wed, 17 Dec 2008 23:59:00 +0000 (UTC) (envelope-from jille@quis.cx) Received: from [192.168.1.4] (ille [192.168.1.4]) by istud.quis.cx (Postfix) with ESMTP id 87A435C19; Thu, 18 Dec 2008 00:40:33 +0100 (CET) Message-ID: <49498DEA.6090805@quis.cx> Date: Thu, 18 Dec 2008 00:40:26 +0100 From: Jille Timmermans User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) MIME-Version: 1.0 Followup-To: freebsd,general,questions, To: oxy References: <494988B6.4060600@field.hu> In-Reply-To: <494988B6.4060600@field.hu> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: missing mount_devfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd general questions List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Dec 2008 23:59:00 -0000 # alias mount_devfs="mount -t devfs" (human: try mount -t devfs instead of mount_devfs) -- Jille (I think freebsd-questions is the appropriate list for this) oxy schreef: > hi! > > I installed 7.0-RELEASE/amd64 and tried to create a jail with jailctl. > after a couple errors i noticed that mount_devfs is missing! > is there any other way to create devfs in order to make jails? > thank you! > _______________________________________________ > 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 Dec 20 05:10:12 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84E351065670 for ; Sat, 20 Dec 2008 05:10:12 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.240]) by mx1.freebsd.org (Postfix) with ESMTP id 36B478FC08 for ; Sat, 20 Dec 2008 05:10:12 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so736974anc.13 for ; Fri, 19 Dec 2008 21:10:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:content-type :date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=hqAR7k6QdSV42QYiGXz49D8E068YNsZdKg3oXYRNh+8=; b=PWsefk5OThzHDYnc8WQKpitFznRMJIhJYFPY4N/XExplzxj6bs3UnFYE5zSNgkS3BY s61/frd+QkvHQPU2/pDTbbuI0JFrlc3sGYpShZ3Ey+1Rbqjuks+ijj9zADPezEHFEEki 1f8RBtb/li3l/6jerTOOdceL7Lj7PhKUSR8Lk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=SUeQVtcRblbj6FdpHKu9X6by/kW5xwNNqA6d7gYyUg8CvQcnQOzcxkOs052GadSCK0 H+Yio2dkmEyI1eBqSVHazT/Eq8BcyGaqyXX+h3jj+DhZLLPFNkkcDR5bhlM+P47OgXuv bZ1VeSMknv+Sqyj3Nsg1fhoWDQEyJP3W1ASa4= Received: by 10.101.70.15 with SMTP id x15mr2695661ank.112.1229747963441; Fri, 19 Dec 2008 20:39:23 -0800 (PST) Received: from ?192.168.2.2? (cpe-70-112-179-136.austin.res.rr.com [70.112.179.136]) by mx.google.com with ESMTPS id b32sm8068057ana.54.2008.12.19.20.39.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Dec 2008 20:39:23 -0800 (PST) From: Ferner Cilloniz To: freebsd-hackers@freebsd.org Content-Type: text/plain Date: Fri, 19 Dec 2008 22:39:20 +0000 Message-Id: <1229726360.5614.15.camel@mobiliare.Belkin> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit Subject: adding proc to allproc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2008 05:10:12 -0000 Hello everyone. I am playing with freebsd and just learning some things about the FreeBSD kernel. So for my first quest i am placing random processes from the allproc list into a list of my own and trying to add them back into allproc I have pasted the code below. ----------------------------------------------------------------------- struct proc *p = a process from my own list; if( p != NULL && (p->p_state == PRS_NEW || p->p_state == PRS_NORMAL) ){ LIST_INSERT_HEAD(&allproc, p, p_list); } ----------------------------------------------------------------------- Thanks. From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 20 05:27:24 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95BED1065670 for ; Sat, 20 Dec 2008 05:27:24 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outF.internet-mail-service.net (outf.internet-mail-service.net [216.240.47.229]) by mx1.freebsd.org (Postfix) with ESMTP id 797EE8FC0C for ; Sat, 20 Dec 2008 05:27:24 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 1B9C8249C; Fri, 19 Dec 2008 21:27:24 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 881C82D6004; Fri, 19 Dec 2008 21:27:23 -0800 (PST) Message-ID: <494C8246.3020703@elischer.org> Date: Fri, 19 Dec 2008 21:27:34 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Ferner Cilloniz References: <1229726360.5614.15.camel@mobiliare.Belkin> In-Reply-To: <1229726360.5614.15.camel@mobiliare.Belkin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: adding proc to allproc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2008 05:27:24 -0000 Ferner Cilloniz wrote: > Hello everyone. > > I am playing with freebsd and just learning some things about the > FreeBSD kernel. > > So for my first quest i am placing random processes from the allproc > list into a list of my own and trying to add them back into allproc > > I have pasted the code below. > > ----------------------------------------------------------------------- > struct proc *p = a process from my own list; > if( p != NULL && (p->p_state == PRS_NEW || p->p_state == PRS_NORMAL) ){ > LIST_INSERT_HEAD(&allproc, p, p_list); > } > ----------------------------------------------------------------------- > > Thanks. and your question is? > > _______________________________________________ > 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 Dec 20 05:28:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABC821065674 for ; Sat, 20 Dec 2008 05:28:50 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.245]) by mx1.freebsd.org (Postfix) with ESMTP id 5BE4E8FC12 for ; Sat, 20 Dec 2008 05:28:50 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: by an-out-0708.google.com with SMTP id c2so737947anc.13 for ; Fri, 19 Dec 2008 21:28:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=6zyAnaUrjvpu52Xd+HnuybnWeH7SY6MziF3+wriT0XY=; b=IFpnNHQH6An691n99u55hVMgV57fbk+pHdaOOXZ+U4cyfFFnnEVP3NVuHSlWPH5IPC vsoumvVn8+IPhGjWpqNIm1nPEucnby+iNNfG+AcsqdPapyBdqFcPc1HohWX16/Aod1JT IS0t/HWfT4HvXTzF7t/oPjVcSq4YG4LBuWx+4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=VbDKXYecQjtD06rwDyWagAZdBBGbMHR/Mbcj2w/UHTxqOw7rJBR68Eww23vnSPDZLm EhmtdFCf03uwStks6AKvPpt54PnYvH0mo3OicYhiZfWhVsCKOet/XHoQOU3YoUu/rYtn ys8jbqNTbhNu3hizhRwxAavBmlppjBVdKpFDM= Received: by 10.100.44.4 with SMTP id r4mr2716739anr.100.1229750929245; Fri, 19 Dec 2008 21:28:49 -0800 (PST) Received: from ?192.168.2.2? (cpe-70-112-179-136.austin.res.rr.com [70.112.179.136]) by mx.google.com with ESMTPS id c37sm7135824ana.37.2008.12.19.21.28.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 19 Dec 2008 21:28:48 -0800 (PST) From: Ferner Cilloniz To: Julian Elischer In-Reply-To: <494C8246.3020703@elischer.org> References: <1229726360.5614.15.camel@mobiliare.Belkin> <494C8246.3020703@elischer.org> Content-Type: text/plain Date: Fri, 19 Dec 2008 23:28:46 +0000 Message-Id: <1229729326.5614.16.camel@mobiliare.Belkin> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: adding proc to allproc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2008 05:28:50 -0000 When i run the code from a KLD it hangs the system. No reboot occurs however, it just hangs there. On Fri, 2008-12-19 at 21:27 -0800, Julian Elischer wrote: > Ferner Cilloniz wrote: > > Hello everyone. > > > > I am playing with freebsd and just learning some things about the > > FreeBSD kernel. > > > > So for my first quest i am placing random processes from the allproc > > list into a list of my own and trying to add them back into allproc > > > > I have pasted the code below. > > > > ----------------------------------------------------------------------- > > struct proc *p = a process from my own list; > > if( p != NULL && (p->p_state == PRS_NEW || p->p_state == PRS_NORMAL) ){ > > LIST_INSERT_HEAD(&allproc, p, p_list); > > } > > ----------------------------------------------------------------------- > > > > Thanks. > > and your question is? > > > > > > _______________________________________________ > > 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" > -- Cilloniz Bicchi, Ferner Research Assistant Dept. of Computer Sciences The University of Texas at Austin http://www.cs.utexas.edu/~fernercc fernercc@cs.utexas.edu From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 20 05:39:10 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7BE79106564A for ; Sat, 20 Dec 2008 05:39:10 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outZ.internet-mail-service.net (outz.internet-mail-service.net [216.240.47.249]) by mx1.freebsd.org (Postfix) with ESMTP id 5E77A8FC13 for ; Sat, 20 Dec 2008 05:39:10 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 0010F24C7; Fri, 19 Dec 2008 21:39:09 -0800 (PST) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id B53E42D6017; Fri, 19 Dec 2008 21:39:09 -0800 (PST) Message-ID: <494C8508.2020000@elischer.org> Date: Fri, 19 Dec 2008 21:39:20 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Ferner Cilloniz References: <1229726360.5614.15.camel@mobiliare.Belkin> <494C8246.3020703@elischer.org> <1229729326.5614.16.camel@mobiliare.Belkin> In-Reply-To: <1229729326.5614.16.camel@mobiliare.Belkin> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: adding proc to allproc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2008 05:39:10 -0000 Ferner Cilloniz wrote: > When i run the code from a KLD it hangs the system. No reboot occurs > however, it just hangs there. well, firstly you have no locking though that would probably let you get away with it most times. Where does the process come from in the first place? It sounds like you are making a circular list somewhere or somehow... have you tried going into ddb? > > > On Fri, 2008-12-19 at 21:27 -0800, Julian Elischer wrote: >> Ferner Cilloniz wrote: >>> Hello everyone. >>> >>> I am playing with freebsd and just learning some things about the >>> FreeBSD kernel. >>> >>> So for my first quest i am placing random processes from the allproc >>> list into a list of my own and trying to add them back into allproc >>> >>> I have pasted the code below. >>> >>> ----------------------------------------------------------------------- >>> struct proc *p = a process from my own list; >>> if( p != NULL && (p->p_state == PRS_NEW || p->p_state == PRS_NORMAL) ){ >>> LIST_INSERT_HEAD(&allproc, p, p_list); >>> } >>> ----------------------------------------------------------------------- >> >>> _______________________________________________ >>> 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 Dec 20 08:23:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5DC5E1065670 for ; Sat, 20 Dec 2008 08:23:26 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.28]) by mx1.freebsd.org (Postfix) with ESMTP id 127728FC0C for ; Sat, 20 Dec 2008 08:23:25 +0000 (UTC) (envelope-from fernercc@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1186107ywe.13 for ; Sat, 20 Dec 2008 00:23:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:cc :in-reply-to:references:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; bh=AdCpYZZqHmAHjTZ8XUS27f6P/xngpE7I7MLkl/F7QcM=; b=TGtq7ksWUYPmB9WA8YZK5VSnH46MIATUMUq3q1RAO/yMzkOYrViPWG88rT55juCEnh OaZhrsEuz8uWnqdd+FRLKEwyVjzY2cQ1E6i/MtLl0SUyzyAi2o88ah+odf/xeW16YpL6 3bpcPj0Lplc0mPPuxKYuZgQZlgS4vwyCU8zaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=BNeBsBWmxLmeppUSNXZ19MCNbDXThiKoZGEgcVCeBtzo9kUGn1N0Im1GzbW+TWMlFl 9CgoRrjbX1MGAkAkf8hIkm5klbU0fNlThBFv9b+A4QaedXQU5owfDIy8TBRUYzJ4DP1U GP+nD2sVsYPBhz3Ft0kdN7HvRPuj8Num88i64= Received: by 10.100.119.17 with SMTP id r17mr2775501anc.61.1229761405509; Sat, 20 Dec 2008 00:23:25 -0800 (PST) Received: from ?192.168.2.2? (cpe-70-112-179-136.austin.res.rr.com [70.112.179.136]) by mx.google.com with ESMTPS id c37sm2835289ana.57.2008.12.20.00.23.23 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 20 Dec 2008 00:23:24 -0800 (PST) From: Ferner Cilloniz To: Julian Elischer In-Reply-To: <494C8508.2020000@elischer.org> References: <1229726360.5614.15.camel@mobiliare.Belkin> <494C8246.3020703@elischer.org> <1229729326.5614.16.camel@mobiliare.Belkin> <494C8508.2020000@elischer.org> Content-Type: text/plain Date: Sat, 20 Dec 2008 02:23:20 +0000 Message-Id: <1229739800.5614.24.camel@mobiliare.Belkin> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: adding proc to allproc X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2008 08:23:26 -0000 The process comes from the allproc list. I am simply iterating through this list and removing the first 1/2 of allproc list and adding the removed process to my own singly linked list. LIST_REMOVE(current_proc, p_list); // remove from the allproc add_proc_entry(current_proc); Later, i am iterating through my singly linked list and doing the below: struct proc *p = current->p; f( p != NULL && (p->p_state == PRS_NEW || p->p_state == PRS_NORMAL) ){ LIST_INSERT_HEAD(&allproc, p, p_list); } Could this be causing a circular list? I am adding the proc entries to my singly linked list as follows: static void add_proc_entry(const struct proc *p) { struct proc_ll *new_entry = (struct proc_ll*)malloc(sizeof(struct proc_ll), M_TEMP, M_ZERO | M_NOWAIT); int done = 0; new_entry->p = p; // maybe doing this assignment isnt correct? if(proc_entries == NULL) { proc_entries = new_entry; return; } struct proc_ll *current = proc_entries; while(current != NULL) { if(current->next == NULL) { current->next = new_entry; break; } current = current->next; } } struct proc_ll { struct proc *p; struct proc_ll *next; }; A circular list does sound like it could cause hanging to occur but the above code, atleast from my eyes, doesn't seem to cause it. On Fri, 2008-12-19 at 21:39 -0800, Julian Elischer wrote: > Ferner Cilloniz wrote: > > When i run the code from a KLD it hangs the system. No reboot occurs > > however, it just hangs there. > > well, firstly you have no locking though that would probably let you > get away with it most times. > > Where does the process come from in the first place? > > It sounds like you are making a circular list somewhere or somehow... > > have you tried going into ddb? > > > > > > > > > > On Fri, 2008-12-19 at 21:27 -0800, Julian Elischer wrote: > >> Ferner Cilloniz wrote: > >>> Hello everyone. > >>> > >>> I am playing with freebsd and just learning some things about the > >>> FreeBSD kernel. > >>> > >>> So for my first quest i am placing random processes from the allproc > >>> list into a list of my own and trying to add them back into allproc > >>> > >>> I have pasted the code below. > >>> > >>> ----------------------------------------------------------------------- > >>> struct proc *p = a process from my own list; > >>> if( p != NULL && (p->p_state == PRS_NEW || p->p_state == PRS_NORMAL) ){ > >>> LIST_INSERT_HEAD(&allproc, p, p_list); > >>> } > >>> ----------------------------------------------------------------------- > > >> > >>> _______________________________________________ > >>> 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" >