From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 21 15:16:03 2009 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 DB7591065674 for ; Sun, 21 Jun 2009 15:16:03 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 5D6118FC18 for ; Sun, 21 Jun 2009 15:15:52 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n5LFEgoA001292 for ; Sun, 21 Jun 2009 17:14:48 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n5LFEaHS001284 for ; Sun, 21 Jun 2009 17:14:42 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 21 Jun 2009 17:14:29 +0200 (CEST) From: Wojciech Puchar To: freebsd-hackers@freebsd.org Message-ID: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Subject: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 21 Jun 2009 15:16:04 -0000 i have pentium 200 with that card. doing ftp from other machine, getting 3.5MB/s (HDD can 10MB/s, DMA) having 45%-55% interrupt load. when sending it's not that bad. tried writing file to disk with cat /dev/zero >file, it's only 3% ints with 10MB/s traffic. Why it's THAT bad? 3.5MB/s is less that 2500 packets/second. 50% at 200Mhz means 100000000 cycles spend on interrupt service, which is 40000 CPU cycles per packet. From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 21 15:46:15 2009 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 2785E1065673 for ; Sun, 21 Jun 2009 15:46:15 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id DEEE38FC16 for ; Sun, 21 Jun 2009 15:46:14 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 273C86D418; Sun, 21 Jun 2009 17:46:14 +0200 (CEST) Received: by ds4.des.no (Postfix, from userid 1001) id 0857A844C4; Sun, 21 Jun 2009 17:46:14 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Wojciech Puchar References: Date: Sun, 21 Jun 2009 17:46:14 +0200 In-Reply-To: (Wojciech Puchar's message of "Sun, 21 Jun 2009 17:14:29 +0200 (CEST)") Message-ID: <86eitdy4hl.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 21 Jun 2009 15:46:15 -0000 Wojciech Puchar writes: > Why it's THAT bad? http://svn.freebsd.org/base/head/sys/pci/if_rl.c Scroll down past the copyright, license and attribution. Read the 38-line comment that explains just how crappy this chip really is. Executive summary: every single transmitted frame must be copied from the mbuf into a DMA transmit buffer, and every single received frame must be copied from the (quite small) DMA receive buffer into an mbuf. In addition, the transmit queue can only hold four frames. Other chips use scatter-gather lists and other mechanisms which allow them to DMA frames straight out of or into mbufs. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Sun Jun 21 20:23:14 2009 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 688841065688 for ; Sun, 21 Jun 2009 20:23:14 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::2]) by mx1.freebsd.org (Postfix) with ESMTP id 6C23B8FC2A for ; Sun, 21 Jun 2009 20:23:12 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n5LKMHGE077284; Sun, 21 Jun 2009 22:22:17 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n5LKMExr077281; Sun, 21 Jun 2009 22:22:16 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 21 Jun 2009 22:22:12 +0200 (CEST) From: Wojciech Puchar To: =?ISO-8859-15?Q?Dag-Erling_Sm=F8rgrav?= In-Reply-To: <86eitdy4hl.fsf@ds4.des.no> Message-ID: References: <86eitdy4hl.fsf@ds4.des.no> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 21 Jun 2009 20:23:14 -0000 > Wojciech Puchar writes: >> Why it's THAT bad? > > http://svn.freebsd.org/base/head/sys/pci/if_rl.c > > Scroll down past the copyright, license and attribution. Read the > 38-line comment that explains just how crappy this chip really is. Well - really "low end". But - this computer can do memcpy at 80MB/s, so at 3.5MB/s it should be 5% CPU for memcpy, and one interrupt per one packet (2500 packets/s). Is something more that make it consume >50% CPU? From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 00:35:56 2009 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 2A6CF106564A for ; Mon, 22 Jun 2009 00:35:56 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f203.google.com (mail-px0-f203.google.com [209.85.216.203]) by mx1.freebsd.org (Postfix) with ESMTP id EC6058FC0C for ; Mon, 22 Jun 2009 00:35:55 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by pxi41 with SMTP id 41so2230140pxi.3 for ; Sun, 21 Jun 2009 17:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=swdXRg1JxhO869Rdrkciqcq9kco8P0Cccp36BwKeMws=; b=FrR8IBvAXEISx/W2a7JcXy5znh4cJ8W4HQC5xrm0gsCglQSiJAW6WFRBiQKy1kVUvu fqDiwUg+JQg48ysK7zsYvcIkznODFTY0TTmQidlDk1uF7rlRMN8l6j2eqDpb07qP0fCN RacKQj/ykwYb7qLKylUQSsnMrPONRx6dN6jUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=pUqLod/kmhQUfk+eS+zMVDWlCab3UMdodz1x7GRqiEaOI0NcHVnUrQGJcn5miHPowv sV+gOLP6cUyOJ4Cg2/qg1BiDje9wogCRB7lgg/As12SVmtk7L6xgAQlunxNar1kiUnSq eckSze1h2SXGNWH8a++nnXkzISatp627XbuB8= Received: by 10.143.19.16 with SMTP id w16mr2355647wfi.343.1245629536522; Sun, 21 Jun 2009 17:12:16 -0700 (PDT) Received: from michelle.cdnetworks.co.kr ([114.111.62.249]) by mx.google.com with ESMTPS id 32sm8035wfc.34.2009.06.21.17.12.14 (version=SSLv3 cipher=RC4-MD5); Sun, 21 Jun 2009 17:12:15 -0700 (PDT) Received: by michelle.cdnetworks.co.kr (sSMTP sendmail emulation); Mon, 22 Jun 2009 09:17:05 +0900 From: Pyun YongHyeon Date: Mon, 22 Jun 2009 09:17:05 +0900 To: Wojciech Puchar Message-ID: <20090622001705.GA10712@michelle.cdnetworks.co.kr> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2009 00:35:56 -0000 On Sun, Jun 21, 2009 at 05:14:29PM +0200, Wojciech Puchar wrote: > i have pentium 200 with that card. doing ftp from other machine, getting > 3.5MB/s (HDD can 10MB/s, DMA) having 45%-55% interrupt load. > > when sending it's not that bad. > > tried writing file to disk with cat /dev/zero >file, it's only 3% ints > with 10MB/s traffic. > > > Why it's THAT bad? > Because CPU always have to copy frames to/from the controller. These CPU cycles could have been used in other task to give more performance such as SSH encryption/decryption, checksum computation etc. > 3.5MB/s is less that 2500 packets/second. 50% at 200Mhz means 100000000 > cycles spend on interrupt service, which is 40000 CPU cycles per packet. > That depends on your application. It would be ok for normal desktop PCs with fast CPU but it wouldn't be acceptable on servers that have to do lots of other processing. If you have fxp(4) or txp(4) hardwares give them try first and see what's the difference with systat(1). Pushing the hardware to the limit by sending/receiving 64 bytes frames with netperf/iperf also would be good way to see how well the controller works under extreme loads. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 00:22:51 2009 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 B6D0C1065670 for ; Mon, 22 Jun 2009 00:22:51 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms173007pub.verizon.net (vms173007pub.verizon.net [206.46.173.7]) by mx1.freebsd.org (Postfix) with ESMTP id 9574B8FC13 for ; Mon, 22 Jun 2009 00:22:51 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from verizon.net ([98.109.134.167]) by vms173007.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KLM00CJC3LFEE71@vms173007.mailsrvcs.net> for freebsd-hackers@freebsd.org; Sun, 21 Jun 2009 18:22:30 -0500 (CDT) Sender: root Message-id: <4A3EC37B.F589EA09@verizon.net> Date: Sun, 21 Jun 2009 19:34:19 -0400 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.7-RELEASE i386) X-Accept-Language: en, ru MIME-version: 1.0 To: Wojciech Puchar References: <86eitdy4hl.fsf@ds4.des.no> Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailman-Approved-At: Mon, 22 Jun 2009 02:16:59 +0000 Cc: Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= , freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 22 Jun 2009 00:22:52 -0000 Wojciech Puchar wrote: > > > Wojciech Puchar writes: > >> Why it's THAT bad? > > > > http://svn.freebsd.org/base/head/sys/pci/if_rl.c > > > > Scroll down past the copyright, license and attribution. Read the > > 38-line comment that explains just how crappy this chip really is. > > Well - really "low end". > > But - this computer can do memcpy at 80MB/s, so at 3.5MB/s it should be 5% > CPU for memcpy, and one interrupt per one packet (2500 packets/s). > > Is something more that make it consume >50% CPU? Accessing the on-card memory through PCI is guaranteed to be slower than the main memory, and depending on the particular card it may be much slower. -SB From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 11:11:58 2009 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 D0DCE1065779 for ; Mon, 22 Jun 2009 11:11:58 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::2]) by mx1.freebsd.org (Postfix) with ESMTP id C93C28FC0C for ; Mon, 22 Jun 2009 11:11:57 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n5MBAxCJ028820; Mon, 22 Jun 2009 13:11:00 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n5MBAtXo028799; Mon, 22 Jun 2009 13:10:57 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 22 Jun 2009 13:10:54 +0200 (CEST) From: Wojciech Puchar To: Sergey Babkin In-Reply-To: <4A3EC37B.F589EA09@verizon.net> Message-ID: References: <86eitdy4hl.fsf@ds4.des.no> <4A3EC37B.F589EA09@verizon.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: =?ISO-8859-15?Q?Dag-Erling_Sm=F8rgrav?= , freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 22 Jun 2009 11:12:07 -0000 >> >> But - this computer can do memcpy at 80MB/s, so at 3.5MB/s it should be 5% >> CPU for memcpy, and one interrupt per one packet (2500 packets/s). >> >> Is something more that make it consume >50% CPU? > > Accessing the on-card memory through PCI is guaranteed to be > slower than the main memory, and depending on the particular > card it may be much slower. as comment say - this card do DMA to main memory then computer must copy. so PCI speed needs just to be faster than 100Mbit/s, certainly is From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 11:13:03 2009 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 91EFE1065705 for ; Mon, 22 Jun 2009 11:13:03 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::2]) by mx1.freebsd.org (Postfix) with ESMTP id ECCBB8FC25 for ; Mon, 22 Jun 2009 11:13:01 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n5MBCBGT029043; Mon, 22 Jun 2009 13:12:11 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n5MBC9bW029034; Mon, 22 Jun 2009 13:12:10 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Mon, 22 Jun 2009 13:12:08 +0200 (CEST) From: Wojciech Puchar To: Pyun YongHyeon In-Reply-To: <20090622001705.GA10712@michelle.cdnetworks.co.kr> Message-ID: References: <20090622001705.GA10712@michelle.cdnetworks.co.kr> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 22 Jun 2009 11:13:09 -0000 >> >> Why it's THAT bad? >> > > Because CPU always have to copy frames to/from the controller. comment says card do DMA. just then it has to copy but within main memory not PCI. > These CPU cycles could have been used in other task to give more > performance such as SSH encryption/decryption, checksum computation > etc. > >> 3.5MB/s is less that 2500 packets/second. 50% at 200Mhz means 100000000 >> cycles spend on interrupt service, which is 40000 CPU cycles per packet. >> > > That depends on your application. It would be ok for normal desktop > PCs with fast CPU but it wouldn't be acceptable on servers that > have to do lots of other processing. If you have fxp(4) or txp(4) i know all this, but i'm asking why processing single interrupt takes 40000 CPU cycles. From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 18:42:49 2009 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 9CA581065674 for ; Mon, 22 Jun 2009 18:42:49 +0000 (UTC) (envelope-from psteele@webmail.maxiscale.com) Received: from k2smtpout04-01.prod.mesa1.secureserver.net (k2smtpout04-01.prod.mesa1.secureserver.net [64.202.189.166]) by mx1.freebsd.org (Postfix) with SMTP id 613818FC16 for ; Mon, 22 Jun 2009 18:42:49 +0000 (UTC) (envelope-from psteele@webmail.maxiscale.com) Received: (qmail 14133 invoked from network); 22 Jun 2009 18:14:18 -0000 Received: from unknown (HELO owa.webmail.maxiscale.com) (72.167.52.135) by k2smtpout04-01.prod.mesa1.secureserver.net (64.202.189.166) with ESMTP; 22 Jun 2009 18:14:18 -0000 Content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.5 Date: Mon, 22 Jun 2009 11:12:34 -0700 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Number of open files per process Thread-Index: AcnzZQR0O/qOWxjhRquOQVW+z5HGWw== From: "Peter Steele" To: X-Mailman-Approved-At: Mon, 22 Jun 2009 18:53:16 +0000 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Number of open files per process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2009 18:42:49 -0000 Is it possible to determine the number of open files per process? We want to monitor this via a separate process and issue an alarm if some threshold is crossed. =20 From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 19:07:24 2009 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 5A638106566C for ; Mon, 22 Jun 2009 19:07:24 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from mx00.pub.collaborativefusion.com (mx00.pub.collaborativefusion.com [206.210.89.199]) by mx1.freebsd.org (Postfix) with ESMTP id 081AF8FC12 for ; Mon, 22 Jun 2009 19:07:23 +0000 (UTC) (envelope-from wmoran@collaborativefusion.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (vanquish.ws.pitbpa0.priv.collaborativefusion.com [192.168.2.162]) (SSL: TLSv1/SSLv3,256bits,AES256-SHA) by wingspan with esmtp; Mon, 22 Jun 2009 14:57:20 -0400 id 00056429.000000004A3FD411.0000C1C9 Date: Mon, 22 Jun 2009 14:57:20 -0400 From: Bill Moran To: "Peter Steele" Message-Id: <20090622145720.768277c0.wmoran@collaborativefusion.com> In-Reply-To: References: Organization: Collaborative Fusion Inc. X-Mailer: Sylpheed 2.6.0 (GTK+ 2.14.7; i386-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Number of open files per process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2009 19:07:24 -0000 In response to "Peter Steele" : > Is it possible to determine the number of open files per process? We > want to monitor this via a separate process and issue an alarm if some > threshold is crossed. The fstat command will do this for you. -- Bill Moran Collaborative Fusion Inc. http://people.collaborativefusion.com/~wmoran/ wmoran@collaborativefusion.com Phone: 412-422-3463x4023 **************************************************************** IMPORTANT: This message contains confidential information and is intended only for the individual named. If the reader of this message is not an intended recipient (or the individual responsible for the delivery of this message to an intended recipient), please be advised that any re-use, dissemination, distribution or copying of this message is prohibited. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. **************************************************************** From owner-freebsd-hackers@FreeBSD.ORG Mon Jun 22 19:36:16 2009 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 034FD1065670 for ; Mon, 22 Jun 2009 19:36:16 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from mailrelay.rz.uni-wuerzburg.de (mailrelay.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.freebsd.org (Postfix) with ESMTP id A984E8FC14 for ; Mon, 22 Jun 2009 19:36:15 +0000 (UTC) (envelope-from shuvaev@physik.uni-wuerzburg.de) Received: from virusscan.mail (localhost [127.0.0.1]) by mailrelay.mail (Postfix) with ESMTP id 39899A088E; Mon, 22 Jun 2009 21:05:30 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by virusscan.mail (Postfix) with ESMTP id 2D007A0887; Mon, 22 Jun 2009 21:05:30 +0200 (CEST) Received: from mail.physik.uni-wuerzburg.de (wthp192.physik.uni-wuerzburg.de [132.187.40.192]) by mailmaster.uni-wuerzburg.de (Postfix) with ESMTP id 1A24DA0886; Mon, 22 Jun 2009 21:05:30 +0200 (CEST) Received: from wep4035 ([132.187.37.35]) by mail.physik.uni-wuerzburg.de (Lotus Domino Release 8.0.2FP1HF244) with ESMTP id 2009062221052978-31762 ; Mon, 22 Jun 2009 21:05:29 +0200 Received: by wep4035 (sSMTP sendmail emulation); Mon, 22 Jun 2009 21:05:29 +0200 Date: Mon, 22 Jun 2009 21:05:29 +0200 From: Alexey Shuvaev To: Peter Steele Message-ID: <20090622190529.GA52783@wep4035.physik.uni-wuerzburg.de> References: MIME-Version: 1.0 In-Reply-To: Organization: Universitaet Wuerzburg User-Agent: Mutt/1.5.19 (2009-01-05) X-MIMETrack: Itemize by SMTP Server on domino1/uni-wuerzburg(Release 8.0.2FP1HF244 | April 7, 2009) at 06/22/2009 09:05:29 PM, Serialize by Router on domino1/uni-wuerzburg(Release 8.0.2FP1HF244 | April 7, 2009) at 06/22/2009 09:05:29 PM, Serialize complete at 06/22/2009 09:05:29 PM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Virus-Scanned: by amavisd-new at uni-wuerzburg.de Cc: freebsd-hackers@freebsd.org Subject: Re: Number of open files per process X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Jun 2009 19:36:16 -0000 On Mon, Jun 22, 2009 at 11:12:34AM -0700, Peter Steele wrote: > Is it possible to determine the number of open files per process? We > want to monitor this via a separate process and issue an alarm if some > threshold is crossed. > procstat -f From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 00:31:22 2009 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 BBB9E1065672 for ; Tue, 23 Jun 2009 00:31:22 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-bw0-f209.google.com (mail-bw0-f209.google.com [209.85.218.209]) by mx1.freebsd.org (Postfix) with ESMTP id 2108B8FC21 for ; Tue, 23 Jun 2009 00:31:21 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by bwz5 with SMTP id 5so696555bwz.43 for ; Mon, 22 Jun 2009 17:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:subject :message-id:mime-version:content-type:content-disposition; bh=QvIFxIpLK5O1kS9DqN/KSHfPyZfov3/xY2XO2CsCmtA=; b=lIOTp6Lo6IyIxafz5tMUOl77U9xB5/A/+CB4+AtJqBp3HTdLiQJN+oEwhJSDbDOjqi 3joB4FmA4IAbUg5F8uAfZxjshRv/naNThySjKJ+Th00Jgjtq8utDpidwGwfx0MGUPbVa Kgb1FHcVMQiMeqkdyBu6AQ4jMCtP+kjJX3Q+g= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition; b=KgXFFegED66+vsMGpAdaTvoORt3qtqbAAYUy35aFnEGTOXO/5pE+IqOrQL1Oe5kDcp vb5izp9J2KqSTkzx49lbB8IQgdYuIQXzhjoVmD1C8mh+sT/YyceMqWC9YLBvB+QudxFB iptv8QrfYN8iPitWaLd9DL8/+czBtWYIq0KX4= Received: by 10.223.122.204 with SMTP id m12mr6807356far.73.1245717079265; Mon, 22 Jun 2009 17:31:19 -0700 (PDT) Received: from logik.internal.network (geeshaulage.lcdsl.co.uk [62.249.247.223]) by mx.google.com with ESMTPS id 11sm12218791fxm.17.2009.06.22.17.31.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Jun 2009 17:31:18 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id 3BFCD5D59; Tue, 23 Jun 2009 00:31:17 +0000 (UTC) Date: Tue, 23 Jun 2009 01:31:17 +0100 From: xorquewasp@googlemail.com To: freebsd-hackers@freebsd.org Message-ID: <20090623003117.GA94466@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: ZFS filesystem not showing total size? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 00:31:23 -0000 Hello. I've got the following hardware setup: ad10: 76319MB at ata5-master SATA300 ad11: 953869MB at ata5-slave SATA300 ad12: 953869MB at ata6-master SATA300 ad14: 476940MB at ata7-master SATA300 ad16: 476940MB at ata8-master SATA300 ad12 is used as a single-disk pool. ad10 is formatted UFS2 for the OS. I'm attempting to create a RAIDZ pool (with parity) over ad11, ad14 and ad16. I've performed the following steps: # zpool create storage raidz ad11 ad14 ad16 # zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT backup 928G 166K 928G 0% ONLINE - storage 1.36T 292K 1.36T 0% ONLINE - # zfs create storage/home # zfs create storage/home/xw # zfs set compression=gzip storage/home # zfs set compression=gzip storage/home/xw # zfs list NAME USED AVAIL REFER MOUNTPOINT storage 188K 913G 25.3K /storage storage/home 49.3K 913G 25.3K /storage/home storage/home/xw 24.0K 913G 24.0K /storage/home/xw I seem to have less storage than I'd expect. Is there something wrong with this setup? xw From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 04:52:47 2009 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 6F714106564A for ; Tue, 23 Jun 2009 04:52:47 +0000 (UTC) (envelope-from jflowers@ezo.net) Received: from mxgf1.ezo.net (mxgf1.ezo.net [12.156.78.18]) by mx1.freebsd.org (Postfix) with ESMTP id 19CF08FC08 for ; Tue, 23 Jun 2009 04:52:46 +0000 (UTC) (envelope-from jflowers@ezo.net) Received: from ezo.net (mbox.ezo.net [12.156.78.21]) by mxgf1.ezo.net (8.13.6/8.13.6) with ESMTP id n5N4lF1U059738 for ; Tue, 23 Jun 2009 00:47:15 -0400 (EDT) (envelope-from jflowers@ezo.net) From: "Jim Flowers" To: freebsd-hackers@freebsd.org Date: Tue, 23 Jun 2009 00:55:23 -0400 Message-Id: <20090623032742.M54551@ezo.net> X-Mailer: OpenWebMail 2.52 20060502 X-OriginatingIP: 70.228.71.121 (jflowers@ezo.net) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: dd copy of FreeBSD-7.2 won't boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jflowers@ezo.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 04:52:47 -0000 I have a remote server that was dd copied from one hard drive to another - essentially the same size. The disk device name (ad4) is the same but the geometry for the new drive has a CHS of 969021/16/63 On booting it hangs at: F1 FreeBSD Boot: F1 I copied the MBR with 'boot0cfg -B -opacket ad4' just to be sure but no joy. fbsd fdisk reports start 63, with CHS beg: 0/1/1 end: 1023/15/63. Any help on direction to solve this? Thanks. -- Jim Flowers From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 04:55:05 2009 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 C198B106567A for ; Tue, 23 Jun 2009 04:55:05 +0000 (UTC) (envelope-from artemb@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 72EF38FC17 for ; Tue, 23 Jun 2009 04:55:05 +0000 (UTC) (envelope-from artemb@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so1656148ywe.13 for ; Mon, 22 Jun 2009 21:55:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type:content-transfer-encoding; bh=xYQUJBlTMpxNP447VB5Eau3CE7mJUWxaV86xJGdW8oo=; b=JbIdxfsA2nouXgahIVFin90Y/wSfB90fZB5tLRclX6VJFCJvpUUAru5uzb7k0p2Pzb ZDjgMwBwYznq4aAF4osfk3UnPAxF1/Yf8t1Jz39AUnAym85LM70KIemnlLnWyPdWez5Q uvIoGp+3w+NBPXwkPJueTrmurHoMy/UfBjihs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=PuKghgS5tKOgDZZhMGyPnMMWf+x1UxAOA7rwhsnAyfNX5L/ZDet+wh6eGPGl1IMLpl Ix6b+CX6nD7mhrIuqCghFHzOk5LxUeW0FBZbzdNy054kM1Q1/6k+RxOQRH0VnQoTtFS7 zuKfY42Kme4gwdQMGx5mVXAyA9QyqDOR74DfA= MIME-Version: 1.0 Sender: artemb@gmail.com Received: by 10.90.25.7 with SMTP id 7mr5862443agy.107.1245731306478; Mon, 22 Jun 2009 21:28:26 -0700 (PDT) In-Reply-To: <20090623003117.GA94466@logik.internal.network> References: <20090623003117.GA94466@logik.internal.network> Date: Mon, 22 Jun 2009 21:28:26 -0700 X-Google-Sender-Auth: e48fd354272025e8 Message-ID: From: Artem Belevich To: xorquewasp@googlemail.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: ZFS filesystem not showing total size? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 04:55:06 -0000 On Mon, Jun 22, 2009 at 5:31 PM, wrote: > ad11: 953869MB at ata5-slave SATA300 .. > ad14: 476940MB at ata7-master SATA300 > ad16: 476940MB at ata8-master SATA300 .. ># zpool create storage raidz ad11 ad14 ad16 > I seem to have less storage than I'd expect. Is there something wrong > with this setup? You've created raidz pool from 2x500G hard drives and one 1T hard drive. RAIDZ needs elements of the array to be of the same size, so you're effectively wasting half of your 1T drive (ad11). Total raw capacity of the pool is 476G*3 = ~ 1.36T with 2/3of it (913G) usable for user data -- exactly what zfs shows you. Obvious fix would be to build the pool from the drives of the same size. You may try concatenating or striping ad14+ad16 with geom and create mirrored pool with ad11 -- usable size would be a bit larger than what you have. Resulting pool should be faster than RAIDZ. Another option would be to get another 1T drive and build RAIDZ pool with 2x1T + (striped 2x500G) for a total usable size of ~2T. I'd advise against splitting 1T drive into two partitions and use them as two elements of RAIDZ pool -- this would effectively kill redundancy that RAIDZ is supposed to provide. If your 1T drive dies, your whole pool would go down with it. Performance would also suck as 1T drive will be constantly seeking. --Artem From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 05:07:11 2009 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 95CDC1065670 for ; Tue, 23 Jun 2009 05:07:11 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-fx0-f217.google.com (mail-fx0-f217.google.com [209.85.220.217]) by mx1.freebsd.org (Postfix) with ESMTP id 1F42C8FC16 for ; Tue, 23 Jun 2009 05:07:10 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by fxm17 with SMTP id 17so1145023fxm.43 for ; Mon, 22 Jun 2009 22:07:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=BFF3yunLZ+8g/LIGWMnQF/D/do57KQskCPSIUShvdVQ=; b=ZU/Q+HCpqGkD8PhzsIDWlKjAjiLWspPuJOeV+0Qz351FNKEvyby8P9bvSHzzHj/3m1 O2/VAl1jcBXa1ks3MRk7eZrQ98lw9exAyDd7VubENonrAHJk2Fi3ML4v6YJP2kQX6rwg 3vtHIG6jU/iyXtV2uJ9DqCLXfOCGBoLlLhIUk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=s6CLIRct1HYPWrSgUeraBjx3CAk3P74bZFXGJoxfHLnPGYGUvSutEHQbXBrioQItPy Tfhv8YIspJXD7la7E36ojE5yxgnMcC0ffsTBoq0vA2h6tRuU7pzmQJ7zNTZd3QKrCUdn /Mkcef4jc0kgDcJ89yNTRWdcMyfYLhtPIBiH4= Received: by 10.204.60.133 with SMTP id p5mr6791336bkh.143.1245733629662; Mon, 22 Jun 2009 22:07:09 -0700 (PDT) Received: from logik.internal.network (geeshaulage.lcdsl.co.uk [62.249.247.223]) by mx.google.com with ESMTPS id 1sm12716272fxm.27.2009.06.22.22.07.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 22 Jun 2009 22:07:08 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id A397D5D59; Tue, 23 Jun 2009 05:07:07 +0000 (UTC) Date: Tue, 23 Jun 2009 06:07:07 +0100 From: xorquewasp@googlemail.com To: Artem Belevich Message-ID: <20090623050707.GB21349@logik.internal.network> References: <20090623003117.GA94466@logik.internal.network> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Cc: freebsd-hackers@freebsd.org Subject: Re: ZFS filesystem not showing total size? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 05:07:11 -0000 On 2009-06-22 21:28:26, Artem Belevich wrote: > On Mon, Jun 22, 2009 at 5:31 PM, wrote: > > ad11: 953869MB at ata5-slave SATA300 > .. > > ad14: 476940MB at ata7-master SATA300 > > ad16: 476940MB at ata8-master SATA300 > .. > ># zpool create storage raidz ad11 ad14 ad16 > > I seem to have less storage than I'd expect. Is there something wrong > > with this setup? > > You've created raidz pool from 2x500G hard drives and one 1T hard > drive. RAIDZ needs elements of the array to be of the same size, so > you're effectively wasting half of your 1T drive (ad11). Total raw > capacity of the pool is 476G*3 = ~ 1.36T with 2/3of it (913G) usable > for user data -- exactly what zfs shows you. Thanks, I was afraid of that. I'll swap the 1tb disk for a 500gb today. I was only planning to get 1tb of storage but found that I had a spare 1tb disk laying around so I put that into the array instead. xw From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 06:39:29 2009 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 2BAD810656AD for ; Tue, 23 Jun 2009 06:39:29 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 94D088FC1A for ; Tue, 23 Jun 2009 06:39:28 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id n5N6d9Hd096261 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 23 Jun 2009 16:09:10 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org, jflowers@ezo.net Date: Tue, 23 Jun 2009 16:08:58 +0930 User-Agent: KMail/1.9.10 References: <20090623032742.M54551@ezo.net> In-Reply-To: <20090623032742.M54551@ezo.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2728039.FyeAXod2hX"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200906231609.05810.doconnor@gsoft.com.au> X-Spam-Score: -3.55 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Subject: Re: dd copy of FreeBSD-7.2 won't boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 06:39:29 -0000 --nextPart2728039.FyeAXod2hX Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 23 Jun 2009, Jim Flowers wrote: > I have a remote server that was dd copied from one hard drive to > another - essentially the same size. The disk device name (ad4) is > the same but the geometry for the new drive has a CHS of 969021/16/63 > > On booting it hangs at: > > F1 FreeBSD > Boot: F1 > > I copied the MBR with 'boot0cfg -B -opacket ad4' just to be sure but > no joy. fbsd fdisk reports start 63, with CHS beg: 0/1/1 end: > 1023/15/63. > > Any help on direction to solve this? I would have thought that boot0cfg would DTRT. You could also try running fdisk -BI on your new disk to reinit the MBR,=20 then running boot0cfg on it. =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart2728039.FyeAXod2hX Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iD8DBQBKQHiJ5ZPcIHs/zowRAnFbAJ0Q49xua+67tZvlceU0Jg2SaXgMQgCdHDLJ BzI68tRvKNfZrjge81Z3mPk= =ToFx -----END PGP SIGNATURE----- --nextPart2728039.FyeAXod2hX-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 07:29:08 2009 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 F2997106566C for ; Tue, 23 Jun 2009 07:29:08 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::2]) by mx1.freebsd.org (Postfix) with ESMTP id F1D248FC14 for ; Tue, 23 Jun 2009 07:29:06 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3) with ESMTP id n5N7Snew055074; Tue, 23 Jun 2009 09:28:49 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.3/8.14.3/Submit) with ESMTP id n5N7SmSN055071; Tue, 23 Jun 2009 09:28:49 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Tue, 23 Jun 2009 09:28:48 +0200 (CEST) From: Wojciech Puchar To: Jim Flowers In-Reply-To: <20090623032742.M54551@ezo.net> Message-ID: References: <20090623032742.M54551@ezo.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: dd copy of FreeBSD-7.2 won't boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 07:29:09 -0000 > I have a remote server that was dd copied from one hard drive to another - > essentially the same size. The disk device name (ad4) is the same but the > geometry for the new drive has a CHS of 969021/16/63 > > On booting it hangs at: > > F1 FreeBSD > Boot: F1 > > I copied the MBR with 'boot0cfg -B -opacket ad4' just to be sure but no joy. > fbsd fdisk reports start 63, with CHS beg: 0/1/1 end: 1023/15/63. > > Any help on direction to solve this? > try fdisk -B /dev/ad0 but even better next time don't make slices, only disklabel. It just make life simpler. I still don't understand why sysinstall by default create them. It should be only used when windoze has to be run from the same disk From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 07:34:11 2009 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 776BD106564A for ; Tue, 23 Jun 2009 07:34:11 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id DD8C38FC0C for ; Tue, 23 Jun 2009 07:34:10 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (inchoate.gsoft.com.au [203.31.81.30]) (authenticated bits=0) by cain.gsoft.com.au (8.13.8/8.13.8) with ESMTP id n5N7Y0YE097919 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Tue, 23 Jun 2009 17:04:00 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 23 Jun 2009 17:03:48 +0930 User-Agent: KMail/1.9.10 References: <20090623032742.M54551@ezo.net> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1593119.zZLlcR250b"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200906231703.58948.doconnor@gsoft.com.au> X-Spam-Score: -3.55 () ALL_TRUSTED,AWL,BAYES_00 X-Scanned-By: MIMEDefang 2.63 on 203.31.81.10 Cc: Wojciech Puchar Subject: Re: dd copy of FreeBSD-7.2 won't boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 07:34:11 -0000 --nextPart1593119.zZLlcR250b Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 23 Jun 2009, Wojciech Puchar wrote: > > Any help on direction to solve this? > > try fdisk -B /dev/ad0 > > but even better next time don't make slices, only disklabel. It just > make life simpler. I still don't understand why sysinstall by default > create them. It should be only used when windoze has to be run from > the same disk There are plenty of BIOSen which will puke on a dangerously dedicated=20 disk. Next time he should partition, label & newfs the disk, then copy it over=20 with dump | store. Unless the disk is chock full it will be significantly faster. =20 =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1593119.zZLlcR250b Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iD8DBQBKQIVm5ZPcIHs/zowRAl1bAJ9dhrJv7CkC1ABjpr8vrX3zjAKmnACeO6mj oeIxhnxf7og6MjyY9fK4VFE= =bGN7 -----END PGP SIGNATURE----- --nextPart1593119.zZLlcR250b-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 07:37:00 2009 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 0C499106564A for ; Tue, 23 Jun 2009 07:37:00 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail14.syd.optusnet.com.au (mail14.syd.optusnet.com.au [211.29.132.195]) by mx1.freebsd.org (Postfix) with ESMTP id 7753A8FC17 for ; Tue, 23 Jun 2009 07:36:59 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-216-167.belrs3.nsw.optusnet.com.au [122.106.216.167]) by mail14.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n5N7ambe023831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Jun 2009 17:36:52 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id n5N7alZI007540; Tue, 23 Jun 2009 17:36:47 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id n5N7alAm007539; Tue, 23 Jun 2009 17:36:47 +1000 (EST) (envelope-from peter) Date: Tue, 23 Jun 2009 17:36:47 +1000 From: peterjeremy@optushome.com.au To: Wojciech Puchar Message-ID: <20090623073647.GA7501@server.vk2pj.dyndns.org> References: <20090622001705.GA10712@michelle.cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X1bOJ3K7DJ5YkBrT" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-hackers@freebsd.org Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 07:37:00 -0000 --X1bOJ3K7DJ5YkBrT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Jun-22 13:12:08 +0200, Wojciech Puchar wrote: >i know all this, but i'm asking why processing single interrupt takes=20 >40000 CPU cycles. All I can suggest is that you browse the sources and see what the rl(4) interrupt handler does. If you want to dig further, hwpmc(4) may give you further insights. --=20 Peter Jeremy --X1bOJ3K7DJ5YkBrT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpAhg8ACgkQ/opHv/APuIe8TgCghD67YxktOheKlSi/7T1mtqOF b1oAoKfDapDu3h2Yicj7ZsMD4SPHnqe0 =XyVL -----END PGP SIGNATURE----- --X1bOJ3K7DJ5YkBrT-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 14:24:23 2009 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 547FB1065672 for ; Tue, 23 Jun 2009 14:24:23 +0000 (UTC) (envelope-from eforezz@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.27]) by mx1.freebsd.org (Postfix) with ESMTP id DC3908FC19 for ; Tue, 23 Jun 2009 14:24:22 +0000 (UTC) (envelope-from eforezz@gmail.com) Received: by ey-out-2122.google.com with SMTP id 9so9561eyd.7 for ; Tue, 23 Jun 2009 07:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=fGuJmylB2WmOG7o/MUlqQdfUQO7A5pCNDnZXku6fYsg=; b=uufwCIh3h9huOxxgrg3G+eR2/5PVcrWdpBSBoFXiBxjheBaJoR1wI3amagjyd1GQfz nJOGwChMM8sNckca6rC9FdE0fEjN+gzR0eX1Uow+ymoQ+alIQMNVKFek7AgPl6PNnFuB x5yanFqK6sVMGXQrr4pRkl3xtxvwZAaWz31b8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=t/EWK/hN2GAHbzgvQfpuNs6XRIdjGLYT/WLTN1d31gd6PWyEsmQvj4mqGysjO7Tac4 7mSYPInje68CtZbVh3Hb+PR7CkyYlAjJDra2SDRykN0n9LZCcFt5r4msphXH/75kCX6e t1x4jDeFUKCGBlyyNZTeTfxImSTPxpVgMUDwg= MIME-Version: 1.0 Received: by 10.216.38.68 with SMTP id z46mr46665wea.6.1245765829586; Tue, 23 Jun 2009 07:03:49 -0700 (PDT) Date: Tue, 23 Jun 2009 17:03:49 +0300 Message-ID: From: EforeZZ To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: wojtek@wojtek.tensor.gdynia.pl Subject: Re: is RTL8139 THAT bad? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 14:24:23 -0000 >i have pentium 200 with that card. doing ftp from other machine, getting >3.5MB/s (HDD can 10MB/s, DMA) having 45%-55% interrupt load. I had the same probelm. I rebuilt the kernel with the POLLING option set to ON and turned on polling for all network interfaces. It helped much :) Best regards, EforeZZ From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 18:09:18 2009 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 B848C1065674 for ; Tue, 23 Jun 2009 18:09:18 +0000 (UTC) (envelope-from jgreco@aurora.sol.net) Received: from mail1.sol.net (mail1.sol.net [206.55.64.72]) by mx1.freebsd.org (Postfix) with ESMTP id 8133F8FC08 for ; Tue, 23 Jun 2009 18:09:18 +0000 (UTC) (envelope-from jgreco@aurora.sol.net) Received: from aurora.sol.net (aurora.sol.net [206.55.65.130]) by mail1.sol.net (8.14.1/8.14.1/SNNS-1.04) with ESMTP id n5NI9G98045710; Tue, 23 Jun 2009 13:09:17 -0500 (CDT) Received: (from jgreco@localhost) by aurora.sol.net (8.12.8p1/8.12.9/Submit) id n5NI9Nj0002648; Tue, 23 Jun 2009 13:09:23 -0500 (CDT) From: Joe Greco Message-Id: <200906231809.n5NI9Nj0002648@aurora.sol.net> To: peterjeremy@optushome.com.au (Peter Jeremy) Date: Tue, 23 Jun 2009 13:09:23 -0500 (CDT) In-Reply-To: <20090613230749.GA73896@server.vk2pj.dyndns.org> from "Peter Jeremy" at Jun 14, 2009 09:07:50 AM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Maybe confused about AMD64 / i386 compatibility X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 18:09:19 -0000 > On 2009-Jun-13 15:55:29 -0500, Joe Greco wrote: > >Adding a SIL3112A gives us the SATA. > > These are known to cause data corruption (check the archives). I > wouldn't trust anything that has passed through a SIL chip without > independent validation. Well, as I originally stated, that wasn't an issue. The problem has been replicated on other hardware and has been assigned to freebsd-geom, I guess. ... JG -- Joe Greco - sol.net Network Services - Milwaukee, WI - http://www.sol.net "We call it the 'one bite at the apple' rule. Give me one chance [and] then I won't contact you again." - Direct Marketing Ass'n position on e-mail spam(CNN) With 24 million small businesses in the US alone, that's way too many apples. From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 23 20:24:27 2009 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 B99D41065670 for ; Tue, 23 Jun 2009 20:24:27 +0000 (UTC) (envelope-from thacker.nirmal@gmail.com) Received: from mail-qy0-f186.google.com (mail-qy0-f186.google.com [209.85.221.186]) by mx1.freebsd.org (Postfix) with ESMTP id 3F5F18FC1E for ; Tue, 23 Jun 2009 20:24:26 +0000 (UTC) (envelope-from thacker.nirmal@gmail.com) Received: by qyk16 with SMTP id 16so445628qyk.3 for ; Tue, 23 Jun 2009 13:24:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=83PBrARjuPWspmDQqzuMZ6fT8KaHqpFhtug9NUu0HII=; b=x8hLsirfZ2+iBZHlBHY3aoGIPgA1SQZsry/5uIeJNIEyXPhDIj6yXmNWEaLwJHbXqh sY/V7WHeJaKzj7G6lnd4lSsstAgGuFuvPZW9cnkv30Ah5uZVCSU1UJkn9qxz+dKKbYr0 GaAcl470mz9FoKIm1WXIxcRwBWrlolo8vCrT8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=gaBx/6RxaXFcYyq3ZeoG8SBc2nlye4SF0f8OlafYzH/bIqzDC5pwblzrE9DGA+MZjQ 1UaCCtysy/u5gs6r/1pA1LbFG0FMKUiVAnfGJySufp+OyXug5qVodUoYpWr65eXO7kvf KG+I/tl4LOg9Oxaxk7v8CBNeXgvlyJiaCdgaQ= MIME-Version: 1.0 Received: by 10.220.92.212 with SMTP id s20mr779926vcm.91.1245786724853; Tue, 23 Jun 2009 12:52:04 -0700 (PDT) Date: Tue, 23 Jun 2009 15:52:04 -0400 Message-ID: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> From: Nirmal Thacker To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Dump Utility cache efficiency analysis X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 23 Jun 2009 20:24:28 -0000 Hello This is regarding the dump utility cache efficiency analysis post made on February '07 by Peter Jeremy [ http://lists.freebsd.org/pipermail/freebsd-hackers/2007-February/019666.html] and if this project is still open. I would be interested to begin exploring FreeBSD (and contributing) by starting this project. I do have some basic understanding of the problem at hand - to determine if a unified cache would appeal as a more efficient/elegant solution compared to the per-process-cache in the Dump utility implementation. I admit I am new to this list and FreeBSD so I wouldn't be able to determine what the current implementation is, until I get started. I would first like to understand the opinions of anyone who has looked at this problem or think this would be a worthwhile project to start off with. I would also appreciate if I could get simple tips and pointers of setting up my machine for the project. I understand this would be on the lines of: 1. Installing a stable FreeBSD build 2. Check out a version of the Build suitable for the project 3. Pointers to begin studying the current implementation in the code-tree structure (would I expect it to lie in the fs/ directory?). I tried to find it in the FreeBSD cross reference (http://fxr.watson.org/) 4. Read some important sections of the developer handbook (some suggestions would be great) Lastly- does this project require the know-how's of device drivers? If so, I would have to work harder. Thanks a lot! - nirmal From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 00:08:33 2009 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 0FF2A106566C for ; Wed, 24 Jun 2009 00:08:33 +0000 (UTC) (envelope-from freebsd@akruijff.dds.nl) Received: from CPSMTPM-EML110.kpnxchange.com (Cpsmtpm-eml110.kpnxchange.com [195.121.3.14]) by mx1.freebsd.org (Postfix) with ESMTP id 65FC28FC0A for ; Wed, 24 Jun 2009 00:08:32 +0000 (UTC) (envelope-from freebsd@akruijff.dds.nl) Received: from ip51cc8423.speed.planet.nl ([81.204.132.35]) by CPSMTPM-EML110.kpnxchange.com with Microsoft SMTPSVC(7.0.6001.18000); Wed, 24 Jun 2009 02:08:30 +0200 Received: from Alex1.lan (localhost [127.0.0.1]) by ip51cc8423.speed.planet.nl (8.14.2/8.14.2) with ESMTP id n5O08Tmp006251 for ; Wed, 24 Jun 2009 02:08:29 +0200 (CEST) (envelope-from freebsd@akruijff.dds.nl) Received: (from akruijff@localhost) by Alex1.lan (8.14.2/8.14.2/Submit) id n5O08TQB006250 for freebsd-hackers@freebsd.org; Wed, 24 Jun 2009 02:08:29 +0200 (CEST) (envelope-from freebsd@akruijff.dds.nl) X-Authentication-Warning: Alex1.lan: akruijff set sender to freebsd@akruijff.dds.nl using -f Date: Wed, 24 Jun 2009 02:08:29 +0200 From: Alex de Kruijff To: freebsd-hackers@freebsd.org Message-ID: <20090624000829.GB1697@Alex1.lan> References: <20090613110618.GA1462@Alex1.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090613110618.GA1462@Alex1.lan> User-Agent: Mutt/1.4.2.3i X-OriginalArrivalTime: 24 Jun 2009 00:08:30.0792 (UTC) FILETIME=[E7FC6C80:01C9F45F] Subject: [FIXED] Re: Porting problem with gnu configure (c++ -V) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd@akruijff.dds.nl List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 00:08:33 -0000 On Sat, Jun 13, 2009 at 01:06:18PM +0200, Alex de Kruijff wrote: > I'm converting my port samesame to use gnu configue, but came a cross a > problem that is beond me. I'm able to run aclocal, autoconf, autoheader > and automake --add-missing -c. I've read the docs for autoconf and > automake and search the web, but dont know how to solve elegantly. I > would proberbly be able to hack configure, but prevere to edit only the > source files. Do other porters with more experiance have any tips for > me? > > The machine runs on FreeBSD 6.1-p20. > > When building the port I get this message: > > ===> Configuring for samesame-1.3 > configure: WARNING: you should use --build, --host, --target > checking for a BSD-compatible install... /usr/bin/install -c -o root -g > wheel > checking whether build environment is sane... yes > checking for gawk... no > checking for mawk... no > checking for nawk... nawk > checking whether make sets $(MAKE)... yes > checking for C++ compiler default output file name... > configure: error: C++ compiler cannot create executables > See `config.log' for more details. > ===> Script "configure" failed unexpectedly. > > > - Config.log show the following: > configure:2329: c++ --version >&5 > c++ (GCC) 3.4.4 [FreeBSD] 20050518 > Copyright (C) 2004 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is > NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR > PURPOSE. > > configure:2332: $? = 0 > configure:2339: c++ -v >&5 > Using built-in specs. > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 3.4.4 [FreeBSD] 20050518 > configure:2342: $? = 0 > configure:2349: c++ -V >&5 <---------------------------- ------- ------- > c++: `-V' option must have argument > configure:2352: $? = 1 > configure:2375: checking for C++ compiler default output file name > configure:2402: c++ -O2 -fno-strict-aliasing -pipe -DWITH_DISK_STORAGE > -DWITH_MM > AP -D'TEMP_STORAGE_DIR="/tmp"' -DPATH_INIT=256 > -DSTATIC_CACHE_CAPACITY=8192 co > nftest.cpp >&5 > :4:1: macro names must be identifiers > configure:2405: $? = 1 > configure:2443: result: > configure: failed program was: > | /* confdefs.h. */ / > | #define PACKAGE_NAME "SameSame" > | #define PACKAGE_TARNAME "samesame" > | #define PACKAGE_VERSION "1.3" > | #define PACKAGE_STRING "SameSame 1.3" > | #define PACKAGE_BUGREPORT "samesame@akruijff.dds.nl" > | #define PACKAGE "samesame" > | #define VERSION "1.3" > | /* end confdefs.h. */ > | > | int > | main () > | { > | > | ; > | return 0; > | } > configure:2449: error: C++ compiler cannot create executables > See `config.log' for more details. > Hi, For the archive (google). I that I discoverd the problem with the help of Andrey Simonenko. The problem with the port seed to be that you can not do stuff like 'CFLAGS+= -DWITH_MMAP' when going the gnu way with your port. This causes the strange error messages. Removing this will allow the configure script to be called correctly. -- Alex http://samesame.kruijff.org/ From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 01:07:53 2009 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 0F61B1065674 for ; Wed, 24 Jun 2009 01:07:53 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by mx1.freebsd.org (Postfix) with ESMTP id BC84E8FC15 for ; Wed, 24 Jun 2009 01:07:52 +0000 (UTC) (envelope-from dillon@apollo.backplane.com) Received: from apollo.backplane.com (localhost [127.0.0.1]) by apollo.backplane.com (8.14.2/8.14.1) with ESMTP id n5O17qhW015113; Tue, 23 Jun 2009 18:07:52 -0700 (PDT) Received: (from dillon@localhost) by apollo.backplane.com (8.14.2/8.13.4/Submit) id n5O17q9j015112; Tue, 23 Jun 2009 18:07:52 -0700 (PDT) Date: Tue, 23 Jun 2009 18:07:52 -0700 (PDT) From: Matthew Dillon Message-Id: <200906240107.n5O17q9j015112@apollo.backplane.com> To: Nirmal Thacker References: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> Cc: freebsd-hackers@freebsd.org Subject: Re: Dump Utility cache efficiency analysis X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 01:07:53 -0000 :Hello : :This is regarding the dump utility cache efficiency analysis post made on :February '07 by Peter Jeremy [ :http://lists.freebsd.org/pipermail/freebsd-hackers/2007-February/019666.html] :and if this project is still open. I would be interested to begin exploring :FreeBSD (and contributing) by starting this project. : :I do have some basic understanding of the problem at hand - to determine if :a unified cache would appeal as a more efficient/elegant solution compared :to the per-process-cache in the Dump utility implementation. I admit I am :new to this list and FreeBSD so I wouldn't be able to determine what the :current implementation is, until I get started. :... I think the cache in the dump utility is still the one I worked up a long time ago. It was a quick and dirty job at the time, and it was never really designed for parallel operation which is probably why it doesn't work so well in that regard. In my opinion, a unified cache would be an excellent improvement. Ultimately dump is an I/O bound process so I don't think we would really need to worry about the minor increases in cpu overhead from the additional locking needed. There are a few issues you will have to consider: * Dump uses a fork model for its children rather then pthreads. You would either have to use the F_*LK fcntl() operations or use a simpler flock() scheme to lock across the children. Alternatively you could change dump over to a pthreads model and use pthreads mutexes, but that would entail a lot more work. Dump was never designed to be threaded. * The general issue with any caching scheme for dump is how much to actually cache per I/O vs the size of the cache. Caching larger amounts of data hits diminishing returns as it also increases seek times and waste (cached data never usde). Caching smaller amounts of data hits diminishing returns as it causes the disk to seek more. Disk drives generally do have a track cache, but they also only typically have 8-16M of cache ram (32M in newer drives, particularly the higher capacity ones). A track is typically about 1-2M (maybe higher now) so it doesn't take much seeking for the drive to blow out its internal track cache. Caching that much data in a single read would probably be detrimental anyway. This also means you do not necessarily want to cache too much linearly-read data, as the disk drive is already doing it for you. Because of all of this it is going to be tough to find cache parameters that work well generally, and the parameters are going to chance drastically based on the amount of cache you specify on the command line and the size of the partition being dumped. -Matt From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 01:48:59 2009 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 144541065670 for ; Wed, 24 Jun 2009 01:48:59 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: from mail-ew0-f212.google.com (mail-ew0-f212.google.com [209.85.219.212]) by mx1.freebsd.org (Postfix) with ESMTP id 92BDD8FC1C for ; Wed, 24 Jun 2009 01:48:58 +0000 (UTC) (envelope-from xorquewasp@googlemail.com) Received: by ewy8 with SMTP id 8so698125ewy.43 for ; Tue, 23 Jun 2009 18:48:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:received:date:from:to:cc :subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to; bh=qhZKQY0uExVTGJgCPLnqfJnMyK2pKLIo0PDOOHwTg5Y=; b=GdX/Do3RSYlFC8l8okMDGxVQ0dTNQsiOZvWxaFi2bQIMAqHsWgwPNhow1oF+tJb7/G paRk/i0QqBz4RMZOylL/tApbNIW04yHiDczxCoz8O9hfAfr8l4RaHxda3+vFytuqyfBp A4yxaqfMgodh4CzE6F37ezVWf4FfKGTgPxbbM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to; b=oZoprRuzX5CXdwnSNeNG85Lga7qJe/2WWn9YhKFfz2LQJHHqw/vWbENuQ79D9gYThL 7Iqy/SSNeVgMAu/gq4hdhVa9O1/INCxj844Wba5JJHhXaRChwr3YvVcbG9CgBX0n7qwx kXszhO90AwDlsOoo7Il9TCVwLl8l63lcV6rj8= Received: by 10.211.179.6 with SMTP id g6mr786198ebp.68.1245808137516; Tue, 23 Jun 2009 18:48:57 -0700 (PDT) Received: from logik.internal.network (geeshaulage.lcdsl.co.uk [62.249.247.223]) by mx.google.com with ESMTPS id 2sm1419627ewy.86.2009.06.23.18.48.56 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 23 Jun 2009 18:48:57 -0700 (PDT) Received: by logik.internal.network (Postfix, from userid 11001) id C28935D59; Wed, 24 Jun 2009 01:48:55 +0000 (UTC) Date: Wed, 24 Jun 2009 02:48:55 +0100 From: xorquewasp@googlemail.com To: Marcus Reid Message-ID: <20090624014855.GB79749@logik.internal.network> References: <20090623003117.GA94466@logik.internal.network> <20090623050707.GB21349@logik.internal.network> <20090624004726.GA25475@blazingdot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090624004726.GA25475@blazingdot.com> Cc: freebsd-hackers@freebsd.org Subject: Re: ZFS filesystem not showing total size? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 01:48:59 -0000 On 2009-06-23 17:47:26, Marcus Reid wrote: > Hi, > > As a side note, freebsd-hackers is not the correct list for this question. I considered it a hackers@ question due to the large "ZFS is an experimental feature" warning. xw From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 07:52:05 2009 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 304D31065670 for ; Wed, 24 Jun 2009 07:52:05 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.16.84]) by mx1.freebsd.org (Postfix) with ESMTP id DCB208FC14 for ; Wed, 24 Jun 2009 07:52:04 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by kabab.cs.huji.ac.il with esmtp id 1MJNH1-000HXd-6E; Wed, 24 Jun 2009 10:52:03 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: Nirmal Thacker In-reply-to: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> References: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> Comments: In-reply-to Nirmal Thacker message dated "Tue, 23 Jun 2009 15:52:04 -0400." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 24 Jun 2009 10:52:03 +0300 From: Danny Braniss Message-ID: Cc: freebsd-hackers@freebsd.org Subject: Re: Dump Utility cache efficiency analysis X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 07:52:05 -0000 > Hello > > This is regarding the dump utility cache efficiency analysis post made on > February '07 by Peter Jeremy [ > http://lists.freebsd.org/pipermail/freebsd-hackers/2007-February/019666.html] > and if this project is still open. I would be interested to begin exploring > FreeBSD (and contributing) by starting this project. > > I do have some basic understanding of the problem at hand - to determine if > a unified cache would appeal as a more efficient/elegant solution compared > to the per-process-cache in the Dump utility implementation. I admit I am > new to this list and FreeBSD so I wouldn't be able to determine what the > current implementation is, until I get started. > > I would first like to understand the opinions of anyone who has looked at > this problem or think this would be a worthwhile project to start off with. > > I would also appreciate if I could get simple tips and pointers of setting > up my machine for the project. I understand this would be on the lines of: > > 1. Installing a stable FreeBSD build > 2. Check out a version of the Build suitable for the project > 3. Pointers to begin studying the current implementation in the code-tree > structure (would I expect it to lie in the fs/ directory?). I tried to find > it in the FreeBSD cross reference (http://fxr.watson.org/) > 4. Read some important sections of the developer handbook (some suggestions > would be great) > > Lastly- does this project require the know-how's of device drivers? If so, I > would have to work harder. > short answer: you don't need driver knowledge, but fs is a must. long answer: In the days long gone, the cpu/disk where slower than the tape, which could 'stream', and unless you could provide data fast enough, the tape would stop, rewind some, then pick up speed, and write. Nowadays, tapes are slower, but some/most of us dump to file, or pipe to restore (dump -f - ... | restore rf -), so that the tape speed is irrelevant. On the other hand, computers have much more memory, so buffering can be done by the OS. What I'm trying to say, and not wanting to take out any air from from the sails, is that dump should be re-valuated, and maybe OpenBSD/KIS is the best. danny > Thanks a lot! > > - nirmal > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 07:58:16 2009 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 163CC106564A for ; Wed, 24 Jun 2009 07:58:16 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail10.syd.optusnet.com.au (mail10.syd.optusnet.com.au [211.29.132.191]) by mx1.freebsd.org (Postfix) with ESMTP id 944888FC18 for ; Wed, 24 Jun 2009 07:58:15 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from server.vk2pj.dyndns.org (c122-106-216-167.belrs3.nsw.optusnet.com.au [122.106.216.167]) by mail10.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n5O7wCCP027074 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jun 2009 17:58:12 +1000 X-Bogosity: Ham, spamicity=0.000000 Received: from server.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by server.vk2pj.dyndns.org (8.14.3/8.14.3) with ESMTP id n5O7wBS8000602; Wed, 24 Jun 2009 17:58:11 +1000 (EST) (envelope-from peter@server.vk2pj.dyndns.org) Received: (from peter@localhost) by server.vk2pj.dyndns.org (8.14.3/8.14.3/Submit) id n5O7wBDl000601; Wed, 24 Jun 2009 17:58:11 +1000 (EST) (envelope-from peter) Date: Wed, 24 Jun 2009 17:58:11 +1000 From: Peter Jeremy To: Nirmal Thacker Message-ID: <20090624075811.GA463@server.vk2pj.dyndns.org> References: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Dxnq1zWXvFF0Q93v" Content-Disposition: inline In-Reply-To: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.19 (2009-01-05) Cc: freebsd-hackers@freebsd.org Subject: Re: Dump Utility cache efficiency analysis X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 07:58:16 -0000 --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2009-Jun-23 15:52:04 -0400, Nirmal Thacker wr= ote: >I would first like to understand the opinions of anyone who has looked at >this problem or think this would be a worthwhile project to start off with. I'm aware of the following references: http://www.mavetju.org/mail/view_message.php?list=3Dfreebsd-hackers&id=3D37= 5676 http://www.mavetju.org/mail/view_thread.php?list=3Dfreebsd-stable&id=3D1335= 519&thread=3Dyes >1. Installing a stable FreeBSD build >2. Check out a version of the Build suitable for the project Any changes will need to apply to FreeBSD -current, though they may be back-ported once tested. This means that you will need a -current system at some point. 8-current is reasonably stable at this point and would be my suggestion. >3. Pointers to begin studying the current implementation in the code-tree >structure (would I expect it to lie in the fs/ directory?). I tried to find >it in the FreeBSD cross reference (http://fxr.watson.org/) The code is in src/sbin/dump. It references various system header files in order to understand the UFS on-disk format. >Lastly- does this project require the know-how's of device drivers? If so,= I >would have to work harder. No. Dump is completely userland. --=20 Peter Jeremy --Dxnq1zWXvFF0Q93v Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpB3JMACgkQ/opHv/APuIdphgCgk9wumoN2rmfcRXvfs9jmSqoz pVkAnj099SHS0+bqFOnLrsiuyLcryQfX =fsEv -----END PGP SIGNATURE----- --Dxnq1zWXvFF0Q93v-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 09:41:53 2009 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 8E879106564A for ; Wed, 24 Jun 2009 09:41:53 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out2.uni-muenster.de (ZIVM-OUT2.UNI-MUENSTER.DE [128.176.192.9]) by mx1.freebsd.org (Postfix) with ESMTP id 231D78FC15 for ; Wed, 24 Jun 2009 09:41:52 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.42,282,1243807200"; d="scan'208";a="216882831" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER01.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay2.uni-muenster.de with ESMTP; 24 Jun 2009 11:41:52 +0200 Received: by ZIVMAILUSER01.UNI-MUENSTER.DE (Postfix, from userid 149459) id 297031B0763; Wed, 24 Jun 2009 11:41:52 +0200 (CEST) Date: Wed, 24 Jun 2009 11:41:51 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Wojciech Puchar , Julian Elischer Message-ID: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: small usr.bin/find patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 09:41:53 -0000 hmmm...but dd e.g. uses lowercase instead of upercase letters to indicate kilobyte, megabyte and so on. isn't there some unix/posix/whatever standard telling app developers what to use? Wojciech Puchar schrieb am 2009-06-17: > >>cheers. > >Are you sure this is wise? after all 125 millibytes would be 1 bit.. > Agree. While lots of people use m instead of M and b instead of B, > this is not right to correct proper behavior to improper just for > them. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 10:31:41 2009 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 499B81065673 for ; Wed, 24 Jun 2009 10:31:41 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (gate6.infracaninophile.co.uk [IPv6:2001:8b0:151:1::1]) by mx1.freebsd.org (Postfix) with ESMTP id B98838FC0A for ; Wed, 24 Jun 2009 10:31:40 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from significant-gravitas-shortfall.thebunker.net (gateway.ash.thebunker.net [213.129.64.4]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.3/8.14.3) with ESMTP id n5OAVMP7017884 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Jun 2009 11:31:27 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: Sendmail DKIM Filter v2.8.3 smtp.infracaninophile.co.uk n5OAVMP7017884 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=infracaninophile.co.uk; s=200708; t=1245839488; bh=Fb9BVItfYRmhlggWq36krOBmrwzNPp6w5tY6Y7BNya8=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Cc:Content-Type:Date:From:In-Reply-To: Message-ID:Mime-Version:References:To; z=Message-ID:=20<4A420073.6060405@infracaninophile.co.uk>|Date:=20W ed,=2024=20Jun=202009=2011:31:15=20+0100|From:=20Matthew=20Seaman= 20|Organization:=20Infracaninophi le|User-Agent:=20Thunderbird=202.0.0.22=20(X11/20090624)|MIME-Vers ion:=201.0|To:=20Alexander=20Best=20|CC:=20Wojciech=20Puchar=20,=20 =0D=0A=20Julian=20Elischer=20,=0D=0A=20freebs d-hackers@freebsd.org|Subject:=20Re:=20small=20usr.bin/find=20patc h|References:=20|In-Reply-To:=20|X-Enigmail-Ve rsion:=200.95.7|OpenPGP:=20id=3D60AE908C|Content-Type:=20multipart /signed=3B=20micalg=3Dpgp-sha1=3B=0D=0A=20protocol=3D"application/ pgp-signature"=3B=0D=0A=20boundary=3D"------------enig2E256E8A5CC0 367E058D39F3"; b=tD2gqTyuNEfZcH2Qp1P7EOqtFguFOCRWFGOmdtzJ46MyiQro45coBl8yclFcrpESL eMnlks29xR6UCEj/OHltZmqydr0YXmlMmWnCaNcxse/QlrrITPK1aoXEbQLabEY5oJ jc1RTA40qvA8+Vr9QZ1pwgkZ+cj6KxGrMDCdyXcI= X-Authentication-Warning: happy-idiot-talk.infracaninophile.co.uk: Host gateway.ash.thebunker.net [213.129.64.4] claimed to be significant-gravitas-shortfall.thebunker.net Message-ID: <4A420073.6060405@infracaninophile.co.uk> Date: Wed, 24 Jun 2009 11:31:15 +0100 From: Matthew Seaman Organization: Infracaninophile User-Agent: Thunderbird 2.0.0.22 (X11/20090624) MIME-Version: 1.0 To: Alexander Best References: In-Reply-To: X-Enigmail-Version: 0.95.7 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig2E256E8A5CC0367E058D39F3" X-Virus-Scanned: clamav-milter 0.95.2 at happy-idiot-talk.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VERIFIED,SPF_FAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on happy-idiot-talk.infracaninophile.co.uk Cc: Wojciech Puchar , Julian Elischer , freebsd-hackers@freebsd.org Subject: Re: small usr.bin/find patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 10:31:41 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig2E256E8A5CC0367E058D39F3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Alexander Best wrote: > hmmm...but dd e.g. uses lowercase instead of upercase letters to indica= te > kilobyte, megabyte and so on. isn't there some unix/posix/whatever stan= dard > telling app developers what to use? Sure. The standard for scale-prefixes is defined by the Systeme Internationale as part of the definition of SI units: http://www.npl.co.uk/reference/measurement-units/si-prefixes/ Note that these are strictly powers-of-10^3 multipliers, and explicitly not the computing style powers-of-2^10 commonly used for file sizes or hard drive capacities, which should instead use the somewhat clunky Ki, Mi, Gi etc. forms: http://physics.nist.gov/cuu/Units/binary.html These binary prefixes are mandated by the IEC and approved by the IEEE amongst others. Not that many people use the binary prefixes appropriately, relying on context to disambiguate 1 MB =3D 1024 KB =3D 1,048,576 Bytes etc. Except= that (confusingly) as a measure of network bandwidth 10 Mb/s always was 10,000,000 b/s and never 10,485,760 b/s; a fact that has caught me out more than a few times. Making find(1) / dd(1) / etc. operate pedantically correctly with these scale-factor symbols would cause a certain degree of pain for little practical gain. Unless there was a broad consensus amongst all Unixoid OS providers, I can't see that change ever happening. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. Flat 3 7 Priory Courtyard PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW, UK --------------enig2E256E8A5CC0367E058D39F3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkpCAHkACgkQ3jDkPpsZ+Vbk2QCfTy+bY7J+xLQqPLPuS13EyGqJ U/0AnicsyrN5dYfq6XqtKJJWpYOJWmmt =0BN+ -----END PGP SIGNATURE----- --------------enig2E256E8A5CC0367E058D39F3-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 10:33:29 2009 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 79C901065673 for ; Wed, 24 Jun 2009 10:33:29 +0000 (UTC) (envelope-from johans@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id 2D3948FC20 for ; Wed, 24 Jun 2009 10:33:29 +0000 (UTC) (envelope-from johans@stack.nl) Received: by mx1.stack.nl (Postfix, from userid 65534) id 8882D35994C; Wed, 24 Jun 2009 12:33:28 +0200 (CEST) X-Spam-DCC: EATSERVER: scanner01.stack.nl 1166; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on scanner01.stack.nl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Relay-Country: _RELAYCOUNTRY_ Received: from mud.stack.nl (mud.stack.nl [IPv6:2001:610:1108:5011:230:48ff:fe12:2794]) by mx1.stack.nl (Postfix) with ESMTP id BBCF7359942 for ; Wed, 24 Jun 2009 12:33:26 +0200 (CEST) Received: by mud.stack.nl (Postfix, from userid 801) id AE6CE1144A; Wed, 24 Jun 2009 12:33:26 +0200 (CEST) Resent-From: johans@stack.nl Resent-Date: Wed, 24 Jun 2009 12:33:26 +0200 Resent-Message-ID: <20090624103326.GA88122@mud.stack.nl> Resent-To: freebsd-hackers@freebsd.org Date: Wed, 24 Jun 2009 11:50:00 +0200 From: Johan van Selst To: Alexander Best Message-ID: <20090624095000.GA85397@mud.stack.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-14) Cc: Wojciech Puchar , Julian Elischer , freebsd-hackers@freebsd.org Subject: Re: small usr.bin/find patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 10:33:29 -0000 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Alexander Best wrote: > hmmm...but dd e.g. uses lowercase instead of upercase letters to indicate > kilobyte, megabyte and so on. isn't there some unix/posix/whatever standard > telling app developers what to use? It might be appropriate to use expand_number() here. This is what some other tools do as well and consistency between tools is "a nice thing". Ciao, Johan --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iEYEAREIAAYFAkpB9sgACgkQaOElK32lxTvXqQCfQtpXdCz28C2PisSoOOwjYWQL k/sAn0+uQcs8x+ot2ZXWezBYh0L6eB2J =dSa7 -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 06:05:58 2009 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 5D612106567C for ; Wed, 24 Jun 2009 06:05:58 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 16E248FC16 for ; Wed, 24 Jun 2009 06:05:58 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (pD9E2C91C.dip.t-dialin.net [217.226.201.28]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id D4FCE844020; Wed, 24 Jun 2009 07:48:40 +0200 (CEST) Received: from unknown (unknown [192.168.2.1]) by outgoing.leidinger.net (Postfix) with ESMTP id ACAB81A63C3; Wed, 24 Jun 2009 07:48:37 +0200 (CEST) Date: Wed, 24 Jun 2009 07:48:34 +0200 From: Alexander Leidinger To: Nirmal Thacker Message-ID: <20090624074834.00005bd9@unknown> In-Reply-To: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> References: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.10.13; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: D4FCE844020.A66A6 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.44, required 6, autolearn=disabled, ALL_TRUSTED -1.44) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1246427321.77905@vStNubBu7gxwfz0lRN7SwQ X-EBL-Spam-Status: No X-Mailman-Approved-At: Wed, 24 Jun 2009 13:13:34 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Dump Utility cache efficiency analysis X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 06:05:58 -0000 On Tue, 23 Jun 2009 15:52:04 -0400 Nirmal Thacker wrote: > I would also appreciate if I could get simple tips and pointers of > setting up my machine for the project. I understand this would be on > the lines of: > > 1. Installing a stable FreeBSD build > 2. Check out a version of the Build suitable for the project All development is taking place in -CURRENT, so you would have to check out this one, or you install it right away, it's not declared stable yet, but as we have started the release management process for 8.0, it's not that unstable either... :) > 3. Pointers to begin studying the current implementation in the > code-tree structure (would I expect it to lie in the fs/ directory?). > I tried to find it in the FreeBSD cross reference > (http://fxr.watson.org/) 4. Read some important sections of the > developer handbook (some suggestions would be great) Dump is a complete userland implementation. All you need to know is the userland programming stuff, specially for what you want to do. You can find it online at http://svnweb.freebsd.org/viewvc/base/head/sbin/dump/ Bye, Alexander. From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 09:50:04 2009 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 293D11065675 for ; Wed, 24 Jun 2009 09:50:04 +0000 (UTC) (envelope-from johans@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id D288F8FC1C for ; Wed, 24 Jun 2009 09:50:03 +0000 (UTC) (envelope-from johans@stack.nl) Received: by mx1.stack.nl (Postfix, from userid 65534) id D12C335994C; Wed, 24 Jun 2009 11:50:02 +0200 (CEST) X-Spam-DCC: dcc1: scanner01.stack.nl 1182; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on scanner01.stack.nl X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Relay-Country: _RELAYCOUNTRY_ Received: from mud.stack.nl (mud.stack.nl [IPv6:2001:610:1108:5011:230:48ff:fe12:2794]) by mx1.stack.nl (Postfix) with ESMTP id DE822359942; Wed, 24 Jun 2009 11:50:00 +0200 (CEST) Received: by mud.stack.nl (Postfix, from userid 801) id D3A141144A; Wed, 24 Jun 2009 11:50:00 +0200 (CEST) Date: Wed, 24 Jun 2009 11:50:00 +0200 From: Johan van Selst To: Alexander Best Message-ID: <20090624095000.GA85397@mud.stack.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.19 (2009-01-14) X-Mailman-Approved-At: Wed, 24 Jun 2009 13:13:51 +0000 Cc: Wojciech Puchar , Julian Elischer , freebsd-hackers@freebsd.org Subject: Re: small usr.bin/find patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 09:50:04 -0000 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Alexander Best wrote: > hmmm...but dd e.g. uses lowercase instead of upercase letters to indicate > kilobyte, megabyte and so on. isn't there some unix/posix/whatever standard > telling app developers what to use? It might be appropriate to use expand_number() here. This is what some other tools do as well and consistency between tools is "a nice thing". Ciao, Johan --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- iEYEAREIAAYFAkpB9sgACgkQaOElK32lxTvXqQCfQtpXdCz28C2PisSoOOwjYWQL k/sAn0+uQcs8x+ot2ZXWezBYh0L6eB2J =dSa7 -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 12:17:02 2009 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 8B4781065670 for ; Wed, 24 Jun 2009 12:17:02 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mx1.freebsd.org (Postfix) with ESMTP id 4A42A8FC0A for ; Wed, 24 Jun 2009 12:17:01 +0000 (UTC) (envelope-from lars.engels@0x20.net) Received: from mail.0x20.net (mail.0x20.net [217.69.67.217]) by mail.0x20.net (Postfix) with ESMTP id 87302398B1 for ; Wed, 24 Jun 2009 13:57:17 +0200 (CEST) Received: from i011-63.fin-nrw.de (i011-63.fin-nrw.de [193.109.238.130]) by 0x20.net (Horde MIME library) with HTTP; Wed, 24 Jun 2009 13:57:17 +0200 Message-ID: <20090624135717.j7wnshs43oog4gwo@0x20.net> X-Priority: 3 (Normal) Date: Wed, 24 Jun 2009 13:57:17 +0200 From: Lars Engels To: freebsd-hackers@freebsd.org References: In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=_35q2bft8m9a8"; protocol="application/pgp-signature"; micalg="pgp-sha1" Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) X-Mailman-Approved-At: Wed, 24 Jun 2009 13:14:02 +0000 Subject: Re: small usr.bin/find patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Jun 2009 12:17:02 -0000 This message is in MIME format and has been PGP signed. --=_35q2bft8m9a8 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit Quoting Alexander Best : > hmmm...but dd e.g. uses lowercase instead of upercase letters to indicate > kilobyte, megabyte and so on. isn't there some unix/posix/whatever standard > telling app developers what to use? > Actually thats only BSD's dd. GNU dd only accepts uppercase letters. --=_35q2bft8m9a8 Content-Type: application/pgp-signature Content-Description: PGP Digital Signature Content-Disposition: inline Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkpCFJ0ACgkQKc512sD3afh7igCgltuKKqsRuQcAYlpO0GSA6XIT NQ8An26j+PE6qBx7FsfRWzl7qK5q9e4E =CVT7 -----END PGP SIGNATURE----- --=_35q2bft8m9a8-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 17:06:53 2009 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 248EE106564A for ; Wed, 24 Jun 2009 17:06:53 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: from iron2.pdx.net (iron2.pdx.net [69.64.224.71]) by mx1.freebsd.org (Postfix) with ESMTP id 0A6B28FC20 for ; Wed, 24 Jun 2009 17:06:52 +0000 (UTC) (envelope-from sean.bruno@dsl-only.net) Received: (qmail 14373 invoked from network); 24 Jun 2009 09:40:11 -0700 Received: from host-240-244.pubnet.pdx.edu (HELO ?131.252.240.244?) (131.252.240.244) by iron2.pdx.net with (DHE-RSA-AES256-SHA encrypted) SMTP; 24 Jun 2009 09:40:11 -0700 From: Sean Bruno To: freebsd-hackers@freebsd.org Content-Type: text/plain Date: Wed, 24 Jun 2009 09:40:12 -0700 Message-Id: <1245861612.3381.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.24.5 (2.24.5-1.fc10) Content-Transfer-Encoding: 7bit Subject: 8 week projects X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 17:06:53 -0000 My open source class this summer has a lot of people in it looking for 8 week projects. If you have a decently spec'd out project that a Junior/Senior CS student can accomplish, send me a link or pointer to it and I'll see if I can get the project some attention. Sean From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 17:59:10 2009 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 73B01106564A for ; Wed, 24 Jun 2009 17:59:10 +0000 (UTC) (envelope-from thacker.nirmal@gmail.com) Received: from mail-qy0-f186.google.com (mail-qy0-f186.google.com [209.85.221.186]) by mx1.freebsd.org (Postfix) with ESMTP id 27E528FC0A for ; Wed, 24 Jun 2009 17:59:10 +0000 (UTC) (envelope-from thacker.nirmal@gmail.com) Received: by qyk16 with SMTP id 16so1205843qyk.3 for ; Wed, 24 Jun 2009 10:59:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=jHt1LlUFog/BUMjgkC/YkMe071frStjCQVQb+jILAAw=; b=sXtfQvfBNN5LIwj0srBxUClCDG6CWow9GQpembRqlGsKsdbJvWMmxVhx/qLhuY1Jlm Rn44xxIBWjllY+NN9lWQGKSncUGcsZUUQEO8knfgWGn56cbQ34YxxCSMwueQFKf8sA1A oY8JqRBBu+gQo1hrucC/o44CciqZUeoGkLjkw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=SuLdmptkFD+l7ZxXTe3//PoXTVqM+eaiIkYjxiy9dHSoYM8yszmVWv9Zo+FXMWcyRW RaQtZ9VCcPiHCsLKckP2YImD1qAi9+7W3uQ7/CMVA5qUKxdifGfEwIL4YMTnmxS/2v8o BzQGac0QJBLz/BGTzKbQhVNrj4ZwJqvLfqBv0= MIME-Version: 1.0 Received: by 10.220.96.213 with SMTP id i21mr1757448vcn.104.1245866347970; Wed, 24 Jun 2009 10:59:07 -0700 (PDT) In-Reply-To: <20090624075811.GA463@server.vk2pj.dyndns.org> References: <87429ffe0906231252j7c84489dt6ebd60333654f411@mail.gmail.com> <20090624075811.GA463@server.vk2pj.dyndns.org> Date: Wed, 24 Jun 2009 13:59:07 -0400 Message-ID: <87429ffe0906241059x5e2d083bo626d4ba0c9b1cd44@mail.gmail.com> From: Nirmal Thacker To: Peter Jeremy Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Dump Utility cache efficiency analysis X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 17:59:10 -0000 Thanks for all the replies and suggestions I ll begin by running, benchmarking, understanding dump for myself and take up Matt's suggestions above to understand the unified caching implementation in more detail -n On Wed, Jun 24, 2009 at 3:58 AM, Peter Jeremy wrote: > On 2009-Jun-23 15:52:04 -0400, Nirmal Thacker > wrote: > >I would first like to understand the opinions of anyone who has looked at > >this problem or think this would be a worthwhile project to start off > with. > > I'm aware of the following references: > http://www.mavetju.org/mail/view_message.php?list=freebsd-hackers&id=375676 > > http://www.mavetju.org/mail/view_thread.php?list=freebsd-stable&id=1335519&thread=yes > > >1. Installing a stable FreeBSD build > >2. Check out a version of the Build suitable for the project > > Any changes will need to apply to FreeBSD -current, though they may be > back-ported once tested. This means that you will need a -current > system at some point. 8-current is reasonably stable at this point and > would be my suggestion. > > >3. Pointers to begin studying the current implementation in the code-tree > >structure (would I expect it to lie in the fs/ directory?). I tried to > find > >it in the FreeBSD cross reference (http://fxr.watson.org/) > > The code is in src/sbin/dump. It references various system header > files in order to understand the UFS on-disk format. > > >Lastly- does this project require the know-how's of device drivers? If so, > I > >would have to work harder. > > No. Dump is completely userland. > > -- > Peter Jeremy > From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 24 22:11:26 2009 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 92037106566C for ; Wed, 24 Jun 2009 22:11:26 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by mx1.freebsd.org (Postfix) with ESMTP id 1AAE28FC0A for ; Wed, 24 Jun 2009 22:11:25 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: by ewy9 with SMTP id 9so357754ewy.43 for ; Wed, 24 Jun 2009 15:11:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:references:subject :date:message-id:mime-version:content-type:content-transfer-encoding :x-mailer:in-reply-to:x-mimeole:thread-index; bh=ipPCvtVY78Y8B+NSwNOT9m1chSgyE8Tb5sJmZ+u3ZYM=; b=oqAlWeZMfjSGhv2pSqGmD1wpaD+gyZScaqakcUj2gPJgv6zrUfzhVG19SyX5N1NSQr R+2KFMjZ9qcYKMxRMzCAKJr6z0eQMtOyXzoCnpMFivLszpZv+2/8sXl9lP9cJQj6M/O6 YiojKDW427c4Jt7P6BHpGhJRlGDZCD5hIa4nw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:references:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:in-reply-to :x-mimeole:thread-index; b=GDOSSGKPyoK9RA4Hu1bQfvteLfO3QYrpOB8yy8EVueoXJCucvTaiA8caB385ShlB8d gRjuAvpPiVxQcN1lcGMSXJSoAKj46sufKvzW6JNUqv7kZJUuSDwSKqVV5KEGZcsVQ7qW BZ+IMlEcleP/uG84Ib5nunxZsZ/Ky4L0x35GQ= Received: by 10.210.17.2 with SMTP id 2mr104256ebq.64.1245881483523; Wed, 24 Jun 2009 15:11:23 -0700 (PDT) Received: from LTPCSCOTT (astondb9.plus.com [84.92.30.161]) by mx.google.com with ESMTPS id 26sm1486404ewy.11.2009.06.24.15.11.22 (version=SSLv3 cipher=RC4-MD5); Wed, 24 Jun 2009 15:11:22 -0700 (PDT) From: krad To: , References: <20090623032742.M54551@ezo.net> Date: Wed, 24 Jun 2009 23:11:21 +0100 Message-ID: <2C153FCDAC3B43BDADDD1B28CED80036@uk.tiscali.intl> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20090623032742.M54551@ezo.net> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcnzvpoDudfoGS8mSQaUk/nwDX4J3QBWXZ4g X-Mailman-Approved-At: Wed, 24 Jun 2009 23:39:20 +0000 Cc: Subject: RE: dd copy of FreeBSD-7.2 won't boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 24 Jun 2009 22:11:26 -0000 Personally id stay away from dd. Create the partitions and file systems manually, and install the boot loader, then rsync the data across. It will be a lot faster in most cases, as unlike dd you wont be copying unused space. Something like this should do the job Rsync -aPH --exclude=/mnt/** / /mnt I'm assuming you weren't migrating due to a bad disk -----Original Message----- From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd-hackers@freebsd.org] On Behalf Of Jim Flowers Sent: 23 June 2009 05:55 To: freebsd-hackers@freebsd.org Subject: dd copy of FreeBSD-7.2 won't boot I have a remote server that was dd copied from one hard drive to another - essentially the same size. The disk device name (ad4) is the same but the geometry for the new drive has a CHS of 969021/16/63 On booting it hangs at: F1 FreeBSD Boot: F1 I copied the MBR with 'boot0cfg -B -opacket ad4' just to be sure but no joy. fbsd fdisk reports start 63, with CHS beg: 0/1/1 end: 1023/15/63. Any help on direction to solve this? Thanks. -- Jim Flowers _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 25 09:19:21 2009 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 C40261065672 for ; Thu, 25 Jun 2009 09:19:21 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id 38ACC8FC15 for ; Thu, 25 Jun 2009 09:19:21 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from vhoffman.lon.namesco.net (150.117-84-212.staticip.namesco.net [212.84.117.150]) (authenticated bits=0) by unsane.co.uk (8.14.3/8.14.0) with ESMTP id n5P9LFis068614 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 25 Jun 2009 10:21:17 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4A434109.3000107@unsane.co.uk> Date: Thu, 25 Jun 2009 10:19:05 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-GB; rv:1.9.1b3pre) Gecko/20081204 Thunderbird/3.0b1 MIME-Version: 1.0 To: Sean Bruno References: <1245861612.3381.6.camel@localhost.localdomain> In-Reply-To: <1245861612.3381.6.camel@localhost.localdomain> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: 8 week projects X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 09:19:22 -0000 On 24/6/09 17:40, Sean Bruno wrote: > My open source class this summer has a lot of people in it looking for 8 > week projects. > > If you have a decently spec'd out project that a Junior/Senior CS > student can accomplish, send me a link or pointer to it and I'll see if > I can get the project some attention. > > Dont know about decently spec'd but http://www.freebsd.org/projects/ideas/ has a bunch of ideas if thats any help. Vince > Sean > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 25 12:15:52 2009 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 37A4A106564A for ; Thu, 25 Jun 2009 12:15:52 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out2.uni-muenster.de (ZIVM-OUT2.UNI-MUENSTER.DE [128.176.192.9]) by mx1.freebsd.org (Postfix) with ESMTP id BD5D68FC0A for ; Thu, 25 Jun 2009 12:15:50 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.42,290,1243807200"; d="scan'208";a="217027501" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER03.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay2.uni-muenster.de with ESMTP; 25 Jun 2009 14:15:49 +0200 Received: by ZIVMAILUSER03.UNI-MUENSTER.DE (Postfix, from userid 149459) id 8B5BF1B075E; Thu, 25 Jun 2009 14:15:49 +0200 (CEST) Date: Thu, 25 Jun 2009 14:15:49 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Matthew Seaman Message-ID: In-Reply-To: <4A420073.6060405@infracaninophile.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Wojciech Puchar , Julian Elischer , freebsd-hackers@freebsd.org Subject: Re: small usr.bin/find patch X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 12:15:52 -0000 wow. thanks a bunch for all the great info. Matthew Seaman schrieb am 2009-06-24: > Alexander Best wrote: > > hmmm...but dd e.g. uses lowercase instead of upercase letters to > > indicate > > kilobyte, megabyte and so on. isn't there some unix/posix/whatever > > standard > > telling app developers what to use? > Sure. The standard for scale-prefixes is defined by the Systeme > Internationale as part of the definition of SI units: > http://www.npl.co.uk/reference/measurement-units/si-prefixes/ > Note that these are strictly powers-of-10^3 multipliers, and > explicitly > not the computing style powers-of-2^10 commonly used for file sizes > or > hard drive capacities, which should instead use the somewhat clunky > Ki, > Mi, Gi etc. forms: > http://physics.nist.gov/cuu/Units/binary.html > These binary prefixes are mandated by the IEC and approved by the > IEEE > amongst others. > Not that many people use the binary prefixes appropriately, relying > on > context to disambiguate 1 MB = 1024 KB = 1,048,576 Bytes etc. Except > that (confusingly) as a measure of network bandwidth 10 Mb/s always > was > 10,000,000 b/s and never 10,485,760 b/s; a fact that has caught me > out > more than a few times. > Making find(1) / dd(1) / etc. operate pedantically correctly with > these > scale-factor symbols would cause a certain degree of pain for little > practical gain. Unless there was a broad consensus amongst all > Unixoid > OS providers, I can't see that change ever happening. > Cheers, > Matthew From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 25 05:32:20 2009 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 951701065672 for ; Thu, 25 Jun 2009 05:32:20 +0000 (UTC) (envelope-from James.McPherson@Sun.COM) Received: from sineb-mail-2.sun.com (sineb-mail-2.sun.com [192.18.19.7]) by mx1.freebsd.org (Postfix) with ESMTP id 1D4438FC1B for ; Thu, 25 Jun 2009 05:32:19 +0000 (UTC) (envelope-from James.McPherson@Sun.COM) Received: from fe-apac-05.sun.com (fe-apac-05.sun.com [192.18.19.176] (may be forged)) by sineb-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id n5P5W6AN025581 for ; Thu, 25 Jun 2009 05:32:18 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII Received: from conversion-daemon.mail-apac.sun.com by mail-apac.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) id <0KLS008004JOYI00@mail-apac.sun.com> for hackers@freebsd.org; Thu, 25 Jun 2009 13:32:06 +0800 (SGT) Received: from blinder ([unknown] [220.157.71.44]) by mail-apac.sun.com (Sun Java(tm) System Messaging Server 7u2-7.02 64bit (built Apr 16 2009)) with ESMTPSA id <0KLS007O94PBO9H0@mail-apac.sun.com>; Thu, 25 Jun 2009 13:32:05 +0800 (SGT) Date: Thu, 25 Jun 2009 15:31:51 +1000 From: "James C. McPherson" Sender: James.McPherson@Sun.COM To: Undisclosed recipients: ; Message-id: <20090625153151.00002b15@blinder> Organization: Sun Microsystems X-Mailer: Claws Mail 3.7.0 (GTK+ 2.16.1; i386-pc-solaris2.11) X-Mailman-Approved-At: Thu, 25 Jun 2009 14:05:02 +0000 Subject: Another reason to register and attend Kernel Conference Australia X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 05:32:20 -0000 Hello everybody, If you were still in need of a reason to come to Kernel Conference Australia, how about this: Brendan Gregg, author of the DTraceToolkit and member of the Fishworks team at Sun Microsystems is going to be presenting on DTrace at Kernel Conference Australia. Here's a short bio entry: ------------------------- Brendan Gregg is a staff engineer in the Fishworks group at Sun Microsystems where he works on a wide range of kernel and user-land technologies, especially those related to performance. He is the creator of the DTraceToolkit and is the co-author of "Solaris Performance and Tools". His recent projects include writing the DTrace IP provider, the Fishworks BUI dashboard, and the ZFS L2ARC. Brendan has previously worked as a system administrator, Sun instructor and consultant in the Asia-Pacific region, and was based in Sydney, Australia. He is currently living in San Francisco, California, where he misses cricket and rugby on TV. http://blogs.sun.com/brendan http://blogs.sun.com/fishworks ------------------------- So don't delay any longer, seats are limited and running out. It's not just about Sun's technologies, it's about Open Source. Remember - innovation happens _everywhere_ (and DTrace is available on Mac OS X and FreeBSD). If you cannot come along, please make sure that our customers know about this conference, and strongly encourage them to come. It's rare for Australia to get an opportunity like this, so you and they should make the most of it. Dates: 15 - 17 July Venue: Queensland Brain Institute, University of Queensland Conference homepage http://au.sun.com/sunnews/events/2009/kernel/ Full abstracts http://wikis.sun.com/display/KCA2009/KCA2009+Conference+Agenda Registration page https://www.conveneit.com/secure/sun/kernel_jul_09/ Pricing: Students $95 regular price $300 Corporate pricing $195 per person (please talk with Gabriele DeCelis directly) I look forward to seeing you at Kernel Conference Australia. Best regards, James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog Kernel Conference Australia - http://au.sun.com/sunnews/events/2009/kernel From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 25 15:49:53 2009 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 24B00106564A for ; Thu, 25 Jun 2009 15:49:53 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 9EB498FC0C for ; Thu, 25 Jun 2009 15:49:52 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: (qmail 4481 invoked from network); 25 Jun 2009 10:49:51 -0500 Received: from keira.kiwi-computer.com (HELO kiwi-computer.com) (63.224.10.3) by hamlet.setfilepointer.com with SMTP; 25 Jun 2009 10:49:51 -0500 Received: (qmail 83622 invoked by uid 2001); 25 Jun 2009 15:49:50 -0000 Date: Thu, 25 Jun 2009 10:49:50 -0500 From: "Rick C. Petty" To: krad Message-ID: <20090625154950.GA83146@keira.kiwi-computer.com> References: <20090623032742.M54551@ezo.net> <2C153FCDAC3B43BDADDD1B28CED80036@uk.tiscali.intl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2C153FCDAC3B43BDADDD1B28CED80036@uk.tiscali.intl> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: dd copy of FreeBSD-7.2 won't boot 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: Thu, 25 Jun 2009 15:49:53 -0000 On Wed, Jun 24, 2009 at 11:11:21PM +0100, krad wrote: > Personally id stay away from dd. Create the partitions and file systems > manually, and install the boot loader, then rsync the data across. It will > be a lot faster in most cases, as unlike dd you wont be copying unused > space. Something like this should do the job I wouldn't say rsync is faster than dd, unless you have a lot of empty space or are migrating across a network. The nice thing about rsync is it if you restart it, it picks up where it left off so to speak. With dd you have to add two arguments. > Rsync -aPH --exclude=/mnt/** / /mnt ^ I often use: rsync -avHSPx / /mnt The "x" means don't cross file system boundaries, which is generally what you want when migrating file systems. > I'm assuming you weren't migrating due to a bad disk Actually using rsync to migrate a bad disk is preferrable over dd (presuming you have no backup), since rsync will skip and warn you aboud bad files, but "dd conv=noerror" could leave you in a bad situation if it skips over critical metadata blocks. I always try rsync first, with the source filesystem mounted read-only, and if that fails I'll fall back to dd. Actually if you have the space and it was a bad disk, I'd probably dd to a new disk or file, then mount that disk or file read-only, and then use rsync. -- Rick C. Petty From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 25 16:10:31 2009 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 D6D31106566C for ; Thu, 25 Jun 2009 16:10:31 +0000 (UTC) (envelope-from joel@FreeBSD.org) Received: from mail.vnode.se (mail.vnode.se [62.119.52.82]) by mx1.freebsd.org (Postfix) with ESMTP id 90D198FC1E for ; Thu, 25 Jun 2009 16:10:31 +0000 (UTC) (envelope-from joel@FreeBSD.org) Received: from iMac.local (pgw.vnode.se [77.110.37.134]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.vnode.se (Postfix) with ESMTPSA id 27C0EE9F42C; Thu, 25 Jun 2009 17:54:23 +0200 (CEST) Message-ID: <4A439DAF.8010400@FreeBSD.org> Date: Thu, 25 Jun 2009 17:54:23 +0200 From: Joel Dahl User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Sean Bruno References: <1245861612.3381.6.camel@localhost.localdomain> In-Reply-To: <1245861612.3381.6.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: 8 week projects X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 16:10:32 -0000 Sean Bruno skrev: > My open source class this summer has a lot of people in it looking for 8 > week projects. > > If you have a decently spec'd out project that a Junior/Senior CS > student can accomplish, send me a link or pointer to it and I'll see if > I can get the project some attention. There are many TODO lists on the wiki (some may be outdated): http://wiki.freebsd.org/Networking http://wiki.freebsd.org/IPv6TODO http://wiki.freebsd.org/BsnmpTODO http://wiki.freebsd.org/Jails http://wiki.freebsd.org/USBTODO http://wiki.freebsd.org/SMPTODO -- Joel From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 25 17:49:46 2009 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 7C90D1065675 for ; Thu, 25 Jun 2009 17:49:46 +0000 (UTC) (envelope-from jflowers@ezo.net) Received: from smtp.ezo.net (mbox2.ezo.net [69.36.15.166]) by mx1.freebsd.org (Postfix) with ESMTP id 57C638FC14 for ; Thu, 25 Jun 2009 17:49:46 +0000 (UTC) (envelope-from jflowers@ezo.net) Received: from ezo.net (localhost [127.0.0.1]) by smtp.ezo.net (Postfix) with ESMTP id B734828502; Thu, 25 Jun 2009 13:50:28 -0400 (EDT) From: "jflowers" To: rick-freebsd2008@kiwi-computer.com,krad Date: Thu, 25 Jun 2009 13:50:28 -0400 Message-Id: <20090625173404.M30669@ezo.net> In-Reply-To: <20090625154950.GA83146@keira.kiwi-computer.com> References: <20090623032742.M54551@ezo.net> <2C153FCDAC3B43BDADDD1B28CED80036@uk.tiscali.intl> <20090625154950.GA83146@keira.kiwi-computer.com> X-Mailer: OpenWebMail 2.52 20060502 X-OriginatingIP: 70.228.71.121 (jflowers@ezo.net) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Cc: freebsd-hackers@freebsd.org Subject: Re: dd copy of FreeBSD-7.2 won't boot X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 17:49:46 -0000 I wound up using kraduk's suggestion except for using a snapshot instead of a live file system. Because the source disk had suffered DMA errors and a few files lost to SOFT UPDATE errors, I built a full system first and then let rsync merge the two. mount -u -o snapshot /snapshot/snap1 / mdconfig -a -t vnode -f /snapshot/snap1 -u 4 mount -r /dev/md4 /mnt mount /dev/ad4s1a /mnt_t rsync -aPH --exclude=usr/dumps/** /mnt/* /mnt_t umount /mnt mdconfig -d -u 4 umount /mnt_t repeated for all partitions (/ /tmp /var /usr). Also had to edit transferred fstab to reflect new device name (ad4) and install a new boot0. mount /dev/ad4s1a /mnt_t vi /mnt_t/etc/fstab umount /mnt_t fdisk -B -b /boot/boot0 /dev/ad4 18 GB took about 20 minutes to complete snapshots and another 25 minutes to transfer via rsync. Thanks for all the help. On Thu, 25 Jun 2009 10:49:50 -0500, Rick C. Petty wrote > On Wed, Jun 24, 2009 at 11:11:21PM +0100, krad wrote: > > Personally id stay away from dd. Create the partitions and file systems > > manually, and install the boot loader, then rsync the data across. It will > > be a lot faster in most cases, as unlike dd you wont be copying unused > > space. Something like this should do the job > > I wouldn't say rsync is faster than dd, unless you have a lot of > empty space or are migrating across a network. The nice thing about > rsync is it if you restart it, it picks up where it left off so to > speak. With dd you have to add two arguments. > > > Rsync -aPH --exclude=/mnt/** / /mnt > ^ > > I often use: > > rsync -avHSPx / /mnt > > The "x" means don't cross file system boundaries, which is generally > what you want when migrating file systems. > > > I'm assuming you weren't migrating due to a bad disk > > Actually using rsync to migrate a bad disk is preferrable over dd > > (presuming you have no backup), since rsync will skip and warn you aboud > bad files, but "dd conv=noerror" could leave you in a bad situation > if it skips over critical metadata blocks. I always try rsync first, > with the source filesystem mounted read-only, and if that fails > I'll fall back to dd. Actually if you have the space and it was a > bad disk, I'd probably dd to a new disk or file, then mount that > disk or file read-only, and then use rsync. > > -- Rick C. Petty > > -- > This message has been scanned for viruses and > dangerous content by MailScanner, and is > believed to be clean. -- Jim Flowers From owner-freebsd-hackers@FreeBSD.ORG Thu Jun 25 22:25:33 2009 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 4B3BC106564A for ; Thu, 25 Jun 2009 22:25:33 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out1.uni-muenster.de (ZIVM-OUT1.UNI-MUENSTER.DE [128.176.192.8]) by mx1.freebsd.org (Postfix) with ESMTP id D454B8FC17 for ; Thu, 25 Jun 2009 22:25:32 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.42,292,1243807200"; d="scan'208";a="275475461" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER01.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay1.uni-muenster.de with ESMTP; 26 Jun 2009 00:25:32 +0200 Received: by ZIVMAILUSER01.UNI-MUENSTER.DE (Postfix, from userid 149459) id DA7C21B0763; Fri, 26 Jun 2009 00:25:31 +0200 (CEST) Date: Fri, 26 Jun 2009 00:25:31 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: linux syscall modify_ldt() returning wrong errno X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jun 2009 22:25:33 -0000 hi there, i'm currently playing a bit with the linux test project (ltp). it seems the linux syscall modify_ldt() isn't implemented correctly. the following code should set errno to ENOSYS, but instead EINVAL is being returned: int main(int ac, char **av) { int lc; /* loop counter */ char *msg; /* message returned from parse_opts */ void *ptr; int retval, func; int flag; int seg[4]; /* parse standard options */ if ((msg = parse_opts(ac, av, (option_t *) NULL, NULL)) != (char *)NULL) { tst_brkm(TBROK, cleanup, "OPTION PARSING ERROR - %s", msg); /*NOTREACHED*/} setup(); /* global setup */ /* The following loop checks looping state if -i option given */ for (lc = 0; TEST_LOOPING(lc); lc++) { /* reset Tst_count in case we are looping */ Tst_count = 0; //block1: /* * Check for ENOSYS. */ tst_resm(TINFO, "Enter block 1"); flag = 0; ptr = (void *)malloc(10); func = 100; retval = modify_ldt(func, ptr, sizeof(ptr)); if (retval < 0) { if (errno != ENOSYS) { tst_resm(TFAIL, "modify_ldt() set invalid " "errno, expected ENOSYS, got: %d", errno); flag = FAILED; } here's the way linux does it: http://fxr.watson.org/fxr/source/arch/x86_64/kernel/ldt.c?v=linux-2.6;im=bigexcerpts#L233 and this is how the syscall was implemented in freebsd: http://fxr.watson.org/fxr/source/i386/linux/linux_machdep.c#L861 here's the modify_ldt() manual: http://linux.about.com/library/cmd/blcmdl2_modify_ldt.htm cheers. oh...and we're talking HEAD of course. ;-) From owner-freebsd-hackers@FreeBSD.ORG Fri Jun 26 14:52:45 2009 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 8D19E1065670 for ; Fri, 26 Jun 2009 14:52:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5F0108FC25 for ; Fri, 26 Jun 2009 14:52:45 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 13E0646B2D; Fri, 26 Jun 2009 10:52:45 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 0D9EB8A086; Fri, 26 Jun 2009 10:52:44 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Fri, 26 Jun 2009 10:33:52 -0400 User-Agent: KMail/1.9.7 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906261033.52478.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Fri, 26 Jun 2009 10:52:44 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Alexander Best Subject: Re: linux syscall modify_ldt() returning wrong errno X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Jun 2009 14:52:45 -0000 On Thursday 25 June 2009 6:25:31 pm Alexander Best wrote: > hi there, > > i'm currently playing a bit with the linux test project (ltp). it seems the > linux syscall modify_ldt() isn't implemented correctly. the following code > should set errno to ENOSYS, but instead EINVAL is being returned: It looks like this should fix it: --- //depot/vendor/freebsd/src/sys/i386/linux/linux_machdep.c 2009/02/18 16:15:14 +++ //depot/user/jhb/acpipci/i386/linux/linux_machdep.c 2009/06/26 14:32:55 @@ -866,9 +866,6 @@ union descriptor desc; int size, written; - if (uap->ptr == NULL) - return (EINVAL); - switch (uap->func) { case 0x00: /* read_ldt */ ldt.start = 0; @@ -911,7 +908,7 @@ error = i386_set_ldt(td, &ldt, &desc); break; default: - error = EINVAL; + error = ENOSYS; break; } -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 27 12:44:56 2009 Return-Path: Delivered-To: hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E10AA1065670; Sat, 27 Jun 2009 12:44:56 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [66.246.138.153]) by mx1.freebsd.org (Postfix) with ESMTP id B7A408FC0C; Sat, 27 Jun 2009 12:44:56 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from tau.draftnet (87-194-158-129.bethere.co.uk [87.194.158.129]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA id 45F6A8AC9; Sat, 27 Jun 2009 12:29:36 +0000 (UTC) Date: Sat, 27 Jun 2009 13:29:41 +0100 From: Bruce Cran To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Message-ID: <20090627132941.5d212017@tau.draftnet> In-Reply-To: <8EB69F68-8ED2-469C-B83E-2555A72630B4@deepcore.dk> References: <8EB69F68-8ED2-469C-B83E-2555A72630B4@deepcore.dk> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; amd64-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: stable@FreeBSD.ORG, hackers@FreeBSD.ORG Subject: Re: ATA driver update for 7.2RELEASE available X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 27 Jun 2009 12:44:57 -0000 On Fri, 26 Jun 2009 22:11:08 +0200 S=F8ren Schmidt wrote: > This is a total replacement of the ATA driver, modulerized as in -=20 > current, but based on my WIP not from what might have happend to -=20 > current since I gave up maintainership. It's great to see the driver be modularised since removing unneeded drivers (for example, on powerpc and embedded platforms) can save ~200KB. Could you add some documentation for the modules in /sys/conf/NOTES please? I looked through the sources and put together the patch for 8.0 which is avaiable at http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/133162 but it sounds like some more drivers will need to be added for 7.2. --=20 Bruce Cran From owner-freebsd-hackers@FreeBSD.ORG Sat Jun 27 20:00:41 2009 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 11671106568A for ; Sat, 27 Jun 2009 20:00:41 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) Received: from zivm-out3.uni-muenster.de (ZIVM-OUT3.UNI-MUENSTER.DE [128.176.192.18]) by mx1.freebsd.org (Postfix) with ESMTP id 9A6808FC14 for ; Sat, 27 Jun 2009 20:00:40 +0000 (UTC) (envelope-from a_best01@uni-muenster.de) X-IronPort-AV: E=Sophos;i="4.42,301,1243807200"; d="scan'208";a="6957222" Received: from zivmaildisp2.uni-muenster.de (HELO ZIVMAILUSER05.UNI-MUENSTER.DE) ([128.176.188.143]) by zivm-relay3.uni-muenster.de with ESMTP; 27 Jun 2009 22:00:38 +0200 Received: by ZIVMAILUSER05.UNI-MUENSTER.DE (Postfix, from userid 149459) id E826C1B07E4; Sat, 27 Jun 2009 22:00:38 +0200 (CEST) Date: Sat, 27 Jun 2009 22:00:38 +0200 (CEST) From: Alexander Best Sender: Organization: Westfaelische Wilhelms-Universitaet Muenster To: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: kdump crashing with linux binaries X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.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, 27 Jun 2009 20:00:41 -0000 hi there, when ktrace is used with a linux binary and one runs kdump afterwards kdump segfaults. there's a problem report here http://www.freebsd.org/cgi/query-pr.cgi?pr=120055 with a patch. of course linux_kdump should be used instead if the regular kdump, but it still would be nice to have this fix in HEAD and get rid of this segfault. could somebody commit this patch please? cheers.