From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 01:51:39 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CAB116A41F for ; Sun, 25 Dec 2005 01:51:39 +0000 (GMT) (envelope-from fcash@sd73.bc.ca) Received: from smtp.sd73.bc.ca (smtp.sd73.bc.ca [142.24.13.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0940643D49 for ; Sun, 25 Dec 2005 01:51:38 +0000 (GMT) (envelope-from fcash@sd73.bc.ca) Received: from localhost (localhost [127.0.0.1]) by localhost.sd73.bc.ca (Postfix) with ESMTP id 30D7B8A006E for ; Sat, 24 Dec 2005 17:51:34 -0800 (PST) Received: from smtp.sd73.bc.ca ([127.0.0.1]) by localhost (smtp.sd73.bc.ca [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 17513-01-79 for ; Sat, 24 Dec 2005 17:51:28 -0800 (PST) Received: from imap.sd73.bc.ca (smtp.sd73.bc.ca [10.10.10.15]) by smtp.sd73.bc.ca (Postfix) with ESMTP id 542F78A007F for ; Sat, 24 Dec 2005 17:51:28 -0800 (PST) Received: by imap.sd73.bc.ca (Postfix, from userid 80) id 97DB518CCBD; Sat, 24 Dec 2005 17:51:30 -0800 (PST) Received: from 24.71.129.36 (SquirrelMail authenticated user fcash) by imap.sd73.bc.ca with HTTP; Sat, 24 Dec 2005 17:51:30 -0800 (PST) Message-ID: <61332.24.71.129.36.1135475490.squirrel@imap.sd73.bc.ca> In-Reply-To: <20051224002133.GD3570@obiwan.tataz.chchile.org> References: <20051210150612.648aef0e.eric@theeric.com> <200512102245.jBAMjiu0087758@apollo.backplane.com> <200512121923.jBCJNYCN099446@apollo.backplane.com> <20051224002133.GD3570@obiwan.tataz.chchile.org> Date: Sat, 24 Dec 2005 17:51:30 -0800 (PST) From: "Freddie Cash" To: freebsd-hackers@freebsd.org User-Agent: SquirrelMail/1.5.1 [CVS] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new using ClamAV at sd73.bc.ca X-Mailman-Approved-At: Sun, 25 Dec 2005 03:01:57 +0000 Subject: Re: [fbsd] Re: DragonFly talk at the upcoming BAYLISA (15 December 2005) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: fcash@sd73.bc.ca List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 01:51:39 -0000 >> Yah, I'm putting some slides together and will make them available >> after the talk. > We are after the talk, have you put the slides online or do you plan > to issue them after Christmas and New Year ? They're available on the DragonFlyBSD website. -- Freddie Cash, LPIC-1 CCNT CCLP Helpdesk / Network Support Tech. School District 73 (250) 377-HELP [377-4357] fcash@sd73.bc.ca helpdesk@sd73.bc.ca From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 11:00:45 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7CA5716A420 for ; Sun, 25 Dec 2005 11:00:45 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: from web35707.mail.mud.yahoo.com (web35707.mail.mud.yahoo.com [66.163.179.161]) by mx1.FreeBSD.org (Postfix) with SMTP id 0DB8643D49 for ; Sun, 25 Dec 2005 11:00:44 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: (qmail 13101 invoked by uid 60001); 25 Dec 2005 11:00:44 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=D5LWJT5j6MVo6Gq9VZe4RZPiBAmwIpwKAixNhT74XG4x1GMibNrc8ixWhVGaWKupL5VrmrzcN2VG0BCX+VlCN3H6EwgzWVS9YfSD1P6B/STCNXyzQihobmW537IIzpjL2JghkxvybFj6BxE0YNf3tDAFP79wKXSA2IVpe6DTtb8= ; Message-ID: <20051225110044.13099.qmail@web35707.mail.mud.yahoo.com> Received: from [202.161.131.68] by web35707.mail.mud.yahoo.com via HTTP; Sun, 25 Dec 2005 03:00:44 PST Date: Sun, 25 Dec 2005 03:00:44 -0800 (PST) From: kamal kc To: freebsd MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 11:00:45 -0000 hello everybody, i am recently troubled by kernel panics that occur as soon as i run my modified kernel. the only modification i have done is i have added compression/decompression function in the bridge.c file. I am running 5.4 RELEASE. i am just a new beginner in programming the kernel and may have insufficient knowledge regarding it. things i have done in the function that could affect the kernel operation are: 1. i frequently allocate memory using malloc() in M_DEVBUF and M_TEMP with M_WAITOK flag 2. i allocate memory with malloc and construct tree. the node count can go up 350 so that i may call malloc about 600 times in the routine. i know that may sound pretty dumb but right now i have no other choice now as i know so little. 3. the functions are pretty longer and contain loops so they may consume time since the bridge code may be called for all the packets flowing through the network. 4. i have used data structures like linked lists and trees. now the problem is as soon as i run my modified kernel it panics with fatal trap 12. the name of the process that crashed is sometimes the cron, sometimes ps, sometimes top, sometimes g_up, and sometimes sendmail. i don't know what to do because the i have tested the function separately and it works fine. i used the dmalloc to see whether the memory leak was present but i didnot find any. it may be posible that my tests with dmalloc were insufficient. So i have put the crash dumps here that may help some of you suggest me whether there is anything i can possibly do in order to solve this panic. Is the problem related to memory leaks or sleeping on mutexes or some other causes. i have added my function just before the IFQ_HANDOFF(). thanks, kamal kc -------------------- Panic message:--> kernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode fault virtual address=0x6c fault code =supervisor read, page not present instruction pointer=0x8:0xc052eafd stack pointer=0x10:0xd50349d0 frame pointer=0x10:0xd50349d4 code segment=base 0x0, limit 0xfffff, type 0x1b =DPL 0, pres 1, def32 1, gran 1 processor eflags=resume, IOPL=0 current process=462 (sendmail) trap number=12 panic: page fault decomp# kgdb kernel.debug /var/crash/vmcore.2 [GDB will not be able to debug user-mode threads: /usr/lib/libthread_db.so: Undefined symbol "ps_pglobal_lookup"] GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-marcel-freebsd". #0 doadump () at pcpu.h:159 159 __asm __volatile("movl %%fs:0,%0" : "=r" (td)); (kgdb) bt #0 doadump () at pcpu.h:159 #1 0xc0510d86 in boot (howto=260) at ../../../kern/kern_shutdown.c:410 #2 0xc051101c in panic (fmt=0xc06b9b28 "%s") at ../../../kern/kern_shutdown.c:566 #3 0xc0692820 in trap_fatal (frame=0xd5034990, eva=108) at ../../../i386/i386/trap.c:817 #4 0xc069200d in trap (frame= {tf_fs = 24, tf_es = 16, tf_ds = 16, tf_edi = 2, tf_esi = -1049545216, tf_ebp = -721204780, tf_isp = -721204804, tf_ebx = -1050635136, tf_edx = -1050635136, tf_ecx = 0, tf_eax = -1049545184, tf_trapno = 12, tf_err = 0, tf_eip = -1068307715, tf_cs = 8, tf_eflags = 65539, tf_esp = -1049545216, tf_ss = -721204748}) at ../../../i386/i386/trap.c:255 #5 0xc0682cda in calltrap () at ../../../i386/i386/exception.s:140 #6 0x00000018 in ?? () #7 0x00000010 in ?? () #8 0x00000010 in ?? () #9 0x00000002 in ?? () #10 0xc1713600 in ?? () #11 0xd50349d4 in ?? () #12 0xd50349bc in ?? () #13 0xc1609480 in ?? () #14 0xc1609480 in ?? () #15 0x00000000 in ?? () #16 0xc1713620 in ?? () ---Type to continue, or q to quit--- #17 0x0000000c in ?? () #18 0x00000000 in ?? () #19 0xc052eafd in turnstile_setowner (ts=0xc1609480, owner=0x0) at ../../../kern/subr_turnstile.c:367 #20 0xc052edbf in turnstile_wait (ts=0xc1609480, lock=0xc16ba800, owner=0x0) at ../../../kern/subr_turnstile.c:504 #21 0xc0508769 in _mtx_lock_sleep (m=0xc16ba800, td=0xc1713600, opts=0, file=0x0, line=0) at ../../../kern/kern_mutex.c:552 #22 0xc063c691 in ufsdirhash_lookup (ip=0xc170d1a4, name=0xc16dd009 "nss_compat.so.1", namelen=15, offp=0x0, bpp=0x0, prevoffp=0x0) at ../../../ufs/ufs/ufs_dirhash.c:349 #23 0xc063e612 in ufs_lookup (ap=0xd5034b78) at ../../../ufs/ufs/ufs_lookup.c:214 #24 0xc0645623 in ufs_vnoperate (ap=0x0) at ../../../ufs/ufs/ufs_vnops.c:2821 #25 0xc0558402 in vfs_cache_lookup (ap=0x0) at vnode_if.h:82 #26 0xc0645623 in ufs_vnoperate (ap=0x0) at ../../../ufs/ufs/ufs_vnops.c:2821 #27 0xc055d5cb in lookup (ndp=0xd5034c78) at vnode_if.h:52 #28 0xc055d069 in namei (ndp=0xd5034c78) at ../../../kern/vfs_lookup.c:181 #29 0xc0569792 in kern_access (td=0xc1713600, path=0x0, pathseg=UIO_USERSPACE, flags=0) at ../../../kern/vfs_syscalls.c:1839 #30 0xc0569735 in access (td=0xc1713600, uap=0x0) at ../../../kern/vfs_syscalls.c:1817 #31 0xc0692b2b in syscall (frame= {tf_fs = 47, tf_es = 47, tf_ds = 47, tf_edi = -1077950048, tf_esi = 67212---Type to continue, or q to quit--- 9024, tf_ebp = -1077950120, tf_isp = -721203852, tf_ebx = 672089560, tf_edx = -1077949824, tf_ecx = 672129049, tf_eax = 33, tf_trapno = 12, tf_err = 2, tf_eip = 672000727, tf_cs = 31, tf_eflags = 642, tf_esp = -1077950164, tf_ss = 47}) at ../../../i386/i386/trap.c:1009 #32 0xc0682d2f in Xint0x80_syscall () at ../../../i386/i386/exception.s:201 #33 0x0000002f in ?? () #34 0x0000002f in ?? () #35 0x0000002f in ?? () #36 0xbfbfc9a0 in ?? () #37 0x280fe000 in ?? () #38 0xbfbfc958 in ?? () #39 0xd5034d74 in ?? () #40 0x280f45d8 in ?? () #41 0xbfbfca80 in ?? () #42 0x280fe019 in ?? () #43 0x00000021 in ?? () #44 0x0000000c in ?? () #45 0x00000002 in ?? () #46 0x280dead7 in ?? () #47 0x0000001f in ?? () #48 0x00000282 in ?? () #49 0xbfbfc92c in ?? () #50 0x0000002f in ?? () #51 0x00000000 in ?? () ---Type to continue, or q to quit--- #52 0x00000000 in ?? () #53 0x00000000 in ?? () #54 0x00000000 in ?? () #55 0x0995c000 in ?? () #56 0xc1712e20 in ?? () #57 0xc1713600 in ?? () #58 0xd5034a30 in ?? () #59 0xd5034a18 in ?? () #60 0xc14f9180 in ?? () #61 0xc0520947 in sched_switch (td=0x280fe000, newtd=0x280f45d8, flags=Cannot access memory at address 0xbfbfc968 ) at ../../../kern/sched_4bsd.c:881 Previous frame inner to this frame (corrupt stack?) (kgdb) up 19 #19 0xc052eafd in turnstile_setowner (ts=0xc1609480, owner=0x0) at ../../../kern/subr_turnstile.c:367 367 ts->ts_owner = owner; (kgdb) list 362 { 363 364 mtx_assert(&td_contested_lock, MA_OWNED); 365 MPASS(owner->td_proc->p_magic == P_MAGIC); 366 MPASS(ts->ts_owner == NULL); 367 ts->ts_owner = owner; 368 LIST_INSERT_HEAD(&owner->td_contested, ts, ts_link); 369 } 370 371 /* (kgdb) print ts $1 = (struct turnstile *) 0xc1609480 (kgdb) quit decomp# __________________________________ Yahoo! for Good - Make a difference this year. http://brand.yahoo.com/cybergivingweek2005/ From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 12:09:54 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0455D16A41F for ; Sun, 25 Dec 2005 12:09:54 +0000 (GMT) (envelope-from delphij@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F0CF43D58 for ; Sun, 25 Dec 2005 12:09:53 +0000 (GMT) (envelope-from delphij@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so958047nzo for ; Sun, 25 Dec 2005 04:09:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BRWe0EARREB+pWnrmCl96InzQKabssiU3FDdvI2C1dMkntP7t7I3+aPy8hAcVzm39zOdRlWcdx0DT8K1kb7xgiWT5xtPhu5YRYR0GWWvktN5UVkDetBYuGK1po/z5+9AeGKqa6q0mg8U8q5KRwPv8zHCQp6rHtIh5tZAMMaHNME= Received: by 10.64.203.5 with SMTP id a5mr1284005qbg; Sun, 25 Dec 2005 04:09:52 -0800 (PST) Received: by 10.65.72.5 with HTTP; Sun, 25 Dec 2005 04:09:52 -0800 (PST) Message-ID: Date: Sun, 25 Dec 2005 20:09:52 +0800 From: Xin LI To: kamal kc In-Reply-To: <20051225110044.13099.qmail@web35707.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051225110044.13099.qmail@web35707.mail.mud.yahoo.com> Cc: freebsd Subject: Re: Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: delphij@delphij.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 12:09:54 -0000 Hi, On 12/25/05, kamal kc wrote: [...] > Is the problem related to memory leaks or sleeping > on mutexes or some other causes. >From the backtrace you have provided, it looks like a memory corruption. In order to aid your debugging, you will want INVARIANTS and WITESS, etc. to be enabled. Also, if feasible, please consider using code from -CURRENT or at least RELENG_6_0, as there are more debugging aids that is likely to catch bugs early. Cheers, -- Xin LI http://www.delphij.net From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 13:54:49 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BE6016A449 for ; Sun, 25 Dec 2005 13:54:49 +0000 (GMT) (envelope-from anatoli@aksoft.net) Received: from 26th.net (26th.net [217.79.183.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B626443D46 for ; Sun, 25 Dec 2005 13:54:48 +0000 (GMT) (envelope-from anatoli@aksoft.net) Received: from [192.168.0.26] (t54fc4444.pool.terralink.de [84.252.68.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by 26th.net (Postfix) with ESMTP id CB8A81E933 for ; Sun, 25 Dec 2005 14:54:46 +0100 (CET) Message-ID: <43AEA4AC.80400@aksoft.net> Date: Sun, 25 Dec 2005 14:54:52 +0100 From: Anatoli Klassen User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <20051217122006.GA2758@twelvegates.homeip.net> <20051217134258.GC1706@britannica.bec.de> <20051217171029.GB14214@twelvegates.homeip.net> <20051217204417.GA27466@twelvegates.homeip.net> In-Reply-To: <20051217204417.GA27466@twelvegates.homeip.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: accessing NetBSD filesystem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 13:54:49 -0000 Hanspeter Roth wrote: > Fdisk shows sysid 165 (0xa5) for partition 3. This is where FreeBSD > is installed. And Fdisk shows sysid 169 (0xa9) for partition 4. This > is where NetBSD is installed. > In /dev there are ad0s3 and ad0s3[a-g] but there is only a ad0s4. > So how can filesystems of my NetBSD in ad0s4 be accessed? > AFAIK you can access only the 'a' partition of the NetBSD slice. Just mount it. If you need other partitions, try to use following module: http://www.26th.net/public/projects/freebsd/geom_nbsd/geom_nbsd.tgz 1. Download, unpack, go it to the dir. 2. Say "make". 3. Sys "kldload ./geom_nbsd.ko" 4. All /dev/ad0s3[a-g] should appear. 5. Now mount all partitions as usual. The module is tested on 6.x and CURRENT. One known bug - it's impossible to unload it, you have to reboot for this. From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 14:37:09 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 967BB16A41F for ; Sun, 25 Dec 2005 14:37:09 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: from web35708.mail.mud.yahoo.com (web35708.mail.mud.yahoo.com [66.163.179.162]) by mx1.FreeBSD.org (Postfix) with SMTP id 1964343D49 for ; Sun, 25 Dec 2005 14:37:09 +0000 (GMT) (envelope-from kamal_ckk@yahoo.com) Received: (qmail 29775 invoked by uid 60001); 25 Dec 2005 14:37:08 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=KlnAwyWN2ebhJR6ahx7m0BjAAN+acQ1UZjDi2wpAM59rrZxIgt6F1TK0lYoWUJSEUaPU00IXE5tdef1NKwoA4G8//ncIKZTqyDHvMkrd5mYFyI3PY8d89vwlpPg9KpuTI4XJgjspLPeMOstQau4fNUtgqNMu2XEAY6byooy8k8o= ; Message-ID: <20051225143708.29773.qmail@web35708.mail.mud.yahoo.com> Received: from [202.79.62.27] by web35708.mail.mud.yahoo.com via HTTP; Sun, 25 Dec 2005 06:37:08 PST Date: Sun, 25 Dec 2005 06:37:08 -0800 (PST) From: kamal kc To: delphij@delphij.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd Subject: Re: Fatal trap 12: page fault while in kernel mode X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 14:37:09 -0000 thanks, i will try INVARIANTS and WITNESS options and will try to get freebsd 6.0. it will be only tomorrow when i'll be able to do this because it is already evening and i will go to my office tomorrow only. in the mean time if the memory corruption is the problem then is there any option/configuration or possible thing i could do to make sure that the kernel quits or throws some messages or panics on the moment the corruption takes place rather than some time later when other program is affected by it. that way i could locate any bug in my code if present. thanks, kamal Xin LI wrote: Hi, On 12/25/05, kamal kc wrote: [...] > Is the problem related to memory leaks or sleeping > on mutexes or some other causes. >From the backtrace you have provided, it looks like a memory corruption. In order to aid your debugging, you will want INVARIANTS and WITESS, etc. to be enabled. Also, if feasible, please consider using code from -CURRENT or at least RELENG_6_0, as there are more debugging aids that is likely to catch bugs early. Cheers, -- Xin LI http://www.delphij.net _______________________________________________ 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" --------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 14:18:24 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26AA916A41F for ; Sun, 25 Dec 2005 14:18:24 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from vms044pub.verizon.net (vms044pub.verizon.net [206.46.252.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF93D43D5E for ; Sun, 25 Dec 2005 14:18:22 +0000 (GMT) (envelope-from babkin@verizon.net) Received: from verizon.net ([141.153.251.249]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IS2007AX52JTDK6@vms044.mailsrvcs.net> for freebsd-hackers@freebsd.org; Sun, 25 Dec 2005 08:18:22 -0600 (CST) Date: Sun, 25 Dec 2005 09:18:18 -0500 From: Sergey Babkin Sender: root To: Kris Kennaway Message-id: <43AEAA2A.B8F86111@verizon.net> MIME-version: 1.0 X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.7-RELEASE i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en, ru References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051217080109.GA31849@xor.obsecurity.org> X-Mailman-Approved-At: Sun, 25 Dec 2005 15:19:57 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: babkin@users.sf.net List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 14:18:24 -0000 Kris Kennaway wrote: > > On Fri, Dec 16, 2005 at 10:34:09PM -0800, Avleen Vig wrote: > > On Fri, Dec 16, 2005 at 10:40:22AM -0500, Martin Cracauer wrote: > > > > 2. SMP kernels for install. Right now we only install a UP kernel, for > > > > performance reasons. We should be able to package both a UP and SMP > > > > kernel into the release bits, and have sysinstall install both. It > > > > should also select the correct one for the target system and make that > > > > the default on boot. > > > > > > If people are concerned about performance, I benchmarked a 6-beta > > > kernel SMP versus UP on a socket 939 Opteron. > > > > If those results are accurate, there's no real reason not to just use an > > SMP kernel on default install? > > Just because it didn't manifest on this workload, doesn't mean it > doesn't on others. I think this is the point :) Hm, how about this (similar to what Linuxes do): Use an SMP kernel for the installation boot, so that the install scripts can discover the SMP machines. Have two GENERIC kernels built and packaged, UP and SMP. The install scripts then install the kernel matching the absent or present SMP (like Linux distros do). Probably with an option of a manual override through a menu. Maybe better yet, install both (or allow to install both) and allow to choose the one booted through a sysinstall menu. -SB From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 18:46:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B9DB416A41F for ; Sun, 25 Dec 2005 18:46:16 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.220.107.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1ED3A43D5E for ; Sun, 25 Dec 2005 18:46:13 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: (qmail 23940 invoked by uid 2003); 25 Dec 2005 18:39:08 -0000 Received: from spork@fasttrackmonkey.com by angryfist.fasttrackmonkey.com by uid 1001 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(71.99.197.67):. Processed in 0.050816 secs); 25 Dec 2005 18:39:08 -0000 Received: from unknown (HELO ?192.168.11.4?) (71.99.197.67) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 25 Dec 2005 18:39:07 -0000 Date: Sun, 25 Dec 2005 13:46:15 -0500 (EST) From: Charles Sprickman X-X-Sender: spork@charles-sprickmans-computer-2.local To: freebsd-hackers@freebsd.org In-Reply-To: <20051217063409.GB19094@silverwraith.com> Message-ID: References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 18:46:16 -0000 I'm missing the start of the thread, so perhaps I can just cut in here. I'm to the point at home and work where I've got more USB keyboards than PS2. It seems like even my old boxes support getting into the BIOS and everything via USB keyboards... You all know where I'm going... Whenever I want to install FBSD, I have to dig up a clunky old PS2 keyboard. Not the case with Winderz, NetBSD, OpenBSD, Linux, etc. In fact, I'm pretty sure 4.11 can be installed with a USB keyboard. I may be imagining that though... Back to lurking, C From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 25 22:04:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 069F216A41F for ; Sun, 25 Dec 2005 22:04:53 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mail.localelinks.com (web.localelinks.com [64.39.75.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3044D43D5A for ; Sun, 25 Dec 2005 22:04:48 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.localelinks.com (Postfix) with ESMTP id 2B7F9AD; Sun, 25 Dec 2005 16:04:48 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 58A4461C28; Sun, 25 Dec 2005 16:04:47 -0600 (CST) Date: Sun, 25 Dec 2005 16:04:47 -0600 From: "Matthew D. Fuller" To: Charles Sprickman Message-ID: <20051225220447.GO63497@over-yonder.net> References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.11-fullermd.2 Cc: freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 22:04:53 -0000 On Sun, Dec 25, 2005 at 01:46:15PM -0500 I heard the voice of Charles Sprickman, and lo! it spake thus: > > In fact, I'm pretty sure 4.11 can be installed with a USB keyboard. > I may be imagining that though... Well, I'm pretty sure I didn't imagine installing 6.0 last month with a USB keyboard. Of course, the loader didn't grok it, but... -- 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 Sun Dec 25 22:36:30 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44E6416A41F for ; Sun, 25 Dec 2005 22:36:30 +0000 (GMT) (envelope-from firewall.bsd@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id B795543D77 for ; Sun, 25 Dec 2005 22:36:18 +0000 (GMT) (envelope-from firewall.bsd@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1025991nzo for ; Sun, 25 Dec 2005 14:36:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=KHYdcT+8UopKw+KPGvir8fV/HioSepqpTQQldHOdf2OPBeEqQlcyV2gVnl7p0wNP1On9BrsTs4hOOEtcDS/krwttZIIyShzh9TyVD5pbZbuwmWc8xNu94hPv2UBuFVNp5P03XPha0wWoAhKsXUC24g7Hlt775bycltoMiLXDMOU= Received: by 10.65.228.18 with SMTP id f18mr998649qbr; Sun, 25 Dec 2005 14:36:17 -0800 (PST) Received: by 10.65.240.20 with HTTP; Sun, 25 Dec 2005 14:36:17 -0800 (PST) Message-ID: <4bf33ff60512251436w35fc9339sc721c676bb569afd@mail.gmail.com> Date: Sun, 25 Dec 2005 15:36:17 -0700 From: FireWall 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Ndis wrapper X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Dec 2005 22:36:30 -0000 Has anyone successfully installed and tested ndiswrapper on Freebsd 6.0 ?? -- -FireWall From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 26 03:46:12 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DD39716A41F for ; Mon, 26 Dec 2005 03:46:12 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9559543D53 for ; Mon, 26 Dec 2005 03:46:12 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 6F6981A3C1D; Sun, 25 Dec 2005 19:46:12 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by obsecurity.dyndns.org (Postfix) with ESMTP id E202352C9B; Sun, 25 Dec 2005 22:46:09 -0500 (EST) Message-ID: <43AF6770.6030002@obsecurity.org> Date: Mon, 26 Dec 2005 14:15:52 +1030 From: Kris Kennaway User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Matthew D. Fuller" References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> In-Reply-To: <20051225220447.GO63497@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Charles Sprickman , freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 03:46:13 -0000 Matthew D. Fuller wrote: >On Sun, Dec 25, 2005 at 01:46:15PM -0500 I heard the voice of >Charles Sprickman, and lo! it spake thus: > > >>In fact, I'm pretty sure 4.11 can be installed with a USB keyboard. >>I may be imagining that though... >> >> > >Well, I'm pretty sure I didn't imagine installing 6.0 last month with >a USB keyboard. Of course, the loader didn't grok it, but... > > The loader groks it just fine when you choose the 'boot with USB keyboard' boot menu option ;-) Kris From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 26 09:22:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81C2F16A41F for ; Mon, 26 Dec 2005 09:22:06 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mail.localelinks.com (web.localelinks.com [64.39.75.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 09A8943D53 for ; Mon, 26 Dec 2005 09:22:03 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.localelinks.com (Postfix) with ESMTP id BE1F4AD; Mon, 26 Dec 2005 03:22:02 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id C716161C21; Mon, 26 Dec 2005 03:22:01 -0600 (CST) Date: Mon, 26 Dec 2005 03:22:01 -0600 From: "Matthew D. Fuller" To: Kris Kennaway Message-ID: <20051226092201.GA64052@over-yonder.net> References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43AF6770.6030002@obsecurity.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.11-fullermd.2 Cc: Charles Sprickman , freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 09:22:06 -0000 On Mon, Dec 26, 2005 at 02:15:52PM +1030 I heard the voice of Kris Kennaway, and lo! it spake thus: > > The loader groks it just fine when you choose the 'boot with USB > keyboard' boot menu option ;-) How can I choose a menu option in the loader when the keyboard doesn't work in the loader? :p -- 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 Mon Dec 26 14:28:23 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E6A7C16A41F for ; Mon, 26 Dec 2005 14:28:23 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B95943D58 for ; Mon, 26 Dec 2005 14:28:21 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 4D2A81A3C1B; Mon, 26 Dec 2005 06:28:21 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by obsecurity.dyndns.org (Postfix) with ESMTP id 4C75D511F8; Mon, 26 Dec 2005 09:28:16 -0500 (EST) Message-ID: <43AFFDEE.8080203@obsecurity.org> Date: Tue, 27 Dec 2005 00:57:58 +1030 From: Kris Kennaway User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Matthew D. Fuller" References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> <20051226092201.GA64052@over-yonder.net> In-Reply-To: <20051226092201.GA64052@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Charles Sprickman , freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 14:28:24 -0000 Matthew D. Fuller wrote: >On Mon, Dec 26, 2005 at 02:15:52PM +1030 I heard the voice of >Kris Kennaway, and lo! it spake thus: > > >>The loader groks it just fine when you choose the 'boot with USB >>keyboard' boot menu option ;-) >> >> > >How can I choose a menu option in the loader when the keyboard doesn't >work in the loader? :p > > Perhaps a BIOS option. I've never encountered a system with USB keyboard that did not work in the loader. Kris From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 26 14:36:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1205B16A41F for ; Mon, 26 Dec 2005 14:36:50 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mail.localelinks.com (web.localelinks.com [64.39.75.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 879E443D58 for ; Mon, 26 Dec 2005 14:36:47 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.localelinks.com (Postfix) with ESMTP id 5C5FCAD; Mon, 26 Dec 2005 08:36:46 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id 63DE461C28; Mon, 26 Dec 2005 08:36:45 -0600 (CST) Date: Mon, 26 Dec 2005 08:36:45 -0600 From: "Matthew D. Fuller" To: Kris Kennaway Message-ID: <20051226143645.GP63497@over-yonder.net> References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> <20051226092201.GA64052@over-yonder.net> <43AFFDEE.8080203@obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43AFFDEE.8080203@obsecurity.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.11-fullermd.2 Cc: Charles Sprickman , freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 14:36:50 -0000 On Tue, Dec 27, 2005 at 12:57:58AM +1030 I heard the voice of Kris Kennaway, and lo! it spake thus: > > Perhaps a BIOS option. I've never encountered a system with USB > keyboard that did not work in the loader. The "emulation" or whatever it was was set in the BIOS. And it worked in the BIOS. Worked when the OS got up to sysinstall, too. Just wouldn't work for the loader. Luckily, I didn't need to do anything but wait for it to boot, but I figured the BIOS was laughing at me behind my back... -- 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 Mon Dec 26 14:59:04 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFACD16A424 for ; Mon, 26 Dec 2005 14:59:04 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 886EC43D97 for ; Mon, 26 Dec 2005 14:58:48 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 6B7341A3C1B; Mon, 26 Dec 2005 06:58:44 -0800 (PST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by obsecurity.dyndns.org (Postfix) with ESMTP id AE6C451190; Mon, 26 Dec 2005 09:58:41 -0500 (EST) Message-ID: <43B0050F.3020207@obsecurity.org> Date: Tue, 27 Dec 2005 01:28:23 +1030 From: Kris Kennaway User-Agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Matthew D. Fuller" References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> <20051226092201.GA64052@over-yonder.net> <43AFFDEE.8080203@obsecurity.org> <20051226143645.GP63497@over-yonder.net> In-Reply-To: <20051226143645.GP63497@over-yonder.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Charles Sprickman , freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 14:59:06 -0000 Matthew D. Fuller wrote: >On Tue, Dec 27, 2005 at 12:57:58AM +1030 I heard the voice of >Kris Kennaway, and lo! it spake thus: > > >>Perhaps a BIOS option. I've never encountered a system with USB >>keyboard that did not work in the loader. >> >> > >The "emulation" or whatever it was was set in the BIOS. And it worked >in the BIOS. Worked when the OS got up to sysinstall, too. Just >wouldn't work for the loader. Luckily, I didn't need to do anything >but wait for it to boot, but I figured the BIOS was laughing at me >behind my back... > > What happens if you turn it off? Kris From owner-freebsd-hackers@FreeBSD.ORG Mon Dec 26 15:06:39 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0B4F16A41F for ; Mon, 26 Dec 2005 15:06:39 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from mail.localelinks.com (web.localelinks.com [64.39.75.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 499B743D46 for ; Mon, 26 Dec 2005 15:06:39 +0000 (GMT) (envelope-from fullermd@over-yonder.net) Received: from draco.over-yonder.net (adsl-072-148-013-213.sip.jan.bellsouth.net [72.148.13.213]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.localelinks.com (Postfix) with ESMTP id 98426AD; Mon, 26 Dec 2005 09:06:38 -0600 (CST) Received: by draco.over-yonder.net (Postfix, from userid 100) id C25D561C28; Mon, 26 Dec 2005 09:06:37 -0600 (CST) Date: Mon, 26 Dec 2005 09:06:37 -0600 From: "Matthew D. Fuller" To: Kris Kennaway Message-ID: <20051226150637.GQ63497@over-yonder.net> References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> <20051226092201.GA64052@over-yonder.net> <43AFFDEE.8080203@obsecurity.org> <20051226143645.GP63497@over-yonder.net> <43B0050F.3020207@obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43B0050F.3020207@obsecurity.org> X-Editor: vi X-OS: FreeBSD User-Agent: Mutt/1.5.11-fullermd.2 Cc: Charles Sprickman , freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2005 15:06:39 -0000 On Tue, Dec 27, 2005 at 01:28:23AM +1030 I heard the voice of Kris Kennaway, and lo! it spake thus: > Matthew D. Fuller wrote: > > > >The "emulation" or whatever it was was set in the BIOS. And it > >worked in the BIOS. Worked when the OS got up to sysinstall, too. > >Just wouldn't work for the loader. > > What happens if you turn it off? Then it still didn't work in the loader, and wouldn't work for the BIOS either (so I had to plugin a PS/2 keyboard to turn it back on). I don't think I let it boot long enough to see if the keyboard worked in sysinstall in that case; I presume it would. And the system's in production now, so I can't really fiddle with it anymore. It's got a Biostar (blech!) Socket A motherboard. ACPI APIC Table: -- 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 Tue Dec 27 01:56:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E018D16A41F for ; Tue, 27 Dec 2005 01:56:58 +0000 (GMT) (envelope-from zhou.bowen@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6258343D5E for ; Tue, 27 Dec 2005 01:56:58 +0000 (GMT) (envelope-from zhou.bowen@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1076822wri for ; Mon, 26 Dec 2005 17:56:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=M981aawjd/kMph2ifeDcpHJ2ispVP33uFiIgBOTpgTZGzh10v+bQkjq3cri4ayyl2a1kolj3do8ox8wM9MNbyfpOMH54V5HC8OwvQPfDzvsz3U3wj+WnFoCqz2pif2SPzWoksI7dXz7dBdB5sN6gMFB43OSgJRdRREbyqFoV3EE= Received: by 10.65.153.12 with SMTP id f12mr2390346qbo; Mon, 26 Dec 2005 17:56:57 -0800 (PST) Received: by 10.65.43.20 with HTTP; Mon, 26 Dec 2005 17:56:57 -0800 (PST) Message-ID: <821419ca0512261756m281e19es6bed04843cff6334@mail.gmail.com> Date: Tue, 27 Dec 2005 09:56:57 +0800 From: Bowen Zhou To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: base64 Content-Disposition: inline Subject: Question about the function "spec_freeblks" in 5.4 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 01:56:59 -0000 SGVsbG8sIGV2ZXJ5b25lLgoKSSBoYXBwZW5lZCB0byBzZWUgdGhlIGNvZGUgb2YgInNwZWNfZnJl ZWJsa3MiICwgYW5kIEkgYW0gY3VyaW91cyBpZgp0aGUgY29kZSB3b3JrcyBpbiByZWFsIHdvcmxk PyBJbiAgbXkgb3BpbmlvbiwgaXQgbWVhbnMgdG8gZGVsZXRlIHRoZQpjb250ZW50IG9mIGJsb2Nr cyBpbiBzcGVjaWFsIGZpbGVzLiBCdXQgSSBkb24ndCB0aGluayBpdCBjYW4gZmluaXNoCnRoaXMg ZGVzdGluYXRpb24gYWN0dWFsbHkuCgpBbSBJIHJpZ2h0PyBDYXVzZSBhcyBhIG5ld2NvbWVyIHRv IHRoZSBzb3VyY2UgY29kZSwgSSBhbSBub3QgcXVpdGUKY29uZmlkZW50IGFib3V0IG15c2VsZi4K V2FpdGluZyBmb3IgeW91ciBhZHZpY2UuCgpUaGFua3MuCg== From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 10:44:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CFCE16A420 for ; Tue, 27 Dec 2005 10:44:14 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: from smtp103.sbc.mail.mud.yahoo.com (smtp103.sbc.mail.mud.yahoo.com [68.142.198.202]) by mx1.FreeBSD.org (Postfix) with SMTP id 9481B43D5C for ; Tue, 27 Dec 2005 10:44:13 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 71236 invoked from network); 27 Dec 2005 10:44:12 -0000 Received: from unknown (HELO ?127.0.0.1?) (dr2867.business@pacbell.net@68.126.236.234 with plain) by smtp103.sbc.mail.mud.yahoo.com with SMTP; 27 Dec 2005 10:44:12 -0000 Message-ID: <43B11B11.7010206@pacbell.net> Date: Tue, 27 Dec 2005 02:44:33 -0800 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 6.0-RELEASE; en-US; ja-JP; rv:1.7.12) Gecko/20050915 MultiZilla/1.6.2.0c Mnenhy/0.7.2.0 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Building a release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 10:44:14 -0000 I'm having some difficulties in building a release ISO from sources. When I do a make release in /usr/src/release, everything seems to go well until is tries to access perl5.8 in the ports. I go into ports and find that there is nothing there. Here's what I have been doing: Build directory trees: mkdir /usr/cvsroot mkdir /usr/release mkdir /usr/tmp/cvs Get CVS tree: cd /usr/tmp/cvs cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co -rRELENG_6_0_0_RELEASE src cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co doc cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co ports Build local CVS repository: cd /usr/cvsroot CVSROOT=/usr/cvsroot ; export CVSROOT CVSEDITOR=vi ; export CVSEDITOR cvs init cd /usr/tmp/cvs/src cvs import src RELENG_6_0_0_RELEASE src cd /usr/tmp/cvs/doc cvs import doc RELENG_6_0_0_RELEASE doc cd /usr/tmp/cvs/ports cvs import ports RELENG_6_0_0_RELEASE ports Build release: cd /usr/src/release make release CHROOTDIR=/usr/release BUILDNAME=6.0-RELEASE CVSROOT=/usr/cvsroot RELEASETAG=RELENG_6_0_0_RELEASE This is what I get: cvs checkout: Updating doc/zh_TW.Big5/share cvs checkout: Updating doc/zh_TW.Big5/share/sgml cvs checkout: Updating doc/zh_TW.Big5/share/sgml/glossary if [ -d /usr/src/release/../../ports/distfiles/ ]; then cp -rp /usr/src/release/../../ports/distfiles /usr/re lease/usr/ports/distfiles; else mkdir -p /usr/release/usr/ports/distfiles; fi cd: can't cd to /usr/release/usr/ports/lang/perl5.8 *** Error code 2 Stop in /usr/src/release. *** Error code 1 Stop in /usr/src/release. Now, I did notice something odd. When the source is checked out, I get the following: cd /usr/release/usr && cvs -R -d /usr/cvsroot co -P -r RELENG_6_0_0_RELEASE src cvs checkout: Updating src U src/COPYRIGHT U src/LOCKS U src/MAINTAINERS U src/Makefile U src/Makefile.inc1 U src/README But, when ports or doc is checked out, this is what I see: rm -rf /usr/release/usr/ports cd /usr/release/usr && cvs -R -d /usr/cvsroot co -P -r RELEASE_6_0_0 ports cvs checkout: Updating ports cvs checkout: Updating ports/Mk cvs checkout: Updating ports/Templates cvs checkout: Updating ports/Tools cvs checkout: Updating ports/Tools/portbuild cvs checkout: Updating ports/Tools/portbuild/2.2 cvs checkout: Updating ports/Tools/portbuild/2.2/bindist ... rm -rf /usr/release/usr/doc cd /usr/release/usr && cvs -R -d /usr/cvsroot co -P -r RELEASE_6_0_0 doc cvs checkout: Updating doc cvs checkout: Updating doc/FAQ cvs checkout: Updating doc/bn_BD.ISO10646-1 cvs checkout: Updating doc/bn_BD.ISO10646-1/articles cvs checkout: Updating doc/bn_BD.ISO10646-1/articles/explaining-bsd cvs checkout: Updating doc/bn_BD.ISO10646-1/articles/new-users ... Same command, different collections, and different results. Why? I'm wondering if this is the problem as both ports and doc are not populated. Any suggestions, ideas? -- Daniel Rudy From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 11:37:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0527516A41F for ; Tue, 27 Dec 2005 11:37:50 +0000 (GMT) (envelope-from oxy@field.hu) Received: from dumballah.tvnet.hu (dumballah.tvnet.hu [195.38.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 81CB643D55 for ; Tue, 27 Dec 2005 11:37:49 +0000 (GMT) (envelope-from oxy@field.hu) Received: from localhost (localhost.localdomain [127.0.0.1]) by dumballah.tvnet.hu (Postfix) with ESMTP id ED6A3101A05 for ; Tue, 27 Dec 2005 12:37:47 +0100 (CET) Received: from dumballah.tvnet.hu ([127.0.0.1]) by localhost (dumballah.tvnet.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17755-38 for ; Tue, 27 Dec 2005 12:37:47 +0100 (CET) Received: from oxy (dsl195-38-115-34.pool.tvnet.hu [195.38.115.34]) by dumballah.tvnet.hu (Postfix) with SMTP id 86754101A03 for ; Tue, 27 Dec 2005 12:37:47 +0100 (CET) Message-ID: <000f01c60ad9$f7732fa0$0201a8c0@oxy> From: "OxY" To: Date: Tue, 27 Dec 2005 12:37:49 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; 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-Virus-Scanned: by amavisd-new at tvnet.hu Subject: ipfw+nat X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 11:37:50 -0000 hi all! i'd like to ask for your help, because i didn't find anything related about this topic.. i have a box, with public ip, which is connected to other clients through openvpn (10.254.0.x) i'd like to connect to the openvpn client's port (for example ssh) through a public address port (x.x.x.x 16354) unfortunately i totally failed in this, can't even forward to my boxes openvpn address.. tried this: $cmd 00701 fwd 10.254.0.1,22 tcp from any to x.x.x.x 16354 no result, connection refused.. it works well with datapipe, however i don't want to set up dozens of datapipes :) natd is enabled, do i need it? or ipfw divert? i have the following related in kernel conf: options IPFIREWALL options IPFIREWALL_VERBOSE options IPFIREWALL_VERBOSE_LIMIT=5 options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_FORWARD do i need anything else? thx for all your help and merry christmas! From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 12:15:20 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E453816A420 for ; Tue, 27 Dec 2005 12:15:20 +0000 (GMT) (envelope-from arne@rfc2549.org) Received: from dagobah.rfc1149.org (dagobah.rfc1149.org [217.160.170.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0D5C743D62 for ; Tue, 27 Dec 2005 12:15:19 +0000 (GMT) (envelope-from arne@rfc2549.org) Received: from dslb-084-061-160-112.pools.arcor-ip.net ([84.61.160.112] helo=[192.168.0.42]) by dagobah.rfc1149.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.54 (FreeBSD)) id 1ErDjQ-000Kr9-CD; Tue, 27 Dec 2005 13:15:12 +0100 Message-ID: <43B13044.80302@rfc2549.org> Date: Tue, 27 Dec 2005 13:15:00 +0100 From: Arne Schwabe User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: "Matthew D. Fuller" References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> <20051226092201.GA64052@over-yonder.net> <43AFFDEE.8080203@obsecurity.org> <20051226143645.GP63497@over-yonder.net> In-Reply-To: <20051226143645.GP63497@over-yonder.net> X-Enigmail-Version: 0.93.2.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-RFC-Spam-Score: -3.5 (---) Cc: Charles Sprickman , freebsd-hackers@freebsd.org, Kris Kennaway Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 12:15:21 -0000 Matthew D. Fuller wrote: > On Tue, Dec 27, 2005 at 12:57:58AM +1030 I heard the voice of > Kris Kennaway, and lo! it spake thus: > >> Perhaps a BIOS option. I've never encountered a system with USB >> keyboard that did not work in the loader. >> > > The "emulation" or whatever it was was set in the BIOS. And it worked > in the BIOS. Worked when the OS got up to sysinstall, too. Just > wouldn't work for the loader. Luckily, I didn't need to do anything > but wait for it to boot, but I figured the BIOS was laughing at me > behind my back... > Same here with an ASUS A8V Deluxe. Arne From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 14:07:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA70D16A41F for ; Tue, 27 Dec 2005 14:07:59 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 48F5043D55 for ; Tue, 27 Dec 2005 14:07:59 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so853176wxc for ; Tue, 27 Dec 2005 06:07:58 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NWFi7/Klfu1xZoRsE8JrfA+lpT/pOSvb0dHjA8G1885DADN+FTJvAnchoDt/gNKqrttksswHRx1Hsd0+7fdrj19FRFSrGEhBhPhMvxzzNcF1qOgWiC9XZLDdXUl7E7lgxQSVimvjqVziIH5KEGSW2rcB7fFLE5niBMhtkVCH3Rg= Received: by 10.70.99.13 with SMTP id w13mr6738949wxb; Tue, 27 Dec 2005 06:07:58 -0800 (PST) Received: by 10.70.105.2 with HTTP; Tue, 27 Dec 2005 06:07:58 -0800 (PST) Message-ID: <84dead720512270607jc6e12a1ife7210d81121eac4@mail.gmail.com> Date: Tue, 27 Dec 2005 19:37:58 +0530 From: Joseph Koshy To: Daniel Rudy In-Reply-To: <43B11B11.7010206@pacbell.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <43B11B11.7010206@pacbell.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Building a release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 14:07:59 -0000 > Why? I'm wondering if this is the problem as both ports and > doc are not populated. > > Any suggestions, ideas? The ports and doc collections use tags of the form RELEASE_X_Y_Z, while src uses RELENG_X_Y_Z_RELEASE. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 16:08:28 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 59C1216A41F for ; Tue, 27 Dec 2005 16:08:28 +0000 (GMT) (envelope-from oxy@field.hu) Received: from dumballah.tvnet.hu (dumballah.tvnet.hu [195.38.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5CFE43D60 for ; Tue, 27 Dec 2005 16:08:25 +0000 (GMT) (envelope-from oxy@field.hu) Received: from localhost (localhost.localdomain [127.0.0.1]) by dumballah.tvnet.hu (Postfix) with ESMTP id 3151F10193E for ; Tue, 27 Dec 2005 17:08:25 +0100 (CET) Received: from dumballah.tvnet.hu ([127.0.0.1]) by localhost (dumballah.tvnet.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07440-43 for ; Tue, 27 Dec 2005 17:08:24 +0100 (CET) Received: from oxy (dsl195-38-115-34.pool.tvnet.hu [195.38.115.34]) by dumballah.tvnet.hu (Postfix) with SMTP id B1A3B101894 for ; Tue, 27 Dec 2005 17:08:24 +0100 (CET) Message-ID: <001301c60aff$c5c83b50$0201a8c0@oxy> From: "OxY" To: References: <000f01c60ad9$f7732fa0$0201a8c0@oxy> Date: Tue, 27 Dec 2005 17:08:27 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-2"; 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-Virus-Scanned: by amavisd-new at tvnet.hu Subject: Re: ipfw+nat X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:08:28 -0000 hi! after i can't get it work with ipfw i tried ipnat.. i am satisfied, it's much more easier.. now, i can redirect packages from my public ip to localhost... for example: rdr em0 x.x.x.x/32 port 223 -> 127.0.0.1 port 2233 tcp how can i make it to redirect packages from x.x.x.x/32 port 223 to another public ip on the internet? if i use this: rdr em0 x.x.x.x/32 port 223 -> public.ip.on.the.internet port 80 tcp it hangs for a while, then operation timeout... thanks! ----- Original Message ----- From: "OxY" To: Sent: Tuesday, December 27, 2005 12:37 PM Subject: ipfw+nat > hi all! > > i'd like to ask for your help, because i didn't find anything related > about this topic.. > i have a box, with public ip, which is connected to other clients through > openvpn (10.254.0.x) > i'd like to connect to the openvpn client's port (for example ssh) > through a public address port (x.x.x.x 16354) > > unfortunately i totally failed in this, can't even forward to my boxes > openvpn address.. > > tried this: > $cmd 00701 fwd 10.254.0.1,22 tcp from any to x.x.x.x 16354 > > no result, connection refused.. > it works well with datapipe, however i don't want to set up dozens of > datapipes :) > > natd is enabled, do i need it? or ipfw divert? > i have the following related in kernel conf: > > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_VERBOSE_LIMIT=5 > options IPFIREWALL_DEFAULT_TO_ACCEPT > options IPFIREWALL_FORWARD > > do i need anything else? > thx for all your help and merry christmas! > _______________________________________________ > 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 Dec 27 16:52:19 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F299416A41F for ; Tue, 27 Dec 2005 16:52:18 +0000 (GMT) (envelope-from igor@doom.homeunix.org) Received: from mail.ecolines.ru (ns.ecolines.ru [81.3.181.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9624243D46 for ; Tue, 27 Dec 2005 16:52:05 +0000 (GMT) (envelope-from igor@doom.homeunix.org) Received: (qmail 29526 invoked from network); 27 Dec 2005 16:55:56 -0000 Received: from unknown (HELO doom.homeunix.org) (ip@212.113.114.55) by mail.ecolines.ru with ESMTPA; 27 Dec 2005 16:55:56 -0000 Received: from doom.homeunix.org (localhost [127.0.0.1]) by doom.homeunix.org (8.13.4/8.13.4) with ESMTP id jBRGmnoU010494; Tue, 27 Dec 2005 19:50:09 +0300 (MSK) (envelope-from igor@doom.homeunix.org) Received: (from igor@localhost) by doom.homeunix.org (8.13.4/8.13.4/Submit) id jBRGmdHx010493; Tue, 27 Dec 2005 19:48:39 +0300 (MSK) (envelope-from igor) Date: Tue, 27 Dec 2005 19:48:39 +0300 From: Igor Pokrovsky To: hackers@freebsd.org Message-ID: <20051227164839.GA10394@doom.homeunix.org> Mail-Followup-To: hackers@freebsd.org, peter@freebsd.org, mistic@ecolines.ru Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Cc: mistic@ecolines.ru, peter@freebsd.org Subject: [PATCH] pppd: added auto DNS configuration X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 16:52:19 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hello, I've implemented DNS automatic negotiation and configuration in pppd (RFC1877). Since it is not a standard thing, I made it an optional feature of pppd. Some parts of the code were taken from ppp implementation. I would be greatful for testing of this patch and for any comments and suggestion. Thanks, -ip -- If your condition seems to be getting better, it's probably your doctor getting sick. --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="pppd.diff" Index: pppd/Makefile =================================================================== RCS file: /home/ncvs/src/usr.sbin/pppd/Makefile,v retrieving revision 1.19.2.3 diff -u -r1.19.2.3 Makefile --- pppd/Makefile 13 Dec 2004 13:50:02 -0000 1.19.2.3 +++ pppd/Makefile 25 Dec 2005 17:25:55 -0000 @@ -38,6 +38,9 @@ DPADD+= ${LIBCRYPTO} .endif +# DNS automatic configuration support +CFLAGS+=-DNS_NEGOTIATE -DDNS_CONFIGURE + .if defined(RELEASE_CRUNCH) # We must create these objects because crunchgen will link them, # and we don't want any unused symbols to spoil the final link. Index: pppd/cbcp.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pppd/cbcp.c,v retrieving revision 1.4.2.2 diff -u -r1.4.2.2 cbcp.c --- pppd/cbcp.c 11 Dec 2004 11:23:56 -0000 1.4.2.2 +++ pppd/cbcp.c 25 Dec 2005 14:43:18 -0000 @@ -26,6 +26,7 @@ #include #include #include +#include #include #include "pppd.h" Index: pppd/demand.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pppd/demand.c,v retrieving revision 1.5 diff -u -r1.5 demand.c --- pppd/demand.c 28 Aug 1999 01:19:02 -0000 1.5 +++ pppd/demand.c 25 Dec 2005 14:38:28 -0000 @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include Index: pppd/ipcp.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pppd/ipcp.c,v retrieving revision 1.12 diff -u -r1.12 ipcp.c --- pppd/ipcp.c 28 Aug 1999 01:19:03 -0000 1.12 +++ pppd/ipcp.c 27 Dec 2005 16:47:00 -0000 @@ -28,11 +28,15 @@ #include #include #include +#include #include #include +#include #include #include #include +#include +#include #include "pppd.h" #include "fsm.h" @@ -49,6 +53,9 @@ static int cis_received[NUM_PPP]; /* # Conf-Reqs received */ static int default_route_set[NUM_PPP]; /* Have set up a default route */ static int proxy_arp_set[NUM_PPP]; /* Have created proxy arp entry */ +#ifdef DNS_CONFIGURE +static ns_t ns; /* local storage for NS config */ +#endif /* * Callbacks for fsm code. (CI = Configuration Information) @@ -154,7 +161,162 @@ return b; } +/* + * loadDNS - load info from existing resolv.conf + * Adopted from ppp. + */ +static void +loadDNS(ns) +ns_t *ns; +{ + int fd; + + ns->dns[0].s_addr = ns->dns[1].s_addr = INADDR_NONE; + + if (ns->resolv != NULL) { + free(ns->resolv); + ns->resolv = NULL; + } + + if (ns->resolv_nons != NULL) { + free(ns->resolv_nons); + ns->resolv_nons = NULL; + } + + if ((fd = open(_PATH_RESCONF, O_RDONLY)) != -1) { + struct stat st; + if (fstat(fd, &st) == 0) { + ssize_t got; + + if ((ns->resolv_nons = (char *)malloc(st.st_size + 1)) == NULL) + IPCPDEBUG((LOG_ERROR, "Failed to malloc %lu for %s: %s\n", + (unsigned long)st.st_size, _PATH_RESCONF, strerror(errno))); + else if ((ns->resolv = (char *)malloc(st.st_size + 1)) == NULL) { + IPCPDEBUG((LOG_ERROR, "Failed(2) to malloc %lu for %s: %s\n", + (unsigned long)st.st_size, _PATH_RESCONF, strerror(errno))); + free(ns->resolv_nons); + ns->resolv_nons = NULL; + } else if ((got = read(fd, ns->resolv, st.st_size)) != st.st_size) { + if (got == -1) + IPCPDEBUG((LOG_ERROR, "Failed to read %s: %s\n", + _PATH_RESCONF, strerror(errno))); + else + IPCPDEBUG((LOG_ERROR, "Failed to read %s, got %lu not %lu\n", + _PATH_RESCONF, (unsigned long)got, (unsigned long)st.st_size)); + free(ns->resolv_nons); + ns->resolv_nons = NULL; + free(ns->resolv); + ns->resolv = NULL; + } else { + +#define issep(ch) ((ch) == ' ' || (ch) == '\t') +#define isip(ch) (((ch) >= '0' && (ch) <= '9') || (ch) == '.') + + char *cp, *cp_nons, *ncp, ch; + int n; + + ns->resolv[st.st_size] = '\0'; + + cp_nons = ns->resolv_nons; + cp = ns->resolv; + n = 0; + + while ((ncp = strstr(cp, "nameserver")) != NULL) { + if (ncp != cp) { + memcpy(cp_nons, cp, ncp - cp); + cp_nons += ncp - cp; + } + if ((ncp != cp && ncp[-1] != '\n') || !issep(ncp[10])) { + memcpy(cp_nons, ncp, 9); + cp_nons += 9; + cp = ncp + 9; /* Can't match "nameserver" at cp... */ + continue; + } + + for (cp = ncp + 11; issep(*cp); cp++) /* Skip whitespace */ + ; + + for (ncp = cp; isip(*ncp); ncp++) /* Jump over IP */ + ; + + ch = *ncp; + *ncp = '\0'; + if (n < 2 && inet_aton(cp, ns->dns)) + n++; + *ncp = ch; + + if ((cp = strchr(ncp, '\n')) == NULL) /* Point at next line */ + cp = ncp + strlen(ncp); + else + cp++; + } + strcpy(cp_nons, cp); /* Copy the end - including the NUL */ + cp_nons += strlen(cp_nons) - 1; + while (cp_nons >= ns->resolv_nons && *cp_nons == '\n') + *cp_nons-- = '\0'; + if (n == 2 && ns->dns[0].s_addr == INADDR_ANY) { + ns->dns[0].s_addr = ns->dns[1].s_addr; + ns->dns[1].s_addr = INADDR_ANY; + } + } + } else + IPCPDEBUG((LOG_ERROR, "Failed to stat opened %s: %s\n", + _PATH_RESCONF, strerror(errno))); + close(fd); + } +} + +/* + * writeDNS - update nameserver entries in resolv.conf + * Adopted from ppp. + */ +static int +writeDNS(ns) +ns_t *ns; +{ + char *paddr; + mode_t mask; + FILE *fp; + + if (ns->dns[0].s_addr == INADDR_ANY && + ns->dns[1].s_addr == INADDR_ANY) { + IPCPDEBUG((LOG_INFO, "%s not modified: All nameservers NAKd\n", + _PATH_RESCONF)); + return 0; + } + + if (ns->dns[0].s_addr == INADDR_ANY) { + ns->dns[0].s_addr = ns->dns[1].s_addr; + ns->dns[1].s_addr = INADDR_ANY; + } + + mask = umask(022); + if ((fp = fopen(_PATH_RESCONF, "w")) != NULL) { + umask(mask); + if (ns->resolv_nons) + fputs(ns->resolv_nons, fp); + paddr = inet_ntoa(ns->dns[0]); + IPCPDEBUG((LOG_INFO, "Primary nameserver set to %s\n", paddr)); + fprintf(fp, "\nnameserver %s\n", paddr); + if (ns->dns[1].s_addr != INADDR_ANY && + ns->dns[1].s_addr != INADDR_NONE && + ns->dns[1].s_addr != ns->dns[0].s_addr) { + paddr = inet_ntoa(ns->dns[1]); + IPCPDEBUG((LOG_INFO, "Secondary nameserver set to %s\n", paddr)); + fprintf(fp, "nameserver %s\n", paddr); + } + if (fclose(fp) == EOF) { + IPCPDEBUG((LOG_INFO, "write(): Failed updating %s: %s\n", + _PATH_RESCONF, strerror(errno))); + return 0; + } + } else + umask(mask); + + return 1; +} + /* * ipcp_init - Initialize IPCP. */ @@ -180,6 +342,18 @@ wo->maxslotindex = MAX_STATES - 1; /* really max index */ wo->cflag = 1; +#ifdef NS_NEGOTIATE + wo->neg_dns1 = 1; + wo->neg_wins1 = 1; + wo->neg_dns2 = 1; + wo->neg_wins2 = 1; +#endif +#ifdef DNS_CONFIGURE + ns.resolv = NULL; + ns.resolv_nons = NULL; + loadDNS(&ns); +#endif + /* max slots and slot-id compression are currently hardwired in */ /* ppp_if.c to 16 and 1, this needs to be changed (among other */ /* things) gmc */ @@ -298,6 +472,7 @@ ipcp_options *go = &ipcp_gotoptions[f->unit]; ipcp_options *wo = &ipcp_wantoptions[f->unit]; ipcp_options *ho = &ipcp_hisoptions[f->unit]; + int len; #define LENCIVJ(neg, old) (neg ? (old? CILEN_COMPRESS : CILEN_VJ) : 0) #define LENCIADDR(neg, old) (neg ? (old? CILEN_ADDRS : CILEN_ADDR) : 0) @@ -326,8 +501,17 @@ } } - return (LENCIADDR(go->neg_addr, go->old_addrs) + + len = (LENCIADDR(go->neg_addr, go->old_addrs) + LENCIVJ(go->neg_vj, go->old_vj)); + +#ifdef NS_NEGOTIATE + len += LENCIADDR(go->neg_dns1, 0) + + LENCIADDR(go->neg_wins1, 0) + + LENCIADDR(go->neg_dns2, 0) + + LENCIADDR(go->neg_wins2, 0); +#endif + + return (len); } @@ -383,6 +567,13 @@ ADDCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj, go->maxslotindex, go->cflag); +#ifdef NS_NEGOTIATE + ADDCIADDR(CI_MS_DNS1, go->neg_dns1, 0, go->dnsaddr[0], 0); + ADDCIADDR(CI_MS_WINS1, go->neg_wins1, 0, go->winsaddr[0], 0); + ADDCIADDR(CI_MS_DNS2, go->neg_dns2, 0, go->dnsaddr[1], 0); + ADDCIADDR(CI_MS_WINS2, go->neg_wins2, 0, go->winsaddr[1], 0); +#endif + *lenp -= len; } @@ -463,6 +654,13 @@ ACKCIVJ(CI_COMPRESSTYPE, go->neg_vj, go->vj_protocol, go->old_vj, go->maxslotindex, go->cflag); +#ifdef NS_NEGOTIATE + ACKCIADDR(CI_MS_DNS1, go->neg_dns1, 0, go->dnsaddr[0], 0); + ACKCIADDR(CI_MS_WINS1, go->neg_wins1, 0, go->winsaddr[0], 0); + ACKCIADDR(CI_MS_DNS2, go->neg_dns2, 0, go->dnsaddr[1], 0); + ACKCIADDR(CI_MS_WINS2, go->neg_wins2, 0, go->winsaddr[1], 0); +#endif + /* * If there are any remaining CIs, then this packet is bad. */ @@ -584,6 +782,25 @@ ); /* + * Accept the peer's idea of the DNS and WINS addresses + */ +#ifdef NS_NEGOTIATE + NAKCIADDR(CI_MS_DNS1, neg_dns1, 0, try.dnsaddr[0] = ciaddr1;); + NAKCIADDR(CI_MS_WINS1, neg_wins1, 0, try.winsaddr[0] = ciaddr1;); + NAKCIADDR(CI_MS_DNS2, neg_dns2, 0, try.dnsaddr[1] = ciaddr1;); + NAKCIADDR(CI_MS_WINS2, neg_wins2, 0, try.winsaddr[1] = ciaddr1;); +#endif +#ifdef DNS_CONFIGURE + /* update DNS info storage if needed */ + if (try.dnsaddr[0] != 0) { + ns.dns[0].s_addr = try.dnsaddr[0]; + } + if (try.dnsaddr[1] != 0) { + ns.dns[1].s_addr = try.dnsaddr[1]; + } +#endif + + /* * There may be remaining CIs, if the peer is requesting negotiation * on an option that we didn't include in our request packet. * If they want to negotiate about IP addresses, we comply. @@ -667,6 +884,9 @@ u_short cishort; u_int32_t cilong; ipcp_options try; /* options to request next time */ +#ifdef NS_NEGOTIATE + u_char citype, *next; +#endif try = *go; /* @@ -726,6 +946,35 @@ go->maxslotindex, go->cflag); /* + * There may be remaining CIs, if the peer is unable to support + * DNS or WINS negotiation. If so, turn them off. + */ +#ifdef NS_NEGOTIATE + while (len > CILEN_VOID) { + GETCHAR(citype, p); + GETCHAR(cilen, p); + if( (len -= cilen) < 0 ) + goto bad; + next = p + cilen - 2; + switch (citype) { + case CI_MS_DNS1: + try.neg_dns1 = 0; + break; + case CI_MS_WINS1: + try.neg_wins1 = 0; + break; + case CI_MS_DNS2: + try.neg_dns2 = 0; + break; + case CI_MS_WINS2: + try.neg_wins2 = 0; + break; + } + p = next; + } +#endif + + /* * If there are any remaining CIs, then this packet is bad. */ if (len != 0) @@ -1173,6 +1422,9 @@ /* set tcp compression */ sifvjcomp(f->unit, ho->neg_vj, ho->cflag, ho->maxslotindex); + /* configure DNS */ + writeDNS(&ns); + /* * If we are doing dial-on-demand, the interface is already * configured, so we put out any saved-up packets, then set the Index: pppd/ipcp.h =================================================================== RCS file: /home/ncvs/src/usr.sbin/pppd/ipcp.h,v retrieving revision 1.10 diff -u -r1.10 ipcp.h --- pppd/ipcp.h 28 Aug 1999 01:19:03 -0000 1.10 +++ pppd/ipcp.h 25 Dec 2005 16:45:47 -0000 @@ -52,6 +52,12 @@ int old_vj : 1; /* use old (short) form of VJ option? */ int accept_local : 1; /* accept peer's value for ouraddr */ int accept_remote : 1; /* accept peer's value for hisaddr */ +#ifdef NS_NEGOTIATE + int neg_dns1 : 1; /* Negotiate primary domain name server */ + int neg_wins1 : 1; /* Negotiate primary WINS */ + int neg_dns2 : 1; /* Negotiate secondary domain name server */ + int neg_wins2 : 1; /* Negotiate secondary WINS */ +#endif u_short vj_protocol; /* protocol value to use in VJ option */ u_char maxslotindex, cflag; /* values for RFC1332 VJ compression neg. */ u_int32_t ouraddr, hisaddr; /* Addresses in NETWORK BYTE ORDER */ @@ -59,6 +65,14 @@ u_int32_t winsaddr[2]; /* Primary and secondary MS WINS entries */ } ipcp_options; +#ifdef DNS_CONFIGURE +typedef struct ns { + struct in_addr dns[2]; /* Current DNS addresses */ + char *resolv; /* Contents of resolv.conf */ + char *resolv_nons; /* Contents of resolv.conf without ns */ +} ns_t; +#endif + extern fsm ipcp_fsm[]; extern ipcp_options ipcp_wantoptions[]; extern ipcp_options ipcp_gotoptions[]; Index: pppd/main.c =================================================================== RCS file: /home/ncvs/src/usr.sbin/pppd/main.c,v retrieving revision 1.19.2.1 diff -u -r1.19.2.1 main.c --- pppd/main.c 30 Jul 2002 03:50:40 -0000 1.19.2.1 +++ pppd/main.c 25 Dec 2005 14:36:29 -0000 @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include --LQksG6bCIzRHxTLp-- From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 17:33:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F0E216A41F for ; Tue, 27 Dec 2005 17:33:07 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: from smtp102.sbc.mail.mud.yahoo.com (smtp102.sbc.mail.mud.yahoo.com [68.142.198.201]) by mx1.FreeBSD.org (Postfix) with SMTP id 9284E43D62 for ; Tue, 27 Dec 2005 17:33:06 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 91376 invoked from network); 27 Dec 2005 17:33:05 -0000 Received: from unknown (HELO ?127.0.0.1?) (dr2867.business@pacbell.net@68.126.236.234 with plain) by smtp102.sbc.mail.mud.yahoo.com with SMTP; 27 Dec 2005 17:33:05 -0000 Message-ID: <43B17AE7.6070301@pacbell.net> Date: Tue, 27 Dec 2005 09:33:27 -0800 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 6.0-RELEASE; en-US; ja-JP; rv:1.7.12) Gecko/20050915 MultiZilla/1.6.2.0c Mnenhy/0.7.2.0 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: Joseph Koshy References: <43B11B11.7010206@pacbell.net> <84dead720512270607jc6e12a1ife7210d81121eac4@mail.gmail.com> In-Reply-To: <84dead720512270607jc6e12a1ife7210d81121eac4@mail.gmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Building a release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 17:33:07 -0000 At about the time of 12/27/2005 6:07 AM, Joseph Koshy stated the following: >>Why? I'm wondering if this is the problem as both ports and >>doc are not populated. >> >>Any suggestions, ideas? > > > The ports and doc collections use tags of the form RELEASE_X_Y_Z, > while src uses RELENG_X_Y_Z_RELEASE. > I'll try that then. Thanks. -- Daniel Rudy From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 18:17:50 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CCCBA16A41F for ; Tue, 27 Dec 2005 18:17:50 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.220.107.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id B661A43D7E for ; Tue, 27 Dec 2005 18:17:35 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: (qmail 26855 invoked by uid 2003); 27 Dec 2005 18:10:29 -0000 Received: from spork@fasttrackmonkey.com by angryfist.fasttrackmonkey.com by uid 1001 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(216.220.116.154):. Processed in 0.051219 secs); 27 Dec 2005 18:10:29 -0000 Received: from unknown (HELO gee5.nat.fasttrackmonkey.com) (216.220.116.154) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 27 Dec 2005 18:10:28 -0000 Date: Tue, 27 Dec 2005 13:17:31 -0500 (EST) From: Charles Sprickman X-X-Sender: spork@gee5.nat.fasttrackmonkey.com To: Kris Kennaway In-Reply-To: <43AFFDEE.8080203@obsecurity.org> Message-ID: References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> <20051226092201.GA64052@over-yonder.net> <43AFFDEE.8080203@obsecurity.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, "Matthew D. Fuller" Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 18:17:50 -0000 On Tue, 27 Dec 2005, Kris Kennaway wrote: > Matthew D. Fuller wrote: > >> On Mon, Dec 26, 2005 at 02:15:52PM +1030 I heard the voice of >> Kris Kennaway, and lo! it spake thus: >> >>> The loader groks it just fine when you choose the 'boot with USB >>> keyboard' boot menu option ;-) >>> >> >> How can I choose a menu option in the loader when the keyboard doesn't >> work in the loader? :p >> > Perhaps a BIOS option. I've never encountered a system with USB keyboard > that did not work in the loader. I'm going to be putting a few more workstations together in the next few days, likely using PCBSD. I will twiddle every option and report back. Charles > Kris > > From owner-freebsd-hackers@FreeBSD.ORG Tue Dec 27 19:36:10 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 670BE16A420 for ; Tue, 27 Dec 2005 19:36:10 +0000 (GMT) (envelope-from ray.mihm@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82A1F43D5A for ; Tue, 27 Dec 2005 19:36:09 +0000 (GMT) (envelope-from ray.mihm@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so939393wxc for ; Tue, 27 Dec 2005 11:36:08 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ICUbihamtlfwogZs6f3xnGfNot8RCKBWrTx/dqszHKRDfPEnJTZxcPkbu5SrH+QZz+fYIfNv6xCWmFVyXjh+sgZoMsIygSgGt/7YB0F5XdJYpV7iQA8Oc5rgCgZlB1znfitzJ6M26mDsrHZYlzstag+wsbha1PqixSvegjva6To= Received: by 10.70.131.11 with SMTP id e11mr6980167wxd; Tue, 27 Dec 2005 11:36:08 -0800 (PST) Received: by 10.70.46.10 with HTTP; Tue, 27 Dec 2005 11:36:08 -0800 (PST) Message-ID: <1aa142960512271136t24a58d7k6531be6974494104@mail.gmail.com> Date: Tue, 27 Dec 2005 11:36:08 -0800 From: Ray Mihm To: freebsd-hackers@freebsd.org In-Reply-To: MIME-Version: 1.0 References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051225220447.GO63497@over-yonder.net> <43AF6770.6030002@obsecurity.org> <20051226092201.GA64052@over-yonder.net> <43AFFDEE.8080203@obsecurity.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2005 19:36:10 -0000 My wishes are: - Get MIPS arch working (plenty of MIPS based SoC in the market) - NUMA support (see what Solaris did or is doing), - Fold IMUNES changes in to the FreeBSD tree, - rwlocks (has this been done already?), - DDB MP support - Make ULE default. Extend ULE to support per Jail CPU time slices (Solaris does this already with zones - way too cool). - native PCI-E support with QoS - 802.11 support for VAP and Mesh Networks (already available?) - make base (off-the-box) performance the best among all OSs. Wish everyone a great 2006. Ray. From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 28 02:39:08 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6766E16A41F; Wed, 28 Dec 2005 02:39:07 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id EE43D43D58; Wed, 28 Dec 2005 02:39:05 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 2E8EE52CB5; Wed, 28 Dec 2005 03:39:04 +0100 (CET) Received: from localhost (dll254.neoplus.adsl.tpnet.pl [83.24.41.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 17FA952C88; Wed, 28 Dec 2005 03:38:57 +0100 (CET) Date: Wed, 28 Dec 2005 03:38:56 +0100 From: Pawel Jakub Dawidek To: hackers@freebsd.org Message-ID: <20051228023856.GA14871@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r535 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_00,RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL autolearn=no version=3.0.4 Cc: Subject: More user developers friendly memguard. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 02:39:08 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Here is the patch: http://people.freebsd.org/~pjd/patches/kern_malloc.c.3.patch It allows to configure memory type to debug without recompilling the kernel. It also allows to debug kernel modules with memguard. The rules: 1. If memory type is compiled into the kernel vm.memguard_desc should be configured in /boot/loader.conf. 2. If memory type is in kernel module, vm.memguard_desc sysctl should be configured before loading the module. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDsfrAForvXbEpPzQRAmCvAKC3oqkcpDh1Jn1yW16XlnthACsWsgCgmqRF JKvyEJARR9GIBoy6RmdCuJg= =8GSX -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT-- From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 28 06:50:47 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8C71916A426 for ; Wed, 28 Dec 2005 06:50:47 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: from smtp101.sbc.mail.mud.yahoo.com (smtp101.sbc.mail.mud.yahoo.com [68.142.198.200]) by mx1.FreeBSD.org (Postfix) with SMTP id F107A43D5E for ; Wed, 28 Dec 2005 06:50:46 +0000 (GMT) (envelope-from dr2867@pacbell.net) Received: (qmail 96666 invoked from network); 28 Dec 2005 06:50:45 -0000 Received: from unknown (HELO ?127.0.0.1?) (dr2867.business@pacbell.net@68.126.236.234 with plain) by smtp101.sbc.mail.mud.yahoo.com with SMTP; 28 Dec 2005 06:50:45 -0000 Message-ID: <43B235DD.8020909@pacbell.net> Date: Tue, 27 Dec 2005 22:51:09 -0800 From: Daniel Rudy User-Agent: Mozilla/5.0 (X11R6; UNIX; FreeBSD/i386 6.0-RELEASE; en-US; ja-JP; rv:1.7.12) Gecko/20050915 MultiZilla/1.6.2.0c Mnenhy/0.7.2.0 X-Accept-Language: en-us, en, ja MIME-Version: 1.0 To: Joseph Koshy References: <43B11B11.7010206@pacbell.net> <84dead720512270607jc6e12a1ife7210d81121eac4@mail.gmail.com> In-Reply-To: <84dead720512270607jc6e12a1ife7210d81121eac4@mail.gmail.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Building a release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 06:50:47 -0000 At about the time of 12/27/2005 6:07 AM, Joseph Koshy stated the following: >>Why? I'm wondering if this is the problem as both ports and >>doc are not populated. >> >>Any suggestions, ideas? > > > The ports and doc collections use tags of the form RELEASE_X_Y_Z, > while src uses RELENG_X_Y_Z_RELEASE. > > -- > FreeBSD Volunteer, http://people.freebsd.org/~jkoshy > Didn't work, same problem. -- Daniel Rudy From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 28 14:05:10 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ABC9116A41F for ; Wed, 28 Dec 2005 14:05:10 +0000 (GMT) (envelope-from roberthuff@rcn.com) Received: from smtp01.mrf.mail.rcn.net (smtp01.mrf.mail.rcn.net [207.172.4.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 249CA43D5F for ; Wed, 28 Dec 2005 14:05:09 +0000 (GMT) (envelope-from roberthuff@rcn.com) Received: from 209-6-22-49.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.22.49]) by smtp01.mrf.mail.rcn.net with ESMTP; 28 Dec 2005 09:05:09 -0500 X-IronPort-AV: i="3.99,303,1131339600"; d="scan'208"; a="146990560:sNHT21793460" From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17330.39901.611021.902119@jerusalem.litteratus.org> Date: Wed, 28 Dec 2005 09:06:21 -0500 To: freebsd-hackers@freebsd.org In-Reply-To: <43B13044.80302@rfc2549.org> References: <43B13044.80302@rfc2549.org> X-Mailer: VM 7.17 under 21.5 (beta24) "dandelion" XEmacs Lucid Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 14:05:10 -0000 Arne Schwabe writes: > > The "emulation" or whatever it was was set in the BIOS. And it worked > > in the BIOS. Worked when the OS got up to sysinstall, too. Just > > wouldn't work for the loader. Luckily, I didn't need to do anything > > but wait for it to boot, but I figured the BIOS was laughing at me > > behind my back... > > Same here with an ASUS A8V Deluxe. I have a similar problem with an ASUS P4 and possibly a P3. However, I have been told (it's in the archives) this may be a known problem with the BIOS/ASUS firmware, Robert Huff From owner-freebsd-hackers@FreeBSD.ORG Wed Dec 28 18:35:22 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B355A16A41F for ; Wed, 28 Dec 2005 18:35:22 +0000 (GMT) (envelope-from cmathys@bluewin.ch) Received: from mail16.bluewin.ch (mail16.bluewin.ch [195.186.19.63]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9BBF43D8F for ; Wed, 28 Dec 2005 18:35:15 +0000 (GMT) (envelope-from cmathys@bluewin.ch) Received: from fx (83.76.103.247) by mail16.bluewin.ch (Bluewin 7.2.069.1) id 4392616500557332 for freebsd-hackers@freebsd.org; Wed, 28 Dec 2005 18:35:07 +0000 Date: Wed, 28 Dec 2005 19:35:27 +0100 From: Christoph Mathys To: freebsd-hackers@freebsd.org Message-ID: <20051228193527.11bc4a28@fx> In-Reply-To: <001301c60aff$c5c83b50$0201a8c0@oxy> References: <000f01c60ad9$f7732fa0$0201a8c0@oxy> <001301c60aff$c5c83b50$0201a8c0@oxy> X-Mailer: Sylpheed-Claws 1.9.100 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Wed, 28 Dec 2005 18:37:37 +0000 Subject: Re: ipfw+nat X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 18:35:22 -0000 "OxY" wrote: > how can i make it to redirect packages from x.x.x.x/32 port 223 to > another public ip on > the internet? > if i use this: > rdr em0 x.x.x.x/32 port 223 -> public.ip.on.the.internet port 80 tcp > it hangs for a while, then operation timeout... > thanks! If public.ip.on.the.internet is reachable via em0, then have a look at this URL: http://www.phildev.net/ipf/IPFprob.html#prob8 Christoph -- The bigger they are, the harder they hit. From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 29 00:47:31 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F31CB16A41F for ; Thu, 29 Dec 2005 00:47:30 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BF0D43D66 for ; Thu, 29 Dec 2005 00:47:28 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.3/8.12.9) with ESMTP id jBT0lRfx083992; Thu, 29 Dec 2005 01:47:27 +0100 (CET) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.3/8.12.9/Submit) id jBT0lRZT083991; Wed, 28 Dec 2005 19:47:27 -0500 (EST) (envelope-from cracauer) Date: Wed, 28 Dec 2005 19:47:27 -0500 From: Martin Cracauer To: Kris Kennaway Message-ID: <20051228194727.B83703@cons.org> References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051217080109.GA31849@xor.obsecurity.org> <20051222173308.B23728@cons.org> <43ACACFB.9070308@obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <43ACACFB.9070308@obsecurity.org>; from kris@obsecurity.org on Sat, Dec 24, 2005 at 12:35:47PM +1030 Cc: freebsd-hackers@freebsd.org, Martin Cracauer Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 00:47:31 -0000 Kris Kennaway wrote on Sat, Dec 24, 2005 at 12:35:47PM +1030: > Martin Cracauer wrote: > > > > > I tried to model different worklods. The parallel part of my > > benchmark suite has CPU-heavy processes, short plain http, php, long > > plain http and mixtures thereof. > > > > None of these showed the SMP kernel to be an overall disadvantage on a > > one-processor system. > > What you want is to find a real-world workload that exercises a lot of > mutexes. These exist, and they'll see the most pessimization from > running SMP kernel on UP. Well, I would be thankful for some ideas. I'd like to develop my benchmark suite from a pure hardware testing platform into one which can be used to measure improvements in SMP kernels. However, I am fully aware that what I am doing now (CPU loaders, and small and big http over localhost, make -j ) doesn't cut it. If you want to keep hardware out of the loop, things become hairy. Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/ From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 29 03:41:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4043816A41F; Thu, 29 Dec 2005 03:41:40 +0000 (GMT) (envelope-from ozawa@ongs.co.jp) Received: from hepitas.ongs.net (hepitas.ongs.net [202.216.232.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id C943B43D53; Thu, 29 Dec 2005 03:41:39 +0000 (GMT) (envelope-from ozawa@ongs.co.jp) Received: from [IPv6???1] (localhost.ongs.net [127.0.0.1]) by hepitas.ongs.net (Postfix) with ESMTP id EA2333F; Thu, 29 Dec 2005 12:21:14 +0900 (JST) Message-ID: <43B35AF4.5040408@ongs.co.jp> Date: Thu, 29 Dec 2005 12:41:40 +0900 From: Masanori OZAWA Organization: ONGS Inc. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: daichi@freebsd.org Subject: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ozawa@ongs.co.jp List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 03:41:40 -0000 I gave a send-pr around the improvement of the unionfs. Please look at the follow url in specific for interested poeple whom it may committer or official people who can merge my patches. http://www.freebsd.org/cgi/query-pr.cgi?pr=91010 The established unionfs implementaion is weak around thier functions. Some systems that use unionfs like FreeSBIE need more rich function. My improvements give the more rich features to get it on. I want to give a suggestion to the maintainer of unionfs to merge my patch :) New features of my improvements are follow: ---- mount_unionfs: - added "[-c ]" Set copy strategy for copying from lower layer to upper layer around files and directories. The strategies are "old", "fullcopy" and "useful" setting by root only. old: the same strategy as established unionfs. (default) fullcopy: upper layer gets full copy of lower layer status. useful: user can get access controlling by -m, -M, -u and -g. only owner's access permission get chagne when target owner is the same as original owner. - added "[-m permission]" Set access permission for file with "useful" strategy only. mount target directory gives default permission. permission given by "-M" gives default permission when "-m" is not given. - added "[-M permission]" Set access permission for directory with "useful" strategy only. mount target directory gives default permission. permission given by "-m" gives default permission when "-M" is not given. - added "[-u owner]" Set owner with "useful" strategy only. mount target directory gives default owner. - added "[-g group]" Set group with "useful" strategy only. mount target directory gives default group. - deleted "[-r]" "-r" option is not needed because mount_nullfs has instead ---- I got some load test, and looks like it works fine. The simple test is to use some commads like cp, mv, mkdir, chmod and ls. The heavy test is like as follow: # mount_unionfs -c useful /usr/ufs1 /usr/obj # mount_unionfs /usr/ufs2 /usr/src # cd /usr/src # make buildkernel # make clean # make -j2 buildworld # make clean # umount /usr/obj # cd # umount /usr/src Wojciech A. Koszek has pointed out, my improvements of unionfs can not get the same way to use with nullfs. The problem depends on the locking mechanism of the FreeBSD VFS. Unionfs, of course, should control the two fs locks both of the upper layer and the lower layer. It use ``struct vnode *vp; vp->v_vnlock = foobar;'' as lock mechanism. And nullfs use the same one. That is a problem. I think that nullfs should get change of the implementaion from the complexity of the implementation rather than to get change of unionf's implementation. However, as a first step of the unionfs-improvements, to merge my patches is very meaningful I think. Finally, so sorry my English is not enough to get communication with you. My boss, daichi@freebsd.org gives us the help of communication (as a matter of fact he wrote most of this mail ;) . Please gives daichi@freebsd.org as CC: for my mail. Thanks. :) -- ONGS Inc. Masanori OZAWA (ozawa@ongs.co.jp) WWW: http://www.ongs.co.jp/ From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 29 06:19:53 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BA1016A41F; Thu, 29 Dec 2005 06:19:53 +0000 (GMT) (envelope-from ozawa@ongs.co.jp) Received: from hepitas.ongs.net (hepitas.ongs.net [202.216.232.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF73243D4C; Thu, 29 Dec 2005 06:19:52 +0000 (GMT) (envelope-from ozawa@ongs.co.jp) Received: from [IPv6???1] (localhost.ongs.net [127.0.0.1]) by hepitas.ongs.net (Postfix) with ESMTP id A40423F; Thu, 29 Dec 2005 14:59:27 +0900 (JST) Message-ID: <43B3800B.1000909@ongs.co.jp> Date: Thu, 29 Dec 2005 15:19:55 +0900 From: Masanori OZAWA Organization: ONGS Inc. User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051219) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org References: <43B35AF4.5040408@ongs.co.jp> In-Reply-To: <43B35AF4.5040408@ongs.co.jp> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: daichi@freebsd.org Subject: Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ozawa@ongs.co.jp List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 06:19:53 -0000 6.0-RELEASE needs follow patch: ---- patch start diff -urN unionfs.current/fs/union_vfsops.c unionfs/fs/union_vfsops.c --- unionfs.current/fs/union_vfsops.c Wed Dec 28 16:58:04 2005 +++ unionfs/fs/union_vfsops.c Wed Dec 28 22:54:20 2005 @@ -435,8 +435,8 @@ unionfs_quotactl(struct mount *mp, int cmd, uid_t uid, - /* caddr_t arg, // for 6.0-R */ - void *arg, // for 7-current + caddr_t arg, // for 6.0-R + /* void *arg, // for 7-current */ struct thread *td) { struct union_mount *um = MOUNTTOUNIONMOUNT(mp); ---- patch end -- ONGS Inc. Masanori OZAWA (ozawa@ongs.co.jp) WWW: http://www.ongs.co.jp/ From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 29 13:19:17 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3349016A41F for ; Thu, 29 Dec 2005 13:19:17 +0000 (GMT) (envelope-from roma.a.g@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F0FB43D55 for ; Thu, 29 Dec 2005 13:19:16 +0000 (GMT) (envelope-from roma.a.g@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1757361nzo for ; Thu, 29 Dec 2005 05:19:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:x-mailer:reply-to:organization:x-priority:message-id:to:subject:mime-version:content-type:content-transfer-encoding; b=uUJ4m5TfIRpJf3MCINNHO3Bsva6XoMwMRDEXDaOPpeOkUG5wyfZgYMyGgYbsG7wtIkRlWqRAYl19mseQBtsxrbNtX89FXrBiP0lUOcShK9g51fuZvp1ytQoq8jb0P2haR94UBatFmRFt1cBEvc+VxALVO/KmBt+PowuPzd1Q718= Received: by 10.65.83.3 with SMTP id k3mr2765703qbl; Thu, 29 Dec 2005 05:19:15 -0800 (PST) Received: from pridep3.ad.office.acropolis.ru ( [81.211.90.3]) by mx.gmail.com with ESMTP id f16sm2569672qba.2005.12.29.05.19.13; Thu, 29 Dec 2005 05:19:14 -0800 (PST) Date: Thu, 29 Dec 2005 16:20:15 +0300 From: "Roman Gorohov. " X-Mailer: The Bat! (v3.62.14) Professional Organization: Acropolis X-Priority: 3 (Normal) Message-ID: <519860652.20051229162015@gmail.com> To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: how to alter firewall stats output? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "roma.a.g" List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 13:19:17 -0000 Hello, freebsd-hackers. Is there any app that allow standart freebsd firewall(ipfw,ipf,pf, last preferable) generate reports looks like 'srcip dstip:port bytes' for rule (for example pf)"pass in log-all quick on $ext_if proto tcp from any to $me port 80"? I know pf may report bytes per rule, but it doesn't include srcip in report. -- Roman Gorohov. mailto:roma.a.g@gmail.com From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 29 16:07:59 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9762116A41F; Thu, 29 Dec 2005 16:07:59 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D2B643D48; Thu, 29 Dec 2005 16:07:44 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP id AEA54575B; Thu, 29 Dec 2005 17:14:19 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on cvs.freesbie.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.1.0 Received: from [192.168.10.2] (host218-144.pool874.interbusiness.it [87.4.144.218]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP; Thu, 29 Dec 2005 17:14:19 +0100 (CET) Message-ID: <43B409C6.6000805@freesbie.org> Date: Thu, 29 Dec 2005 17:07:34 +0100 From: Dario Freni User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051120) X-Accept-Language: en-us, en MIME-Version: 1.0 To: ozawa@ongs.co.jp References: <43B35AF4.5040408@ongs.co.jp> <43B3800B.1000909@ongs.co.jp> In-Reply-To: <43B3800B.1000909@ongs.co.jp> X-Enigmail-Version: 0.93.0.0 OpenPGP: url=http://www.saturnero.net/saturnero.asc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-hackers@freebsd.org, freebsd-current@freebsd.org, daichi@freebsd.org Subject: Re: [unionfs][patch] improvements of the unionfs - Problem Report, kern/91010 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 16:07:59 -0000 Masanori OZAWA wrote: [...] Nice work! This is just a "works for me". In only find some issues with permissions that were already present in the previous implementation of unionfs. Some of them are partially corrected in the "useful" copymode. I mailed the details to the author. I'm scheduling a FreeSBIE test build which will use that (RELENG_6 based). Will post the link here when it is completed. Bye, Dario -- Dario Freni (saturnero@freesbie.org) FreeSBIE developer (http://www.freesbie.org) GPG Public key at http://www.saturnero.net/saturnero.asc From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 29 16:17:23 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49CA016A420 for ; Thu, 29 Dec 2005 16:17:23 +0000 (GMT) (envelope-from bosko.milekic@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id D02B843D8F for ; Thu, 29 Dec 2005 16:16:51 +0000 (GMT) (envelope-from bosko.milekic@gmail.com) Received: by zproxy.gmail.com with SMTP id 8so1793147nzo for ; Thu, 29 Dec 2005 08:16:48 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eGhfPg6wjHrRV1VI0rO4t9eK9pfV3QnP8p9oy9w9NmYBe1Oax2O2bTxNf5QKhLfyb9tVrm3AsViOHNos7XtJ3VCeJ+ZpvFB2lCvQNdOFdGWyFNXZLkWSEmTWjHwoiV8bRg3fFfAzq5DxVQEiqpSy4ui7klGkkNFXPfkDijJkoZI= Received: by 10.36.250.48 with SMTP id x48mr6805561nzh; Thu, 29 Dec 2005 08:16:47 -0800 (PST) Received: by 10.36.13.11 with HTTP; Thu, 29 Dec 2005 08:16:47 -0800 (PST) Message-ID: Date: Thu, 29 Dec 2005 11:16:47 -0500 From: Bosko Milekic To: Pawel Jakub Dawidek In-Reply-To: <20051228023856.GA14871@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051228023856.GA14871@garage.freebsd.pl> X-Mailman-Approved-At: Thu, 29 Dec 2005 16:50:36 +0000 Cc: hackers@freebsd.org Subject: Re: More user developers friendly memguard. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 16:17:23 -0000 I like this very much. Please commit and feel free to continue improving Memguard for yours (and everyone elses) benefit. On 12/27/05, Pawel Jakub Dawidek wrote: > Here is the patch: > > http://people.freebsd.org/~pjd/patches/kern_malloc.c.3.patch > > It allows to configure memory type to debug without recompilling the > kernel. It also allows to debug kernel modules with memguard. > > The rules: > 1. If memory type is compiled into the kernel vm.memguard_desc should be > configured in /boot/loader.conf. > 2. If memory type is in kernel module, vm.memguard_desc sysctl should be > configured before loading the module. > > -- > Pawel Jakub Dawidek http://www.wheel.pl > pjd@FreeBSD.org http://www.FreeBSD.org > FreeBSD committer Am I Evil? Yes, I Am! > > > -- Bosko Milekic To see all the content I generate on the web, check out my Peoplefeeds profile at http://peoplefeeds.com/bosko/profile From owner-freebsd-hackers@FreeBSD.ORG Thu Dec 29 22:46:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9046F16A41F for ; Thu, 29 Dec 2005 22:46:29 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id D271243D5F for ; Thu, 29 Dec 2005 22:46:27 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id jBTMkQYO004951 for ; Thu, 29 Dec 2005 14:46:26 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id jBTMkQ8H004950 for freebsd-hackers@freebsd.org; Thu, 29 Dec 2005 14:46:26 -0800 (PST) (envelope-from sgk) Date: Thu, 29 Dec 2005 14:46:26 -0800 From: Steve Kargl To: freebsd-hackers@freebsd.org Message-ID: <20051229224626.GA4823@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Implementations of sqrtl and logl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Dec 2005 22:46:29 -0000 I have implementations for sqrtl and logl, which can be added to libm. In limited testing on AMD64 , I find troutmask:kargl[208] ./test_sqrt float double long double MRE: 8.953800e-08 1.664855e-16 1.084202e-19 DDP: 7.05 15.78 18.96 BDP: 23.41 52.42 63.00 MRE: 1.084202e-19 DDP: 18.96 BDP: 63.00 troutmask:kargl[210] ./test_log float double long double MRE: 2.934316e-07 4.743044e-16 2.418119e-19 DDP: 6.53 15.32 18.62 BDP: 21.70 50.91 61.84 MRE: 1.777483e-19 DDP: 18.75 BDP: 62.29 MRE = maximum relative error between a value from my routine and a value computed using GMP/MPFR with 64-bits of precision. DDP = decimal digits of precision = - log10(MRE) BDP = binary digits of precision = - log2(MRE) In the first set of numbers for each test, I have exhaustively scanned the entire range of float values. In these tests, I have also implemented float and double routines as a sanity check on the algorithms used for long double. The second second of numbers are obtained from ten million values over the entire range of long double where these values are drawn from /dev/random. One may infer from the numbers above that sqrtl has <1/2 ULP and logl has about 1.2 ULP. It should be noted that the above assumes round-to-nearest FP, which is the default rounding mode for libm. I have not tested the other rounding modes. There is some minor cleanup I need to do in the code before its ready for inclusion in lib/msun. Namely, I've done my hacking outside of the lib/msun hierarchy, so I need to update Makefiles and the mapages. -- Steve From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 13:29:52 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 162E416A420 for ; Fri, 30 Dec 2005 13:29:52 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id B42E543D5E for ; Fri, 30 Dec 2005 13:29:50 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 4870826 for multiple; Fri, 30 Dec 2005 08:27:52 -0500 Received: from zion.baldwin.cx (zion.baldwin.cx [192.168.0.7]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id jBUDTmaX048733; Fri, 30 Dec 2005 08:29:49 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Fri, 30 Dec 2005 08:29:45 -0500 User-Agent: KMail/1.8.3 References: <20051229224626.GA4823@troutmask.apl.washington.edu> In-Reply-To: <20051229224626.GA4823@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200512300829.46399.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1219/Wed Dec 28 17:57:59 2005 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.4 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: Steve Kargl Subject: Re: Implementations of sqrtl and logl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 13:29:52 -0000 On Thursday 29 December 2005 05:46 pm, Steve Kargl wrote: > I have implementations for sqrtl and logl, which can be added > to libm. In limited testing on AMD64 , I find You probably will want to coordinate with Bruce Evans (bde@) as he has been= =20 doing a lot of work on libm specifically with amd64 recently. =2D-=20 John Baldwin =A0<>< =A0http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" =A0=3D =A0http://www.FreeBSD.org From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 16:57:25 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77BD016A422 for ; Fri, 30 Dec 2005 16:57:25 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from b.mail.sonic.net (b.mail.sonic.net [64.142.19.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id B168943D6B for ; Fri, 30 Dec 2005 16:57:16 +0000 (GMT) (envelope-from bmah@freebsd.org) Received: from [64.142.31.107] (tomcat.kitchenlab.org [64.142.31.107]) by b.mail.sonic.net (8.13.3/8.13.3) with ESMTP id jBUGvFnt011841 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 30 Dec 2005 08:57:16 -0800 Message-ID: <43B566EB.5000102@freebsd.org> Date: Fri, 30 Dec 2005 08:57:15 -0800 From: "Bruce A. Mah" User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051203) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Rudy References: <43B11B11.7010206@pacbell.net> In-Reply-To: <43B11B11.7010206@pacbell.net> X-Enigmail-Version: 0.93.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig17CC313724CE8D2BD4AACFFB" Cc: freebsd-hackers@freebsd.org Subject: Re: Building a release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 16:57:25 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig17CC313724CE8D2BD4AACFFB Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit If memory serves me right, Daniel Rudy wrote: > I'm having some difficulties in building a release ISO from sources. > When I do a make release in /usr/src/release, everything seems to go > well until is tries to access perl5.8 in the ports. I go into ports and > find that there is nothing there. Here's what I have been doing: > > Build directory trees: > mkdir /usr/cvsroot > mkdir /usr/release > mkdir /usr/tmp/cvs > > Get CVS tree: > cd /usr/tmp/cvs > cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co -rRELENG_6_0_0_RELEASE src > cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co doc > cvs -d anoncvs@anoncvs1.FreeBSD.org:/home/ncvs co ports > > Build local CVS repository: > cd /usr/cvsroot > CVSROOT=/usr/cvsroot ; export CVSROOT > CVSEDITOR=vi ; export CVSEDITOR > cvs init > cd /usr/tmp/cvs/src > cvs import src RELENG_6_0_0_RELEASE src > cd /usr/tmp/cvs/doc > cvs import doc RELENG_6_0_0_RELEASE doc > cd /usr/tmp/cvs/ports > cvs import ports RELENG_6_0_0_RELEASE ports Any particular reason that you're trying to recreate FreeBSD's CVS repository layout, rather than just grabbing a copy of the repository? I haven't thought much about this problem but it seems to me you're winding up with tags in your reconstructed repository that are not the same as the tags in the "real" repository, and this may be causing some problems. I could picture you wanting to do this if you were tragically low on disk space but until you get some success at actually building a release, you might be better off stucking to a more "normal" setup. Good luck! Bruce. --------------enig17CC313724CE8D2BD4AACFFB Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDtWbr2MoxcVugUsMRAnsMAKDfQx9Q1ymPCVxsfILq+q+kqIn2HACffYwZ nCBODv4jK6R5C7SrryhKOng= =nARH -----END PGP SIGNATURE----- --------------enig17CC313724CE8D2BD4AACFFB-- From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 17:54:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9890116A41F; Fri, 30 Dec 2005 17:54:14 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4957643D48; Fri, 30 Dec 2005 17:54:14 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id jBUHsDrE010736; Fri, 30 Dec 2005 09:54:13 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id jBUHsDNR010735; Fri, 30 Dec 2005 09:54:13 -0800 (PST) (envelope-from sgk) Date: Fri, 30 Dec 2005 09:54:13 -0800 From: Steve Kargl To: John Baldwin Message-ID: <20051230175413.GA10601@troutmask.apl.washington.edu> References: <20051229224626.GA4823@troutmask.apl.washington.edu> <200512300829.46399.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200512300829.46399.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Implementations of sqrtl and logl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 17:54:14 -0000 On Fri, Dec 30, 2005 at 08:29:45AM -0500, John Baldwin wrote: > On Thursday 29 December 2005 05:46 pm, Steve Kargl wrote: > > I have implementations for sqrtl and logl, which can be added > > to libm. In limited testing on AMD64 , I find > > You probably will want to coordinate with Bruce Evans (bde@) as he has been > doing a lot of work on libm specifically with amd64 recently. > I'm aware of bde's recent work, and he and I have exchanged several emails concerning ccosh(), logl(), and style(9). bde has been concentrating on fixing the float functions, which can be tested for all possible float values. I've taken up the crusade of implementing the missing C99 complex and long double functions. I was hoping to draw other prople into the discussion, and if possible attract others to contribute. There are numerous missing C99 complex and math functions. I also have implementations for acoshl and asinhl, which (statistically) give <1/2 ULP over their ranges with two minor exceptions. acoshl in [1,1.5] and asinhl in [-1,1] degrade to only 58 bits of precision. -- Steve From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 18:02:07 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C0AB16A425; Fri, 30 Dec 2005 18:02:07 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from multiplay.co.uk (core6.multiplay.co.uk [85.236.96.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id BDDF043D82; Fri, 30 Dec 2005 18:01:54 +0000 (GMT) (envelope-from killing@multiplay.co.uk) Received: from vader ([82.37.32.39]) by multiplay.co.uk (multiplay.co.uk [85.236.96.23]) (MDaemon.PRO.v8.1.3.R) with ESMTP id md50002156473.msg; Fri, 30 Dec 2005 18:01:38 +0000 Message-ID: <001301c60d6b$55c69fe0$0100a8c0@multiplay.co.uk> From: "Steven Hartland" To: "Bruce A. Mah" , "Daniel Rudy" References: <43B11B11.7010206@pacbell.net> <43B566EB.5000102@freebsd.org> Date: Fri, 30 Dec 2005 18:03:19 -0000 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.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Spam-Processed: multiplay.co.uk, Fri, 30 Dec 2005 18:01:38 +0000 (not processed: message from valid local sender) X-MDRemoteIP: 82.37.32.39 X-Return-Path: killing@multiplay.co.uk X-MDAV-Processed: multiplay.co.uk, Fri, 30 Dec 2005 18:01:39 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Building a release X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 18:02:08 -0000 Better to just use cvsup /usr/share/examples/cvsup/cvs-supfile then all u need to do is create /home/cvs first. ================================================ 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 Fri Dec 30 18:26:30 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 486E116A41F for ; Fri, 30 Dec 2005 18:26:30 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from mail25.syd.optusnet.com.au (mail25.syd.optusnet.com.au [211.29.133.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46D0F43D72 for ; Fri, 30 Dec 2005 18:26:16 +0000 (GMT) (envelope-from PeterJeremy@optushome.com.au) Received: from cirb503493.alcatel.com.au (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail25.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id jBUIQDiN022055 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 31 Dec 2005 05:26:14 +1100 Received: from cirb503493.alcatel.com.au (localhost.alcatel.com.au [127.0.0.1]) by cirb503493.alcatel.com.au (8.12.10/8.12.10) with ESMTP id jBUIQDHh040397; Sat, 31 Dec 2005 05:26:13 +1100 (EST) (envelope-from pjeremy@cirb503493.alcatel.com.au) Received: (from pjeremy@localhost) by cirb503493.alcatel.com.au (8.12.10/8.12.9/Submit) id jBUIQCL8040396; Sat, 31 Dec 2005 05:26:12 +1100 (EST) (envelope-from pjeremy) Date: Sat, 31 Dec 2005 05:26:12 +1100 From: Peter Jeremy To: Steve Kargl Message-ID: <20051230182611.GD36631@cirb503493.alcatel.com.au> References: <20051229224626.GA4823@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051229224626.GA4823@troutmask.apl.washington.edu> User-Agent: Mutt/1.4.2.1i X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc Cc: freebsd-hackers@freebsd.org Subject: Re: Implementations of sqrtl and logl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 18:26:30 -0000 On Thu, 2005-Dec-29 14:46:26 -0800, Steve Kargl wrote: >I have implementations for sqrtl and logl, which can be added >to libm. In limited testing on AMD64 , I find > >troutmask:kargl[208] ./test_sqrt > float double long double >MRE: 8.953800e-08 1.664855e-16 1.084202e-19 >DDP: 7.05 15.78 18.96 >BDP: 23.41 52.42 63.00 ... >MRE = maximum relative error between a value from my routine and > a value computed using GMP/MPFR with 64-bits of precision. Given that long double has 64 bits of precision, is testing it against a 64-bit test library adequate? And what is the accuracy of your test library? -- Peter Jeremy From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 19:08:06 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4009616A41F for ; Fri, 30 Dec 2005 19:08:06 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0F2243D46 for ; Fri, 30 Dec 2005 19:08:05 +0000 (GMT) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.13.4/8.13.4) with ESMTP id jBUJ7orN011180; Fri, 30 Dec 2005 11:07:50 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.13.4/8.13.1/Submit) id jBUJ7en4011166; Fri, 30 Dec 2005 11:07:40 -0800 (PST) (envelope-from sgk) Date: Fri, 30 Dec 2005 11:07:40 -0800 From: Steve Kargl To: Peter Jeremy Message-ID: <20051230190740.GA10957@troutmask.apl.washington.edu> References: <20051229224626.GA4823@troutmask.apl.washington.edu> <20051230182611.GD36631@cirb503493.alcatel.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051230182611.GD36631@cirb503493.alcatel.com.au> User-Agent: Mutt/1.4.2.1i Cc: freebsd-hackers@freebsd.org Subject: Re: Implementations of sqrtl and logl X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 19:08:06 -0000 On Sat, Dec 31, 2005 at 05:26:12AM +1100, Peter Jeremy wrote: > On Thu, 2005-Dec-29 14:46:26 -0800, Steve Kargl wrote: > >I have implementations for sqrtl and logl, which can be added > >to libm. In limited testing on AMD64 , I find > > > >troutmask:kargl[208] ./test_sqrt > > float double long double > >MRE: 8.953800e-08 1.664855e-16 1.084202e-19 > >DDP: 7.05 15.78 18.96 > >BDP: 23.41 52.42 63.00 > ... > >MRE = maximum relative error between a value from my routine and > > a value computed using GMP/MPFR with 64-bits of precision. > > Given that long double has 64 bits of precision, is testing it against > a 64-bit test library adequate? And what is the accuracy of your test > library? > MPFR uses GMP for its internals. I set MPFR to use 64-bit precision and round-to-nearest. It is claimed that mpfr will give correctly rounded FP values in the requested precision and rounding mode. I can set MPFR to any precision and one of four rounding modes; however, the runtime of the tests will go up. I've changed my test program to use 128 bit precision. Here are the results troutmask:kargl[211] ./test_sqrt 100000000 float double long double MRE: 8.953800e-08 1.664855e-16 1.084202e-19 DDP: 7.05 15.78 18.96 BDP: 23.41 52.42 63.00 MRE: 1.084202e-19 DDP: 18.96 BDP: 63.00 To gather the stats, I need to either convert my long double result into a mpfr_t value or convert the MPFR sqrt value into a long double. I've chosen the latter. Thus, the 128-bit MPFR value is correctly rounded to a 64-bit long double. I don't understand your second question. Are you referring to MPFR?. epsilon is 2**(1 - p) where p is the precision. -- Steve From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 21:41:14 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E4E7C16A41F for ; Fri, 30 Dec 2005 21:41:14 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B17D43D82 for ; Fri, 30 Dec 2005 21:41:07 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so95920wxc for ; Fri, 30 Dec 2005 13:41:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=JotdPWqhTdmmpN2j2ioYISTdx1BSp6sTIpWtijfyrPbQ8oLqcwtg990e+Y/BkvGdeONJ8qIq6YAefbAE42MS/ah3w0P4qVlMMQA3/MhizyHqy/WcgDG7LV5rj365VT3okXvHbWXFVZ12UpREhauDokE7B3zbPz72hn3cQgY/m6M= Received: by 10.70.7.19 with SMTP id 19mr10341841wxg; Fri, 30 Dec 2005 13:41:00 -0800 (PST) Received: by 10.70.39.18 with HTTP; Fri, 30 Dec 2005 13:41:00 -0800 (PST) Message-ID: <1fa17f810512301341w5b98d554g6dcf950ab26f31bd@mail.gmail.com> Date: Sat, 31 Dec 2005 05:41:00 +0800 From: prime 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Problem about libnet on FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 21:41:15 -0000 Hi hackers, I find that I can't include when I programming with libnet,because $(CC) complains that "struct ether_addr redefined". But I need some definitions in ,struct ether_header etc. Currently,I just copy the definitions I need from ,but it seems very ugly.Any one has some good ideas? Thanks. -- Three passions, simple but overwhelmingly strong, have governed my life: the longing for love, the search for knowledge, and unbearable pity for the suffering of mankind. ---------Bertrand Russell From owner-freebsd-hackers@FreeBSD.ORG Fri Dec 30 22:14:08 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E121C16A420 for ; Fri, 30 Dec 2005 22:14:07 +0000 (GMT) (envelope-from hika@bsdmon.com) Received: from smtp.bsdmon.com (hosting-28.42.rev.fr.colt.net [213.41.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEFC243D67 for ; Fri, 30 Dec 2005 22:13:59 +0000 (GMT) (envelope-from hika@bsdmon.com) Received: from localhost (localhost [127.0.0.1]) by smtp.bsdmon.com (Postfix) with ESMTP id 06445376038 for ; Fri, 30 Dec 2005 23:13:56 +0100 (CET) Received: from smtp.bsdmon.com ([127.0.0.1]) by localhost (freefugu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26966-01 for ; Fri, 30 Dec 2005 23:13:28 +0100 (CET) Received: from mail.bsdmon.com (14.128.101-84.rev.gaoland.net [84.101.128.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.bsdmon.com (Postfix) with ESMTP id 8D166375F2E for ; Fri, 30 Dec 2005 23:13:28 +0100 (CET) Received: by sdf1.bsdmon.com (Postfix, from userid 1001) id 040ADB853; Fri, 30 Dec 2005 23:13:16 +0100 (CET) Date: Fri, 30 Dec 2005 23:13:16 +0100 From: Gilbert Cao To: freebsd-hackers@freebsd.org Message-ID: <20051230221316.GA14549@bsdmon.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qlTNgmc+xy1dBmNv" Content-Disposition: inline X-Operating-System: FreeBSD 6.0-STABLE i386 Organization: BSDMon X-GPG-Key: http://www.bsdmon.com/public_key.gpg User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at bsdmon.com Subject: Preserve date when cp over smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Dec 2005 22:14:08 -0000 --qlTNgmc+xy1dBmNv Content-Type: multipart/mixed; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, the list. I have recently notice a problem when I copy a file to a SMB mount directory : My SMB client is a FreeBSD 6.0-STABLE. My SMB server is a FreeBSD 5.4-STABLE (with port samba-3.0.8,1). When I do a 'cp -p somefile /path/to/smbmountdir/anotherfolder', the access time and modification time are not preserved, even if I use the -p flag. The user doing the copy with cp is the owner of /path/to/smbmountdir. Few days later, I have finally found the problem in the src/bin/cp source code, especially the utils.c file : I have found out that utimes() does nothing on the newly created file, if its file descriptor is not closed yet, and this is only the case in a SMB destination path. Here is a small patch I have made. So pleeaaase, committers, I hope(pray) that the correction to the cp utility can be applied (with or without the patch), for the next time ;) I will be very grateful for that, as it is very important for me to preserve the modification time when I copy some photos to my file server over smbfs :) --=20 -------------------------------- (hika) Gilbert Cao http://www.miaouirc.com - MiaouIRC Project 2002-2003 http://www.bsdmon.com - The BSD DMON Power to serve IRC : #miaule at IRCNET Network -------------------------------- --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch_cp_utils.diff" Content-Transfer-Encoding: quoted-printable --- ./src/bin/cp/utils.c.orig Sat Nov 12 22:21:45 2005 +++ ./src/bin/cp/utils.c Fri Dec 30 19:23:04 2005 @@ -204,8 +204,6 @@ * to remove it if we created it and its length is 0. */ =20 - if (pflag && setfile(fs, to_fd)) - rval =3D 1; if (pflag && preserve_fd_acls(from_fd, to_fd) !=3D 0) rval =3D 1; (void)close(from_fd); @@ -213,6 +211,14 @@ warn("%s", to.p_path); rval =3D 1; } + /* + * To preserve times in SMB to.p_path,=20 + * setfile() should be call *AFTER* we have closed the file + * descriptors. As we have closed the descriptors, we should + * pass -1 instead of the `to_fd` value + */ + if (pflag && setfile(fs, -1)) + rval =3D 1; return (rval); } =20 --0F1p//8PRICkK4MW-- --qlTNgmc+xy1dBmNv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDtbD8SyQfFTqAEpcRAhioAKCfOmVDiey7z3yYYpbrCbIAvYSDeQCeI3ve x/GBVGZfJR0CXUShEKuClcc= =ob3q -----END PGP SIGNATURE----- --qlTNgmc+xy1dBmNv-- From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 01:49:03 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2550D16A41F for ; Sat, 31 Dec 2005 01:49:03 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 15F5F43D49 for ; Sat, 31 Dec 2005 01:49:00 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 79444 invoked by uid 399); 31 Dec 2005 01:48:59 -0000 Received: from localhost (HELO ?192.168.1.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 31 Dec 2005 01:48:59 -0000 Message-ID: <43B5E388.80403@FreeBSD.org> Date: Fri, 30 Dec 2005 17:48:56 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: Gilbert Cao References: <20051230221316.GA14549@bsdmon.com> In-Reply-To: <20051230221316.GA14549@bsdmon.com> X-Enigmail-Version: 0.93.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Preserve date when cp over smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 01:49:03 -0000 Gilbert Cao wrote: > Hi, the list. > > I have recently notice a problem when I copy a file to a SMB mount > directory : Thanks for the good detective work. Can you send-pr this so that it does not get lost? Doug -- This .signature sanitized for your protection From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 01:27:10 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE0A716A41F for ; Sat, 31 Dec 2005 01:27:10 +0000 (GMT) (envelope-from dougb@dougbarton.us) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id 7D59F43D5A for ; Sat, 31 Dec 2005 01:27:10 +0000 (GMT) (envelope-from dougb@dougbarton.us) Received: (qmail 29543 invoked by uid 399); 31 Dec 2005 01:27:08 -0000 Received: from localhost (HELO ?192.168.1.101?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 31 Dec 2005 01:27:08 -0000 Message-ID: <43B5DE6C.5090708@dougbarton.us> Date: Fri, 30 Dec 2005 17:27:08 -0800 From: Doug Barton User-Agent: Thunderbird 1.5 (Windows/20051025) MIME-Version: 1.0 To: Gilbert Cao References: <20051230221316.GA14549@bsdmon.com> In-Reply-To: <20051230221316.GA14549@bsdmon.com> X-Enigmail-Version: 0.93.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Sat, 31 Dec 2005 04:09:24 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Preserve date when cp over smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 01:27:11 -0000 Gilbert Cao wrote: > Hi, the list. > > I have recently notice a problem when I copy a file to a SMB mount > directory : Good detective work! Please send-pr this so it does not get lost. Doug From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 07:12:29 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0B2A16A422 for ; Sat, 31 Dec 2005 07:12:29 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8025B43D60 for ; Sat, 31 Dec 2005 07:12:25 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id B755A46B0C; Sat, 31 Dec 2005 02:12:23 -0500 (EST) Date: Sat, 31 Dec 2005 07:12:23 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Avleen Vig In-Reply-To: <20051217063409.GB19094@silverwraith.com> Message-ID: <20051231070750.T5785@fledge.watson.org> References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 07:12:29 -0000 On Fri, 16 Dec 2005, Avleen Vig wrote: > On Fri, Dec 16, 2005 at 10:40:22AM -0500, Martin Cracauer wrote: >>> 2. SMP kernels for install. Right now we only install a UP kernel, for >>> performance reasons. We should be able to package both a UP and SMP >>> kernel into the release bits, and have sysinstall install both. It >>> should also select the correct one for the target system and make that >>> the default on boot. >> >> If people are concerned about performance, I benchmarked a 6-beta kernel >> SMP versus UP on a socket 939 Opteron. > > If those results are accurate, there's no real reason not to just use an SMP > kernel on default install? This is an old thread that I'm just catching up on, but I figured I'd chime in anyway: you have to be really careful benchmarking across CPU types and configurations, as the performance characteristics of important insturctions differ a lot across hardware variations. For example, the performance of atomic operations, used to synchronize between CPUs, varies significantly by CP, bus configuration, etc. On modern opteron hardware, the performance of inter-CPU synchronization instructions is blindingly fast. On modern Xeon P4 hardware, it is incredibly slow. Software optimized for the Opteron will often perform much slower on Xeon P4 hardware as a result. P3 hardware tends to behave a lot more like Opteron in terms of speed of insturctions relating to disabling interrupts, where on P4 Xeon they are proprtionally much slower. The critical section optimizations made by John Baldwin, and the movement to critical sections in UMA and kernel malloc that I made, made a big performance difference on Xeon P4 hardware, but relatively little difference on Opteron. All this seems to suggest that when comparing UP and SMP, it's useful to do it on nice opteron hardware, but also on P4 Xeon to prevent making decisions based on platform-specific properties. Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 12:55:40 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C86716A41F for ; Sat, 31 Dec 2005 12:55:40 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0123343D5E for ; Sat, 31 Dec 2005 12:55:38 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so156870wxc for ; Sat, 31 Dec 2005 04:55:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=b/j8ZvIkUnWQQfLK07PVHa8ndIQ8O8mri0DVJme13C98ZZj5xjSSeW2ESk3fzUUiBdeVIU0gbiGakneHsFcQNU167WMNTz5vprYWj2FdtkdaJxf2uCnK4cemsI7yn4JMjeTDHTrMga6yZirG3Q+ETnfX9P07z2PSmhcpflddkG0= Received: by 10.70.22.19 with SMTP id 19mr10773739wxv; Sat, 31 Dec 2005 04:55:38 -0800 (PST) Received: by 10.70.39.18 with HTTP; Sat, 31 Dec 2005 04:55:38 -0800 (PST) Message-ID: <1fa17f810512310455l3146b840w12a1a53361029608@mail.gmail.com> Date: Sat, 31 Dec 2005 20:55:38 +0800 From: prime To: Gilbert Fernandes In-Reply-To: <20051231133853.pyq2hfoow4sgcsw8@webmail.spamcop.net> MIME-Version: 1.0 References: <1fa17f810512301341w5b98d554g6dcf950ab26f31bd@mail.gmail.com> <20051231133853.pyq2hfoow4sgcsw8@webmail.spamcop.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Problem about libnet on FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 12:55:40 -0000 On 12/31/05, Gilbert Fernandes wrote: > > > I find that I can't include when I programming > > with libnet,because $(CC) complains that "struct ether_addr redefined". > > But I need some definitions in ,struct ether_header etc= . > > Currently,I just copy the definitions I need from ,but > > it seems very ugly.Any one has some good ideas? > > Could you show us the include line you use ? > > #include "blabla" and > #include > > will produce very different results as you know :) > > You do use #include ? > > -- > unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; > fsck ; umount ; sleep > Here is my include lines, #include ...... #include #include #include ........... and this is the error, $(CC) said "/usr/local/include/./libnet/libnet-headers.h:393: error: redefinition of `struct ether_addr'" Thanks. -- Three passions, simple but overwhelmingly strong, have governed my life: the longing for love, the search for knowledge, and unbearable pity for the suffering of mankind. ---------Bertrand Russell From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 15:04:16 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8896B16A41F; Sat, 31 Dec 2005 15:04:16 +0000 (GMT) (envelope-from hika@bsdmon.com) Received: from smtp.bsdmon.com (hosting-28.42.rev.fr.colt.net [213.41.42.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F9B843DA0; Sat, 31 Dec 2005 15:03:35 +0000 (GMT) (envelope-from hika@bsdmon.com) Received: from localhost (localhost [127.0.0.1]) by smtp.bsdmon.com (Postfix) with ESMTP id 077E2375F2E; Sat, 31 Dec 2005 16:03:30 +0100 (CET) Received: from smtp.bsdmon.com ([127.0.0.1]) by localhost (freefugu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 48890-04; Sat, 31 Dec 2005 16:03:20 +0100 (CET) Received: from mail.bsdmon.com (14.128.101-84.rev.gaoland.net [84.101.128.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.bsdmon.com (Postfix) with ESMTP id 10F51375E98; Sat, 31 Dec 2005 16:03:20 +0100 (CET) Received: by sdf1.bsdmon.com (Postfix, from userid 1001) id 38916B853; Sat, 31 Dec 2005 16:03:18 +0100 (CET) Date: Sat, 31 Dec 2005 16:03:17 +0100 From: Gilbert Cao To: Doug Barton Message-ID: <20051231150317.GA1030@bsdmon.com> References: <20051230221316.GA14549@bsdmon.com> <43B5E388.80403@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <43B5E388.80403@FreeBSD.org> X-Operating-System: FreeBSD 6.0-STABLE i386 Organization: BSDMon X-GPG-Key: http://www.bsdmon.com/public_key.gpg User-Agent: Mutt/1.5.11 X-Virus-Scanned: amavisd-new at bsdmon.com Cc: freebsd-hackers@freebsd.org Subject: Re: Preserve date when cp over smbfs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 15:04:16 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Dec 30, 2005 at 05:48:56PM -0800, Doug Barton wrote: > Gilbert Cao wrote: > > Hi, the list. > >=20 > > I have recently notice a problem when I copy a file to a SMB mount > > directory : >=20 > Thanks for the good detective work. Can you send-pr this so that it does = not > get lost? Yep, it is done : http://www.freebsd.org/cgi/query-pr.cgi?pr=3D91134 Hope this helps. >=20 > Doug >=20 --=20 -------------------------------- (hika) Gilbert Cao http://www.miaouirc.com - MiaouIRC Project 2002-2003 http://www.bsdmon.com - The BSD DMON Power to serve IRC : #miaule at IRCNET Network -------------------------------- --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDtp21SyQfFTqAEpcRAj3qAJ4o0keCkha2FIcxGe+mFRqW9jutEACfVfmv +997M5eDVygpuYhsfrvhkcA= =KA39 -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT-- From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 15:25:58 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5304516A41F for ; Sat, 31 Dec 2005 15:25:58 +0000 (GMT) (envelope-from edelkind-freebsd-hackers@episec.com) Received: from episec.com (episec.com [69.55.237.141]) by mx1.FreeBSD.org (Postfix) with SMTP id EB4CF43D4C for ; Sat, 31 Dec 2005 15:25:57 +0000 (GMT) (envelope-from edelkind-freebsd-hackers@episec.com) Received: (qmail 48252 invoked by uid 1024); 31 Dec 2005 15:25:57 -0000 Date: Sat, 31 Dec 2005 10:25:57 -0500 From: ari edelkind To: freebsd-hackers@freebsd.org Message-ID: <20051231152557.GE15481@episec.com> Mail-Followup-To: ari edelkind , freebsd-hackers@freebsd.org References: <1fa17f810512301341w5b98d554g6dcf950ab26f31bd@mail.gmail.com> <20051231133853.pyq2hfoow4sgcsw8@webmail.spamcop.net> <1fa17f810512310455l3146b840w12a1a53361029608@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1fa17f810512310455l3146b840w12a1a53361029608@mail.gmail.com> Subject: Re: Problem about libnet on FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 15:25:58 -0000 guomingyan@gmail.com wrote: > On 12/31/05, Gilbert Fernandes wrote: > > > > > I find that I can't include when I programming > > > with libnet,because $(CC) complains that "struct ether_addr redefined". > > > But I need some definitions in ,struct ether_header etc. > > > Currently,I just copy the definitions I need from ,but > > > it seems very ugly.Any one has some good ideas? > > > Here is my include lines, > #include ...... > #include > #include > #include > ........... > and this is the error, > $(CC) said "/usr/local/include/./libnet/libnet-headers.h:393: error: > redefinition of `struct ether_addr'" > Assuming that either the practical contents of 'struct ether_addr' are the same for both definitions or that it doesn't matter for any inline functions you may be using within the header file (chances are, this assumption is valid): #include #include #define ether_addr ether_addr_BROKEN_LIBNET # include #undef ether_addr .... ari From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 14:29:04 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D851616A41F for ; Sat, 31 Dec 2005 14:29:04 +0000 (GMT) (envelope-from gilbert.fernandes@spamcop.net) Received: from mailgate.cesmail.net (mailgate.cesmail.net [216.154.195.36]) by mx1.FreeBSD.org (Postfix) with SMTP id 4287843D45 for ; Sat, 31 Dec 2005 14:29:04 +0000 (GMT) (envelope-from gilbert.fernandes@spamcop.net) Received: (qmail 4990 invoked from network); 31 Dec 2005 14:29:03 -0000 Received: from unknown (HELO delta.cesmail.net) (192.168.1.30) by mailgate.cesmail.net with SMTP; 31 Dec 2005 14:29:03 -0000 Received: (qmail 11260 invoked by uid 99); 31 Dec 2005 14:29:03 -0000 Received: from interne-05-23.anon.t-online.fr (interne-05-23.anon.t-online.fr [213.44.125.23]) by webmail.spamcop.net (Horde) with HTTP for ; Sat, 31 Dec 2005 15:29:03 +0100 Message-ID: <20051231152903.e6dmhg00c0g4oow8@webmail.spamcop.net> Date: Sat, 31 Dec 2005 15:29:03 +0100 From: Gilbert Fernandes To: prime References: <1fa17f810512301341w5b98d554g6dcf950ab26f31bd@mail.gmail.com> <20051231133853.pyq2hfoow4sgcsw8@webmail.spamcop.net> <1fa17f810512310455l3146b840w12a1a53361029608@mail.gmail.com> In-Reply-To: <1fa17f810512310455l3146b840w12a1a53361029608@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Mailman-Approved-At: Sat, 31 Dec 2005 15:34:00 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Problem about libnet on FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 14:29:05 -0000 > ----- Message from guomingyan@gmail.com --------- > Date: Sat, 31 Dec 2005 20:55:38 +0800 > From: prime > Reply-To: prime > Subject: Re: Problem about libnet on FreeBSD 6.0 > To: Gilbert Fernandes > > On 12/31/05, Gilbert Fernandes wrote: > > > > > I find that I can't include when I programming > > > with libnet,because $(CC) complains that "struct ether_addr > redefined". > > > But I need some definitions in ,struct ether_header > etc. > > > Currently,I just copy the definitions I need from > ,but > > > it seems very ugly.Any one has some good ideas? > > > > Could you show us the include line you use ? > > > > #include "blabla" and > > #include > > > > will produce very different results as you know :) > > > > You do use #include ? > > > > -- > > unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; > > fsck ; umount ; sleep > > > Here is my include lines, > #include ...... > #include > #include > #include > ........... > and this is the error, > $(CC) said "/usr/local/include/./libnet/libnet-headers.h:393: error: > redefinition of `struct ether_addr'" > > > Thanks. > -- > Three passions, simple but overwhelmingly strong, have governed my life: > the longing for love, the search for knowledge, and unbearable pity for > the suffering of mankind. > ---------Bertrand Russell > > > ----- End message from guomingyan@gmail.com ----- Redefinition means that you have two declarations of the same function. One of the files you are including IS already including net/ethernet probably. Can you check ? :) -- unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; fsck ; umount ; sleep From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 16:25:18 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CBD916A41F; Sat, 31 Dec 2005 16:25:18 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id B306143D5F; Sat, 31 Dec 2005 16:25:08 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.3/8.12.9) with ESMTP id jBVGP7fG062707; Sat, 31 Dec 2005 17:25:07 +0100 (CET) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.3/8.12.9/Submit) id jBVGOt4k062700; Sat, 31 Dec 2005 11:24:55 -0500 (EST) (envelope-from cracauer) Date: Sat, 31 Dec 2005 11:24:55 -0500 From: Martin Cracauer To: Robert Watson Message-ID: <20051231112455.A62454@cons.org> References: <43A26FFB.9080405@samsco.org> <20051216104022.A20877@cons.org> <20051217063409.GB19094@silverwraith.com> <20051231070750.T5785@fledge.watson.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20051231070750.T5785@fledge.watson.org>; from rwatson@freebsd.org on Sat, Dec 31, 2005 at 07:12:23AM +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: My wish list for 6.1 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 16:25:18 -0000 Robert Watson wrote on Sat, Dec 31, 2005 at 07:12:23AM +0000: > > On Fri, 16 Dec 2005, Avleen Vig wrote: > > > On Fri, Dec 16, 2005 at 10:40:22AM -0500, Martin Cracauer wrote: > >>> 2. SMP kernels for install. Right now we only install a UP kernel, for > >>> performance reasons. We should be able to package both a UP and SMP > >>> kernel into the release bits, and have sysinstall install both. It > >>> should also select the correct one for the target system and make that > >>> the default on boot. > >> > >> If people are concerned about performance, I benchmarked a 6-beta kernel > >> SMP versus UP on a socket 939 Opteron. > > > > If those results are accurate, there's no real reason not to just use an SMP > > kernel on default install? > > This is an old thread that I'm just catching up on, but I figured I'd chime in > anyway: you have to be really careful benchmarking across CPU types and > configurations, as the performance characteristics of important insturctions > differ a lot across hardware variations. For example, the performance of > atomic operations, used to synchronize between CPUs, varies significantly by > CP, bus configuration, etc. On modern opteron hardware, the performance of > inter-CPU synchronization instructions is blindingly fast. On modern Xeon P4 > hardware, it is incredibly slow. Well, my runs included P4s and P4-based Xeons, and hyperthreading, too. The core of the problem here is that while my parallel benchmarks are partly system-call exercising, I use apache over localhost and zero-spaced files to get the disk and network out of the equitation. I think I have a solid framework in place to run parallel benchmarks and see the tradeoffs involved, but I need to fill it with activity that exercises what we want to see. Still, I bet that my measurements are good enough to label the SMP kernel "defaultable" for FreeBSD installations, from a performance standpoint. After all, I *do* test parallel activity, CPU-intensive and systemcall-intensive and various mixes thereof. Remember that those people who do a lot of parallel activity and hence would suffer from the additional locks in the SMP kernel are very likely to have a SMP system, dual-cores or at least hyperthreading in first place. On the other hand, people who use very low-end hardware to do demanding tasks are very likely to build their own kernel anyway. > Software optimized for the Opteron will > often perform much slower on Xeon P4 hardware as a result. P3 hardware tends > to behave a lot more like Opteron in terms of speed of insturctions relating > to disabling interrupts, where on P4 Xeon they are proprtionally much slower. > The critical section optimizations made by John Baldwin, and the movement to > critical sections in UMA and kernel malloc that I made, made a big performance > difference on Xeon P4 hardware, but relatively little difference on > Opteron. One thing I noticed is that anything P4-based is very sensitive to spinlocks being placed on the same cache line as the data it protects. Putting a lock into a struct without cache-line crossing padding means doom for the P4-based/netburst CPUs (I'm sure it's not a good thing for Opterons either but they don't seem to mind that much). Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/ From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 17:01:13 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C57B16A41F for ; Sat, 31 Dec 2005 17:01:13 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A97A43D53 for ; Sat, 31 Dec 2005 17:01:11 +0000 (GMT) (envelope-from guomingyan@gmail.com) Received: by xproxy.gmail.com with SMTP id t12so176239wxc for ; Sat, 31 Dec 2005 09:01:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=PLXcTGZr5jjhP5CebNPXjskqZsK12v+ANbFcMTByZN/gV/EDbwdu3leLJWPoFdl8qrkGDVOoGTMnGIljiacLuKJJ5TdqWP2zUpOXvjZur/gQiQbPf/xTVvECVV8tLgDZw21q6RVJxvBwevRfMkEe+gkbEPeRJehvy2n3BwJ7J+A= Received: by 10.70.52.5 with SMTP id z5mr7450392wxz; Sat, 31 Dec 2005 09:01:10 -0800 (PST) Received: by 10.70.39.18 with HTTP; Sat, 31 Dec 2005 09:01:10 -0800 (PST) Message-ID: <1fa17f810512310901lbabc8ddj630fcf2a79691ba1@mail.gmail.com> Date: Sun, 1 Jan 2006 01:01:10 +0800 From: prime 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 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Problem about libnet on FreeBSD 6.0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 17:01:13 -0000 On 12/31/05, Gilbert Fernandes wrote: > > > ----- Message from guomingyan@gmail.com --------- > > Date: Sat, 31 Dec 2005 20:55:38 +0800 > > From: prime > > Reply-To: prime > > Subject: Re: Problem about libnet on FreeBSD 6.0 > > To: Gilbert Fernandes < gilbert.fernandes@spamcop.net> > > > > On 12/31/05, Gilbert Fernandes wrote: > > > > > > > I find that I can't include when I programming > > > > with libnet,because $(CC) complains that "struct ether_addr > > redefined". > > > > But I need some definitions in ,struct ether_header > > etc. > > > > Currently,I just copy the definitions I need from > > ,but > > > > it seems very ugly.Any one has some good ideas? > > > > > > Could you show us the include line you use ? > > > > > > #include "blabla" and > > > #include > > > > > > will produce very different results as you know :) > > > > > > You do use #include ? > > > > > > -- > > > unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; > > > fsck ; umount ; sleep > > > > > Here is my include lines, > > #include ...... > > #include > > #include > > #include > > ........... > > and this is the error, > > $(CC) said "/usr/local/include/./libnet/libnet-headers.h:393: error: > > redefinition of `struct ether_addr'" > > > > > > Thanks. > > -- > > Three passions, simple but overwhelmingly strong, have governed my life= : > > > the longing for love, the search for knowledge, and unbearable pity for > > the suffering of mankind. > > ---------Bertrand Russell > > > > > > ----- End message from guomingyan@gmail.com ----- > > Redefinition means that you have two declarations of the same > function. > > One of the files you are including IS already including net/ethernet > probably. > > Can you check ? :) > > -- > unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; > fsck ; umount ; sleep > I can't agree more.Header files usually use "#ifndef XXX_H #define XXX_H ......... #endif" to avoid being included more than once. is not different= . it use "#ifndef _NET_ETHERNET_H_ #define _NET_ETHERNET_H_ ...... #endif" to avoid more than once include. In my opinion,struct ether_addr is defined both in and libnet-headers.h,and we need include these two header files at the same time. And here is my include lines #include #include #include #include #include #include #include #include #include #include #include #include #include #include -- Three passions, simple but overwhelmingly strong, have governed my life: the longing for love, the search for knowledge, and unbearable pity for the suffering of mankind. ---------Bertrand Russell From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 17:34:48 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 91D1516A41F for ; Sat, 31 Dec 2005 17:34:48 +0000 (GMT) (envelope-from a.pirko@inode.at) Received: from smartmx-07.inode.at (smartmx-07.inode.at [213.229.60.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0242743D64 for ; Sat, 31 Dec 2005 17:34:47 +0000 (GMT) (envelope-from a.pirko@inode.at) Received: from [85.124.24.193] (port=50359 helo=[192.168.1.11]) by smartmx-07.inode.at with esmtp (Exim 4.50) id 1Eskcw-0005Vs-IL for freebsd-hackers@freebsd.org; Sat, 31 Dec 2005 18:34:46 +0100 Message-ID: <43B6C134.6060802@inode.at> Date: Sat, 31 Dec 2005 18:34:44 +0100 From: Armin Pirkovitsch User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051204) 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 X-Mailman-Approved-At: Sat, 31 Dec 2005 17:40:00 +0000 Subject: Deadlock FreeBSD 6 / 7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 17:34:48 -0000 Hi! I have some troubles with my notebook and any version of FreeBSD (starting with 6 since my sata controller wasn't supported earlier). It looks like as it would end up in a deadlock which means i have no access to the debugger nor to any other kind of tracing methods. Even with KTR, WITTNESS and DIAGNOSTIC enabled in the kerenl I get no message what went wrong or what might have caused the trouble. These fullstops always turn up when i compile and install programs (or sometimes during the installation of FreeBSD itself) Hardware: Intel Pentium-M 760 (Centrino, 2GHz) VIA VT 6421 SATA Controller 80GB Samsung SATA HD I guess one of those parts creates the trouble, but I have no idea how to trace it... Is there a way to run the whole thing in some kind of debugger? Or is there a diffrent way to locate the problem? Thank's in advance and a Happy New Year, -- Armin Pirkovitsch a.pirko@inode.at From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 18:58:54 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D9CF16A41F for ; Sat, 31 Dec 2005 18:58:54 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A81743D58 for ; Sat, 31 Dec 2005 18:58:53 +0000 (GMT) (envelope-from cracauer@schlepper.zs64.net) Received: from schlepper.zs64.net (schlepper [212.12.50.230]) by schlepper.zs64.net (8.13.3/8.12.9) with ESMTP id jBVIwprX065798; Sat, 31 Dec 2005 19:58:51 +0100 (CET) (envelope-from cracauer@schlepper.zs64.net) Received: (from cracauer@localhost) by schlepper.zs64.net (8.13.3/8.12.9/Submit) id jBVIwpud065797; Sat, 31 Dec 2005 13:58:51 -0500 (EST) (envelope-from cracauer) Date: Sat, 31 Dec 2005 13:58:51 -0500 From: Martin Cracauer To: Armin Pirkovitsch Message-ID: <20051231135851.A65762@cons.org> References: <43B6C134.6060802@inode.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <43B6C134.6060802@inode.at>; from a.pirko@inode.at on Sat, Dec 31, 2005 at 06:34:44PM +0100 Cc: freebsd-hackers@freebsd.org Subject: Re: Deadlock FreeBSD 6 / 7 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 18:58:54 -0000 Armin Pirkovitsch wrote on Sat, Dec 31, 2005 at 06:34:44PM +0100: > Hi! > > I have some troubles with my notebook and any version of FreeBSD > (starting with 6 since my sata controller wasn't supported earlier). > It looks like as it would end up in a deadlock which means i have no > access to the debugger nor to any other kind of tracing methods. > Even with KTR, WITTNESS and DIAGNOSTIC enabled in the kerenl I get no > message what went wrong or what might have caused the trouble. > These fullstops always turn up when i compile and install programs (or > sometimes during the installation of FreeBSD itself) > Hardware: > Intel Pentium-M 760 (Centrino, 2GHz) > VIA VT 6421 SATA Controller > 80GB Samsung SATA HD > > I guess one of those parts creates the trouble, but I have no idea how > to trace it... > Is there a way to run the whole thing in some kind of debugger? > Or is there a diffrent way to locate the problem? It's more likely to be a general instability from broken hardware. Use prime95 (ports/math/mprime) to test your processor and thermal stability (36 hours or so), and memtest86 (seperately). Martin -- %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Martin Cracauer http://www.cons.org/cracauer/ FreeBSD - where you want to go, today. http://www.freebsd.org/ From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 31 19:26:18 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D536916A41F for ; Sat, 31 Dec 2005 19:26:18 +0000 (GMT) (envelope-from aanton@spintech.ro) Received: from smtpx.spintech.ro (smtpx.spintech.ro [81.180.92.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5B99F43D49 for ; Sat, 31 Dec 2005 19:26:18 +0000 (GMT) (envelope-from aanton@spintech.ro) Received: from laura-axiomeda (unknown [11.0.0.25]) by smtpx.spintech.ro (Postfix) with ESMTP id 365543A4B8 for ; Sat, 31 Dec 2005 19:39:08 +0000 (UTC) X-Laura: version 0.0.1b10-frustratus proxied X-Laura-Remote-IP: 10.0.0.2 Received: from [10.0.0.2] (beastie [10.0.0.2]) by smtpx.spintech.ro (Postfix) with ESMTP id B9C5D3A49A for ; Sat, 31 Dec 2005 19:39:07 +0000 (UTC) Message-ID: <43B6DB58.5080206@spintech.ro> Date: Sat, 31 Dec 2005 21:26:16 +0200 From: Alin-Adrian Anton Organization: Spintech Security Systems User-Agent: Mozilla Thunderbird 1.0 (X11/20041229) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Happy new year! (empty body) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aanton@spintech.ro List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Dec 2005 19:26:19 -0000 I told you it's an empty body, but this is probably why you opened it. Happy new year FreeBSD hackers, and thank you all for your work and efforts. Yours Sincerely, -- Alin-Adrian Anton GPG keyID 0x183087BA (B129 E8F4 7B34 15A9 0785 2F7C 5823 ABA0 1830 87BA) gpg --keyserver pgp.mit.edu --recv-keys 0x183087BA "It is dangerous to be right when the government is wrong." - Voltaire