From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 07:05:22 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE6D216A4CE for ; Mon, 3 Jan 2005 07:05:22 +0000 (GMT) Received: from dave.horsfall.org (mrdavi2.lnk.telstra.net [139.130.75.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id B647C43D2F for ; Mon, 3 Jan 2005 07:05:20 +0000 (GMT) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by dave.horsfall.org (8.11.4/8.11.4) with ESMTP id j0375HI13250 for ; Mon, 3 Jan 2005 18:05:17 +1100 (EST) Date: Mon, 3 Jan 2005 18:05:17 +1100 (EST) From: Dave Horsfall To: FreeBSD Hackers Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Using PCMCIA ATA adaptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 07:05:23 -0000 I have a Kingston StrataDrive Plus adaptor, which in conjunction with a Windoze driver (and Kingston drives *only*) allow a 2nd ATA drive to be connected to a laptop. Any chance that it can be used with FreeBSD? 5.3-STABLE says "ata2: " -- Dave From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 12:39:50 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9DAB016A4CE for ; Mon, 3 Jan 2005 12:39:50 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 462FB43D1D for ; Mon, 3 Jan 2005 12:39:50 +0000 (GMT) (envelope-from tejas.sumant@gmail.com) Received: by rproxy.gmail.com with SMTP id g11so20699rne for ; Mon, 03 Jan 2005 04:39:49 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:from:to:subject:date:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=qDMmtkFFwFDgxaEIVax0U2YHV5QAHhb/KhzAy/t9+seBssSRPtQnk6NA678LSvACAYsbCoOIIhxnn7OiBhLWYft+fXTLy0F+9/H4+edifwdYnksaY551eeKF9/ncxcfjXtnohzgdP9FdjxHbIZIf71W1V8KjsoEAVdRBAPEVl84= Received: by 10.38.86.65 with SMTP id j65mr182234rnb; Mon, 03 Jan 2005 04:39:49 -0800 (PST) Received: from dhruv ([61.11.17.122]) by smtp.gmail.com with ESMTP id 63sm155881rna.2005.01.03.04.39.48; Mon, 03 Jan 2005 04:39:49 -0800 (PST) Message-ID: <009e01c4f191$50433430$1500a8c0@indranet.local> From: "Tejas Sumant" To: Date: Mon, 3 Jan 2005 18:09:45 +0530 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Subject: Freeing Volatile Pointer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 12:39:50 -0000 Hi, I have a volatile pointer declared in my device driver. I am allocating memory using kernel malloc function. host_mem_resp_ptr = (volatile unsigned long *)malloc(sizeof(volatile unsigned long), M_DEVBUF, M_NOWAIT); When I try to free it, I get following warning while compiling the driver. "warning: passing arg 1 of free discards qualifiers from pointer target type" The statment to free the memory is free(host_mem_resp_ptr, M_DEVBUF); Can anybody please tell me reason and solution? Tejas From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 12:53:48 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6A1E416A4CE for ; Mon, 3 Jan 2005 12:53:48 +0000 (GMT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 0823E43D54 for ; Mon, 3 Jan 2005 12:53:47 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 1157 invoked from network); 3 Jan 2005 12:53:41 -0000 Received: from unknown (HELO straylight.ringlet.net) (217.75.135.134) by gandalf.online.bg with SMTP; 3 Jan 2005 12:53:41 -0000 Received: (qmail 6124 invoked by uid 1000); 3 Jan 2005 12:53:51 -0000 Date: Mon, 3 Jan 2005 14:53:51 +0200 From: Peter Pentchev To: Tejas Sumant Message-ID: <20050103125351.GA1242@straylight.m.ringlet.net> Mail-Followup-To: Tejas Sumant , freebsd-hackers@freebsd.org References: <009e01c4f191$50433430$1500a8c0@indranet.local> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <009e01c4f191$50433430$1500a8c0@indranet.local> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Freeing Volatile Pointer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 12:53:48 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 03, 2005 at 06:09:45PM +0530, Tejas Sumant wrote: > Hi, >=20 > I have a volatile pointer declared in my device driver. > I am allocating memory using kernel malloc function. >=20 > host_mem_resp_ptr =3D (volatile unsigned long *)malloc(sizeof(volatile > unsigned long), M_DEVBUF, M_NOWAIT); >=20 > When I try to free it, I get following warning while compiling the driver. >=20 > "warning: passing arg 1 of free discards qualifiers from pointer target > type" >=20 > The statment to free the memory is >=20 > free(host_mem_resp_ptr, M_DEVBUF); >=20 > Can anybody please tell me reason and solution? The reason is that the C compiler treats 'void *' and 'volatile void *' as different types. In this case, the compiler casts your 'unsigned long *' to 'void *' and still warns you that this might not necessarily be what you want, although it is harmless in this case. In theory, if a function is declared as accepting a non-volatile pointer, passing a volatile pointer could be dangerous - the function could stash it somewhere and then attempt to reuse it later when its value has actually been changed. This might cause the function to access memory that is no longer allocated, or just the wrong chunk of memory, or something similar. In your case the only danger lies in some other thread modifying the pointer *and invalidating the memory* that it previously pointed to, after you call free() and before free() has actually freed the memory. It is up to you to decide whether this is a risk - or rather, to make sure that it isn't :) Then use something like: free((void *)host_mem_resp_ptr, M_DEVBUF) =2E..and you should be okay, unless you specifically pass -Wcast-qual to the compiler. If you do, it will again give this warning, just because you have explicitly asked it to :) G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 What would this sentence be like if pi were 3? --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB2UBf7Ri2jRYZRVMRAuRrAJ9LxGaNChBnrbXbAwd3q7uWoBwvowCgwLck lza2+Yjf61UH4SiXkB7iy2w= =Nh4u -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 2 21:30:47 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1884116A4CE for ; Sun, 2 Jan 2005 21:30:47 +0000 (GMT) Received: from web30905.mail.mud.yahoo.com (web30905.mail.mud.yahoo.com [68.142.200.158]) by mx1.FreeBSD.org (Postfix) with SMTP id 83E0A43D39 for ; Sun, 2 Jan 2005 21:30:44 +0000 (GMT) (envelope-from mcd_advisory@yahoo.com) Message-ID: <20050102213044.37687.qmail@web30905.mail.mud.yahoo.com> Received: from [206.113.106.5] by web30905.mail.mud.yahoo.com via HTTP; Sun, 02 Jan 2005 13:30:44 PST Date: Sun, 2 Jan 2005 13:30:44 -0800 (PST) From: Mervin McDougall To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1739706792-1104701444=:35798" X-Mailman-Approved-At: Mon, 03 Jan 2005 13:09:57 +0000 X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Slow transition from X to vesa X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 21:30:47 -0000 --0-1739706792-1104701444=:35798 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline I recently applied a patch from current to adjust the console settings for my laptop. Previously my console was limited to 1/3 rd of my screen, however due to the new current-vesa patch I can now view my console using the entire screen with only one problem. I have noticed that there is a small delay of two seconds when switching from X to my vesa consoles. Furethermore, I have noticed that if I am playing music via xmms whether through a shoutcast stream or an mp3 from my harddrive the music continues to play a small portion repeatedly until the vesa console comes up. That can be very irritating. I have attached a copy of my pci_configuration as well as a copy of the patch which I applied to my system. I hope that will be of some help. If you need any more information feel free to ask. __________________________________ Do you Yahoo!? The all-new My Yahoo! - What will yours do? http://my.yahoo.com --0-1739706792-1104701444=:35798 Content-Type: application/octet-stream; name=pci_config Content-Transfer-Encoding: base64 Content-Description: pci_config Content-Disposition: attachment; filename=pci_config aG9zdGIwQHBjaTA6MDowOgljbGFzcz0weDA2MDAwMCBjYXJkPTB4MDAwMDAw MDAgY2hpcD0weGNh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gICBkZXZpY2Ug ICA9ICdNMTU0MyBTb3V0aGJyaWRnZSBFSURFIENvbnRyb2xsZXInCiAgICBj bGFzcyAgICA9IG1hc3Mgc3RvcmFnZQogICAgc3ViY2xhc3MgPSBBVEEKbm9u ZTFAcGNpMDoxNzowOgljbGFzcz0weDA2ODAwMCBjYXJkPTB4MDAyNDEwM2Mg Y2hpcD0weDcxMDExMGI5IHJldj0weDAwIGhkcj0weDAwCiAgICB2ZW5kb3Ig ICA9ICdBY2VyIExhYnMgSW5jb3Jwb3JhdGVkIChBTGkpJwogICAgZGV2aWNl ICAgPSAnQUxJIE03MTAxIFBvd2VyIE1hbmFnZW1lbnQgQ29udHJvbGxlcicK ICAgIGNsYXNzICAgID0gYnJpZGdlCiAgICBzdWJjbGFzcyA9IFBDSS11bmtu b3duCnNpczBAcGNpMDoxODowOgljbGFzcz0weDAyMDAwMCBjYXJkPTB4MDAy NDEwM2MgY2hpcD0weDAwMjAxMDBiIHJldj0weDAwIGhkcj0weDAwCiAgICB2 ZW5kb3IgICA9ICdOYXRpb25hbCBTZW1pY29uZHVjdG9yJwogICAgZGV2aWNl ICAgPSAnRFA4MzgxNS8xNiBGYXN0IEV0aGVybmV0IEFkYXB0ZXIgKE1hY1Bo eXRlci9NYWNQaHl0ZXItSUkpJwogICAgY2xhc3MgICAgPSBuZXR3b3JrCiAg ICBzdWJjbGFzcyA9IGV0aGVybmV0Cm5vbmUyQHBjaTE6NTowOgljbGFzcz0w eDAzMDAwMCBjYXJkPTB4MDAyNDEwM2MgY2hpcD0weDQzMzYxMDAyIHJldj0w eDAwIGhkcj0weDAwCiAgICB2ZW5kb3IgICA9ICdBVEkgVGVjaG5vbG9naWVz IEluYy4nCiAgICBkZXZpY2UgICA9ICdSYWRlb24gTW9iaWxpdHkgVTEnCiAg ICBjbGFzcyAgICA9IGRpc3BsYXkKICAgIHN1YmNsYXNzID0gVkdBCg== --0-1739706792-1104701444=:35798-- From owner-freebsd-hackers@FreeBSD.ORG Sun Jan 2 23:37:09 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2F0B16A4CE for ; Sun, 2 Jan 2005 23:37:09 +0000 (GMT) Received: from hermes.hw.ru (hermes.hw.ru [80.68.240.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 549D143D1D for ; Sun, 2 Jan 2005 23:37:08 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from [213.141.131.116] (account rojer@rbc.ru HELO [192.168.10.3]) by hermes.hw.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 68113727 for freebsd-hackers@freebsd.org; Mon, 03 Jan 2005 02:37:06 +0300 Message-ID: <41D8859E.4080609@rojer.pp.ru> Date: Mon, 03 Jan 2005 02:37:02 +0300 From: Rojer User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms050601090807040502020201" X-Mailman-Approved-At: Mon, 03 Jan 2005 13:09:57 +0000 Subject: Determining userland return address (from syscall) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Jan 2005 23:37:09 -0000 This is a cryptographically signed message in MIME format. --------------ms050601090807040502020201 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Greetings, much respected FreeBAS Hackers! :) I am developing a kernel module that implements a custom syscall and needs to know from what exact userland address was the call made. Being concerned about choosing the most correct approach, I turned to this list for help. Please provide as much information as you can. For those interested I will explain the purpose. I've been thinking of some way to let Apache children a limited ability to setuid() as a solution for both suexec and the infamous PHP-as-a-module issue. The solution I am about to implement is based on a custom setuid syscall, that would allow limited list of processes to obtain root privileges from a limited set of locations (supposedly, the trusted ones, originating in the httpd's .text section). The modified Apache child would issue such a syscall, get root privileges and then immediately setusercontext() for the request it is about to process. The list of processes and locations would be maintained by Apache parent that runs with root privileges already, child processes would not be allowed to modify the list. The key point here is ability to trust a call being made from a specific location. I assume that process cannot change its .text section once loaded so this scheme would no be abused by overwriting the location with malicious code. Am I correct here? What do you think of this scheme overall? Thank you. -- Deomid Ryabkov aka Rojer myself@rojer.pp.ru rojer@sysadmins.ru ICQ: 8025844 --------------ms050601090807040502020201 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJIzCC AuwwggJVoAMCAQICAwwKdjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwMzMxMjIxODA5WhcNMDUwMzMxMjIxODA5 WjBfMRAwDgYDVQQEEwdSeWFia292MQ8wDQYDVQQqEwZEZW9taWQxFzAVBgNVBAMTDkRlb21p ZCBSeWFia292MSEwHwYJKoZIhvcNAQkBFhJteXNlbGZAcm9qZXIucHAucnUwggEiMA0GCSqG SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDBxXgFP/1lZDqp0dzUDzR5IBb7aKki6TD+HMMkRjtP IOcaNHsfoDer9RFrFICoxNQZF86iopYFVYr7msgB9y2dKZTRQQoOA72lFrOyH3sgrztx/3LL axEsihA2cxcrglrIgPEm6FF2aabbKVpSdeslMCDPBr0auAm0QLo8ch9c5j0vuQUBrs8TKU6f 6YZLNO2Sk/fPZP2kfJEkXyZhkU6wq3ER1CHq2qgfNpW2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UEAxMjVGhhd3RlIFBl cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwwKdjANBgkqhkiG9w0BAQEFAASCAQAnqG4c bKKzh/PbLZeSFUv+JJfjW0Uf8rBpU+gwMHOtEeeAMXmDlkOuhTFJQeO2pOtMlqEKbB9c5Cd7 dsL44ydfAWt1fUZj7S9Jcpf4wsc7ITEEhmuX3A3aSZAQLrNg6XgH+pyALYnHkdzfHkgYxi5J sKBkleImhM+bq+5diwDoaJzVHM51pvKUun0yo4pOBUj2jblOgeIZRQxR6kT/NNXsD1gMQvUT tpMy/nmYRsBdUI8pQjSLFX1t0tubO/fDOHUt/gBCujKevjFdThES1kyGKzOHC67Qoo7weDve 5WLfQmBaWcb6GZl53QVRuTA0uIZsvsfyCYve0oyoNOWs2GqvAAAAAAAA --------------ms050601090807040502020201-- From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 16:02:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4121C16A4CE for ; Mon, 3 Jan 2005 16:02:28 +0000 (GMT) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37DD243D2D for ; Mon, 3 Jan 2005 16:02:27 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.55.112]) by hydra.bec.de (Postfix) with ESMTP id 929FA35707; Mon, 3 Jan 2005 17:02:22 +0100 (CET) Received: by britannica.bec.de (Postfix, from userid 1001) id 0B43F2AFA; Mon, 3 Jan 2005 17:01:33 +0100 (CET) Date: Mon, 3 Jan 2005 17:01:33 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050103160133.GE826@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org, Tejas Sumant References: <009e01c4f191$50433430$1500a8c0@indranet.local> <20050103125351.GA1242@straylight.m.ringlet.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050103125351.GA1242@straylight.m.ringlet.net> User-Agent: Mutt/1.5.6i cc: Tejas Sumant Subject: Re: Freeing Volatile Pointer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 16:02:28 -0000 On Mon, Jan 03, 2005 at 02:53:51PM +0200, Peter Pentchev wrote: > free((void *)host_mem_resp_ptr, M_DEVBUF) > > ...and you should be okay, unless you specifically pass -Wcast-qual to > the compiler. If you do, it will again give this warning, just because > you have explicitly asked it to :) Still better is using __DEVOLATILE from sys/cdefs.h, which does a cast to uintptr_t first. This way, you even avoid this warning :) Joerg From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 17:31:29 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE89F16A4CE for ; Mon, 3 Jan 2005 17:31:29 +0000 (GMT) Received: from imo-d03.mx.aol.com (imo-d03.mx.aol.com [205.188.157.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75FAB43D31 for ; Mon, 3 Jan 2005 17:31:29 +0000 (GMT) (envelope-from Tm4528@aol.com) Received: from Tm4528@aol.com by imo-d03.mx.aol.com (mail_out_v37_r3.8.) id n.8b.1dde8779 (4214) for ; Mon, 3 Jan 2005 12:31:16 -0500 (EST) From: Tm4528@aol.com Message-ID: <8b.1dde8779.2f0adb64@aol.com> Date: Mon, 3 Jan 2005 12:31:16 EST To: freebsd-hackers@freebsd.org MIME-Version: 1.0 X-Mailer: 9.0 for Windows sub 5116 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: 7520/7530 chipset support for 4.x X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 17:31:30 -0000 Are there any efforts underway to support the now prevalent 7520/7530 intel chipsets in Freebsd 4.x? They seem to work ok with 5.x, but its been widely reported that 4.x has serious problems. Given that 5.x is still a ways off from matching the performance of 4.x, those of us with production networking devices are unable to move up to the latest hardware while we wait for 5.4 or 5.5 or whatever. Its becoming a big problem. TM From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 18:53:35 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E312816A4CE for ; Mon, 3 Jan 2005 18:53:35 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36BEF43D1D for ; Mon, 3 Jan 2005 18:53:35 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j03Iqqo8031667; Mon, 3 Jan 2005 11:52:53 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 03 Jan 2005 11:53:10 -0700 (MST) Message-Id: <20050103.115310.124004976.imp@bsdimp.com> To: dave@horsfall.org From: "M. Warner Losh" In-Reply-To: References: X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@FreeBSD.org Subject: Re: Using PCMCIA ATA adaptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 18:53:36 -0000 In message: Dave Horsfall writes: : I have a Kingston StrataDrive Plus adaptor, which in conjunction with a : Windoze driver (and Kingston drives *only*) allow a 2nd ATA drive to be : connected to a laptop. Any chance that it can be used with FreeBSD? : : 5.3-STABLE says "ata2: " Quite likely. What's the problem you are seeing? Warner From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 23:41:07 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4E0C16A4D5 for ; Mon, 3 Jan 2005 23:41:07 +0000 (GMT) Received: from mx1.z-axis.com (z.axis28.z.subnet.rcn.com [209.122.82.156]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FCF343D55 for ; Mon, 3 Jan 2005 23:41:05 +0000 (GMT) (envelope-from justin@z-axis.com) Received: (qmail 51021 invoked by uid 89); 3 Jan 2005 23:41:06 -0000 Received: from unknown (HELO ?127.0.0.1?) (justin@209.122.82.179) by mx1.z-axis.com with SMTP; 3 Jan 2005 23:41:06 -0000 Message-ID: <41D9D80A.8040909@z-axis.com> Date: Mon, 03 Jan 2005 15:40:58 -0800 From: Justin Bennett Organization: Z-Axis, Ltd. User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Hackers 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: Supported SATA Cards X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 23:41:07 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 All, I was looking into getting an Adaptec 2410SA SATA (Serial ATA RAID card). I just wanted to ensure this is supported by FreeBSD. I looked at the hardware list, and there is a card listed under the aac driver as a SCSI device, but with the 2410SA designation. Is this the same card? Thanks, Justin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (MingW32) iD8DBQFB2dgKlNUG+Ne1CZMRAhsbAJ0VNGqTwsSWZ5efuCmTueC3/mjtMwCfZxTV w0Cmp9/92WGvm+FQihKc7DY= =13Iu -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 3 23:55:21 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B6C716A4D0 for ; Mon, 3 Jan 2005 23:55:21 +0000 (GMT) Received: from dave.horsfall.org (mrdavi2.lnk.telstra.net [139.130.75.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614EB43D31 for ; Mon, 3 Jan 2005 23:55:19 +0000 (GMT) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by dave.horsfall.org (8.11.4/8.11.4) with ESMTP id j03NtHG16215 for ; Tue, 4 Jan 2005 10:55:17 +1100 (EST) Date: Tue, 4 Jan 2005 10:55:17 +1100 (EST) From: Dave Horsfall To: FreeBSD Hackers In-Reply-To: <20050103.115310.124004976.imp@bsdimp.com> Message-ID: References: <20050103.115310.124004976.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Using PCMCIA ATA adaptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 23:55:21 -0000 On Mon, 3 Jan 2005, M. Warner Losh wrote: > : I have a Kingston StrataDrive Plus adaptor, which in conjunction with a > : Windoze driver (and Kingston drives *only*) allow a 2nd ATA drive to be > : connected to a laptop. Any chance that it can be used with FreeBSD? > : > : 5.3-STABLE says "ata2: " > > Quite likely. What's the problem you are seeing? Well, it's not seeing the disk drive that's physically attached to it, although it does spin up... stinky# atacontrol info 2 Master: no device present Slave: no device present stinky# atacontrol mode 2 Master = BIOSPIO Slave = BIOSPIO Looks like I'm out of luck? The full dmesg output (which I'd truncated) is: ata2: at port 0x180-0x187,0x386-0x387 irq 11 function 0 config 37 on pccard0 -- Dave From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 03:38:31 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC3C316A4CE for ; Tue, 4 Jan 2005 03:38:31 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01DB143D31 for ; Tue, 4 Jan 2005 03:38:31 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j043ba5v037005; Mon, 3 Jan 2005 20:37:36 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 03 Jan 2005 20:37:55 -0700 (MST) Message-Id: <20050103.203755.68051197.imp@bsdimp.com> To: dave@horsfall.org From: "M. Warner Losh" In-Reply-To: References: <20050103.115310.124004976.imp@bsdimp.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Using PCMCIA ATA adaptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 03:38:31 -0000 In message: Dave Horsfall writes: : ata2: at port 0x180-0x187,0x386-0x387 irq 11 function 0 config 37 on pccard0 Is the drive master or slave? Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 03:49:22 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7D12216A4CE for ; Tue, 4 Jan 2005 03:49:22 +0000 (GMT) Received: from dave.horsfall.org (mrdavi2.lnk.telstra.net [139.130.75.233]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93CC643D39 for ; Tue, 4 Jan 2005 03:49:20 +0000 (GMT) (envelope-from dave@horsfall.org) Received: from localhost (dave@localhost) by dave.horsfall.org (8.11.4/8.11.4) with ESMTP id j043nIG16636 for ; Tue, 4 Jan 2005 14:49:18 +1100 (EST) Date: Tue, 4 Jan 2005 14:49:17 +1100 (EST) From: Dave Horsfall To: FreeBSD Hackers In-Reply-To: <20050103.203755.68051197.imp@bsdimp.com> Message-ID: References: <20050103.203755.68051197.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: Using PCMCIA ATA adaptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 03:49:22 -0000 On Mon, 3 Jan 2005, M. Warner Losh wrote: > : ata2: at port 0x180-0x187,0x386-0x387 irq 11 function 0 config 37 on pccard0 > > Is the drive master or slave? Master. I'm starting to think that although it claims to be an ATA adaptor, it will only recognise Kingston-brand disks (it was designed to clone smaller disks to a bigger Kingston drive as an upgrade). Kingston have verified the driver only works with their disks, so it's not beyond the realms of possibility that the adaptor will as well. I should dig out the old disk and try it (if it still works). -- Dave From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 05:29:03 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E901316A4CE for ; Tue, 4 Jan 2005 05:29:03 +0000 (GMT) Received: from wattres.watt.com (wattres.watt.com [66.93.133.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id A75E843D2F for ; Tue, 4 Jan 2005 05:29:03 +0000 (GMT) (envelope-from steve@Watt.COM) Received: from wattres.watt.com (localhost.watt.com [127.0.0.1]) by wattres.watt.com (8.13.1/8.13.1) with ESMTP id j045T2dK050760 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 3 Jan 2005 21:29:03 -0800 (PST) (envelope-from steve@wattres.watt.com) Received: (from steve@localhost) by wattres.watt.com (8.13.1/8.13.1/Submit) id j045T0LV050759; Mon, 3 Jan 2005 21:29:00 -0800 (PST) (envelope-from steve) Message-Id: <200501040529.j045T0LV050759@wattres.watt.com> X-Newsgroups: local.freebsd-hackers In-Reply-To: <41D8859E.4080609@rojer.pp.ru> Organization: Watt Consultants From: steve@Watt.COM (Steve Watt) Date: Mon, 3 Jan 2005 21:29:00 -0800 X-Mailer: Mail User's Shell (7.2.6 beta(5) 10/07/98) To: myself@rojer.pp.ru X-Archived: 1104816543.013149506@wattres.Watt.COM cc: freebsd-hackers@freebsd.org Subject: Re: Determining userland return address (from syscall) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 05:29:04 -0000 In article <41D8859E.4080609@rojer.pp.ru> you write: [ snip ] >The solution I am about to implement is based on a custom setuid >syscall, that would allow limited list of processes to obtain root >privileges from a limited set of locations (supposedly, the trusted >ones, originating in the httpd's .text section). Unfortunately, the extremely powerful mmap() and munmap() system calls will allow remapping of text addresses, which kinda blows away your whole scheme. >The key point here is ability to trust a call being made from a specific >location. I assume that process cannot change its .text section once >loaded so this scheme would no be abused by overwriting the location >with malicious code. Am I correct here? What do you think of this scheme >overall? Probably insufficient. The safest way is still isolated processes, possibly one (or, worse resource-wise, more) per UID, and those processes communicate via pipes, unix-domain socket pairs, or similar controlled IPC. The parent vfork()s, does appropriate uid/gid/gidset rearrangement, and execs the "user server" process, which would then hang around servicing stuff for some time. There don't seem to be better alternatives for doing this securely and still keep reasonable *NIX-like behavior. -- Steve Watt KD6GGD PP-ASEL-IA ICBM: 121W 56' 57.8" / 37N 20' 14.9" Internet: steve @ Watt.COM Whois: SW32 Free time? There's no such thing. It just comes in varying prices... From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 06:32:38 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 450B916A4CE for ; Tue, 4 Jan 2005 06:32:38 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id D0EAE43D58 for ; Tue, 4 Jan 2005 06:32:37 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id j046V8l7038431; Mon, 3 Jan 2005 23:31:08 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Mon, 03 Jan 2005 23:31:27 -0700 (MST) Message-Id: <20050103.233127.88047588.imp@bsdimp.com> To: dave@horsfall.org From: "M. Warner Losh" In-Reply-To: References: <20050103.203755.68051197.imp@bsdimp.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Using PCMCIA ATA adaptor X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 06:32:38 -0000 In message: Dave Horsfall writes: : On Mon, 3 Jan 2005, M. Warner Losh wrote: : : > : ata2: at port 0x180-0x187,0x386-0x387 irq 11 function 0 config 37 on pccard0 : > : > Is the drive master or slave? : : Master. I'm starting to think that although it claims to be an ATA : adaptor, it will only recognise Kingston-brand disks (it was designed to : clone smaller disks to a bigger Kingston drive as an upgrade). : : Kingston have verified the driver only works with their disks, so it's not : beyond the realms of possibility that the adaptor will as well. I should : dig out the old disk and try it (if it still works). Please do. I have a simple one of these things as well, but it works for me. I wonder if the altio stuff is being setup right for you... Warner From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 07:54:41 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D849816A4CE for ; Tue, 4 Jan 2005 07:54:41 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7044E43D2D for ; Tue, 4 Jan 2005 07:54:41 +0000 (GMT) (envelope-from tejas.sumant@gmail.com) Received: by rproxy.gmail.com with SMTP id 40so442537rnz for ; Mon, 03 Jan 2005 23:54:40 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:from:to:cc:references:subject:date:x-priority:x-msmail-priority:x-mailer:x-mimeole; b=l0i6SIy2sgy6r4urO5lm5EUczalfnys6gjQJnfaBiR0xzRK9lB4VrvGdMEFvRk1Lb99dC2SwRhSND/Owd8Guu8+UHkQwqK/xUWVCTu7Rdb2WyuZbV/p0EkeLQmXNPrBYrcoWBIfKn9pXoj7JHR8ECQcAyPTC4i2Ag9Wy9tX2spE= Received: by 10.38.8.61 with SMTP id 61mr248897rnh; Mon, 03 Jan 2005 23:54:40 -0800 (PST) Received: from dhruv ([61.11.17.122]) by smtp.gmail.com with ESMTP id 80sm658rnb.2005.01.03.23.54.37; Mon, 03 Jan 2005 23:54:40 -0800 (PST) Message-ID: <004c01c4f232$a42d8630$1500a8c0@indranet.local> From: "Tejas Sumant" To: References: <009e01c4f191$50433430$1500a8c0@indranet.local> <20050103125351.GA1242@straylight.m.ringlet.net> <20050103160133.GE826@britannica.bec.de> Date: Tue, 4 Jan 2005 13:24:17 +0530 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 cc: Joerg Sonnenberger Subject: Re: Freeing Volatile Pointer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 07:54:42 -0000 > > Still better is using __DEVOLATILE from sys/cdefs.h, which does a cast to > uintptr_t first. This way, you even avoid this warning :) Is it available with FreeBSD4.10 release? I am working on 4.10. I couldnt find this __DEVOLATILE. OR Is it defined in any other file for 4.10 release? Tejas From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 09:07:04 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 12FDA16A4CE; Tue, 4 Jan 2005 09:07:04 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 394F743D5E; Tue, 4 Jan 2005 09:07:03 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id j0499bV2011934; Tue, 4 Jan 2005 02:09:37 -0700 (MST) (envelope-from scottl@freebsd.org) Message-ID: <41DA5C4D.1060606@freebsd.org> Date: Tue, 04 Jan 2005 02:05:17 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org, "current@freebsd.org" X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org Subject: Call for FreeBSD status reports X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: monthly@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 09:07:04 -0000 All, It's time again for the bi-monthly status reports. The July-Oct 2004 status reports were preempted by the 5.3 release, so this one is open for anything that has happened since June. As always, submissions having to do with FreeBSD development, documentation, organized events, etc, are welcome and highly encouraged. Submissions are due by Jan 15 to monthly@freebsd.org There are also a couple of changes to announce. First is that Tom Rhodes and Max Laier have volunteered to help run the status reports and keep them more timely. Many thanks to Tom and Max for offering to help. Second is that a couple of new attributes have been added to the XML thanks to Max. The first is a project category attribute that will enable us to group the submissions into categories and render the full report with these categories for easier viewing. You can choose to use whatever category tag fits your report best, or omit it entirely and let us take care of it. The category mapping is listed below. Feel free to suggest additional categories. proj - Projects (non-specific) docs - Documentation kern - Kernel arch - Architectures ports - Ports vendor - Vendor / 3rd party software misc - Miscellaneous The second new attribute lets you lists tasks for your project that others can help with. An example is provided in the template under the and tags. The template is available at http://www.freebsd.org/news/status/report-sample.xml. I've just committed the updated version with the new tags, so it might take a few hours for it to reach the website for downloading. Submissions are due on Jan 15. Thanks a lot, and we are looking for a big turn-out. Scott From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 12:55:30 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2417A16A4CE for ; Tue, 4 Jan 2005 12:55:30 +0000 (GMT) Received: from hermes.hw.ru (hermes.hw.ru [80.68.240.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id B67C943D1D for ; Tue, 4 Jan 2005 12:55:28 +0000 (GMT) (envelope-from myself@rojer.pp.ru) Received: from [213.141.131.116] (account rojer@rbc.ru HELO [192.168.10.3]) by hermes.hw.ru (CommuniGate Pro SMTP 4.1.8) with ESMTP-TLS id 68184696; Tue, 04 Jan 2005 15:55:27 +0300 Message-ID: <41DA923C.8070108@rojer.pp.ru> Date: Tue, 04 Jan 2005 15:55:24 +0300 From: Rojer User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Steve Watt References: <200501040529.j045T0LV050759@wattres.watt.com> In-Reply-To: <200501040529.j045T0LV050759@wattres.watt.com> Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="------------ms030407040606020006020101" cc: freebsd-hackers@freebsd.org Subject: Re: Determining userland return address (from syscall) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 12:55:30 -0000 This is a cryptographically signed message in MIME format. --------------ms030407040606020006020101 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Steve Watt wrote: > In article <41D8859E.4080609@rojer.pp.ru> you write: > [ snip ] > >>The solution I am about to implement is based on a custom setuid >>syscall, that would allow limited list of processes to obtain root >>privileges from a limited set of locations (supposedly, the trusted >>ones, originating in the httpd's .text section). > > > Unfortunately, the extremely powerful mmap() and munmap() system calls > will allow remapping of text addresses, which kinda blows away your > whole scheme. yes, but i could check if the memory region covering the return address is indeed a shared text segment (e.g. is backed by the file with given inode). or if it is just the same as that of the parent process. and to my understanding, while able to remap .text, malicious user would not be able to remap it read-write from the same file (httpd), as he wouldn't be allowed to by file permissions. > > >>The key point here is ability to trust a call being made from a specific >>location. I assume that process cannot change its .text section once >>loaded so this scheme would no be abused by overwriting the location >>with malicious code. Am I correct here? What do you think of this scheme >>overall? > > > Probably insufficient. The safest way is still isolated processes, > possibly one (or, worse resource-wise, more) per UID, and those > processes communicate via pipes, unix-domain socket pairs, or similar > controlled IPC. The parent vfork()s, does appropriate uid/gid/gidset > rearrangement, and execs the "user server" process, which would then > hang around servicing stuff for some time. > > There don't seem to be better alternatives for doing this securely > and still keep reasonable *NIX-like behavior. > this is no good either... overhead would bring down our servers right away. -- Deomid Ryabkov aka Rojer myself@rojer.pp.ru rojer@sysadmins.ru ICQ: 8025844 --------------ms030407040606020006020101 Content-Type: application/x-pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJIzCC AuwwggJVoAMCAQICAwwKdjANBgkqhkiG9w0BAQQFADBiMQswCQYDVQQGEwJaQTElMCMGA1UE ChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBlcnNv bmFsIEZyZWVtYWlsIElzc3VpbmcgQ0EwHhcNMDQwMzMxMjIxODA5WhcNMDUwMzMxMjIxODA5 WjBfMRAwDgYDVQQEEwdSeWFia292MQ8wDQYDVQQqEwZEZW9taWQxFzAVBgNVBAMTDkRlb21p ZCBSeWFia292MSEwHwYJKoZIhvcNAQkBFhJteXNlbGZAcm9qZXIucHAucnUwggEiMA0GCSqG SIb3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EAQxazBpMGIxCzAJBgNVBAYTAlpBMSUwIwYDVQQKExxUaGF3dGUgQ29u c3VsdGluZyAoUHR5KSBMdGQuMSwwKgYDVQQDEyNUaGF3dGUgUGVyc29uYWwgRnJlZW1haWwg SXNzdWluZyBDQQIDDAp2MHoGCyqGSIb3DQEJEAILMWugaTBiMQswCQYDVQQGEwJaQTElMCMG A1UEChMcVGhhd3RlIENvbnN1bHRpbmcgKFB0eSkgTHRkLjEsMCoGA1UEAxMjVGhhd3RlIFBl cnNvbmFsIEZyZWVtYWlsIElzc3VpbmcgQ0ECAwwKdjANBgkqhkiG9w0BAQEFAASCAQAvZC9D zpI6VQCYY+NjR4RBHaP/1kDEymPDSYkcpZ29ba83zQGGBFibl/gbZc0HsKOPGpFm7UhQyjzF 6KXxA/hOY6t+2PcCAf02hnVP8u5BoX2wT8rF4MlTnJSS9xSIanSx5UkZ1MPS+OUxqqQHhuVO +iQV+1LdEXjsmfpFVQtvfSCoRfLBU33oe1HUSgZrY9s+im8945ZOQLzfqsNWEag07IfDJzwV s3GAOqRL5g5MckWzLLRQQloz77y4qSFT1mCu7d9jQDnPiPN25bCXEt0KPtZlABOysNybhk3V 6E8hsPNzkRu7SmI3dfWlAFdq06gGFa9U7Z+Ow1Z5uuO+WlniAAAAAAAA --------------ms030407040606020006020101-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 14:54:02 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 644E516A4CE for ; Tue, 4 Jan 2005 14:54:02 +0000 (GMT) Received: from ms-dienst.rz.rwth-aachen.de (ms-2.rz.RWTH-Aachen.DE [134.130.3.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1990943D31 for ; Tue, 4 Jan 2005 14:54:02 +0000 (GMT) (envelope-from chris@unixpages.org) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0I9S00EN8S209M@ms-dienst.rz.rwth-aachen.de> for freebsd-hackers@freebsd.org; Tue, 04 Jan 2005 15:54:01 +0100 (MET) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Tue, 04 Jan 2005 15:54:00 +0100 (MET) Received: from haakonia.hitnet.rwth-aachen.de (haakonia.hitnet.RWTH-Aachen.DE [137.226.181.92])j04ErrSK023771; Tue, 04 Jan 2005 15:53:53 +0100 (MET) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))(Postfix) with ESMTP id 0F12A2844E; Tue, 04 Jan 2005 15:53:53 +0100 (CET) Received: by gondor.middleearth (Postfix, from userid 1001) id 729A422859; Tue, 04 Jan 2005 15:53:52 +0100 (CET) Date: Tue, 04 Jan 2005 15:53:52 +0100 From: Christian Brueffer In-reply-to: <41D9D80A.8040909@z-axis.com> To: Justin Bennett Message-id: <20050104145351.GI14980@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=J+eNKFoVC4T1DV3f; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 6.0-CURRENT X-PGP-Key: http://people.freebsd.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <41D9D80A.8040909@z-axis.com> cc: FreeBSD Hackers Subject: Re: Supported SATA Cards X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 14:54:02 -0000 --J+eNKFoVC4T1DV3f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 03, 2005 at 03:40:58PM -0800, Justin Bennett wrote: > All, >=20 > I was looking into getting an Adaptec 2410SA SATA (Serial ATA RAID > card). I just wanted to ensure this is supported by FreeBSD. >=20 > I looked at the hardware list, and there is a card listed under the aac > driver as a SCSI device, but with the 2410SA designation. >=20 > Is this the same card? >=20 Judging from the Adaptec website, this seems to be an error in the manpage. I'll correct this and verify the other listed controllers. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --J+eNKFoVC4T1DV3f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFB2q3/bHYXjKDtmC0RAt1xAJkBvh9Ccm5Y2M4LpqKLI6fbULIg3QCfe+g7 x7CwxblZp9jlsNWAEzF2m5c= =UuAo -----END PGP SIGNATURE----- --J+eNKFoVC4T1DV3f-- From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 4 16:46:22 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55E6B16A4CE for ; Tue, 4 Jan 2005 16:46:22 +0000 (GMT) Received: from hydra.bec.de (www.ostsee-abc.de [62.206.222.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id A450943D1F for ; Tue, 4 Jan 2005 16:46:21 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (unknown [139.30.252.67]) by hydra.bec.de (Postfix) with ESMTP id 7F47835707 for ; Tue, 4 Jan 2005 17:46:17 +0100 (CET) Received: by britannica.bec.de (Postfix, from userid 1001) id 3CFC82AF9; Tue, 4 Jan 2005 17:45:27 +0100 (CET) Date: Tue, 4 Jan 2005 17:45:26 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20050104164526.GA69953@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <009e01c4f191$50433430$1500a8c0@indranet.local> <20050103125351.GA1242@straylight.m.ringlet.net> <20050103160133.GE826@britannica.bec.de> <004c01c4f232$a42d8630$1500a8c0@indranet.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004c01c4f232$a42d8630$1500a8c0@indranet.local> User-Agent: Mutt/1.5.6i Subject: Re: Freeing Volatile Pointer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Jan 2005 16:46:22 -0000 On Tue, Jan 04, 2005 at 01:24:17PM +0530, Tejas Sumant wrote: > Is it available with FreeBSD4.10 release? > I am working on 4.10. > I couldnt find this __DEVOLATILE. __DEVOLATILE, __DECONST and the like haven't been MFCd. Joerg From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 5 12:47:36 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 808CC16A4CE; Wed, 5 Jan 2005 12:47:36 +0000 (GMT) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C4FC43D48; Wed, 5 Jan 2005 12:47:34 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo ([200.249.204.142]) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id j05CrxwT031067; Wed, 5 Jan 2005 09:53:59 -0300 From: mario.lobo@ipad.com.br Organization: IPAD To: freebsd-hackers@freebsd.org Date: Wed, 05 Jan 2005 09:51:40 -0300 MIME-Version: 1.0 Message-ID: <41DBB8AC.25603.26B282@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body cc: freebsd-questions@freebsd.org Subject: sk0: discard oversize frame (ether type ....) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 12:47:36 -0000 Hi everyone; Using freeBsd 5.3. Trying to get the gigabit sk driver to work but even if I force it to 100b= aseTX full-duplex I still get when doing an ftp session: sk0: discard oversize frame (ether type ....) sk0: discard frame w/o leading ethernet header ( len 0 pkt len 0) The transfer finishes ok though. I have two machines conected via crossover cat 5 RJ-45. Besides the above = errors, I get a 3.5 MB/s tranfer rate, which is way bellow the 10 MB/s I get when doing the same th= ing with 2 via-rhine boards. I found this patch on google, but it=B4s a bit outside of my programming s= kills: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/sys/pci/if_sk.c,v retrieving revision 1.86 diff -u -r1.86 if_sk.c --- if_sk.c20 Aug 2004 06:22:04 -00001.86 +++ if_sk.c1 Nov 2004 00:54:20 -0000 @@ -1816,11 +1816,13 @@ } /* Transmit */ -sc_if->sk_cdata.sk_tx_prod =3D idx; -CSR_WRITE_4(sc, sc_if->sk_tx_bmu, SK_TXBMU_TX_START); +if (idx !=3D sc_if->sk_cdata.sk_tx_prod) { +sc_if->sk_cdata.sk_tx_prod =3D idx; +CSR_WRITE_4(sc, sc_if->sk_tx_bmu, SK_TXBMU_TX_START); -/* Set a timeout in case the chip goes out to lunch. */ -ifp->if_timer =3D 5; +/* Set a timeout in case the chip goes out to lunch. */ +ifp->if_timer =3D 5; +} SK_IF_UNLOCK(sc_if); return; @@ -1960,13 +1962,15 @@ } sc_if->sk_cdata.sk_tx_cnt--; SK_INC(idx, SK_TX_RING_CNT); -ifp->if_timer =3D 0; } -sc_if->sk_cdata.sk_tx_cons =3D idx; - -if (cur_tx !=3D NULL) +if (sc_if->sk_cdata.sk_tx_cnt =3D=3D 0) { +ifp->if_timer =3D 0; ifp->if_flags &=3D ~IFF_OACTIVE; +} else /* nudge chip to keep tx ring moving */ +CSR_WRITE_4(sc, sc_if->sk_tx_bmu, SK_TXBMU_TX_START); + +sc_if->sk_cdata.sk_tx_cons =3D idx; return; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The person who found it said that he grabbed from netbsd. Maybe one of you guys can shed some light on this for me. Thanks, -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 5 12:59:07 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4278216A4CE; Wed, 5 Jan 2005 12:59:07 +0000 (GMT) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74C8843D53; Wed, 5 Jan 2005 12:59:06 +0000 (GMT) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id 1750E1FFACE; Wed, 5 Jan 2005 13:59:04 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id EA9811FFACD; Wed, 5 Jan 2005 13:59:01 +0100 (CET) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id 45C071550C; Wed, 5 Jan 2005 12:58:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.int.zabbadoz.net (Postfix) with ESMTP id 3AE301539E; Wed, 5 Jan 2005 12:58:30 +0000 (UTC) Date: Wed, 5 Jan 2005 12:58:30 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@e0-0.zab2.int.zabbadoz.net To: mario.lobo@ipad.com.br In-Reply-To: <41DBB8AC.25603.26B282@localhost> Message-ID: References: <41DBB8AC.25603.26B282@localhost> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: sk0: discard oversize frame (ether type ....) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 12:59:07 -0000 On Wed, 5 Jan 2005 mario.lobo@ipad.com.br wrote: Hi, > Using freeBsd 5.3. ... > Maybe one of you guys can shed some light on this for me. please update to RELENG_5; it's fixed there already:) -- Greetings Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 5 14:10:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6046F16A4CE; Wed, 5 Jan 2005 14:10:28 +0000 (GMT) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FE0E43D2F; Wed, 5 Jan 2005 14:10:27 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo ([200.249.204.142]) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id j05EGnwT008452; Wed, 5 Jan 2005 11:16:49 -0300 From: mario.lobo@ipad.com.br Organization: IPAD To: "Bjoern A. Zeeb" Date: Wed, 05 Jan 2005 11:14:30 -0300 MIME-Version: 1.0 Message-ID: <41DBCC16.20021.728A47@localhost> Priority: normal In-reply-to: References: <41DBB8AC.25603.26B282@localhost> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: sk0: discard oversize frame (ether type ....) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 14:10:28 -0000 Doing it right now!! Thanks, -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br On 5 Jan 2005 at 12:58, Bjoern A. Zeeb wrote: > please update to RELENG_5; it's fixed there already:) > > -- > Greetings > Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 5 20:26:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEA3A16A4CE for ; Wed, 5 Jan 2005 20:26:33 +0000 (GMT) Received: from postfix3-2.free.fr (postfix3-2.free.fr [213.228.0.169]) by mx1.FreeBSD.org (Postfix) with ESMTP id B910843D1F for ; Wed, 5 Jan 2005 20:26:33 +0000 (GMT) (envelope-from olivier.certner@free.fr) Received: from lon92-2-82-226-188-149.fbx.proxad.net (unknown [82.226.188.149]) by postfix3-2.free.fr (Postfix) with ESMTP id 23DBEC13D for ; Wed, 5 Jan 2005 21:26:33 +0100 (CET) From: Olivier Certner To: freebsd-hackers@freebsd.org Date: Wed, 5 Jan 2005 21:26:00 +0100 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501052126.01055.olivier.certner@free.fr> Subject: Freeze when using atapicam X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 20:26:34 -0000 Hello all, Would someone have the time to look at my previous post dated January 4th, 15:43 GMT on the freebsd-questions mailing list? Thanks a lot! Olivier From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 6 11:57:28 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B15416A4D9 for ; Thu, 6 Jan 2005 11:57:28 +0000 (GMT) Received: from web26608.mail.ukl.yahoo.com (web26608.mail.ukl.yahoo.com [217.146.176.58]) by mx1.FreeBSD.org (Postfix) with SMTP id 4C54D43D45 for ; Thu, 6 Jan 2005 11:57:27 +0000 (GMT) (envelope-from rustyryan882000@yahoo.co.uk) Received: (qmail 52480 invoked by uid 60001); 6 Jan 2005 11:57:26 -0000 Message-ID: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> Received: from [193.207.168.126] by web26608.mail.ukl.yahoo.com via HTTP; Thu, 06 Jan 2005 11:57:26 GMT Date: Thu, 6 Jan 2005 11:57:26 +0000 (GMT) From: Robert Ryan To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-current@freebsd.org Subject: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 11:57:28 -0000 Fellow FreeBSD developers, I hate to say I told you but it was inevitable. Check this out: http://www.feyrer.de/NetBSD/gmcgarry/ As I predicted more than a year ago FreeBSD 5.3 has finally lost its only advantage: performance. NetBSD 2.0 shows that when you write code the right way and end up with SOLUTIONS AND NOT HACKS you have a system that works, and works well on all platforms. This is the consequence of a series of mistakes made by the FreeBSD developers, the most important being too arrogant and selfish to listen to Matt Dillon, the man that warned you all about this. What did he get in return? An expulsion from your gentlemen club. Poul-Henning Kamp has been using FreeBSD to push his personal agenda, with completely useless features such as GEOM and devfs, instead of concentrating on the real problem. The fact that your heavily mutexed system doesn't work and never will. Jeff Roberson's ULE is still broken but don't worry, Matt Dillon will be hacking a much better scheduler for DragonFly that you can later borrow. Mike Smith warned you about committee-designed code years ago, why don't you listen? Why do you insist on this arrogant pose and on treating potential contributors like pariahs? Why do you tolerate assholes like Dag-Erling and Poul-Henning? I hope you can learn something from the NetBSD people before it's too late for FreeBSD. They managed to do much more with less resources. You should feel ashamed of yourselves. Sincerely, Robert PS: if I've offended anyone (yeah, I singled a few out) , prove me wrong, but spare me your insultedness. It's become a pathetic hobby in -core. ___________________________________________________________ ALL-NEW Yahoo! Messenger - all new features - even more fun! http://uk.messenger.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 6 13:05:13 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BC78116A4CE; Thu, 6 Jan 2005 13:05:13 +0000 (GMT) Received: from hq.sectorb.msk.ru (petaflop.b.gz.ru [217.67.124.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25C6643D1D; Thu, 6 Jan 2005 13:05:12 +0000 (GMT) (envelope-from chinhngt@sectorb.msk.ru) Received: from it.hackers (it.hackers [172.16.37.1]) by hq.sectorb.msk.ru (Postfix) with ESMTP id ABD4466F2; Thu, 6 Jan 2005 16:05:09 +0300 (MSK) Date: Thu, 6 Jan 2005 16:05:35 +0300 (MSK) From: Nguyen Tam Chinh X-X-Sender: chinhngt@unix.local To: "Martin P. Hellwig" In-Reply-To: <41DD32C0.40608@xs4all.nl> Message-ID: <20050106155714.X1348@unix.local> References: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> <41DD32C0.40608@xs4all.nl> X-Operating-System: FreeBSD 5.3-STABLE Keywords: 216091683 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Robert Ryan Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 13:05:14 -0000 Please don't treat this seriously. Benchmarks are just benchmarks. But the benchmarks and comparison, widespreaded through sites like slashdot or osnews, sometimes affect the interest and view point of some new and potential users. May be we should do some full benchmarks as an answer and to review the true status of our 5.x, 4.x and others? On Thu, 6 Jan 2005, Martin P. Hellwig wrote: > > >> PS: if I've offended anyone (yeah, I singled a few >> out) >> , prove me wrong, but spare me your insultedness. It's become a pathetic >> hobby in -core. >> >> > Benchmark are made to be put into perspective, although everybody has a right > to say what he wants to say, this doesn't mean that you have to say it. > It seems to me that FreeBSD is focusing it performance onto MP 64bit > processors. As we can see in the benchmark it has in comparison to other > projects a negative impact on UP system. > > But just put it in the perspective of processor developments, AMD (followed > by Intel) is heading towards a multi-core 64 bit systems, what probably > becomes mainstream at the end of next year. > With this technology the FreeBSD model could have winner on there hands. > > Doing the same job but not having the same philosophy on it, is always > inefficient, but in the real world it leads to the Darwin effect. > What means that the best solution gets there chance of survival against the > test of time. > Luckily these are all BSD's, good solution will spread, just take a look at > PF. > OpenBSD has a good user base but not compatible to the sum of user base of > the other BSD's. Still PF has spread there wings beyond the user base of > OpenBSD. > > FreeBSD is just a name for an OS, if any other OS can give me more "bang for > the buck" and provides a full solution, I will use it. > Be it DragonFly/Free/Open/Net, MacOsX, GNU+Linux, Windows or any of the other > hundreds of OS'es out there. > I like the BSD license so I will tend to stick to "gratis" BSD OS'es. > > All of the disagreements in development is a healthy process to make sure the > sort "BSD" an not the specie *BSD will survive. > Sure I have my disappointments about some decision, but hey so is live, this > ain't a fan club for next biggest boy band (he he BSD-Boyz), where using an > OS to provide solution for our technologic problems, you favor your solution > but don't blind yourself. > > And when you don't blind yourself you re-evaluate your situation and move > forward with the best solution for your problem. > Sure it is a pain to migrate my boxes to another OS (well that is the fun > part) and do some massive rewriting of my documentation, but thats my job and > I tend to like it. Just standing still and not progress has its > attractiveness when you had a very rough ride, but it gets dull very soon and > then you find yourself back on the dirty tracks. > > But these are my opinion only, however I like to share them ;-) > > Martin P. Hellwig > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > ----- With best regards, | The Power to Serve Nguyen Tam Chinh | http://www.FreeBSD.org Loc: sp.cs.msu.ru | From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 6 13:53:20 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 765C416A4CE for ; Thu, 6 Jan 2005 13:53:20 +0000 (GMT) Received: from mail.internet.is (mail.internet.is [193.4.194.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id B9AA343D45 for ; Thu, 6 Jan 2005 13:53:19 +0000 (GMT) (envelope-from thib@mi.is) Received: from localhost (www12.mmedia.is [217.151.160.44]) by mail.internet.is (Postfix) with SMTP id 6AC98E882 for ; Thu, 6 Jan 2005 13:53:18 +0000 (GMT) To: From: Date: Thu, 6 Jan 2005 13:53:18 +0000 Errors-To: X-Priority: 3 (Normal) X-Originating-Ip: [217.151.165.254] X-Mailer: NOCC v0.9.5 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary = NextPart5aae501447be92742b3feddd740daf77 Message-Id: <20050106135318.6AC98E882@mail.internet.is> Subject: Changes to /usr/src/sbin/md5.c X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: thib@mi.is List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 13:53:20 -0000 This is a MIME encoded message. --NextPart5aae501447be92742b3feddd740daf77 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hello list. I made some changes to md5(1) wich adds a new feature for comparing inputfiles e.g: [thib@caulfield md5]$ ./md5 -c md5 md5.o md5.c md5 MD5 (md5) =3D 9d99179604174013a053b67a5c6fb3cd [TEST CASE] MD5 (md5.o) =3D e8458dfaa035ea49a3704384ca044a73 [DID NOT MATCH] MD5 (md5.c) =3D 3ebe0b8646640b14d7af1a92fe6b7607 [DID NOT MATCH] MD5 (md5) =3D 9d99179604174013a053b67a5c6fb3cd [MATCH] Attaced is diff ( created with diff -crN, as is show in the diff(1) man page, if this is not the desired format please advies) Any comments, commits or something or other ? --=20 Thordur I.=09 FreeBSD - Unix the way *I* like it. A man can do as he will, but not will as he will. =DEessi p=F3stur var sendur me=F0 vefp=F3sti mi, http://www.mi.is --NextPart5aae501447be92742b3feddd740daf77 Content-Type: application/octet-stream; name="md5.c.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="md5.c.diff" KioqIG1k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lyZXR1cm4gKDApOwogIH0KICAvKgotLS0gMTc4LDE4NCAtLS0tCiAgCiAgCWlmIChmYWlsZWQg IT0gMCkKICAJCXJldHVybiAoMSk7CiEgIAogIAlyZXR1cm4gKDApOwogIH0KICAvKgoqKioqKioq KioqKioqKioKKioqIDM1MSwzNTYgKioqKgogIHVzYWdlKEFsZ29yaXRobV90ICphbGcpCiAgewog IAohIAlmcHJpbnRmKHN0ZGVyciwgInVzYWdlOiAlcyBbLXBxcmN0eF0gWy1zIHN0cmluZ10gW2Zp bGVzIC4uLl1cbiIsIGFsZy0+cHJvZ25hbWUpOwogIAlleGl0KDEpOwogIH0KLS0tIDMzMSwzMzYg LS0tLQogIHVzYWdlKEFsZ29yaXRobV90ICphbGcpCiAgewogIAohIAlmcHJpbnRmKHN0ZGVyciwg InVzYWdlOiAlcyBbLXBxcnR4XSBbLXMgc3RyaW5nXSBbZmlsZXMgLi4uXVxuIiwgYWxnLT5wcm9n bmFtZSk7CiAgCWV4aXQoMSk7CiAgfQo= --NextPart5aae501447be92742b3feddd740daf77-- From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 5 23:33:16 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B609A16A4D0; Wed, 5 Jan 2005 23:33:16 +0000 (GMT) Received: from mail-svr1.cs.utah.edu (mail-svr1.cs.utah.edu [155.98.64.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8BEB143D2D; Wed, 5 Jan 2005 23:33:16 +0000 (GMT) (envelope-from saggarwa@cs.utah.edu) Received: from localhost (localhost [127.0.0.1]) by mail-svr1.cs.utah.edu (Postfix) with ESMTP id 39BC8346ED; Wed, 5 Jan 2005 16:33:16 -0700 (MST) Received: from mail-svr1.cs.utah.edu ([127.0.0.1]) by localhost (mail-svr1.cs.utah.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01793-10; Wed, 5 Jan 2005 16:33:16 -0700 (MST) Received: from faith.cs.utah.edu (faith.cs.utah.edu [155.98.65.40]) by mail-svr1.cs.utah.edu (Postfix) with ESMTP id D8034346D9; Wed, 5 Jan 2005 16:33:15 -0700 (MST) Received: by faith.cs.utah.edu (Postfix, from userid 4973) id 7F3452EC21; Wed, 5 Jan 2005 16:33:13 -0700 (MST) Received: from localhost (localhost [127.0.0.1]) by faith.cs.utah.edu (Postfix) with ESMTP id D069D34406; Wed, 5 Jan 2005 23:33:13 +0000 (UTC) Date: Wed, 5 Jan 2005 16:33:13 -0700 (MST) From: Siddharth Aggarwal To: freebsd-fs@freebsd.org, "" Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: amavisd-new at cs.utah.edu X-Mailman-Approved-At: Thu, 06 Jan 2005 14:14:57 +0000 Subject: write retry on filesystem X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Jan 2005 23:33:16 -0000 Hi, I have a pseudo disk driver that does a copy on write to a log device. I want to disable further retries to write if the disk space on the log device is full. I have inserted the following code into the strategy routine For this I have set the error code and also set the resid to zero, thinking that the filesystem above will not retry the operation because it assumes that there are no more bytes to be written (since I set resid to 0). However, control keeps coming back to this code, suggesting that the FS (buffer cache) is constantly retrying the operation. Is there any other way to do this (maybe I should try a different error code. I tried ENOSPC too). The reason I want to disable retry is to allow the user to manually select and delete logs to reclaim space and then do the file operation again if he chooses to. The problem arising is because the buffer cache is asynchronously flushed to disk (which could be much after a vfs file write operation). So the application has no way of knowing that a write to disk failed because COW failed due to log device space shortage. So the syncer periodically keeps trying to flush the buffer cache to disk because every time the strategy routine (in my driver which is between the buffer cache and the disk) cannot complete the operation. Any suggestions on how I can accomplish this? Any suggested hack in vfs_bio? Thanks, Sid. strategy () { ..... if (failed < 0) /* no more free space on log device */ { printf ("No more space on disk! Copy on write failed\n"); bp->b_error = EACCES; bp->b_flags |= B_ERROR; bp->b_resid = 0; devstat_end_transaction_buf(&ss->device_stats, bp); biodone(bp); return; } .... } From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 6 12:44:48 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 74DE716A4CE; Thu, 6 Jan 2005 12:44:48 +0000 (GMT) Received: from smtps-vbr2.xs4all.nl (smtps-vbr2.xs4all.nl [194.109.24.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id D480343D2F; Thu, 6 Jan 2005 12:44:47 +0000 (GMT) (envelope-from mhellwig@xs4all.nl) Received: from [10.0.0.182] (xinagnet.xs4all.nl [80.126.243.229]) (authenticated bits=0) by smtps-vbr2.xs4all.nl (8.12.11/8.12.11) with ESMTP id j06CiknD020230 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Jan 2005 13:44:46 +0100 (CET) (envelope-from mhellwig@xs4all.nl) Message-ID: <41DD32C0.40608@xs4all.nl> Date: Thu, 06 Jan 2005 13:44:48 +0100 From: "Martin P. Hellwig" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041111 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Ryan References: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> In-Reply-To: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Mailman-Approved-At: Thu, 06 Jan 2005 14:14:57 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 12:44:48 -0000 >PS: if I've offended anyone (yeah, I singled a few >out) >, prove me wrong, but spare me your insultedness. >It's become a pathetic hobby in -core. > > > Benchmark are made to be put into perspective, although everybody has a right to say what he wants to say, this doesn't mean that you have to say it. It seems to me that FreeBSD is focusing it performance onto MP 64bit processors. As we can see in the benchmark it has in comparison to other projects a negative impact on UP system. But just put it in the perspective of processor developments, AMD (followed by Intel) is heading towards a multi-core 64 bit systems, what probably becomes mainstream at the end of next year. With this technology the FreeBSD model could have winner on there hands. Doing the same job but not having the same philosophy on it, is always inefficient, but in the real world it leads to the Darwin effect. What means that the best solution gets there chance of survival against the test of time. Luckily these are all BSD's, good solution will spread, just take a look at PF. OpenBSD has a good user base but not compatible to the sum of user base of the other BSD's. Still PF has spread there wings beyond the user base of OpenBSD. FreeBSD is just a name for an OS, if any other OS can give me more "bang for the buck" and provides a full solution, I will use it. Be it DragonFly/Free/Open/Net, MacOsX, GNU+Linux, Windows or any of the other hundreds of OS'es out there. I like the BSD license so I will tend to stick to "gratis" BSD OS'es. All of the disagreements in development is a healthy process to make sure the sort "BSD" an not the specie *BSD will survive. Sure I have my disappointments about some decision, but hey so is live, this ain't a fan club for next biggest boy band (he he BSD-Boyz), where using an OS to provide solution for our technologic problems, you favor your solution but don't blind yourself. And when you don't blind yourself you re-evaluate your situation and move forward with the best solution for your problem. Sure it is a pain to migrate my boxes to another OS (well that is the fun part) and do some massive rewriting of my documentation, but thats my job and I tend to like it. Just standing still and not progress has its attractiveness when you had a very rough ride, but it gets dull very soon and then you find yourself back on the dirty tracks. But these are my opinion only, however I like to share them ;-) Martin P. Hellwig From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 6 13:41:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1A1D16A4CE; Thu, 6 Jan 2005 13:41:08 +0000 (GMT) Received: from smtps-vbr2.xs4all.nl (smtps-vbr2.xs4all.nl [194.109.24.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4370F43D3F; Thu, 6 Jan 2005 13:41:08 +0000 (GMT) (envelope-from mhellwig@xs4all.nl) Received: from [10.0.0.182] (xinagnet.xs4all.nl [80.126.243.229]) (authenticated bits=0) by smtps-vbr2.xs4all.nl (8.12.11/8.12.11) with ESMTP id j06Df6tZ023784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 6 Jan 2005 14:41:07 +0100 (CET) (envelope-from mhellwig@xs4all.nl) Message-ID: <41DD3FF5.3010709@xs4all.nl> Date: Thu, 06 Jan 2005 14:41:09 +0100 From: "Martin P. Hellwig" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041111 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nguyen Tam Chinh References: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> <41DD32C0.40608@xs4all.nl> <20050106155714.X1348@unix.local> In-Reply-To: <20050106155714.X1348@unix.local> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner X-Mailman-Approved-At: Thu, 06 Jan 2005 14:14:57 +0000 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: Robert Ryan Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 13:41:09 -0000 Nguyen Tam Chinh wrote: > Please don't treat this seriously. Benchmarks are just benchmarks. But > the benchmarks and comparison, widespreaded through sites like > slashdot or osnews, sometimes affect the interest and view point of > some new and potential users. > May be we should do some full benchmarks as an answer and to review > the true status of our 5.x, 4.x and others? True, I don't take it very seriously but it does say something, like all things you measure it shoul be put into perspective. I have already contacted the author of the benchmark, in short I've asked him if he could do the test with latest stable DragonFly too. I don't see the logic in testing FBSD4 as this is a "Legacy" branch, just as stated on www.FreeBSD.org But perhaps the test should be redone on multiple popular role based hardware configuration, including OpenBSD, DragonFly and any other OS you wish to test. Roles based in the meaning of benchmarking typical firewall, webserver, database, file and print servers roles. But there other things that must be benchmarked too if you want a near objective view, like stability, hardware support, security and design. Personally I don't give a * about performance as long as it doesn't hold me back, but what I do find irritating is that when there is a security issue in a port I should have to rebuild all my ports because of some libthreading issue. Now when talking about a few home boxes this is not a problem, but in a productivity environment with dozen machines having all its specific adaption on configuration and ports, thing get to start ugly. Of course this problem is not a real challenge it is just an inconvenience if you did not expected it. Just like installing a MS patch on the server and finding out that all shared HP printer don't work anymore ;-) Aah well keeps me off the street and out of trouble. -- mph From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 6 22:40:55 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 123A116A4CE for ; Thu, 6 Jan 2005 22:40:55 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id A279943D1F for ; Thu, 6 Jan 2005 22:40:54 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 552F1ACABE; Thu, 6 Jan 2005 23:40:52 +0100 (CET) Date: Thu, 6 Jan 2005 23:40:52 +0100 From: Pawel Jakub Dawidek To: Olivier Certner Message-ID: <20050106224052.GA784@darkness.comp.waw.pl> References: <200501052126.01055.olivier.certner@free.fr> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2fowzm2eVyDiEwGH" Content-Disposition: inline In-Reply-To: <200501052126.01055.olivier.certner@free.fr> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-hackers@freebsd.org Subject: Re: Freeze when using atapicam X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Jan 2005 22:40:55 -0000 --2fowzm2eVyDiEwGH Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 05, 2005 at 09:26:00PM +0100, Olivier Certner wrote: +> Hello all, +>=20 +> Would someone have the time to look at my previous post dated January 4= th,=20 +> 15:43 GMT on the freebsd-questions mailing list? (I haven't read you post on questions@, but...) I've a hang on boot when I use atapicam with my DVD-RW. With CD-ROM everything is ok. I'm able to boot and work without any problems on my DVD-RW only with atapi DMA turned off in /boot/loader.conf: hw.ata.atapi_dma=3D0 --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --2fowzm2eVyDiEwGH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFB3b50ForvXbEpPzQRAtBHAKDiXWQGkAHkJXrLg+ygmkoAXKYfJACg+mj9 Lzn8Mk0k7Bxv6dVb1Sq8opI= =rGIG -----END PGP SIGNATURE----- --2fowzm2eVyDiEwGH-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 02:21:56 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5FF016A4CF for ; Fri, 7 Jan 2005 02:21:55 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5162843D1D for ; Fri, 7 Jan 2005 02:21:55 +0000 (GMT) (envelope-from caelian@gmail.com) Received: by rproxy.gmail.com with SMTP id a36so139917rnf for ; Thu, 06 Jan 2005 18:21:54 -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:mime-version:content-type:content-transfer-encoding; b=fPGAcyxcUeAFILywHxigOrE6gAgXAVbYvoF8TXqyYts2kMmXYnLK/44MenBAlbNZQRZZ1B+5mEer9tRMFPeO8Ri8NBkrliGUgTtzmKpsun8mnzaoJMD+PlvF+zg8195l5nLTki5Z29auUBgl7kFpUoelWtpEAew0ye6z6YlBTCU= Received: by 10.39.3.34 with SMTP id f34mr381635rni; Thu, 06 Jan 2005 18:21:54 -0800 (PST) Received: by 10.38.89.69 with HTTP; Thu, 6 Jan 2005 18:21:54 -0800 (PST) Message-ID: Date: Thu, 6 Jan 2005 18:21:54 -0800 From: Pascal Hofstee To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: Dirk Meyer Subject: GNUstep and libkvm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pascal Hofstee List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 02:21:56 -0000 For the last couple of days i have been looking into why the gnustep-gui-port actually Needs procfs mounted in order to successfully build and i managed to track the problem down to being inside libkvm. I am however no kernel hacker and my gdb-skills have left me hanging at a point where i simply can't manage to actually debug the libkvm code itself. (NSProcessInfo is compiled using libkvm instead of the procfs code) If somebody could have a closer look at this for me ... or provide me some more details on how i can go about actually getting gdb to let me debug Inside libkvm so i can gather some additional details that would be highly appreciated. The actual nature of the problem turns out to be the following however: GNUstep apparently uses a gcc-extension to load certain code before the program actually reaches its "main()" function ... it uses this to allow GNUstep's NSProcessInfo class to gather a program's environment and commandline arguments before its main() routine gets a chance at potentially clobering this information. The function that does this +[NSProcessInfo load] is in itself straight C, so you shouldn't need any actual Objective-C knowledge. (+[NSProcessInfo load] means the class-method load (indicated by the +) of class NSProcessInfo) The following URL is a link to the relevant revision in gnustep's cvs-tree of the NSProcessInfo class [ http://savannah.gnu.org/cgi-bin/viewcvs/gnustep/gnustep/core/base/Source/NSProcessInfo.m?rev=1.101&content-type=text/vnd.viewcvs-markup ] The function-call inside the load-method that actually triggers the /proc groveling seems to be kvm_getargv (at line 406). According to the kvm_getprocs, kvm_getargv and kvm_getenvv only kvm_getenvv depends on a working /proc ... however from my own observations both kvm_getenvv and kvm_argvv return the result of kvm_doargv() ... which under certain conditions seems to call kvm_uread() which in turn is responsible for the observed /proc groveling. What i have been able to establish for any GNUstep-application so far is that the second the size of its "command" + "length of its argument list" (not including the whitespace between command and start of argument list) exceeds 242 bytes ... the /proc groveling occurs ... which most likely means the conditional under which kvm_uread is invoked is met. As long as the size of "command" + "argumentlist" remains below (or equals) this 242 byte threshold .. everything works as expected. The reason the gnustep-gui port triggers this error is because it tries to build documentation on default (it gets REINPLACEd from no to yes) ... and since the commandline required to perform this action Obviously exceeds this 242 character threshold .. experiences the problem described above. I guess to sum it all up it all boils down to the following question. Is it intended that kvm_getargv() apparently has a conditional under which it depends on the existince of a working /proc .. even though the manpage states this condition is only present for kvm_getenvv ? And if kvm_getargv should not depend on /proc ... how can we go about to fixing this as this is apprently only the case for "short commandlines" in our current implementation. With Kind Regards, Pascal Hofstee P.S.: This is as experienced on a recent 6.0-CURRENT system .. though the problem is Known to exist on 5.x as well. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 05:27:07 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7A6E16A4CE; Fri, 7 Jan 2005 05:27:07 +0000 (GMT) Received: from mail2out.barnet.com.au (mail2out.barnet.com.au [202.83.176.14]) by mx1.FreeBSD.org (Postfix) with ESMTP id 040C943D1D; Fri, 7 Jan 2005 05:27:07 +0000 (GMT) (envelope-from edwin@mavetju.org) Received: by mail2out.barnet.com.au (Postfix, from userid 27) id 56DE2707443; Fri, 7 Jan 2005 16:27:05 +1100 (EST) X-Viruscan-Id: <41DE1DA90000672379552C@BarNet> Received: from mail2-auth.barnet.com.au (mail2.barnet.com.au [202.83.176.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Authority" (verified OK)) by mail2.barnet.com.au (Postfix) with ESMTP id F2B30707441; Fri, 7 Jan 2005 16:27:04 +1100 (EST) Received: from k7.mavetju (edwin-3.int.barnet.com.au [10.10.12.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) Certificate Authority" (verified OK)) by mail2-auth.barnet.com.au (Postfix) with ESMTP id 3D71F707439; Fri, 7 Jan 2005 16:27:04 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 0D41760EA; Fri, 7 Jan 2005 16:27:03 +1100 (EST) Date: Fri, 7 Jan 2005 16:27:02 +1100 From: Edwin Groothuis To: Robert Ryan Message-ID: <20050107052702.GD1430@k7.mavetju> Mail-Followup-To: Edwin Groothuis , Robert Ryan , freebsd-hackers@freebsd.org, freebsd-current@freebsd.org References: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 05:27:08 -0000 On Thu, Jan 06, 2005 at 11:57:26AM +0000, Robert Ryan wrote: > I hate to say I told you but it was inevitable. I think so Brain, but I don't think Netcraft has confirmed it yet? -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://weblog.barnet.com.au/edwin/ From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 06:05:32 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2D3016A4D2 for ; Fri, 7 Jan 2005 06:05:32 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 43C6843D49 for ; Fri, 7 Jan 2005 06:05:32 +0000 (GMT) (envelope-from caelian@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so160592rne for ; Thu, 06 Jan 2005 22:05:31 -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:references; b=pqF+6NH5vpyRXoiUOcvW8vaeNuNpegbRXyN57gpCY9+gkQu4seDmm0GSpPNlfwswGPWxNa+WYj2x8v09YifVPi86trYuZr4VaAphzYwDV3LxW2kObgrEeS2NIbX7dUl1xSRLj3bw+hSEI2lq3UGzcchcabSjy1oUJNVsc+9PnyU= Received: by 10.38.11.49 with SMTP id 49mr413683rnk; Thu, 06 Jan 2005 22:05:31 -0800 (PST) Received: by 10.38.89.69 with HTTP; Thu, 6 Jan 2005 22:05:31 -0800 (PST) Message-ID: Date: Thu, 6 Jan 2005 22:05:31 -0800 From: Pascal Hofstee To: "Christian S.J. Peron" In-Reply-To: <20050107051952.A61748@stf01.seccuris.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050107051952.A61748@stf01.seccuris.com> cc: Dirk Meyer cc: freebsd-hackers@freebsd.org Subject: Re: GNUstep and libkvm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Pascal Hofstee List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 06:05:32 -0000 On Fri, 7 Jan 2005 05:19:52 +0000, Christian S.J. Peron wrote: > iirc, kvm_getargv() can (and does first) use a sysctl to retrieve > it's data. kvm_getenvv() requires procfs because > /proc//mem is currently the more simpler to read a virtual > memory address in the context of the process. > > We are looking at implementing a similar mechanism to the "argv" > ps_strings for process environment to get rid of the procfs requirement. > > pjd has some work done on this but it has not been committed yet. > Hope this answers your question. Well .. i noticed that kvm_getargv indeed only seems to use /proc in case that apparently the commandline argument list grows beyond a certain size, as i have been able to establish by trial and error. I guess my question is .. is kvm_getargv INTENDED to use the /proc aproach in cases the command + argument list grows beyond a certain size. Because if that IS the case .. the manpage doesn't reflect this. -- With kind regards, Pascal Hofstee From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 08:57:59 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8CAA16A4CE for ; Fri, 7 Jan 2005 08:57:59 +0000 (GMT) Received: from gatekeeper.syskonnect.de (gatekeeper.syskonnect.de [213.144.13.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39B4443D4C for ; Fri, 7 Jan 2005 08:57:58 +0000 (GMT) (envelope-from gheinig@syskonnect.de) Received: from syskonnect.de (skd.de [10.9.15.1])j078wYTl007453; Fri, 7 Jan 2005 09:58:34 +0100 (MET) Received: from syskonnect.de (localhost [127.0.0.1]) by syskonnect.de (8.12.11/8.12.11) with ESMTP id j078vtZx007531; Fri, 7 Jan 2005 09:57:55 +0100 (MET) Message-ID: <41DE4F3D.8050509@syskonnect.de> Date: Fri, 07 Jan 2005 09:58:37 +0100 From: Gerald Heinig User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Ryan References: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> In-Reply-To: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 08:57:59 -0000 Hi Robert, the benchmark you cited is for uniprocessor systems only. It says nothing about multiprocessor performance, which is what FreeBSD is aiming for. It's comparing apples with oranges. Cheers, Gerald Robert Ryan wrote: > Fellow FreeBSD developers, > > I hate to say I told you but it was inevitable. > > Check this out: http://www.feyrer.de/NetBSD/gmcgarry/ > > As I predicted more than a year ago FreeBSD 5.3 has > finally lost its only advantage: performance. NetBSD > 2.0 shows that when you write code the right way and > end up with SOLUTIONS AND NOT HACKS you have a system > that works, and works well on all platforms. > > This is the consequence of a series of mistakes made > by the FreeBSD developers, the most important being > too arrogant and selfish to listen to Matt Dillon, the > man that warned you all about this. What did he get > in return? An expulsion from your gentlemen club. > > Poul-Henning Kamp has been using FreeBSD to push his > personal agenda, with completely useless features such > as GEOM and devfs, instead of concentrating on the > real > problem. The fact that your heavily mutexed system > doesn't work and never will. > > Jeff Roberson's ULE is still broken but don't worry, > Matt Dillon will be hacking a much better scheduler > for DragonFly that you can later borrow. > > Mike Smith warned you about committee-designed code > years ago, why don't you listen? Why do you insist on > this arrogant pose and on treating potential > contributors like pariahs? > > Why do you tolerate assholes like Dag-Erling and > Poul-Henning? > > I hope you can learn something from the NetBSD people > before it's too late for FreeBSD. They managed to do > much more with less resources. You should feel ashamed > of yourselves. > > Sincerely, > Robert > > PS: if I've offended anyone (yeah, I singled a few > out) > , prove me wrong, but spare me your insultedness. > It's become a pathetic hobby in -core. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 09:10:05 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8587316A4CE for ; Fri, 7 Jan 2005 09:10:05 +0000 (GMT) Received: from web52710.mail.yahoo.com (web52710.mail.yahoo.com [206.190.39.161]) by mx1.FreeBSD.org (Postfix) with SMTP id 1B85643D39 for ; Fri, 7 Jan 2005 09:10:05 +0000 (GMT) (envelope-from kamalpr@yahoo.com) Received: (qmail 83734 invoked by uid 60001); 7 Jan 2005 09:10:04 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=V/t11v84vS2C+f8BwGIvq5KIucAsf09Wn9MZWa3MOtBvkpmdI+c51wKnC86yiyqARtcTSPYgzhqdkGAC3nUPu7nwj2gnbuzaRlKjIoEaAQU/5EVNlbgqpLsp24092+KVxOn7M98lisyQhAH0gwyZx/XPfzYv3a5Jvc1eBdL3D6s= ; Message-ID: <20050107091004.83732.qmail@web52710.mail.yahoo.com> Received: from [203.195.199.244] by web52710.mail.yahoo.com via HTTP; Fri, 07 Jan 2005 01:10:04 PST Date: Fri, 7 Jan 2005 01:10:04 -0800 (PST) From: "Kamal R. Prasad" To: Gerald Heinig , Robert Ryan In-Reply-To: <41DE4F3D.8050509@syskonnect.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-hackers@freebsd.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: kamalp@acm.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 09:10:05 -0000 --- Gerald Heinig wrote: > Hi Robert, > > the benchmark you cited is for uniprocessor systems > only. > It says nothing about multiprocessor performance, > which is what FreeBSD > is aiming for. Doesn't the (ULE) scheduler have a switch to ensure that performance is optimal on a uniprocessor machine too? > It's comparing apples with oranges. > > Cheers, > Gerald > Netbsd works for upto 4 processors. So you should be able to run the same tests on a quad-processor SMP machine. regards -kamal > Robert Ryan wrote: > > Fellow FreeBSD developers, > > > > I hate to say I told you but it was inevitable. > > > > Check this out: > http://www.feyrer.de/NetBSD/gmcgarry/ > > > > As I predicted more than a year ago FreeBSD 5.3 > has > > finally lost its only advantage: performance. > NetBSD > > 2.0 shows that when you write code the right way > and > > end up with SOLUTIONS AND NOT HACKS you have a > system > > that works, and works well on all platforms. > > > > This is the consequence of a series of mistakes > made > > by the FreeBSD developers, the most important > being > > too arrogant and selfish to listen to Matt Dillon, > the > > man that warned you all about this. What did he > get > > in return? An expulsion from your gentlemen club. > > > > Poul-Henning Kamp has been using FreeBSD to push > his > > personal agenda, with completely useless features > such > > as GEOM and devfs, instead of concentrating on the > > real > > problem. The fact that your heavily mutexed system > > doesn't work and never will. > > > > Jeff Roberson's ULE is still broken but don't > worry, > > Matt Dillon will be hacking a much better > scheduler > > for DragonFly that you can later borrow. > > > > Mike Smith warned you about committee-designed > code > > years ago, why don't you listen? Why do you insist > on > > this arrogant pose and on treating potential > > contributors like pariahs? > > > > Why do you tolerate assholes like Dag-Erling and > > Poul-Henning? > > > > I hope you can learn something from the NetBSD > people > > before it's too late for FreeBSD. They managed to > do > > much more with less resources. You should feel > ashamed > > of yourselves. > > > > Sincerely, > > Robert > > > > PS: if I've offended anyone (yeah, I singled a few > > out) > > , prove me wrong, but spare me your insultedness. > > It's become a pathetic hobby in -core. > > > _______________________________________________ > 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" > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 09:21:13 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6402916A4CE for ; Fri, 7 Jan 2005 09:21:13 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 106A643D39 for ; Fri, 7 Jan 2005 09:21:13 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.43 (FreeBSD)) id 1CmqIx-000E8f-0d; Fri, 07 Jan 2005 09:21:11 +0000 Date: Fri, 7 Jan 2005 09:21:10 +0000 From: Ceri Davies To: kamalp@acm.org Message-ID: <20050107092110.GG49329@submonkey.net> Mail-Followup-To: Ceri Davies , kamalp@acm.org, Gerald Heinig , Robert Ryan , freebsd-hackers@freebsd.org References: <41DE4F3D.8050509@syskonnect.de> <20050107091004.83732.qmail@web52710.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="QkXThh+LsIUYhkMH" Content-Disposition: inline In-Reply-To: <20050107091004.83732.qmail@web52710.mail.yahoo.com> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.6i Sender: Ceri Davies cc: Gerald Heinig cc: freebsd-hackers@freebsd.org cc: Robert Ryan Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 09:21:13 -0000 --QkXThh+LsIUYhkMH Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 07, 2005 at 01:10:04AM -0800, Kamal R. Prasad wrote: >=20 > > Hi Robert, > >=20 > > the benchmark you cited is for uniprocessor systems > > only. > > It says nothing about multiprocessor performance, > > which is what FreeBSD=20 > > is aiming for. > Doesn't the (ULE) scheduler have a switch to ensure > that performance is optimal on a uniprocessor machine > too? I don't know, but if it did that would only affect scheduling, and only in the ULE case at that. ULE was broken in 5.3-RELEASE. I don't really think that this benchmark is bad news for either OS. My only real concern are the process creation/termination results on FreeBSD. Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --QkXThh+LsIUYhkMH Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB3lSGocfcwTS3JF8RAgjJAJ9uObfcjWSmezBKHGoOoEHjNgEmkACgwO3I IdpgvseRqrQ83ofZQ9NvMZU= =O1Zp -----END PGP SIGNATURE----- --QkXThh+LsIUYhkMH-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 09:24:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5BCB16A4CE for ; Fri, 7 Jan 2005 09:24:19 +0000 (GMT) Received: from gatekeeper.syskonnect.de (gatekeeper.syskonnect.de [213.144.13.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0211A43D55 for ; Fri, 7 Jan 2005 09:24:19 +0000 (GMT) (envelope-from gheinig@syskonnect.de) Received: from syskonnect.de (skd.de [10.9.15.1])j079OqTl008411; Fri, 7 Jan 2005 10:24:52 +0100 (MET) Received: from syskonnect.de (localhost [127.0.0.1]) by syskonnect.de (8.12.11/8.12.11) with ESMTP id j079ODjc008096; Fri, 7 Jan 2005 10:24:14 +0100 (MET) Message-ID: <41DE5568.1060000@syskonnect.de> Date: Fri, 07 Jan 2005 10:24:56 +0100 From: Gerald Heinig User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: kamalp@acm.org References: <20050107091004.83732.qmail@web52710.mail.yahoo.com> In-Reply-To: <20050107091004.83732.qmail@web52710.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: Robert Ryan Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 09:24:19 -0000 Hi Kamal, I don't know about any switches for ULE. My point is that it's not particularly meaningful to compare a system that's built for SMP to one that isn't. There have been a number of tests (sorry, don't have time to dig them all out) of systems with MP locks against systems without on a uniprocessor machine. The systems with MP locks were all slower. I remember a test done with Linux (2.4 IIRC) compiled with MP support and without; there were significant differences. Tests with Solaris x86 against Linux on a 1-processor machine also showed Solaris performing poorly. Use a proper MP box ("proper" meaning >= 4 CPUs) and the picture usually changes. I'd be interested to see the same test done on a 4 CPU box. Cheers, Gerald Kamal R. Prasad wrote: > --- Gerald Heinig wrote: > > >>Hi Robert, >> >>the benchmark you cited is for uniprocessor systems >>only. >>It says nothing about multiprocessor performance, >>which is what FreeBSD >>is aiming for. > > Doesn't the (ULE) scheduler have a switch to ensure > that performance is optimal on a uniprocessor machine > too? > > >>It's comparing apples with oranges. >> >>Cheers, >>Gerald >> > > Netbsd works for upto 4 processors. So you should be > able to run the same tests on a quad-processor SMP > machine. > > regards > -kamal > > >>Robert Ryan wrote: >> >>>Fellow FreeBSD developers, >>> >>>I hate to say I told you but it was inevitable. >>> >>>Check this out: >> >>http://www.feyrer.de/NetBSD/gmcgarry/ >> >>>As I predicted more than a year ago FreeBSD 5.3 >> >>has >> >>>finally lost its only advantage: performance. >> >>NetBSD >> >>>2.0 shows that when you write code the right way >> >>and >> >>>end up with SOLUTIONS AND NOT HACKS you have a >> >>system >> >>>that works, and works well on all platforms. >>> >>>This is the consequence of a series of mistakes >> >>made >> >>>by the FreeBSD developers, the most important >> >>being >> >>>too arrogant and selfish to listen to Matt Dillon, >> >>the >> >>>man that warned you all about this. What did he >> >>get >> >>>in return? An expulsion from your gentlemen club. >>> >>>Poul-Henning Kamp has been using FreeBSD to push >> >>his >> >>>personal agenda, with completely useless features >> >>such >> >>>as GEOM and devfs, instead of concentrating on the >>>real >>>problem. The fact that your heavily mutexed system >>>doesn't work and never will. >>> >>>Jeff Roberson's ULE is still broken but don't >> >>worry, >> >>>Matt Dillon will be hacking a much better >> >>scheduler >> >>>for DragonFly that you can later borrow. >>> >>>Mike Smith warned you about committee-designed >> >>code >> >>>years ago, why don't you listen? Why do you insist >> >>on >> >>>this arrogant pose and on treating potential >>>contributors like pariahs? >>> >>>Why do you tolerate assholes like Dag-Erling and >>>Poul-Henning? >>> >>>I hope you can learn something from the NetBSD >> >>people >> >>>before it's too late for FreeBSD. They managed to >> >>do >> >>>much more with less resources. You should feel >> >>ashamed >> >>>of yourselves. >>> >>>Sincerely, >>> Robert >>> >>>PS: if I've offended anyone (yeah, I singled a few >>>out) >>>, prove me wrong, but spare me your insultedness. >>>It's become a pathetic hobby in -core. From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 09:40:34 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 69AFB16A4CE for ; Fri, 7 Jan 2005 09:40:34 +0000 (GMT) Received: from smartmx-07.inode.at (smartmx-07.inode.at [213.229.60.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id E20DA43D2F for ; Fri, 7 Jan 2005 09:40:33 +0000 (GMT) (envelope-from mranner@inode.at) Received: from [62.99.193.231] (port=4050 helo=[62.99.193.231]) by smartmx-07.inode.at with esmtp (Exim 4.34) id 1Cmqbg-0007je-Ja for freebsd-hackers@freebsd.org; Fri, 07 Jan 2005 10:40:32 +0100 From: Michael Ranner To: freebsd-hackers@freebsd.org Date: Fri, 7 Jan 2005 10:40:58 +0100 User-Agent: KMail/1.7.1 References: <20050106115726.52478.qmail@web26608.mail.ukl.yahoo.com> <41DE4F3D.8050509@syskonnect.de> In-Reply-To: <41DE4F3D.8050509@syskonnect.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200501071040.58613.mranner@inode.at> Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 09:40:34 -0000 Am Freitag, 7. Januar 2005 09:58 schrieb Gerald Heinig: > Hi Robert, > > the benchmark you cited is for uniprocessor systems only. > It says nothing about multiprocessor performance, which is what FreeBSD > is aiming for. > It's comparing apples with oranges. No, many users, me included, only run FreeBSD on UP systems. Do I have to switch to (Net|Open|DragonFly)BSD because FreeBSD is now only targeted to MP? I do not think so, and thats why this benchmark does compare apples with apples, but these are microbenchmarks, and more complex tasks may show completely different results. I am also missing results with Linux (and other BSD's), which may better show our (FreeBSD's) position. Regards -- /\/\ichael Ranner mranner@inode.at - mranner@jawa.at - mranner@bugat.at ----------------------------------------------------- BSD Usergroup Austria - http://www.bugat.at/ -----BEGIN GEEK CODE BLOCK----- GIT/CS/AT dx(-) s+:(++:) a- C++ UBLVS++++$ P++>+++$ L-(+)$ E--- W+++$ N+(++) o-- K- w--()$ O-(--) M@ V-(--) PS+>++ PE(-) Y+ PGP(-) t+ 5+ X+++(++++) R* tv++ b+(++) DI++ D-(--) G- e h--(*) r++ y? ------END GEEK CODE BLOCK------ From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 10:10:49 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9A6616A4CE for ; Fri, 7 Jan 2005 10:10:49 +0000 (GMT) Received: from mail.freebsd.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with SMTP id 85B1343D1D for ; Fri, 7 Jan 2005 10:10:45 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 75243 invoked by uid 0); 7 Jan 2005 10:03:14 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.99.7) by mail.freebsd.org.cn with SMTP; 7 Jan 2005 10:03:14 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id C7A3E133AE2; Fri, 7 Jan 2005 18:10:27 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03351-03; Fri, 7 Jan 2005 18:10:14 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id A1415133739; Fri, 7 Jan 2005 18:10:06 +0800 (CST) Date: Fri, 7 Jan 2005 18:10:06 +0800 From: Xin LI To: Ceri Davies Message-ID: <20050107101006.GA2553@frontfree.net> References: <41DE4F3D.8050509@syskonnect.de> <20050107091004.83732.qmail@web52710.mail.yahoo.com> <20050107092110.GG49329@submonkey.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="liOOAslEiF7prFVr" Content-Disposition: inline In-Reply-To: <20050107092110.GG49329@submonkey.net> User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.3-delphij FreeBSD 5.3-delphij #11: Tue Oct 26 14:12:03 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net cc: Gerald Heinig cc: freebsd-hackers@freebsd.org cc: kamalp@acm.org cc: Robert Ryan cc: tjr@FreeBSD.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 10:10:49 -0000 --liOOAslEiF7prFVr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 07, 2005 at 09:21:10AM +0000, Ceri Davies wrote: > I don't really think that this benchmark is bad news for either OS. My > only real concern are the process creation/termination results on FreeBSD. I guess that this might worth investigating: http://people.freebsd.org/~das/pbench/pbench.html (Unfortuantelly, neither tjr@ nor I have touched our patchsets recently. A most recent snapshot of the two patchsets are here: http://research.delphij.net/freebsd/pid.diff http://research.delphij.net/freebsd/pid-tjr.diff) Most of the work was to catch up with Aug 2004's -CURRENT, but it might be easier to bring them up-to-date instead of working from the very original patches =3D-) Cheers, --=20 Xin LI http://www.delphij.net/ See complete headers for GPG key and other information. --liOOAslEiF7prFVr Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB3l/+/cVsHxFZiIoRAhjFAJ45jITSKdFqKKpI5Jd8zs3LRN1rLwCeKYCp u46h5ZUnCvFMBiEf1wo0I2M= =UHyn -----END PGP SIGNATURE----- --liOOAslEiF7prFVr-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 11:49:08 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AE7816A4CE; Fri, 7 Jan 2005 11:49:08 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0747E43D45; Fri, 7 Jan 2005 11:49:05 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id j07BmMBY042537; Fri, 7 Jan 2005 22:18:23 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Fri, 7 Jan 2005 22:18:11 +1030 User-Agent: KMail/1.7.1 References: <41DE4F3D.8050509@syskonnect.de> <20050107092110.GG49329@submonkey.net> <20050107101006.GA2553@frontfree.net> In-Reply-To: <20050107101006.GA2553@frontfree.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1157031.CWLovQAHFV"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200501072218.20970.doconnor@gsoft.com.au> X-Spam-Score: -5.4 () IN_REP_TO,PGP_SIGNATURE_2,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: kamalp@acm.org cc: Gerald Heinig cc: Robert Ryan cc: tjr@freebsd.org cc: Ceri Davies Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 11:49:08 -0000 --nextPart1157031.CWLovQAHFV Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Fri, 7 Jan 2005 20:40, Xin LI wrote: > On Fri, Jan 07, 2005 at 09:21:10AM +0000, Ceri Davies wrote: > > I don't really think that this benchmark is bad news for either OS. My > > only real concern are the process creation/termination results on > > FreeBSD. > > I guess that this might worth investigating: > > http://people.freebsd.org/~das/pbench/pbench.html It's nice to see constructive info amidst the flamage :) =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart1157031.CWLovQAHFV Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQBB3ncE5ZPcIHs/zowRAuTTAKCHVT4UPYnQP1QK71TxV5Tgax5cIQCglg4B W+YsMjQzkQwTmpUdwGrO2ww= =gJcS -----END PGP SIGNATURE----- --nextPart1157031.CWLovQAHFV-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 11:52:27 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A2FB616A4CE; Fri, 7 Jan 2005 11:52:27 +0000 (GMT) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id A46BA43D39; Fri, 7 Jan 2005 11:52:26 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo ([200.249.204.142]) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id j07BwxwT008406; Fri, 7 Jan 2005 08:58:59 -0300 From: mario.lobo@ipad.com.br Organization: IPAD To: mario.lobo@ipad.com.br Date: Fri, 07 Jan 2005 08:56:37 -0300 MIME-Version: 1.0 Message-ID: <41DE4EC5.17019.13DDF2@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: sk0: discard oversize frame (ether type ....) [SOLVED] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 11:52:27 -0000 The upgrade to 5-CURRENT did it. sk0 now works fine ! On 5 Jan 2005 at 11:14, "Bjoern A. Zeeb" Doing it right now!! > > Thanks, > > -- > //| //|| > // | // || > -//--//---|| ARIO LOBO > // // || > --------------------------------- > mario.lobo@ipad.com.br > http://www.ipad.com.br > > On 5 Jan 2005 at 12:58, Bjoern A. Zeeb wrote: > > > please update to RELENG_5; it's fixed there already:) > > > > -- > > Greetings > > Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT > > _______________________________________________ > > freebsd-questions@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 12:02:18 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C7F616A4CF; Fri, 7 Jan 2005 12:02:18 +0000 (GMT) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 669DF43D31; Fri, 7 Jan 2005 12:02:17 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo ([200.249.204.142]) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id j07C8mwT009535; Fri, 7 Jan 2005 09:08:49 -0300 From: mario.lobo@ipad.com.br Organization: IPAD To: freebsd-questions@freebsd.org Date: Fri, 07 Jan 2005 09:06:27 -0300 MIME-Version: 1.0 Message-ID: <41DE5113.24978.1CDD38@localhost> Priority: normal X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body cc: freebsd-hackers@freebsd.org Subject: netstat odd behavior X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 12:02:18 -0000 Hello; On all installations of FreeBSD I=B4ve ever done in the past, netstat -an displays LISTENing servers and any tcp connection in any state. On the 5.3 I have installed here ( updated to RELENG_5_3 + build/installwo= rld ), this command only shows only this; -------------------------------------------- Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp4 0 0 *.514 *.* Active UNIX domain sockets Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr c38d01a4 stream 0 0 c3de8738 0 0 0 /db/mysq= l/mysql.sock c38d1000 stream 0 0 c3883c60 0 0 0 /var/run= /devd.pipe c38d0ec4 dgram 0 0 c3883210 0 0 0 /var/run= /log -------------------------------------------- I have ssh, sendmail, ftpd and mysql daemons running, LISTENing and WORKIN= G. Would anybody know why they are not showing on the output of netstat? Thanks, -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 12:15:19 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5501B16A4CE for ; Fri, 7 Jan 2005 12:15:19 +0000 (GMT) Received: from seed.net.tw (sn16.seed.net.tw [139.175.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1F12543D3F for ; Fri, 7 Jan 2005 12:15:19 +0000 (GMT) (envelope-from mailinglist@ms94.url.com.tw) Received: from [221.169.112.158] (port=57153 helo=[127.0.0.1]) by seed.net.tw with esmtp (Seednet 4.23:1) id 1Cmt1R-000HiP-GH for freebsd-hackers@freebsd.org; Fri, 07 Jan 2005 20:15:17 +0800 Date: Fri, 07 Jan 2005 20:16:17 +0800 From: Der To: freebsd-hackers@freebsd.org Message-Id: <20050107201528.1DB7.MAILINGLIST@ms94.url.com.tw> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.11.02 [en] Subject: X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 12:15:19 -0000 mailinglist@ms94.url.com.tw From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 12:49:33 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A5D1716A4CE for ; Fri, 7 Jan 2005 12:49:33 +0000 (GMT) Received: from mail.gmx.net (pop.gmx.net [213.165.64.20]) by mx1.FreeBSD.org (Postfix) with SMTP id 90B7043D1F for ; Fri, 7 Jan 2005 12:49:32 +0000 (GMT) (envelope-from barner@gmx.de) Received: (qmail invoked by alias); 07 Jan 2005 12:49:31 -0000 Received: from unknown (EHLO zi025.glhnet.mhn.de) (129.187.19.157) by mail.gmx.net (mp020) with SMTP; 07 Jan 2005 13:49:31 +0100 X-Authenticated: #147403 Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id 91F19C0D4; Fri, 7 Jan 2005 13:49:30 +0100 (CET) Date: Fri, 7 Jan 2005 13:49:30 +0100 From: Simon Barner To: mario.lobo@ipad.com.br Message-ID: <20050107124930.GA1325@zi025.glhnet.mhn.de> References: <41DE5113.24978.1CDD38@localhost> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: <41DE5113.24978.1CDD38@localhost> User-Agent: Mutt/1.5.6i X-Y-GMX-Trusted: 0 cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: netstat odd behavior X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 12:49:33 -0000 --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable mario.lobo@ipad.com.br wrote: > On all installations of FreeBSD I?ve ever done in the past, >=20 > netstat -an >=20 > displays LISTENing servers and any tcp connection in any state. >=20 > On the 5.3 I have installed here ( updated to RELENG_5_3 + build/installw= orld ), this command only > shows only this; [ no tcp servers ] I had the same problem, updating to RELENG_5 fixed it for me. Simon --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (FreeBSD) iD8DBQFB3oVaCkn+/eutqCoRAlboAJ4zj+GPbT3hOCjRypTEHTHIdWcIaACg9Yma Z9RggBSWggnx2ElntkkqIyI= =6dMx -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4-- From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 05:19:54 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 647A616A4CF for ; Fri, 7 Jan 2005 05:19:54 +0000 (GMT) Received: from stf01.seccuris.com (stf01.seccuris.com [204.112.0.40]) by mx1.FreeBSD.org (Postfix) with SMTP id 8417E43D5A for ; Fri, 7 Jan 2005 05:19:53 +0000 (GMT) (envelope-from cperon@stf01.seccuris.com) Received: (qmail 67317 invoked by uid 1006); 7 Jan 2005 05:19:52 -0000 Date: Fri, 7 Jan 2005 05:19:52 +0000 From: "Christian S.J. Peron" To: Pascal Hofstee Message-ID: <20050107051952.A61748@stf01.seccuris.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from caelian@gmail.com on Thu, Jan 06, 2005 at 06:21:54PM -0800 X-Mailman-Approved-At: Fri, 07 Jan 2005 13:21:15 +0000 cc: Dirk Meyer cc: freebsd-hackers@freebsd.org Subject: Re: GNUstep and libkvm X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 05:19:54 -0000 On Thu, Jan 06, 2005 at 06:21:54PM -0800, Pascal Hofstee wrote: > > I guess to sum it all up it all boils down to the following question. > > Is it intended that kvm_getargv() apparently has a conditional under > which it depends on the existince of a working /proc .. even though > the manpage states this condition is only present for kvm_getenvv ? > > And if kvm_getargv should not depend on /proc ... how can we go about > to fixing this as this is apprently only the case for "short > commandlines" in our current implementation. iirc, kvm_getargv() can (and does first) use a sysctl to retrieve it's data. kvm_getenvv() requires procfs because /proc//mem is currently the more simpler to read a virtual memory address in the context of the process. We are looking at implementing a similar mechanism to the "argv" ps_strings for process environment to get rid of the procfs requirement. pjd has some work done on this but it has not been committed yet. Hope this answers your question. Regards Christian S.J. Peron From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 18:00:42 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A45516A4CE for ; Fri, 7 Jan 2005 18:00:42 +0000 (GMT) Received: from humakt.s8n.se (3-1-3-15a.gmt.gbg.bostream.se [82.183.170.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C1FF43D1F for ; Fri, 7 Jan 2005 18:00:41 +0000 (GMT) (envelope-from olof@s8n.se) Received: from humakt.s8n.se (localhost [127.0.0.1]) by humakt.s8n.se (8.13.1/8.13.1) with ESMTP id j07I0TJm016153; Fri, 7 Jan 2005 19:00:30 +0100 (CET) (envelope-from olof@s8n.se) Date: Fri, 07 Jan 2005 19:00:29 +0100 Message-ID: <87mzvlunk2.wl%olof@s8n.se> From: Olof Samuelsson To: freebsd-hackers@freebsd.org User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 MULE XEmacs/21.4 (patch 16) (Corporate Culture) (i386--freebsd) X-Attribution: Olof MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: ALTQ support in vr(4)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 18:00:42 -0000 Hello, I've noticed a discrepancy between the ALTQ manpage and the release notes (both in 5.3): altq(4) says: SUPPORTED DEVICES The driver modifications described in altq(9) and required to use a certain network card with ALTQ have been applied to the following hardware drivers an(4), ath(4), awi(4), bfe(4), dc(4), em(4), fxp(4), hme(4), lnc(4), wi(4), de(4), rl(4), sis(4), vr(4) ---------------------------------------------------------------->!!!!! and xl(4). Whereas http://www.freebsd.org/releases/5.3R/relnotes-i386.html says: The ALTQ framework has been imported from a KAME snapshot as of 7 June 2004. This import breaks ABI compatibility of struct ifnet and requires all network drives to be recompiled. Additionally, some of the networking drivers have been modified to support the ALTQ framework. Updated drivers are bfe(4), em(4), fxp(4), em(4), lnc(4), tun(4), de(4), rl(4), sis(4), and xl(4). Which list is correct? What should I look for in the driver source? Btw, em(4) is mentioned twice in the release notes ... hme(4)? BR, Olof -- | Olof Samuelsson - olof@s8n.se | | olof s12345678n - private mail | From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 18:28:37 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0733916A4CE; Fri, 7 Jan 2005 18:28:37 +0000 (GMT) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04C2443D54; Fri, 7 Jan 2005 18:28:36 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo ([200.249.204.142]) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id j07IZ8wT021956; Fri, 7 Jan 2005 15:35:08 -0300 From: mario.lobo@ipad.com.br Organization: IPAD To: jose@hostarica.com Date: Fri, 07 Jan 2005 15:32:47 -0300 MIME-Version: 1.0 Message-ID: <41DEAB9F.22561.17E9113@localhost> Priority: normal In-reply-to: <1105116981.2870.0.camel@jose.hostarica.net> References: <41DE5113.24978.1CDD38@localhost> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: jose@hostarica.com Subject: Re: netstat odd behavior X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 18:28:37 -0000 Tried that before posting. this is what I get Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (state) udp4 0 0 *.514 *.* On 7 Jan 2005 at 10:56, Jose Hidalgo Herrera wrote: > > What about > netstat -anf inet > > > El vie, 07-01-2005 a las 09:06 -0300, mario.lobo@ipad.com.br escribi=F3:= > > Hello; > > On all installations of FreeBSD I=B4ve ever done in the past, > > netstat -an > > displays LISTENing servers and any tcp connection in any state. > > On the 5.3 I have installed here ( updated to RELENG_5_3 + build/ins= tallworld ), this command only > shows only this; > > -------------------------------------------- > Active Internet connections (including servers) > Proto Recv-Q Send-Q Local Address Foreign Address (= state) > udp4 0 0 *.514 *.* > Active UNIX domain sockets > Address Type Recv-Q Send-Q Inode Conn Refs Nextref Ad= dr > c38d01a4 stream 0 0 c3de8738 0 0 0 /d= b/mysql/mysql.sock > c38d1000 stream 0 0 c3883c60 0 0 0 /v= ar/run/devd.pipe > c38d0ec4 dgram 0 0 c3883210 0 0 0 /v= ar/run/log > -------------------------------------------- > > I have ssh, sendmail, ftpd and mysql daemons running, LISTENing and = WORKING. > > Would anybody know why they are not showing on the output of netstat= ? > > Thanks, > > -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 19:49:54 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DB5C916A4CF; Fri, 7 Jan 2005 19:49:54 +0000 (GMT) Received: from recife.ipadnet.com.br (recife.ipadnet.com.br [200.249.204.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADEF143D39; Fri, 7 Jan 2005 19:49:53 +0000 (GMT) (envelope-from mario.lobo@ipad.com.br) Received: from marioLobo ([200.249.204.142]) by recife.ipadnet.com.br (8.12.8/8.12.8) with ESMTP id j07JuHwT001671; Fri, 7 Jan 2005 16:56:18 -0300 From: mario.lobo@ipad.com.br Organization: IPAD To: Giorgos Keramidas Date: Fri, 07 Jan 2005 16:53:56 -0300 MIME-Version: 1.0 Message-ID: <41DEBEA4.30540.1C8DBFC@localhost> Priority: normal In-reply-to: <20050107192656.GA965@gothmog.gr> References: <41DEAB9F.22561.17E9113@localhost> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: Quoted-printable Content-description: Mail message body cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: netstat odd behavior X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: mario.lobo@ipad.com.br List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 19:49:55 -0000 That=B4s it !! I=B4ve been having trouble with a sk0 gigabit ethernet and updated the ker= nel to 5_CURRENT to update it with jumbo frame support, But userland was updated to RELENG_= 5_3 only !! I knew about that but the system ran smooth after compiling the new kernel= , I did not think it would make a difference. My mistake. Thanks for pointing it out, Giorgos. -- //| //|| // | // || -//--//---|| ARIO LOBO // // || --------------------------------- mario.lobo@ipad.com.br http://www.ipad.com.br On 7 Jan 2005 at 21:26, Giorgos Keramidas wrote: > Are you sure you don't have a kernel and userland that are out of > sync? You _did_ update both as the instructions in src/UPDATING > suggest, right? > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.= org" From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 20:39:09 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4325F16A4CE for ; Fri, 7 Jan 2005 20:39:09 +0000 (GMT) Received: from humakt.s8n.se (3-1-3-15a.gmt.gbg.bostream.se [82.183.170.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 868BE43D1F for ; Fri, 7 Jan 2005 20:39:08 +0000 (GMT) (envelope-from olof@s8n.se) Received: from humakt.s8n.se (localhost [127.0.0.1]) by humakt.s8n.se (8.13.1/8.13.1) with ESMTP id j07KcwQs019571; Fri, 7 Jan 2005 21:38:58 +0100 (CET) (envelope-from olof@s8n.se) Date: Fri, 07 Jan 2005 21:38:58 +0100 Message-ID: <87k6qpug7x.wl%olof@s8n.se> From: Olof Samuelsson To: freebsd-hackers@freebsd.org In-Reply-To: <87mzvlunk2.wl%olof@s8n.se> References: <87mzvlunk2.wl%olof@s8n.se> User-Agent: Wanderlust/2.12.0 (Your Wildest Dreams) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 MULE XEmacs/21.4 (patch 16) (Corporate Culture) (i386--freebsd) X-Attribution: Olof MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Subject: Re: ALTQ support in vr(4)? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 20:39:09 -0000 Sorry for wasting everyones bandwidth and time .. thanks to Dominic Marks I have re-read my own question and actually *read* the altq(9) manpage in addition to the altq(4) manpage... I make the conclusion that if the IFQ_* macros are used in the driver source, the driver is ALTQified. I also draw the conclusion that vr(4) supports ALTQ and will test this later this weekend. I guess that the release notes are a little wrong too. BR, Olof >>>>> "Olof" == Olof Samuelsson writes: Olof> Hello, I've noticed a discrepancy between the ALTQ manpage and Olof> the release notes (both in 5.3): Olof> altq(4) says: SUPPORTED DEVICES Olof> The driver modifications described in altq(9) and required Olof> to use a certain network card with ALTQ have been applied Olof> to the following hardware drivers an(4), ath(4), awi(4), Olof> bfe(4), dc(4), em(4), fxp(4), hme(4), lnc(4), wi(4), Olof> de(4), rl(4), sis(4), vr(4) ----------------------------------------------------------------> !!!!! Olof> and xl(4). Olof> Whereas http://www.freebsd.org/releases/5.3R/relnotes-i386.html Olof> says: Olof> The ALTQ framework has been imported from a KAME snapshot as of Olof> 7 June Olof> 2004. This import breaks ABI compatibility of struct ifnet and Olof> requires all network drives to be recompiled. Additionally, Olof> some of the networking drivers have been modified to Olof> support the ALTQ framework. Updated drivers are bfe(4), Olof> em(4), fxp(4), em(4), lnc(4), tun(4), de(4), rl(4), sis(4), Olof> and xl(4). Olof> Which list is correct? What should I look for in the driver Olof> source? Olof> Btw, em(4) is mentioned twice in the release notes ... hme(4)? Olof> BR, Olof Olof> -- Olof> | Olof Samuelsson - olof@s8n.se | | olof s12345678n - private Olof> mail | From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 21:40:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3552816A4D0; Fri, 7 Jan 2005 21:40:23 +0000 (GMT) Received: from mx.hostarica.com (www2.hostarica.com [196.40.45.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B81643D45; Fri, 7 Jan 2005 21:40:22 +0000 (GMT) (envelope-from jose@hostarica.com) Received: from localhost (localhost.hostarica.com [127.0.0.1]) by mx.hostarica.com (Postfix) with ESMTP id 20F28F7EF; Fri, 7 Jan 2005 11:03:20 -0600 (CST) Received: from localhost.localdomain (jose.hostarica.net [192.168.0.69]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.hostarica.com (Postfix) with ESMTP id DDB8DF7C6; Fri, 7 Jan 2005 11:03:17 -0600 (CST) From: Jose Hidalgo Herrera To: mario.lobo@ipad.com.br In-Reply-To: <41DE5113.24978.1CDD38@localhost> References: <41DE5113.24978.1CDD38@localhost> Organization: Corp. Hostarica Date: Fri, 07 Jan 2005 10:56:21 -0600 Message-Id: <1105116981.2870.0.camel@jose.hostarica.net> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 FreeBSD GNOME Team Port X-Virus-Scanned: by amavisd 0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: freebsd-hackers@freebsd.org cc: freebsd-questions@freebsd.org cc: jose@hostarica.com Subject: Re: netstat odd behavior X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jose@hostarica.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 21:40:23 -0000 What about netstat -anf inet El vie, 07-01-2005 a las 09:06 -0300, mario.lobo@ipad.com.br escribió: > Hello; > > On all installations of FreeBSD I´ve ever done in the past, > > netstat -an > > displays LISTENing servers and any tcp connection in any state. > > On the 5.3 I have installed here ( updated to RELENG_5_3 + build/installworld ), this command only > shows only this; > > -------------------------------------------- > Active Internet connections (including servers) > Proto Recv-Q Send-Q Local Address Foreign Address (state) > udp4 0 0 *.514 *.* > Active UNIX domain sockets > Address Type Recv-Q Send-Q Inode Conn Refs Nextref Addr > c38d01a4 stream 0 0 c3de8738 0 0 0 /db/mysql/mysql.sock > c38d1000 stream 0 0 c3883c60 0 0 0 /var/run/devd.pipe > c38d0ec4 dgram 0 0 c3883210 0 0 0 /var/run/log > -------------------------------------------- > > I have ssh, sendmail, ftpd and mysql daemons running, LISTENing and WORKING. > > Would anybody know why they are not showing on the output of netstat? > > Thanks, -- Jose Hidalgo Herrera Corp. Hostarica From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 23:14:09 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F9F016A4CE for ; Fri, 7 Jan 2005 23:14:09 +0000 (GMT) Received: from pisces.lunarpages.com (pisces.lunarpages.com [64.235.234.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 66A0443D1F for ; Fri, 7 Jan 2005 23:14:09 +0000 (GMT) (envelope-from sean@node99.org) Received: from c-24-23-60-128.client.comcast.net ([24.23.60.128] helo=[192.168.1.101]) by pisces.lunarpages.com with esmtp (Exim 4.43) id 1Cn3J2-0004G4-PP for freebsd-hackers@freebsd.org; Fri, 07 Jan 2005 15:14:08 -0800 Message-ID: <41DF17C2.9060801@node99.org> Date: Fri, 07 Jan 2005 15:14:10 -0800 From: Sean Whalen User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) 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-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - pisces.lunarpages.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - node99.org X-Source: X-Source-Args: X-Source-Dir: Subject: Potential user/kernel pointer bugs in FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 23:14:09 -0000 Hello, We recently did work with the Cqual type inference tool to identify potential user/kernel pointer bugs in FreeBSD 5.3. Our paper is available here: http://www.node99.org/projects/bsduk/ We identified 5 potential bugs which we are looking to confirm with the community. Page 10 contains an example of one such candidate. More true positives may be identified by using a machine with 10 or more gigs of RAM for inter-file analysis of the entire kernel. If interested, please email me. Best, -Sean From owner-freebsd-hackers@FreeBSD.ORG Fri Jan 7 23:24:39 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 851C816A4CE for ; Fri, 7 Jan 2005 23:24:39 +0000 (GMT) Received: from pd2mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D681543D2D for ; Fri, 7 Jan 2005 23:24:38 +0000 (GMT) (envelope-from colin.percival@wadham.ox.ac.uk) Received: from pd4mr5so.prod.shaw.ca (pd4mr5so-qfe3.prod.shaw.ca [10.0.141.50])2004))freebsd-hackers@freebsd.org; Fri, 07 Jan 2005 16:24:38 -0700 (MST) Received: from pn2ml1so.prod.shaw.ca ([10.0.121.145]) by pd4mr5so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0I9Y00HRYZP22Q90@pd4mr5so.prod.shaw.ca> for freebsd-hackers@freebsd.org; Fri, 07 Jan 2005 16:24:38 -0700 (MST) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.233.42]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0I9Y00C7LZP2B9@l-daemon> for freebsd-hackers@freebsd.org; Fri, 07 Jan 2005 16:24:38 -0700 (MST) Date: Fri, 07 Jan 2005 15:24:36 -0800 From: Colin Percival In-reply-to: <41DF17C2.9060801@node99.org> To: Sean Whalen Message-id: <41DF1A34.9060704@wadham.ox.ac.uk> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime References: <41DF17C2.9060801@node99.org> User-Agent: Mozilla Thunderbird 0.9 (X11/20041107) cc: freebsd-hackers@freebsd.org Subject: Re: Potential user/kernel pointer bugs in FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jan 2005 23:24:39 -0000 Sean Whalen wrote: > We recently did work with the Cqual type inference tool to identify > potential user/kernel pointer bugs in FreeBSD 5.3. Our paper is > available here: http://www.node99.org/projects/bsduk/ > > We identified 5 potential bugs which we are looking to confirm with the > community. Page 10 contains an example of one such candidate. More > true positives may be identified by using a machine with 10 or more gigs > of RAM for inter-file analysis of the entire kernel. If interested, > please email me. Sean, Coverity got to that particular bug first -- it was fixed as part of the FreeBSD-SA-04:17.procfs security advisory. Could you send the rest of these to secteam@freebsd.org? We'd like to look at them and fix any security issues before they are publicly disclosed. Thanks, Colin Percival From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 04:30:32 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27CDF16A4CE for ; Sat, 8 Jan 2005 04:30:32 +0000 (GMT) Received: from internet1.mccd.edu (internet1.mccd.edu [198.189.251.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0F07E43D2D for ; Sat, 8 Jan 2005 04:30:32 +0000 (GMT) (envelope-from alexander.s@mccd.edu) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: base64 Date: Fri, 7 Jan 2005 20:31:08 -0800 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Missing functionality in Blowfish for crypt(3) Thread-Index: AcT1Ot+lZj7f+2WHQyC4PLcNVZhf0Q== From: "Steven Alexander" To: Subject: Missing functionality in Blowfish for crypt(3) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 04:30:32 -0000 SSBoYXZlIHNlcGFyYXRlbHkgcG9zdGVkIHRoaXMgdG8gZnJlZWJzZC1zZWN1cml0eSBhcyBpdCBz ZWVtZWQgcmVsZXZhbnQgdG8gYm90aCBsaXN0cy4NCg0KVGhlIGJsb3dmaXNoIGNyeXB0KDMpIG1l Y2hhbmlzbSBzdXBwb3J0cyB0aGUgdXNlIG9mIGEgImNvc3QgdmFsdWUiIGZvciBwYXNzd29yZCBl bmNyeXB0aW9uLiAgVGhlIGNvc3QgdmFsdWUgaXMgZW5jb2RlZCBpbnRvIHRoZSBlbmNyeXB0ZWQg cGFzc3dvcmQgdGhhdCBpcyBzdG9yZWQgaW4gbWFzdGVyLnBhc3N3ZC4gIE9uIE9wZW5CU0QsIHRo aXMgY29zdCB2YWx1ZSBjYW4gYmUgc2V0IGluIGxvZ2luLmNvbmYuICBGcmVlQlNEIGRvZXMgbm90 IGN1cnJlbnRseSBzdXBwb3J0IHRoZSBjb3N0IHZhbHVlLiAgVGhlIGNvc3QgdmFsdWUgaXMgdGhl IGJhc2UtMiBsb2dhcml0aG0gb2YgdGhlIG51bWJlciBvZiByb3VuZHMgb2YgZW5jcnlwdGlvbiB0 byB1c2Ugc28gcm91bmRzPTE8PGNvc3Q7ICBUaGlzIGZ1bmN0aW9uYWxpdHkgY2FuIGJlIHN1cHBv cnRlZCB0aHJvdWdoIG1vZGlmaWNhdGlvbnMgdG8gL3Vzci9iaW4vcGFzc3dkICh3aGljaCBhY3R1 YWxseSBtZWFucyBhIGNoYW5nZSB0byBQQU0pIG9yIHRocm91Z2ggbW9kaWZpY2F0aW9ucyB0byBs aWJjc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MiBsb2dhcml0aG0gb2YgdGhlIA0KKyAgICAgIGRlc2ly ZWQgcm91bmRzIHZhbHVlLiAgKi8NCisgICANCisgICAgICBpZihnZXRwd3VpZF9yKGdldHVpZCgp LCAmcHcsIHB3YnVmLCBzaXplb2YocHdidWYpLCAmcHdkKSA9PSAwKQ0KKyAgICAgIHsNCisgICBp ZiggKGxjID0gbG9naW5fZ2V0cHdjbGFzcyhwd2QpKSAhPSBOVUxMKQ0KKyAgICAgew0KKyAgICAg ICAgICAgICAgbG9nciA9IChpbnQpbG9naW5fZ2V0Y2FwbnVtKGxjLCAibG5fcm91bmRzIiwgbG9n ciwgbG9ncik7DQorICAgICAgIHJvdW5kcyA9IDEgPDwgbG9ncjsNCisgICAgICAgaWYocm91bmRz IDwgQkNSWVBUX01JTlJPVU5EUykNCisgICAgICAgew0KKyAgICBwcmludGYoImxuX3JvdW5kcyBp biBsb2dpbi5jb25mIGlzIHRvbyBzbWFsbFxuIik7DQorICAgIHJldHVybiBlcnJvcjsNCisgICAg ICAgfQ0KKyAgICAgICAgICAgICAgICAgfQ0KKyAgIGVsc2UNCisgICB7DQorICAgICAgIHByaW50 ZigiY291bGQgbm90IGxvb2sgdXAgY2FwYWJpbGl0eVxuIik7DQorICAgICAgIHJldHVybiBlcnJv cjsNCisgICB9DQorICAgICAgICAgICAgIH0NCisgICAgICBlbHNlDQorICAgICAgew0KKyAgIHBy aW50ZigiQ291bGQgbm90IGxvb2sgdXAgY3VycmVudCB1c2VyICVkXG4iLCBnZXR1aWQoKSk7DQor ICAgcmV0dXJuIGVycm9yOw0KKyAgICAgICAgICAgICB9DQogICB9DQogIA0KIA0KIA0KYmVnaW4g NjQ0IGxpYmNyeXB0LnBhdGNoDQpNOSZFRjlCYE04UmBOK1ctRThXNVI5Ml1MOjYoTzsmRUI4VylZ PCcwTzhXKVk8JzBNOEZRTz1WOUk8VkBODQpNOFJgTitXLUU4VzVSOTJdTDo2KE87JkVCOFcpWTwn ME07RjVXK1YtUj43IVQ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.ORG Sat Jan 8 13:55:37 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF8FA16A4CE; Sat, 8 Jan 2005 13:55:37 +0000 (GMT) Received: from shrike.submonkey.net (cpc2-cdif3-6-0-cust204.cdif.cable.ntl.com [81.103.67.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C69143D48; Sat, 8 Jan 2005 13:55:37 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.43 (FreeBSD)) id 1CnH3v-000KH0-3T; Sat, 08 Jan 2005 13:55:27 +0000 Date: Sat, 8 Jan 2005 13:55:27 +0000 From: Ceri Davies To: Xin LI Message-ID: <20050108135526.GQ49329@submonkey.net> Mail-Followup-To: Ceri Davies , Xin LI , Gerald Heinig , freebsd-hackers@freebsd.org, kamalp@acm.org, Robert Ryan , tjr@FreeBSD.org References: <41DE4F3D.8050509@syskonnect.de> <20050107091004.83732.qmail@web52710.mail.yahoo.com> <20050107092110.GG49329@submonkey.net> <20050107101006.GA2553@frontfree.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="85DVAmvoahDzaF7X" Content-Disposition: inline In-Reply-To: <20050107101006.GA2553@frontfree.net> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.6i Sender: Ceri Davies cc: Gerald Heinig cc: freebsd-hackers@freebsd.org cc: kamalp@acm.org cc: Robert Ryan cc: tjr@FreeBSD.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 13:55:37 -0000 --85DVAmvoahDzaF7X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 07, 2005 at 06:10:06PM +0800, Xin LI wrote: > On Fri, Jan 07, 2005 at 09:21:10AM +0000, Ceri Davies wrote: > > I don't really think that this benchmark is bad news for either OS. My > > only real concern are the process creation/termination results on FreeB= SD. >=20 > I guess that this might worth investigating: >=20 > http://people.freebsd.org/~das/pbench/pbench.html >=20 > (Unfortuantelly, neither tjr@ nor I have touched our patchsets recently. > A most recent snapshot of the two patchsets are here: >=20 > http://research.delphij.net/freebsd/pid.diff > http://research.delphij.net/freebsd/pid-tjr.diff) >=20 > Most of the work was to catch up with Aug 2004's -CURRENT, but it might > be easier to bring them up-to-date instead of working from the very origi= nal > patches =3D-) Looks great. Any reason why neither has been committed? Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --85DVAmvoahDzaF7X Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB3+ZOocfcwTS3JF8RAmRSAJ0ZmOwRax/EvRl4dxLbIEzw89O6QACfUGWe 8TZzjp2zViQjjnF9V679B1Y= =oZHS -----END PGP SIGNATURE----- --85DVAmvoahDzaF7X-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 15:17:21 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 517FB16A4CE for ; Sat, 8 Jan 2005 15:17:21 +0000 (GMT) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8706443D48 for ; Sat, 8 Jan 2005 15:17:20 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (localhost.cc.fer.hr [127.0.0.1]) by lara.cc.fer.hr (8.13.1/8.13.1) with ESMTP id j08FGexG074140 for ; Sat, 8 Jan 2005 16:16:40 +0100 (CET) (envelope-from ivoras@fer.hr) Message-ID: <41DFF957.9040506@fer.hr> Date: Sat, 08 Jan 2005 16:16:39 +0100 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit Subject: Raw sockets problem? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 15:17:21 -0000 I've just noticed I can't create a raw socket on 5.3-RELEASE, while the same code works on 5.2. I get 'Protocol not supported' error on code like this: #include #include #include #include #include void main() { int sock = socket(AF_LINK, SOCK_RAW, 0); if (sock < 0) printf(strerror(errno)); } Code like this *seems* ok (and I'm sure it worked on 5.2)... why does it fail now? From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 17:30:25 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8178A16A4D4 for ; Sat, 8 Jan 2005 17:30:25 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0731C43D31 for ; Sat, 8 Jan 2005 17:30:25 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id j08HQUF2045858; Sat, 8 Jan 2005 12:26:30 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)j08HQU44045855; Sat, 8 Jan 2005 17:26:30 GMT (envelope-from robert@fledge.watson.org) Date: Sat, 8 Jan 2005 17:26:29 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Ivan Voras In-Reply-To: <41DFF957.9040506@fer.hr> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: hackers@freebsd.org Subject: Re: Raw sockets problem? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 17:30:25 -0000 On Sat, 8 Jan 2005, Ivan Voras wrote: > I've just noticed I can't create a raw socket on 5.3-RELEASE, while the > same code works on 5.2. I get 'Protocol not supported' error on code > like this: I've not got a 5.2 box on hand, but this appears not to work on 4.x. There isn't a domain handler for AF_LINK, so you shouldn't be able to create a socket of that type, so if it was possible in 5.2, it was likely a bug. Robert N M Watson > > #include > #include > #include > #include > #include > > void main() { > int sock = socket(AF_LINK, SOCK_RAW, 0); > if (sock < 0) > printf(strerror(errno)); > } > > Code like this *seems* ok (and I'm sure it worked on 5.2)... why does it > fail now? > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 18:21:23 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0BF8116A4CE for ; Sat, 8 Jan 2005 18:21:23 +0000 (GMT) Received: from angryfist.fasttrackmonkey.com (angryfist.fasttrackmonkey.com [216.223.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5354243D39 for ; Sat, 8 Jan 2005 18:21:20 +0000 (GMT) (envelope-from spork@fasttrackmonkey.com) Received: (qmail 54108 invoked by uid 2003); 8 Jan 2005 18:16:48 -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.096108 secs); 08 Jan 2005 18:16:48 -0000 Received: from unknown (HELO ?192.168.0.40?) (216.220.116.154) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 8 Jan 2005 18:16:48 -0000 Date: Sat, 8 Jan 2005 13:21:14 -0500 (EST) From: Charles Sprickman X-X-Sender: spork@oof.local To: Ceri Davies In-Reply-To: <20050108135526.GQ49329@submonkey.net> Message-ID: References: <41DE4F3D.8050509@syskonnect.de> <20050107091004.83732.qmail@web52710.mail.yahoo.com> <20050107101006.GA2553@frontfree.net> <20050108135526.GQ49329@submonkey.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-hackers@freebsd.org cc: tjr@FreeBSD.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 18:21:23 -0000 On Sat, 8 Jan 2005, Ceri Davies wrote: > On Fri, Jan 07, 2005 at 06:10:06PM +0800, Xin LI wrote: >> On Fri, Jan 07, 2005 at 09:21:10AM +0000, Ceri Davies wrote: >>> I don't really think that this benchmark is bad news for either OS. My >>> only real concern are the process creation/termination results on FreeBSD. >> >> I guess that this might worth investigating: >> >> http://people.freebsd.org/~das/pbench/pbench.html >> >> (Unfortuantelly, neither tjr@ nor I have touched our patchsets recently. >> A most recent snapshot of the two patchsets are here: >> >> http://research.delphij.net/freebsd/pid.diff >> http://research.delphij.net/freebsd/pid-tjr.diff) >> >> Most of the work was to catch up with Aug 2004's -CURRENT, but it might >> be easier to bring them up-to-date instead of working from the very original >> patches =-) > > Looks great. Any reason why neither has been committed? Any idea what type of impact this patch would have on say, a large qmail server that's drowning in context-switches? Charles > Ceri > -- > Only two things are infinite, the universe and human stupidity, and I'm > not sure about the former. -- Einstein (attrib.) > From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 18:48:07 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E2B3F16A4F5 for ; Sat, 8 Jan 2005 18:48:07 +0000 (GMT) Received: from mail.freebsd.org.cn (dns3.freebsd.org.cn [61.129.66.75]) by mx1.FreeBSD.org (Postfix) with SMTP id D020043D2D for ; Sat, 8 Jan 2005 18:48:04 +0000 (GMT) (envelope-from delphij@frontfree.net) Received: (qmail 85342 invoked by uid 0); 8 Jan 2005 18:40:36 -0000 Received: from unknown (HELO beastie.frontfree.net) (219.239.99.7) by mail.freebsd.org.cn with SMTP; 8 Jan 2005 18:40:36 -0000 Received: from localhost (localhost.frontfree.net [127.0.0.1]) by beastie.frontfree.net (Postfix) with ESMTP id 6FA54133107; Sun, 9 Jan 2005 02:47:58 +0800 (CST) Received: from beastie.frontfree.net ([127.0.0.1]) by localhost (beastie.frontfree.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02668-11; Sun, 9 Jan 2005 02:47:45 +0800 (CST) Received: by beastie.frontfree.net (Postfix, from userid 1001) id CF64F132E4D; Sun, 9 Jan 2005 02:47:44 +0800 (CST) Date: Sun, 9 Jan 2005 02:47:44 +0800 From: Xin LI To: Ceri Davies Message-ID: <20050108184744.GA68@frontfree.net> References: <41DE4F3D.8050509@syskonnect.de> <20050107091004.83732.qmail@web52710.mail.yahoo.com> <20050107092110.GG49329@submonkey.net> <20050107101006.GA2553@frontfree.net> <20050108135526.GQ49329@submonkey.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="envbJBWh7q8WU6mo" Content-Disposition: inline In-Reply-To: <20050108135526.GQ49329@submonkey.net> User-Agent: Mutt/1.4.2.1i X-GPG-key-ID/Fingerprint: 0xCAEEB8C0 / 43B8 B703 B8DD 0231 B333 DC28 39FB 93A0 CAEE B8C0 X-GPG-Public-Key: http://www.delphij.net/delphij.asc X-Operating-System: FreeBSD beastie.frontfree.net 5.3-delphij FreeBSD 5.3-delphij #11: Tue Oct 26 14:12:03 CST 2004 delphij@beastie.frontfree.net:/usr/obj/usr/src/sys/BEASTIE i386 X-URL: http://www.delphij.net X-By: delphij@beastie.frontfree.net X-Location: Beijing, China X-Virus-Scanned: by amavisd-new at frontfree.net cc: Gerald Heinig cc: freebsd-hackers@freebsd.org cc: kamalp@acm.org cc: Robert Ryan cc: tjr@FreeBSD.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 18:48:08 -0000 --envbJBWh7q8WU6mo Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Jan 08, 2005 at 01:55:27PM +0000, Ceri Davies wrote: > On Fri, Jan 07, 2005 at 06:10:06PM +0800, Xin LI wrote: > > On Fri, Jan 07, 2005 at 09:21:10AM +0000, Ceri Davies wrote: > > > I don't really think that this benchmark is bad news for either OS. = My > > > only real concern are the process creation/termination results on Fre= eBSD. > >=20 > > I guess that this might worth investigating: > >=20 > > http://people.freebsd.org/~das/pbench/pbench.html > >=20 > > (Unfortuantelly, neither tjr@ nor I have touched our patchsets recently. > > A most recent snapshot of the two patchsets are here: > >=20 > > http://research.delphij.net/freebsd/pid.diff > > http://research.delphij.net/freebsd/pid-tjr.diff) > >=20 > > Most of the work was to catch up with Aug 2004's -CURRENT, but it might > > be easier to bring them up-to-date instead of working from the very ori= ginal > > patches =3D-) >=20 > Looks great. Any reason why neither has been committed? I have already updated Tim's patch to match latest -CURRENT: http://people.freebsd.org/~delphij/patch-hashpid I haven't actually checked the patch at this time, though. But even if there is something strange happend it should not be so hard to check the recent commit logs to respective files. I plan to update the NetBSD allocator as soon as I have an entire chunk of time, even if it was not chosen as the final version of our PID allocato= r, as previously inclined in the discussion, I'd like to keep it as a part of my private collection ;-) What we should pay extra attention is that while both patch could lead to a performance gain in microbenchmarks, there is also chance that they slow down something else. Carefully investigate of these issues are required before we actually commit one of the two. I don't have much time to deal with this topic in the near future. So it's up to Tim or other fellow committers' decision whether to commit one of the two, with or without change, but it's important that we have done some actual test before doing that =3D-) Cheers, --=20 Xin LI http://www.delphij.net/ See complete headers for GPG key and other information. --envbJBWh7q8WU6mo Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB4CrQ/cVsHxFZiIoRApRTAKCLvS/PEfxbp87Ud0ybbPVhk+rbgACdGTGJ 2CSbZCNs+Z16LIXzSnuhJmA= =u7gA -----END PGP SIGNATURE----- --envbJBWh7q8WU6mo-- From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 20:26:14 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0752116A4CE; Sat, 8 Jan 2005 20:26:14 +0000 (GMT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 0C7ED43D3F; Sat, 8 Jan 2005 20:26:13 +0000 (GMT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 8 Jan 2005 20:26:11 +0000 (GMT) Date: Sat, 8 Jan 2005 20:26:05 +0000 From: David Malone To: Charles Sprickman Message-ID: <20050108202605.GA30807@walton.maths.tcd.ie> References: <41DE4F3D.8050509@syskonnect.de> <20050107091004.83732.qmail@web52710.mail.yahoo.com> <20050107101006.GA2553@frontfree.net> <20050108135526.GQ49329@submonkey.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i Sender: dwmalone@maths.tcd.ie cc: freebsd-hackers@freebsd.org cc: Ceri Davies cc: tjr@freebsd.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 20:26:14 -0000 On Sat, Jan 08, 2005 at 01:21:14PM -0500, Charles Sprickman wrote: > Any idea what type of impact this patch would have on say, a large qmail > server that's drowning in context-switches? It will depend on how many processes you have running at any one moment and how often processes are created/destroyed. From the look of the graphs, you won't really be able to tell unless there are significantly more than 1000 processes running at any moment. David. From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 21:42:35 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 809D316A4CE; Sat, 8 Jan 2005 21:42:35 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3126243D1F; Sat, 8 Jan 2005 21:42:35 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.13.1/8.13.1) with ESMTP id j08LcZXX049555; Sat, 8 Jan 2005 16:38:35 -0500 (EST) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)j08LcV96049552; Sat, 8 Jan 2005 21:38:35 GMT (envelope-from robert@fledge.watson.org) Date: Sat, 8 Jan 2005 21:38:31 +0000 (GMT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Charles Sprickman In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org cc: Ceri Davies cc: tjr@freebsd.org Subject: Re: Benchmark: NetBSD 2.0 beats FreeBSD 5.3 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 21:42:35 -0000 On Sat, 8 Jan 2005, Charles Sprickman wrote: > Any idea what type of impact this patch would have on say, a large qmail > server that's drowning in context-switches? Probably not, but if you have a tolerance for doing profiling, loading debugging code, etc, there may be other things we can do that will help. Are you interested in spending a bit of time profiling the system to see what's going on? In particular, is the system actually live locking, or just getting very bogged down and as a result performing badly? A few things that would be quite interesting to see up front: - dmesg - A couple of screens of output of "systat -vmstat 1", perhaps over the course of 5 minutes. - A couple of screens of output of "top -S", also over the course of 5 minutes. Of particular interest would be how much time is being spent in system vs user or idle cpu, and whether this is an SMP box or not. Is the box running with the MPSAFE network stack? Robert N M Watson From owner-freebsd-hackers@FreeBSD.ORG Sat Jan 8 22:35:39 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5A2316A4CE; Sat, 8 Jan 2005 22:35:39 +0000 (GMT) Received: from lara.cc.fer.hr (lara.cc.fer.hr [161.53.72.113]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36E1B43D2D; Sat, 8 Jan 2005 22:35:39 +0000 (GMT) (envelope-from ivoras@fer.hr) Received: from [127.0.0.1] (localhost.cc.fer.hr [127.0.0.1]) by lara.cc.fer.hr (8.13.1/8.13.1) with ESMTP id j08MYv2i076352; Sat, 8 Jan 2005 23:34:58 +0100 (CET) (envelope-from ivoras@fer.hr) Message-ID: <41E06011.4050501@fer.hr> Date: Sat, 08 Jan 2005 23:34:57 +0100 From: Ivan Voras User-Agent: Mozilla Thunderbird 1.0 (X11/20041213) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Watson , hackers@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Raw sockets problem? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Jan 2005 22:35:40 -0000 Robert Watson wrote: > On Sat, 8 Jan 2005, Ivan Voras wrote: > > >> I've just noticed I can't create a raw socket on 5.3-RELEASE, while the >> same code works on 5.2. I get 'Protocol not supported' error on code >> like this: > > > > I've not got a 5.2 box on hand, but this appears not to work on 4.x. There isn't a domain handler for AF_LINK, so you shouldn't be able to > create a socket of that type, so if it was possible in 5.2, it was likely > a bug. I use it in this code: /* get interface name by index */ int cardif_get_int(int index, char *retInterface) { struct ifreq ifr; struct ifaddrs *ifa_master, *ifa; int sock, retval; char msg[100]; sock = socket(AF_LINK, SOCK_RAW, 0); if (sock < 0) { sprintf(msg, "cardif_get_int: cannot create raw socket: %s\n", strerror(errno)); debug_printf(DEBUG_NORMAL, msg); return XESOCKOP; } getifaddrs(&ifa_master); for (ifa = ifa_master; ifa != NULL; ifa = ifa->ifa_next) { strncpy(ifr.ifr_name, ifa->ifa_name, IFNAMSIZ); retval = ioctl(sock, SIOCGIFINDEX, &ifr); if (retval < 0) { debug_printf(DEBUG_NORMAL, "Error getting interface index value for interface %s\n", ifa->ifa_name); freeifaddrs(ifa_master); close(sock); return XESOCKOP; } if (ifr.ifr_index == index) break; } if (ifa == NULL) { debug_printf(DEBUG_NORMAL, "Cannot find interface name by its index: %d\n", index); freeifaddrs(ifa_master); close(sock); return XENOTINT; } strncpy(retInterface, ifa->ifa_name, IFNAMSIZ); freeifaddrs(ifa_master); close(sock); return XENONE; } --- i.e. I need it for the ioctl() call. Is there another way?