From owner-freebsd-hackers@FreeBSD.ORG Sun Nov 9 22:58:29 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DBB4210656A5 for ; Sun, 9 Nov 2008 22:58:29 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.178]) by mx1.freebsd.org (Postfix) with ESMTP id B56FB8FC1F for ; Sun, 9 Nov 2008 22:58:29 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so1128339wag.27 for ; Sun, 09 Nov 2008 14:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:subject:x-enigmail-version:openpgp:content-type :content-transfer-encoding:from; bh=9XkopJ1DDJ8gUX55fwxJlp5jsT9lGsvdaPWFEVPh5yg=; b=oZP1uWCVjiJArWDvGalng/5uKwun25rzgJOqxlMLJEbsF3NoMFj/v3FFdbQd4+QaQP WsRCiPRZajjdAZjAUle1jXFY4W9/9LqCff3Ktn/lSW8by8mqS2tyji2PYj7kllFgcgaD h44STYrkzVVcRZCKFFEKruU5eaGbKqXaCsjqQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:subject :x-enigmail-version:openpgp:content-type:content-transfer-encoding :from; b=re5c0GC/7SDfk9Jd2Ra4GrZbDyE7DHIITxuLRHzF5VyfvUH7ByhGnrvG1u0KvuZlxP cHIKCMauvqzKD41CVhc8dS2sU/Thfinyxqa/n4vwwSWMzNTFBO2DA1Sf203KijnZDqTA JExjI0N8Mv3siw/Zs32b5OY8wZjTEppRg6xTk= Received: by 10.115.79.1 with SMTP id g1mr3673218wal.80.1226269896712; Sun, 09 Nov 2008 14:31:36 -0800 (PST) Received: from ?192.168.1.101? (ool-182d26f3.dyn.optonline.net [24.45.38.243]) by mx.google.com with ESMTPS id y11sm13497118pod.19.2008.11.09.14.31.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Nov 2008 14:31:35 -0800 (PST) Message-ID: <491764C3.5020504@gmail.com> Date: Sun, 09 Nov 2008 17:31:31 -0500 User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.5.666 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Eitan Adler Subject: uname -c: alias for uname -rms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Nov 2008 22:58:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Personally I find that uname -rms to be the most useful set of uname flags (especially when providing support in a public setting). inspiration: http://groups.google.com/group/lucky.freebsd.chat.digest/browse_frm/thread/b0c44dad9f63f2bd Any comments on the following patch: - --- uname.c 2008-11-09 17:26:52.000000000 -0500 +++ uname.old 2008-11-09 17:26:41.000000000 -0500 @@ -88,11 +88,14 @@ setup_get(); flags = 0; - - while ((ch = getopt(argc, argv, "aimnprsv")) != -1) + while ((ch = getopt(argc, argv, "acimnprsv")) != -1) switch(ch) { case 'a': flags |= (MFLAG | NFLAG | RFLAG | SFLAG | VFLAG); break; + case 'c': + flags |= (RFLAG | MFLAG | SFLAG); + break; case 'i': flags |= IFLAG; break; - -- Eitan Adler -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkXZMMACgkQtl8kq+nCzNFtJQCfcabTV0uAAQhRhgYcSaSqM2Zt H2EAoItxfCpFSGVmcziEiI0uCMz0RGo5 =PFEl -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 00:39:31 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 354A2106564A for ; Mon, 10 Nov 2008 00:39:31 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 14DD48FC13 for ; Mon, 10 Nov 2008 00:39:31 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.205] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mAA0dUtv059413; Sun, 9 Nov 2008 16:39:30 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <491782BD.9090009@freebsd.org> Date: Sun, 09 Nov 2008 16:39:25 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Eitan Adler References: <491764C3.5020504@gmail.com> In-Reply-To: <491764C3.5020504@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: uname -c: alias for uname -rms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 00:39:31 -0000 Are there any precedents for this option? If not, then I don't see the point. If you have to tell someone to send you the output of uname, you may as well tell them to use uname -rms. (I prefer uname -v personally.) Tim Eitan Adler wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Personally I find that uname -rms to be the most useful set of uname > flags (especially when providing support in a public setting). > > inspiration: > http://groups.google.com/group/lucky.freebsd.chat.digest/browse_frm/thread/b0c44dad9f63f2bd > > Any comments on the following patch: > > - --- uname.c 2008-11-09 17:26:52.000000000 -0500 > +++ uname.old 2008-11-09 17:26:41.000000000 -0500 > @@ -88,11 +88,14 @@ > setup_get(); > flags = 0; > > - - while ((ch = getopt(argc, argv, "aimnprsv")) != -1) > + while ((ch = getopt(argc, argv, "acimnprsv")) != -1) > switch(ch) { > case 'a': > flags |= (MFLAG | NFLAG | RFLAG | SFLAG | VFLAG); > break; > + case 'c': > + flags |= (RFLAG | MFLAG | SFLAG); > + break; > case 'i': > flags |= IFLAG; > break; > > - -- > Eitan Adler > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (FreeBSD) > > iEYEARECAAYFAkkXZMMACgkQtl8kq+nCzNFtJQCfcabTV0uAAQhRhgYcSaSqM2Zt > H2EAoItxfCpFSGVmcziEiI0uCMz0RGo5 > =PFEl > -----END PGP SIGNATURE----- > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > > From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 01:12:57 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 665401065673; Mon, 10 Nov 2008 01:12:57 +0000 (UTC) (envelope-from eprod@rootshell.be) Received: from honey.rootshell.be (honey.rootshell.be [66.7.149.161]) by mx1.freebsd.org (Postfix) with ESMTP id 4813C8FC2A; Mon, 10 Nov 2008 01:12:57 +0000 (UTC) (envelope-from eprod@rootshell.be) Received: by honey.rootshell.be (Postfix, from userid 7872) id 2914E8626B; Sun, 9 Nov 2008 19:50:16 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by honey.rootshell.be (Postfix) with ESMTP id 1B34386264; Sun, 9 Nov 2008 19:50:16 -0500 (EST) Date: Sun, 9 Nov 2008 19:50:15 -0500 (EST) From: Eugene Prodeguene To: Tim Kientzle In-Reply-To: <491782BD.9090009@freebsd.org> Message-ID: References: <491764C3.5020504@gmail.com> <491782BD.9090009@freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, Eitan Adler Subject: Re: uname -c: alias for uname -rms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 01:12:57 -0000 Not to mention Richard Stallman would be non to happy to see the -rms option set replaced with -c. j/k. On Sun, 9 Nov 2008, Tim Kientzle wrote: > Are there any precedents for this option? > > If not, then I don't see the point. If you have to tell someone to send you > the output of uname, you may as well tell them to use uname -rms. > (I prefer uname -v personally.) > > Tim > > > Eitan Adler wrote: >> -----BEGIN PGP SIGNED MESSAGE----- >> Hash: SHA1 >> >> Personally I find that uname -rms to be the most useful set of uname >> flags (especially when providing support in a public setting). >> >> inspiration: >> http://groups.google.com/group/lucky.freebsd.chat.digest/browse_frm/thread/b0c44dad9f63f2bd >> >> Any comments on the following patch: >> >> - --- uname.c 2008-11-09 17:26:52.000000000 -0500 >> +++ uname.old 2008-11-09 17:26:41.000000000 -0500 >> @@ -88,11 +88,14 @@ >> setup_get(); >> flags = 0; >> >> - - while ((ch = getopt(argc, argv, "aimnprsv")) != -1) >> + while ((ch = getopt(argc, argv, "acimnprsv")) != -1) >> switch(ch) { >> case 'a': >> flags |= (MFLAG | NFLAG | RFLAG | SFLAG | VFLAG); >> break; >> + case 'c': >> + flags |= (RFLAG | MFLAG | SFLAG); >> + break; >> case 'i': >> flags |= IFLAG; >> break; >> >> - -- >> Eitan Adler >> -----BEGIN PGP SIGNATURE----- >> Version: GnuPG v2.0.9 (FreeBSD) >> >> iEYEARECAAYFAkkXZMMACgkQtl8kq+nCzNFtJQCfcabTV0uAAQhRhgYcSaSqM2Zt >> H2EAoItxfCpFSGVmcziEiI0uCMz0RGo5 >> =PFEl >> -----END PGP SIGNATURE----- >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >> >> > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 02:26:19 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5E3F01065670 for ; Mon, 10 Nov 2008 02:26:19 +0000 (UTC) (envelope-from shilp.kamal@yahoo.com) Received: from n68.bullet.mail.sp1.yahoo.com (n68.bullet.mail.sp1.yahoo.com [98.136.44.44]) by mx1.freebsd.org (Postfix) with SMTP id 31F0C8FC14 for ; Mon, 10 Nov 2008 02:26:19 +0000 (UTC) (envelope-from shilp.kamal@yahoo.com) Received: from [216.252.122.218] by n68.bullet.mail.sp1.yahoo.com with NNFMP; 10 Nov 2008 02:26:19 -0000 Received: from [69.147.65.152] by t3.bullet.sp1.yahoo.com with NNFMP; 10 Nov 2008 02:26:19 -0000 Received: from [127.0.0.1] by omp400.mail.sp1.yahoo.com with NNFMP; 10 Nov 2008 02:26:19 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 66173.20501.bm@omp400.mail.sp1.yahoo.com Received: (qmail 65374 invoked by uid 60001); 10 Nov 2008 02:26:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type:Message-ID; b=jDUEz2HSL7i2U+/WroZLYEdvWiJP4YwOgonoc7QKZ6NKcTfnqSbq1LSPQOld39xiyspY+A53Ce65BKbKcUj6krmi3ptNahjjWy+Vw7cayX7xqKmkEWgZ3lXUUAkvrL+opbNTDMLbvncJahcd1bciUKiA0mFt0mqJ8fY19ZI4V0U=; X-YMail-OSG: Jkq5qdwVM1kBNVVT.LIcFc8xErJMIQfyEn9V8325PS._vcpWfn_rC8Hm8iiYEOPG7J9cHE_Pms4FM4Tl7282.RIGImSHwea.nt2Y_sH21eqcEjcFTGzZp0mnfwCbB2yFIi9FMg-- Received: from [130.86.201.76] by web45402.mail.sp1.yahoo.com via HTTP; Sun, 09 Nov 2008 18:26:18 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sun, 9 Nov 2008 18:26:18 -0800 (PST) From: Kamlesh Patel To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <864116.63596.qm@web45402.mail.sp1.yahoo.com> X-Mailman-Approved-At: Mon, 10 Nov 2008 02:31:14 +0000 Cc: mayur.shardul@gmail.com Subject: What happen when FreeBSD boot first time???????? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shilp.kamal@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 02:26:19 -0000 Hi Friends, I am working on FreeBSD Virtual Memory improvement algorithm. How VM allocate pages first time when system boot? How phys_avail[] have values in sys/vm/vm_Page.c line 228? Thanks Kamlesh From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 02:38:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 641661065686 for ; Mon, 10 Nov 2008 02:38:25 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mx1.freebsd.org (Postfix) with ESMTP id 3C0978FC21 for ; Mon, 10 Nov 2008 02:38:25 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by wa-out-1112.google.com with SMTP id m34so1160176wag.27 for ; Sun, 09 Nov 2008 18:38:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding :from; bh=eMEr4xjLV10Vqnvkb9fXYdM/0LkwTlbeBqRC+oaxepM=; b=tnwOvDsGkABqTjB/3EY0nt+2IYIqxiyW1pcXyhNfc2Jz2aFGLHk87X6IjGE01Bxmgc XrI4dWB4xFsbsUQvYJxmmWD2rlf5KQkhhhOtoCto9+Na/OBCYR353YmpMGkujClrcnD6 iowmY1J/03P6sy+PaPTROOH1j3Pav+lD2YzcE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding:from; b=sY5WSaME4t9omXD+gvawdmYSLjX63Ma2qNVQUkQ3FTC1us5n4IIrFQ+NUrapPjH7OS mQLoaiKNwCsz7JovZBhABBfPoFNIYdO5UA6rmfc9/nurLlo/bC0QEpiAMzX/Rmlx3ybL iKwKQ3Wutbk8ax+D+ehcCFC2CzokLzq2bHx1w= Received: by 10.114.146.6 with SMTP id t6mr3824154wad.220.1226284704993; Sun, 09 Nov 2008 18:38:24 -0800 (PST) Received: from ?192.168.1.101? (ool-182d26f3.dyn.optonline.net [24.45.38.243]) by mx.google.com with ESMTPS id y25sm11297435pod.9.2008.11.09.18.38.22 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 09 Nov 2008 18:38:24 -0800 (PST) Message-ID: <49179E9A.2020507@gmail.com> Date: Sun, 09 Nov 2008 21:38:18 -0500 User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Tim Kientzle References: <491764C3.5020504@gmail.com> <491782BD.9090009@freebsd.org> In-Reply-To: <491782BD.9090009@freebsd.org> X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Eitan Adler Cc: freebsd-hackers@freebsd.org Subject: Re: uname -c: alias for uname -rms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 02:38:25 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tim Kientzle wrote: > Are there any precedents for this option? Not really - its more like the recent cp -a switch: an alias for a common set of switches. > > If not, then I don't see the point. If you have to tell someone to send > you the output of uname, you may as well tell them to use uname -rms. > (I prefer uname -v personally.) Some people don't like giving out hostnames or kernel names for some strange reason that I can't figure out - -- Eitan Adler -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkXnpoACgkQtl8kq+nCzNGnUQCfXX2jEExBmX0gpqyvuegAmHei qXAAnRDWcJhwJu3oPAUYLp1Ydghg/onQ =2TSg -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 03:20:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F5F41065670 for ; Mon, 10 Nov 2008 03:20:21 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from core.tav.kiev.ua (tavex.colocall.com [62.149.10.42]) by mx1.freebsd.org (Postfix) with ESMTP id DC15B8FC0A for ; Mon, 10 Nov 2008 03:20:19 +0000 (UTC) (envelope-from gonzo@bluezbox.com) Received: from s01060021299bf294.vc.shawcable.net ([24.87.45.120] helo=jeeves.bluezbox.com) by core.tav.kiev.ua with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.52 (FreeBSD)) id 1KzMjc-000HSt-Kh; Mon, 10 Nov 2008 04:42:37 +0200 Message-ID: <49179F7C.7020200@bluezbox.com> Date: Sun, 09 Nov 2008 18:42:04 -0800 From: Oleksandr Tymoshenko User-Agent: Thunderbird 2.0.0.16 (X11/20080831) MIME-Version: 1.0 To: shilp.kamal@yahoo.com References: <864116.63596.qm@web45402.mail.sp1.yahoo.com> In-Reply-To: <864116.63596.qm@web45402.mail.sp1.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Core-Spam-Level: - X-Core-Spam-Report: Spam detection software, running on the system "core.tav.kiev.ua", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Kamlesh Patel wrote: > Hi Friends, > > I am working on FreeBSD Virtual Memory improvement algorithm. > How VM allocate pages first time when system boot? > How phys_avail[] have values in sys/vm/vm_Page.c line 228? It's set by machine-dependent part of code. grep for phys_avail[] in i386/amd64/arm/etc.. [...] Content analysis details: (-1.6 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP -0.2 BAYES_40 BODY: Bayesian spam probability is 20 to 40% [score: 0.2533] 1.5 DNS_FROM_SECURITYSAGE RBL: Envelope sender in blackholes.securitysage.com -1.2 AWL AWL: From: address is in the auto white-list Cc: freebsd-hackers@freebsd.org, mayur.shardul@gmail.com Subject: Re: What happen when FreeBSD boot first time???????? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 03:20:21 -0000 Kamlesh Patel wrote: > Hi Friends, > > I am working on FreeBSD Virtual Memory improvement algorithm. > How VM allocate pages first time when system boot? > How phys_avail[] have values in sys/vm/vm_Page.c line 228? It's set by machine-dependent part of code. grep for phys_avail[] in i386/amd64/arm/etc.. From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 03:27:14 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D3BA1065672 for ; Mon, 10 Nov 2008 03:27:14 +0000 (UTC) (envelope-from shilp.kamal@yahoo.com) Received: from n62.bullet.mail.sp1.yahoo.com (n62.bullet.mail.sp1.yahoo.com [98.136.44.35]) by mx1.freebsd.org (Postfix) with SMTP id 3AD4D8FC0A for ; Mon, 10 Nov 2008 03:27:14 +0000 (UTC) (envelope-from shilp.kamal@yahoo.com) Received: from [216.252.122.218] by n62.bullet.mail.sp1.yahoo.com with NNFMP; 10 Nov 2008 03:27:14 -0000 Received: from [69.147.65.152] by t3.bullet.sp1.yahoo.com with NNFMP; 10 Nov 2008 03:27:14 -0000 Received: from [127.0.0.1] by omp400.mail.sp1.yahoo.com with NNFMP; 10 Nov 2008 03:27:14 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 87083.20501.bm@omp400.mail.sp1.yahoo.com Received: (qmail 48833 invoked by uid 60001); 10 Nov 2008 03:27:13 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Message-ID; b=wPpZWlI0lL98wqkbTukMOyLLcA7laTrnTDU22TfjZg2tl6uqnVK6zv+6c9puep6xYbm608gk5evfngV1ddxPmj8B+MvTVEUaeyqWKuy790Q+ejefSMB39YWZBczFl5VnSHO+nK0EQ7T5fdcTCYhp9u53QOFfGpqpirnd25KbZz8=; X-YMail-OSG: qzNZl_UVM1lMmhJuPduYOlXHPJiLBzjhsB6RzqNNqUOP1CDmIQfbRjtYfM7VAHkhGm41Lbf_dRJKPQVe86CVYIHQ8qftkcq7gBE1YiSMHleT55ka3VNyturBqtwd.Ct2pRebdOmH7WWuRAQ6EsbYq6OX0dA- Received: from [130.86.201.76] by web45405.mail.sp1.yahoo.com via HTTP; Sun, 09 Nov 2008 19:27:13 PST X-Mailer: YahooMailWebService/0.7.260.1 Date: Sun, 9 Nov 2008 19:27:13 -0800 (PST) From: Kamlesh Patel To: freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <862250.48654.qm@web45405.mail.sp1.yahoo.com> X-Mailman-Approved-At: Mon, 10 Nov 2008 06:19:25 +0000 Subject: What happen when FreeBSD boot first time???????? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: shilp.kamal@yahoo.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 03:27:14 -0000 Hi Friends, I am working on FreeBSD Virtual Memory improvement algorithm. How VM allocate pages first time when system boot? How phys_avail[] have values in sys/vm/vm_Page.c line 228? Thanks Kamlesh It's set by machine-dependent part of code. grep for phys_avail[] in i386/amd64/arm/etc.. Oleksandr Tymoshenko" From: Oleksandr Tymoshenko > Subject: Re: What happen when FreeBSD boot first time???????? > To: shilp.kamal@yahoo.com > Cc: freebsd-hackers@freebsd.org, mayur.shardul@gmail.com > Date: Sunday, November 9, 2008, 6:42 PM > Kamlesh Patel wrote: > > Hi Friends, > > > > I am working on FreeBSD Virtual Memory improvement > algorithm. > > How VM allocate pages first time when system boot? > > How phys_avail[] have values in sys/vm/vm_Page.c line > 228? > It's set by machine-dependent part of code. grep > for > phys_avail[] in i386/amd64/arm/etc.. > ________________________________________ From owner-freebsd-hackers@FreeBSD.ORG Mon Nov 10 17:58:09 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C76F1065700 for ; Mon, 10 Nov 2008 17:58:09 +0000 (UTC) (envelope-from ravi.murty@intel.com) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx1.freebsd.org (Postfix) with ESMTP id 483828FC20 for ; Mon, 10 Nov 2008 17:58:08 +0000 (UTC) (envelope-from ravi.murty@intel.com) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 10 Nov 2008 09:52:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.33,577,1220252400"; d="scan'208,217";a="358331595" Received: from unknown (HELO azsmsx001.amr.corp.intel.com) ([10.2.167.98]) by orsmga002.jf.intel.com with ESMTP; 10 Nov 2008 09:57:10 -0800 Received: from orsmsx604.amr.corp.intel.com (10.22.226.87) by azsmsx001.amr.corp.intel.com (10.2.167.98) with Microsoft SMTP Server (TLS) id 8.1.311.2; Mon, 10 Nov 2008 10:57:54 -0700 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx604.amr.corp.intel.com ([10.250.113.17]) with mapi; Mon, 10 Nov 2008 09:57:46 -0800 From: "Murty, Ravi" To: "freebsd-hackers@freebsd.org" Date: Mon, 10 Nov 2008 09:57:44 -0800 Thread-Topic: Typo in ULE in FreeBSD 8.0 -- that's not really a bug Thread-Index: AclDXdVfLGr+0BvBRDiTEBd0fV2vKg== Message-ID: <6D5D25EA3941074EB7734E51B16687040AD02A77@orsmsx506.amr.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Typo in ULE in FreeBSD 8.0 -- that's not really a bug X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Nov 2008 17:58:09 -0000 Hello All, I have been playing with ULE in 8.0 and while staring at tdq_notify noticed= an interesting (and what seems like a typo) problem. The intention of the function is obvious, send an IPI to notify the remote = CPU of some new piece of work. In the case where there is no IPI currently = pending on the target CPU and this thread should be preempting what's runni= ng there, the code checks in td (passed in as a parameter) is the IDLE thre= ad (TDF_IDLETD). If so, it checks the state and sees if idle is RUNNING and= if so figures it will notice this new work and we don't really need to sen= d an expensive IPI. However, why would td (parameter) ever be the IDLE thre= ad? It almost seems like this check will always fail and we end up sending = a hard IPI to the target CPU which works, but may not be needed. May be we = wanted to use PCPU->curthread instead of td? Thanks Ravi From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 11 13:18:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AF8F106567C for ; Tue, 11 Nov 2008 13:18:26 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id B4A858FC1E for ; Tue, 11 Nov 2008 13:18:25 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA26701; Tue, 11 Nov 2008 15:00:01 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491981D0.7060100@icyb.net.ua> Date: Tue, 11 Nov 2008 15:00:00 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: FreeBSD Stable , freebsd-usb@freebsd.org, freebsd-hackers@freebsd.org References: <4912E462.4090608@icyb.net.ua> In-Reply-To: <4912E462.4090608@icyb.net.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: usb keyboard dying at loader prompt X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 13:18:26 -0000 on 06/11/2008 14:34 Andriy Gapon said the following: > I have a quite strange problem. > This is with 7-BETA amd64. > All of USB is out of kernel and is loaded via modules. > BIOS has "Legacy USB" enabled. > I have only a USB keyboard, no PS/2 port. > > The keyboard works file in BIOS and for selecting boot device in boot0 > menu. It also works in loader menu. If in the menu I select to go to > loader prompt then it works for about 5 seconds and then "dies" - no > reaction to key presses, no led change, nothing. > I haven't actually verified if the keyboard would still work if I stayed > in loader menu for longer than ~10 seconds. > > This doesn't happen if USB is built into kernel. > > Weird... I did more experimentation and the behavior seems to be quite random - sometimes keyboard works ok for long time in all places, sometimes it stops working after some period of time, sometimes it doesn't work from the start and couple of times I experienced boot process going astray. Not sure what stage that was, there were endless messages spewed on the screen very fast, I couldn't read them. This leads me to the following "crazy" question - is it possible that our boot chain corrupts some vital BIOS memory? I think loader would be a primary suspect. I am not sure of anything, but a wild guess is that RAM where BIOS stores some USB-related stuff gets corrupted. Maybe it's overwritten when kernel and modules are loaded... -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 11 18:20:58 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 29C3410656A9 for ; Tue, 11 Nov 2008 18:20:58 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from werkwelt.de (post.werkwelt.de [91.194.85.74]) by mx1.freebsd.org (Postfix) with ESMTP id CDD9D8FC1B for ; Tue, 11 Nov 2008 18:20:57 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from [87.79.34.228] (account kuku@kukulies.org HELO [192.168.1.117]) by werkwelt.de (CommuniGate Pro SMTP 5.0.13) with ESMTPSA id 6458055 for freebsd-hackers@freebsd.org; Tue, 11 Nov 2008 18:20:53 +0100 Message-ID: <4919BEE6.7030702@kukulies.org> Date: Tue, 11 Nov 2008 18:20:38 +0100 From: Christoph Kukulies User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Building an access point with FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 18:20:58 -0000 I have an USB Belkin 802.11g WLAN card and would like to build an access point from it using FreeBSD 7.1. The device is rum0 and it seems to be recognized by the kernel. What is the control program for this interface? ancontrol doesn't seem to work. wicontrol isn't there at all on my system. -- Christoph From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 11 18:58:20 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A18A91065673 for ; Tue, 11 Nov 2008 18:58:20 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from ch-smtp02.sth.basefarm.net (ch-smtp02.sth.basefarm.net [80.76.149.213]) by mx1.freebsd.org (Postfix) with ESMTP id 732978FC29 for ; Tue, 11 Nov 2008 18:58:19 +0000 (UTC) (envelope-from erikt@midgard.homeip.net) Received: from c83-255-48-78.bredband.comhem.se ([83.255.48.78]:54488 helo=falcon.midgard.homeip.net) by ch-smtp02.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KzyCd-0001jq-8Y for freebsd-hackers@freebsd.org; Tue, 11 Nov 2008 19:43:03 +0100 Received: (qmail 77008 invoked from network); 11 Nov 2008 19:43:00 +0100 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with ESMTP; 11 Nov 2008 19:43:00 +0100 Received: (qmail 22708 invoked by uid 1001); 11 Nov 2008 19:43:00 +0100 Date: Tue, 11 Nov 2008 19:43:00 +0100 From: Erik Trulsson To: Christoph Kukulies Message-ID: <20081111184300.GA22458@owl.midgard.homeip.net> References: <4919BEE6.7030702@kukulies.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4919BEE6.7030702@kukulies.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-IP: 83.255.48.78 X-Scan-Result: No virus found in message 1KzyCd-0001jq-8Y. X-Scan-Signature: ch-smtp02.sth.basefarm.net 1KzyCd-0001jq-8Y 31157c40d62f2c3aba1ff612b60a02be Cc: freebsd-hackers@freebsd.org Subject: Re: Building an access point with FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 18:58:20 -0000 On Tue, Nov 11, 2008 at 06:20:38PM +0100, Christoph Kukulies wrote: > I have an USB Belkin 802.11g WLAN card and would like to build an access > point from it > using FreeBSD 7.1. The device is rum0 and it seems to be recognized by > the kernel. > > What is the control program for this interface? ancontrol doesn't seem > to work. wicontrol isn't there > at all on my system. ifconfig(8) is used for configuring all network interfaces, wireless as well as wired. See also the wlan(4) and rum(4) manpages. -- Erik Trulsson ertr1013@student.uu.se From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 11 21:55:02 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 036DE106568C for ; Tue, 11 Nov 2008 21:55:01 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from smtp-vbr9.xs4all.nl (smtp-vbr9.xs4all.nl [194.109.24.29]) by mx1.freebsd.org (Postfix) with ESMTP id 8C2C88FC13 for ; Tue, 11 Nov 2008 21:55:01 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from [192.168.178.47] (martenvijn.xs4all.nl [80.101.161.153]) by smtp-vbr9.xs4all.nl (8.13.8/8.13.8) with ESMTP id mABLhBuu099122; Tue, 11 Nov 2008 22:43:11 +0100 (CET) (envelope-from info@martenvijn.nl) From: Marten Vijn To: Christoph Kukulies In-Reply-To: <4919BEE6.7030702@kukulies.org> References: <4919BEE6.7030702@kukulies.org> Content-Type: text/plain Date: Tue, 11 Nov 2008 22:43:13 +0100 Message-Id: <1226439793.6382.2.camel@mvn-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-hackers@freebsd.org Subject: Re: Building an access point with FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 21:55:02 -0000 On Tue, 2008-11-11 at 18:20 +0100, Christoph Kukulies wrote: > I have an USB Belkin 802.11g WLAN card and would like to build an access > point from it > using FreeBSD 7.1. The device is rum0 and it seems to be recognized by > the kernel. > What is the control program for this interface? ifconfig rum0 10.0.0.1/24 mediaopt hostap ssid bert channel 1 if the device supports it. man ifconfig for many more details cheers Marten > ancontrol doesn't seem > to work. wicontrol isn't there > at all on my system. > > -- > Christoph > _______________________________________________ > 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" -- Marten Vijn http://martenvijn.nl http://opencommunitycamp.org http://wifisoft.org From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 11 21:00:51 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9B7151065680 for ; Tue, 11 Nov 2008 21:00:51 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.226]) by mx1.freebsd.org (Postfix) with ESMTP id 6DC388FC0A for ; Tue, 11 Nov 2008 21:00:51 +0000 (UTC) (envelope-from jroberson@jroberson.net) Received: by rv-out-0506.google.com with SMTP id g9so1108470rvb.3 for ; Tue, 11 Nov 2008 13:00:51 -0800 (PST) Received: by 10.141.49.6 with SMTP id b6mr4448063rvk.18.1226435902245; Tue, 11 Nov 2008 12:38:22 -0800 (PST) Received: from ?10.0.1.199? (cpe-66-91-191-118.hawaii.res.rr.com [66.91.191.118]) by mx.google.com with ESMTPS id k2sm26714975rvb.1.2008.11.11.12.38.19 (version=SSLv3 cipher=RC4-MD5); Tue, 11 Nov 2008 12:38:21 -0800 (PST) Date: Tue, 11 Nov 2008 10:37:24 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: "Murty, Ravi" In-Reply-To: <6D5D25EA3941074EB7734E51B16687040AD02A77@orsmsx506.amr.corp.intel.com> Message-ID: <20081111103600.G964@desktop> References: <6D5D25EA3941074EB7734E51B16687040AD02A77@orsmsx506.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Mailman-Approved-At: Tue, 11 Nov 2008 22:12:17 +0000 Cc: "freebsd-hackers@freebsd.org" , jeff@FreeBSD.org, robert Subject: Re: Typo in ULE in FreeBSD 8.0 -- that's not really a bug X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Nov 2008 21:00:51 -0000 On Mon, 10 Nov 2008, Murty, Ravi wrote: > Hello All, > > I have been playing with ULE in 8.0 and while staring at tdq_notify noticed an interesting (and what seems like a typo) problem. > The intention of the function is obvious, send an IPI to notify the remote CPU of some new piece of work. In the case where there is no IPI currently pending on the target CPU and this thread should be preempting what's running there, the code checks in td (passed in as a parameter) is the IDLE thread (TDF_IDLETD). If so, it checks the state and sees if idle is RUNNING and if so figures it will notice this new work and we don't really need to send an expensive IPI. However, why would td (parameter) ever be the IDLE thread? It almost seems like this check will always fail and we end up sending a hard IPI to the target CPU which works, but may not be needed. May be we wanted to use PCPU->curthread instead of td? Wow ravi, thanks. That's what it was at one point. It must've been refactored into brokenness. I'll fix and test soon. This has probably reduced the effectiveness of the mwait patch. Thanks, Jeff > > Thanks > Ravi > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 11:31:05 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BD8F61065672 for ; Wed, 12 Nov 2008 11:31:05 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from werkwelt.de (post.werkwelt.de [91.194.85.74]) by mx1.freebsd.org (Postfix) with ESMTP id 5EA9E8FC22 for ; Wed, 12 Nov 2008 11:31:05 +0000 (UTC) (envelope-from kuku@kukulies.org) Received: from [87.79.34.228] (account kuku@kukulies.org HELO [192.168.1.117]) by werkwelt.de (CommuniGate Pro SMTP 5.0.13) with ESMTPSA id 6458346; Wed, 12 Nov 2008 12:31:02 +0100 Message-ID: <491ABE73.8000708@kukulies.org> Date: Wed, 12 Nov 2008 12:30:59 +0100 From: Christoph Kukulies User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: Marten Vijn References: <4919BEE6.7030702@kukulies.org> <1226439793.6382.2.camel@mvn-desktop> In-Reply-To: <1226439793.6382.2.camel@mvn-desktop> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org Subject: Re: Building an access point with FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 11:31:05 -0000 Marten Vijn schrieb: > On Tue, 2008-11-11 at 18:20 +0100, Christoph Kukulies wrote: > >> I have an USB Belkin 802.11g WLAN card and would like to build an access >> point from it >> using FreeBSD 7.1. The device is rum0 and it seems to be recognized by >> the kernel. >> > > >> What is the control program for this interface? >> > > ifconfig rum0 10.0.0.1/24 mediaopt hostap ssid bert channel 1 > > if the device supports it. > Fantastic. So easy! And it works. -- Christoph > man ifconfig for many more details > > cheers > Marten > From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 11:36:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 076D91065672; Wed, 12 Nov 2008 11:36:50 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 359878FC12; Wed, 12 Nov 2008 11:36:47 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA15684; Wed, 12 Nov 2008 13:36:46 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491ABFCD.3060309@icyb.net.ua> Date: Wed, 12 Nov 2008 13:36:45 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: FreeBSD Stable , freebsd-hackers@freebsd.org, freebsd-usb@freebsd.org References: <4911BA93.9030006@icyb.net.ua> In-Reply-To: <4911BA93.9030006@icyb.net.ua> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 11:36:50 -0000 on 05/11/2008 17:24 Andriy Gapon said the following: > System is FreeBSD 7.1-BETA2 amd64. > > Looking through my dmesg I see that relative order of ukbd attachment > and root mounting is not deterministic. Sometime keyboard is attached > first, sometimes root filesystem is mounted first. Quite more often root > is mounted first, though. > Example (with GENERIC kernel): > Nov 3 15:40:54 kernel: Trying to mount root from ufs:/dev/mirror/bootgm > Nov 3 15:40:54 kernel: GEOM_LABEL: Label ufs/bootfs removed. > Nov 3 15:40:54 kernel: GEOM_LABEL: Label for provider mirror/bootgm is > ufs/bootfs. > Nov 3 15:40:54 kernel: GEOM_LABEL: Label ufs/bootfs removed. > Nov 3 15:40:54 kernel: ukbd0: 1.10/1.10, addr 3> on uhub2 > Nov 3 15:40:54 kernel: kbd2 at ukbd0 > Nov 3 15:40:54 kernel: uhid0: 1.10/1.10, addr 3> on uhub2 > > Another (with custom kernel, zfs root): > Nov 4 17:54:03 odyssey kernel: Trying to mount root from zfs:tank/root > Nov 4 17:54:03 odyssey kernel: ukbd0: rev 1.10/1.10, addr 3> on uhub2 > Nov 4 17:54:03 odyssey kernel: kbd2 at ukbd0 > Nov 4 17:54:03 odyssey kernel: kbd2: ukbd0, generic (0), config:0x0, > flags:0x3d0000 > Nov 4 17:54:03 odyssey kernel: uhid0: rev 1.10/1.10, addr 3> on uhub2 > > I have a legacy-free system (no PS/2 ports, only USB) and I wanted to > try a kernel without atkbd and psm (with ums, ukbd, kbdmux), but was > bitten hard when I made a mistake and kernel could not find/mount root > filesystem. > > So I stuck at mountroot prompt without a keyboard to enter anything. > This was repeatable about 10 times after which I resorted to live cd. > > Since then I put back atkbdc into my kernel. I guess BIOS or USB > hardware emulate AT or PS/2 keyboard, so the USB keyboard works before > the driver attaches. I guess I need such emulation e.g. for loader or > boot0 configuration. But I guess I don't have to have atkbd driver in > kernel. This turned out not to be a complete solution as it seems that there are some quirks about legacy USB here, sometimes keyboard stops working even at loader prompt (this is described in a different thread). ukbd attachment still puzzles me a lot. I look at some older dmesg, e.g. this 7.0-RELEASE one: http://www.mavetju.org/mail/view_message.php?list=freebsd-usb&id=2709973 and see that ukbd attaches along with ums before mountroot. I look at newer dmesg and I see that ums attaches at about the same time as before but ukbd consistently attaches after mountroot. I wonder what might cause such behavior and how to fix it. I definitely would like to see ukbd attach before mountroot, I can debug this issue, but need some hints on where to start. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 11:53:52 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 95BD31065678 for ; Wed, 12 Nov 2008 11:53:52 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 764AD8FC17 for ; Wed, 12 Nov 2008 11:53:52 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mACBrp611316; Wed, 12 Nov 2008 03:53:51 -0800 (PST) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mACBrpl17181; Wed, 12 Nov 2008 03:53:51 -0800 (PST) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Wed, 12 Nov 2008 03:53:51 -0800 (PST) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Andriy Gapon In-Reply-To: <491ABFCD.3060309@icyb.net.ua> Message-ID: References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, FreeBSD Stable , freebsd-usb@freebsd.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 11:53:52 -0000 On Wed, 12 Nov 2008, Andriy Gapon wrote: > on 05/11/2008 17:24 Andriy Gapon said the following: [...] >> I have a legacy-free system (no PS/2 ports, only USB) and I wanted to >> try a kernel without atkbd and psm (with ums, ukbd, kbdmux), but was >> bitten hard when I made a mistake and kernel could not find/mount root >> filesystem. >> >> So I stuck at mountroot prompt without a keyboard to enter anything. >> This was repeatable about 10 times after which I resorted to live cd. >> >> Since then I put back atkbdc into my kernel. I guess BIOS or USB >> hardware emulate AT or PS/2 keyboard, so the USB keyboard works before >> the driver attaches. I guess I need such emulation e.g. for loader or >> boot0 configuration. But I guess I don't have to have atkbd driver in >> kernel. > > This turned out not to be a complete solution as it seems that there are > some quirks about legacy USB here, sometimes keyboard stops working even > at loader prompt (this is described in a different thread). > > ukbd attachment still puzzles me a lot. > I look at some older dmesg, e.g. this 7.0-RELEASE one: > http://www.mavetju.org/mail/view_message.php?list=freebsd-usb&id=2709973 > and see that ukbd attaches along with ums before mountroot. > > I look at newer dmesg and I see that ums attaches at about the same time > as before but ukbd consistently attaches after mountroot. > I wonder what might cause such behavior and how to fix it. > I definitely would like to see ukbd attach before mountroot, I can debug > this issue, but need some hints on where to start. I haven't been following this thread, and I'm pretty sleepy right now, so sorry if this is irrelevant, but I had a somewhat similar problem that was fixed by adding hint.atkbd.0.flags="0x1" to /boot/device.hints . -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 12:00:21 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 66551106579B; Wed, 12 Nov 2008 12:00:21 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 070258FC1E; Wed, 12 Nov 2008 12:00:19 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id NAA16104; Wed, 12 Nov 2008 13:58:59 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491AC502.9000507@icyb.net.ua> Date: Wed, 12 Nov 2008 13:58:58 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: Nate Eldredge References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, FreeBSD Stable , freebsd-usb@freebsd.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 12:00:21 -0000 on 12/11/2008 13:53 Nate Eldredge said the following: > On Wed, 12 Nov 2008, Andriy Gapon wrote: > >> on 05/11/2008 17:24 Andriy Gapon said the following: > [...] >>> I have a legacy-free system (no PS/2 ports, only USB) and I wanted to >>> try a kernel without atkbd and psm (with ums, ukbd, kbdmux), but was >>> bitten hard when I made a mistake and kernel could not find/mount root >>> filesystem. >>> >>> So I stuck at mountroot prompt without a keyboard to enter anything. >>> This was repeatable about 10 times after which I resorted to live cd. >>> >>> Since then I put back atkbdc into my kernel. I guess BIOS or USB >>> hardware emulate AT or PS/2 keyboard, so the USB keyboard works before >>> the driver attaches. I guess I need such emulation e.g. for loader or >>> boot0 configuration. But I guess I don't have to have atkbd driver in >>> kernel. >> >> This turned out not to be a complete solution as it seems that there are >> some quirks about legacy USB here, sometimes keyboard stops working even >> at loader prompt (this is described in a different thread). >> >> ukbd attachment still puzzles me a lot. >> I look at some older dmesg, e.g. this 7.0-RELEASE one: >> http://www.mavetju.org/mail/view_message.php?list=freebsd-usb&id=2709973 >> and see that ukbd attaches along with ums before mountroot. >> >> I look at newer dmesg and I see that ums attaches at about the same time >> as before but ukbd consistently attaches after mountroot. >> I wonder what might cause such behavior and how to fix it. >> I definitely would like to see ukbd attach before mountroot, I can debug >> this issue, but need some hints on where to start. > > I haven't been following this thread, and I'm pretty sleepy right now, > so sorry if this is irrelevant, but I had a somewhat similar problem > that was fixed by adding > > hint.atkbd.0.flags="0x1" > > to /boot/device.hints . > I can try this, but I think this wouldn't help for two reasons: 1. I already tried kernel without atkb at all 2. if ukbd driver is not attached then I don't see any way USB keyboard would work in non-legacy way Anyway I will try this, thank you. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 12:14:12 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 46329106568D for ; Wed, 12 Nov 2008 12:14:12 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA08.emeryville.ca.mail.comcast.net (qmta08.emeryville.ca.mail.comcast.net [76.96.30.80]) by mx1.freebsd.org (Postfix) with ESMTP id CE9018FC1A for ; Wed, 12 Nov 2008 12:14:11 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.emeryville.ca.mail.comcast.net ([76.96.30.11]) by QMTA08.emeryville.ca.mail.comcast.net with comcast id eC0s1a0030EPchoA8CEB4Z; Wed, 12 Nov 2008 12:14:11 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA01.emeryville.ca.mail.comcast.net with comcast id eCEA1a0042P6wsM8MCEAlr; Wed, 12 Nov 2008 12:14:11 +0000 X-Authority-Analysis: v=1.0 c=1 a=aarVl-9CAAAA:8 a=QycZ5dHgAAAA:8 a=HTTBBloA31bZZr2vb6AA:9 a=JxNATzhhykdpcfkF6iVXLfSzFeMA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 6B14E5C1A; Wed, 12 Nov 2008 04:14:10 -0800 (PST) Date: Wed, 12 Nov 2008 04:14:10 -0800 From: Jeremy Chadwick To: Andriy Gapon Message-ID: <20081112121410.GA24629@icarus.home.lan> References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491AC502.9000507@icyb.net.ua> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Nate Eldredge , freebsd-hackers@freebsd.org, FreeBSD Stable , freebsd-usb@freebsd.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 12:14:12 -0000 On Wed, Nov 12, 2008 at 01:58:58PM +0200, Andriy Gapon wrote: > on 12/11/2008 13:53 Nate Eldredge said the following: > > On Wed, 12 Nov 2008, Andriy Gapon wrote: > > > >> on 05/11/2008 17:24 Andriy Gapon said the following: > > [...] > >>> I have a legacy-free system (no PS/2 ports, only USB) and I wanted to > >>> try a kernel without atkbd and psm (with ums, ukbd, kbdmux), but was > >>> bitten hard when I made a mistake and kernel could not find/mount root > >>> filesystem. > >>> > >>> So I stuck at mountroot prompt without a keyboard to enter anything. > >>> This was repeatable about 10 times after which I resorted to live cd. > >>> > >>> Since then I put back atkbdc into my kernel. I guess BIOS or USB > >>> hardware emulate AT or PS/2 keyboard, so the USB keyboard works before > >>> the driver attaches. I guess I need such emulation e.g. for loader or > >>> boot0 configuration. But I guess I don't have to have atkbd driver in > >>> kernel. > >> > >> This turned out not to be a complete solution as it seems that there are > >> some quirks about legacy USB here, sometimes keyboard stops working even > >> at loader prompt (this is described in a different thread). > >> > >> ukbd attachment still puzzles me a lot. > >> I look at some older dmesg, e.g. this 7.0-RELEASE one: > >> http://www.mavetju.org/mail/view_message.php?list=freebsd-usb&id=2709973 > >> and see that ukbd attaches along with ums before mountroot. > >> > >> I look at newer dmesg and I see that ums attaches at about the same time > >> as before but ukbd consistently attaches after mountroot. > >> I wonder what might cause such behavior and how to fix it. > >> I definitely would like to see ukbd attach before mountroot, I can debug > >> this issue, but need some hints on where to start. > > > > I haven't been following this thread, and I'm pretty sleepy right now, > > so sorry if this is irrelevant, but I had a somewhat similar problem > > that was fixed by adding > > > > hint.atkbd.0.flags="0x1" > > > > to /boot/device.hints . To those reading, the above setting enables the following option: bit 0 (FAIL_IF_NO_KBD) By default the atkbd driver will install even if a keyboard is not actually connected to the system. This option prevents the driver from being installed in this situation. > I can try this, but I think this wouldn't help for two reasons: > 1. I already tried kernel without atkb at all > 2. if ukbd driver is not attached then I don't see any way USB keyboard > would work in non-legacy way Regarding #2: at which stage? boot0/boot2/loader require an AT or PS/2 keyboard to work. None of these stages use ukbd(4) or anything -- there is no kernel loaded at this point!! Meaning: if you have a USB keyboard, your BIOS will need to have a "USB Legacy" option to cause it to act as a PS/2 keyboard, for typing in boot0/boot2/loader to work. Device hints are for kernel drivers, once the kernel is loaded. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 12:20:46 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 083F91065679; Wed, 12 Nov 2008 12:20:46 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 6F5388FC08; Wed, 12 Nov 2008 12:20:44 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA16630; Wed, 12 Nov 2008 14:20:42 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491ACA19.2040008@icyb.net.ua> Date: Wed, 12 Nov 2008 14:20:41 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: Jeremy Chadwick References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> In-Reply-To: <20081112121410.GA24629@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Nate Eldredge , freebsd-hackers@FreeBSD.org, FreeBSD Stable , freebsd-usb@FreeBSD.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 12:20:46 -0000 on 12/11/2008 14:14 Jeremy Chadwick said the following: > On Wed, Nov 12, 2008 at 01:58:58PM +0200, Andriy Gapon wrote: [snip] >> 2. if ukbd driver is not attached then I don't see any way USB keyboard >> would work in non-legacy way > > Regarding #2: at which stage? boot0/boot2/loader require an AT or PS/2 > keyboard to work. None of these stages use ukbd(4) or anything -- there > is no kernel loaded at this point!! Meaning: if you have a USB keyboard, > your BIOS will need to have a "USB Legacy" option to cause it to act as > a PS/2 keyboard, for typing in boot0/boot2/loader to work. > > Device hints are for kernel drivers, once the kernel is loaded. Jeremy, I understand all of this. In subject line and earlier messages I say that I am interested in mountroot prompt - the prompt where kernel can ask about what device to use for root filesystem. Essentially I would like kernel to recognize USB keyboard (and disable all the legacy stuff if needed) before it prompts for the root device. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 12:33:17 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0A550106567A for ; Wed, 12 Nov 2008 12:33:17 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id E68E18FC12 for ; Wed, 12 Nov 2008 12:33:16 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA05.emeryville.ca.mail.comcast.net ([76.96.30.43]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id eCRN1a0040vp7WLA2CZGdA; Wed, 12 Nov 2008 12:33:16 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA05.emeryville.ca.mail.comcast.net with comcast id eCZF1a00B2P6wsM8RCZGvm; Wed, 12 Nov 2008 12:33:16 +0000 X-Authority-Analysis: v=1.0 c=1 a=6I5d2MoRAAAA:8 a=QycZ5dHgAAAA:8 a=XZrmyMB4JYGd_-K7JrwA:9 a=tBf9LV8KMpQLkPyohSoA:7 a=cY6_MBOsBNGUNeLVBIN5XP9PPJ8A:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id B20FB5C19; Wed, 12 Nov 2008 04:33:15 -0800 (PST) Date: Wed, 12 Nov 2008 04:33:15 -0800 From: Jeremy Chadwick To: Andriy Gapon Message-ID: <20081112123315.GA24907@icarus.home.lan> References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491ACA19.2040008@icyb.net.ua> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Nate Eldredge , freebsd-hackers@FreeBSD.org, FreeBSD Stable , freebsd-usb@FreeBSD.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 12:33:17 -0000 On Wed, Nov 12, 2008 at 02:20:41PM +0200, Andriy Gapon wrote: > on 12/11/2008 14:14 Jeremy Chadwick said the following: > > On Wed, Nov 12, 2008 at 01:58:58PM +0200, Andriy Gapon wrote: > [snip] > >> 2. if ukbd driver is not attached then I don't see any way USB keyboard > >> would work in non-legacy way > > > > Regarding #2: at which stage? boot0/boot2/loader require an AT or PS/2 > > keyboard to work. None of these stages use ukbd(4) or anything -- there > > is no kernel loaded at this point!! Meaning: if you have a USB keyboard, > > your BIOS will need to have a "USB Legacy" option to cause it to act as > > a PS/2 keyboard, for typing in boot0/boot2/loader to work. > > > > Device hints are for kernel drivers, once the kernel is loaded. > > Jeremy, > > I understand all of this. > In subject line and earlier messages I say that I am interested in > mountroot prompt - the prompt where kernel can ask about what device to > use for root filesystem. > Essentially I would like kernel to recognize USB keyboard (and disable > all the legacy stuff if needed) before it prompts for the root device. I fully understand that fact. However, I don't see the logic in that statement. You should be able to remove and add a keyboard at any time and be able to type immediately. Meaning: I don't see why when the keyboard recognition is performed (e.g. before printing mountroot or after) matters. It should not. I think this is a red herring. I've seen the problem where I have a fully functional USB keyboard in boot0/boot2/loader and in multi-user, but when booting into single-user or when getting a mountroot prompt, the keyboard does not function. When the mountroot prompt is printed (before or after ukbd attached) makes no difference for me in this scenario -- I tested it many times. It's very possible that "something" (kbdcontrol?) is getting run only during late stages of multi-user, which makes the keyboard work. But prior to that "something" being run (but AFTER boot2/loader), the keyboard is not truly usable. I hope everyone here is also aware of that fact that not all keyboards are created equal. Case in point (and this reason is exactly why I am purchasing a native PS/2 keyboard, as USB4BSD doesn't work with all USB keyboards right now): http://lists.freebsd.org/pipermail/freebsd-current/2008-November/000219.html The bottom line: FreeBSD cannot be reliably used with a USB keyboard in all circumstances. And that is a very sad reality, because 90% of the keyboards you find on the consumer and enterprise market are USB -- native PS/2 keyboards are now a scarcity. Do not even for a minute tell me "buy a USB-to-PS2 adapter", because the "green ones" that come with USB mice do not work with USB keyboards. I have even bought a "purple" USB-to-PS2 keyboard adapter from Amazon, specifically for this purpose, and it *does not work*. I found out weeks later the adapters only work on CERTAIN models of USB keyboards, depending upon how they're engineered. What really needs to happen here should be obvious: we need some form of inexpensive keyboard-only USB support in boot2/loader. I would *love* to know how Linux and Windows solve this problem. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 12:40:26 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E2A1A1065678; Wed, 12 Nov 2008 12:40:26 +0000 (UTC) (envelope-from alex@metrocom.ru) Received: from sioux.metrocom.ru (sioux.metrocom.ru [212.119.162.125]) by mx1.freebsd.org (Postfix) with ESMTP id 369698FC14; Wed, 12 Nov 2008 12:40:25 +0000 (UTC) (envelope-from alex@metrocom.ru) Received: from comanche (comanche.metrocom.ru [195.5.128.155]) (authenticated bits=0) by sioux.metrocom.ru (8.14.3/8.14.3) with ESMTP id mACC5tZ6011258; Wed, 12 Nov 2008 15:05:55 +0300 (MSK) Date: Wed, 12 Nov 2008 15:05:55 +0300 (MSK) From: Varshavchick Alexander To: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Message-ID: <20081112145105.T65116@comanche.metrocom.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Subject: FreeBSD 5.4 - filesystem full X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 12:40:27 -0000 I have an old enough server with FreeBSD 5.4 which from time to time complains about filesystem full. But the problem is that the partition in question has about 15G free space and more than 10000000 free inodes. Then all by itself the error dissapears, only to be repeated several hours later. What can it be and where to look? The server runs mainly apache and sendmail, nothing special. Thanks and regards ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)718-3322, 718-3115(fax) From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 12:49:20 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BFFE106567E; Wed, 12 Nov 2008 12:49:20 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 527958FC13; Wed, 12 Nov 2008 12:49:17 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id OAA17199; Wed, 12 Nov 2008 14:49:16 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491AD0CB.8050309@icyb.net.ua> Date: Wed, 12 Nov 2008 14:49:15 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: Jeremy Chadwick References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> In-Reply-To: <20081112123315.GA24907@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Nate Eldredge , freebsd-hackers@FreeBSD.org, FreeBSD Stable , freebsd-usb@FreeBSD.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 12:49:20 -0000 on 12/11/2008 14:33 Jeremy Chadwick said the following: > On Wed, Nov 12, 2008 at 02:20:41PM +0200, Andriy Gapon wrote: >> on 12/11/2008 14:14 Jeremy Chadwick said the following: >>> On Wed, Nov 12, 2008 at 01:58:58PM +0200, Andriy Gapon wrote: >> [snip] >>>> 2. if ukbd driver is not attached then I don't see any way USB keyboard >>>> would work in non-legacy way >>> Regarding #2: at which stage? boot0/boot2/loader require an AT or PS/2 >>> keyboard to work. None of these stages use ukbd(4) or anything -- there >>> is no kernel loaded at this point!! Meaning: if you have a USB keyboard, >>> your BIOS will need to have a "USB Legacy" option to cause it to act as >>> a PS/2 keyboard, for typing in boot0/boot2/loader to work. >>> >>> Device hints are for kernel drivers, once the kernel is loaded. >> Jeremy, >> >> I understand all of this. >> In subject line and earlier messages I say that I am interested in >> mountroot prompt - the prompt where kernel can ask about what device to >> use for root filesystem. >> Essentially I would like kernel to recognize USB keyboard (and disable >> all the legacy stuff if needed) before it prompts for the root device. > > I fully understand that fact. However, I don't see the logic in that > statement. You should be able to remove and add a keyboard at any time > and be able to type immediately. Meaning: I don't see why when the > keyboard recognition is performed (e.g. before printing mountroot or > after) matters. It should not. I think this is a red herring. I think that this does matter because keyboard recognition is performed after the 'mounting from' log line *only if* root mount is done automatically. If there is an actual interactive prompt then recognition is not performed, at least I do not see any relevant lines on the screen and I am stuck at the prompt. > I've seen the problem where I have a fully functional USB keyboard in > boot0/boot2/loader For me it even randomly dies at these stages. I reported this in a different thread. But this should not be related to kernel behavior. >and in multi-user, For me this always works. > but when booting into single-user For me this always works. > or when getting a mountroot prompt, the keyboard does not function. > When the mountroot prompt is printed (before or after ukbd attached) > makes no difference for me in this scenario -- I tested it many times. For me ukbd lines are never printed if I get actual interactive mountroot prompt. > It's very possible that "something" (kbdcontrol?) is getting run only > during late stages of multi-user, which makes the keyboard work. But > prior to that "something" being run (but AFTER boot2/loader), the > keyboard is not truly usable. For me this is not true. My keyboard always works after ukbd lines appear on screen. > I hope everyone here is also aware of that fact that not all keyboards > are created equal. Case in point (and this reason is exactly why I > am purchasing a native PS/2 keyboard, as USB4BSD doesn't work with > all USB keyboards right now): For me this is not an option, no PS/2 ports. > http://lists.freebsd.org/pipermail/freebsd-current/2008-November/000219.html > > The bottom line: > > FreeBSD cannot be reliably used with a USB keyboard in all > circumstances.And that is a very sad reality, because 90% of the > keyboards you find on the consumer and enterprise market are USB -- > native PS/2 keyboards are now a scarcity. I agree that this is a sad reality but only for boot stages where we depend on external entity named BIOS to help us. This doesn't have to be a sad reality once kernel takes control. USB support in boot chain - I don't know - this would be great of course but that's a lot of code. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 13:11:50 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDC4F1065748; Wed, 12 Nov 2008 13:11:48 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id D9C9A8FC16; Wed, 12 Nov 2008 13:11:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mACDBNK7084446; Wed, 12 Nov 2008 08:11:41 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 11 Nov 2008 11:32:14 -0500 User-Agent: KMail/1.9.7 References: <491764C3.5020504@gmail.com> <491782BD.9090009@freebsd.org> <49179E9A.2020507@gmail.com> In-Reply-To: <49179E9A.2020507@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811111132.14779.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Wed, 12 Nov 2008 08:11:42 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8620/Wed Nov 12 04:05:38 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_12_24,NO_RELAYS autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Eitan Adler , Tim Kientzle Subject: Re: uname -c: alias for uname -rms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 13:11:50 -0000 On Sunday 09 November 2008 09:38:18 pm Eitan Adler wrote: > Tim Kientzle wrote: > > Are there any precedents for this option? > Not really - its more like the recent cp -a switch: an alias for a > common set of switches. However, cp -a was added to be compatible with other OS's, not purely as a shortcut. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 13:11:55 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45B841065771; Wed, 12 Nov 2008 13:11:55 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id C2A7B8FC1A; Wed, 12 Nov 2008 13:11:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mACDBNK8084446; Wed, 12 Nov 2008 08:11:48 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 11 Nov 2008 11:37:55 -0500 User-Agent: KMail/1.9.7 References: <6D5D25EA3941074EB7734E51B16687040AD02A77@orsmsx506.amr.corp.intel.com> In-Reply-To: <6D5D25EA3941074EB7734E51B16687040AD02A77@orsmsx506.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811111137.55731.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Wed, 12 Nov 2008 08:11:49 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8620/Wed Nov 12 04:05:38 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.0 required=4.2 tests=AWL,BAYES_00, DATE_IN_PAST_12_24,NO_RELAYS autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: jeff@freebsd.org, "Murty, Ravi" Subject: Re: Typo in ULE in FreeBSD 8.0 -- that's not really a bug X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 13:11:55 -0000 On Monday 10 November 2008 12:57:44 pm Murty, Ravi wrote: > Hello All, > > I have been playing with ULE in 8.0 and while staring at tdq_notify noticed an interesting (and what seems like a typo) problem. > The intention of the function is obvious, send an IPI to notify the remote CPU of some new piece of work. In the case where there is no IPI currently pending on the target CPU and this thread should be preempting what's running there, the code checks in td (passed in as a parameter) is the IDLE thread (TDF_IDLETD). If so, it checks the state and sees if idle is RUNNING and if so figures it will notice this new work and we don't really need to send an expensive IPI. However, why would td (parameter) ever be the IDLE thread? It almost seems like this check will always fail and we end up sending a hard IPI to the target CPU which works, but may not be needed. May be we wanted to use PCPU->curthread instead of td? I think you are correct. Something like this might fix it: Index: sched_ule.c =================================================================== RCS file: /usr/cvs/src/sys/kern/sched_ule.c,v retrieving revision 1.246 diff -u -r1.246 sched_ule.c --- sched_ule.c 19 Jul 2008 05:13:47 -0000 1.246 +++ sched_ule.c 11 Nov 2008 16:36:25 -0000 @@ -942,7 +942,7 @@ static void tdq_notify(struct tdq *tdq, struct thread *td) { - int cpri; + struct thread *ctd; int pri; int cpu; @@ -950,10 +950,10 @@ return; cpu = td->td_sched->ts_cpu; pri = td->td_priority; - cpri = pcpu_find(cpu)->pc_curthread->td_priority; - if (!sched_shouldpreempt(pri, cpri, 1)) + ctd = pcpu_find(cpu)->pc_curthread; + if (!sched_shouldpreempt(pri, ctd->td_priority, 1)) return; - if (TD_IS_IDLETHREAD(td)) { + if (TD_IS_IDLETHREAD(ctd)) { /* * If the idle thread is still 'running' it's probably * waiting on us to release the tdq spinlock already. No -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 13:21:25 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E74C51065686 for ; Wed, 12 Nov 2008 13:21:25 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA09.emeryville.ca.mail.comcast.net (qmta09.emeryville.ca.mail.comcast.net [76.96.30.96]) by mx1.freebsd.org (Postfix) with ESMTP id CF4428FC14 for ; Wed, 12 Nov 2008 13:21:25 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA14.emeryville.ca.mail.comcast.net ([76.96.30.60]) by QMTA09.emeryville.ca.mail.comcast.net with comcast id eCGN1a00C1HpZEsA9DMR7j; Wed, 12 Nov 2008 13:21:25 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA14.emeryville.ca.mail.comcast.net with comcast id eDMQ1a00A2P6wsM8aDMQ4W; Wed, 12 Nov 2008 13:21:25 +0000 X-Authority-Analysis: v=1.0 c=1 a=_W5frmRxAAAA:8 a=6I5d2MoRAAAA:8 a=QycZ5dHgAAAA:8 a=2lWE_imY3XTQs1vxiW4A:9 a=1T7QYldBgFax1CoTx-0A:7 a=KfhU-U27iizIc1WJhpv8hk7dyfkA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id A0EE15C19; Wed, 12 Nov 2008 05:21:24 -0800 (PST) Date: Wed, 12 Nov 2008 05:21:24 -0800 From: Jeremy Chadwick To: Andriy Gapon Message-ID: <20081112132124.GA25637@icarus.home.lan> References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> <491AD0CB.8050309@icyb.net.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491AD0CB.8050309@icyb.net.ua> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: Nate Eldredge , freebsd-hackers@FreeBSD.org, FreeBSD Stable , freebsd-usb@FreeBSD.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 13:21:26 -0000 On Wed, Nov 12, 2008 at 02:49:15PM +0200, Andriy Gapon wrote: > on 12/11/2008 14:33 Jeremy Chadwick said the following: > > On Wed, Nov 12, 2008 at 02:20:41PM +0200, Andriy Gapon wrote: > >> on 12/11/2008 14:14 Jeremy Chadwick said the following: > >>> On Wed, Nov 12, 2008 at 01:58:58PM +0200, Andriy Gapon wrote: > >> [snip] > >>>> 2. if ukbd driver is not attached then I don't see any way USB keyboard > >>>> would work in non-legacy way > >>> Regarding #2: at which stage? boot0/boot2/loader require an AT or PS/2 > >>> keyboard to work. None of these stages use ukbd(4) or anything -- there > >>> is no kernel loaded at this point!! Meaning: if you have a USB keyboard, > >>> your BIOS will need to have a "USB Legacy" option to cause it to act as > >>> a PS/2 keyboard, for typing in boot0/boot2/loader to work. > >>> > >>> Device hints are for kernel drivers, once the kernel is loaded. > >> Jeremy, > >> > >> I understand all of this. > >> In subject line and earlier messages I say that I am interested in > >> mountroot prompt - the prompt where kernel can ask about what device to > >> use for root filesystem. > >> Essentially I would like kernel to recognize USB keyboard (and disable > >> all the legacy stuff if needed) before it prompts for the root device. > > > > I fully understand that fact. However, I don't see the logic in that > > statement. You should be able to remove and add a keyboard at any time > > and be able to type immediately. Meaning: I don't see why when the > > keyboard recognition is performed (e.g. before printing mountroot or > > after) matters. It should not. I think this is a red herring. > > I think that this does matter because keyboard recognition is performed > after the 'mounting from' log line *only if* root mount is done > automatically. > If there is an actual interactive prompt then recognition is not > performed, at least I do not see any relevant lines on the screen and I > am stuck at the prompt. > > > I've seen the problem where I have a fully functional USB keyboard in > > boot0/boot2/loader > > For me it even randomly dies at these stages. > I reported this in a different thread. > But this should not be related to kernel behavior. > > >and in multi-user, > > For me this always works. > > > but when booting into single-user > > For me this always works. > > > or when getting a mountroot prompt, the keyboard does not function. > > When the mountroot prompt is printed (before or after ukbd attached) > > makes no difference for me in this scenario -- I tested it many times. > > For me ukbd lines are never printed if I get actual interactive > mountroot prompt. > > > It's very possible that "something" (kbdcontrol?) is getting run only > > during late stages of multi-user, which makes the keyboard work. But > > prior to that "something" being run (but AFTER boot2/loader), the > > keyboard is not truly usable. > > For me this is not true. My keyboard always works after ukbd lines > appear on screen. I've pointed you to evidence where this isn't true, especially when using the USB4BSD stack. There is something called "boot legacy protocol" which USB keyboards have to support to properly be interfaced with in FreeBSD using the USB4BSD stack; in the case of the Microsoft Natural Ergo 4000 keyboard, it does not play well with USB4BSD (it DOES work with the old USB stack, but none of the multimedia keys work, and worse, the F-Lock key does not work; this is because those keys use uhid(4) and not ukbd(4)). Linux has a __20 page Wiki document__ on **just this keyboard**. That should give you some idea of how complex the situation with USB keyboards is in general. http://www.gentoo-wiki.info/HOWTO_Microsoft_Natural_Ergonomic_Keyboard_4000 > > I hope everyone here is also aware of that fact that not all keyboards > > are created equal. Case in point (and this reason is exactly why I > > am purchasing a native PS/2 keyboard, as USB4BSD doesn't work with > > all USB keyboards right now): > > For me this is not an option, no PS/2 ports. I don't know what to say to ***ANY*** of the above, other than this: No one is doing anything about this problem because there does not appear to be a 100% reproducible always-screws-up-when-I-do-this scenario that happens to *every FreeBSD user*. Until we settle down, stop replying to Emails with one-liner injections, and compile a list of test scenarios/cases that people can perform, and get these people to provide both 1) full hardware details, 2) full kernel configuration files, 3) full loader.conf files, and 4) full device.hints files, we're not going to get anywhere. > > http://lists.freebsd.org/pipermail/freebsd-current/2008-November/000219.html > > > > The bottom line: > > > > FreeBSD cannot be reliably used with a USB keyboard in all > > circumstances.And that is a very sad reality, because 90% of the > > keyboards you find on the consumer and enterprise market are USB -- > > native PS/2 keyboards are now a scarcity. > > I agree that this is a sad reality but only for boot stages where we > depend on external entity named BIOS to help us. > This doesn't have to be a sad reality once kernel takes control. It's been confirmed by numerous people now, including #bsdports users, that "USB Legacy" does not work for some individuals. This is either because of BIOS bugs, or because the USB keyboards do not support tying into SMM. We don't know the true cause. One thing we do know: we have FreeBSD users stating they cannot type in boot0/boot2/loader, even with USB Legacy enabled, so going into single-user after a reboot is impossible. Another thing we do know: we have FreeBSD users who do not have fully functional USB keyboards in FreeBSD (some see ukbd attach, others do not; some are using USB4BSD, others are not). So, can someone take the time to come up with test scenarios/cases so that users can perform these tests, list off the exact hardware they have, and we can see if there is a consistent/common failure between everyone? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 13:33:52 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 76D45106564A; Wed, 12 Nov 2008 13:33:52 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id E65A38FC24; Wed, 12 Nov 2008 13:33:50 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA17993; Wed, 12 Nov 2008 15:33:49 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <491ADB3B.2090000@icyb.net.ua> Date: Wed, 12 Nov 2008 15:33:47 +0200 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.17 (X11/20081106) MIME-Version: 1.0 To: Jeremy Chadwick References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> <491AD0CB.8050309@icyb.net.ua> <20081112132124.GA25637@icarus.home.lan> In-Reply-To: <20081112132124.GA25637@icarus.home.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Nate Eldredge , freebsd-hackers@FreeBSD.org, FreeBSD Stable , freebsd-usb@FreeBSD.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 13:33:52 -0000 on 12/11/2008 15:21 Jeremy Chadwick said the following: > I don't know what to say to ***ANY*** of the above, other than this: > > No one is doing anything about this problem because there does not > appear to be a 100% reproducible always-screws-up-when-I-do-this > scenario that happens to *every FreeBSD user*. > > Until we settle down, stop replying to Emails with one-liner injections, > and compile a list of test scenarios/cases that people can perform, and > get these people to provide both 1) full hardware details, 2) full > kernel configuration files, 3) full loader.conf files, and 4) full > device.hints files, we're not going to get anywhere. Well I started two separate threads. This thread is about one very specific issue - ukbd attaching after mountroot code. Again, in this thread I am only interested in getting ukbd to attach before the mount root. I am not interested in BIOS, boot chain, etc. I am not even interested in speculations about whether keyboard would work or not at mountroot prompt if it were attaching before it. -- Andriy Gapon From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 15:05:00 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 404C21065686 for ; Wed, 12 Nov 2008 15:05:00 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 033018FC1A for ; Wed, 12 Nov 2008 15:04:59 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L0HH7-0000yY-IP for freebsd-hackers@freebsd.org; Wed, 12 Nov 2008 15:04:57 +0000 Received: from 195.145.202.92 ([195.145.202.92]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2008 15:04:57 +0000 Received: from ivoras by 195.145.202.92 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 12 Nov 2008 15:04:57 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Wed, 12 Nov 2008 16:04:52 +0100 Lines: 16 Message-ID: References: <20081112145105.T65116@comanche.metrocom.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 195.145.202.92 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: <20081112145105.T65116@comanche.metrocom.ru> Sender: news Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.4 - filesystem full X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 15:05:00 -0000 Varshavchick Alexander wrote: > I have an old enough server with FreeBSD 5.4 which from time to time > complains about filesystem full. But the problem is that the partition > in question has about 15G free space and more than 10000000 free inodes. > Then all by itself the error dissapears, only to be repeated several > hours later. What can it be and where to look? The server runs mainly > apache and sendmail, nothing special. I don't know for sure, but here's some generic troubleshooting: a) Are you 100% sure there isn't an application that periodically fills the drive? This would be easiest to solve - all other problems are worse. b) How is your IO rate at the time you run out of space? c) Did you try fsck-ing the file system? d) Why can't you upgrade to a more recent version of FreeBSD, like 7.1? From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 16:09:44 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6F2A1065670 for ; Wed, 12 Nov 2008 16:09:44 +0000 (UTC) (envelope-from ravi.murty@intel.com) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx1.freebsd.org (Postfix) with ESMTP id 894268FC08 for ; Wed, 12 Nov 2008 16:09:44 +0000 (UTC) (envelope-from ravi.murty@intel.com) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 12 Nov 2008 08:03:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.33,590,1220252400"; d="scan'208";a="462203578" Received: from unknown (HELO azsmsx001.amr.corp.intel.com) ([10.2.167.98]) by orsmga001.jf.intel.com with ESMTP; 12 Nov 2008 08:08:31 -0800 Received: from orsmsx001.amr.corp.intel.com (10.22.226.42) by azsmsx001.amr.corp.intel.com (10.2.167.98) with Microsoft SMTP Server (TLS) id 8.1.311.2; Wed, 12 Nov 2008 09:09:29 -0700 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx001.amr.corp.intel.com ([10.22.226.42]) with mapi; Wed, 12 Nov 2008 08:09:28 -0800 From: "Murty, Ravi" To: John Baldwin , "freebsd-hackers@freebsd.org" Date: Wed, 12 Nov 2008 08:09:23 -0800 Thread-Topic: Typo in ULE in FreeBSD 8.0 -- that's not really a bug Thread-Index: AclEyD/82k9uj/OFRsKq/7JnM+MU1QAGKjRQ Message-ID: <6D5D25EA3941074EB7734E51B16687040AD518AC@orsmsx506.amr.corp.intel.com> References: <6D5D25EA3941074EB7734E51B16687040AD02A77@orsmsx506.amr.corp.intel.com> <200811111137.55731.jhb@freebsd.org> In-Reply-To: <200811111137.55731.jhb@freebsd.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Cc: "jeff@freebsd.org" Subject: RE: Typo in ULE in FreeBSD 8.0 -- that's not really a bug X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 16:09:44 -0000 Yes, that's what I was thinking. Just look at what's running on the remote = CPU. Thanks Jeff and John. Ravi -----Original Message----- From: John Baldwin [mailto:jhb@freebsd.org]=20 Sent: Tuesday, November 11, 2008 8:38 AM To: freebsd-hackers@freebsd.org Cc: Murty, Ravi; jeff@freebsd.org Subject: Re: Typo in ULE in FreeBSD 8.0 -- that's not really a bug On Monday 10 November 2008 12:57:44 pm Murty, Ravi wrote: > Hello All, >=20 > I have been playing with ULE in 8.0 and while staring at tdq_notify notic= ed=20 an interesting (and what seems like a typo) problem. > The intention of the function is obvious, send an IPI to notify the remot= e=20 CPU of some new piece of work. In the case where there is no IPI currently= =20 pending on the target CPU and this thread should be preempting what's runni= ng=20 there, the code checks in td (passed in as a parameter) is the IDLE thread= =20 (TDF_IDLETD). If so, it checks the state and sees if idle is RUNNING and if= =20 so figures it will notice this new work and we don't really need to send an= =20 expensive IPI. However, why would td (parameter) ever be the IDLE thread? I= t=20 almost seems like this check will always fail and we end up sending a hard= =20 IPI to the target CPU which works, but may not be needed. May be we wanted = to=20 use PCPU->curthread instead of td? I think you are correct. Something like this might fix it: Index: sched_ule.c =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=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: /usr/cvs/src/sys/kern/sched_ule.c,v retrieving revision 1.246 diff -u -r1.246 sched_ule.c --- sched_ule.c 19 Jul 2008 05:13:47 -0000 1.246 +++ sched_ule.c 11 Nov 2008 16:36:25 -0000 @@ -942,7 +942,7 @@ static void tdq_notify(struct tdq *tdq, struct thread *td) { - int cpri; + struct thread *ctd; int pri; int cpu; =20 @@ -950,10 +950,10 @@ return; cpu =3D td->td_sched->ts_cpu; pri =3D td->td_priority; - cpri =3D pcpu_find(cpu)->pc_curthread->td_priority; - if (!sched_shouldpreempt(pri, cpri, 1)) + ctd =3D pcpu_find(cpu)->pc_curthread; + if (!sched_shouldpreempt(pri, ctd->td_priority, 1)) return; - if (TD_IS_IDLETHREAD(td)) { + if (TD_IS_IDLETHREAD(ctd)) { /* * If the idle thread is still 'running' it's probably * waiting on us to release the tdq spinlock already. No --=20 John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 14:08:12 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 942751065678; Wed, 12 Nov 2008 14:08:12 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms173003pub.verizon.net (vms173003pub.verizon.net [206.46.173.3]) by mx1.freebsd.org (Postfix) with ESMTP id 7AB918FC18; Wed, 12 Nov 2008 14:08:12 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from verizon.net ([63.28.162.53]) by vms173003.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0KA800D3M1TBXUM1@vms173003.mailsrvcs.net>; Wed, 12 Nov 2008 07:08:01 -0600 (CST) Date: Wed, 12 Nov 2008 08:15:11 -0500 From: Sergey Babkin Sender: root To: Varshavchick Alexander Message-id: <491AD6DF.24F8072F@verizon.net> MIME-version: 1.0 X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.7-RELEASE i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en, ru References: <20081112145105.T65116@comanche.metrocom.ru> X-Mailman-Approved-At: Wed, 12 Nov 2008 16:47:35 +0000 Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD 5.4 - filesystem full X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 14:08:12 -0000 Varshavchick Alexander wrote: > > I have an old enough server with FreeBSD 5.4 which from time to time > complains about filesystem full. But the problem is that the partition > in question has about 15G free space and more than 10000000 free inodes. > Then all by itself the error dissapears, only to be repeated several hours > later. What can it be and where to look? The server runs mainly apache and > sendmail, nothing special. I vaguely remember that there was an issue with softupdates that didn't report blocks as free until the filesystem was synced, and with intense disk activity the filesystem was not syncing by itself often enough. -SB From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 14:11:53 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89855106564A; Wed, 12 Nov 2008 14:11:53 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from vms173007pub.verizon.net (vms173007pub.verizon.net [206.46.173.7]) by mx1.freebsd.org (Postfix) with ESMTP id 687308FC0A; Wed, 12 Nov 2008 14:11:53 +0000 (UTC) (envelope-from babkin@verizon.net) Received: from verizon.net ([63.28.162.53]) by vms173007.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0KA8003HB1XVGIB9@vms173007.mailsrvcs.net>; Wed, 12 Nov 2008 07:10:46 -0600 (CST) Date: Wed, 12 Nov 2008 08:18:51 -0500 From: Sergey Babkin Sender: root To: Jeremy Chadwick Message-id: <491AD7BB.2EAA9AA0@verizon.net> MIME-version: 1.0 X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.7-RELEASE i386) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en, ru References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> X-Mailman-Approved-At: Wed, 12 Nov 2008 16:47:43 +0000 Cc: Nate Eldredge , freebsd-hackers@FreeBSD.org, FreeBSD Stable , Andriy Gapon , freebsd-usb@FreeBSD.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 14:11:53 -0000 Jeremy Chadwick wrote: > > What really needs to happen here should be obvious: we need some form of > inexpensive keyboard-only USB support in boot2/loader. > > I would *love* to know how Linux and Windows solve this problem. If I remember right, UnixWare used(s) the BIOS calls in the loader. -SB From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 17:43:43 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 430D51065679 for ; Wed, 12 Nov 2008 17:43:43 +0000 (UTC) (envelope-from prvs=1202103270=marc.loerner@hob.de) Received: from mailgate.hob.de (mailgate.hob.de [212.185.199.3]) by mx1.freebsd.org (Postfix) with ESMTP id 10CE48FC18 for ; Wed, 12 Nov 2008 17:43:43 +0000 (UTC) (envelope-from prvs=1202103270=marc.loerner@hob.de) Received: from imap.hob.de (mail2.hob.de [172.25.1.102]) by mailgate.hob.de (Postfix) with ESMTP id 0092E52001C for ; Wed, 12 Nov 2008 18:21:57 +0100 (CET) Received: from linux03.hob.de (linux03.hob.de [172.22.0.190]) by imap.hob.de (Postfix on SuSE eMail Server 2.0) with ESMTP id A78E1FD5DF for ; Wed, 12 Nov 2008 18:21:56 +0100 (CET) From: Marc =?iso-8859-1?q?L=F6rner?= Organization: hob To: freebsd-hackers@freebsd.org Date: Wed, 12 Nov 2008 18:23:14 +0100 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200811121823.14400.marc.loerner@hob.de> Subject: ide with DMA and ram > 4GB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 17:43:43 -0000 Hello, I just stepped over a problem with my IDE disk running in DMA-mode and having more than 4GB of RAM. It seems that the whole way down GEOM, ata-disk, ata-dma never is checked whether physical address of buffer is less than 4GB an so fits in 32bits. => when PRD is set the address is rigorously truncated to fit into 32bit, with buffer < 4GB all is quite fine. So what do you recommend: - Easiest way (but not performantest) is to turn DMA for ide off and use PIO instead - Harder way: Bugfix ide-dma! When doing this, where do you recommend to put code? I tried to do a simple (but not performant) patch in in ata-disk functions ad_strategy and ad_done with using another aligned, with right boundary and physical address < 4GB and copying data from an to it from bp->b_data (or request->data). At least this one works, but copying from one to another buffer is not quite elegant and the code doesn't really belong there. So I thought of putting something into busdma_machdep, but right now I have now clue to where to hook in, because this function cannot modify buffer given from vfs_bio => geom => ata. Regards, Marc Loerner P.S.: I'm using kernel-sources from 7.0-RELEASE-p3 From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 17:48:30 2008 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C1E4C1065679 for ; Wed, 12 Nov 2008 17:48:30 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 748B68FC1F for ; Wed, 12 Nov 2008 17:48:30 +0000 (UTC) (envelope-from des@des.no) Received: from ds4.des.no (des.no [84.49.246.2]) by smtp.des.no (Postfix) with ESMTP id 476836D43F; Wed, 12 Nov 2008 17:48:29 +0000 (UTC) Received: by ds4.des.no (Postfix, from userid 1001) id 3391284493; Wed, 12 Nov 2008 18:48:29 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Sergey Babkin References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> <491AD7BB.2EAA9AA0@verizon.net> Date: Wed, 12 Nov 2008 18:48:29 +0100 In-Reply-To: <491AD7BB.2EAA9AA0@verizon.net> (Sergey Babkin's message of "Wed, 12 Nov 2008 08:18:51 -0500") Message-ID: <86iqqsx2c2.fsf@ds4.des.no> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Stable , freebsd-hackers@FreeBSD.org, Jeremy Chadwick , Andriy Gapon , freebsd-usb@FreeBSD.org, Nate Eldredge Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 17:48:30 -0000 Sergey Babkin writes: > Jeremy Chadwick writes: > > What really needs to happen here should be obvious: we need some > > form of inexpensive keyboard-only USB support in boot2/loader. > If I remember right, UnixWare used(s) the BIOS calls in the loader. So does FreeBSD. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 18:16:28 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 852BA1065677 for ; Wed, 12 Nov 2008 18:16:28 +0000 (UTC) (envelope-from ady@ady.ro) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 6CBE68FC13 for ; Wed, 12 Nov 2008 18:16:28 +0000 (UTC) (envelope-from ady@ady.ro) Received: by rv-out-0506.google.com with SMTP id b25so483752rvf.43 for ; Wed, 12 Nov 2008 10:16:28 -0800 (PST) Received: by 10.140.132.4 with SMTP id f4mr5011278rvd.201.1226511885685; Wed, 12 Nov 2008 09:44:45 -0800 (PST) Received: by 10.141.20.20 with HTTP; Wed, 12 Nov 2008 09:44:45 -0800 (PST) Message-ID: <78cb3d3f0811120944n5e57cbf5xc1776930aae85c06@mail.gmail.com> Date: Wed, 12 Nov 2008 18:44:45 +0100 From: "Adrian Penisoara" To: "Varshavchick Alexander" In-Reply-To: <20081112145105.T65116@comanche.metrocom.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20081112145105.T65116@comanche.metrocom.ru> Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.4 - filesystem full X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 18:16:28 -0000 Hi, What kind of applications are you running on the machine ? Are they mmap'ing files on the filesystem in quesiton (which one ?) ? AFAIR even if you delete a big file the disk space may not be reclaimed if a process still has the file open. If you reboot the machine or restart some of the applications, does the issue disappear ? Regards, Adrian. On Wed, Nov 12, 2008 at 1:05 PM, Varshavchick Alexander wrote: > I have an old enough server with FreeBSD 5.4 which from time to time > complains about filesystem full. But the problem is that the partition in > question has about 15G free space and more than 10000000 free inodes. Then > all by itself the error dissapears, only to be repeated several hours later. > What can it be and where to look? The server runs mainly apache and > sendmail, nothing special. > > Thanks and regards > > ---- > Alexander Varshavchick, Metrocom Joint Stock Company > Phone: (812)718-3322, 718-3115(fax) > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 17:49:51 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 89F4D1065686; Wed, 12 Nov 2008 17:49:51 +0000 (UTC) (envelope-from nakal@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.freebsd.org (Postfix) with ESMTP id D10EB8FC1F; Wed, 12 Nov 2008 17:49:50 +0000 (UTC) (envelope-from nakal@web.de) Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 101FEF97A08E; Wed, 12 Nov 2008 18:30:15 +0100 (CET) Received: from [217.236.27.27] (helo=zelda.local) by smtp07.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.109 #226) id 1L0JXi-00024g-00; Wed, 12 Nov 2008 18:30:14 +0100 Date: Wed, 12 Nov 2008 18:30:12 +0100 From: Martin To: Jeremy Chadwick Message-ID: <20081112183012.57af6eb5@zelda.local> In-Reply-To: <20081112132124.GA25637@icarus.home.lan> References: <4911BA93.9030006@icyb.net.ua> <491ABFCD.3060309@icyb.net.ua> <491AC502.9000507@icyb.net.ua> <20081112121410.GA24629@icarus.home.lan> <491ACA19.2040008@icyb.net.ua> <20081112123315.GA24907@icarus.home.lan> <491AD0CB.8050309@icyb.net.ua> <20081112132124.GA25637@icarus.home.lan> X-Mailer: Claws Mail 3.6.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: nakal@web.de X-Sender: nakal@web.de X-Provags-ID: V01U2FsdGVkX1/acbvjZK9J7Loya0JHgQ2FU/HIdANhopoXZvEL /Yfr2grVu+T234KfGavKbd45/Be5PP0hgdDwVh5hN2IAFrfrDf sqxa8D3qs= X-Mailman-Approved-At: Wed, 12 Nov 2008 18:17:41 +0000 Cc: Nate Eldredge , freebsd-hackers@FreeBSD.org, FreeBSD Stable , Andriy Gapon , freebsd-usb@FreeBSD.org Subject: Re: ukbd attachment and root mount X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 17:49:51 -0000 Am Wed, 12 Nov 2008 05:21:24 -0800 schrieb Jeremy Chadwick : > Until we settle down, stop replying to Emails with one-liner > injections, and compile a list of test scenarios/cases that people > can perform, and get these people to provide both 1) full hardware > details, 2) full kernel configuration files, 3) full loader.conf > files, and 4) full device.hints files, we're not going to get > anywhere. Ok, I will add the details for the GA-EP45-DS3R based system. 1) dmesg Copyright (c) 1992-2008 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-PRERELEASE #0: Mon Nov 10 08:23:21 CET 2008 root@kirby:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz (3166.32-MHz K8-class CPU) Origin = "GenuineIntel" Id = 0x10676 Stepping = 6 Features=0xbfebfbff Features2=0x8e3fd> AMD Features=0x20100800 AMD Features2=0x1 Cores per package: 2 usable memory = 8574255104 (8177 MB) avail memory = 8286810112 (7902 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, cfdb0000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: port 0xa000-0xa0ff mem 0xd0000000-0xdfffffff,0xe5000000-0xe500ffff irq 16 at device 0.0 on pci1 pcm0: mem 0xe5010000-0xe5013fff irq 17 at device 0.1 on pci1 pcm0: [ITHREAD] uhci0: port 0xe000-0xe01f irq 16 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xe100-0xe11f irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xe200-0xe21f irq 18 at device 26.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xe9305000-0xe93053ff irq 18 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered pcm1: mem 0xe9300000-0xe9303fff irq 22 at device 27.0 on pci0 pcm1: [ITHREAD] pcib2: irq 16 at device 28.0 on pci0 pci2: on pcib2 pcib3: irq 19 at device 28.3 on pci0 pci3: on pcib3 atapci0: port 0xb000-0xb007,0xb100-0xb103,0xb200-0xb207,0xb300-0xb303,0xb400-0xb40f irq 19 at device 0.0 on pci3 atapci0: [ITHREAD] ata2: on atapci0 ata2: [ITHREAD] pcib4: irq 16 at device 28.4 on pci0 pci4: on pcib4 re0: port 0xc000-0xc0ff mem Ethernet> 0xe9010000-0xe9010fff,0xe9000000-0xe900ffff irq 16 at device Ethernet> 0.0 on pci4 re0: Chip rev. 0x3c000000 re0: MAC rev. 0x00400000 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:1f:d0:24:96:ab re0: [FILTER] pcib5: irq 17 at device 28.5 on pci0 pci5: on pcib5 re1: port 0xd000-0xd0ff mem Ethernet> 0xe9110000-0xe9110fff,0xe9100000-0xe910ffff irq 17 at device Ethernet> 0.0 on pci5 re1: Chip rev. 0x3c000000 re1: MAC rev. 0x00400000 miibus1: on re1 rgephy1: PHY 1 on miibus1 rgephy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re1: Ethernet address: 00:1f:d0:24:96:a9 re1: [FILTER] uhci3: port 0xe300-0xe31f irq 23 at device 29.0 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0xe400-0xe41f irq 19 at device 29.1 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered uhci5: port 0xe500-0xe51f irq 18 at device 29.2 on pci0 uhci5: [GIANT-LOCKED] uhci5: [ITHREAD] usb6: on uhci5 usb6: USB revision 1.0 uhub6: on usb6 uhub6: 2 ports with 2 removable, self powered ehci1: mem 0xe9304000-0xe93043ff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb7: EHCI version 1.0 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 usb7: on ehci1 usb7: USB revision 2.0 uhub7: on usb7 uhub7: 6 ports with 6 removable, self powered pcib6: at device 30.0 on pci0 pci6: on pcib6 fwohci0: mem 0xe9204000-0xe92047ff,0xe9200000-0xe9203fff irq 23 at device 7.0 on pci6 fwohci0: [FILTER] fwohci0: OHCI version 1.10 (ROM=0) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:2c:a1:59:00:00:1f:d0 fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:2c:a1:00:1f:d0 fwe0: Ethernet address: 02:2c:a1:00:1f:d0 fwip0: on firewire0 fwip0: Firewire address: 00:2c:a1:59:00:00:1f:d0 @ 0xfffe00000000, S400, maxrec 2048 sbp0: on firewire0 dcons_crom0: on firewire0 dcons_crom0: bus_addr 0xcf2b4000 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0xe600-0xe607,0xe700-0xe703,0xe800-0xe807,0xe900-0xe903,0xea00-0xea1f mem 0xe9306000-0xe93067ff irq 19 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI Version 01.20 controller with 6 ports detected ata3: on atapci1 ata3: [ITHREAD] ata4: on atapci1 ata4: [ITHREAD] ata5: on atapci1 ata5: [ITHREAD] ata6: on atapci1 ata6: [ITHREAD] ata7: on atapci1 ata7: [ITHREAD] ata8: on atapci1 ata8: [ITHREAD] pci0: at device 31.3 (no driver attached) fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: configured irq 4 not in bitmap of probed irqs 0 sio0: port may not be enabled sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] ppc0: port 0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] cpu0: on acpi0 est0: on cpu0 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 61a492006004920 device_attach: est0 attach returned 6 p4tcc0: on cpu0 cpu1: on acpi0 est1: on cpu1 est: CPU supports Enhanced Speedstep, but is not recognized. est: cpu_vendor GenuineIntel, msr 61a492006004920 device_attach: est1 attach returned 6 p4tcc1: on cpu1 orm0: at iomem 0xd0000-0xd1fff on isa0 atkbdc0: at port 0x60,0x64 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ukbd0: on uhub2 kbd2 at ukbd0 uhid0: on uhub2 ums0: on uhub2 ums0: 8 buttons and Z dir. Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) ad6: 476938MB at ata3-master SATA300 GEOM_JOURNAL: Journal 3939325718: ad6s1f contains data. GEOM_JOURNAL: Journal 3939325718: ad6s1f contains journal. GEOM_JOURNAL: Journal ad6s1f clean. acd0: DVDR at ata4-master SATA150 pcm0: pcm0: pcm1: pcm1: SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad6s1a cryptosoft0: on motherboard GEOM_ELI: Device ad6s1g.eli created. GEOM_ELI: Encryption: Blowfish-CBC 448 GEOM_ELI: Crypto: software GEOM_JOURNAL: Journal 2001271740: ad6s1g.eli contains data. GEOM_JOURNAL: Journal 2001271740: ad6s1g.eli contains journal. GEOM_JOURNAL: Journal ad6s1g.eli clean. GEOM_ELI: Device ad6s1b.eli created. GEOM_ELI: Encryption: AES-CBC 256 GEOM_ELI: Crypto: software 2) As you can see above, GENERIC (here stable, but also occurs on BETA2). 3) loader.conf: acpi_load="YES" acpi_video_load="YES" beastie_disable="YES" geom_journal_load="YES" #smb_load="YES" #smbus_load="YES" #ichsmb_load="YES" snd_hda_load="YES" #aio_load="YES" #kqemu_load="YES" kern.cam.scsi_delay=1000 autoboot_delay=3 linux_load="YES" linprocfs_load="YES" linsysfs_load="YES" 4) device.hints unchanged. > It's been confirmed by numerous people now, including #bsdports users, > that "USB Legacy" does not work for some individuals. This is either > because of BIOS bugs, or because the USB keyboards do not support > tying into SMM. We don't know the true cause. I'm not sure, if every BIOS has got such a setting. I'm not fully sure, if this is a BIOS bug. It could be, of course. Gigabyte has released BIOS firmware updates that are not usable, until one installs Windows (the changes history does not mention any USB fixes though). It will take some time until I can patch the firmware. > One thing we do know: we have FreeBSD users stating they cannot type > in boot0/boot2/loader, even with USB Legacy enabled, so going into > single-user after a reboot is impossible. > > Another thing we do know: we have FreeBSD users who do not have fully > functional USB keyboards in FreeBSD (some see ukbd attach, others do > not; some are using USB4BSD, others are not). Yes. These are 3 different problems. 1) No keyboard in bootloader => missing BIOS USB support. 2) No keyboard after USB controller initialisation => missing quirks? 3) No keyboard spontaneously while working => bug? > So, can someone take the time to come up with test scenarios/cases so > that users can perform these tests, list off the exact hardware they > have, and we can see if there is a consistent/common failure between > everyone? If you need anything more, I can try to deliver the information. I sometimes run out of ideas how to avoid annoying the developers. :) (In other words, I have more problems to report waiting in the queue...) ;) -- Martin From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 19:13:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D47191065688; Wed, 12 Nov 2008 19:13:18 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id 8CD818FC14; Wed, 12 Nov 2008 19:13:18 +0000 (UTC) (envelope-from thierry.herbelot@free.fr) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by postfix2-g20.free.fr (Postfix) with ESMTP id 65E092CBC73D; Wed, 12 Nov 2008 17:55:10 +0100 (CET) Received: from smtp2-g19.free.fr (localhost.localdomain [127.0.0.1]) by smtp2-g19.free.fr (Postfix) with ESMTP id 78A2212BB78; Wed, 12 Nov 2008 19:55:22 +0100 (CET) Received: from mail.herbelot.nom (bne75-4-82-227-159-103.fbx.proxad.net [82.227.159.103]) by smtp2-g19.free.fr (Postfix) with ESMTP id 56C7D12C36A; Wed, 12 Nov 2008 19:55:17 +0100 (CET) Received: from tulipe.herbelot.nom (tulipe.herbelot.nom [192.168.2.5]) by mail.herbelot.nom (8.14.1/8.14.1) with ESMTP id mACIt2Ct023067; Wed, 12 Nov 2008 19:55:03 +0100 (CET) From: Thierry Herbelot To: freebsd-hackers@freebsd.org Date: Wed, 12 Nov 2008 19:54:56 +0100 User-Agent: KMail/1.9.10 References: <20081112145105.T65116@comanche.metrocom.ru> In-Reply-To: <20081112145105.T65116@comanche.metrocom.ru> X-Warning: Windows can lose your files X-Op-Sys: Le FriBi de la mort qui tue X-Org: TfH&Co X-MailScanner: Found to be clean MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200811121954.57350.thierry.herbelot@free.fr> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 12 Nov 2008 19:50:16 +0000 Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.4 - filesystem full X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 19:13:19 -0000 Le Wednesday 12 November 2008, Varshavchick Alexander a écrit : > I have an old enough server with FreeBSD 5.4 which from time to time > complains about filesystem full. But the problem is that the partition > in question has about 15G free space and more than 10000000 free inodes. > Then all by itself the error dissapears, only to be repeated several hours > later. What can it be and where to look? The server runs mainly apache and > sendmail, nothing special. Hello, I saw a full disk because of a runaway background fsck : bg_fsck built some image of the disk in the top-level ".snap" directory, which grew and grew and grew .... the workaround was to reboot in single-user, then fsck in foreground, and finally switch to Zfs (but obviously, only for a Releng7 machine) TfH > > Thanks and regards > > ---- > Alexander Varshavchick, Metrocom Joint Stock Company > Phone: (812)718-3322, 718-3115(fax) > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 20:37:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87E8A106568B for ; Wed, 12 Nov 2008 20:37:26 +0000 (UTC) (envelope-from DarwinsKernel@gmail.com) Received: from dillinger.concordia.ca (dillinger.Concordia.CA [132.205.122.20]) by mx1.freebsd.org (Postfix) with ESMTP id 32D5A8FC1B for ; Wed, 12 Nov 2008 20:37:26 +0000 (UTC) (envelope-from DarwinsKernel@gmail.com) Received: from [192.168.2.32] (cinema-pc-g5-fb430.Concordia.CA [132.205.52.85]) by dillinger.concordia.ca (8.14.3/8.14.3) with ESMTP id mACJT6Ga016939 for ; Wed, 12 Nov 2008 14:29:07 -0500 Mime-Version: 1.0 (Apple Message framework v753.1) Content-Transfer-Encoding: 7bit Message-Id: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed To: freebsd-hackers@freebsd.org From: Charles Darwin Date: Wed, 12 Nov 2008 14:29:01 -0500 X-Mailer: Apple Mail (2.753.1) X-Scanned-By: MIMEDefang 2.66 on 132.205.122.20 X-Mailman-Approved-At: Wed, 12 Nov 2008 20:46:14 +0000 Subject: Is chflags' "nodump + sunlnk" = "uchg" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 20:37:26 -0000 Hi all, Title is the question actually: Is chflags' "nodump + sunlnk" = "uchg" Thanks, Charles From owner-freebsd-hackers@FreeBSD.ORG Wed Nov 12 23:43:49 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 899B91065670 for ; Wed, 12 Nov 2008 23:43:49 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id 4B9068FC12 for ; Wed, 12 Nov 2008 23:43:48 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id mACNhkJa062103 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 12 Nov 2008 17:43:46 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id mACNhjg3062088; Wed, 12 Nov 2008 17:43:45 -0600 (CST) (envelope-from dan) Date: Wed, 12 Nov 2008 17:43:45 -0600 From: Dan Nelson To: Charles Darwin Message-ID: <20081112234345.GL85407@dan.emsphone.com> References: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com> X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Is chflags' "nodump + sunlnk" = "uchg" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Nov 2008 23:43:49 -0000 In the last episode (Nov 12), Charles Darwin said: > Hi all, > > Title is the question actually: Is chflags' "nodump + sunlnk" = "uchg" No; why would it be? From /usr/include/sys/stat.h: #define UF_NODUMP 0x00000001 /* do not dump file */ #define SF_NOUNLINK 0x00100000 /* file may not be removed or renamed */ #define UF_IMMUTABLE 0x00000002 /* file may not be changed */ nodump+sunlnk would be 0x00100001, while uchg is 0x00000002 . # touch a b # chflags nodump,sunlnk a # chflags uchg b # ls -lo a b -rw-r--r-- 1 root wheel sunlnk,nodump 0 Nov 12 17:42 a -rw-r--r-- 1 root wheel uchg 0 Nov 12 17:42 b # -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 00:38:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B97D21065670 for ; Thu, 13 Nov 2008 00:38:41 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 5D66D8FC0C for ; Thu, 13 Nov 2008 00:38:41 +0000 (UTC) (envelope-from eitanadlerlist@gmail.com) Received: by yw-out-2324.google.com with SMTP id 9so309323ywe.13 for ; Wed, 12 Nov 2008 16:38:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:user-agent :mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:openpgp:content-type:content-transfer-encoding :from; bh=9LHoR9G+xTFIwYxb0iexDNAICM7fHtT5vNY2XjFsJow=; b=SneuvY3t/9ej4WHqfryo0uZJCHFxgGRUrFjXWuB3RN1QHwb732UqwuMH+FcFDVBmYm 3d4hrZmd74KfijtqMHXL8HDUUYNyS5Rkz6RuqOZRe+6Gy01JsRYSxXKYd8EC9SmAmZ5x AgVlqpPASvIy8xGh8Xkt2HljsqVFqTo7e6rLA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:user-agent:mime-version:to:cc:subject:references :in-reply-to:x-enigmail-version:openpgp:content-type :content-transfer-encoding:from; b=mH2OI1CjnkVfjU00ZAnZKKvuTDmTRxXlumNwz2Nd2f5Be5ZxLThM96DAkhLUdZrEA+ b2dvqCLxnGBHmqVXLmql1KI+89qWtSSs2k9iDe4CX+B9bn/bt3H7WF703EkQ9VEgC0Z3 9n7ik7xF60FXJ5GNw9N3zniXPgXv06OlwVvgM= Received: by 10.100.128.2 with SMTP id a2mr768135and.158.1226536720610; Wed, 12 Nov 2008 16:38:40 -0800 (PST) Received: from ?192.168.1.101? (ool-182d26f3.dyn.optonline.net [24.45.38.243]) by mx.google.com with ESMTPS id c40sm12777442anc.28.2008.11.12.16.38.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 12 Nov 2008 16:38:39 -0800 (PST) Message-ID: <491B770C.5060703@gmail.com> Date: Wed, 12 Nov 2008 19:38:36 -0500 User-Agent: Mozilla (X11; U; FreeBSD i386; en-US; ) Gecko Thunderbird Mnenhy/0.7.5.666 MIME-Version: 1.0 To: John Baldwin References: <491764C3.5020504@gmail.com> <491782BD.9090009@freebsd.org> <49179E9A.2020507@gmail.com> <200811111132.14779.jhb@freebsd.org> In-Reply-To: <200811111132.14779.jhb@freebsd.org> X-Enigmail-Version: 0.95.7 OpenPGP: id=E9C2CCD1; url=pgp.mit.edu Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit From: Eitan Adler Cc: freebsd-hackers@freebsd.org, Tim Kientzle Subject: Re: uname -c: alias for uname -rms X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 00:38:41 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 John Baldwin wrote: > On Sunday 09 November 2008 09:38:18 pm Eitan Adler wrote: >> Tim Kientzle wrote: >>> Are there any precedents for this option? >> Not really - its more like the recent cp -a switch: an alias for a >> common set of switches. > > However, cp -a was added to be compatible with other OS's, not purely as a > shortcut. > Ah. I was not aware of this. - -- Eitan Adler GNU Key fingerptrint: 2E13 BC16 5F54 0FBD 62ED 42B6 B65F 24AB E9C2 CCD1 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkbdwwACgkQtl8kq+nCzNH47QCfYxuNm0X8GkWUsh/w5d7TLose o0oAoIPDoNFNj0VIYWrITp3uPDsXrGRI =cWEU -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 10:21:58 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3EF71065676; Thu, 13 Nov 2008 10:21:57 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: from infoweapons.com (mail0.infoweapons.org [204.2.248.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9F1508FC18; Thu, 13 Nov 2008 10:21:57 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: from ([58.71.34.146]) by mail0.infoweapons.com with ESMTP id 4321444.1329412; Thu, 13 Nov 2008 05:06:32 -0500 Received: from [10.3.1.41] ([10.3.1.41]) by cebexch01.cebu.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Thu, 13 Nov 2008 18:06:32 +0800 Message-ID: <491BFB68.7050405@infoweapons.com> Date: Thu, 13 Nov 2008 18:03:20 +0800 From: "Ronnel P. Maglasang" User-Agent: Thunderbird 1.5 (X11/20060613) MIME-Version: 1.0 To: freebsd-hardware@freebsd.org, freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 13 Nov 2008 10:06:32.0107 (UTC) FILETIME=[80CC57B0:01C94577] Cc: Subject: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 10:21:58 -0000 Hi All, Is there a way to explicitly assign an interrupt of a device? I'm running on 6.3 and the two NICs share the same interrupt. Obviously this will affect the performance if the NICs are exposed to heavy network traffic. # vmstat -i interrupt total rate irq11: em0 vr0+ 1081099 77 Total 16958562 1222 Looking at the driver's code, I have the initial though that this is the place where I can modify. -- adapter->res_interrupt = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); -- I've tried changing RF_SHAREABLE to RF_ALLOCATED or other values but still could not get the desired result and worst the device fail to initialize. Is this possible in 6.3? Thanks, Ronnel From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 10:31:24 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 476D3106568F for ; Thu, 13 Nov 2008 10:31:24 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) Received: from 0.mx.codelabs.ru (0.mx.codelabs.ru [144.206.177.45]) by mx1.freebsd.org (Postfix) with ESMTP id EE0618FC08 for ; Thu, 13 Nov 2008 10:31:23 +0000 (UTC) (envelope-from rea-fbsd@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Subject:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender; b=MoGjvPHGDBcXzmcdnlIMQ9PtzCw1vR9FV+XU4pIv28RftYG/ClR9Q+q6vtn17EzlufIJFBf8hW3vqC5/DxhEVmx/hoHh2RQ0WzchZR6UOEYgxQq6Z0tzBSrRBJeT+tYU1POrhBUEZpLSIww7R+7zqqSfk5tx0gN7yDL2aOjqc3U=; Received: from void.codelabs.ru (void.codelabs.ru [144.206.177.25]) by 0.mx.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1L0ZTu-000Mln-Bm; Thu, 13 Nov 2008 13:31:22 +0300 Date: Thu, 13 Nov 2008 13:31:21 +0300 From: Eygene Ryabinkin To: "Ronnel P. Maglasang" Message-ID: References: <491BFB68.7050405@infoweapons.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="E/DnYTRukya0zdZ1" Content-Disposition: inline In-Reply-To: <491BFB68.7050405@infoweapons.com> Sender: rea-fbsd@codelabs.ru Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 10:31:24 -0000 --E/DnYTRukya0zdZ1 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thu, Nov 13, 2008 at 06:03:20PM +0800, Ronnel P. Maglasang wrote: > Is there a way to explicitly assign an interrupt > of a device? What about BIOS? What about physically reshuffling the cards if they aren't on-board ones? --=20 Eygene _ ___ _.--. # \`.|\..----...-'` `-._.-'_.-'` # Remember that it is hard / ' ` , __.--' # to read the on-line manual =20 )/' _/ \ `-_, / # while single-stepping the kernel. `-'" `"\_ ,_.-;_.-\_ ', fsc/as # _.-'_./ {_.' ; / # -- FreeBSD Developers handbook=20 {_.-``-' {_/ # --E/DnYTRukya0zdZ1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkkcAfkACgkQthUKNsbL7Yj1QACdGEPqxsAuofV1xCAHEXu/7Mpe +uwAmgPBJB25aYHyETiZFg9ghQYLajfi =B8HH -----END PGP SIGNATURE----- --E/DnYTRukya0zdZ1-- From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 10:40:56 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A2391065691 for ; Thu, 13 Nov 2008 10:40:56 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA06.westchester.pa.mail.comcast.net (qmta06.westchester.pa.mail.comcast.net [76.96.62.56]) by mx1.freebsd.org (Postfix) with ESMTP id 261D48FC17 for ; Thu, 13 Nov 2008 10:40:55 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA01.westchester.pa.mail.comcast.net ([76.96.62.11]) by QMTA06.westchester.pa.mail.comcast.net with comcast id eaDN1a0050EZKEL56ag9W0; Thu, 13 Nov 2008 10:40:09 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA01.westchester.pa.mail.comcast.net with comcast id eagu1a0052P6wsM3MaguPP; Thu, 13 Nov 2008 10:40:55 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=BkQB1dUM75_zf09Ah6kA:9 a=J1uY52gd92DIS6vZOeIdoHJOzmIA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 4B0695C19; Thu, 13 Nov 2008 02:40:54 -0800 (PST) Date: Thu, 13 Nov 2008 02:40:54 -0800 From: Jeremy Chadwick To: "Ronnel P. Maglasang" Message-ID: <20081113104054.GA17501@icarus.home.lan> References: <491BFB68.7050405@infoweapons.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491BFB68.7050405@infoweapons.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 10:40:56 -0000 On Thu, Nov 13, 2008 at 06:03:20PM +0800, Ronnel P. Maglasang wrote: > Hi All, > > Is there a way to explicitly assign an interrupt > of a device? I'm running on 6.3 and the two NICs > share the same interrupt. Obviously this will affect > the performance if the NICs are exposed to heavy network > traffic. > > # vmstat -i > interrupt total rate > > irq11: em0 vr0+ 1081099 77 > > Total 16958562 1222 > > > Looking at the driver's code, I have the initial though > that this is the place where I can modify. This is the responsibility of the BIOS or ACPI configuration. There is no way to do this via OS software, as far as I know. Try looking at the motherboard manual for what PCI levels (A/B/C/D) share IRQs with what slot, then move cards around. Otherwise, consider purchasing a motherboard that has an APIC (this is not a typo) increasing the IRQ count to 256. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 10:43:41 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3BDFF1065677 for ; Thu, 13 Nov 2008 10:43:41 +0000 (UTC) (envelope-from alex@metrocom.ru) Received: from sioux.metrocom.ru (sioux.metrocom.ru [212.119.162.125]) by mx1.freebsd.org (Postfix) with ESMTP id ACA7A8FC12 for ; Thu, 13 Nov 2008 10:43:40 +0000 (UTC) (envelope-from alex@metrocom.ru) Received: from comanche (comanche.metrocom.ru [195.5.128.155]) (authenticated bits=0) by sioux.metrocom.ru (8.14.3/8.14.3) with ESMTP id mADAhcfb006562; Thu, 13 Nov 2008 13:43:38 +0300 (MSK) Date: Thu, 13 Nov 2008 13:43:38 +0300 (MSK) From: Varshavchick Alexander To: Ivan Voras In-Reply-To: Message-ID: <20081113133157.J52884@comanche.metrocom.ru> References: <20081112145105.T65116@comanche.metrocom.ru> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: FreeBSD 5.4 - filesystem full X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 10:43:41 -0000 On Wed, 12 Nov 2008, Ivan Voras wrote: > I don't know for sure, but here's some generic troubleshooting: > > a) Are you 100% sure there isn't an application that periodically fills the > drive? This would be easiest to solve - all other problems are worse. Yes, I'm sure, anyways there is about 40G free space now on that drive and it's not so easy to suddenly fill it up > b) How is your IO rate at the time you run out of space? Nothing ususial, except I just noticed that at any time, not just when the problem arises, the %slo-z value is about 97-99%. May be it has nothing to do with this problem, but on other similar servers it's not that high. > c) Did you try fsck-ing the file system? Last time two weeks ago the server was rebooted ungracefully and fsck'd in foreground (it has background_fsck="NO"). After that, I didn't have a possibility yet to reboot it in single-user. If I could do it remotely it would help but there is no KVM or anything there. Honestly I'm a bit afraid of doing "kill -1 1" or "reboot -qn". > d) Why can't you upgrade to a more recent version of FreeBSD, like 7.1? The server is in production and there is no other server to substitute it during the downtime. ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)718-3322, 718-3115(fax) From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 11:02:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EDAAD1065691; Thu, 13 Nov 2008 11:02:18 +0000 (UTC) (envelope-from alex@metrocom.ru) Received: from sioux.metrocom.ru (sioux.metrocom.ru [212.119.162.125]) by mx1.freebsd.org (Postfix) with ESMTP id 6E8F78FC17; Thu, 13 Nov 2008 11:02:18 +0000 (UTC) (envelope-from alex@metrocom.ru) Received: from comanche (comanche.metrocom.ru [195.5.128.155]) (authenticated bits=0) by sioux.metrocom.ru (8.14.3/8.14.3) with ESMTP id mADB2Erm008415; Thu, 13 Nov 2008 14:02:14 +0300 (MSK) Date: Thu, 13 Nov 2008 14:02:14 +0300 (MSK) From: Varshavchick Alexander To: Adrian Penisoara In-Reply-To: <78cb3d3f0811120944n5e57cbf5xc1776930aae85c06@mail.gmail.com> Message-ID: <20081113135822.L52884@comanche.metrocom.ru> References: <20081112145105.T65116@comanche.metrocom.ru> <78cb3d3f0811120944n5e57cbf5xc1776930aae85c06@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.4 - filesystem full X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 11:02:19 -0000 On Wed, 12 Nov 2008, Adrian Penisoara wrote: > What kind of applications are you running on the machine ? Are they > mmap'ing files on the filesystem in quesiton (which one ?) ? mainly apache, sphinx's search daemon and several perl scripts > AFAIR even if you delete a big file the disk space may not be > reclaimed if a process still has the file open. but even if you run df -ki in the exact moment of when the filesystem full messages are appearing in the logs, it reports of having 40G free and a lot of free inodes. > > If you reboot the machine or restart some of the applications, does > the issue disappear ? after rebooting during several days the issue doesn't arise, then it repeats again. ---- Alexander Varshavchick, Metrocom Joint Stock Company Phone: (812)718-3322, 718-3115(fax) From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 13:55:03 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17083106564A for ; Thu, 13 Nov 2008 13:55:03 +0000 (UTC) (envelope-from darwinskernel@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.186]) by mx1.freebsd.org (Postfix) with ESMTP id A50218FC14 for ; Thu, 13 Nov 2008 13:55:02 +0000 (UTC) (envelope-from darwinskernel@gmail.com) Received: by ti-out-0910.google.com with SMTP id a1so565315tib.3 for ; Thu, 13 Nov 2008 05:55:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:to:in-reply-to :content-type:content-transfer-encoding:mime-version:subject:date :references:x-mailer:from; bh=Kolh9vAPb1Ulbc+FvQBtvkrjL4+btq9OfIVuq0vQCb8=; b=gzqi10SYjVG99Ollvc78CaJYy+cave/krRb7dUQBN76ufjn1+njg0YvLKCnBqhdSH8 7X0tvii17sgQXgAPcYoPgKJ8HTrZIZegrcQz52ENhk5tLNGy9CUTzQa7bogTlyG1W7Lx ZfyQ333W55I1KLfAzd2DWJvek92tHQixOpE2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:to:in-reply-to:content-type:content-transfer-encoding :mime-version:subject:date:references:x-mailer:from; b=SSpSl6J8cs9CVDXlLmP7oBZ3KG3CldKyUPXg2VTsAYDQu7UoTxaIPLHKYXX4AyR5K6 6DvSwJ65cc/sCct7q8jVJzaJOMSZWTl5Iz6ixEKlPwtQRjmHY4pst6KxMBVbmnRuqkr0 kcKGwRS3jlWBdAWvjkcKM/2T78klxCUaKFVbw= Received: by 10.65.112.18 with SMTP id p18mr9939885qbm.87.1226582527541; Thu, 13 Nov 2008 05:22:07 -0800 (PST) Received: from bas2-montreal45-1177828953.dsl.bell.ca (bas2-montreal45-1177828953.dsl.bell.ca [70.52.62.89]) by mx.google.com with ESMTPS id p9sm17926452qbp.15.2008.11.13.05.22.06 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 05:22:06 -0800 (PST) Message-Id: <318554EF-A7A4-41B6-8B81-6C3B9AFF4013@gmail.com> To: Dan Nelson In-Reply-To: <20081112234345.GL85407@dan.emsphone.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Thu, 13 Nov 2008 08:22:04 -0500 References: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com> <20081112234345.GL85407@dan.emsphone.com> X-Mailer: Apple Mail (2.929.2) From: Charles Darwin X-Mailman-Approved-At: Thu, 13 Nov 2008 14:43:15 +0000 Cc: freebsd-hackers@freebsd.org Subject: Re: Is chflags' "nodump + sunlnk" = "uchg" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 13:55:03 -0000 On 12-Nov-08, at 6:43 PM, Dan Nelson wrote: > In the last episode (Nov 12), Charles Darwin said: >> Hi all, >> >> Title is the question actually: Is chflags' "nodump + sunlnk" = >> "uchg" > > No; why would it be? I mean as far as their effect on a directory; doesn't "Don't change" for a directory mean "Don't add + Don't remove"? Charles From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 16:47:42 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4D841065672 for ; Thu, 13 Nov 2008 16:47:42 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.sonnenberger.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id AB27A8FC18 for ; Thu, 13 Nov 2008 16:47:42 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id 9D5B9666BC for ; Thu, 13 Nov 2008 17:45:55 +0100 (CET) Received: by britannica.bec.de (Postfix, from userid 1000) id D9A39937C2; Thu, 13 Nov 2008 16:40:03 +0100 (CET) Date: Thu, 13 Nov 2008 16:40:03 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20081113154003.GC1750@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <491BFB68.7050405@infoweapons.com> <20081113104054.GA17501@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081113104054.GA17501@icarus.home.lan> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 16:47:43 -0000 On Thu, Nov 13, 2008 at 02:40:54AM -0800, Jeremy Chadwick wrote: > Otherwise, consider purchasing a motherboard that has an APIC (this is > not a typo) increasing the IRQ count to 256. This is wrong. The first IO-APIC gives you 8 additional interrupts to the 16 ISA interrupt lines. Every additional IO-APIC gives you 24 more. Most modern chipsets have one IO-APIC, at least for non-embedded systems. It doesn't mean you don't get interrupt sharing though. Joerg From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 16:56:36 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A37401065677 for ; Thu, 13 Nov 2008 16:56:36 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA08.westchester.pa.mail.comcast.net (qmta08.westchester.pa.mail.comcast.net [76.96.62.80]) by mx1.freebsd.org (Postfix) with ESMTP id BD6E48FC17 for ; Thu, 13 Nov 2008 16:56:34 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA03.westchester.pa.mail.comcast.net ([76.96.62.27]) by QMTA08.westchester.pa.mail.comcast.net with comcast id ec7S1a0080bG4ec58gvyWP; Thu, 13 Nov 2008 16:55:58 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA03.westchester.pa.mail.comcast.net with comcast id egwX1a00C2P6wsM3PgwXMM; Thu, 13 Nov 2008 16:56:32 +0000 X-Authority-Analysis: v=1.0 c=1 a=QycZ5dHgAAAA:8 a=MOSdjJYJR23rC8e5Fy4A:9 a=WfV_lprAH_aP9Mk3ZCctL604WAEA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 260625C19; Thu, 13 Nov 2008 08:56:31 -0800 (PST) Date: Thu, 13 Nov 2008 08:56:31 -0800 From: Jeremy Chadwick To: freebsd-hackers@freebsd.org Message-ID: <20081113165631.GA26469@icarus.home.lan> References: <491BFB68.7050405@infoweapons.com> <20081113104054.GA17501@icarus.home.lan> <20081113154003.GC1750@britannica.bec.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081113154003.GC1750@britannica.bec.de> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 16:56:36 -0000 On Thu, Nov 13, 2008 at 04:40:03PM +0100, Joerg Sonnenberger wrote: > On Thu, Nov 13, 2008 at 02:40:54AM -0800, Jeremy Chadwick wrote: > > Otherwise, consider purchasing a motherboard that has an APIC (this is > > not a typo) increasing the IRQ count to 256. > > This is wrong. The first IO-APIC gives you 8 additional interrupts to > the 16 ISA interrupt lines. Every additional IO-APIC gives you 24 more. > Most modern chipsets have one IO-APIC, at least for non-embedded > systems. It doesn't mean you don't get interrupt sharing though. I think the problem is that I was thinking of local APICs, which provide a few hundred (I don't remember the exact number) IRQs to an I/O APIC. For what it's worth, the devices he listed are exclusively on the PCI bus. Regarding "it means you can still get interrupt sharing", I'd like to hear more about why/how that's possible with a system sporting at least one I/O APIC. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 15:51:12 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A263106564A for ; Thu, 13 Nov 2008 15:51:12 +0000 (UTC) (envelope-from charmik24@googlemail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by mx1.freebsd.org (Postfix) with ESMTP id E0F338FC0C for ; Thu, 13 Nov 2008 15:51:11 +0000 (UTC) (envelope-from charmik24@googlemail.com) Received: by nf-out-0910.google.com with SMTP id h3so614149nfh.33 for ; Thu, 13 Nov 2008 07:51:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:to:subject:date:user-agent:cc :mime-version:content-type:content-transfer-encoding :content-disposition:message-id:from; bh=dPcueqMjFmE/iPWbjKHXJeXoHeKvKzkSdddMQRAZS/4=; b=YCdsrssicuCm8Hs0e2wtiU+kFcmBJiaFGgHp8ia+fHrVVRTm4ozpWy18zaPkadxl+H QUjQ08R+tbjDoFebHzupfnVrsI58HH4QHogyD1XFe9Dk1RdUSr4Enav1qBFR4uC6ohxe d/BTza0jqfPJ33WIgU/R0Xxfq926Mzh7C+gNQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=to:subject:date:user-agent:cc:mime-version:content-type :content-transfer-encoding:content-disposition:message-id:from; b=cWy9vVKZPvL8XKbRmN1Y6oayRThey1tn3xqAsx2vDg68tpvvFRlhBjfG5ditnKsHPG TQUNg81ClUek/KpunAmQloplfFiGvB6vU0+jEKgDGBgdS4nmC/X/SQhpRvLIAIJ6QPA2 +IUuRxfpgrI73bYDNQANsjuGsZprNKRhU4/Yk= Received: by 10.86.84.5 with SMTP id h5mr10057247fgb.10.1226590190059; Thu, 13 Nov 2008 07:29:50 -0800 (PST) Received: from hobos-1.hob.de ([212.185.199.2]) by mx.google.com with ESMTPS id 3sm1136158fge.3.2008.11.13.07.29.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 13 Nov 2008 07:29:49 -0800 (PST) To: freebsd-hackers@freebsd.org Date: Thu, 13 Nov 2008 16:29:44 +0100 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811131629.45106.charmik24@gmail.com> From: "O." X-Mailman-Approved-At: Thu, 13 Nov 2008 17:00:00 +0000 Cc: alec@setfilepointer.com Subject: Patch for working AMD Geode CS5530 audio driver on HEAD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 15:51:12 -0000 Hi Alec, did you find the solution? I have the same problem. Best Regards, O. >I just got around to playing with this again, to no avail: > > **** geode Probe devid 20821022 classid 00000010! > > **** geode Probe devid 20931022 classid 00000004! > > pcm0: port 0xfe00-0xfe7f irq 11 at device 15.3 on pci0 > > **** geode Attach! > > ---> Geode mem regs at fe01 > > **** AUDIO PCI HDR *** > -->Vendor ID =1022 > -->Dev ID =2093 > -->PCI cmd =5 > -->PCI status =2a0 > -->Dev revision =1 > -->PCI class =ffffffff > -->PCI latency =0 > -->PCI header type =0 > -->BIST =0 > --> Register Base address =fe01 > pcm0: calling bus_alloc_resource > pcm0: failed to enable memory mapping! > pcm0: unable to map BAR reg > device_attach: pcm0 attach returned 6 >Anyone got any ideas? Remote access is available upon request. > >-- >Alec Kloss alec at SetFilePointer.com IM: angryspamhater at yahoo.com >PGP key at http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xA241980E >"No Bunny!" -- Simon, http://wiki.adultswim.com/xwiki/bin/Frisky+Dingo/Simon From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 17:39:18 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C57A106567D for ; Thu, 13 Nov 2008 17:39:18 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.sonnenberger.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id 123EE8FC0C for ; Thu, 13 Nov 2008 17:39:18 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.sonnenberger.org [192.168.1.10]) by www.sonnenberger.org (Postfix) with ESMTP id 755AE666BC for ; Thu, 13 Nov 2008 18:37:30 +0100 (CET) Received: by britannica.bec.de (Postfix, from userid 1000) id 16E41937C2; Thu, 13 Nov 2008 18:34:52 +0100 (CET) Date: Thu, 13 Nov 2008 18:34:52 +0100 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20081113173452.GA8646@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: <491BFB68.7050405@infoweapons.com> <20081113104054.GA17501@icarus.home.lan> <20081113154003.GC1750@britannica.bec.de> <20081113165631.GA26469@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081113165631.GA26469@icarus.home.lan> User-Agent: Mutt/1.5.18 (2008-05-17) Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 17:39:18 -0000 On Thu, Nov 13, 2008 at 08:56:31AM -0800, Jeremy Chadwick wrote: > Regarding "it means you can still get interrupt sharing", I'd like to > hear more about why/how that's possible with a system sporting at least > one I/O APIC. You still have a limited number of interrupt lines. Many non-highend mainboards have 4 or 8 interrupt lines. You often have more than 8 PCI devices that want interrupts (e.g. VGA, audio, 3 USB controllers, 1 EHCI contoller and the SATA controller are enough to consume all lines). As soon as you now add a new network devices, you end up sharing PCI lines. The IO-APIC wiring is also often fixed, so it can't be controlled by software. Joerg From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 19:09:28 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26E9E1065678 for ; Thu, 13 Nov 2008 19:09:28 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.freebsd.org (Postfix) with ESMTP id E34BF8FC0C for ; Thu, 13 Nov 2008 19:09:27 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id mADJ9Ru9056135 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 13 Nov 2008 13:09:27 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id mADJ9Plr056132; Thu, 13 Nov 2008 13:09:25 -0600 (CST) (envelope-from dan) Date: Thu, 13 Nov 2008 13:09:25 -0600 From: Dan Nelson To: Charles Darwin Message-ID: <20081113190925.GA22629@dan.emsphone.com> References: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com> <20081112234345.GL85407@dan.emsphone.com> <318554EF-A7A4-41B6-8B81-6C3B9AFF4013@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <318554EF-A7A4-41B6-8B81-6C3B9AFF4013@gmail.com> X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: Is chflags' "nodump + sunlnk" = "uchg" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 19:09:28 -0000 In the last episode (Nov 13), Charles Darwin said: > On 12-Nov-08, at 6:43 PM, Dan Nelson wrote: > > In the last episode (Nov 12), Charles Darwin said: > >> Hi all, > >> > >> Title is the question actually: Is chflags' "nodump + sunlnk" = > >> "uchg" > > > > No; why would it be? > > I mean as far as their effect on a directory; doesn't "Don't change" > for a directory mean "Don't add + Don't remove"? Ok, that's sort of a different question. "nodump" is only checked by /sbin/dump, so we'll skip that. "sunlnk" is a root-only flag, while "uchg" can be set or reset by the file's owner as well. So let's look at "uunlnk" and "uchg": $ mkdir lnk chg $ touch lnk/file1 chg/file1 $ chflags uunlnk lnk ; chflags uchg chg $ ls -lo total 8 drwxr-xr-x 4 dan wheel - 512 Nov 13 12:59 ./ drwxrwxrwt 24 root wheel - 1024 Nov 13 12:59 ../ drwxr-xr-x 2 dan wheel uchg 512 Nov 13 12:59 chg/ drwxr-xr-x 2 dan wheel uunlnk 512 Nov 13 12:59 lnk/ $ rm chg/file1 rm: chg/file1: Operation not permitted $ rm lnk/file1 $ touch chg/file2 touch: chg/file2: Operation not permitted $ touch lnk/file2 $ rm lnk/file2 $ mv chg chg1 mv: rename chg to chg1: Operation not permitted $ mv lnk lnk1 mv: rename lnk to lnk1: Operation not permitted $ rmdir chg rmdir: chg: Operation not permitted $ rmdir lnk rmdir: lnk: Operation not permitted So as far as directories are concerned, the only difference between uchg and uunlnk is that uchg prohibits creation and deletion of files inside it, and uunlnk allows it. You can also look at /sys/ufs/ufs/ufs_vnops.c and see what code looks at which flags. -- Dan Nelson dnelson@allantgroup.com From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 19:30:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 542B2106568C for ; Thu, 13 Nov 2008 19:30:33 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from kientzle.com (kientzle.com [66.166.149.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7ABC28FC1D for ; Thu, 13 Nov 2008 19:30:31 +0000 (UTC) (envelope-from kientzle@freebsd.org) Received: from [10.123.2.178] (p53.kientzle.com [66.166.149.53]) by kientzle.com (8.12.9/8.12.9) with ESMTP id mADJTntv084842; Thu, 13 Nov 2008 11:29:50 -0800 (PST) (envelope-from kientzle@freebsd.org) Message-ID: <491C8028.9030303@freebsd.org> Date: Thu, 13 Nov 2008 11:29:44 -0800 From: Tim Kientzle User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <99926641-6491-4F76-B2D2-73B1C6D52033@gmail.com> <20081112234345.GL85407@dan.emsphone.com> <318554EF-A7A4-41B6-8B81-6C3B9AFF4013@gmail.com> <20081113190925.GA22629@dan.emsphone.com> In-Reply-To: <20081113190925.GA22629@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-hackers@freebsd.org, Charles Darwin Subject: Re: Is chflags' "nodump + sunlnk" = "uchg" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 19:30:33 -0000 > Ok, that's sort of a different question. "nodump" is only checked by > /sbin/dump.... tar obeys the nodump flag as well if you specify the --nodump option. Hmmm... Now that I think of it, cpio should also have that option; I'll put that on my TODO list. Tim From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 19:47:07 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 353EA1065677; Thu, 13 Nov 2008 19:47:07 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id B29948FC17; Thu, 13 Nov 2008 19:47:06 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mADJkO2s096236; Thu, 13 Nov 2008 14:47:00 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hardware@freebsd.org Date: Thu, 13 Nov 2008 14:41:16 -0500 User-Agent: KMail/1.9.7 References: <491BFB68.7050405@infoweapons.com> In-Reply-To: <491BFB68.7050405@infoweapons.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811131441.16427.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 13 Nov 2008 14:47:00 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8628/Thu Nov 13 10:57:02 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, "Ronnel P. Maglasang" Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 19:47:07 -0000 On Thursday 13 November 2008 05:03:20 am Ronnel P. Maglasang wrote: > Hi All, > > Is there a way to explicitly assign an interrupt > of a device? I'm running on 6.3 and the two NICs > share the same interrupt. Obviously this will affect > the performance if the NICs are exposed to heavy network > traffic. > > # vmstat -i > interrupt total rate > > irq11: em0 vr0+ 1081099 77 > > Total 16958562 1222 > > > Looking at the driver's code, I have the initial though > that this is the place where I can modify. > > -- > adapter->res_interrupt = bus_alloc_resource_any(dev, > SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); > -- > > I've tried changing RF_SHAREABLE to RF_ALLOCATED or other > values but still could not get the desired result and worst > the device fail to initialize. Is this possible in 6.3? You can not easily assign them, no. In many cases the interrupt pins from the devices may be hardwired to a single input pin on an interrupt controller. In that case there is nothing you can do. You can read more about the gory details here: http://people.freebsd.org/~jhb/papers/bsdcan/2007/ -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 20:12:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA8A31065676 for ; Thu, 13 Nov 2008 20:12:15 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id C203C8FC1F for ; Thu, 13 Nov 2008 20:12:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mADKC6bb096430; Thu, 13 Nov 2008 15:12:07 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 13 Nov 2008 15:02:04 -0500 User-Agent: KMail/1.9.7 References: <200811121823.14400.marc.loerner@hob.de> In-Reply-To: <200811121823.14400.marc.loerner@hob.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200811131502.04370.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 13 Nov 2008 15:12:08 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8628/Thu Nov 13 10:57:02 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Marc =?iso-8859-1?q?L=F6rner?= Subject: Re: ide with DMA and ram > 4GB X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 20:12:15 -0000 On Wednesday 12 November 2008 12:23:14 pm Marc L=F6rner wrote: > Hello, > I just stepped over a problem with my IDE disk running in DMA-mode > and having more than 4GB of RAM. > It seems that the whole way down GEOM, ata-disk, ata-dma never is checked > whether physical address of buffer is less than 4GB an so fits in 32bits. > =3D> when PRD is set the address is rigorously truncated to fit into 32bi= t, > with buffer < 4GB all is quite fine. bus_dmamap_load() in ata-dma.c should result in bounce pages being allocate= d=20 and having the data copied to pages below 4GB and having those addresses=20 passed to the callback and stored in the PRD. =2D-=20 John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 20:12:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB926106564A for ; Thu, 13 Nov 2008 20:12:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 605838FC19 for ; Thu, 13 Nov 2008 20:12:22 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mADKC6bc096430; Thu, 13 Nov 2008 15:12:14 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 13 Nov 2008 15:03:53 -0500 User-Agent: KMail/1.9.7 References: <491BFB68.7050405@infoweapons.com> <20081113104054.GA17501@icarus.home.lan> <20081113154003.GC1750@britannica.bec.de> In-Reply-To: <20081113154003.GC1750@britannica.bec.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811131503.53975.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 13 Nov 2008 15:12:14 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8628/Thu Nov 13 10:57:02 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Joerg Sonnenberger Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 20:12:22 -0000 On Thursday 13 November 2008 10:40:03 am Joerg Sonnenberger wrote: > On Thu, Nov 13, 2008 at 02:40:54AM -0800, Jeremy Chadwick wrote: > > Otherwise, consider purchasing a motherboard that has an APIC (this is > > not a typo) increasing the IRQ count to 256. > > This is wrong. The first IO-APIC gives you 8 additional interrupts to > the 16 ISA interrupt lines. Every additional IO-APIC gives you 24 more. > Most modern chipsets have one IO-APIC, at least for non-embedded > systems. It doesn't mean you don't get interrupt sharing though. I/O APICs are not hardwired to 24 pins. Early Pentium SMP systems actually only had 16 pins on their I/O APICs. I've seen I/O APICs with 32 pins, etc. There is a register in the I/O APIC that lets software know how many pins it contains. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 20:12:26 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D249E1065674; Thu, 13 Nov 2008 20:12:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 564E28FC1A; Thu, 13 Nov 2008 20:12:26 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mADKC6bd096430; Thu, 13 Nov 2008 15:12:20 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Thu, 13 Nov 2008 15:09:22 -0500 User-Agent: KMail/1.9.7 References: <491BFB68.7050405@infoweapons.com> <20081113154003.GC1750@britannica.bec.de> <20081113165631.GA26469@icarus.home.lan> In-Reply-To: <20081113165631.GA26469@icarus.home.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811131509.22976.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Thu, 13 Nov 2008 15:12:20 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8628/Thu Nov 13 10:57:02 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Jeremy Chadwick Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 20:12:26 -0000 On Thursday 13 November 2008 11:56:31 am Jeremy Chadwick wrote: > On Thu, Nov 13, 2008 at 04:40:03PM +0100, Joerg Sonnenberger wrote: > > On Thu, Nov 13, 2008 at 02:40:54AM -0800, Jeremy Chadwick wrote: > > > Otherwise, consider purchasing a motherboard that has an APIC (this is > > > not a typo) increasing the IRQ count to 256. > > > > This is wrong. The first IO-APIC gives you 8 additional interrupts to > > the 16 ISA interrupt lines. Every additional IO-APIC gives you 24 more. > > Most modern chipsets have one IO-APIC, at least for non-embedded > > systems. It doesn't mean you don't get interrupt sharing though. > > I think the problem is that I was thinking of local APICs, which provide > a few hundred (I don't remember the exact number) IRQs to an I/O APIC. It doesn't really work that way. While local APICs do have interrupt pins, they are used for things like NMI or interrupt requests from the 8259As. I/O APIC interrupts (and MSI interrupts) are delivered as messages to the local APIC. For older APIC systems (< PII-Xeon) there was a dedicated 3-wire bus between the local and I/O APICs on which these messages were delivered. For newer systems the APIC messages are actually passed on the main system bus. Part of the message contains the IDT vector to be triggered for this interrupt (which ranges from 0 - 255, but 0 - 31 are reserved for CPU faults and exceptions). IRQ numbers are a made up cookie system that FreeBSD uses to number interrupt sources (pins on interrupt controllers like 8259A or I/O APICs, or MSI messages on PCI devices). > Regarding "it means you can still get interrupt sharing", I'd like to > hear more about why/how that's possible with a system sporting at least > one I/O APIC. The motherboard is free to tie the interrupts pins from two different PCI devices to a single input pin on the I/O APIC. There is no hard requirement that each device gets a dedicated pin. -- John Baldwin From owner-freebsd-hackers@FreeBSD.ORG Thu Nov 13 21:40:04 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1C6A4106567D for ; Thu, 13 Nov 2008 21:40:04 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id BDE278FC1C for ; Thu, 13 Nov 2008 21:40:03 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1L0jv0-0000HS-F2 for freebsd-hackers@freebsd.org; Thu, 13 Nov 2008 21:40:02 +0000 Received: from 93-138-121-139.adsl.net.t-com.hr ([93.138.121.139]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 21:40:02 +0000 Received: from ivoras by 93-138-121-139.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 13 Nov 2008 21:40:02 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Ivan Voras Date: Thu, 13 Nov 2008 22:34:38 +0100 Lines: 66 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigAE6A6262578BE2789691D2E7" X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 93-138-121-139.adsl.net.t-com.hr User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) In-Reply-To: X-Enigmail-Version: 0.95.7 Sender: news Cc: freebsd-questions@freebsd.org Subject: Re: 128 Bucket Failures? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Nov 2008 21:40:04 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAE6A6262578BE2789691D2E7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Chris Pratt wrote: > I have asked this before a couple of years ago but received no > replies. I assumed that's because it's a somewhat obscure question. > I'm still interested and thought I might try again in case someone > new is watching this list who might know. >=20 > A vmstat -z on my highest traffic server always shows the failures > as below on 128 Bucket. It also goes to having 0 free rather soon > after the system is restarted and never returns to having more than > 1 free in that column and yet always has the highest number of > requests by far. Does this mean anything significant? Is it > something I should tune or even can be tuned? UMA buckets seem to be some kind of cache for SMP-optimized allocations - I hope someone who knows it better will explain them. > Here is the output of the vmstat -z with everything chopped out > besides the 128 Bucket line. The machine it's on is an 8 core 8 GB > Tyan and shouldn't really be starved for anything in my way of thinking= =2E >=20 > vmstat -z > ITEM SIZE LIMIT USED FREE REQUESTS = FAILURES >=20 > 128 Bucket: 1048, 0, 2043, 0, 13591, = 6511069 What is the server used for? Here's a snapshot from a very loaded apache+php+pgsql web server, uptime 60 days (since the last power outage): 16 Bucket: 76, 0, 42, 58, 125, 0 32 Bucket: 140, 0, 76, 64, 183, 0 64 Bucket: 268, 0, 74, 38, 438, 11 128 Bucket: 524, 0, 2060, 642, 788828, 6985 A generic advice would be to increase vm.kmem_size (you're using AMD64, right?) and see what happens. --------------enigAE6A6262578BE2789691D2E7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkcnW4ACgkQldnAQVacBchxCQCeOS5FKqQwoOrdNnZUpAQ+q0dx a7sAn1H5KrZVUKwKOkb4uVB/aSCmzWxt =RJ3Z -----END PGP SIGNATURE----- --------------enigAE6A6262578BE2789691D2E7-- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 07:05:22 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A69B01065670 for ; Fri, 14 Nov 2008 07:05:22 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id 7C2BC8FC14 for ; Fri, 14 Nov 2008 07:05:22 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mAE75L606015 for ; Thu, 13 Nov 2008 23:05:21 -0800 (PST) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mAE75LU26915 for ; Thu, 13 Nov 2008 23:05:21 -0800 (PST) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Thu, 13 Nov 2008 23:05:21 -0800 (PST) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: freebsd-hackers@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Unprivileged user can't set sticky bit on a file; why? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 07:05:22 -0000 Hi folks, FreeBSD doesn't allow an unprivileged user to set the sticky bit (mode S_ISTXT, octal 01000) on a file, though it does allow root to do so. nate@vulcan:/tmp$ chmod +t foo chmod: foo: Inappropriate file type or format nate@vulcan:/tmp$ su Password: vulcan# chmod +t foo vulcan# ls -l foo -rw-r--r-T 1 nate wheel 0 Nov 13 22:46 foo Why is this? I don't expect the sticky bit to actually do anything on a regular file in this day and age (I know what its historical behavior was, and what it does for directories), but I'd think it would be harmless to set it. Linux lets a user set the sticky bit, and Solaris silently masks it off. I came across this when trying to rsync some files which had the sticky bit set on the remote side. (It's the historical Unix archive from tuhs.org; the files in question are part of an unpacked V7 UNIX installation, for which the sticky bit of course had meaning. :-) ) It's annoying that this makes rsync fail; it messes up my mirroring script. sticky(8) says the bit "is ignored for regular files", which evidently isn't accurate. chmod(2) says "on UFS-based file systems (FFS, LFS) the sticky bit may only be set upon directories", which isn't right either since root is able to do it. src/sys/ufs/ufs/ufs_vnops.c has the following comment: /* * Privileged processes may set the sticky bit on non-directories, * as well as set the setgid bit on a file with a group that the * process is not a member of. Both of these are allowed in * jail(8). */ but does not explain why unprivileged process should be forbidden to set the sticky bit. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 08:26:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8A4B61065672; Fri, 14 Nov 2008 08:26:46 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: from infoweapons.com (mail0.infoweapons.net [204.2.248.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2A95A8FC18; Fri, 14 Nov 2008 08:26:45 +0000 (UTC) (envelope-from rmaglasang@infoweapons.com) Received: from ([58.71.34.146]) by mail0.infoweapons.com with ESMTP id 4321444.1331974; Fri, 14 Nov 2008 03:26:19 -0500 Received: from [10.3.1.41] ([10.3.1.41]) by cebexch01.cebu.infoweapons.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Fri, 14 Nov 2008 16:26:19 +0800 Message-ID: <491D356A.70607@infoweapons.com> Date: Fri, 14 Nov 2008 16:23:06 +0800 From: "Ronnel P. Maglasang" User-Agent: Thunderbird 1.5 (X11/20060613) MIME-Version: 1.0 To: John Baldwin References: <491BFB68.7050405@infoweapons.com> <200811131441.16427.jhb@freebsd.org> In-Reply-To: <200811131441.16427.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 14 Nov 2008 08:26:19.0417 (UTC) FILETIME=[AB5E6890:01C94632] Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 08:26:46 -0000 John Baldwin wrote: > On Thursday 13 November 2008 05:03:20 am Ronnel P. Maglasang wrote: > >> Hi All, >> >> Is there a way to explicitly assign an interrupt >> of a device? I'm running on 6.3 and the two NICs >> share the same interrupt. Obviously this will affect >> the performance if the NICs are exposed to heavy network >> traffic. >> >> # vmstat -i >> interrupt total rate >> >> irq11: em0 vr0+ 1081099 77 >> >> Total 16958562 1222 >> >> >> Looking at the driver's code, I have the initial though >> that this is the place where I can modify. >> >> -- >> adapter->res_interrupt = bus_alloc_resource_any(dev, >> SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); >> -- >> >> I've tried changing RF_SHAREABLE to RF_ALLOCATED or other >> values but still could not get the desired result and worst >> the device fail to initialize. Is this possible in 6.3? >> > > You can not easily assign them, no. In many cases the interrupt pins from the > devices may be hardwired to a single input pin on an interrupt controller. > In that case there is nothing you can do. You can read more about the gory > details here: > > http://people.freebsd.org/~jhb/papers/bsdcan/2007/ > > What was changed in 7.x in terms of assigning interrupts? I have another box running on 7.0 (2 NICs). I noticed there are no devices sharing interrupts. But if 6.x is installed on the same box (previous installation), the two NICs will share the same interrupt. I'm now looking at the drivers. I assume this is not NIC-firmware related. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 08:45:13 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4C80D106564A for ; Fri, 14 Nov 2008 08:45:13 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 0074E8FC0C for ; Fri, 14 Nov 2008 08:45:12 +0000 (UTC) (envelope-from freebsd-hackers@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L0uIf-0004eB-6A for freebsd-hackers@freebsd.org; Fri, 14 Nov 2008 08:45:09 +0000 Received: from utwig.xim.bz ([195.184.197.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Nov 2008 08:45:09 +0000 Received: from c.kworr by utwig.xim.bz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 14 Nov 2008 08:45:09 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-hackers@freebsd.org From: Volodymyr Kostyrko Date: Fri, 14 Nov 2008 10:45:02 +0200 Lines: 13 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: utwig.xim.bz User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; ru-RU; rv:1.8.1.17) Gecko/20081110 SeaMonkey/1.1.12 In-Reply-To: Sender: news Subject: Re: Unprivileged user can't set sticky bit on a file; why? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 08:45:13 -0000 Nate Eldredge wrote: > I came across this when trying to rsync some files which had the sticky > bit set on the remote side. (It's the historical Unix archive from > tuhs.org; the files in question are part of an unpacked V7 UNIX > installation, for which the sticky bit of course had meaning. :-) ) > It's annoying that this makes rsync fail; it messes up my mirroring script. You can ask rsync to change file attributes on the fly with the --chmod option. Just my 2c. -- Sphinx of black quartz judge my vow. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 09:01:46 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEBAA106567B for ; Fri, 14 Nov 2008 09:01:46 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from euclid.ucsd.edu (euclid.ucsd.edu [132.239.145.52]) by mx1.freebsd.org (Postfix) with ESMTP id BD8CB8FC14 for ; Fri, 14 Nov 2008 09:01:46 +0000 (UTC) (envelope-from neldredge@math.ucsd.edu) Received: from zeno.ucsd.edu (zeno.ucsd.edu [132.239.145.22]) by euclid.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mAE91j617009; Fri, 14 Nov 2008 01:01:45 -0800 (PST) Received: from localhost (neldredg@localhost) by zeno.ucsd.edu (8.11.7p3+Sun/8.11.7) with ESMTP id mAE91jx27079; Fri, 14 Nov 2008 01:01:45 -0800 (PST) X-Authentication-Warning: zeno.ucsd.edu: neldredg owned process doing -bs Date: Fri, 14 Nov 2008 01:01:45 -0800 (PST) From: Nate Eldredge X-X-Sender: neldredg@zeno.ucsd.edu To: Volodymyr Kostyrko In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-hackers@freebsd.org Subject: Re: Unprivileged user can't set sticky bit on a file; why? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 09:01:47 -0000 On Fri, 14 Nov 2008, Volodymyr Kostyrko wrote: > Nate Eldredge wrote: > >> I came across this when trying to rsync some files which had the sticky bit >> set on the remote side. (It's the historical Unix archive from tuhs.org; >> the files in question are part of an unpacked V7 UNIX installation, for >> which the sticky bit of course had meaning. :-) ) It's annoying that this >> makes rsync fail; it messes up my mirroring script. > > You can ask rsync to change file attributes on the fly with the --chmod > option. Just my 2c. Thanks for this hint. "--chmod=F-t" solves my problem. But I am still curious about this behavior. -- Nate Eldredge neldredge@math.ucsd.edu From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 09:54:49 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34A361065677 for ; Fri, 14 Nov 2008 09:54:49 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [IPv6:2001:770:10:300::86e2:510b]) by mx1.freebsd.org (Postfix) with SMTP id 81F918FC12 for ; Fri, 14 Nov 2008 09:54:48 +0000 (UTC) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie ([134.226.81.10] helo=walton.maths.tcd.ie) by salmon.maths.tcd.ie with SMTP id ; 14 Nov 2008 09:54:46 +0000 (GMT) Date: Fri, 14 Nov 2008 09:54:45 +0000 From: David Malone To: Nate Eldredge Message-ID: <20081114095445.GA69339@walton.maths.tcd.ie> References: 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 Subject: Re: Unprivileged user can't set sticky bit on a file; why? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 09:54:49 -0000 On Thu, Nov 13, 2008 at 11:05:21PM -0800, Nate Eldredge wrote: > since root is able to do it. src/sys/ufs/ufs/ufs_vnops.c has the > following comment: > > /* > * Privileged processes may set the sticky bit on non-directories, > * as well as set the setgid bit on a file with a group that the > * process is not a member of. Both of these are allowed in > * jail(8). > */ > > but does not explain why unprivileged process should be forbidden to set > the sticky bit. I'm guessing a little, but this check has been there since the first revision of ufs_vnops.c in FreeBSD, see: http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/ufs/ufs/ufs_vnops.c?annotate=1.1 line 424. When this was imported, there was still a call to vnode_pager_uncache based on the sticky bit a few lines down. This may explain why the check was there at the time - it was to stop ordinary users giving hints to the pager system. David. From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 13:25:25 2008 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 59CC8106567A for ; Fri, 14 Nov 2008 13:25:25 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id 1FF828FC14 for ; Fri, 14 Nov 2008 13:25:25 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id D5CC9730A1; Fri, 14 Nov 2008 14:12:17 +0100 (CET) Date: Fri, 14 Nov 2008 14:12:17 +0100 From: Luigi Rizzo To: hackers@freebsd.org Message-ID: <20081114131217.GA62275@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: convert bootable freebsd iso to bootable flash image X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 13:25:25 -0000 Just in case people have a similar need, or can point me to better code to do the same job: i needed to convert a bootable FreeBSD iso image into a bootable flash image, and have come up with the following code (derived from PicoBSD). The nice part is that this is all done without requiring root permissions -- the iso extraction is done with bsdtar, the file system is created using makefs, and the other patching is done with bsdlabel and dd. Now i need to find something similar to convert a bootable linux image and a bootable DOS image :) cheers luigi ----------- cut here -------------------------------- #!/bin/sh # convert a FreeBSD iso to flash image # # based on picobsd tricks. # requires makefs, bsdlabel, bsdtar, sed and dd MAKEFS=makefs MKLABEL=bsdlabel BSDTAR=tar make_freebsd_image() { # tree imagefile local tree=$1 local imagefile=$2 local boot1=${tree}/boot/boot1 local boot2=${tree}/boot/boot2 echo "convert tree $tree image $img" ${MAKEFS} -t ffs -o bsize=4096 -o fsize=512 \ -f 50 ${imagefile} ${tree} ${MKLABEL} -w -f ${imagefile} auto # write a label # copy partition c: into a: with some sed magic ${MKLABEL} -f ${imagefile} | sed -e '/ c:/{p;s/c:/a:/;}' | \ ${MKLABEL} -R -f ${imagefile} /dev/stdin # dump the primary and secondary boot (primary is 512 bytes) dd if=${boot1} of=${imagefile} conv=notrunc 2>/dev/null # XXX secondary starts after the 0x114 = dec 276 bytes of the label # so we skip 276 from the source, and 276+512=788 from dst # the old style blocks used 512 and 1024 respectively dd if=${boot2} iseek=1 ibs=276 2> /dev/null | \ dd of=${imagefile} oseek=1 obs=788 conv=notrunc 2>/dev/null } tree=$1 image=$2 if [ -f $1 ] ; then echo "Extract files from ${image}" tmp="${image}.tree" mkdir -p $tmp (cd $tmp && ${BSDTAR} xf $tree) tree=$tmp fi make_freebsd_image $tree $image [ -d "$tmp" ] && (chmod -R +w $tmp && rm -rf $tmp) #------ end of fil -------------------------------- From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 14 23:14:47 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CAFA1065672 for ; Fri, 14 Nov 2008 23:14:47 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mta5.srv.hcvlny.cv.net (mta5.srv.hcvlny.cv.net [167.206.4.200]) by mx1.freebsd.org (Postfix) with ESMTP id 18EF48FC0A for ; Fri, 14 Nov 2008 23:14:46 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from flosoft.no-ip.biz (ool-435559b8.dyn.optonline.net [67.85.89.184]) by mta5.srv.hcvlny.cv.net (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTP id <0KAC00LAWHUGN430@mta5.srv.hcvlny.cv.net> for freebsd-hackers@freebsd.org; Fri, 14 Nov 2008 17:44:41 -0500 (EST) Received: from flosoft.no-ip.biz (localhost [127.0.0.1]) by flosoft.no-ip.biz (8.14.3/8.14.3) with ESMTP id mAEMidrS016911; Fri, 14 Nov 2008 17:44:40 -0500 Date: Fri, 14 Nov 2008 17:44:39 -0500 From: "Aryeh M. Friedman" To: freebsd-hackers@freebsd.org Message-id: <491DFF57.5080204@gmail.com> Organization: FloSoft Systems MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT X-Enigmail-Version: 0.95.7 User-Agent: Thunderbird 2.0.0.17 (X11/20081027) Subject: looking for something like a union file system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: aryeh.friedman@gmail.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 23:14:47 -0000 I am using a dev tool that maintains a "split" source tree for currently worked on files and those in the repo (aegis which is slightly different then how svn or cvs does it) and my the default build system assumes it is all in one tree.... thus I want someway of merge the two dirs and have a copy on write via a special command for it (i.e. if I start to edit foo.c it automatically checks it out for me).... any ideas? From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 15 13:12:52 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 33B331065676 for ; Sat, 15 Nov 2008 13:12:52 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from n60.bullet.mail.sp1.yahoo.com (n60.bullet.mail.sp1.yahoo.com [98.136.44.40]) by mx1.freebsd.org (Postfix) with SMTP id 156548FC14 for ; Sat, 15 Nov 2008 13:12:52 +0000 (UTC) (envelope-from won.derick@yahoo.com) Received: from [69.147.65.150] by n60.bullet.mail.sp1.yahoo.com with NNFMP; 15 Nov 2008 12:59:16 -0000 Received: from [69.147.65.154] by t7.bullet.mail.sp1.yahoo.com with NNFMP; 15 Nov 2008 12:59:16 -0000 Received: from [127.0.0.1] by omp402.mail.sp1.yahoo.com with NNFMP; 15 Nov 2008 12:59:16 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 704527.84552.bm@omp402.mail.sp1.yahoo.com Received: (qmail 55775 invoked by uid 60001); 15 Nov 2008 12:59:16 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=vosLa0F/z4Dr9R8QcCOLcp6rYXSOXLqOK70hcyxB4+dC6QxWg7OCoOq1i7g/m6r9WGzQwtT0a6OmSs/pnpJF1zLogV4pTAwc8y99yfqmEpv0oRJFlFgI5PfVoLi5/pO+kaLE6TxUxt3La/RPy7js1kR5lY6NMncQoppWc+9XiNs=; X-YMail-OSG: l8EQ_mEVM1lcAnGXgdUNkAVJGtxXOrahPLYH263TrO6QJyF5wbLPXtQVciKgjXHwqJ5x65SRiG5iVMqw29JKxREBV1r0TfPH8l2c2NSL8XqNxzC.FasxjwWCV2yjlscmWLfcfQ-- Received: from [58.71.34.137] by web45804.mail.sp1.yahoo.com via HTTP; Sat, 15 Nov 2008 04:59:16 PST X-Mailer: YahooMailRC/1155.29 YahooMailWebService/0.7.260.1 Date: Sat, 15 Nov 2008 04:59:16 -0800 (PST) From: Won De Erick To: rwatson@freebsd.org, freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <557765.55617.qm@web45804.mail.sp1.yahoo.com> X-Mailman-Approved-At: Sat, 15 Nov 2008 13:41:17 +0000 Cc: Subject: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2008 13:12:52 -0000 Hello, I tested HP DL 585 (16 CPUs, w/ built-in Broadcom NICs) running FreeBSD 7.1 Beta2 under heavy network traffic (TCP). SCENARIO A : Bombarded w/ TCP traffic: When net.isr.direct=1, PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 52 root 1 -68 - 0K 16K CPU11 b 38:43 95.36% irq32: bce1 51 root 1 -68 - 0K 16K CPU10 a 25:50 85.16% irq31: bce0 16 root 1 171 ki31 0K 16K RUN a 65:39 15.97% idle: cpu10 28 root 1 -32 - 0K 16K WAIT 8 12:28 5.18% swi4: clock sio 15 root 1 171 ki31 0K 16K RUN b 52:46 3.76% idle: cpu11 45 root 1 -64 - 0K 16K WAIT 7 7:29 1.17% irq17: uhci0 47 root 1 -64 - 0K 16K WAIT 6 1:11 0.10% irq16: ciss0 27 root 1 -44 - 0K 16K WAIT 0 28:52 0.00% swi1: net When net.isr.direct=0, 16 root 1 171 ki31 0K 16K CPU10 a 106:46 92.58% idle: cpu10 19 root 1 171 ki31 0K 16K CPU7 7 133:37 89.16% idle: cpu7 27 root 1 -44 - 0K 16K WAIT 0 52:20 76.37% swi1: net 25 root 1 171 ki31 0K 16K RUN 1 132:30 70.26% idle: cpu1 26 root 1 171 ki31 0K 16K CPU0 0 111:58 64.36% idle: cpu0 15 root 1 171 ki31 0K 16K CPU11 b 81:09 57.76% idle: cpu11 52 root 1 -68 - 0K 16K WAIT b 64:00 42.97% irq32: bce1 51 root 1 -68 - 0K 16K WAIT a 38:22 12.26% irq31: bce0 45 root 1 -64 - 0K 16K WAIT 7 11:31 12.06% irq17: uhci0 47 root 1 -64 - 0K 16K WAIT 6 1:54 3.66% irq16: ciss0 28 root 1 -32 - 0K 16K WAIT 8 16:01 0.00% swi4: clock sio Overall CPU utilization has significantly dropped, but I noticed that swi1 has taken CPU0 with high utilization when the net.isr.direct=0. What does this mean? SCENARIO B : Bombarded w/ more TCP traffic: Worst thing, the box has become unresponsive (can't be PINGed, inaccessible through SSH) after more traffic was added retaining net.isr.direct=0. This is due maybe to the 100% utilization on CPU0 for sw1:net (see below result, first line). bce's and swi's seem to race each other based on the result when net.isr.direct=1, swi1 . The rest of the CPUs are sitting pretty (100% Idle). Can you shed some lights on this? When net.isr.direct=0: 27 root 1 -44 - 0K 16K CPU0 0 5:45 100.00% swi1: net 11 root 1 171 ki31 0K 16K CPU15 0 0:00 100.00% idle: cpu15 13 root 1 171 ki31 0K 16K CPU13 0 0:00 100.00% idle: cpu13 17 root 1 171 ki31 0K 16K CPU9 0 0:00 100.00% idle: cpu9 18 root 1 171 ki31 0K 16K CPU8 0 0:00 100.00% idle: cpu8 21 root 1 171 ki31 0K 16K CPU5 5 146:17 99.17% idle: cpu5 22 root 1 171 ki31 0K 16K CPU4 4 146:17 99.07% idle: cpu4 14 root 1 171 ki31 0K 16K CPU12 0 0:00 99.07% idle: cpu12 16 root 1 171 ki31 0K 16K CPU10 a 109:33 98.88% idle: cpu10 15 root 1 171 ki31 0K 16K CPU11 b 86:36 93.55% idle: cpu11 52 root 1 -68 - 0K 16K WAIT b 59:42 13.87% irq32: bce1 When net.isr.direct=1, 52 root 1 -68 - 0K 16K CPU11 b 55:04 97.66% irq32: bce1 51 root 1 -68 - 0K 16K CPU10 a 33:52 73.88% irq31: bce0 16 root 1 171 ki31 0K 16K RUN a 102:42 26.86% idle: cpu10 15 root 1 171 ki31 0K 16K RUN b 81:20 3.17% idle: cpu11 28 root 1 -32 - 0K 16K WAIT e 13:40 0.00% swi4: clock sio With regards to bandwidth in all scenarios above, the result is extremely low (expected is several hundred Mb/s). Why? - iface Rx Tx Total ============================================================================== bce0: 4.69 Mb/s 10.49 Mb/s 15.18 Mb/s bce1: 20.66 Mb/s 4.68 Mb/s 25.34 Mb/s lo0: 0.00 b/s 0.00 b/s 0.00 b/s ------------------------------------------------------------------------------ total: 25.35 Mb/s 15.17 Mb/s 40.52 Mb/s Thanks, Won From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 15 14:16:33 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 252E31065676 for ; Sat, 15 Nov 2008 14:16:33 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 054538FC13 for ; Sat, 15 Nov 2008 14:16:32 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA07.emeryville.ca.mail.comcast.net ([76.96.30.59]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id fR1j1a00D1GXsucA2SGYeL; Sat, 15 Nov 2008 14:16:32 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA07.emeryville.ca.mail.comcast.net with comcast id fSGX1a00e2P6wsM8TSGYHo; Sat, 15 Nov 2008 14:16:32 +0000 X-Authority-Analysis: v=1.0 c=1 a=D7BnoSEztr8A:10 a=PY3dsxDcbPIA:10 a=QycZ5dHgAAAA:8 a=pcdEu0y90Fz5yIlzmu8A:9 a=jmAEA2jMC8ohCgYNSSBOD4mtElkA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id D045B33C36; Sat, 15 Nov 2008 06:16:31 -0800 (PST) Date: Sat, 15 Nov 2008 06:16:31 -0800 From: Jeremy Chadwick To: Won De Erick Message-ID: <20081115141631.GA75733@icarus.home.lan> References: <557765.55617.qm@web45804.mail.sp1.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <557765.55617.qm@web45804.mail.sp1.yahoo.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org, rwatson@freebsd.org Subject: Re: NET.ISR and CPU utilization performance w/ HP DL 585 using FreeBSD 7.1 Beta2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2008 14:16:33 -0000 On Sat, Nov 15, 2008 at 04:59:16AM -0800, Won De Erick wrote: > Hello, > > I tested HP DL 585 (16 CPUs, w/ built-in Broadcom NICs) running FreeBSD 7.1 Beta2 under heavy network traffic (TCP). > > SCENARIO A : Bombarded w/ TCP traffic: > > When net.isr.direct=1, > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 52 root 1 -68 - 0K 16K CPU11 b 38:43 95.36% irq32: bce1 > 51 root 1 -68 - 0K 16K CPU10 a 25:50 85.16% irq31: bce0 > 16 root 1 171 ki31 0K 16K RUN a 65:39 15.97% idle: cpu10 > 28 root 1 -32 - 0K 16K WAIT 8 12:28 5.18% swi4: clock sio > 15 root 1 171 ki31 0K 16K RUN b 52:46 3.76% idle: cpu11 > 45 root 1 -64 - 0K 16K WAIT 7 7:29 1.17% irq17: uhci0 > 47 root 1 -64 - 0K 16K WAIT 6 1:11 0.10% irq16: ciss0 > 27 root 1 -44 - 0K 16K WAIT 0 28:52 0.00% swi1: net > > When net.isr.direct=0, > > 16 root 1 171 ki31 0K 16K CPU10 a 106:46 92.58% idle: cpu10 > 19 root 1 171 ki31 0K 16K CPU7 7 133:37 89.16% idle: cpu7 > 27 root 1 -44 - 0K 16K WAIT 0 52:20 76.37% swi1: net > 25 root 1 171 ki31 0K 16K RUN 1 132:30 70.26% idle: cpu1 > 26 root 1 171 ki31 0K 16K CPU0 0 111:58 64.36% idle: cpu0 > 15 root 1 171 ki31 0K 16K CPU11 b 81:09 57.76% idle: cpu11 > 52 root 1 -68 - 0K 16K WAIT b 64:00 42.97% irq32: bce1 > 51 root 1 -68 - 0K 16K WAIT a 38:22 12.26% irq31: bce0 > 45 root 1 -64 - 0K 16K WAIT 7 11:31 12.06% irq17: uhci0 > 47 root 1 -64 - 0K 16K WAIT 6 1:54 3.66% irq16: ciss0 > 28 root 1 -32 - 0K 16K WAIT 8 16:01 0.00% swi4: clock sio > > Overall CPU utilization has significantly dropped, but I noticed that swi1 has taken CPU0 with high utilization when the net.isr.direct=0. > What does this mean? > > SCENARIO B : Bombarded w/ more TCP traffic: > > Worst thing, the box has become unresponsive (can't be PINGed, inaccessible through SSH) after more traffic was added retaining net.isr.direct=0. > This is due maybe to the 100% utilization on CPU0 for sw1:net (see below result, first line). bce's and swi's seem to race each other based on the result when net.isr.direct=1, swi1 . > The rest of the CPUs are sitting pretty (100% Idle). Can you shed some lights on this? > > When net.isr.direct=0: > 27 root 1 -44 - 0K 16K CPU0 0 5:45 100.00% swi1: net > 11 root 1 171 ki31 0K 16K CPU15 0 0:00 100.00% idle: cpu15 > 13 root 1 171 ki31 0K 16K CPU13 0 0:00 100.00% idle: cpu13 > 17 root 1 171 ki31 0K 16K CPU9 0 0:00 100.00% idle: cpu9 > 18 root 1 171 ki31 0K 16K CPU8 0 0:00 100.00% idle: cpu8 > 21 root 1 171 ki31 0K 16K CPU5 5 146:17 99.17% idle: cpu5 > 22 root 1 171 ki31 0K 16K CPU4 4 146:17 99.07% idle: cpu4 > 14 root 1 171 ki31 0K 16K CPU12 0 0:00 99.07% idle: cpu12 > 16 root 1 171 ki31 0K 16K CPU10 a 109:33 98.88% idle: cpu10 > 15 root 1 171 ki31 0K 16K CPU11 b 86:36 93.55% idle: cpu11 > 52 root 1 -68 - 0K 16K WAIT b 59:42 13.87% irq32: bce1 > > When net.isr.direct=1, > 52 root 1 -68 - 0K 16K CPU11 b 55:04 97.66% irq32: bce1 > 51 root 1 -68 - 0K 16K CPU10 a 33:52 73.88% irq31: bce0 > 16 root 1 171 ki31 0K 16K RUN a 102:42 26.86% idle: cpu10 > 15 root 1 171 ki31 0K 16K RUN b 81:20 3.17% idle: cpu11 > 28 root 1 -32 - 0K 16K WAIT e 13:40 0.00% swi4: clock sio > > With regards to bandwidth in all scenarios above, the result is extremely low (expected is several hundred Mb/s). Why? > > - iface Rx Tx Total > ============================================================================== > bce0: 4.69 Mb/s 10.49 Mb/s 15.18 Mb/s > bce1: 20.66 Mb/s 4.68 Mb/s 25.34 Mb/s > lo0: 0.00 b/s 0.00 b/s 0.00 b/s > ------------------------------------------------------------------------------ > total: 25.35 Mb/s 15.17 Mb/s 40.52 Mb/s > > > Thanks, > > Won And does this behaviour change if you use some other brand of NIC? -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB | From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 15 14:34:12 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5CFB91065677 for ; Sat, 15 Nov 2008 14:34:12 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from acme.spoerlein.net (cl-43.dus-01.de.sixxs.net [IPv6:2a01:198:200:2a::2]) by mx1.freebsd.org (Postfix) with ESMTP id A844B8FC0C for ; Sat, 15 Nov 2008 14:34:11 +0000 (UTC) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (e180132018.adsl.alicedsl.de [85.180.132.18]) by acme.spoerlein.net (8.14.2/8.14.2) with ESMTP id mAFEY9kB071503 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 15 Nov 2008 15:34:09 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: from roadrunner.spoerlein.net (localhost [127.0.0.1]) by roadrunner.spoerlein.net (8.14.3/8.14.3) with ESMTP id mAFEXkfv005181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 15 Nov 2008 15:33:46 +0100 (CET) (envelope-from uspoerlein@gmail.com) Received: (from uqs@localhost) by roadrunner.spoerlein.net (8.14.3/8.14.3/Submit) id mAFEXkoV005180; Sat, 15 Nov 2008 15:33:46 +0100 (CET) (envelope-from uspoerlein@gmail.com) Date: Sat, 15 Nov 2008 15:33:46 +0100 From: Ulrich Spoerlein To: "Aryeh M. Friedman" Message-ID: <20081115143346.GB1567@roadrunner.spoerlein.net> Mail-Followup-To: "Aryeh M. Friedman" , freebsd-hackers@freebsd.org References: <491DFF57.5080204@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <491DFF57.5080204@gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-hackers@freebsd.org Subject: Re: looking for something like a union file system X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2008 14:34:12 -0000 On Fri, 14.11.2008 at 17:44:39 -0500, Aryeh M. Friedman wrote: > I am using a dev tool that maintains a "split" source tree for currently > worked on files and those in the repo (aegis which is slightly different > then how svn or cvs does it) and my the default build system assumes it > is all in one tree.... thus I want someway of merge the two dirs and > have a copy on write via a special command for it (i.e. if I start to > edit foo.c it automatically checks it out for me).... any ideas? mount_unionfs(8) or the FUSE equivalent Cheers, Ulrich Spoerlein -- It is better to remain silent and be thought a fool, than to speak, and remove all doubt. From owner-freebsd-hackers@FreeBSD.ORG Sat Nov 15 18:01:37 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C16DD1065670; Sat, 15 Nov 2008 18:01:37 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 10AF98FC12; Sat, 15 Nov 2008 18:01:36 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.3/8.14.3) with ESMTP id mAFI1NmS015493; Sat, 15 Nov 2008 13:01:30 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: "Ronnel P. Maglasang" Date: Sat, 15 Nov 2008 11:23:40 -0500 User-Agent: KMail/1.9.7 References: <491BFB68.7050405@infoweapons.com> <200811131441.16427.jhb@freebsd.org> <491D356A.70607@infoweapons.com> In-Reply-To: <491D356A.70607@infoweapons.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811151123.41183.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Sat, 15 Nov 2008 13:01:30 -0500 (EST) X-Virus-Scanned: ClamAV 0.93.1/8636/Sat Nov 15 00:05:47 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.6 required=4.2 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: freebsd-hackers@freebsd.org, freebsd-hardware@freebsd.org Subject: Re: assigning interrupts X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Nov 2008 18:01:37 -0000 On Friday 14 November 2008 03:23:06 am Ronnel P. Maglasang wrote: > John Baldwin wrote: > > On Thursday 13 November 2008 05:03:20 am Ronnel P. Maglasang wrote: > > > >> Hi All, > >> > >> Is there a way to explicitly assign an interrupt > >> of a device? I'm running on 6.3 and the two NICs > >> share the same interrupt. Obviously this will affect > >> the performance if the NICs are exposed to heavy network > >> traffic. > >> > >> # vmstat -i > >> interrupt total rate > >> > >> irq11: em0 vr0+ 1081099 77 > >> > >> Total 16958562 1222 > >> > >> > >> Looking at the driver's code, I have the initial though > >> that this is the place where I can modify. > >> > >> -- > >> adapter->res_interrupt = bus_alloc_resource_any(dev, > >> SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); > >> -- > >> > >> I've tried changing RF_SHAREABLE to RF_ALLOCATED or other > >> values but still could not get the desired result and worst > >> the device fail to initialize. Is this possible in 6.3? > >> > > > > You can not easily assign them, no. In many cases the interrupt pins from the > > devices may be hardwired to a single input pin on an interrupt controller. > > In that case there is nothing you can do. You can read more about the gory > > details here: > > > > http://people.freebsd.org/~jhb/papers/bsdcan/2007/ > > > > > What was changed in 7.x in terms of assigning interrupts? I have another > box running on 7.0 (2 NICs). I noticed there are no devices sharing > interrupts. But if 6.x is installed on the same box (previous installation), > the two NICs will share the same interrupt. I'm now looking at the drivers. > I assume this is not NIC-firmware related. MSI. Newer 6.x (6.4, possibly 6.3; if not by default on 6.3 then it can be enabled on 6.3 via 'hw.pci.enable_msi=1' tunable) will do it as well. -- John Baldwin