From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 00:17:39 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2C6916A4DD; Sun, 8 May 2005 00:17:39 +0000 (GMT) Received: from freebee.digiware.nl (dsl439.iae.nl [212.61.63.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16DFA43D9F; Sun, 8 May 2005 00:17:38 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from [212.61.27.71] (dual.digiware.nl [212.61.27.71]) by freebee.digiware.nl (8.13.1/8.13.1) with ESMTP id j480HZJR096873; Sun, 8 May 2005 02:17:35 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <427D5AA0.1080609@withagen.nl> Date: Sun, 08 May 2005 02:17:36 +0200 From: Willem Jan Withagen User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> In-Reply-To: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 00:17:39 -0000 Steven Hartland wrote: > I've just finished putting together a new server box spec: > Dual AMD 244, 2GB ram, 5 * Seagate SATA 400GB on a > Highpoint 1820a RAID 5 array. > 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) . > 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) You're only transfering 640M in 2GB of RAM, big chance that you're testing memory/buffercode-speed in stead of testing diskspeed. --WjW From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 11:11:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A5EA16A4E1; Sun, 8 May 2005 11:11:23 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64D5C43D54; Sun, 8 May 2005 11:11:22 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001391795.msg; Sun, 08 May 2005 12:07:01 +0100 Message-ID: <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Willem Jan Withagen" References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> <427D5AA0.1080609@withagen.nl> Date: Sun, 8 May 2005 12:10:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="Windows-1252"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Sun, 08 May 2005 12:07:01 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Sun, 08 May 2005 12:07:03 +0100 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 11:11:23 -0000 If that where the case it would have been it wouldn't have been 46Mb/s it would have been 543Mb/s, just tested it for you :P Steve / K ----- Original Message ----- From: "Willem Jan Withagen" > Steven Hartland wrote: >> I've just finished putting together a new server box spec: >> Dual AMD 244, 2GB ram, 5 * Seagate SATA 400GB on a >> Highpoint 1820a RAID 5 array. > >> 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) > . >> 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) > > You're only transfering 640M in 2GB of RAM, big chance that you're testing > memory/buffercode-speed in stead of testing diskspeed. ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 12:26:02 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07B0416A4E1; Sun, 8 May 2005 12:26:02 +0000 (GMT) Received: from freebee.digiware.nl (dsl439.iae.nl [212.61.63.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9E5243D6A; Sun, 8 May 2005 12:25:59 +0000 (GMT) (envelope-from wjw@digiware.nl) Received: from [212.61.27.74] (beck.digiware.nl [212.61.27.74]) by freebee.digiware.nl (8.13.1/8.13.1) with ESMTP id j48CPouD002322; Sun, 8 May 2005 14:25:51 +0200 (CEST) (envelope-from wjw@digiware.nl) Message-ID: <427E05D2.2060706@digiware.nl> Date: Sun, 08 May 2005 14:28:02 +0200 From: willem jan withagen Organization: Digiware User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: nl, en-us, en MIME-Version: 1.0 To: Steven Hartland References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> <427D5AA0.1080609@withagen.nl> <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> In-Reply-To: <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sun, 08 May 2005 12:28:35 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Willem Jan Withagen Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 12:26:02 -0000 Steven Hartland wrote: > If that where the case it would have been it wouldn't have been > 46Mb/s it would have been 543Mb/s, just tested it for you :P >>> I've just finished putting together a new server box spec: >>> Dual AMD 244, 2GB ram, 5 * Seagate SATA 400GB on a >>> Highpoint 1820a RAID 5 array. >> >> >>> 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) >>> 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) >> >> You're only transfering 640M in 2GB of RAM, big chance that you're >> testing memory/buffercode-speed in stead of testing diskspeed. Still I would argue that if you do not use a write size larger than what you have as real memory, that buffering in real memory is going to play a role.... Other than that I find 50Mb/s is IMHO reasonable high value for a RAID5 in writting. But it would require substantial more organised testing. DD is nothing more than a very crude indication of what to expect in real life. --WjW From owner-freebsd-hackers@FreeBSD.ORG Sat May 7 15:30:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC3F516A4DB for ; Sat, 7 May 2005 15:30:40 +0000 (GMT) Received: from huawei.com (szxga03-in.huawei.com [61.144.161.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id A78FF43D86 for ; Sat, 7 May 2005 15:30:39 +0000 (GMT) (envelope-from chenm@huawei.com) Received: from huawei.com (szxga03-in [172.24.2.9]) by szxga03-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IG4004IZLNG4I@szxga03-in.huawei.com> for freebsd-hackers@freebsd.org; Sat, 07 May 2005 23:28:29 +0800 (CST) Received: from szxml01-in ([172.24.1.3]) by szxga03-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTP id <0IG40040GLNGM0@szxga03-in.huawei.com> for freebsd-hackers@freebsd.org; Sat, 07 May 2005 23:28:28 +0800 (CST) Received: from satan ([219.133.242.125]) by szxml01-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 1.25 (built Mar 3 2004)) with ESMTPA id <0IG400A5TLW84V@szxml01-in.huawei.com> for freebsd-hackers@freebsd.org; Sat, 07 May 2005 23:33:45 +0800 (CST) Date: Sat, 07 May 2005 23:26:43 +0800 From: ChenMing To: freebsd-hackers@freebsd.org Message-id: <0IG400A5VLW94V@szxml01-in.huawei.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Thread-index: AcVSJ14RHTn+OmYnRAuw28sxwUnSRAA33WsgAAQCfjAAAI7vYA== X-Mailman-Approved-At: Sun, 08 May 2005 12:28:56 +0000 Subject: doubt: msgrcv not return EAGAIN? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 May 2005 15:30:40 -0000 hello, hackers. I use following line to recive message from message queue: int ret; ret = msgrcv(msgid, &msg, sizeof(msg), 0, IPC_NOWAIT) if (ret == -1) { if (errno == EAGAIN){ // no message in queue } else{ // here is an error occur } } but it sounds not works as my expected. It never return errno=EAGAIN, however it return errno=ENOMSG instead, but msgrcv manual say its should return EAGAIN. what's wrong? thanks in advanced. From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 13:09:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A76E816A4E2; Sun, 8 May 2005 13:09:34 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4616243D69; Sun, 8 May 2005 13:09:34 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j48DEgud021073; Sun, 8 May 2005 07:14:42 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <427E0F77.50006@samsco.org> Date: Sun, 08 May 2005 07:09:11 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> <427D5AA0.1080609@withagen.nl> <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> In-Reply-To: <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Willem Jan Withagen Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 13:09:34 -0000 Steven Hartland wrote: > If that where the case it would have been it wouldn't have been > 46Mb/s it would have been 543Mb/s, just tested it for you :P The RR1280 cards are really just software RAID cards. All of the parity calculations are done by the CPU. I couldn't find much evidence that the driver has parity routines that are optimized for the CPU, so it's likely doing a very inefficient job at it. Scott From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 14:29:49 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A0A5416A4E4; Sun, 8 May 2005 14:29:49 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7BCA43D6D; Sun, 8 May 2005 14:29:48 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001392399.msg; Sun, 08 May 2005 15:25:43 +0100 Message-ID: <001c01c553da$5554e490$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Scott Long" References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com><427D5AA0.1080609@withagen.nl><002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> <427E0F77.50006@samsco.org> Date: Sun, 8 May 2005 15:29:21 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Sun, 08 May 2005 15:25:43 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Sun, 08 May 2005 15:25:46 +0100 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Willem Jan Withagen Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 14:29:49 -0000 ---- Original Message ----- From: "Scott Long" > Steven Hartland wrote: >> If that where the case it would have been it wouldn't have been >> 46Mb/s it would have been 543Mb/s, just tested it for you :P > > The RR1280 cards are really just software RAID cards. All of the parity > calculations are done by the CPU. I couldn't find much evidence that > the driver has parity routines that are optimized for the CPU, so it's > likely doing a very inefficient job at it. According to the documentation this is not the case and the XOR calcs are done in hardware on the onboard HPT 601. > Changing MAXPHYS is very dangerous, unfortunately. The root of the > problem is that kernel virtual memory (KVA) gets assigned to each I/O > buffer as it passes through the kernel. If we allow too much I/O through > at once then we have the very real possibility of exhausting the kernel > address space and causing a deadlock and/or panic. That is why MAXPHYS > is set so low. Your DD test is unlikely to trigger a problem, but try > doing a bunch of DD's is parallel and you likely will. Thanks for the heads up on this scott I'll do some tests to see that happens. N.B. I'm currently using 256K instead of 128K which has the same performance increase as using 1M. Note: all tests are being done on i386 not AMD64 due to our requirement for i386 Linux emulation which it is my understanding is not available when running AMD64 FreeBSD. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 14:36:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BA3816A4E3; Sun, 8 May 2005 14:36:05 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id C570A43D58; Sun, 8 May 2005 14:36:01 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j48Ef8pb021432; Sun, 8 May 2005 08:41:09 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <427E23BA.7000508@samsco.org> Date: Sun, 08 May 2005 08:35:38 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com><427D5AA0.1080609@withagen.nl><002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> <427E0F77.50006@samsco.org> <001c01c553da$5554e490$b3db87d4@multiplay.co.uk> In-Reply-To: <001c01c553da$5554e490$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Willem Jan Withagen Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 14:36:05 -0000 Steven Hartland wrote: > ---- Original Message ----- From: "Scott Long" > > >> Steven Hartland wrote: >> >>> If that where the case it would have been it wouldn't have been >>> 46Mb/s it would have been 543Mb/s, just tested it for you :P >> >> >> The RR1280 cards are really just software RAID cards. All of the parity >> calculations are done by the CPU. I couldn't find much evidence that >> the driver has parity routines that are optimized for the CPU, so it's >> likely doing a very inefficient job at it. > > > According to the documentation this is not the case and the XOR > calcs are done in hardware on the onboard HPT 601. Maybe I'm confused and we are talking about different cards. > >> Changing MAXPHYS is very dangerous, unfortunately. The root of the >> problem is that kernel virtual memory (KVA) gets assigned to each I/O >> buffer as it passes through the kernel. If we allow too much I/O through >> at once then we have the very real possibility of exhausting the kernel >> address space and causing a deadlock and/or panic. That is why MAXPHYS >> is set so low. Your DD test is unlikely to trigger a problem, but try >> doing a bunch of DD's is parallel and you likely will. > > > Thanks for the heads up on this scott I'll do some tests to see that > happens. > N.B. I'm currently using 256K instead of 128K which has the same > performance increase as using 1M. > Note: all tests are being done on i386 not AMD64 due to our requirement > for i386 Linux emulation which it is my understanding is not available when > running AMD64 FreeBSD. Linux/i386 emulation works quite well on FreeBSD/amd64 and is getting better every day. There is active development on it at the moment. Scott From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 14:37:25 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC80C16A4E3; Sun, 8 May 2005 14:37:25 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16D1F43D46; Sun, 8 May 2005 14:37:25 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001392432.msg; Sun, 08 May 2005 15:33:09 +0100 Message-ID: <002b01c553db$5e167340$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "willem jan withagen" References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> <427D5AA0.1080609@withagen.nl> <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> <427E05D2.2060706@digiware.nl> Date: Sun, 8 May 2005 15:36:45 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Sun, 08 May 2005 15:33:09 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Sun, 08 May 2005 15:33:10 +0100 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Willem Jan Withagen Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 14:37:26 -0000 ----- Original Message ----- From: "willem jan withagen" >> If that where the case it would have been it wouldn't have been >> 46Mb/s it would have been 543Mb/s, just tested it for you :P >>>> I've just finished putting together a new server box spec: >>>> Dual AMD 244, 2GB ram, 5 * Seagate SATA 400GB on a >>>> Highpoint 1820a RAID 5 array. >>> >>>> 5.4-STABLE Highpoint 1820a RAID 5 ( 5 disk ) >>>> 655360000 bytes transferred in 13.348032 secs (49097875 bytes/sec) >>> >>> You're only transfering 640M in 2GB of RAM, big chance that you're >>> testing memory/buffercode-speed in stead of testing diskspeed. > > Still I would argue that if you do not use a write size larger than what > you have as real memory, that buffering in real memory is going to play > a role.... I think you miss read all the details here Willem. Original values: Write: 150Mb/s Read: 50Mb/s Current value after tweeking, RAID stripe size, vfs.read_max and MAXPHYS ( needs more testing now due to scotts warning ) Write: 150Mb/s Read: 200Mb/s Note: The test size was upped to 10Gb to avoid caching issues. > Other than that I find 50Mb/s is IMHO reasonable high value for a RAID5 > in writting. But it would require substantial more organised testing. DD > is nothing more than a very crude indication of what to expect in real life. dd was uses as it is a good quick indication of baseline sequential file access speed and as such highlighted a serious issue with the original performance. Thanks to the input from a number of guys here this was dramatically increased to a more reasonable value. There is potentially more headway for improvement which is show by the software linux RAID tests but 200Mb/s read is far more acceptable from a 5 disk system than 50Mb/s which can be obtained from a single disk. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 15:14:17 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 09A1D16A4E3; Sun, 8 May 2005 15:14:17 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EF5443DA1; Sun, 8 May 2005 15:14:16 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001392560.msg; Sun, 08 May 2005 16:10:13 +0100 Message-ID: <007e01c553e0$8e905310$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Scott Long" References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com><427D5AA0.1080609@withagen.nl><002b01c553be$93a5b790$b3db87d4@multiplay.co.uk><427E0F77.50006@samsco.org> <001c01c553da$5554e490$b3db87d4@multiplay.co.uk> <427E23BA.7000508@samsco.org> Date: Sun, 8 May 2005 16:13:54 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Sun, 08 May 2005 16:10:13 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Sun, 08 May 2005 16:10:14 +0100 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 15:14:17 -0000 ----- Original Message ----- From: "Scott Long" >> According to the documentation this is not the case and the XOR >> calcs are done in hardware on the onboard HPT 601. > > Maybe I'm confused and we are talking about different cards. Quite possibly all other highpoint cards that Im aware of are software RAID. >> Note: all tests are being done on i386 not AMD64 due to our requirement >> for i386 Linux emulation which it is my understanding is not available when >> running AMD64 FreeBSD. > > Linux/i386 emulation works quite well on FreeBSD/amd64 and is getting > better every day. There is active development on it at the moment. Now that is very interesting. Are you talking in 5.x stream or in 6.x? I cant risk putting 6x on this machine but would be quite willing to throw 5.x AMD64 on it and give it a whirl. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 19:18:49 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D865A16A4E6 for ; Sun, 8 May 2005 19:18:49 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 744C043D8F for ; Sun, 8 May 2005 19:18:49 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j48JIlVd087404; Sun, 8 May 2005 14:18:47 -0500 (CDT) (envelope-from dan) Date: Sun, 8 May 2005 14:18:47 -0500 From: Dan Nelson To: ChenMing Message-ID: <20050508191846.GA38839@dan.emsphone.com> References: <0IG400A5VLW94V@szxml01-in.huawei.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0IG400A5VLW94V@szxml01-in.huawei.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org Subject: Re: doubt: msgrcv not return EAGAIN? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 19:18:50 -0000 In the last episode (May 07), ChenMing said: > I use following line to recive message from message queue: > > int ret; > ret = msgrcv(msgid, &msg, sizeof(msg), 0, IPC_NOWAIT) if (ret == -1) { > if (errno == EAGAIN){ > // no message in queue > } > else{ > // here is an error occur > } > } > > but it sounds not works as my expected. It never return errno=EAGAIN, > however it return errno=ENOMSG instead, but msgrcv manual say its > should return EAGAIN. what's wrong? I think the manpage is incorrect. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 21:22:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 348E016A4E6; Sun, 8 May 2005 21:22:57 +0000 (GMT) Received: from freebee.digiware.nl (dsl439.iae.nl [212.61.63.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 187A843D9F; Sun, 8 May 2005 21:22:56 +0000 (GMT) (envelope-from wjw@withagen.nl) Received: from [212.61.27.71] (dual.digiware.nl [212.61.27.71]) by freebee.digiware.nl (8.13.1/8.13.1) with ESMTP id j48LMhJ3083834; Sun, 8 May 2005 23:22:45 +0200 (CEST) (envelope-from wjw@withagen.nl) Message-ID: <427E8324.8010905@withagen.nl> Date: Sun, 08 May 2005 23:22:44 +0200 From: Willem Jan Withagen User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> <427D5AA0.1080609@withagen.nl> <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> <427E05D2.2060706@digiware.nl> <002b01c553db$5e167340$b3db87d4@multiplay.co.uk> In-Reply-To: <002b01c553db$5e167340$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: willem jan withagen cc: freebsd-current@freebsd.org Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 21:22:57 -0000 Steven Hartland wrote: >> Still I would argue that if you do not use a write size larger than >> what you have as real memory, that buffering in real memory is going >> to play a role.... > > > I think you miss read all the details here Willem. Sorry about that, if that is the case. > Original values: > Write: 150Mb/s > Read: 50Mb/s > Current value after tweeking, RAID stripe size, vfs.read_max and > MAXPHYS ( needs more testing now due to scotts warning ) > Write: 150Mb/s > Read: 200Mb/s > > Note: The test size was upped to 10Gb to avoid caching issues. That would certainly negate my assumption 10G is enough to regularly flush the buffer. >> Other than that I find 50Mb/s is IMHO reasonable high value for a >> RAID5 in writting. But it would require substantial more organised >> testing. DD is nothing more than a very crude indication of what to >> expect in real life. > > > dd was uses as it is a good quick indication of baseline sequential file > access > speed and as such highlighted a serious issue with the original > performance. That is well phrased English for what I was trying to say. I'm glad to see that it worked for you. And I'm certainly impressed by the numbers... This is on a 4 disk RAID5 with one hot spare??? --WjW From owner-freebsd-hackers@FreeBSD.ORG Sun May 8 21:41:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 32CAB16A4E6; Sun, 8 May 2005 21:41:23 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4917543D54; Sun, 8 May 2005 21:41:22 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001393853.msg; Sun, 08 May 2005 22:36:55 +0100 Message-ID: <009d01c55416$91681ba0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Willem Jan Withagen" References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com><427D5AA0.1080609@withagen.nl><002b01c553be$93a5b790$b3db87d4@multiplay.co.uk><427E05D2.2060706@digiware.nl><002b01c553db$5e167340$b3db87d4@multiplay.co.uk> <427E8324.8010905@withagen.nl> Date: Sun, 8 May 2005 22:40:31 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Sun, 08 May 2005 22:36:55 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Sun, 08 May 2005 22:36:55 +0100 cc: freebsd-hackers@freebsd.org cc: willem jan withagen cc: freebsd-current@freebsd.org Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 May 2005 21:41:23 -0000 ----- Original Message ----- From: "Willem Jan Withagen" > > That is well phrased English for what I was trying to say. I'm glad to see > that it worked for you. And I'm certainly impressed by the numbers... > > This is on a 4 disk RAID5 with one hot spare??? Unfortunately not, we needed the capacity so went for pure RAID5 and considering Im not far away from the machine its easy to just pop a new disk in there when I get the email or hear the raid siren go off ( dam noisy thing :P ). One thing of interest uncovered in my testing was linux's software RAID5 was very good, producing: Write: 269Mb/s Read: 259Mb/s and that vimun had surprising poor results, but this could well be attributed to poor defaults Im not sure. Write: 6Mb/s Read: 23Mb/s All tested with pure RAID5 on 5 disks ( no hot swap ). Checkout the "Very low disk performance on 5.x" thread on: freebsd-performance@freebsd.org Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 04:21:26 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99EA316A4E6; Mon, 9 May 2005 04:21:26 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id C7E6943D7B; Mon, 9 May 2005 04:21:23 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.21] (rat.samsco.home [192.168.254.21]) (authenticated bits=0) by pooker.samsco.org (8.13.3/8.13.3) with ESMTP id j494QOb5025850; Sun, 8 May 2005 22:26:25 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <427EE509.3010901@samsco.org> Date: Sun, 08 May 2005 22:20:25 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steven Hartland References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com><427D5AA0.1080609@withagen.nl><002b01c553be$93a5b790$b3db87d4@multiplay.co.uk><427E0F77.50006@samsco.org> <001c01c553da$5554e490$b3db87d4@multiplay.co.uk> <427E23BA.7000508@samsco.org> <007e01c553e0$8e905310$b3db87d4@multiplay.co.uk> In-Reply-To: <007e01c553e0$8e905310$b3db87d4@multiplay.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Linux emulation [Re: Very low disk performance Highpoint 1820a] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 04:21:26 -0000 Steven Hartland wrote: > ----- Original Message ----- From: "Scott Long" > >>> According to the documentation this is not the case and the XOR >>> calcs are done in hardware on the onboard HPT 601. >> >> >> Maybe I'm confused and we are talking about different cards. > > > Quite possibly all other highpoint cards that Im aware of are > software RAID. > >>> Note: all tests are being done on i386 not AMD64 due to our requirement >>> for i386 Linux emulation which it is my understanding is not >>> available when >>> running AMD64 FreeBSD. >> >> >> Linux/i386 emulation works quite well on FreeBSD/amd64 and is getting >> better every day. There is active development on it at the moment. > > > Now that is very interesting. Are you talking in 5.x stream or in 6.x? > I cant risk putting 6x on this machine but would be quite willing to > throw 5.x AMD64 on it and give it a whirl. > I just installed the Linux StarOffice 7 suite on FreeBSD/amd64 running a recent 6-CURRENT. 5-STABLE isn't too far behind in the linux emulation area, from what I understand. The biggest problem is that you need to compile in the COMPAT_LINUX32 and LINPROCFS options as they don't build as modules right now. Scott From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 05:12:00 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36DE016A4E6; Mon, 9 May 2005 05:12:00 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 023EA43D8F; Mon, 9 May 2005 05:11:59 +0000 (GMT) (envelope-from sf@FreeBSD.org) Received: from freefall.freebsd.org (sf@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j495BxFE016736; Mon, 9 May 2005 05:11:59 GMT (envelope-from sf@freefall.freebsd.org) Received: from localhost (localhost [[UNIX: localhost]]) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j495BxZ8016735; Mon, 9 May 2005 05:11:59 GMT (envelope-from sf) Date: Mon, 9 May 2005 05:11:59 GMT Message-Id: <200505090511.j495BxZ8016735@freefall.freebsd.org> From: FUJISHIMA Satsuki To: Scott Long In-Reply-To: <427E23BA.7000508@samsco.org> References: <069901c54bfd$2967ba40$7f06000a@int.mediasurface.com> <427D5AA0.1080609@withagen.nl> <002b01c553be$93a5b790$b3db87d4@multiplay.co.uk> <427E0F77.50006@samsco.org> <001c01c553da$5554e490$b3db87d4@multiplay.co.uk> <427E23BA.7000508@samsco.org> Mail-Followup-To: Scott Long , Steven Hartland , freebsd-hackers@freebsd.org, freebsd-current@freebsd.org User-Agent: Wanderlust/2.11.32 (Wonderwall) SEMI/1.14.6 (Maruoka) FLIM/1.14.7 (=?ISO-8859-4?Q?Sanj=F2?=) APEL/10.6 Emacs/21.3 (i386--freebsd) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Steven Hartland Subject: Re: Very low disk performance Highpoint 1820a X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 05:12:00 -0000 At Sun, 08 May 2005 08:35:38 -0600, Scott Long wrote: > > According to the documentation this is not the case and the XOR > > calcs are done in hardware on the onboard HPT 601. > Maybe I'm confused and we are talking about different cards. RocketRAID 1820 is a plain SATA card with software RAID. 1820A is 1820 with HPT601 XOR engine. From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 10:10:16 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 596BD16A4EA; Mon, 9 May 2005 10:10:16 +0000 (GMT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71D7D43D31; Mon, 9 May 2005 10:10:15 +0000 (GMT) (envelope-from max@love2party.net) Received: from p54A3FCFA.dip.t-dialin.net[84.163.252.250] (helo=donor.laier.local) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0MKwh2-1DV5DG1eGE-0007cz; Mon, 09 May 2005 12:10:10 +0200 From: Max Laier To: freebsd-hackers@freebsd.org Date: Mon, 9 May 2005 12:10:25 +0200 User-Agent: KMail/1.8 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200505091210.28315.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 cc: freebsd-current@freebsd.org cc: freebsd-misc@freebsd.org Subject: EuroBSDCon 05 - Call for Papers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 10:10:16 -0000 EuroBSDCon 2005 - Call for Papers 4th European BSD Conference November 25 - 27, 2005 University of Basel, Switzerland http://www.eurobsdcon.org/ Introduction The Berkeley Software Distribution (BSD) family of computer operating systems is derived from software developed at the University of California at Berkeley. The various family members (Free-, Net- and OpenBSD, among others) are exten=AD sively used both for embedded appliances and for large internet servers and have an excellent reputation for sta=AD bility and state-of-the-art technology. BSD-derived soft=AD ware is a driving force for IT research and development and is well-received as a building block in commercial software due to its unique license scheme. The fourth European BSD conference is a great opportunity to present new ideas to the community and to meet some of the developers behind the different BSDs. The two day conference program (Nov 26 and 27) will be com=AD plemented by a tutorial day preceeding the conference (Nov 25). Call for Papers The program committee is inviting authors to submit innova=AD tive and original papers not submitted elsewhere on the applications, architecture, implementation, performance and security of BSD-derived operating systems. Investigations on economic aspects regarding the operation of BSD systems are also welcome. Topics of interest for the Euro BSD Con=AD ference 2005 include, but are not limited to: =B7 kernel hacking =B7 embedded application development and deployment =B7 device drivers =B7 security and safe coding practices =B7 system administration: techniques and tools of the trade =B7 operational and economic aspects Prospective authors of contributions to the technical pro=AD gram are requested to submit an extended abstract through the web-interface on the conference website. All submissions will be reviewed by the program committee. The extended abstract should be at least two but no longer than four pages in either PostScript or-PDF format. Submissions accom=AD panied by a non-disclosure agreement are not acceptable and will be returned unread. Authors of accepted submissions have to provide a full paper for publication in the conference proceedings and give per=AD mission to the organizers to publish the results in the printed proceedings and on the conference web site. Instruc=AD tions to authors will be available on the conference web site. Call for Tutorial Proposals Selected tutorials on practical and problem-solving aspects of BSD-derived operating systems will be offered on the day before the Euro BSD Conference. The tutorials will be pre=AD sented by speakers who have wide experience in developing and administering the different BSDs. Potential tutorial themes include, but are not limited to: =B7 Using FreeBSD in a datacenter environment =B7 Firewall configuration with OpenBSD =B7 Porting NetBSD to embedded devices =B7 Safe coding practices to provide secure solutions If you are interested in presenting a tutorial, please con=AD tact the program committee at pc@eurobsdcon.org with details about the topic, intended audience, required room and facil=AD ities as well as a meaningful CV before August 1, 2005. Important Dates Extended abstracts due: August 1 Tutorial proposals due: August 1 Notification to speakers: August 31 =46inal papers due: October 20 Tutorial day: November 25 Conference: November 26 - 27 Conference Organizers General Chairs Marc Balmer, micro systems Vera Hardmeier, micro systems Program Chair Christian Tschudin, CS Department, University of Basel Program Committee Marc Balmer, micro systems -3- Emmanuel Dreyfus, the NetBSD project Felix Kronlage, bytemine Max Laier, the FreeBSD project Andr=E9 von Raison, iX Magazin Christian Tschudin, University of Basel Wim Vandeputte, the OpenBSD project Local Organizers Marc Balmer, micro systems Giacomo Cariello Marcus Glocker, UBS AG Vera Hardmeier, micro systems Massimiliano Stucchi, WillyStudios.com Marc Winiger, micro systems From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 15:43:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BBAC16A4E8 for ; Mon, 9 May 2005 15:43:03 +0000 (GMT) Received: from mail-svr1.cs.utah.edu (mail-svr1.cs.utah.edu [155.98.64.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A8C143D39 for ; Mon, 9 May 2005 15:43:03 +0000 (GMT) (envelope-from saggarwa@cs.utah.edu) Received: from localhost (localhost [127.0.0.1]) by mail-svr1.cs.utah.edu (Postfix) with ESMTP id EC509346F3 for ; Mon, 9 May 2005 09:43:02 -0600 (MDT) Received: from mail-svr1.cs.utah.edu ([127.0.0.1]) by localhost (mail-svr1.cs.utah.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08951-10 for ; Mon, 9 May 2005 09:43:02 -0600 (MDT) Received: from trust.cs.utah.edu (trust.cs.utah.edu [155.98.65.28]) by mail-svr1.cs.utah.edu (Postfix) with ESMTP id A01FA346EC for ; Mon, 9 May 2005 09:43:02 -0600 (MDT) Received: by trust.cs.utah.edu (Postfix, from userid 4973) id 8AF863F68; Mon, 9 May 2005 09:43:02 -0600 (MDT) Received: from localhost (localhost [127.0.0.1]) by trust.cs.utah.edu (Postfix) with ESMTP id 7AE9D3F62 for ; Mon, 9 May 2005 09:43:02 -0600 (MDT) Date: Mon, 9 May 2005 09:43:02 -0600 (MDT) From: Siddharth Aggarwal To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: amavisd-new at cs.utah.edu Subject: ffs snapshots X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 15:43:03 -0000 Hi, I was wondering why the limit for file system snapshots in BSD 5 has been set to 20. Is it a limitation due to the way this feature has been implemented? -Siddharth. From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 16:30:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C03A116A4E8 for ; Mon, 9 May 2005 16:30:05 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4217143D9B for ; Mon, 9 May 2005 16:30:05 +0000 (GMT) (envelope-from maslanbsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so1851438wra for ; Mon, 09 May 2005 09:30:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SqXvvHlvhUYuhzv9xoRJ8XaspncD1nyQnIEh2paCuAuxXZhiyQAqyMhXRlB+BkQgzOXMMZFx+jlAo0Dg5t+J8BTAhOb6JfFbkG4wFDYVlRoKKOiNlt2U65ia3d4EA1FKwIZO8qLuLDDGxK2B9LYlrA6QKEc0BDUWhGpTvLCN72k= Received: by 10.54.5.9 with SMTP id 9mr2725196wre; Mon, 09 May 2005 09:30:04 -0700 (PDT) Received: by 10.54.99.7 with HTTP; Mon, 9 May 2005 09:30:04 -0700 (PDT) Message-ID: <319cceca05050909301ace7680@mail.gmail.com> Date: Mon, 9 May 2005 19:30:04 +0300 From: Maslan To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: files refused to delete X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maslan List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 16:30:05 -0000 here is the output of fsck : ** /dev/ad0s3a (NO WRITE) ** Last Mounted on / ** Root file system ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2671 files, 44960 used, 1937879 free (703 frags, 242147 blocks, 0.0% fragmentation) ** /dev/ad0s3e (NO WRITE) ** Last Mounted on /usr ** Phase 1 - Check Blocks and Sizes INCORRECT BLOCK COUNT I=3D196742 (4 should be 0) CORRECT? no ** Phase 2 - Check Pathnames MISSING '.' I=3D197304 OWNER=3Dmaslan MODE=3D40755 SIZE=3D512 MTIME=3DMay 5 17:30 2005 DIR=3D? UNEXPECTED SOFT UPDATE INCONSISTENCY CANNOT FIX, FIRST ENTRY IN DIRECTORY CONTAINS koko UNEXPECTED SOFT UPDATE INCONSISTENCY MISSING '..' I=3D197304 OWNER=3Dmaslan MODE=3D40755 SIZE=3D512 MTIME=3DMay 5 17:30 2005 DIR=3D/home/maslan/.Trash/XY/Final/$YREX~1/trrt UNEXPECTED SOFT UPDATE INCONSISTENCY CANNOT FIX, SECOND ENTRY IN DIRECTORY CONTAINS f UNEXPECTED SOFT UPDATE INCONSISTENCY ?/fd IS AN EXTRANEOUS HARD LINK TO DIRECTORY /lost+found/#197140 REMOVE? no BAD INODE NUMBER FOR '..' I=3D197140 OWNER=3Dmaslan MODE=3D40755 SIZE=3D512 MTIME=3DApr 11 17:32 2005 DIR=3D?/fd UNEXPECTED SOFT UPDATE INCONSISTENCY FIX? no ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups FREE BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no SUMMARY INFORMATION BAD SALVAGE? no BLK(S) MISSING IN BIT MAPS SALVAGE? no 223330 files, 1470245 used, 553153 free (21905 frags, 66406 blocks, 1.1% fragmentation) ** /dev/ad0s3d (NO WRITE) ** Last Mounted on /var ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity ** Phase 4 - Check Reference Counts ** Phase 5 - Check Cyl groups 2271 files, 8379 used, 485820 free (2028 frags, 60474 blocks, 0.4% fragmentation) --=20 I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) http://www.maslanlab.org From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 18:13:02 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B295E16A4EA; Mon, 9 May 2005 18:13:02 +0000 (GMT) Received: from coresikhism.net (c-67-161-59-235.hsd1.ca.comcast.net [67.161.59.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5728343D5F; Mon, 9 May 2005 18:13:02 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from [192.168.96.214] ([69.36.228.194]) by coresikhism.net (8.13.1/8.13.1) with ESMTP id j49IAV1I019203; Mon, 9 May 2005 11:10:52 -0700 Message-ID: <427FA802.90805@chamkila.org> Date: Mon, 09 May 2005 11:12:18 -0700 From: Amandeep User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:13:02 -0000 Hi all, I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the transfer rate is very low. FreeBSD 5.3-Release. Any ideas what is going on here. The transfer rate is about 15MB/s when I run #dd if=/dev/zero of=/usr/junk bs=8192 then do #iostat 1 From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 18:16:24 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CAC1516A4EB for ; Mon, 9 May 2005 18:16:24 +0000 (GMT) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DEA643D60 for ; Mon, 9 May 2005 18:16:24 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.12.11/8.12.11) with ESMTP id j49IGJfX019781; Mon, 9 May 2005 14:16:19 -0400 (EDT) Received: from localhost (essenz@localhost)j49IGJfT019778; Mon, 9 May 2005 14:16:19 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Mon, 9 May 2005 14:16:19 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: Amandeep In-Reply-To: <427FA802.90805@chamkila.org> Message-ID: <20050509141507.J19546@beck.quonix.net> References: <427FA802.90805@chamkila.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamAssassin-3.0.1-Score: -2.82/6 ALL_TRUSTED X-MimeDefang-2.48: beck.quonix.net X-Scanned-By: MIMEDefang 2.48 on 146.145.66.90 cc: freebsd-hackers@freebsd.org Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:16:24 -0000 That sounds about right! You weren't expecting to get 100Mb/s were you?? -john On Mon, 9 May 2005, Amandeep wrote: > Hi all, > > I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the transfer > rate is very low. FreeBSD 5.3-Release. > Any ideas what is going on here. > > The transfer rate is about 15MB/s > > when I run > > #dd if=/dev/zero of=/usr/junk bs=8192 > > then do > #iostat 1 > _______________________________________________ > 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 Mon May 9 18:28:14 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FF4C16A4EA for ; Mon, 9 May 2005 18:28:14 +0000 (GMT) Received: from smtp2.dnainternet.net (smtp2.dnainternet.net [62.240.72.111]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B87643D88 for ; Mon, 9 May 2005 18:28:13 +0000 (GMT) (envelope-from erik.u@dnainternet.net) Received: from b-184-46.dsl.kpy.customers.dnainternet.fi ([212.149.184.46]:63391smtp2.dnainternet.net with ESMTP id S1228882AbVEIS2M (ORCPT ); Mon, 9 May 2005 21:28:12 +0300 Message-ID: <427FABBB.4070605@dnainternet.net> Date: Mon, 09 May 2005 21:28:11 +0300 From: Erik Udo User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050430) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <427FA802.90805@chamkila.org> <20050509141507.J19546@beck.quonix.net> In-Reply-To: <20050509141507.J19546@beck.quonix.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-hackers@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:28:14 -0000 But he is getting over 100 megabits per second! Anyway, i'm getting 50~60MB/s on my ad0: 194481MB [395136/16/63] at ata0-master UDMA133 So i think 15MB/s is a little slow. John Von Essen wrote: > That sounds about right! > > You weren't expecting to get 100Mb/s were you?? > > -john > > On Mon, 9 May 2005, Amandeep wrote: > > >>Hi all, >> >>I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the transfer >>rate is very low. FreeBSD 5.3-Release. >>Any ideas what is going on here. >> >>The transfer rate is about 15MB/s >> >>when I run >> >>#dd if=/dev/zero of=/usr/junk bs=8192 >> >>then do >>#iostat 1 >>_______________________________________________ >>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" >> > > _______________________________________________ > 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 Mon May 9 18:28:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1138B16A4EC; Mon, 9 May 2005 18:28:40 +0000 (GMT) Received: from coresikhism.net (c-67-161-59-235.hsd1.ca.comcast.net [67.161.59.235]) by mx1.FreeBSD.org (Postfix) with ESMTP id C84BD43D45; Mon, 9 May 2005 18:28:39 +0000 (GMT) (envelope-from aman@chamkila.org) Received: from [192.168.96.214] ([69.36.228.194]) by coresikhism.net (8.13.1/8.13.1) with ESMTP id j49IOqRm019300; Mon, 9 May 2005 11:25:18 -0700 Message-ID: <427FAB5F.6070508@chamkila.org> Date: Mon, 09 May 2005 11:26:39 -0700 From: Amandeep User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eric Anderson References: <427FA802.90805@chamkila.org> <427FA8CD.8040405@centtech.com> In-Reply-To: <427FA8CD.8040405@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: john@essenz.com Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:28:40 -0000 Hi Eric, Shouldnt it be around 54MB/s for a regular IDE drive. Here is the output of dmesg and iostat Copyright (c) 1992-2004 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.3-RELEASE #0: Fri Nov 5 04:19:18 UTC 2004 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2391.14-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff real memory = 1064173568 (1014 MB) avail memory = 1031811072 (984 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 cpu0: on acpi0 acpi_tz0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe8100000-0xe817ffff,0xe0000000-0xe7ffffff irq 16 at device 2.0 on pci0 agp0: detected 8060k stolen memory agp0: aperture size is 128M uhci0: port 0xe200-0xe21f irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe000-0xe01f irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xe100-0xe11f irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] usb2: on uhci2 usb2: USB revision 1.0 uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered pci0: at device 29.7 (no driver attached) pcib1: at device 30.0 on pci0 pci1: on pcib1 em0: port 0xd000-0xd03f mem 0xe8020000-0xe803ffff,0xe8000000-0xe801ffff irq 21 at device 3.0 on pci1 em0: Ethernet address: 00:e0:81:56:1e:64 em0: Speed:N/A Duplex:N/A em1: port 0xd100-0xd13f mem 0xe8060000-0xe807ffff,0xe8040000-0xe805ffff irq 20 at device 4.0 on pci1 em1: Ethernet address: 00:e0:81:56:1e:65 em1: Speed:N/A Duplex:N/A isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 31.3 (no driver attached) fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 orm0: at iomem 0xcc000-0xccfff on isa0 pmtimer0 on isa0 ppc0: parallel port not found. sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 2391144260 Hz quality 800 Timecounters tick every 10.000 msec ad0: 156334MB [317632/16/63] at ata0-master UDMA100 acd0: DVDROM at ata1-master UDMA33 Mounting root from ufs:/dev/ad0s1a em0: Link is up 100 Mbps Full Duplex em0: Link is up 100 Mbps Full Duplex em0: Link is up 100 Mbps Full Duplex IOSTAT tty ad0 cpu tin tout KB/t tps MB/s us ni sy in id 0 20 114.15 10 1.09 0 0 1 0 98 0 0 0.00 0 0.00 0 0 0 0 100 0 0 0.00 0 0.00 0 0 0 0 100 1 3 128.00 21 2.60 0 0 3 0 97 0 0 128.00 124 15.47 0 0 6 2 91 0 0 117.49 133 15.22 0 0 6 0 94 0 0 128.00 124 15.47 0 0 8 0 92 0 0 126.11 125 15.36 0 0 10 2 88 0 0 128.00 124 15.47 0 0 8 0 92 0 0 128.00 124 15.47 0 0 6 0 94 0 0 127.10 123 15.24 0 0 6 0 94 0 0 128.00 124 15.47 2 0 8 1 90 0 0 127.10 124 15.36 0 0 10 0 90 0 0 128.00 124 15.47 0 0 6 0 94 0 0 127.10 123 15.24 0 0 7 1 92 0 0 128.00 124 15.47 0 0 7 1 92 0 0 121.77 128 15.19 0 0 9 1 90 0 0 128.00 124 15.47 0 0 8 0 92 0 0 127.10 123 15.24 0 0 7 1 92 1 2 128.00 124 15.47 0 0 6 0 94 Thanks for your help and replies. A Eric Anderson wrote: > Amandeep wrote: > >> Hi all, >> >> I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the >> transfer rate is very low. FreeBSD 5.3-Release. >> Any ideas what is going on here. >> >> The transfer rate is about 15MB/s >> >> when I run >> #dd if=/dev/zero of=/usr/junk bs=8192 >> >> then do >> #iostat 1 > > > You should probably provide the appropriate information from dmesg > output, along with what you expect it to be, and the outputs of the dd > command. > > Eric > > > From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 18:35:06 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8075E16A4EB for ; Mon, 9 May 2005 18:35:06 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE8D843DAF for ; Mon, 9 May 2005 18:35:05 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j49IVrMf054642; Mon, 9 May 2005 12:31:53 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 09 May 2005 12:31:53 -0600 (MDT) Message-Id: <20050509.123153.115960241.imp@bsdimp.com> To: freebsd-hackers@freebsd.org, erik.u@dnainternet.net From: Warner Losh In-Reply-To: <427FABBB.4070605@dnainternet.net> References: <427FA802.90805@chamkila.org> <20050509141507.J19546@beck.quonix.net> <427FABBB.4070605@dnainternet.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:35:06 -0000 > But he is getting over 100 megabits per second! ata100 is 100M*B*/s, not 100Mb/s. However, unless you are reading out of the cache of the drive, you'll get a much lower speed (on the order of 10-20MB/s I think from that generation of disks). Warner From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 18:35:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 665CB16A4EA for ; Mon, 9 May 2005 18:35:58 +0000 (GMT) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B2543D9B for ; Mon, 9 May 2005 18:35:57 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.12.11/8.12.11) with ESMTP id j49IZs8C020192 for ; Mon, 9 May 2005 14:35:54 -0400 (EDT) Received: from localhost (essenz@localhost)j49IZsss020189 for ; Mon, 9 May 2005 14:35:54 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Mon, 9 May 2005 14:35:54 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: freebsd-hackers@freebsd.org In-Reply-To: <427FABBB.4070605@dnainternet.net> Message-ID: <20050509143247.E20018@beck.quonix.net> References: <427FA802.90805@chamkila.org> <20050509141507.J19546@beck.quonix.net> <427FABBB.4070605@dnainternet.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamAssassin-3.0.1-Score: -2.82/6 ALL_TRUSTED X-MimeDefang-2.48: beck.quonix.net X-Scanned-By: MIMEDefang 2.48 on 146.145.66.90 Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:35:58 -0000 Actually, using a variety of Maxtor drives, I don't think I have ever gotten anything better then 11.5 Megabytes/sec - and this was on boards with ATA-100. About a year ago I had several Tyan S2099's with a 40Gb Seagate, and was doing drive duplications with dd and a FreeBSD boot CD. Again, 11 Megabytes/sec max. -john On Mon, 9 May 2005, Erik Udo wrote: > But he is getting over 100 megabits per second! > > Anyway, i'm getting 50~60MB/s on my > ad0: 194481MB [395136/16/63] at ata0-master > UDMA133 > > So i think 15MB/s is a little slow. > > John Von Essen wrote: > > That sounds about right! > > > > You weren't expecting to get 100Mb/s were you?? > > > > -john > > > > On Mon, 9 May 2005, Amandeep wrote: > > > > > >>Hi all, > >> > >>I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the transfer > >>rate is very low. FreeBSD 5.3-Release. > >>Any ideas what is going on here. > >> > >>The transfer rate is about 15MB/s > >> > >>when I run > >> > >>#dd if=/dev/zero of=/usr/junk bs=8192 > >> > >>then do > >>#iostat 1 > >>_______________________________________________ > >>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" > >> > > > > _______________________________________________ > > 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" > > > > _______________________________________________ > 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 Mon May 9 18:44:15 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8919416A4EA; Mon, 9 May 2005 18:44:15 +0000 (GMT) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6AB043DA3; Mon, 9 May 2005 18:44:14 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j49IiAtB084220; Mon, 9 May 2005 13:44:10 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <427FAF73.7070702@centtech.com> Date: Mon, 09 May 2005 13:44:03 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050504 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Amandeep References: <427FA802.90805@chamkila.org> <427FA8CD.8040405@centtech.com> <427FAB5F.6070508@chamkila.org> In-Reply-To: <427FAB5F.6070508@chamkila.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/873/Mon May 9 11:36:51 2005 on mh1.centtech.com X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: john@essenz.com Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:44:15 -0000 > Eric Anderson wrote: > >> Amandeep wrote: >> >>> Hi all, >>> >>> I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the >>> transfer rate is very low. FreeBSD 5.3-Release. >>> Any ideas what is going on here. >>> >>> The transfer rate is about 15MB/s >>> >>> when I run >>> #dd if=/dev/zero of=/usr/junk bs=8192 >>> >>> then do >>> #iostat 1 >> >> >> >> You should probably provide the appropriate information from dmesg >> output, along with what you expect it to be, and the outputs of the dd >> command. >> >> Eric >> Amandeep wrote: > Hi Eric, > > > Shouldnt it be around 54MB/s for a regular IDE drive. > > Here is the output of dmesg and iostat [..snip dmesg blob..] > IOSTAT > > tty ad0 cpu > tin tout KB/t tps MB/s us ni sy in id > 0 20 114.15 10 1.09 0 0 1 0 98 > 0 0 0.00 0 0.00 0 0 0 0 100 > 0 0 0.00 0 0.00 0 0 0 0 100 > 1 3 128.00 21 2.60 0 0 3 0 97 > 0 0 128.00 124 15.47 0 0 6 2 91 [..snip iostat blob..] (please try to avoid top-posting, it's hard to follow) What about other block sizes? Also - you should paste your actual dd output here too. What's the model number of that drive? Maxtor claims (on one of their 160G drives) 17.8MB/s from inner diameter disk and 35.6MB/s for outer diameter for the 5400rpm drives. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology A lost ounce of gold may be found, a lost moment of time never. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 18:46:06 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C6C3516A4EA for ; Mon, 9 May 2005 18:46:06 +0000 (GMT) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61A6443D1F for ; Mon, 9 May 2005 18:46:06 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j49Ik3pO084238; Mon, 9 May 2005 13:46:03 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <427FAFE4.1020508@centtech.com> Date: Mon, 09 May 2005 13:45:56 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050504 X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Von Essen References: <427FA802.90805@chamkila.org> <20050509141507.J19546@beck.quonix.net> <427FABBB.4070605@dnainternet.net> <20050509143247.E20018@beck.quonix.net> In-Reply-To: <20050509143247.E20018@beck.quonix.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/873/Mon May 9 11:36:51 2005 on mh1.centtech.com X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 18:46:06 -0000 John Von Essen wrote: > Actually, using a variety of Maxtor drives, I don't think I have ever > gotten anything better then 11.5 Megabytes/sec - and this was on boards > with ATA-100. > > About a year ago I had several Tyan S2099's with a 40Gb Seagate, and was > doing drive duplications with dd and a FreeBSD boot CD. Again, 11 > Megabytes/sec max. Keep in mind that ATA-100 specifies the *bus* speed, not the platter-to-bus speed. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology A lost ounce of gold may be found, a lost moment of time never. ------------------------------------------------------------------------ From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 19:01:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E88A816A4EB for ; Mon, 9 May 2005 19:01:30 +0000 (GMT) Received: from beck.quonix.net (beck.quonix.net [146.145.66.90]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F41643D62 for ; Mon, 9 May 2005 19:01:30 +0000 (GMT) (envelope-from john@essenz.com) Received: from beck.quonix.net (localhost [127.0.0.1]) by beck.quonix.net (8.12.11/8.12.11) with ESMTP id j49J1RlL020825 for ; Mon, 9 May 2005 15:01:27 -0400 (EDT) Received: from localhost (essenz@localhost)j49J1RlJ020822 for ; Mon, 9 May 2005 15:01:27 -0400 (EDT) X-Authentication-Warning: beck.quonix.net: essenz owned process doing -bs Date: Mon, 9 May 2005 15:01:27 -0400 (EDT) From: John Von Essen X-X-Sender: essenz@beck.quonix.net To: freebsd-hackers@freebsd.org In-Reply-To: <427FAFE4.1020508@centtech.com> Message-ID: <20050509145920.T20018@beck.quonix.net> References: <427FA802.90805@chamkila.org> <20050509141507.J19546@beck.quonix.net> <20050509143247.E20018@beck.quonix.net> <427FAFE4.1020508@centtech.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SpamAssassin-3.0.1-Score: -2.82/6 ALL_TRUSTED X-MimeDefang-2.48: beck.quonix.net X-Scanned-By: MIMEDefang 2.48 on 146.145.66.90 Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 19:01:31 -0000 I think in summary, though, the end result is that the 15 Megabytes/sec that Amandeep was getting is normal. -john On Mon, 9 May 2005, Eric Anderson wrote: > John Von Essen wrote: > > Actually, using a variety of Maxtor drives, I don't think I have ever > > gotten anything better then 11.5 Megabytes/sec - and this was on boards > > with ATA-100. > > > > About a year ago I had several Tyan S2099's with a 40Gb Seagate, and was > > doing drive duplications with dd and a FreeBSD boot CD. Again, 11 > > Megabytes/sec max. > > Keep in mind that ATA-100 specifies the *bus* speed, not the > platter-to-bus speed. > > Eric > > > > -- > ------------------------------------------------------------------------ > Eric Anderson Sr. Systems Administrator Centaur Technology > A lost ounce of gold may be found, a lost moment of time never. > ------------------------------------------------------------------------ > From owner-freebsd-hackers@FreeBSD.ORG Mon May 9 19:02:52 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35BA516A4EA; Mon, 9 May 2005 19:02:52 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id C4B7043D98; Mon, 9 May 2005 19:02:51 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j49J2jST056234; Mon, 9 May 2005 14:02:45 -0500 (CDT) (envelope-from dan) Date: Mon, 9 May 2005 14:02:45 -0500 From: Dan Nelson To: Eric Anderson Message-ID: <20050509190245.GF38839@dan.emsphone.com> References: <427FA802.90805@chamkila.org> <427FA8CD.8040405@centtech.com> <427FAB5F.6070508@chamkila.org> <427FAF73.7070702@centtech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427FAF73.7070702@centtech.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.8i cc: freebsd-hackers@freebsd.org cc: Amandeep cc: freebsd-questions@freebsd.org cc: john@essenz.com Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 May 2005 19:02:52 -0000 In the last episode (May 09), Eric Anderson said: > > Eric Anderson wrote: > >> Amandeep wrote: > >>> I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the > >>> transfer rate is very low. FreeBSD 5.3-Release. > >>> Any ideas what is going on here. > >>> > >>> The transfer rate is about 15MB/s > >>> > >>> when I run > >>> #dd if=/dev/zero of=/usr/junk bs=8192 > > > >Shouldnt it be around 54MB/s for a regular IDE drive. > > What about other block sizes? Also - you should paste your actual dd > output here too. > > What's the model number of that drive? Maxtor claims (on one of > their 160G drives) 17.8MB/s from inner diameter disk and 35.6MB/s for > outer diameter for the 5400rpm drives. Yes, try 64k instead of 8k, and also compare read speeds. If you have the time (could take an hour or so), try "dd if=/dev/ad0 of=/dev/null bs=64k", run an "iostat 60" in another window, let the dd run through the entire disk, and compare the relative speeds from start to finish. For the DiamondMax 160, the sustained throughput should be 26MB -> 50MB as you go from inner to outer tracks. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 00:47:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90FBB16A4EB for ; Tue, 10 May 2005 00:47:58 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id AECF743D53 for ; Tue, 10 May 2005 00:47:57 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j4A0lrMo073094; Tue, 10 May 2005 10:17:54 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org, Maslan Date: Tue, 10 May 2005 10:17:45 +0930 User-Agent: KMail/1.8 References: <319cceca05050909301ace7680@mail.gmail.com> In-Reply-To: <319cceca05050909301ace7680@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart4028763.oSpCXh4q6W"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200505101017.46944.doconnor@gsoft.com.au> X-Spam-Score: -1.7 () IN_REP_TO,PGP_SIGNATURE_2,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) Subject: Re: files refused to delete X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 00:47:58 -0000 --nextPart4028763.oSpCXh4q6W Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tue, 10 May 2005 02:00, Maslan wrote: > here is the output of fsck : > > ** /dev/ad0s3a (NO WRITE) If it's mounted read/write you will get inconsistent result on an fsck. Try doing it in single user mode. =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 --nextPart4028763.oSpCXh4q6W Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQBCgASy5ZPcIHs/zowRApUiAJ9KOm5UCyI6Za4syWlL0XnDwM9IDACfRnjT LmzkdOlRak2KojsLFuHU5g0= =d9yX -----END PGP SIGNATURE----- --nextPart4028763.oSpCXh4q6W-- From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 01:53:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC95416A4EB for ; Tue, 10 May 2005 01:53:03 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D1F643D69 for ; Tue, 10 May 2005 01:53:03 +0000 (GMT) (envelope-from mike@sentex.net) Received: from BLUELAPIS.sentex.ca (cage.simianscience.com [64.7.134.1]) by smarthost2.sentex.ca (8.13.3/8.13.3) with SMTP id j4A1qxti097108; Mon, 9 May 2005 21:53:00 -0400 (EDT) (envelope-from mike@sentex.net) From: Mike Tancsa To: Amandeep Date: Mon, 09 May 2005 21:53:05 -0400 Message-ID: References: <427FA802.90805@chamkila.org> <427FA8CD.8040405@centtech.com> <427FAB5F.6070508@chamkila.org> In-Reply-To: <427FAB5F.6070508@chamkila.org> X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on smarthost2.sentex.ca X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 01:53:04 -0000 On Mon, 09 May 2005 11:26:39 -0700, in sentex.lists.freebsd.hackers you wrote: >Hi Eric, > > >Shouldnt it be around 54MB/s for a regular IDE drive. As I did a=20 [releng5-865]# dd if=3D/dev/zero of=3D/tmp/test bs=3D8192 count=3D30000 30000+0 records in 30000+0 records out 245760000 bytes transferred in 4.447737 secs (55255063 bytes/sec) [releng5-865]#=20 5.4-STABLE FreeBSD 5.4-STABLE #1: Sat May 7 20:42:37 EDT 2005=20 And, after flushing the cache by rebooting, [releng5-865]# dd if=3D/tmp/test of=3D/dev/null bs=3D8192 30000+0 records in 30000+0 records out 245760000 bytes transferred in 4.517612 secs (54400422 bytes/sec) [releng5-865]#=20 run of the mill PATA segate ad0: 38166MB [77545/16/63] at ata0-master UDMA100 You really should update to 5.4R [releng5-865]# dmesg | head -13 Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. =46reeBSD 5.4-STABLE #1: Sat May 7 20:42:37 EDT 2005 mdtancsa@releng5-865.sentex.ca:/usr/obj/usr/src/sys/pioneer ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Celeron(R) CPU 2.40GHz (2400.41-MHz 686-class CPU) Origin =3D "GenuineIntel" Id =3D 0xf33 Stepping =3D 3 =46eatures=3D0xbfebfbff real memory =3D 267321344 (254 MB) avail memory =3D 251940864 (240 MB) ioapic0 irqs 0-23 on motherboard ... atapci0: port 0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 [releng5-865]#=20 ---Mike -------------------------------------------------------- Mike Tancsa, Sentex communications http://www.sentex.net Providing Internet Access since 1994 mike@sentex.net, (http://www.tancsa.com) From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 01:56:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90A4716A4EB for ; Tue, 10 May 2005 01:56:03 +0000 (GMT) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1688843D68 for ; Tue, 10 May 2005 01:56:03 +0000 (GMT) (envelope-from mike@sentex.net) Received: from BLUELAPIS.sentex.ca (cage.simianscience.com [64.7.134.1]) by smarthost2.sentex.ca (8.13.3/8.13.3) with SMTP id j4A1txW1097236; Mon, 9 May 2005 21:55:59 -0400 (EDT) (envelope-from mike@sentex.net) From: Mike Tancsa To: Dan Nelson Date: Mon, 09 May 2005 21:56:05 -0400 Message-ID: <0350819dcs9asmaioaqo4kuhhsqmlg0t06@4ax.com> References: <427FA802.90805@chamkila.org> <427FA8CD.8040405@centtech.com> <427FAB5F.6070508@chamkila.org> <427FAF73.7070702@centtech.com> <20050509190245.GF38839@dan.emsphone.com> In-Reply-To: <20050509190245.GF38839@dan.emsphone.com> X-Mailer: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on smarthost2.sentex.ca X-Virus-Status: Clean cc: freebsd-hackers@freebsd.org Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 01:56:04 -0000 On Mon, 9 May 2005 14:02:45 -0500, in sentex.lists.freebsd.hackers you wrote: > >Yes, try 64k instead of 8k, and also compare read speeds. If you have >the time (could take an hour or so), try "dd if=3D/dev/ad0 = of=3D/dev/null >bs=3D64k", run an "iostat 60" in another window, let the dd run through >the entire disk, and compare the relative speeds from start to finish. > >For the DiamondMax 160, the sustained throughput should be 26MB -> 50MB >as you go from inner to outer tracks. Not sure how honest diskinfo is, but the numbers do seem somewhat reasonable for checking these values. [releng5-865]# diskinfo -t ad0 ad0 512 # sectorsize 40020664320 # mediasize in bytes (37G) 78165360 # mediasize in sectors 77545 # Cylinders according to firmware. 16 # Heads according to firmware. 63 # Sectors according to firmware. Seek times: Full stroke: 250 iter in 5.641185 sec =3D 22.565 msec Half stroke: 250 iter in 4.381489 sec =3D 17.526 msec Quarter stroke: 500 iter in 7.043785 sec =3D 14.088 msec Short forward: 400 iter in 1.625114 sec =3D 4.063 msec Short backward: 400 iter in 1.524874 sec =3D 3.812 msec Seq outer: 2048 iter in 0.233424 sec =3D 0.114 msec Seq inner: 2048 iter in 0.224814 sec =3D 0.110 msec Transfer rates: outside: 102400 kbytes in 1.787498 sec =3D 57287 kbytes/sec middle: 102400 kbytes in 2.175933 sec =3D 47060 kbytes/sec inside: 102400 kbytes in 3.416033 sec =3D 29976 kbytes/sec [releng5-865]#=20 ---Mike -------------------------------------------------------- Mike Tancsa, Sentex communications http://www.sentex.net Providing Internet Access since 1994 mike@sentex.net, (http://www.tancsa.com) From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 03:48:52 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D702816A4ED for ; Tue, 10 May 2005 03:48:52 +0000 (GMT) Received: from priv-edtnes40.telusplanet.net (outbound05.telus.net [199.185.220.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F51C43D48 for ; Tue, 10 May 2005 03:48:52 +0000 (GMT) (envelope-from pfak@telus.net) Received: from [192.168.1.151] (really [64.180.103.26]) by priv-edtnes40.telusplanet.netESMTP <20050510034851.DOHB19551.priv-edtnes40.telusplanet.net@[192.168.1.151]>; Mon, 9 May 2005 21:48:51 -0600 Message-ID: <42802F26.3090909@telus.net> Date: Mon, 09 May 2005 20:48:54 -0700 From: Peter Kieser User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mike Tancsa , freebsd-hackers@freebsd.org References: <427FA802.90805@chamkila.org> <427FA8CD.8040405@centtech.com> <427FAB5F.6070508@chamkila.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 03:48:53 -0000 ad0: 78167MB [158816/16/63] at ata0-master UDMA133 su-2.05b# dd if=/dev/zero of=/tmp/test bs=8192 count=30000 30000+0 records in 30000+0 records out 245760000 bytes transferred in 4.090394 secs (60082231 bytes/sec) ad0: 239372MB [486344/16/63] at ata0-master UDMA133 su-2.05b# dd if=/dev/zero of=/tmp/test bs=8192 count=30000 30000+0 records in 30000+0 records out 245760000 bytes transferred in 3.639685 secs (67522324 bytes/sec) Mike Tancsa wrote: >On Mon, 09 May 2005 11:26:39 -0700, in sentex.lists.freebsd.hackers >you wrote: > > > >>Hi Eric, >> >> >>Shouldnt it be around 54MB/s for a regular IDE drive. >> >> > > >As I did a >[releng5-865]# dd if=/dev/zero of=/tmp/test bs=8192 count=30000 >30000+0 records in >30000+0 records out >245760000 bytes transferred in 4.447737 secs (55255063 bytes/sec) >[releng5-865]# >5.4-STABLE FreeBSD 5.4-STABLE #1: Sat May 7 20:42:37 EDT 2005 > >And, after flushing the cache by rebooting, >[releng5-865]# dd if=/tmp/test of=/dev/null bs=8192 >30000+0 records in >30000+0 records out >245760000 bytes transferred in 4.517612 secs (54400422 bytes/sec) >[releng5-865]# > >run of the mill PATA segate >ad0: 38166MB [77545/16/63] at ata0-master UDMA100 > > >You really should update to 5.4R > >[releng5-865]# dmesg | head -13 >Copyright (c) 1992-2005 The FreeBSD Project. >Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, >1994 > The Regents of the University of California. All rights >reserved. >FreeBSD 5.4-STABLE #1: Sat May 7 20:42:37 EDT 2005 > mdtancsa@releng5-865.sentex.ca:/usr/obj/usr/src/sys/pioneer >ACPI APIC Table: >Timecounter "i8254" frequency 1193182 Hz quality 0 >CPU: Intel(R) Celeron(R) CPU 2.40GHz (2400.41-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf33 Stepping = 3 > >Features=0xbfebfbff >real memory = 267321344 (254 MB) >avail memory = 251940864 (240 MB) >ioapic0 irqs 0-23 on motherboard >... >atapci0: port >0xf000-0xf00f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on >pci0 > >[releng5-865]# > > ---Mike > > > >-------------------------------------------------------- >Mike Tancsa, Sentex communications http://www.sentex.net >Providing Internet Access since 1994 >mike@sentex.net, (http://www.tancsa.com) >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > > From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 05:40:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A3D116A4EE; Tue, 10 May 2005 05:40:33 +0000 (GMT) Received: from ms-smtp-01-eri0.southeast.rr.com (ms-smtp-01-lbl.southeast.rr.com [24.25.9.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F8CB43D6D; Tue, 10 May 2005 05:40:32 +0000 (GMT) (envelope-from jason@ec.rr.com) Received: from [192.168.1.100] (cpe-065-184-196-020.ec.res.rr.com [65.184.196.20])j4A5eRLv006932; Tue, 10 May 2005 01:40:27 -0400 (EDT) Message-ID: <42804C19.1060506@ec.rr.com> Date: Tue, 10 May 2005 01:52:25 -0400 From: jason henson User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050426) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Amandeep References: <427FA802.90805@chamkila.org> In-Reply-To: <427FA802.90805@chamkila.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Symantec AntiVirus Scan Engine cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: Low HDD tranfer rate with FreeBSD 5.3-Release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 05:40:33 -0000 Amandeep wrote: > Hi all, > > I am using Tyan S2098 MB with 160GB Maxtor ATA Drive and the transfer > rate is very low. FreeBSD 5.3-Release. > Any ideas what is going on here. > > The transfer rate is about 15MB/s > > when I run > #dd if=/dev/zero of=/usr/junk bs=8192 > > then do > #iostat 1 > _______________________________________________ > 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" > Check the performance archive for a long thread on disk tweaking. sysctl vfs.read_max=32 should give you a good boost, but read that thread being attempting this. There was another tweak in there I found interesting, but can be dangerous. I'll let you look that one up. From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 13:30:50 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3607E16A4D7 for ; Tue, 10 May 2005 13:30:50 +0000 (GMT) Received: from eva.fit.vutbr.cz (eva.fit.vutbr.cz [147.229.10.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id E8C0A43D3F for ; Tue, 10 May 2005 13:30:48 +0000 (GMT) (envelope-from xdivac02@stud.fit.vutbr.cz) Received: from eva.fit.vutbr.cz (localhost [127.0.0.1]) (8.13.4/8.13.3) with ESMTP id j4ADUeiL098828 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 10 May 2005 15:30:40 +0200 (CEST) Received: (from xdivac02@localhost) by eva.fit.vutbr.cz (8.13.4/8.13.3/Submit) id j4ADUeRF098827; Tue, 10 May 2005 15:30:40 +0200 (CEST) Date: Tue, 10 May 2005 15:30:40 +0200 From: Divacky Roman To: Siddharth Aggarwal Message-ID: <20050510133040.GA98680@stud.fit.vutbr.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i X-Scanned-By: MIMEDefang 2.49 on 147.229.10.14 cc: freebsd-hackers@freebsd.org Subject: Re: ffs snapshots X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 13:30:50 -0000 On Mon, May 09, 2005 at 09:43:02AM -0600, Siddharth Aggarwal wrote: > > Hi, > > I was wondering why the limit for file system snapshots in BSD 5 has been > set to 20. Is it a limitation due to the way this feature has been > implemented? use the force, read the source ;) /* * The maximum number of snapshot nodes that can be associated * with each filesystem. This limit affects only the number of * snapshot files that can be recorded within the superblock so * that they can be found when the filesystem is mounted. However, * maintaining too many will slow the filesystem performance, so * having this limit is a good idea. */ #define FSMAXSNAP 20 From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 17:23:43 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E1CC16A4CE for ; Tue, 10 May 2005 17:23:43 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 420A043D3F for ; Tue, 10 May 2005 17:23:42 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001399701.msg for ; Tue, 10 May 2005 18:18:44 +0100 Message-ID: <00f501c55584$d8e97630$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: Date: Tue, 10 May 2005 18:22:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Tue, 10 May 2005 18:18:44 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Tue, 10 May 2005 18:18:45 +0100 Subject: make release changes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 17:23:43 -0000 My old make release command no longer works for 5.4 and I'm at a loss to track down the cause or to find a nice solution. Basically I have one build box which builds all the various releases structure: /usr/$VERSION/src /usr/$VERSION/obj e.g. /usr/5.4/src /usr/5.4/obj With all the relavent files. This used to work fine with the following release line: make release \ BUILDNAME=$VERSION-RELEASE \ CHROOTDIR=/usr/local/release-$VERSION \ CVSROOT=/home/ncvs \ RELEASETAG=RELENG_$TAG \ NOPORTS=YES DOC_LANG=en_US.ISO8859-1 \ MAKE_ISOS=1 \ WORLDDIR=/usr/$VERSION/src \ NODOC=YES N.B. MAKEOBJDIRPREFIX=/usr/$VERSION/obj This now produces: ===> lib ===> lib/csu/i386-elf make: don't know how to make /usr/obj/usr/src/i386/usr/include/stdlib.h. Stop This is obviously wrong as it should be /usr/5.4/usr/5.4/src/.... so some how MAKEOBJDIRPREFIX and WORLDDIR are getting lost. Anyone seen this before? With some symlinks I can get it to continue but this shouldn't be required and didn't use to be so I can only assume that something has broken the release process. Steve ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Tue May 10 21:48:20 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9E73016A4CE for ; Tue, 10 May 2005 21:48:20 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 929E043D7B for ; Tue, 10 May 2005 21:48:19 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001400274.msg for ; Tue, 10 May 2005 22:43:26 +0100 Message-ID: <012001c555a9$d439a9f0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: References: <00f501c55584$d8e97630$b3db87d4@multiplay.co.uk> Date: Tue, 10 May 2005 22:47:10 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Tue, 10 May 2005 22:43:26 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Tue, 10 May 2005 22:43:26 +0100 Subject: Re: make release changes? ( broken? ) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 21:48:20 -0000 Also once this is fudged with the symlinks I get: ===> gnu/usr.bin/cc/doc cd /usr/src/gnu/usr.bin/cc/doc; make install -DNO_SUBDIR DESTDIR=/R/stage/trees/base SHARED=copies install-info --quiet --defsection="Gcc Documentation" --defentry="* gcc: (gcc). The GNU C compiler." gcc.info /R/stage/trees/base/usr/share/info/dir install-info --quiet --defsection="Gcc Documentation" --defentry="* cpp: (cpp). The GNU C pre-processor." cpp.info /R/stage/trees/base/usr/share/info/dir install-info --quiet --defsection="Gcc Documentation" --defentry="* cppinternals: (cppinternals). The GNU compiler preprocessor internal documentation." cppinternals.info /R/stage/trees/base/usr/share/info/dir install-info --quiet --defsection="Gcc Documentation" --defentry="* gccint: (gccint). The GNU compiler family internal documentation." gccint.info /R/stage/trees/base/usr/share/info/dir install-info: /R/stage/trees/base/usr/share/info/dir: empty file *** Error code 1 1 error Not found a workaround for this one yet. ----- Original Message ----- From: "Steven Hartland" To: Sent: Tuesday, May 10, 2005 6:22 PM Subject: make release changes? > My old make release command no longer works for 5.4 and I'm at a loss > to track down the cause or to find a nice solution. > Basically I have one build box which builds all the various releases structure: > /usr/$VERSION/src > /usr/$VERSION/obj > e.g. > /usr/5.4/src > /usr/5.4/obj > With all the relavent files. This used to work fine with the following release line: > make release \ > BUILDNAME=$VERSION-RELEASE \ > CHROOTDIR=/usr/local/release-$VERSION \ > CVSROOT=/home/ncvs \ > RELEASETAG=RELENG_$TAG \ > NOPORTS=YES > DOC_LANG=en_US.ISO8859-1 \ > MAKE_ISOS=1 \ > WORLDDIR=/usr/$VERSION/src \ > NODOC=YES > > N.B. MAKEOBJDIRPREFIX=/usr/$VERSION/obj > > This now produces: > ===> lib > ===> lib/csu/i386-elf > make: don't know how to make /usr/obj/usr/src/i386/usr/include/stdlib.h. Stop > > This is obviously wrong as it should be /usr/5.4/usr/5.4/src/.... so some how > MAKEOBJDIRPREFIX and WORLDDIR are getting lost. Anyone seen this > before? > > With some symlinks I can get it to continue but this shouldn't be required and > didn't use to be so I can only assume that something has broken the release > process. > > Steve > > > > > > ================================================ > This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the > event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any > information contained in it. > In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 > or return the E.mail to postmaster@multiplay.co.uk. > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 02:25:38 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 293DB16A4CE for ; Wed, 11 May 2005 02:25:38 +0000 (GMT) Received: from bloodwood.hunterlink.net.au (smtp-local.hunterlink.net.au [203.12.144.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id D8AE843D54 for ; Wed, 11 May 2005 02:25:36 +0000 (GMT) (envelope-from boris@brooknet.com.au) Received: from ppp288A.dyn.pacific.net.au (ppp288A.dyn.pacific.net.au [61.8.40.138])j4B2PWDm013202; Wed, 11 May 2005 12:25:33 +1000 From: Sam Lawrance To: Steven Hartland In-Reply-To: <00f501c55584$d8e97630$b3db87d4@multiplay.co.uk> References: <00f501c55584$d8e97630$b3db87d4@multiplay.co.uk> Content-Type: text/plain Date: Wed, 11 May 2005 12:26:07 +1000 Message-Id: <1115778368.62964.17.camel@dirk.no.domain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.2 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: make release changes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 02:25:38 -0000 On Tue, 2005-05-10 at 18:22 +0100, Steven Hartland wrote: > My old make release command no longer works for 5.4 and I'm at a loss > to track down the cause or to find a nice solution. > Basically I have one build box which builds all the various releases structure: > /usr/$VERSION/src > /usr/$VERSION/obj > e.g. > /usr/5.4/src > /usr/5.4/obj > With all the relavent files. This used to work fine with the following release line: > make release \ > BUILDNAME=$VERSION-RELEASE \ > CHROOTDIR=/usr/local/release-$VERSION \ > CVSROOT=/home/ncvs \ > RELEASETAG=RELENG_$TAG \ > NOPORTS=YES > DOC_LANG=en_US.ISO8859-1 \ > MAKE_ISOS=1 \ > WORLDDIR=/usr/$VERSION/src \ > NODOC=YES > > N.B. MAKEOBJDIRPREFIX=/usr/$VERSION/obj > > This now produces: > ===> lib > ===> lib/csu/i386-elf > make: don't know how to make /usr/obj/usr/src/i386/usr/include/stdlib.h. Stop > > This is obviously wrong as it should be /usr/5.4/usr/5.4/src/.... so some how > MAKEOBJDIRPREFIX and WORLDDIR are getting lost. Anyone seen this > before? Missing a backslash on the end of NOPORTS=YES? From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 08:01:44 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D5DE16A4CE; Wed, 11 May 2005 08:01:44 +0000 (GMT) Received: from heechee.tobez.org (heechee.tobez.org [217.157.39.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E47F43D49; Wed, 11 May 2005 08:01:43 +0000 (GMT) (envelope-from tobez@tobez.org) Received: by heechee.tobez.org (Postfix, from userid 1001) id E95B5125475; Wed, 11 May 2005 10:01:41 +0200 (CEST) Date: Wed, 11 May 2005 10:01:41 +0200 From: Anton Berezin To: Denis Peplin Message-ID: <20050511080141.GA20520@heechee.tobez.org> References: <427743ED.6020200@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <427743ED.6020200@FreeBSD.org> User-Agent: Mutt/1.4.2.1i X-Powered-By: FreeBSD http://www.freebsd.org/ cc: hackers@FreeBSD.org Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 08:01:44 -0000 On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: > The mergemaster with this is test patch (attached) > can auto-update files that was not modified. Please also see http://www.freebsd.org/cgi/getmsg.cgi?fetch=0+0+/usr/local/www/db/text/2005/freebsd-audit/20050116.freebsd-audit Dougb at some point promised to get back with his comments, but it never happened. :-( \Anton. -- The moronity of the universe is a monotonically increasing function. -- Jarkko Hietaniemi From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 08:52:29 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B508716A4CE for ; Wed, 11 May 2005 08:52:29 +0000 (GMT) Received: from melon.pingpong.net (82.milagro.bahnhof.net [195.178.168.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3074743D60 for ; Wed, 11 May 2005 08:52:29 +0000 (GMT) (envelope-from girgen@FreeBSD.org) Received: from localhost (localhost.pingpong.net [127.0.0.1]) by melon.pingpong.net (Postfix) with ESMTP id 983984ADCA for ; Wed, 11 May 2005 10:52:27 +0200 (CEST) Received: from melon.pingpong.net ([127.0.0.1]) by localhost (melon.pingpong.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 24667-02-11 for ; Wed, 11 May 2005 10:52:27 +0200 (CEST) Received: from palle.girgensohn.se (1-2-8-5a.asp.sth.bostream.se [82.182.157.66]) by melon.pingpong.net (Postfix) with ESMTP id 6543D4ADB2 for ; Wed, 11 May 2005 10:52:27 +0200 (CEST) Date: Wed, 11 May 2005 10:52:26 +0200 From: Palle Girgensohn To: hackers@freebsd.org Message-ID: X-Mailer: Mulberry/3.1.6 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: by amavisd-new at pingpong.net Subject: Does thread safety give any performance penalties? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 08:52:29 -0000 Hi! Please see discussion on postgresql hackers list below. Anyone with better knowledge about this might have some input here? Thanks, Palle ---------- Forwarded Message ---------- Date: onsdag, maj 11, 2005 00.58.38 -0400 From: Tom Lane To: Bruce Momjian Subject: Re: [HACKERS] --enable-thread-safety? Bruce Momjian writes: > Palle Girgensohn wrote: >> Need a piece of advice here. I'm wrapping up the ports for FreeBSD, and >> jus wonder if it is perhaps clever to always add --enable-thread-safety >> to the configure args. Is there a big enough penalty for having it off >> by default, or can I just have it on always? > I don't think there is any real penalty in PostgreSQL for having it on. > I don't know what the operating system overhead is on FreeBSD. More to the point: the overhead if any is all at the libc level. If your libc is such that there isn't any penalty for thread support (perhaps better stated "you pay the overhead whether you want it or not") then go for it. I believe this is the case in recent Linuxen, but I don't know the state of play in BSDen. regards, tom lane ---------- End Forwarded Message ---------- From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 12:00:39 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8A4F16A4D3 for ; Wed, 11 May 2005 12:00:39 +0000 (GMT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id D5BC343D62 for ; Wed, 11 May 2005 12:00:38 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v8.0.2.R) with ESMTP id md50001401435.msg for ; Wed, 11 May 2005 12:56:41 +0100 Message-ID: <002e01c55621$06ff95d0$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: "Sam Lawrance" References: <00f501c55584$d8e97630$b3db87d4@multiplay.co.uk> <1115778368.62964.17.camel@dirk.no.domain> Date: Wed, 11 May 2005 13:00:26 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-Spam-Processed: multiplay.co.uk, Wed, 11 May 2005 12:56:41 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: freebsd-hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Wed, 11 May 2005 12:56:43 +0100 cc: freebsd-hackers@freebsd.org Subject: Re: make release changes? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 12:00:39 -0000 Nar that was just me formatting it for mail commands all on one line but thanks for the idea :) Steve ----- Original Message ----- From: "Sam Lawrance" > > Missing a backslash on the end of NOPORTS=YES? ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 08:00:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86A8516A4D1 for ; Wed, 11 May 2005 08:00:30 +0000 (GMT) Received: from smtp.andrew.cmu.edu (smtp.andrew.cmu.edu [128.2.10.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAB5B43D76 for ; Wed, 11 May 2005 08:00:29 +0000 (GMT) (envelope-from dga+@cs.cmu.edu) Received: from [192.168.15.50] (dsl093-060-134.pit1.dsl.speakeasy.net [66.93.60.134]) (user=dga2 mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.12.10/8.12.10) with ESMTP id j4B80TLG032119 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 11 May 2005 04:00:29 -0400 Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: <90204a4c376919189910f8a570d65f48@cs.cmu.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-hackers@freebsd.org From: David Andersen Date: Wed, 11 May 2005 03:59:56 -0400 X-Mailer: Apple Mail (2.622) X-Mailman-Approved-At: Wed, 11 May 2005 12:39:13 +0000 Subject: Panic when removing Airprime PC5220 card (usb hub). X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 08:00:30 -0000 I'm hacking up a quick and dirty driver for the AirPrime PC5220 (EVDO / 1xRTT) card, but I'm encountering a crash unrelated to my driver. The card is a pc card that presents itself as a USB hub with one device hanging off of it. Removing the card from the system causes a kernel panic. The backtrace looks something like: kobj_delete+0xb device_delete_child + 0x98 usb_disconnect_port + 0xf3 uhub_detach + 0x7a device_detach + 0x57 device_delete_child + 0x2b device_delete_child + 0x17 ohci_pci_detach + 0x85 device_detach + 0x57 cardbus_detach_card + 0x93 cbb_removal + 0x6f cbb_event_thread + 0xb6 fork_exit + 0x74 fork_trampoline() + 0x8 trap 0x1 eip = 0 esp = 0xedf66d6c (sorry for the poor formatting; I don't have serial debug support at the moment to copy-paste. :) If someone with more familiarity with the device framework looks at this and says, "ah! I know exactly what that bug is," I'd love it if you'd let me know so I can go back to the usb side of things. For my application, I'm actually quite content saying "don't remove the card," but I think that most users of this card are mobile, and would like to be able to disconnect it. (please CC: me; I'm not on the list any more). Thanks! -Dave From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 14:26:27 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8ADAC16A4D0 for ; Wed, 11 May 2005 14:26:27 +0000 (GMT) Received: from swip.net (mailfe04.swip.net [212.247.154.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id C0A0843D76 for ; Wed, 11 May 2005 14:26:26 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-233-228.daxnet.no ([193.217.233.228] verified) by mailfe04.swip.net (CommuniGate Pro SMTP 4.3c5) with ESMTP id 363511421; Wed, 11 May 2005 16:26:24 +0200 From: Hans Petter Selasky To: freebsd-hackers@freebsd.org Date: Wed, 11 May 2005 16:27:01 +0200 User-Agent: KMail/1.7 References: <90204a4c376919189910f8a570d65f48@cs.cmu.edu> In-Reply-To: <90204a4c376919189910f8a570d65f48@cs.cmu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505111627.04961.hselasky@c2i.net> cc: David Andersen Subject: Re: Panic when removing Airprime PC5220 card (usb hub). X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 14:26:27 -0000 On Wednesday 11 May 2005 09:59, David Andersen wrote: > I'm hacking up a quick and dirty driver for the AirPrime PC5220 (EVDO / > 1xRTT) card, but I'm encountering a crash unrelated to my driver. The > card is a pc card that presents itself as a USB hub with one device > hanging off of it. Removing the card from the system causes a kernel > panic. The backtrace looks something like: > > kobj_delete+0xb > device_delete_child + 0x98 > usb_disconnect_port + 0xf3 > uhub_detach + 0x7a > device_detach + 0x57 > device_delete_child + 0x2b > device_delete_child + 0x17 > ohci_pci_detach + 0x85 > device_detach + 0x57 > cardbus_detach_card + 0x93 > cbb_removal + 0x6f > cbb_event_thread + 0xb6 > fork_exit + 0x74 > fork_trampoline() + 0x8 > trap 0x1 eip = 0 esp = 0xedf66d6c > > (sorry for the poor formatting; I don't have serial debug support at > the moment to copy-paste. :) > I think that the existing USB driver does not allow USB-controllers to be detached. At least the root-hub does not allow this. And when they try to detach, the devices are deleted twice (which is due to the fact that the code was ported from NetBSD, which bus interface is a little different). But I've got a USB driver that might fix that, if you want to try that: Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 You need FreeBSD-5/6 to get it compiled. Yours --HPS From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 15:17:52 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F05FF16A4CE for ; Wed, 11 May 2005 15:17:52 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E69343D46 for ; Wed, 11 May 2005 15:17:52 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j4BFGSHq086923; Wed, 11 May 2005 09:16:28 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 11 May 2005 09:17:34 -0600 (MDT) Message-Id: <20050511.091734.90823828.imp@bsdimp.com> To: hselasky@c2i.net From: "M. Warner Losh" In-Reply-To: <200505111627.04961.hselasky@c2i.net> References: <90204a4c376919189910f8a570d65f48@cs.cmu.edu> <200505111627.04961.hselasky@c2i.net> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@FreeBSD.org cc: dga+@cs.cmu.edu Subject: Re: Panic when removing Airprime PC5220 card (usb hub). X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 15:17:53 -0000 In message: <200505111627.04961.hselasky@c2i.net> Hans Petter Selasky writes: : On Wednesday 11 May 2005 09:59, David Andersen wrote: : > I'm hacking up a quick and dirty driver for the AirPrime PC5220 (EVDO / : > 1xRTT) card, but I'm encountering a crash unrelated to my driver. The : > card is a pc card that presents itself as a USB hub with one device : > hanging off of it. Removing the card from the system causes a kernel : > panic. The backtrace looks something like: : > : > kobj_delete+0xb : > device_delete_child + 0x98 : > usb_disconnect_port + 0xf3 : > uhub_detach + 0x7a : > device_detach + 0x57 : > device_delete_child + 0x2b : > device_delete_child + 0x17 : > ohci_pci_detach + 0x85 : > device_detach + 0x57 : > cardbus_detach_card + 0x93 : > cbb_removal + 0x6f : > cbb_event_thread + 0xb6 : > fork_exit + 0x74 : > fork_trampoline() + 0x8 : > trap 0x1 eip = 0 esp = 0xedf66d6c : > : > (sorry for the poor formatting; I don't have serial debug support at : > the moment to copy-paste. :) : > : I think that the existing USB driver does not allow USB-controllers to be : detached. At least the root-hub does not allow this. And when they try to : detach, the devices are deleted twice (which is due to the fact that the code : was ported from NetBSD, which bus interface is a little different). Actually, -current has fixed both of these problems. At least that's what my looking at the source shows in addition to being the one to make the fixes... Warner From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 15:29:46 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D03C816A4CE for ; Wed, 11 May 2005 15:29:46 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 675BB43D7B for ; Wed, 11 May 2005 15:29:46 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j4BFRHur087027; Wed, 11 May 2005 09:27:17 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 11 May 2005 09:28:23 -0600 (MDT) Message-Id: <20050511.092823.84364273.imp@bsdimp.com> To: dga+@cs.cmu.edu From: "M. Warner Losh" In-Reply-To: References: <200505111627.04961.hselasky@c2i.net> <20050511.091734.90823828.imp@bsdimp.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@FreeBSD.org cc: hselasky@c2i.net Subject: Re: Panic when removing Airprime PC5220 card (usb hub). X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 15:29:46 -0000 In message: David Andersen writes: : On May 11, 2005, at 11:17 AM, M. Warner Losh wrote: : : > In message: <200505111627.04961.hselasky@c2i.net> : > Hans Petter Selasky writes: : > : On Wednesday 11 May 2005 09:59, David Andersen wrote: : > : > I'm hacking up a quick and dirty driver for the AirPrime PC5220 : > (EVDO / : > : > 1xRTT) card, but I'm encountering a crash unrelated to my driver. : > The : > : > card is a pc card that presents itself as a USB hub with one device : > : > hanging off of it. Removing the card from the system causes a : > kernel : > : > panic.: : : > > : > : I think that the existing USB driver does not allow USB-controllers : > to be : > : detached. At least the root-hub does not allow this. And when they : > try to : > : detach, the devices are deleted twice (which is due to the fact that : > the code : > : was ported from NetBSD, which bus interface is a little different). : > : > Actually, -current has fixed both of these problems. At least that's : > what my looking at the source shows in addition to being the one to : > make the fixes... : : Ahh, great. Thank you - I should have mentioned that I was using : -stable, but that was probably apparent if you fixed the problem : already. Are these changes something I could backport easily, or do : they depend on other -current changes? I'm unsure. The detach fix is easy (it was a one liner). I thought I'd already ported the free it twice problem back to stable. However, I'm a little swamped so progress in the area may be slow. Warner From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 19:19:14 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3BB516A4CE for ; Wed, 11 May 2005 19:19:14 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.195]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8953F43D55 for ; Wed, 11 May 2005 19:19:14 +0000 (GMT) (envelope-from maslanbsd@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so331040wra for ; Wed, 11 May 2005 12:19:14 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=SmvNwpo12VZoENJm+YCsOv2dDw3toGb54FIZhUdYoRdta2MXQxmUbdbzj6ifMo9aA6NkE/mPwAnKuglPbNAgv1R6SzsfA+0eHhPYBx8S32BIKe3VTSOpkoqxUmw91iWutbFB71gZ6XVohuSoUYcxlhG/Zd6aBvRJ9dQmtwTUZhA= Received: by 10.54.24.31 with SMTP id 31mr633159wrx; Wed, 11 May 2005 12:19:14 -0700 (PDT) Received: by 10.54.99.7 with HTTP; Wed, 11 May 2005 12:19:14 -0700 (PDT) Message-ID: <319cceca05051112194f5ab92e@mail.gmail.com> Date: Wed, 11 May 2005 22:19:14 +0300 From: Maslan To: FreeBSD Hackers Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: files refused to delete X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maslan List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 19:19:15 -0000 i've booted in single mode and ran fsck but this didn't fixed the problem but fsck prints the inode of the corrupted file, so i used clri and removed the inode then ran fsck again , and everything was ok. but after rebooting : 1)in multiuser: and running fsck it output an error 2)in single: and running fsck , no problem --=20 I'm Searching For Perfection, So Even If U Need Portability U've To Use Assembly ;-) http://www.maslanlab.org From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 04:02:12 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EBB9916A4CE for ; Thu, 12 May 2005 04:02:12 +0000 (GMT) Received: from smtp.andrew.cmu.edu (smtp.andrew.cmu.edu [128.2.10.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C61543D67 for ; Thu, 12 May 2005 04:02:12 +0000 (GMT) (envelope-from dga+@cs.cmu.edu) Received: from [192.168.15.50] (dsl093-060-134.pit1.dsl.speakeasy.net [66.93.60.134]) (user=dga2 mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.12.10/8.12.10) with ESMTP id j4C42AhV009096 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 12 May 2005 00:02:11 -0400 Mime-Version: 1.0 (Apple Message framework v622) Content-Transfer-Encoding: 7bit Message-Id: <30cdb79b408d7736a392342696db90c0@cs.cmu.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-hackers@freebsd.org From: David Andersen Date: Thu, 12 May 2005 00:01:36 -0400 X-Mailer: Apple Mail (2.622) Subject: hacked up "driver" for AirPrime / Audiovox PC5220 EVDO card X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 04:02:13 -0000 As a bit of a followup to my earlier post - I've cobbled together a brief howto + driver for the AirPrime PC5220 EVDO card for FreeBSD. The code is just a stripped down version of the existing uplcom.c driver - the EVDO card looks like a serial port, but it doesn't actually need things like dtr, etc., since there's not a real serial device attached. In essense, all the resulting driver does is find the USB device IDs and attach them to a ucom. So the code is kind of ugly and stupid, but I'm sure someone could make something elegant from it. :-) It works - I've had pings running through it for the last day or so - but I haven't tested it extensively. The thread I started earlier about the "remove the card and the machine crashes" bug with the USB subsystem probably makes it a little less attractive until that's fixed too. Tested only under -stable near 5.4 release. http://www.cs.cmu.edu/~dga/dot/fbsd_pc5220/ (If anyone could test it in an EVDO-enabled area and see if bumping the bitrate up in their PPP config just works like I think it should, let me know! You should be able to get a full speed EVDO connection... I think.) -Dave From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 09:24:16 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AEE5816A4D0 for ; Thu, 12 May 2005 09:24:16 +0000 (GMT) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 64D2E43D6A for ; Thu, 12 May 2005 09:24:14 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.43 (FreeBSD)) id 1DWA90-000NS1-6y for freebsd-hackers@FreeBSD.org; Thu, 12 May 2005 18:38:14 +0900 Message-Id: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Thu, 12 May 2005 18:23:55 +0900 To: freebsd-hackers@FreeBSD.org From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: upload speed test problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 09:24:16 -0000 Hi hackers, I thought somebody in this list could help me. I looked through Java forums at java.sun.com, and didn't find any solution. I'm writing speed test program in Java, and my upload speed test shows wrong result for Dial-up connection. It uses POST method and sends large data (128k) to Apache 1.3.x web server (FreeBSD). The web page is php script and it receives large data correct, but test time is "very" fast. Result is unbelievable, it is something like 500kbps for 56kbps Dial-Up connection, which is completely wrong. Can somebody tell me why is this happening? How can I correct this problem? How can I calculate my upload speed? What data size should I use for testing? I hope somebody in this list point me to the right direction. Maybe I'm doing something wrong, or missing something. thanks in advance, Ganbold Part of the Java code: ........... buffer_len = 128*1024; starttime1 = System.currentTimeMillis(); URL url = new URL(web_site); URLConnection connection = url.openConnection(); connection.setDoOutput(true); PrintWriter out = new PrintWriter(connection.getOutputStream()); out.print("test="); for(i=0; i Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0957C16A4CE for ; Thu, 12 May 2005 09:28:03 +0000 (GMT) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id C19E843D70 for ; Thu, 12 May 2005 09:28:01 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.43 (FreeBSD)) id 1DWACh-000NUj-A6 for freebsd-hackers@FreeBSD.org; Thu, 12 May 2005 18:42:03 +0900 Message-Id: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Thu, 12 May 2005 18:26:35 +0900 To: freebsd-hackers@FreeBSD.org From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: upload speed test problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 09:28:03 -0000 Hi hackers, I thought somebody in this list could help me. I looked through Java forums at java.sun.com, and didn't find any solution. I'm writing speed test program in Java, and my upload speed test shows wrong result for Dial-up connection. It uses POST method and sends large data (128k) to Apache 1.3.x web server (FreeBSD). The web page is php script and it receives large data correct, but test time is "very" fast. Result is unbelievable, it is something like 500kbps for 56kbps Dial-Up connection, which is completely wrong. Can somebody tell me why is this happening? How can I correct this problem? How can I calculate my upload speed? What data size should I use for testing? I hope somebody in this list point me to the right direction. Maybe I'm doing something wrong, or missing something. thanks in advance, Ganbold Part of the Java code: ........... buffer_len = 128*1024; starttime1 = System.currentTimeMillis(); URL url = new URL(web_site); URLConnection connection = url.openConnection(); connection.setDoOutput(true); PrintWriter out = new PrintWriter(connection.getOutputStream()); out.print("test="); for(i=0; i Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D0C116A4CE for ; Thu, 12 May 2005 09:30:02 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F4D943D5A for ; Thu, 12 May 2005 09:30:02 +0000 (GMT) (envelope-from cristiano.deana@gmail.com) Received: by wproxy.gmail.com with SMTP id 49so388149wri for ; Thu, 12 May 2005 02:30:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=PRGG1zbL5fzcg3nsQkIEZyPh7zFeIOi9wdqR+bCI8ZOdxyZCtRVs0+b5p4QGMa2b7cka0OBFlu3mllPtDWicm1u6nVdrQQ530VhnWNXj25EahXrTvV2ozufUk97ihKpEi2+1f3I/46sjmquTRFIHIFiZsz2ALYwXfIKy5qgFXTo= Received: by 10.54.19.67 with SMTP id 67mr1469016wrs; Thu, 12 May 2005 02:30:01 -0700 (PDT) Received: by 10.54.59.12 with HTTP; Thu, 12 May 2005 02:30:01 -0700 (PDT) Message-ID: Date: Thu, 12 May 2005 11:30:01 +0200 From: Cristiano Deana To: freebsd-hackers@freebsd.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: Subject: gmirror problem: DEVFS Overflow table X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Cristiano Deana List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 09:30:02 -0000 Hi, I have a problem with gmirror in a 5.4-STABLE box: > uname -a FreeBSD bsd.mcomm.it 5.4-STABLE FreeBSD 5.4-STABLE #2: Tue May 10 12:41:29 CEST 2005 cris@bsd.mcomm.it:/usr/obj/usr/src/sys/FRODO i386 I have a system disk with full system and two scsi disk that i want to mirr= or. What i did: bsd# gmirror label -v -b round-robin sql da0 da1 Metadata value stored on da0. Metadata value stored on da1. Done. bsd# kldstat Id Refs Address Size Name 1 3 0xc0400000 35277c kernel 2 14 0xc0753000 56270 acpi.ko bsd# gmirror load Here stop to response Another console, /var/log/messages: May 12 10:41:07 bsd kernel: GEOM_MIRROR: Device sql created (id=3D518482993= ). May 12 10:41:07 bsd kernel: GEOM_MIRROR: Device sql: provider da1 detected. May 12 10:41:07 bsd kernel: GEOM_MIRROR: Device sql: provider da0 detected. May 12 10:41:07 bsd kernel: GEOM_MIRROR: Device sql: provider da1 activated= . May 12 10:41:07 bsd kernel: GEOM_MIRROR: Device sql: provider da0 activated= . May 12 10:41:07 bsd kernel: GEOM_MIRROR: Device sql: provider mirror/sql launched. May 12 10:41:14 bsd kernel: DEVFS Overflow table with 32768 entries allocat= ed Any help? Tnx in advance. -- Cris, member of G.U.F.I Italian FreeBSD User Group http://www.gufi.org/ From owner-freebsd-hackers@FreeBSD.ORG Wed May 11 15:22:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D2D4116A4CE for ; Wed, 11 May 2005 15:22:08 +0000 (GMT) Received: from smtp.andrew.cmu.edu (smtp.andrew.cmu.edu [128.2.10.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B29D43D66 for ; Wed, 11 May 2005 15:22:08 +0000 (GMT) (envelope-from dga+@cs.cmu.edu) Received: from [192.168.15.50] (dsl093-060-134.pit1.dsl.speakeasy.net [66.93.60.134]) (user=dga2 mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.12.10/8.12.10) with ESMTP id j4BFM1hV008334 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT); Wed, 11 May 2005 11:22:03 -0400 In-Reply-To: <20050511.091734.90823828.imp@bsdimp.com> References: <90204a4c376919189910f8a570d65f48@cs.cmu.edu> <200505111627.04961.hselasky@c2i.net> <20050511.091734.90823828.imp@bsdimp.com> Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: David Andersen Date: Wed, 11 May 2005 11:21:28 -0400 To: "M. Warner Losh" X-Mailer: Apple Mail (2.622) X-Mailman-Approved-At: Thu, 12 May 2005 12:05:28 +0000 cc: freebsd-hackers@FreeBSD.org cc: hselasky@c2i.net Subject: Re: Panic when removing Airprime PC5220 card (usb hub). X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 May 2005 15:22:09 -0000 On May 11, 2005, at 11:17 AM, M. Warner Losh wrote: > In message: <200505111627.04961.hselasky@c2i.net> > Hans Petter Selasky writes: > : On Wednesday 11 May 2005 09:59, David Andersen wrote: > : > I'm hacking up a quick and dirty driver for the AirPrime PC5220 > (EVDO / > : > 1xRTT) card, but I'm encountering a crash unrelated to my driver. > The > : > card is a pc card that presents itself as a USB hub with one device > : > hanging off of it. Removing the card from the system causes a > kernel > : > panic.: > > > : I think that the existing USB driver does not allow USB-controllers > to be > : detached. At least the root-hub does not allow this. And when they > try to > : detach, the devices are deleted twice (which is due to the fact that > the code > : was ported from NetBSD, which bus interface is a little different). > > Actually, -current has fixed both of these problems. At least that's > what my looking at the source shows in addition to being the one to > make the fixes... Ahh, great. Thank you - I should have mentioned that I was using -stable, but that was probably apparent if you fixed the problem already. Are these changes something I could backport easily, or do they depend on other -current changes? -Dave From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 07:37:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ECDFE16A4CE for ; Thu, 12 May 2005 07:37:18 +0000 (GMT) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5EACF43D46 for ; Thu, 12 May 2005 07:37:18 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 85F682FD09 for ; Thu, 12 May 2005 09:37:17 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 7A8FC2FD06for ; Thu, 12 May 2005 09:37:17 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id F28441E32D8for ; Thu, 12 May 2005 09:37:16 +0200 (CEST) Message-ID: <428307A9.10901@atempo.com> Date: Thu, 12 May 2005 09:37:13 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: hackers@FreeBSD.org X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------040908030904050303010500 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Mailman-Approved-At: Thu, 12 May 2005 12:05:28 +0000 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 07:37:19 -0000 This is a multi-part message in MIME format. --------------040908030904050303010500 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit we are porting our product on FreeBSD 5.3 it's a backup product which is still running on FreeBSD 4.0 here's a list of questions after checking the documentation 1) PAM it's working, the only problem is with the null password users, the answer is allways NO. the nullok doesn't seem active here is my PAM file auth required /usr/lib/pam_unix.so nullok account required /usr/lib/pam_unix.so nullok 2) ACLs I'm using the API acl_get_file and family with success with ACL_TYPE_ACCESS defined in /usr/include/sys/acl.h #define ACL_TYPE_ACCESS 0x00000000 #define ACL_TYPE_DEFAULT 0x00000001 #define ACL_TYPE_AFS 0x00000002 #define ACL_TYPE_CODA 0x00000003 #define ACL_TYPE_NTFS 0x00000004 #define ACL_TYPE_NWFS 0x00000005 but what about the other defines, specially ACL_TYPE_DEFAULT, are there used. I didn't find who in the documentation 3) Extended attributes are Acls part of these attributes or not ? do we have to backup theses attributes with the Acls ? 4) wait() API 2 problems, the first is a ECHILD error on a wait call after a fork fork The code is generic for most of unix system. Is there any specific problems to manage the fork and wait APIs ? the second problem with calls is a blocking wait() call in the same condition but this time the son process is finished but the wait call in the father stays blocked, again it's a generic Unix code If there is no evidence, ask me for more informations 5) where are generated the core files ? I change the kernel with the following command sysctl kern.corefile="/cores/%U/%P%N.core" 6) 2 last questions :-) what about files more than 4GB, do I need to use specific APIs as open64, stat64 or the current open and stat API are managing the big file ? I'm searching information on the implementation of Unicode (utf8?) in our file systems, UFS1, UFS2, ext2fs thanks by advanced for all hervé --------------040908030904050303010500-- From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 13:25:10 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B18216A4CE for ; Thu, 12 May 2005 13:25:10 +0000 (GMT) Received: from titan.whee.org (titan.whee.org [207.195.206.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD75B43D3F for ; Thu, 12 May 2005 13:25:09 +0000 (GMT) (envelope-from adam@whee.org) Received: from titan.whee.org (localhost [127.0.0.1]) by titan.whee.org (8.12.9/8.12.9) with ESMTP id j4CDAijX002251 for ; Thu, 12 May 2005 08:10:44 -0500 (CDT) Received: from localhost (adam@localhost) by titan.whee.org (8.12.9/8.12.9/Submit) with ESMTP id j4CDAheE002248 for ; Thu, 12 May 2005 08:10:43 -0500 (CDT) X-Authentication-Warning: titan.whee.org: adam owned process doing -bs Date: Thu, 12 May 2005 08:10:43 -0500 (CDT) From: Adam Maloney X-X-Sender: adam@titan To: freebsd-hackers@freebsd.org In-Reply-To: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> Message-ID: References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> X-GPG-FINGERPRINT: E39B 8D34 5F0A EA2E 4CCA 5B1D 8D55 7C25 0061 10AF X-GPG-PUBLIC_KEY: http://www.whee.org/~adam/adam-whee-org-pubkey.asc MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: upload speed test problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 13:25:10 -0000 On Thu, 12 May 2005, Ganbold wrote: > Result is unbelievable, it is something like 500kbps for 56kbps Dial-Up > connection, which is completely wrong. It looks like the form data that the client is POSTing is all "a", correct? The modem is probably compressing this data. I wrote a speed test in perl a number of years ago to do both upload and download testing. Here are some things I found, maybe they will help you: You must use data that doesn't compress well, or, as you've seen, dial-up modems will compress it and report speeds much higher than is possible. It is better to pre-generate the random data, rather than try and read from /dev/random on the fly. I realized that by having my script suck 5 or 10 megabytes of randomness out of /dev/random every time it ran, I was accelerating the heat-death of the universe. You don't want to cause the heat-death of the universe either, do you? (Actually, either pre-generate random files, or read from /dev/urandom, which doesn't block when it runs out of randomness) IE Sucks. The way my script worked was, I had a form page that the user selected the file size to test with, and hit Submit. This submitted to my CGI that generated a new HTML form with a hidden input field containing the random data of the size they selected. It also contained a hidden field with a timestamp of when the page began to execute. I used javascript to automatically submit the form when the page load completed. Mozilla would submit this form as soon as page load completed. For some odd reason, IE would wait a couple of seconds before submitting the data. So I had to (oh this is so ugly, I don't want to say it), define an IE fudge factor, and subtract a couple of seconds from the upload time if the client was IE. I also realized that I had to add a META tag to cause the pages not to be cached. Furthermore, I had to add something to look at the client's HTTP headers and look for signs of an HTTP proxy (proxies usually add a header or two, depending on how they're configured). If a proxy was detected, I could either spit out a warning to the user that the speeds reported could be inaccurate, or I could simply refuse to continue. On the plus side, overall the test worked pretty well. HTH, Adam From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 13:54:44 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 950AD16A4CE for ; Thu, 12 May 2005 13:54:44 +0000 (GMT) Received: from sender-01.it.helsinki.fi (sender-01.it.helsinki.fi [128.214.205.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id 91C8F43D1D for ; Thu, 12 May 2005 13:54:43 +0000 (GMT) (envelope-from juho.vuori@kepa.fi) Received: from [172.17.9.74] (vallila-gw.hupnet.helsinki.fi [128.214.173.238]) j4CDsfaI015300 for ; Thu, 12 May 2005 16:54:42 +0300 Message-ID: <42836020.4050500@kepa.fi> Date: Thu, 12 May 2005 16:54:40 +0300 From: Juho Vuori User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050512) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Finding out names of mountable devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 13:54:44 -0000 Tried on freebsd-questions without an answer. I suppose this is not doable, but I'll ask here anyway. If I plug in e.g. a USB thumb drive, which becomes, say, umass0. Normally something like /dev/da0 will also be created and slices of that device may be mounted. But is there a API for finding out what is the corresponding block device for umass devices? The device driver writes that to syslog, but reading logs for something like that is quite clumsy. Juho Vuori From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 15:32:06 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BC69416A4CE; Thu, 12 May 2005 15:32:05 +0000 (GMT) Received: from green.homeunix.org (green@localhost [127.0.0.1]) by green.homeunix.org (8.13.3/8.13.1) with ESMTP id j4CFW5vf087877; Thu, 12 May 2005 11:32:05 -0400 (EDT) (envelope-from green@green.homeunix.org) Received: (from green@localhost) by green.homeunix.org (8.13.3/8.13.1/Submit) id j4CFW4Wo087876; Thu, 12 May 2005 11:32:04 -0400 (EDT) (envelope-from green) Date: Thu, 12 May 2005 11:32:04 -0400 From: Brian Fundakowski Feldman To: Juho Vuori Message-ID: <20050512153204.GD2058@green.homeunix.org> References: <42836020.4050500@kepa.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42836020.4050500@kepa.fi> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Finding out names of mountable devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 15:32:06 -0000 On Thu, May 12, 2005 at 04:54:40PM +0300, Juho Vuori wrote: > Tried on freebsd-questions without an answer. I suppose this is not > doable, but I'll ask here anyway. > > If I plug in e.g. a USB thumb drive, which becomes, say, umass0. > Normally something like /dev/da0 will also be created and slices of that > device may be mounted. But is there a API for finding out what is the > corresponding block device for umass devices? The device driver writes > that to syslog, but reading logs for something like that is quite clumsy. One easy way is to look for changes in the GEOM topology: green# sysctl -b kern.geom.conftxt 0 DISK cd0 4627595264 2048 hd 0 sc 0 0 DISK ad0 164696555520 512 hd 16 sc 63 1 MBR ad0s1 164694749184 512 i 0 o 32256 ty 165 2 BSD ad0s1g 141340864512 512 i 6 o 23353884672 ty 7 2 BSD ad0s1f 21474836480 512 i 5 o 1879048192 ty 7 2 BSD ad0s1e 268435456 512 i 4 o 1610612736 ty 7 2 BSD ad0s1d 268435456 512 i 3 o 1342177280 ty 7 2 BSD ad0s1c 164694749184 512 i 2 o 0 ty 0 2 BSD ad0s1b 1073741824 512 i 1 o 0 ty 1 2 BSD ad0s1a 268435456 512 i 0 o 1073741824 ty 7 -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 16:42:27 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65E3B16A4CE for ; Thu, 12 May 2005 16:42:27 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61B4143D6D for ; Thu, 12 May 2005 16:42:26 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j4CGgM4J012150 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 12 May 2005 18:42:24 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j4CGfdhs072413 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 May 2005 18:41:39 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j4CGfc8t073237; Thu, 12 May 2005 18:41:38 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j4CGfcIW073236; Thu, 12 May 2005 18:41:38 +0200 (CEST) (envelope-from ticso) Date: Thu, 12 May 2005 18:41:38 +0200 From: Bernd Walter To: Juho Vuori Message-ID: <20050512164137.GA72550@cicely12.cicely.de> References: <42836020.4050500@kepa.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42836020.4050500@kepa.fi> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: freebsd-hackers@freebsd.org Subject: Re: Finding out names of mountable devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 16:42:27 -0000 On Thu, May 12, 2005 at 04:54:40PM +0300, Juho Vuori wrote: > Tried on freebsd-questions without an answer. I suppose this is not > doable, but I'll ask here anyway. > > If I plug in e.g. a USB thumb drive, which becomes, say, umass0. > Normally something like /dev/da0 will also be created and slices of that > device may be mounted. But is there a API for finding out what is the > corresponding block device for umass devices? The device driver writes > that to syslog, but reading logs for something like that is quite clumsy. camcontrol devlist -v The umass-sim instance numer should be identic to the umass one. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 18:48:29 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27D6716A4CE for ; Thu, 12 May 2005 18:48:29 +0000 (GMT) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id A34BB43D76 for ; Thu, 12 May 2005 18:48:28 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id j4CImHRn047470; Thu, 12 May 2005 13:48:17 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Received: from localhost (localhost [127.0.0.1]) by thor.farley.org (8.13.3/8.13.3) with ESMTP id j4CImEot002612; Thu, 12 May 2005 13:48:15 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Date: Thu, 12 May 2005 13:48:14 -0500 (CDT) From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= To: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= In-Reply-To: <428307A9.10901@atempo.com> Message-ID: <20050512134151.O2556@thor.farley.org> References: <428307A9.10901@atempo.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1023258206-1115923694=:2556" cc: hackers@freebsd.org Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 18:48:29 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1023258206-1115923694=:2556 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 12 May 2005, Herv=E9 Kergourlay wrote: > 4) wait() API > > 2 problems, the first is a ECHILD error on a wait call after a fork fork > The code is generic for most of unix system. Is there any specific proble= ms=20 > to manage the fork and wait APIs ? > the second problem with calls is a blocking wait() call in the same condi= tion=20 > but this time the son process is finished but the wait call in the father= =20 > stays blocked, again it's a generic Unix code > > If there is no evidence, ask me for more informations The second problem sounds like what I am encountering (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D77818) with zsh for my shell. You did suspend (sigsuspend()) SIGCHLD before the fork? By "fork fork", do you mean you fork twice? Se=E1n --=20 sean-freebsd@farley.org --0-1023258206-1115923694=:2556-- From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 19:55:11 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CC4C16A4CE for ; Thu, 12 May 2005 19:55:11 +0000 (GMT) Received: from smtpout-1.priv.cc.uic.edu (smtpout-1.cc.uic.edu [128.248.155.232]) by mx1.FreeBSD.org (Postfix) with SMTP id DE67243D73 for ; Thu, 12 May 2005 19:55:10 +0000 (GMT) (envelope-from zholla1@uic.edu) Received: (qmail 15000 invoked from network); 12 May 2005 14:55:08 -0500 Received: from icarus.cc.uic.edu (128.248.155.80) by smtpout-1.cc.uic.edu with SMTP; 12 May 2005 14:55:08 -0500 Date: Thu, 12 May 2005 14:55:08 -0500 (CDT) From: Zera William Holladay X-X-Sender: zholla1@icarus.cc.uic.edu To: freebsd-hackers@freebsd.org In-Reply-To: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> Message-ID: References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: upload speed test problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 19:55:11 -0000 On Thu, 12 May 2005, Ganbold wrote: > return showSpeed(starttime1,endtime1,"Upload",buffer_len); What does showSpeed() look like? -Zera Holladay From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 19:58:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D07616A4CE for ; Thu, 12 May 2005 19:58:28 +0000 (GMT) Received: from enterprise4.noxa.de (enterprise.noxa.de [212.60.197.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id E09E443D53 for ; Thu, 12 May 2005 19:58:24 +0000 (GMT) (envelope-from arundel@h3c.de) Received: (qmail 25225 invoked from network); 12 May 2005 21:58:23 +0200 Received: from p508fc814.dip.t-dialin.net (HELO localhost.skatecity) (80.143.200.20) by enterprise.noxa.de with AES256-SHA encrypted SMTP; 12 May 2005 21:58:23 +0200 Received: from localhost.skatecity (nobody@localhost.skatecity [127.0.0.1]) by localhost.skatecity (8.13.3/8.13.3) with ESMTP id j4CJwBEw061564 for ; Thu, 12 May 2005 21:58:11 +0200 (CEST) (envelope-from arundel@localhost.skatecity) Received: (from arundel@localhost) by localhost.skatecity (8.13.3/8.13.3/Submit) id j4CJwBOl061563 for freebsd-hackers@FreeBSD.org; Thu, 12 May 2005 21:58:11 +0200 (CEST) (envelope-from arundel) From: alexander Date: Thu, 12 May 2005 21:58:10 +0200 To: freebsd-hackers@FreeBSD.org Message-ID: <20050512195810.GA61334@skatecity> Mail-Followup-To: freebsd-hackers@FreeBSD.org References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> Subject: Accessing BIOS memory range X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 19:58:28 -0000 Hi there. I'm writing a little app in 32 bit x86 (386 minumum) assembly, where I need to access some memory in the BIOS range. The real address is 40h:6Ch (virtual = ((0x40<<4) | 0x6C)). Gaining access to the I/O ports isn't a big problem (open fd for /dev/io), but I don't know how to gain access to memory that isn't part of my user address space. Any hints? I heard that maybe /dev/mem or /dev/kmem might let me gain access to the BIOS memory, but 'man' tells me that the range is limited to the following range: 0x000a0000 to 0x00100000/0xf0000000 ?? Is it even possible to gain access to that memory area (of course as 'su'). I'd be really if somebody could give me a hint where I have to look (mem, kmem, io ???). Thx in advance. From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 20:51:59 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F074D16A4CE for ; Thu, 12 May 2005 20:51:59 +0000 (GMT) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9C8F843D5E for ; Thu, 12 May 2005 20:51:59 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18727 invoked from network); 12 May 2005 20:51:59 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 12 May 2005 20:51:59 -0000 Received: from [10.50.41.242] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j4CKpp4t067266; Thu, 12 May 2005 16:51:52 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Thu, 12 May 2005 16:05:43 -0400 User-Agent: KMail/1.8 References: <200504112003.25096.vs@rambler-co.ru> In-Reply-To: <200504112003.25096.vs@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505121605.44816.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: hackers@FreeBSD.org cc: Vladislav Shabanov Subject: Re: do-nothing code in sysv_shm.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 20:52:00 -0000 On Monday 11 April 2005 12:03 pm, Vladislav Shabanov wrote: > I`ve found the following code in sysv_shm.c : > > ............ > static void > shminit() > { > int i; > > TUNABLE_INT_FETCH("kern.ipc.shmmaxpgs", &shminfo.shmall); > for (i = PAGE_SIZE; i > 0; i--) { > shminfo.shmmax = shminfo.shmall * PAGE_SIZE; > if (shminfo.shmmax >= shminfo.shmall) > break; > } > TUNABLE_INT_FETCH("kern.ipc.shmmin", &shminfo.shmmin); > ......... > > IMHO, loop does nothing. Possible variant: > > #define shmall_bits (sizeof(shminfo.shmall)*8) > > if (0 == (shminfo.shmall & (~ ( (1<<(shmall_bits-PAGE_SHIFT-1)) - 1)))) { > /* if high PAGE_SHIFT+1 bits of shminfo.shmall is zero */ > shminfo.shmmax = shminfo.shmall << PAGE_SHIFT; > } else { > shminfo.shmmax = __INT_MAX; > } > > ------------------------------ > previous changes in this part of code: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sysv_shm.c.diff?r1=1.78& >r2=1.79&f=h > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sysv_shm.c.diff?r1=1.79& >r2=1.80&f=h _______________________________________________ > 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" After talking to Alfred, I just changed it to use 'i' rather than PAGE_SIZE in the loop as it's easy to follow and given that this code only runs once at boot it's not critical that it be fast. Thanks for the report! -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 20:52:00 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0464E16A4D0 for ; Thu, 12 May 2005 20:52:00 +0000 (GMT) Received: from mail25.sea5.speakeasy.net (mail25.sea5.speakeasy.net [69.17.117.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9CA5D43D60 for ; Thu, 12 May 2005 20:51:59 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18727 invoked from network); 12 May 2005 20:51:59 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 12 May 2005 20:51:59 -0000 Received: from [10.50.41.242] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j4CKpp4t067266; Thu, 12 May 2005 16:51:52 -0400 (EDT) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-hackers@FreeBSD.org Date: Thu, 12 May 2005 16:05:43 -0400 User-Agent: KMail/1.8 References: <200504112003.25096.vs@rambler-co.ru> In-Reply-To: <200504112003.25096.vs@rambler-co.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505121605.44816.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: hackers@FreeBSD.org cc: Vladislav Shabanov Subject: Re: do-nothing code in sysv_shm.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 20:52:00 -0000 On Monday 11 April 2005 12:03 pm, Vladislav Shabanov wrote: > I`ve found the following code in sysv_shm.c : > > ............ > static void > shminit() > { > int i; > > TUNABLE_INT_FETCH("kern.ipc.shmmaxpgs", &shminfo.shmall); > for (i = PAGE_SIZE; i > 0; i--) { > shminfo.shmmax = shminfo.shmall * PAGE_SIZE; > if (shminfo.shmmax >= shminfo.shmall) > break; > } > TUNABLE_INT_FETCH("kern.ipc.shmmin", &shminfo.shmmin); > ......... > > IMHO, loop does nothing. Possible variant: > > #define shmall_bits (sizeof(shminfo.shmall)*8) > > if (0 == (shminfo.shmall & (~ ( (1<<(shmall_bits-PAGE_SHIFT-1)) - 1)))) { > /* if high PAGE_SHIFT+1 bits of shminfo.shmall is zero */ > shminfo.shmmax = shminfo.shmall << PAGE_SHIFT; > } else { > shminfo.shmmax = __INT_MAX; > } > > ------------------------------ > previous changes in this part of code: > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sysv_shm.c.diff?r1=1.78& >r2=1.79&f=h > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/kern/sysv_shm.c.diff?r1=1.79& >r2=1.80&f=h _______________________________________________ > 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" After talking to Alfred, I just changed it to use 'i' rather than PAGE_SIZE in the loop as it's easy to follow and given that this code only runs once at boot it's not critical that it be fast. Thanks for the report! -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 21:43:55 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F2A316A4CE; Thu, 12 May 2005 21:43:55 +0000 (GMT) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2D1B43D83; Thu, 12 May 2005 21:43:54 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id j4CLhmxo048912; Thu, 12 May 2005 16:43:49 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Received: from localhost (localhost [127.0.0.1]) by thor.farley.org (8.13.3/8.13.3) with ESMTP id j4CLhlbr004350; Thu, 12 May 2005 16:43:48 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Date: Thu, 12 May 2005 16:43:47 -0500 (CDT) From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= To: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= In-Reply-To: <20050512134151.O2556@thor.farley.org> Message-ID: <20050512163409.O4283@thor.farley.org> References: <428307A9.10901@atempo.com> <20050512134151.O2556@thor.farley.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1585788071-1115934011=:4283" Content-ID: <20050512164247.V4283@thor.farley.org> cc: hackers@freebsd.org cc: David Xu Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 21:43:55 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1585788071-1115934011=:4283 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1; FORMAT=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Content-ID: <20050512164024.T4283@thor.farley.org> On Thu, 12 May 2005, Se=E1n C. Farley wrote: > On Thu, 12 May 2005, Herv=E9 Kergourlay wrote: > > > >> 4) wait() API >>=20 >> 2 problems, the first is a ECHILD error on a wait call after a fork >> fork The code is generic for most of unix system. Is there any >> specific problems to manage the fork and wait APIs ? >> the second problem with calls is a blocking wait() call in the same >> condition but this time the son process is finished but the wait call >> in the father stays blocked, again it's a generic Unix code >>=20 >> If there is no evidence, ask me for more informations > > The second problem sounds like what I am encountering > (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D77818) with zsh for my > shell. You did suspend (sigsuspend()) SIGCHLD before the fork? By > "fork fork", do you mean you fork twice? Ah ha! I see the problem that has been causing me this problem and probably you too. Signal suspensions (only these?) are not being copied with a double fork(). Here is an example program[1] to illustrate. They do get copied on FreeBSD-4.10 and Linux. I just do not know if they are supposed to be copied. Se=E1n P.S. I included David since he has been trying to help me with this bug. 1. http://www.farley.org/freebsd/tmp/grandparent.c --=20 sean-freebsd@farley.org --0-1585788071-1115934011=:4283-- From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 22:07:22 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AFBF16A4CE for ; Thu, 12 May 2005 22:07:22 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FFD043D6D for ; Thu, 12 May 2005 22:07:21 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id E868946B37; Thu, 12 May 2005 18:07:20 -0400 (EDT) Date: Thu, 12 May 2005 23:11:59 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= In-Reply-To: <428307A9.10901@atempo.com> Message-ID: <20050512230409.G92075@fledge.watson.org> References: <428307A9.10901@atempo.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1566304580-1115935919=:92075" cc: hackers@FreeBSD.org Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 22:07:22 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1566304580-1115935919=:92075 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Thu, 12 May 2005, Herv=E9 Kergourlay wrote: > 2) ACLs > > I'm using the API acl_get_file and family with success with ACL_TYPE_ACCE= SS=20 > defined in /usr/include/sys/acl.h > > #define ACL_TYPE_ACCESS 0x00000000 > #define ACL_TYPE_DEFAULT 0x00000001 > #define ACL_TYPE_AFS 0x00000002 > #define ACL_TYPE_CODA 0x00000003 > #define ACL_TYPE_NTFS 0x00000004 > #define ACL_TYPE_NWFS 0x00000005 > > but what about the other defines, specially ACL_TYPE_DEFAULT, are there= =20 > used. I didn't find who in the documentation ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT are the only implemented types. I=20 just removed the others from HEAD since they're unnecessary. I'll merge=20 that change to RELENG_5_4. > 3) Extended attributes > > are Acls part of these attributes or not ? do we have to backup theses=20 > attributes with the Acls ? Access control lists are stored in system extended attributes. From the=20 perspective of backup, you want to backup the ACLs, not the system=20 attributes. There is reference code in BSD tar, and star is also able to= =20 backup ACLs. Robert N M Watson --0-1566304580-1115935919=:92075-- From owner-freebsd-hackers@FreeBSD.ORG Thu May 12 23:52:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B24DA16A4CE for ; Thu, 12 May 2005 23:52:28 +0000 (GMT) Received: from arginine.spc.org (arginine.spc.org [83.167.185.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB47643D77 for ; Thu, 12 May 2005 23:52:27 +0000 (GMT) (envelope-from bms@spc.org) Received: from localhost (localhost [127.0.0.1]) by arginine.spc.org (Postfix) with ESMTP id 6D3B1651F4 for ; Fri, 13 May 2005 00:51:08 +0100 (BST) Received: from arginine.spc.org ([127.0.0.1]) by localhost (arginine.spc.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 95665-05-2 for ; Fri, 13 May 2005 00:51:08 +0100 (BST) Received: from empiric.dek.spc.org (82-35-116-62.cable.ubr07.dals.blueyonder.co.uk [82.35.116.62]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by arginine.spc.org (Postfix) with ESMTP id BE964651EB for ; Fri, 13 May 2005 00:51:07 +0100 (BST) Received: by empiric.dek.spc.org (Postfix, from userid 1001) id 3CB7F623B; Fri, 13 May 2005 00:52:21 +0100 (BST) Date: Fri, 13 May 2005 00:52:21 +0100 From: Bruce M Simpson To: freebsd-hackers@FreeBSD.org Message-ID: <20050512235221.GA37248@empiric.icir.org> Mail-Followup-To: freebsd-hackers@FreeBSD.org References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> <20050512195810.GA61334@skatecity> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050512195810.GA61334@skatecity> Subject: Re: Accessing BIOS memory range X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2005 23:52:28 -0000 On Thu, May 12, 2005 at 09:58:10PM +0200, alexander wrote: > I'm writing a little app in 32 bit x86 (386 minumum) assembly, where I need to access > some memory in the BIOS range. The real address is 40h:6Ch (virtual = ((0x40<<4) | 0x6C)). Just use /dev/mem. It will do what you want. Look at src/tools/tools/pirtool for a simple example. BMS From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 00:36:25 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6734516A4CE for ; Fri, 13 May 2005 00:36:25 +0000 (GMT) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C20443D2F for ; Fri, 13 May 2005 00:36:23 +0000 (GMT) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with esmtpa (Exim 4.43 (FreeBSD)) id 1DWONe-0004Bn-Ly; Fri, 13 May 2005 09:50:18 +0900 Message-Id: <6.2.1.2.2.20050513092211.031e6cc0@202.179.0.80> X-Mailer: QUALCOMM Windows Eudora Version 6.2.1.2 Date: Fri, 13 May 2005 09:35:55 +0900 To: Adam Maloney From: Ganbold In-Reply-To: References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-hackers@FreeBSD.org Subject: Re: upload speed test problem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 00:36:25 -0000 Adam, Thanks a lot. You are completely right. I tested it on my modem, turned off and on Modem Compression option and checked the result. I corrected my program using random data. ............... URL url = new URL(web_site); URLConnection connection = url.openConnection(); connection.setDoOutput(true); connection.setUseCaches(false); DataOutputStream dos = new DataOutputStream(connection.getOutputStream()); byte ab[] = createPacket(buffer_len); int totalBytes = buffer_len; int maxBufferSize = 51200; int bytesAvailable = totalBytes; int tempBufferSize = 0; int bytesSent = 0; int bufferSize = Math.min(bytesAvailable, maxBufferSize); while(bytesAvailable > 0){ dos.write(ab, 0, bufferSize); bytesAvailable -= bufferSize; bufferSize = Math.min(bytesAvailable, maxBufferSize); } dos.writeBytes("\r\n"); int totalBytesSent = dos.size(); System.out.println("\nTotal Bytes Sent: " + totalBytesSent); dos.flush(); dos.close(); BufferedReader in = new BufferedReader( new InputStreamReader( connection.getInputStream())); String inputLine; while ((inputLine = in.readLine()) != null){ // System.out.println(inputLine); } in.close(); endtime1 = System.currentTimeMillis(); test_time = endtime1 - starttime1; uploaded_size = totalBytesSent; return showSpeed(starttime1,endtime1,"Upload",totalBytesSent); ............... private byte[] createPacket(int len) { Random r = new Random(); byte[] pkt = new byte[len]; r.nextBytes(pkt); return(pkt); } ............... thanks again, Ganbold At 10:10 PM 5/12/2005, you wrote: >On Thu, 12 May 2005, Ganbold wrote: > >>Result is unbelievable, it is something like 500kbps for 56kbps Dial-Up >>connection, which is completely wrong. > >It looks like the form data that the client is POSTing is all "a", >correct? The modem is probably compressing this data. > >I wrote a speed test in perl a number of years ago to do both upload and >download testing. Here are some things I found, maybe they will help you: > >You must use data that doesn't compress well, or, as you've seen, dial-up >modems will compress it and report speeds much higher than is possible. > >It is better to pre-generate the random data, rather than try and read >from /dev/random on the fly. I realized that by having my script suck 5 >or 10 megabytes of randomness out of /dev/random every time it ran, I was >accelerating the heat-death of the universe. You don't want to cause the >heat-death of the universe either, do you? (Actually, either pre-generate >random files, or read from /dev/urandom, which doesn't block when it runs >out of randomness) > >IE Sucks. > >The way my script worked was, I had a form page that the user selected the >file size to test with, and hit Submit. This submitted to my CGI that >generated a new HTML form with a hidden input field containing the random >data of the size they selected. It also contained a hidden field with a >timestamp of when the page began to execute. I used javascript to >automatically submit the form when the page load completed. Mozilla would >submit this form as soon as page load completed. For some odd reason, IE >would wait a couple of seconds before submitting the data. So I had to >(oh this is so ugly, I don't want to say it), define an IE fudge factor, >and subtract a couple of seconds from the upload time if the client was IE. > >I also realized that I had to add a META tag to cause the pages not to be >cached. Furthermore, I had to add something to look at the client's HTTP >headers and look for signs of an HTTP proxy (proxies usually add a header >or two, depending on how they're configured). If a proxy was detected, I >could either spit out a warning to the user that the speeds reported could >be inaccurate, or I could simply refuse to continue. > >On the plus side, overall the test worked pretty well. > >HTH, > >Adam >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 06:24:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9F72516A4CE for ; Fri, 13 May 2005 06:24:08 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25CEE43D2F for ; Fri, 13 May 2005 06:24:06 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.3/8.13.1) with ESMTP id j4D6MBDY013259; Fri, 13 May 2005 00:22:12 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 13 May 2005 00:23:22 -0600 (MDT) Message-Id: <20050513.002322.41268902.imp@bsdimp.com> To: arundel@h3c.de From: "M. Warner Losh" In-Reply-To: <20050512195810.GA61334@skatecity> References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> <20050512195810.GA61334@skatecity> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Accessing BIOS memory range X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 06:24:08 -0000 A trivial driver would fit your needs. Warner From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 06:39:58 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 971D216A4CE; Fri, 13 May 2005 06:39:58 +0000 (GMT) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19AFA43D4C; Fri, 13 May 2005 06:39:58 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 5E8DF2FD14; Fri, 13 May 2005 08:39:57 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 50E0B2FD08; Fri, 13 May 2005 08:39:57 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id 0FF2C1E331C; Fri, 13 May 2005 08:39:57 +0200 (CEST) Message-ID: <42844BBC.3020503@atempo.com> Date: Fri, 13 May 2005 08:39:56 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: Robert Watson References: <428307A9.10901@atempo.com> <20050512230409.G92075@fledge.watson.org> In-Reply-To: <20050512230409.G92075@fledge.watson.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------050006010908080000050702 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: hackers@freebsd.org Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 06:39:58 -0000 This is a multi-part message in MIME format. --------------050006010908080000050702 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Robert Watson a écrit : > > On Thu, 12 May 2005, Hervé Kergourlay wrote: > >> 2) ACLs >> >> I'm using the API acl_get_file and family with success with >> ACL_TYPE_ACCESS defined in /usr/include/sys/acl.h >> >> #define ACL_TYPE_ACCESS 0x00000000 >> #define ACL_TYPE_DEFAULT 0x00000001 >> #define ACL_TYPE_AFS 0x00000002 >> #define ACL_TYPE_CODA 0x00000003 >> #define ACL_TYPE_NTFS 0x00000004 >> #define ACL_TYPE_NWFS 0x00000005 >> >> but what about the other defines, specially ACL_TYPE_DEFAULT, are >> there used. I didn't find who in the documentation > > > ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT are the only implemented types. > I just removed the others from HEAD since they're unnecessary. I'll > merge that change to RELENG_5_4. > great, It's what I did but I've a problem with the default Acl, the setfacl -d failed with the following message fiobsd.hky(289) [dev->acl] ll total 10 drwxr-xr-x+ 2 hky wheel 512 May 12 13:41 dir1/ -rw-r-xr--+ 1 hky wheel 0 May 10 15:49 file1* -rwxr-xr-x+ 1 hky wheel 0 May 12 13:46 file2* lrwxr-xr-x 1 hky wheel 5 May 12 13:42 link2@ -> file2 drwxrwxrwx 2 hky wheel 512 May 11 14:44 rst/ fiobsd.hky(290) [dev->acl] setfacl -d -m u::rw- dir1 setfacl: acl_calc_mask() failed: Invalid argument setfacl: failed to set ACL mask on dir1 fiobsd.hky(291) [dev->acl] getfacl -d dir1/ #file:dir1/ #owner:114 #group:0 any idea ? hervé >> 3) Extended attributes >> >> are Acls part of these attributes or not ? do we have to backup >> theses attributes with the Acls ? > > > Access control lists are stored in system extended attributes. From > the perspective of backup, you want to backup the ACLs, not the system > attributes. There is reference code in BSD tar, and star is also able > to backup ACLs. th > > Robert N M Watson > >------------------------------------------------------------------------ > >_______________________________________________ >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" > > --------------050006010908080000050702-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 08:28:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8620B16A4CE for ; Fri, 13 May 2005 08:28:04 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 127C443D53 for ; Fri, 13 May 2005 08:28:03 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id 0DF48208D; Fri, 13 May 2005 12:28:04 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 06103208B; Fri, 13 May 2005 12:28:03 +0400 (MSD) Message-ID: <428464F6.2020005@FreeBSD.org> Date: Fri, 13 May 2005 12:27:34 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel O'Connor References: <427743ED.6020200@FreeBSD.org> <200505062338.45418.doconnor@gsoft.com.au> <427B8317.2030606@FreeBSD.org> <200505070037.10431.doconnor@gsoft.com.au> In-Reply-To: <200505070037.10431.doconnor@gsoft.com.au> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@FreeBSD.org cc: Julian Elischer Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 08:28:04 -0000 Hello! Daniel O'Connor wrote: >>>You don't need to download anything to start using etcmerge, you can just >>>use the files from your last mergemaster. >> >>For etcmerge it is need to run mergemaster "one last time", or use >>etc archive for some release. So if mergemaster will be improved, >>it will be better for etcmerge :) > > > Well, you can use etcmerge if you haven't changed anything in /etc - ie on a > fresh install. I made another patch to mergemaster http://people.freebsd.org/~den/scripts/mergemaster/mergemaster-check-store.diff It poorly tested and have known problems, so it is not recommended for now, but shows how simular functionality can be included into mergemaster (with this patch mergemaster can collect some checksums itself). Unfortunately, this will help only on further updates. > > Even if the checksum test is added to mergemaster it only covers one of the > cases etcmerge handles, it still doesn't do a 3 way merge. The merge etcmerge > does is very nice for removing changes to files you don't care about. One case is the one important step to the better world :) I hope that we can made some small improvement to mergemaster before 5.5-RELEASE. And it is unlikely that we can introduce something other than mergemaster in RELENG_5. > > >>>264k is a pretty large file to commit to the repo.. >> >>Yes, I know. And don't sure that it is some need to commit this file. >>Anyway, this file is less that INDEX, and unlike INDEX, will not >>rapidly changed. Checksum database will grow slowly. > > > The INDEX file isn't in CVS anymore.. The reasons why it was removed can't be applied to checksums file. > It probably won't grow very fast, but IMO it seems like a bit of a kludge. I published my opinion here: http://people.freebsd.org/~den/scripts/mergemaster/checksums-commit.html Maybe it is not bikeshed discussion, but I don't want to continue it in hackers@. den@ is appropriate place :) From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 08:41:10 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 764D616A4CE; Fri, 13 May 2005 08:41:10 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1BA5643D5E; Fri, 13 May 2005 08:41:10 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id 7768C208D; Fri, 13 May 2005 12:41:11 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 104C6208B; Fri, 13 May 2005 12:41:11 +0400 (MSD) Message-ID: <4284680E.1060008@FreeBSD.org> Date: Fri, 13 May 2005 12:40:46 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Denis Peplin References: <427743ED.6020200@FreeBSD.org> In-Reply-To: <427743ED.6020200@FreeBSD.org> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@FreeBSD.org Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 08:41:10 -0000 Hello! > There is one major problem here: > This can be done in single-user mode only if your > have local CVS repository, because if local CVS is > not exist, anoncvs is used. > > Possible solutions: There was some points that I missed: > 1. Pre-checkout files in pre-buildworld mode. pre-buildworld is executed in single-user mode too, so it is impossible to do pre-checkout in this mode. > 2. Setup CVSup collection for subset of required files > (is it possible?), and then keep this small collection > up-to-date locally. src-etc cvs collection already here. From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 08:54:40 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB97316A4CE; Fri, 13 May 2005 08:54:40 +0000 (GMT) Received: from volginfo.ru (ns.volginfo.ru [217.23.84.100]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B31243D7E; Fri, 13 May 2005 08:54:40 +0000 (GMT) (envelope-from den@FreeBSD.org) Received: from volginfo.ru (localhost.volginfo.ru [127.0.0.1]) by volginfo.ru (Postfix) with ESMTP id D9F9B208D; Fri, 13 May 2005 12:54:40 +0400 (MSD) Received: from [192.168.1.32] (llp-13.vistcom.ru [217.23.84.68]) by volginfo.ru (Postfix) with ESMTP id 8BA22208B; Fri, 13 May 2005 12:54:40 +0400 (MSD) Message-ID: <42846B32.3050804@FreeBSD.org> Date: Fri, 13 May 2005 12:54:10 +0400 From: Denis Peplin User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Anton Berezin References: <427743ED.6020200@FreeBSD.org> <20050511080141.GA20520@heechee.tobez.org> In-Reply-To: <20050511080141.GA20520@heechee.tobez.org> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP cc: freebsd-hackers@FreeBSD.org Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 08:54:41 -0000 Hello! Anton Berezin wrote: > On Tue, May 03, 2005 at 01:27:09PM +0400, Denis Peplin wrote: > > >>The mergemaster with this is test patch (attached) >>can auto-update files that was not modified. > > > Please also see > > http://www.freebsd.org/cgi/getmsg.cgi?fetch=0+0+/usr/local/www/db/text/2005/freebsd-audit/20050116.freebsd-audit > > Dougb at some point promised to get back with his comments, but it never > happened. :-( Thanks, I will look (most likely at the next week). From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 08:56:24 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D71316A4CE for ; Fri, 13 May 2005 08:56:24 +0000 (GMT) Received: from mail.iinet.net.au (mail-05.iinet.net.au [203.59.3.37]) by mx1.FreeBSD.org (Postfix) with SMTP id 7906943D94 for ; Fri, 13 May 2005 08:56:22 +0000 (GMT) (envelope-from julian@elischer.org) Received: (qmail 22189 invoked from network); 13 May 2005 08:56:21 -0000 Received: from unknown (HELO ?10.1.1.4?) (203.59.87.113) by mail.iinet.net.au with SMTP; 13 May 2005 08:56:21 -0000 Message-ID: <42846BB4.30302@elischer.org> Date: Fri, 13 May 2005 01:56:20 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.7) Gecko/20050424 X-Accept-Language: en, hu MIME-Version: 1.0 To: Denis Peplin References: <427743ED.6020200@FreeBSD.org> <200505062338.45418.doconnor@gsoft.com.au> <427B8317.2030606@FreeBSD.org> <200505070037.10431.doconnor@gsoft.com.au> <428464F6.2020005@FreeBSD.org> In-Reply-To: <428464F6.2020005@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 08:56:24 -0000 Denis Peplin wrote: > Hello! > > Daniel O'Connor wrote: > >>>>You don't need to download anything to start using etcmerge, you can just >>>>use the files from your last mergemaster. >>> >>>For etcmerge it is need to run mergemaster "one last time", or use >>>etc archive for some release. So if mergemaster will be improved, >>>it will be better for etcmerge :) >> >> >>Well, you can use etcmerge if you haven't changed anything in /etc - ie on a >>fresh install. > > I made another patch to mergemaster > http://people.freebsd.org/~den/scripts/mergemaster/mergemaster-check-store.diff > It poorly tested and have known problems, so it is not recommended for > now, but shows how simular functionality can be included into > mergemaster (with this patch mergemaster can collect some checksums > itself). Unfortunately, this will help only on further updates. that would be enough I run it every few weeks and anything that sped it up would be appreciated. > From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 09:07:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87B4316A4CE for ; Fri, 13 May 2005 09:07:08 +0000 (GMT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44B4343D67 for ; Fri, 13 May 2005 09:07:08 +0000 (GMT) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (vol75-8-82-233-239-98.fbx.proxad.net [82.233.239.98]) by postfix3-2.free.fr (Postfix) with ESMTP id 5CE32C06C; Fri, 13 May 2005 11:07:07 +0200 (CEST) Received: by tatooine.tataz.chchile.org (Postfix, from userid 1000) id 3406E405A; Fri, 13 May 2005 11:07:07 +0200 (CEST) Date: Fri, 13 May 2005 11:07:07 +0200 From: Jeremie Le Hen To: alexander Message-ID: <20050513090707.GB667@obiwan.tataz.chchile.org> References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> <20050512195810.GA61334@skatecity> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050512195810.GA61334@skatecity> User-Agent: Mutt/1.5.9i cc: freebsd-hackers@FreeBSD.org Subject: Re: Accessing BIOS memory range X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 09:07:08 -0000 On Thu, May 12, 2005 at 09:58:10PM +0200, alexander wrote: > > [...] Please, when starting a new thread, avoid replying an existing one, you mailer will add the "In-Reply-To" header and this is a mess when sorting mails by threads. It is also convenient to write lines smaller than 80 columns (say 78) as it avoids random line wraps when reading mail in console mode or on a standard-size terminal. Thank you for your understanding. Regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org > From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 10:15:57 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC2A816A4CE; Fri, 13 May 2005 10:15:57 +0000 (GMT) Received: from mortis.over-yonder.net (adsl-222-87-60.jan.bellsouth.net [68.222.87.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34BF143D4C; Fri, 13 May 2005 10:15:57 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: by mortis.over-yonder.net (Postfix, from userid 100) id D12C220FB2; Fri, 13 May 2005 05:15:55 -0500 (CDT) Date: Fri, 13 May 2005 05:15:54 -0500 From: "Matthew D. Fuller" To: Denis Peplin Message-ID: <20050513101554.GA1519@over-yonder.net> References: <427743ED.6020200@FreeBSD.org> <4284680E.1060008@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4284680E.1060008@FreeBSD.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.9i-fullermd.2 cc: freebsd-hackers@FreeBSD.org Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 10:15:58 -0000 On Fri, May 13, 2005 at 12:40:46PM +0400 I heard the voice of Denis Peplin, and lo! it spake thus: > > > 2. Setup CVSup collection for subset of required files > > (is it possible?), and then keep this small collection > > up-to-date locally. > src-etc cvs collection already here. One thing that I'm pretty sure has been brought up before would be that, for those of us who keep a local CVS repo mirror, it's easy and pretty cheap to check out even arbitrary revs to compare to what's currently there (and if you wanted to be REALLY overly-smart, you could even try automagically merging local changes ;) -- Matthew Fuller (MF4839) | fullermd@over-yonder.net Systems/Network Administrator | http://www.over-yonder.net/~fullermd/ On the Internet, nobody can hear you scream. From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 11:05:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 38A0B16A4CE for ; Fri, 13 May 2005 11:05:30 +0000 (GMT) Received: from enterprise4.noxa.de (enterprise.noxa.de [212.60.197.71]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0803343D6D for ; Fri, 13 May 2005 11:05:29 +0000 (GMT) (envelope-from arundel@h3c.de) Received: (qmail 14610 invoked from network); 13 May 2005 13:05:26 +0200 Received: from p508fc814.dip.t-dialin.net (HELO localhost.skatecity) (80.143.200.20) by enterprise.noxa.de with AES256-SHA encrypted SMTP; 13 May 2005 13:05:26 +0200 Received: from localhost.skatecity (nobody@localhost.skatecity [127.0.0.1]) by localhost.skatecity (8.13.3/8.13.3) with ESMTP id j4DB5DJb071762 for ; Fri, 13 May 2005 13:05:14 +0200 (CEST) (envelope-from arundel@localhost.skatecity) Received: (from arundel@localhost) by localhost.skatecity (8.13.3/8.13.3/Submit) id j4DB5DA9071761 for freebsd-hackers@FreeBSD.org; Fri, 13 May 2005 13:05:13 +0200 (CEST) (envelope-from arundel) From: alexander Date: Fri, 13 May 2005 13:05:13 +0200 To: freebsd-hackers@FreeBSD.org Message-ID: <20050513110513.GA71631@skatecity> Mail-Followup-To: freebsd-hackers@FreeBSD.org References: <6.2.1.2.2.20050512180519.03403540@202.179.0.80> <20050512195810.GA61334@skatecity> <20050513090707.GB667@obiwan.tataz.chchile.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050513090707.GB667@obiwan.tataz.chchile.org> Subject: Re: Accessing BIOS memory range X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 11:05:30 -0000 On Fri May 13 05, Jeremie Le Hen wrote: > On Thu, May 12, 2005 at 09:58:10PM +0200, alexander wrote: > > > > [...] > > Please, when starting a new thread, avoid replying an existing one, > you mailer will add the "In-Reply-To" header and this is a mess when > sorting mails by threads. > > It is also convenient to write lines smaller than 80 columns (say 78) > as it avoids random line wraps when reading mail in console mode or > on a standard-size terminal. > > Thank you for your understanding. > > Regards, > -- > Jeremie Le Hen > < jeremie at le-hen dot org >< ttz at chchile dot org > Thanks for all the infomation. Sorry Jeremy for disrespecting the mailinglist conventions. From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 13:48:52 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C34AE16A4D1; Fri, 13 May 2005 13:48:52 +0000 (GMT) Received: from ash25e.internode.on.net (ash25e.adl2.internode.on.net [203.16.214.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECC0E43D45; Fri, 13 May 2005 13:48:50 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp209-194.lns1.adl2.internode.on.net [203.122.209.194])j4DDmfRm071491; Fri, 13 May 2005 23:18:43 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Received: from [10.0.2.110] (root@localhost.dons.net.au [127.0.0.1]) (authenticated bits=0) by midget.dons.net.au (8.13.1/8.13.1) with ESMTP id j4DDmdDi047976; Fri, 13 May 2005 23:18:39 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: <428535F5.3060604@gsoft.com.au> Date: Sat, 14 May 2005 08:49:17 +0930 From: "Daniel O'Connor" User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Matthew D. Fuller" References: <427743ED.6020200@FreeBSD.org> <4284680E.1060008@FreeBSD.org> <20050513101554.GA1519@over-yonder.net> In-Reply-To: <20050513101554.GA1519@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -1.36 () ALL_TRUSTED,DATE_IN_FUTURE_06_12 X-Scanned-By: MIMEDefang 2.44 cc: freebsd-hackers@freebsd.org cc: Denis Peplin Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 13:48:52 -0000 Matthew D. Fuller wrote: > One thing that I'm pretty sure has been brought up before would be > that, for those of us who keep a local CVS repo mirror, it's easy and > pretty cheap to check out even arbitrary revs to compare to what's > currently there (and if you wanted to be REALLY overly-smart, you > could even try automagically merging local changes ;) etcmerge can already do this :) -- 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 Key ID - 7B3FCE8C From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 16:03:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC6E816A4CE; Fri, 13 May 2005 16:03:04 +0000 (GMT) Received: from ds9.atempo.com (ds9.atempo.com [212.157.146.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5945643D45; Fri, 13 May 2005 16:03:03 +0000 (GMT) (envelope-from herve.kergourlay@atempo.com) Received: from ds9.atempo.com (localhost.localdomain [127.0.0.1]) by localhost.atempo.com (Postfix) with ESMTP id 846C02FD08; Fri, 13 May 2005 18:03:02 +0200 (CEST) Received: from atempo.com (unknown [172.16.15.140])by ds9.atempo.com (Postfix) with ESMTP id 70F632FD06; Fri, 13 May 2005 18:03:02 +0200 (CEST) Received: from [192.168.2.108] (aragorn.vannes.quadratec.fr [192.168.2.108])by atempo.com (Postfix) with ESMTP id DB44A1E3361; Fri, 13 May 2005 18:03:01 +0200 (CEST) Message-ID: <4284CFB5.7040805@atempo.com> Date: Fri, 13 May 2005 18:03:01 +0200 From: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: fr, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?=22Se=E1n_C=2E_Farley=22?= References: <428307A9.10901@atempo.com> <20050512134151.O2556@thor.farley.org> <20050512163409.O4283@thor.farley.org> In-Reply-To: <20050512163409.O4283@thor.farley.org> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/mixed; boundary=------------090907090906020707080501 X-imss-version: 2.025 X-imss-result: Passed X-imss-approveListMatch: *@atempo.com X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: hackers@freebsd.org cc: David Xu Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 16:03:04 -0000 This is a multi-part message in MIME format. --------------090907090906020707080501 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Seán C. Farley a écrit : > On Thu, 12 May 2005, Seán C. Farley wrote: > >> On Thu, 12 May 2005, Hervé Kergourlay wrote: >> >> >> >>> 4) wait() API >>> >>> 2 problems, the first is a ECHILD error on a wait call after a fork >>> fork The code is generic for most of unix system. Is there any >>> specific problems to manage the fork and wait APIs ? >>> the second problem with calls is a blocking wait() call in the same >>> condition but this time the son process is finished but the wait call >>> in the father stays blocked, again it's a generic Unix code >>> >>> If there is no evidence, ask me for more informations >> >> >> The second problem sounds like what I am encountering >> (http://www.freebsd.org/cgi/query-pr.cgi?pr=77818) with zsh for my >> shell. You did suspend (sigsuspend()) SIGCHLD before the fork? By >> "fork fork", do you mean you fork twice? > > > Ah ha! I see the problem that has been causing me this problem and > probably you too. Signal suspensions (only these?) are not being copied > with a double fork(). Here is an example program[1] to illustrate. > They do get copied on FreeBSD-4.10 and Linux. I just do not know if > they are supposed to be copied. > > Seán > > P.S. I included David since he has been trying to help me with this > bug. > > 1. http://www.farley.org/freebsd/tmp/grandparent.c I test your sample it's working on Linux and FreeBSD 4.0 but failing on FreeBDS 5.2 et 5.3. the process stays blocked on the suspend call I rewrite another sample with the same model, joined here, as we wrote it in our main program. It's working also on Linux but failing on all FreeBSD included FreeBSD 4.0, 5.2 et 5.3 trace when working avant FORK : pid 71995. avant FORK : pid 71996. son pid 71997. Child calling execve(/bin/ls). sigw sigw.c sigw2 sigw2.c Grand parent pid 71996. Grand parent waiting for a signal. Parent pid 71997. Parent waiting for a signal. Parent get status 100000. Grand parent get status 100000. trace when failing avant FORK : pid 71995. avant FORK : pid 71996. son pid 71997. Child calling execve(/bin/ls). sigw sigw.c sigw2 sigw2.c Grand parent pid 71996. Grand parent waiting for a signal. Parent pid 71997. Parent waiting for a signal. wait returned No child processes. wait returned No child processes. the wait call return with an errno ECHILD ?? did you have any idea if the problem will be solve by the FreeBSD team or not ? or if there is a workarouund ? thanks hervé >------------------------------------------------------------------------ > >_______________________________________________ >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" > > --------------090907090906020707080501 Content-Type: text/plain; name="sigw2.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="sigw2.c" /* * Test SIGCHLD atempo(). */ #include #include #include #include #include #include #include #define TRUE 1 #define FALSE 0 /* gestion des processus */ /* la foncion v_wait renvoie dans p_status l'etat du process : */ /* les 8 bits de poids fort contiennent le status (EXITED, TERMINATED, STOPPED) */ /* les 24 bits de poids faible contiennent le code d'exit si le status est EXITED, et 0 sinon */ /* (a noter que sur unix, l'API ne permet de recuperer que les 8 bits de poids faible du code d'exit) */ #define VOS_PROC_STATUS_NOVAL 0x00000000 #define VOS_PROC_STATUS_EXITED 0x01000000 /* process has exited (normal termination) */ #define VOS_PROC_STATUS_TERMINATED 0x02000000 /* process has terminated due to receipt of a signal */ #define VOS_PROC_STATUS_STOPPED 0x03000000 /* process has been stopped */ /* macros pour recuperer les valeurs */ #define VOS_GET_PROC_STATUS(status) (status & 0xFF000000) #define VOS_GET_PROC_EXIT_CODE(status) (status & 0x00FFFFFF) const char cmd[] = "/bin/ls"; void unix_ignore_all_signals(); void fork_cmd(int isChild); void handler(int sig); int main(int argc, char **argv) { #ifdef XXX sigset_t newMask; sigset_t oldMask; struct sigaction act; // Create handler for child signal. act.sa_handler = handler; sigemptyset(&act.sa_mask); act.sa_flags = 0; sigaction(SIGCHLD, &act, NULL); // Block child signals until suspend is ready. sigemptyset(&newMask); sigaddset(&newMask, SIGCHLD); if (sigprocmask(SIG_BLOCK, &newMask, &oldMask) < 0) { perror("sigprocmask()"); exit(EXIT_FAILURE); } #endif // Become a grand parent. fork_cmd(FALSE); #ifdef XXX // Unblock. if (sigprocmask(SIG_UNBLOCK, &newMask, &oldMask) < 0) { perror("sigprocmask()"); exit(EXIT_FAILURE); } #endif exit(EXIT_SUCCESS); } void fork_cmd(int isChild) { const char *age; char *args[] = {"ls -la", NULL}; char *envp[] = {NULL}; int pid; int sig; int retos; int attendu_recu; int status; int exit_status; int sleepy; sigset_t mask; void (*sig_handler)(int); void (*old_sig_handler)(int); struct sigaction act; struct sigaction oact; sig_handler = SIG_DFL; act.sa_handler = sig_handler; act.sa_flags = SA_NOCLDWAIT; if (sigaction (SIGCHLD, &act, &oact) == -1) { fprintf(stderr, "sigaction returned %s.\n", strerror(errno)); exit(EXIT_FAILURE); } old_sig_handler = oact.sa_handler; fprintf(stderr, "avant FORK : pid %d.\n", getpid()); pid = fork(); if (! pid) { // Execute program or be the parent. if (isChild) { fprintf(stderr, "%s pid %d.\n", "son", getpid()); unix_ignore_all_signals(); fprintf(stderr, "Child calling execve(%s).\n", cmd); retos = execve(cmd, args, envp); if (retos == -1) { fprintf(stderr, "execve(%s) returned %s.\n", cmd, strerror(errno)); exit(EXIT_FAILURE); } fprintf(stderr, "Child executed.\n"); exit(EXIT_SUCCESS); } else { fork_cmd(TRUE); } } else if (pid > 0) { // Message for parent/grand parent. if (isChild) { age = "Parent"; sleepy = 2; } else { age = "Grand parent"; sleepy = 1; } while ((sleepy = sleep(sleepy))) { // Sleep around signals. } fprintf(stderr, "%s pid %d.\n", age, pid); #ifdef XXX sigfillset(&mask); sigdelset(&mask, SIGCHLD); sigdelset(&mask, SIGINT); fprintf(stderr, "%s waiting for a signal.\n", age); sigsuspend(&mask); fprintf(stderr, "%s received signal.\n", age); #endif fprintf(stderr, "%s waiting for a signal.\n", age); pid = (int) wait(&status); if (pid == -1) { fprintf(stderr, "wait returned %s.\n", strerror(errno)); exit(EXIT_FAILURE); } if (WIFEXITED(status)) { /* Oui */ exit_status = (0x00FFFFFF & WEXITSTATUS(status)); exit_status |= VOS_PROC_STATUS_EXITED; } else if (WIFSIGNALED(status)) { /* Termine par signal */ sig = WTERMSIG(status); fprintf(stderr, "son process ended by signal %d\n", sig); exit_status = 0; exit_status |= VOS_PROC_STATUS_TERMINATED; } else if (WIFSTOPPED(status)) { sig = WSTOPSIG(status); fprintf(stderr, "son process ended by signal %d\n", sig); exit_status = 0; exit_status |= VOS_PROC_STATUS_STOPPED; } else { fprintf(stderr, "wait returned unknowned %d status\n", status); } fprintf(stderr, "%s get status %X.\n", age, exit_status); } else { perror("fork()"); exit(EXIT_FAILURE); } return; } void handler(int sig) { return; } void unix_ignore_all_signals() { if ((void (*)())signal(SIGHUP, SIG_IGN) == (void (*)())-1) { fprintf(stderr, "Unable to inhibit the signal %s.\n", SIGHUP); } if ((void (*)())signal(SIGINT, SIG_IGN) == (void (*)())-1) { fprintf(stderr, "Unable to inhibit the signal %s.\n", SIGINT); } if ((void (*)())signal(SIGTERM, SIG_IGN) == (void (*)())-1) { fprintf(stderr, "Unable to inhibit the signal %s.\n", SIGTERM); } if ((void (*)())signal(SIGPIPE, SIG_IGN) == (void (*)())-1) { fprintf(stderr, "Unable to inhibit the signal %s.\n", SIGPIPE); } if ((void (*)())signal(SIGALRM, SIG_IGN) == (void (*)())-1) { fprintf(stderr, "Unable to inhibit the signal %s.\n", SIGALRM); } if ((void (*)())signal(SIGCHLD, SIG_IGN) == (void (*)())-1) { fprintf(stderr, "Unable to inhibit the signal %s.\n", SIGCHLD); } } --------------090907090906020707080501-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 16:15:43 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A7C716A4CE; Fri, 13 May 2005 16:15:43 +0000 (GMT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA6F343D73; Fri, 13 May 2005 16:15:31 +0000 (GMT) (envelope-from jhay@icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [127.0.0.1]) j4DGFJEm000214; Fri, 13 May 2005 18:15:20 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost)j4DGFABK000205; Fri, 13 May 2005 18:15:10 +0200 (SAST) (envelope-from jhay) Date: Fri, 13 May 2005 18:15:10 +0200 From: John Hay To: "Daniel O'Connor" Message-ID: <20050513161510.GA97948@zibbi.icomtek.csir.co.za> References: <427743ED.6020200@FreeBSD.org> <4284680E.1060008@FreeBSD.org> <20050513101554.GA1519@over-yonder.net> <428535F5.3060604@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <428535F5.3060604@gsoft.com.au> User-Agent: Mutt/1.4.1i cc: freebsd-hackers@freebsd.org cc: Denis Peplin cc: "Matthew D. Fuller" Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 16:15:43 -0000 On Sat, May 14, 2005 at 08:49:17AM +0930, Daniel O'Connor wrote: > Matthew D. Fuller wrote: > >One thing that I'm pretty sure has been brought up before would be > >that, for those of us who keep a local CVS repo mirror, it's easy and > >pretty cheap to check out even arbitrary revs to compare to what's > >currently there (and if you wanted to be REALLY overly-smart, you > >could even try automagically merging local changes ;) > > etcmerge can already do this :) Maybe, but last time I tried to use it, I got the feeling that it was missing a front end. If its cleverness could be married to the ease of use of mergemaster, we would have a winner. IMVHO John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 17:45:15 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0630E16A4CE; Fri, 13 May 2005 17:45:15 +0000 (GMT) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80D3943D5F; Fri, 13 May 2005 17:45:14 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id j4DHjAMS058462; Fri, 13 May 2005 12:45:10 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Received: from localhost (localhost [127.0.0.1]) by thor.farley.org (8.13.3/8.13.3) with ESMTP id j4DHjCjd011851; Fri, 13 May 2005 12:45:13 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Date: Fri, 13 May 2005 12:45:12 -0500 (CDT) From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= To: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= In-Reply-To: <4284CFB5.7040805@atempo.com> Message-ID: <20050513123403.J11641@thor.farley.org> References: <428307A9.10901@atempo.com> <20050512134151.O2556@thor.farley.org> <20050512163409.O4283@thor.farley.org> <4284CFB5.7040805@atempo.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-254365337-1116006312=:11641" cc: Greg 'groggy' Lehey cc: hackers@freebsd.org cc: David Xu Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 17:45:15 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-254365337-1116006312=:11641 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 13 May 2005, Herv=E9 Kergourlay wrote: > Se=E1n C. Farley a =E9crit : > >> On Thu, 12 May 2005, Se=E1n C. Farley wrote: >>=20 >>> On Thu, 12 May 2005, Herv=E9 Kergourlay wrote: >>>=20 >>> >>>=20 >>>> 4) wait() API >>>>=20 >>>> 2 problems, the first is a ECHILD error on a wait call after a fork >>>> fork The code is generic for most of unix system. Is there any >>>> specific problems to manage the fork and wait APIs ? the second >>>> problem with calls is a blocking wait() call in the same condition >>>> but this time the son process is finished but the wait call in the >>>> father stays blocked, again it's a generic Unix code >>>>=20 >>>> If there is no evidence, ask me for more informations >>>=20 >>>=20 >>> The second problem sounds like what I am encountering >>> (http://www.freebsd.org/cgi/query-pr.cgi?pr=3D77818) with zsh for my >>> shell. You did suspend (sigsuspend()) SIGCHLD before the fork? By >>> "fork fork", do you mean you fork twice? >>=20 >>=20 >> Ah ha! I see the problem that has been causing me this problem and >> probably you too. Signal suspensions (only these?) are not being >> copied with a double fork(). Here is an example program[1] to >> illustrate. They do get copied on FreeBSD-4.10 and Linux. I just do >> not know if they are supposed to be copied. >>=20 >> Se=E1n >>=20 >> P.S. I included David since he has been trying to help me with this >> bug. >>=20 >> 1. http://www.farley.org/freebsd/tmp/grandparent.c > > > I test your sample > > it's working on Linux and FreeBSD 4.0 but failing on FreeBDS 5.2 et > 5.3. the process stays blocked on the suspend call > > I rewrite another sample with the same model, joined here, as we wrote > it in our main program. It's working also on Linux but failing on all > FreeBSD included FreeBSD 4.0, 5.2 et 5.3 > > trace when working > > avant FORK : pid 71995. > avant FORK : pid 71996. > son pid 71997. > Child calling execve(/bin/ls). > sigw sigw.c sigw2 sigw2.c > Grand parent pid 71996. > Grand parent waiting for a signal. > Parent pid 71997. > Parent waiting for a signal. > Parent get status 100000. > Grand parent get status 100000. > > trace when failing > > avant FORK : pid 71995. > avant FORK : pid 71996. > son pid 71997. > Child calling execve(/bin/ls). > sigw sigw.c sigw2 sigw2.c > Grand parent pid 71996. > Grand parent waiting for a signal. > Parent pid 71997. > Parent waiting for a signal. > wait returned No child processes. > wait returned No child processes. > > the wait call return with an errno ECHILD ?? The children are exiting before the parents (due to sleep()'s) get to their wait()'s. > did you have any idea if the problem will be solve by the FreeBSD team > or not ? I updated my bug report and tried to notify David Xu but the e-mail server rejected the e-mail (too many "Received" headers). I am also Cc'ing Greg Lehey since he ran into a possibly similar bug[1] in February. > or if there is a workarouund ? Reapplying the sigsuspend() before each fork() may work. Se=E1n 1. http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/77537 --=20 sean-freebsd@farley.org --0-254365337-1116006312=:11641-- From owner-freebsd-hackers@FreeBSD.ORG Fri May 13 19:42:25 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E8AF616A5B1 for ; Fri, 13 May 2005 19:42:24 +0000 (GMT) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7A2F243D1F for ; Fri, 13 May 2005 19:42:24 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id j4DJgKLV059425; Fri, 13 May 2005 14:42:20 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Received: from localhost (localhost [127.0.0.1]) by thor.farley.org (8.13.3/8.13.3) with ESMTP id j4DJgNcn012672; Fri, 13 May 2005 14:42:24 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Date: Fri, 13 May 2005 14:42:23 -0500 (CDT) From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= To: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= In-Reply-To: <20050513123403.J11641@thor.farley.org> Message-ID: <20050513143958.X12504@thor.farley.org> References: <428307A9.10901@atempo.com> <20050512134151.O2556@thor.farley.org> <20050512163409.O4283@thor.farley.org> <4284CFB5.7040805@atempo.com> <20050513123403.J11641@thor.farley.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1283691166-1116013343=:12504" cc: hackers@freebsd.org Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2005 19:42:25 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1283691166-1116013343=:12504 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 13 May 2005, Se=E1n C. Farley wrote: > On Fri, 13 May 2005, Herv=E9 Kergourlay wrote: > >> or if there is a workarouund ? > > Reapplying the sigsuspend() before each fork() may work. I meant sigprocmask(SIG_BLOCK). Sleep deprivation by an infant destroys the mind. :) Se=E1n --=20 sean-freebsd@farley.org --0-1283691166-1116013343=:12504-- From owner-freebsd-hackers@FreeBSD.ORG Sat May 14 02:27:22 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 857DA16A4CE; Sat, 14 May 2005 02:27:22 +0000 (GMT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id 88C5B43D41; Sat, 14 May 2005 02:27:19 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp209-194.lns1.adl2.internode.on.net [203.122.209.194])j4E2R5xY080783; Sat, 14 May 2005 11:57:09 +0930 (CST) Received: from [10.0.2.110] (root@localhost.dons.net.au [127.0.0.1]) (authenticated bits=0) by midget.dons.net.au (8.13.1/8.13.1) with ESMTP id j4E2R3fK058179; Sat, 14 May 2005 11:57:03 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Message-ID: <4285621D.7030503@gsoft.com.au> Date: Sat, 14 May 2005 11:57:41 +0930 From: "Daniel O'Connor" User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Hay References: <427743ED.6020200@FreeBSD.org> <4284680E.1060008@FreeBSD.org> <20050513101554.GA1519@over-yonder.net> <428535F5.3060604@gsoft.com.au> <20050513161510.GA97948@zibbi.icomtek.csir.co.za> In-Reply-To: <20050513161510.GA97948@zibbi.icomtek.csir.co.za> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.4 () ALL_TRUSTED X-Scanned-By: MIMEDefang 2.44 cc: freebsd-hackers@freebsd.org cc: Denis Peplin cc: "Matthew D. Fuller" Subject: Re: mergemaster improvement (auto-update for not modified files) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 02:27:22 -0000 John Hay wrote: >>etcmerge can already do this :) > > Maybe, but last time I tried to use it, I got the feeling that it was > missing a front end. If its cleverness could be married to the ease > of use of mergemaster, we would have a winner. IMVHO Yes, it is a little more difficult to use since it doesn't walk you through resolving conflicts. Still, it is very powerful and in general you don't have to resolve any conflicts so total amount of work required is small. -- 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 Key ID - 7B3FCE8C From owner-freebsd-hackers@FreeBSD.ORG Sat May 14 11:06:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4FED416A4CE for ; Sat, 14 May 2005 11:06:05 +0000 (GMT) Received: from smtpauth05.mail.atl.earthlink.net (smtpauth05.mail.atl.earthlink.net [209.86.89.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0187443D64 for ; Sat, 14 May 2005 11:06:05 +0000 (GMT) (envelope-from alvest@earthlink.net) Received: from [24.145.140.167] (helo=discovery.vesthome.oh.us) by smtpauth05.mail.atl.earthlink.net with asmtp (Exim 4.34) id 1DWuT6-0007i6-Cg for freebsd-hackers@freebsd.org; Sat, 14 May 2005 07:06:04 -0400 DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=test1; d=earthlink.net; h=Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=eTjkTyXHBuqtfdPpjFrQB2DEgRQF52B0AKu0RR5btos6q4aEA9npVA3Tl6+xmIZJ; Date: Sat, 14 May 2005 07:06:03 -0400 From: Albert Vest To: freebsd-hackers@freebsd.org Message-Id: <20050514070603.4387ac00.alvest@earthlink.net> In-Reply-To: <41AC8B1E.1000302@kprasad.org> References: <200411292254.32943.doconnor@gsoft.com.au> <200411301456.19900.doconnor@gsoft.com.au> <20041129.222825.16682069.imp@bsdimp.com> <200411301621.31973.doconnor@gsoft.com.au> <41AC8B1E.1000302@kprasad.org> X-Mailer: Sylpheed version 1.0.4 (GTK+ 1.2.10; i386-portbld-freebsd5.3) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-ELNK-Trace: a37e7a5645c8e49994f5150ab1c16ac06b48d29827cfba20f3cea9c2564eef930446825db46069c8350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 24.145.140.167 Subject: Re: need help in rebuilding to Freebsd 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 11:06:05 -0000 On Tue, 30 Nov 2004 20:30:46 +0530 "Kamal R. Prasad" wrote: > > Hello, > > I am not aware whether this is the right mailing list -so pl. advise > where to send in my request if it isn't. I am running Freebsd 5.2.1 > > I have sources from CD on my /usr/src -and want to upgrade to Stable 5.3. > ... > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. > -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica > -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter > -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath > -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm > -D_KERNEL -include opt_global.h -finline-limit=8000 --param > inline-unit-growth=100 --param large-function-growth=1000 > -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding > /usr/src/sys/i386/i386/genassym.c > cc1: error: invalid parameter `inline-unit-growth' > cc1: error: invalid parameter `large-function-growth' > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/GENERIC. > *** Error code 1 > > Stop in /usr/obj/usr/src/sys/GENERIC. > *** Error code 1 > > Stop in /usr/src. > *** Error code 1 > > Stop in /usr/src. > > ------------------------------------- > Appreciate any help on this. > > thanks > -kamal GCC isn't recognizing those growth parameters. I've rebuilt 5.3-stable a few times, using those parameters, no problems, but I installed from the 5.3 CD. What version of GCC are you running? System default on 5.3 is 3.4.2 (20040728) -- Albert Vest, al vest at earth link dot net From owner-freebsd-hackers@FreeBSD.ORG Sat May 14 14:18:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A79E16A4CE for ; Sat, 14 May 2005 14:18:19 +0000 (GMT) Received: from cyrus.watson.org (cyrus.watson.org [204.156.12.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 139A143D46 for ; Sat, 14 May 2005 14:18:19 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by cyrus.watson.org (Postfix) with ESMTP id 4178A46B40; Sat, 14 May 2005 10:18:18 -0400 (EDT) Date: Sat, 14 May 2005 15:23:11 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: =?ISO-8859-1?Q?Herv=E9_Kergourlay?= In-Reply-To: <42844BBC.3020503@atempo.com> Message-ID: <20050514152219.Q38872@fledge.watson.org> References: <428307A9.10901@atempo.com> <20050512230409.G92075@fledge.watson.org> <42844BBC.3020503@atempo.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1649177776-1116080591=:38872" cc: hackers@freebsd.org Subject: Re: Porting on FreeBSD 53 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 May 2005 14:18:19 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-1649177776-1116080591=:38872 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Fri, 13 May 2005, Herv=E9 Kergourlay wrote: >> ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT are the only implemented types. I= =20 >> just removed the others from HEAD since they're unnecessary. I'll merge= =20 >> that change to RELENG_5_4. >>=20 > great, It's what I did > > but I've a problem with the default Acl, the setfacl -d failed with the= =20 > following message Could you show the output of the 'mount' command? ACLs may not be enabled= =20 on the file system -- they're not enabled by default. Take a look at=20 tunefs(8) for details on how to enable ACLs on a file system. Robert N M Watson --0-1649177776-1116080591=:38872--