From owner-freebsd-hackers@freebsd.org Sun Jul 19 16:15:00 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A1C299A50AC for ; Sun, 19 Jul 2015 16:15:00 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id 5FF271FAB for ; Sun, 19 Jul 2015 16:14:59 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sun, 19 Jul 2015 16:14:32 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6JGEolc001266; Sun, 19 Jul 2015 10:14:50 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1437322490.1334.381.camel@freebsd.org> Subject: Re: reproducible builds of FreeBSD in a chroot on Linux From: Ian Lepore To: John-Mark Gurney Cc: Ed Maste , "freebsd-hackers@freebsd.org" , reproducible-builds@lists.alioth.debian.org, Holger Levsen Date: Sun, 19 Jul 2015 10:14:50 -0600 In-Reply-To: <20150718180928.GE8523@funkthat.com> References: <201505071122.36037.holger@layer-acht.org> <554B509B.8020608@fuckner.net> <201506162350.11646.holger@layer-acht.org> <20150718180928.GE8523@funkthat.com> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Jul 2015 16:15:00 -0000 On Sat, 2015-07-18 at 11:09 -0700, John-Mark Gurney wrote: > Ed Maste wrote this message on Wed, Jun 17, 2015 at 16:48 -0400: > > These are used only as user-facing strings for the kern.version sysctl > > and reported by uname. An example kern.version string: > > FreeBSD 10.1-STABLE #28 r280427+86df2de(stable-10): Thu Mar 26 16:07:47 EDT 2015 > > emaste@feynman:/tank/emaste/obj/tank/emaste/src/git-stable-10/sys/GENERIC > > > > >From a technical perspective they're trivially eliminated. There may > > be some 3rd party ports expect the precise format, but probably not > > very many (and they should be fixed, anyhow). There's a much larger > > social issue in convincing the FreeBSD developer community to accept > > their removal, though :-) > > I don't know about others, but IMO, the only useful information there > is the path it was built from... The machine isn't too useful and even > less useful is probably the build user... Maybe on larger installs, > the user/machine makes a difference, but that could be a config option > to include those... > > So my vote is to eliminate user/machine and just leave the path... And > we could just use user@machine to keep the format compatible, but > constant... > If you have a procedure that does builds in a chroot, the path holds no useful information at all, and the user@machine (plus date) is the real information. Obviously to get a single binary file that is bit-for-bit identical to another build, some of this identifying information will have to be scraped off[*], but please leave the choice of what to include or remove up to the user/admin. -- Ian [*] Or we have to be more selective about what "bit for bit identical" means, such as placing variable information that can't be lived without into its own section in the file and have a compare/verify tool that knows how to ignore that section. From owner-freebsd-hackers@freebsd.org Mon Jul 20 06:25:47 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7169F9A557E for ; Mon, 20 Jul 2015 06:25:47 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 31CF311CA for ; Mon, 20 Jul 2015 06:25:46 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-227-102.lns20.per1.internode.on.net [121.45.227.102]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t6K6PaAX009188 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Sun, 19 Jul 2015 23:25:39 -0700 (PDT) (envelope-from julian@freebsd.org) Message-ID: <55AC945B.20305@freebsd.org> Date: Mon, 20 Jul 2015 14:25:31 +0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: reproducible builds of FreeBSD in a chroot on Linux References: <201505071122.36037.holger@layer-acht.org> <554B509B.8020608@fuckner.net> <201506162350.11646.holger@layer-acht.org> <20150718180928.GE8523@funkthat.com> <1437322490.1334.381.camel@freebsd.org> In-Reply-To: <1437322490.1334.381.camel@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2015 06:25:47 -0000 On 7/20/15 12:14 AM, Ian Lepore wrote: > On Sat, 2015-07-18 at 11:09 -0700, John-Mark Gurney wrote: >> Ed Maste wrote this message on Wed, Jun 17, 2015 at 16:48 -0400: >>> These are used only as user-facing strings for the kern.version sysctl >>> and reported by uname. An example kern.version string: >>> FreeBSD 10.1-STABLE #28 r280427+86df2de(stable-10): Thu Mar 26 16:07:47 EDT 2015 >>> emaste@feynman:/tank/emaste/obj/tank/emaste/src/git-stable-10/sys/GENERIC >>> >>> >From a technical perspective they're trivially eliminated. There may >>> be some 3rd party ports expect the precise format, but probably not >>> very many (and they should be fixed, anyhow). There's a much larger >>> social issue in convincing the FreeBSD developer community to accept >>> their removal, though :-) >> I don't know about others, but IMO, the only useful information there >> is the path it was built from... The machine isn't too useful and even >> less useful is probably the build user... Maybe on larger installs, >> the user/machine makes a difference, but that could be a config option >> to include those... >> >> So my vote is to eliminate user/machine and just leave the path... And >> we could just use user@machine to keep the format compatible, but >> constant... >> > If you have a procedure that does builds in a chroot, the path holds no > useful information at all, and the user@machine (plus date) is the real > information. Obviously to get a single binary file that is bit-for-bit > identical to another build, some of this identifying information will > have to be scraped off[*], but please leave the choice of what to > include or remove up to the user/admin. I'm hoping the original OP has looked at what Colin Percival does for the freebsdupdate stuff. That creates annotation of all the unreproducible parts (e.g. date stamps) and makes sure they are not confused with real changes. > -- Ian > > [*] Or we have to be more selective about what "bit for bit identical" > means, such as placing variable information that can't be lived without > into its own section in the file and have a compare/verify tool that > knows how to ignore that section. > > > _______________________________________________ > 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 Jul 20 12:33:53 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE4F09A6FD0 for ; Mon, 20 Jul 2015 12:33:53 +0000 (UTC) (envelope-from steven@pyro.eu.org) Received: from manchester-1.man.uk.cluster.ok24.net (manchester-1.man.uk.cluster.ok24.net [IPv6:2001:41c8:51:40::1]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 64D3F38F for ; Mon, 20 Jul 2015 12:33:53 +0000 (UTC) (envelope-from steven@pyro.eu.org) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=pyro.eu.org; s=07.2015; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=msCOdPr85uvIutGnD0zjUayTA4matIR2sKNNo+i89fU=; b=jnGQQ4IWFwED9VvF1ZpBvbIAhkbnGo+3je7fEC1F4IzaZC/s4Yyr/iFPvFtG4Sa8/064au7Q+RSTzA32vD6qfM00X0Df9WAZZ162za3u07+S8PAb8UhXGAXODi6hAOCp+qtE+o99SIf2q4mcdpmS3Q9aMBWJy3SHysmSw1+wMg0=; X-Spam-Status: No, score=-1.1 required=2.0 tests=ALL_TRUSTED, BAYES_00, DKIM_ADSP_DISCARD Received: from guisborough-1.rcc.uk.cluster.ok24.net ([217.155.40.118] helo=smtp.ok24.net) by manchester-1.man.uk.cluster.ok24.net with esmtp (Exim 4.80) (envelope-from ) id 1ZHAGS-0004Bx-8f; Mon, 20 Jul 2015 13:33:49 +0100 Received: from kfreebsd-amd64.pyro.eu.org (smtp.ok24.net [10.1.1.1]) by smtp.ok24.net (Postfix) with ESMTPS id 325511272D5; Mon, 20 Jul 2015 13:33:48 +0100 (BST) Received: by kfreebsd-amd64.pyro.eu.org (Postfix, from userid 1000) id 2671D49DF; Mon, 20 Jul 2015 13:33:48 +0100 (BST) Date: Mon, 20 Jul 2015 13:33:48 +0100 From: Steven Chamberlain To: Holger Levsen Cc: "freebsd-hackers@freebsd.org" , reproducible-builds@lists.alioth.debian.org Subject: Re: reproducible builds of FreeBSD in a chroot on Linux Message-ID: <20150720123348.GD91487@pyro.eu.org> References: <201505071122.36037.holger@layer-acht.org> <201506162350.11646.holger@layer-acht.org> <201507181609.49815.holger@layer-acht.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: <201507181609.49815.holger@layer-acht.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 20 Jul 2015 12:33:53 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Holger, Holger Levsen wrote: > With this,=20 > http://anonscm.debian.org/cgit/qa/jenkins.debian.net.git/tree/bin/reprodu= cible_freebsd.sh=20 > gets as far as=20 > https://jenkins.debian.net/view/reproducible/job/reproducible_freebsd/7/c= onsole=20 > where "stage 2.1: cleaning up the object tree" fails on "make buildworld"= ,=20 > because /srv/workspace/chroots/freebsd- > XXXXXXXX.v1adN6Qo/freebsd/lib/libc/tests does not exist. `mktemp freebsd-XXXXXXXX` on FreeBSD would result in random characters being appended, resulting in freebsd-XXXXXXXX.v1adN6Qo as above. `mktemp -d -t freebsd-XXXXXXXX` should replace the X's with random characters, same as GNU mktemp. But it doesn't seem to have done that. Are you sure that your RSSH command is sending switches -d and -t correctly, or do you need a "--" or extra quotes? Take a look in /srv/workspace/chroots/ and see if mktemp has perhaps created a file instead of a directory? Regards, --=20 Steven Chamberlain steven@pyro.eu.org --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/kFreeBSD) iQEcBAEBCAAGBQJVrOqrAAoJELrpzbaMAu5TGZMH/26/R9VqcHUH+NF1Dcp7No+E QRP0BkmSA4z4eonDl38SxqMru/LgU0ZOtnUBfcL7RP2zx+mphVWFIdETQZ1sR3Wq hvOqYuzerHaZCrr6gWhW+E40Pb36b8o5ZJCOyerMwqVBndfXwyhw1pTJB13wy3va sNLbd09CakNuo+icsyawtH/KQN0ehJF4U5hjCl488fha5VByg5bXu1LFNmBf0TzR Lr6Ua+JzYsHfChGbVeYAO+TWOx0v+I/+DzVOUOGdB1YkKO/AWyidHmA8b2zDW5IS 7CzYz5A7AxiduJwjI3gi2vmzgDZG6E6B/sYRs1F9MATe+0zLS8iOrPr2BP8HAF8= =l17I -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- From owner-freebsd-hackers@freebsd.org Wed Jul 22 07:57:33 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C7549A839C; Wed, 22 Jul 2015 07:57:33 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-lb0-x234.google.com (mail-lb0-x234.google.com [IPv6:2a00:1450:4010:c04::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7DBBE1FF1; Wed, 22 Jul 2015 07:57:32 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by lblf12 with SMTP id f12so131206023lbl.2; Wed, 22 Jul 2015 00:57:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=AioTLoHYmHq8NMtiZFtRkKgvDpwnDII5csHvdvrwPcY=; b=lFlGUcqrphIIlqdmIQRWau337nDcRSUo6PcAbsQLAMsLDOA1HPT5uJ7OfBZSYfbf6S tu5h6ir05uoqN4X4AMTGI+8Q425Kmft7Tzk85U3PqTk/l6r/aDHjM8asfJVGdpNMjE+B N/KWWbvAC2ha+5I+fiMtqznbCeVeWpRlHuh6m8a09tiwPwUc1KerNWMRyFUxkoeUtseQ GQUFxRQkHKWfNQ3hnzfpAcESfKdPMy+wuDeSSXV5w13InOlgiWriABF0lcLP9I2b2xNq CM/f70xlZNunPdaJuX6E+PwnxDb8DHUF6Jhpx3871teKGbQdVT8rWCWodti/265thciH BfLg== MIME-Version: 1.0 X-Received: by 10.152.37.37 with SMTP id v5mr1070877laj.11.1437551849916; Wed, 22 Jul 2015 00:57:29 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.152.45.5 with HTTP; Wed, 22 Jul 2015 00:57:29 -0700 (PDT) Date: Wed, 22 Jul 2015 09:57:29 +0200 X-Google-Sender-Auth: TLGh07hGOho2T0CIKMmJs0UrYzA Message-ID: Subject: 10.1-RELEASE UEFI RAID0 ASUS M5A97 R2.0 AMD64 PhenomIIx6 From: CeDeROM To: "freebsd-hackers@freebsd.org" , freebsd-hardware@freebsd.org, freebsd-sysinstall@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 07:57:33 -0000 Hello there :-) I have successfully installed and running FreeBSD 10.1-RELEASE AMD64 on ASUS M5A97 R2.0 AMD64 PhenomIIx6 using RAID0 booting with UEFI. UEFI and GPT seems replacement for BIOS+MBR in modern PC hardware. You can forget about BIOS+MBR in case of UEFI which is tightly related to hardware/firmware. What is best about FreeBSD that I also could to the setup on older ASUS M4A88TD/V EVO/USB3.0 which did NOT support UEFI at all. RAID0 was possible to accomplish in 4TB size with no problem. GPT support was already there in FreeBSD. I have installed MBR bootloader which then switched to GPT support. This setup was not possible for Windows nor Linux which were limited to see two 2TB devices, even on RAID. Hale to the FreeBSD!! :-) However, FreeBSD Boot and Kernel seems to work somehow different on UEFI. There is no loader menu, there is no OS prompt. There is problem with Xorg-NVidia driver which hangs the boot process at loader (you need to use kld_list in rc.conf instead), and then hangs the computer somewhere on screen blank. All seems new but familiar :-) Also installing OS on UEFI is somewhat different. You need to create a dedicated EFI partition where boot code is loaded (using dd as presented on uefi wiki). BSDInstall creates such partition but its only 512k in size, while boot1.efifat is 800k. I have created separate partition that is 100M and it works fine as well. I think installed could increase the boot partition size, and then dd the boot1.efifat over there during install on UEFI platform..? FreeBSD IS THE BEST!! THANK YOU!! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-hackers@freebsd.org Wed Jul 22 12:47:17 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C23A69A6264 for ; Wed, 22 Jul 2015 12:47:17 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id A03101AF5 for ; Wed, 22 Jul 2015 12:47:17 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 9D87E9A6263; Wed, 22 Jul 2015 12:47:17 +0000 (UTC) Delivered-To: hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 836AA9A6262 for ; Wed, 22 Jul 2015 12:47:17 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: from mail-la0-x22f.google.com (mail-la0-x22f.google.com [IPv6:2a00:1450:4010:c03::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 097441AF3 for ; Wed, 22 Jul 2015 12:47:17 +0000 (UTC) (envelope-from trtrmitya@gmail.com) Received: by laah7 with SMTP id h7so5870391laa.0 for ; Wed, 22 Jul 2015 05:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=UIj9LWq2By1/11YZ9O2yyqAoRqhmZ9AC4LE++iYJNd4=; b=wKg3enlMdKZHDNfN15PX1X4Zn+/Foy8upLcl59JsD8VZJgKj+ZOYs2fRF4HTLWytws KIG2v2/679hrJH0U3DkyPwqsmTaaQIfxuCcRgO9uo+EghgEBAtehx8cnzNFF/mtSxvcl yYg580pdPuJx25PzO5+YQU2UivdiAOpFoq/1zb9+pYQmzp4oCkIcy5aUwBP9B57W6MSd 4U4wI47IKqwauQ9dIOfo4Z3GlV8mR8EcwBQmQMc9jCf4v5VtLOLqM7cCRsZifxuJRfPn iqhPBqG+Puq+Z0u4QuQtSX9wR/Re824+JXzyEljgPjuPeWUBpVGp6ULS1R+jhlsRs11J 2l/A== X-Received: by 10.152.170.165 with SMTP id an5mr2222737lac.100.1437569234612; Wed, 22 Jul 2015 05:47:14 -0700 (PDT) Received: from ?IPv6:2a02:6b8::408:6ddc:be3:ab63:b221? ([2a02:6b8:0:408:6ddc:be3:ab63:b221]) by smtp.gmail.com with ESMTPSA id sg8sm278668lbb.33.2015.07.22.05.47.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jul 2015 05:47:13 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: Strange memory management with mmap() From: Dmitry Sivachenko In-Reply-To: <3434ED75-7994-4E9E-9B06-FACCD7DC90FF@gmail.com> Date: Wed, 22 Jul 2015 15:47:12 +0300 Content-Transfer-Encoding: quoted-printable Message-Id: <15DE3B94-3C09-4855-A274-D5655B049403@gmail.com> References: <3434ED75-7994-4E9E-9B06-FACCD7DC90FF@gmail.com> To: hackers@freebsd.org X-Mailer: Apple Mail (2.2102) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 12:47:17 -0000 > On 16 =D0=B8=D1=8E=D0=BB=D1=8F 2015 =D0=B3., at 21:19, Dmitry = Sivachenko wrote: >=20 >>=20 >> On 16 =D0=B8=D1=8E=D0=BB=D1=8F 2015 =D0=B3., at 18:42, Dmitry = Sivachenko wrote: >>=20 >> Hello! >>=20 >> I am using FreeBSD-10-stable and writing a program that uses large = data file via mmap() in read only mode. >> To be specific, I have 256GB RAM machine and typical size of data = file is ~160GB (more than 1/2 of RAM and less that the whole RAM). >> There is no other programs running during the test. >>=20 >> Consider the following use case: I have two files on disk. I mmap() = the first one and prefetch data to RAM (touch every page of the file). >> After that I expect all data to be cached in RAM and subsequent = access will be fast. >>=20 >> Next I do munmap() on the first file, mmap() the second one and do = the same test: prefetch data and expect it to be cached in RAM (and some = of the pages belonging to the first file to be purged out, because = size_of(file1)+size_of(file2) > size_of(RAM). >>=20 >> Please find my test program attached. >>=20 >> I run the program with 2 files provided via command line (both about = 160GB). >> What I observe in real is: >> -- before I run the program all RAM is in FREE state as reported by = top(1). >> -- after first prefetch() of the first file, all it's data goes to = "Cache" state, RES column of the process remains the same (small) >> -- second prefetch() works fast as expected, memory goes from Cache = to Active state, RES column of the process grows up to match file size = (SIZE=3D=3DRES now) >> -- now first prefetch() for second file starts: the remaining Free = memory goes to Cache state, Active size still equals to first file size. >> -- second prefetch() for second file works as slow as first one, like = if nothing was cached in memory during the first prefetch() run, RES = column does not change. >>=20 >>=20 >> Here is the output: >> % /tmp/a.out file1.dat file2.dat >> file1.dat... First prefault time: 1235.747351 seconds >> Second prefault time: 74.893323 seconds >> Ok. >> file2.dat... First prefault time: 1316.405527 seconds >> Second prefault time: 1311.491842 seconds >> Ok. >>=20 >=20 >=20 I tried the same test program on Linux machine with similar hardware. = It behaves like expected (second prefetch works very fast): file1.dat... First prefault time: 2664.621088 seconds Second prefault time: 1.969283 seconds Ok. file2.dat... First prefault time: 2917.009003 seconds Second prefault time: 34.128762 seconds Ok. From owner-freebsd-hackers@freebsd.org Wed Jul 22 15:12:41 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B75D9A8485 for ; Wed, 22 Jul 2015 15:12:41 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB3851058 for ; Wed, 22 Jul 2015 15:12:40 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t6MFD9jV063906 for ; Wed, 22 Jul 2015 08:13:15 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: References: , From: "Chris H" Subject: Re: format/newfs larger external consumer drives Date: Wed, 22 Jul 2015 08:13:15 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: <4be800036b75eeb22710f63ce122ced1@ultimatedns.net> Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 15:12:41 -0000 On Wed, 15 Jul 2015 14:42:23 -0600 (MDT) Warren Block wrote > On Wed, 15 Jul 2015, Dieter BSD wrote: > > > I wonder how hard it would be to create a FUSE version of FFS? > > Any thoughts from the filesystem wizards? > > http://sourceforge.net/projects/fuse-ufs2/ > > Untested by me, though. Thanks for the pointer, Warren. For the record, SourceForge hasn't been available for quite some time. Looking at the status notes, and recent(ish) history, I wouldn't be surprised if they ultimately call it quits. I thought this (fuse-ufs2) might be a nice addition to the ports tree, and was hoping to put it there. Does anyone happen to have a copy of the source they'd be willing to share? Thanks. --Chris > _______________________________________________ > 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 Jul 22 16:33:23 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 657A09A7470 for ; Wed, 22 Jul 2015 16:33:23 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-yk0-f169.google.com (mail-yk0-f169.google.com [209.85.160.169]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3033E11C8 for ; Wed, 22 Jul 2015 16:33:22 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by ykdu72 with SMTP id u72so197019010ykd.2 for ; Wed, 22 Jul 2015 09:33:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=9IKg3dtQ+pmCbHPcZmfBSLhwULztb8We6W0FdeQxRAA=; b=RBBN5HdV/sKZWR16RY6Ne5YH/esRoSpMPRvHoLUP8Yxo3Erkklz1Vw+5B81wcNTmcB 9a5DUzbXCJA2vmQAFrzO267n+RP7vDGqivmMaTn5DwwfWS1xsMRGEyMKAnfcLpYntrHq tpAxCLH93bfcTlS7TGKkNap6xOyi+p0bHqmRdjojrwXOJXp3bjPFsOGgO/8P2oUXYWtd nhzz3bpdn+VERwmd4v5KkLSmlsaID1GFoGwSdzhwJWR/kS+/knbra4FMFfqzE4DeIHz/ C8agfID9GIkelLbeAvxzrZnbeEoFYxAKTxI84Ohi5SPOS7PvgeMnpN7TU3Ar3H+jUEWL IHAA== X-Gm-Message-State: ALoCoQlXOWz8lxlb6Jpj/Ir/aMSQWjrfOjCTS8b7eQF3BZvE5nO5qITsBNU/MWrCRj2EgFPQmIeP MIME-Version: 1.0 X-Received: by 10.170.48.134 with SMTP id 128mr3249870ykq.36.1437581469507; Wed, 22 Jul 2015 09:11:09 -0700 (PDT) Received: by 10.129.138.68 with HTTP; Wed, 22 Jul 2015 09:11:09 -0700 (PDT) X-Originating-IP: [38.104.68.66] Date: Wed, 22 Jul 2015 12:11:09 -0400 Message-ID: Subject: Interesting Boot failure on HEAD with a large number of IGB nics From: Mark Saad To: "freebsd-hackers@freebsd.org" , FreeBSD-Stable ML Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 16:33:23 -0000 All I am wondering if anyone has run into this issue before , and if there is a fix. I have a Scalable Informatics siRouter with 24 Intel I350 igb nics and 8 intel 82599ES ixgbe/ix nic . The SiRouter is a Supermicro X9DRX+-F with a bunch of intel nics. On Head I run into a boot panic out of the box while plumbing the usb controller . The box crashes with ehci0: mem 0xdd923000-0xdd9233ff irq 16 at device 26.0 on pci0 panic: Couldn't find an APIC vector for IRQ 16 However it has only probed 8 of the 24 igb when is crashes. Here is the complete boot up with some additional info. http://pastebin.com/MfbEwwg4 Now the interesting thing. DragonFly 4.2x boots fine see the dmesg here http://dmesgd.nycbug.org/index.cgi?action=dmesgd&do=view&id=2778 OpenBSD boots and finds the nics as well see dmesg here http://dmesgd.nycbug.org/index.cgi?action=dmesgd&do=view&id=2777 NetBSD Pukes while probing something out of the box and I cant get the serial console to work. Linux 2.6 CentOS 6.6 works OmniOS / Illumos-gate and Illumos-joyent work out of the box So my goal here is to make the box boot FreeBSD . It had been used prior running OmniOS and CentOS and well now I want to make it work. :) Any ideas here ? mark saad | nonesuch@longcount.org From owner-freebsd-hackers@freebsd.org Wed Jul 22 17:14:22 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A48829A7E96; Wed, 22 Jul 2015 17:14:22 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6BC9C1DA3; Wed, 22 Jul 2015 17:14:22 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZHxb1-000OnG-Bw; Wed, 22 Jul 2015 18:14:19 +0100 Date: Wed, 22 Jul 2015 18:14:19 +0100 From: Gary Palmer To: Mark Saad Cc: "freebsd-hackers@freebsd.org" , FreeBSD-Stable ML Subject: Re: Interesting Boot failure on HEAD with a large number of IGB nics Message-ID: <20150722171419.GE41419@in-addr.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 17:14:22 -0000 On Wed, Jul 22, 2015 at 12:11:09PM -0400, Mark Saad wrote: > All > I am wondering if anyone has run into this issue before , and if there is > a fix. > I have a Scalable Informatics siRouter with 24 Intel I350 igb nics and 8 > intel 82599ES ixgbe/ix nic . The SiRouter is a Supermicro X9DRX+-F with a > bunch of intel nics. > > On Head I run into a boot panic out of the box while plumbing the usb > controller . The box crashes with > > ehci0: mem 0xdd923000-0xdd9233ff irq 16 > at device 26.0 on pci0 > panic: Couldn't find an APIC vector for IRQ 16 > > However it has only probed 8 of the 24 igb when is crashes. Here is the > complete boot up with some additional info. > > http://pastebin.com/MfbEwwg4 > > Now the interesting thing. > > DragonFly 4.2x boots fine see the dmesg here > http://dmesgd.nycbug.org/index.cgi?action=dmesgd&do=view&id=2778 > > OpenBSD boots and finds the nics as well see dmesg here > http://dmesgd.nycbug.org/index.cgi?action=dmesgd&do=view&id=2777 > > NetBSD Pukes while probing something out of the box and I cant get the > serial console to work. > > Linux 2.6 CentOS 6.6 works > > OmniOS / Illumos-gate and Illumos-joyent work out of the box > > > > So my goal here is to make the box boot FreeBSD . It had been used prior > running OmniOS and CentOS and well now I want to make it work. :) > > Any ideas here ? I'm no expert, but you may want to try setting hw.igb.num_queues=1 and maybe hw.ixgbe.num_queues=1 in the boot loader and trying that. Regards, Gary P.S. freebsd-net@ may be a better list than either -stable or -hackers. From owner-freebsd-hackers@freebsd.org Wed Jul 22 17:32:44 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2E57C9A8199 for ; Wed, 22 Jul 2015 17:32:44 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D515E16DE for ; Wed, 22 Jul 2015 17:32:43 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id t6MH3Rja057246 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 22 Jul 2015 11:03:27 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id t6MH3RiW057243; Wed, 22 Jul 2015 11:03:27 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 22 Jul 2015 11:03:27 -0600 (MDT) From: Warren Block To: Chris H cc: freebsd-hackers@freebsd.org Subject: Re: format/newfs larger external consumer drives In-Reply-To: <4be800036b75eeb22710f63ce122ced1@ultimatedns.net> Message-ID: References: , <4be800036b75eeb22710f63ce122ced1@ultimatedns.net> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 22 Jul 2015 11:03:27 -0600 (MDT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 17:32:44 -0000 On Wed, 22 Jul 2015, Chris H wrote: > On Wed, 15 Jul 2015 14:42:23 -0600 (MDT) Warren Block > wrote > >> On Wed, 15 Jul 2015, Dieter BSD wrote: >> >>> I wonder how hard it would be to create a FUSE version of FFS? >>> Any thoughts from the filesystem wizards? >> >> http://sourceforge.net/projects/fuse-ufs2/ >> >> Untested by me, though. > Thanks for the pointer, Warren. > For the record, SourceForge hasn't been available for quite > some time. Looking at the status notes, and recent(ish) history, > I wouldn't be surprised if they ultimately call it quits. > I thought this (fuse-ufs2) might be a nice addition to the ports > tree, and was hoping to put it there. Does anyone happen to have a > copy of the source they'd be willing to share? What about https://github.com/DanielO/fuse-ufs2 ? From owner-freebsd-hackers@freebsd.org Wed Jul 22 17:54:13 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 906179A85A3; Wed, 22 Jul 2015 17:54:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: from mail-pa0-x22a.google.com (mail-pa0-x22a.google.com [IPv6:2607:f8b0:400e:c03::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 62A05107F; Wed, 22 Jul 2015 17:54:13 +0000 (UTC) (envelope-from yaneurabeya@gmail.com) Received: by pabkd10 with SMTP id kd10so69975693pab.2; Wed, 22 Jul 2015 10:54:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=R3E5tXV0GWyBLg7axpLOcC3sBApB8Wzz9n1+pg16Ag4=; b=dLNz/4Eh5op6cVyVHeR47XJUxKiO+Q0qkcKf0PKWHvtWOQnLabamGqnb6nSvOeHUlU cyvd8VGFdQkcFO6FEWJjQs97EO7DKXdEmIISH+UuBvfnKZf8GNeEd1TGhvLF0HXtoqge gMIdsoJrynSQZzuOW/OzXpNtGNQjoMPY46y90UE+vW7aWHOkGqm7hTzpJTs+EVzvM44N YaAISmuqdSEB8uY5T2h8gFkNJyW05qZeNo9KWUMMFg/ghHFLYxRAXMs8L9nEGe36f1Ak YeT6L/U4PDLtnwHI2wu4bCcnIchUVL6STOSmcGTMy2GhRlMNKpmY+in/B2CeT/3fhEdT fYxw== X-Received: by 10.66.66.40 with SMTP id c8mr8411791pat.117.1437587652867; Wed, 22 Jul 2015 10:54:12 -0700 (PDT) Received: from [33.169.126.251] ([172.56.33.170]) by smtp.gmail.com with ESMTPSA id rh11sm4482006pdb.22.2015.07.22.10.54.11 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jul 2015 10:54:12 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: Interesting Boot failure on HEAD with a large number of IGB nics From: Garrett Cooper X-Mailer: iPhone Mail (12H143) In-Reply-To: <20150722171419.GE41419@in-addr.com> Date: Wed, 22 Jul 2015 10:54:10 -0700 Cc: Mark Saad , "freebsd-hackers@freebsd.org" , FreeBSD-Stable ML Content-Transfer-Encoding: quoted-printable Message-Id: <95653312-0F92-40E4-89EE-E8235403D3B9@gmail.com> References: <20150722171419.GE41419@in-addr.com> To: Gary Palmer X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 17:54:13 -0000 > On Jul 22, 2015, at 10:14, Gary Palmer wrote: ... > I'm no expert, but you may want to try setting >=20 > hw.igb.num_queues=3D1 >=20 > and maybe >=20 > hw.ixgbe.num_queues=3D1 >=20 > in the boot loader and trying that. There was another discussion that took place around June on current that mig= ht be helpful. I think the solution boiled down to what Gary described above= , because the driver auto tuning was broken... Thanks! -NGie= From owner-freebsd-hackers@freebsd.org Wed Jul 22 18:20:14 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 262109A8B18 for ; Wed, 22 Jul 2015 18:20:14 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-yk0-f173.google.com (mail-yk0-f173.google.com [209.85.160.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E0F181ECF for ; Wed, 22 Jul 2015 18:20:13 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by ykax123 with SMTP id x123so200147939yka.1 for ; Wed, 22 Jul 2015 11:20:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=5zYNWm6b7jUYpA3Hl1oIc7eBU5ssjbVltsxKD/bPrls=; b=Cv/3dKne+IizsIH5YWPQs+z+OgUYVkAgYg7L+cw/QltxyiKD9ZcqPrywF2YG3o8AZL H3Cwhohzz1nhx/1iz064ssbQkNedvrltVh7eTjrznS4nKM8+/GGY42RldZPRoOYWVSrV q9TznYPQEew6+jmsuLSdPP8tHES7wwHhXGVyMoau3ESPQUiHUY2yJyX6HP5rLCvBfaEr WebG7mJ4x6dn2ASD37y6DsehMzwL3Wr+Mp6Mhc0g5HQyU/WqYfMFuXcot/x25+Ao/Vsi 5RXp3sSkwLQaIMzO430s6Eg6R0y4etWwqvPogxpA57NTH8c3ZWIp1t8CeEgf4n/YYvym TmIQ== X-Gm-Message-State: ALoCoQnaSehf6JXzWhyNQolj5t6qytIfAho5gbEZ+ySF7KA7Dhtg9eCCCPBedKrI0BnZM7b+V7h6 MIME-Version: 1.0 X-Received: by 10.170.206.139 with SMTP id x133mr3897901yke.126.1437589206763; Wed, 22 Jul 2015 11:20:06 -0700 (PDT) Received: by 10.129.138.68 with HTTP; Wed, 22 Jul 2015 11:20:06 -0700 (PDT) X-Originating-IP: [38.104.68.66] In-Reply-To: <95653312-0F92-40E4-89EE-E8235403D3B9@gmail.com> References: <20150722171419.GE41419@in-addr.com> <95653312-0F92-40E4-89EE-E8235403D3B9@gmail.com> Date: Wed, 22 Jul 2015 14:20:06 -0400 Message-ID: Subject: Re: Interesting Boot failure on HEAD with a large number of IGB nics From: Mark Saad To: Garrett Cooper Cc: Gary Palmer , "freebsd-hackers@freebsd.org" , FreeBSD-Stable ML Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 18:20:14 -0000 On Wed, Jul 22, 2015 at 1:54 PM, Garrett Cooper wrote: > > > On Jul 22, 2015, at 10:14, Gary Palmer wrote: > > ... > > > I'm no expert, but you may want to try setting > > > > hw.igb.num_queues=1 > > > > and maybe > > > > hw.ixgbe.num_queues=1 > > > > in the boot loader and trying that. > > There was another discussion that took place around June on current that > might be helpful. I think the solution boiled down to what Gary described > above, because the driver auto tuning was broken... > Thanks! > -NGie NGie I'll try the queues option but; why was does that kill my ehci hub ? Note ehci0: mem 0xdd923000-0xdd9233ff irq 16 at device 26.0 on pci0 panic: Couldn't find an APIC vector for IRQ 16 -- mark saad | nonesuch@longcount.org From owner-freebsd-hackers@freebsd.org Wed Jul 22 18:34:03 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A8A029A8DEE for ; Wed, 22 Jul 2015 18:34:03 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from udns.ultimatedns.net (unknown [IPv6:2602:d1:b4d6:e600:4261:86ff:fef6:aa2a]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 806C41886 for ; Wed, 22 Jul 2015 18:34:03 +0000 (UTC) (envelope-from bsd-lists@bsdforge.com) Received: from ultimatedns.net (localhost [127.0.0.1]) by udns.ultimatedns.net (8.14.9/8.14.9) with ESMTP id t6MIYX7X008867 for ; Wed, 22 Jul 2015 11:34:39 -0700 (PDT) (envelope-from bsd-lists@bsdforge.com) To: In-Reply-To: References: , <4be800036b75eeb22710f63ce122ced1@ultimatedns.net>, From: "Chris H" Subject: Re: format/newfs larger external consumer drives Date: Wed, 22 Jul 2015 11:34:39 -0700 Content-Type: text/plain; charset=UTF-8; format=fixed MIME-Version: 1.0 Message-id: Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 18:34:03 -0000 On Wed, 22 Jul 2015 11:03:27 -0600 (MDT) Warren Block wrote > On Wed, 22 Jul 2015, Chris H wrote: > > > On Wed, 15 Jul 2015 14:42:23 -0600 (MDT) Warren Block > > wrote > > > >> On Wed, 15 Jul 2015, Dieter BSD wrote: > >> > >>> I wonder how hard it would be to create a FUSE version of FFS? > >>> Any thoughts from the filesystem wizards? > >> > >> http://sourceforge.net/projects/fuse-ufs2/ > >> > >> Untested by me, though. > > Thanks for the pointer, Warren. > > For the record, SourceForge hasn't been available for quite > > some time. Looking at the status notes, and recent(ish) history, > > I wouldn't be surprised if they ultimately call it quits. > > I thought this (fuse-ufs2) might be a nice addition to the ports > > tree, and was hoping to put it there. Does anyone happen to have a > > copy of the source they'd be willing to share? > > What about https://github.com/DanielO/fuse-ufs2 ? You're incredible, Warren. Thanks! --Chris > _______________________________________________ > 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" --Chris -- From owner-freebsd-hackers@freebsd.org Wed Jul 22 18:34:06 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 063F39A8DF6; Wed, 22 Jul 2015 18:34:06 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from mail.in-addr.com (mail.in-addr.com [IPv6:2a01:4f8:191:61e8::2525:2525]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C0BF51889; Wed, 22 Jul 2015 18:34:05 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by mail.in-addr.com with local (Exim 4.85 (FreeBSD)) (envelope-from ) id 1ZHyqC-000Ow0-1b; Wed, 22 Jul 2015 19:34:04 +0100 Date: Wed, 22 Jul 2015 19:34:04 +0100 From: Gary Palmer To: Mark Saad Cc: Garrett Cooper , "freebsd-hackers@freebsd.org" , FreeBSD-Stable ML Subject: Re: Interesting Boot failure on HEAD with a large number of IGB nics Message-ID: <20150722183404.GF41419@in-addr.com> References: <20150722171419.GE41419@in-addr.com> <95653312-0F92-40E4-89EE-E8235403D3B9@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: gpalmer@freebsd.org X-SA-Exim-Scanned: No (on mail.in-addr.com); SAEximRunCond expanded to false X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 18:34:06 -0000 On Wed, Jul 22, 2015 at 02:20:06PM -0400, Mark Saad wrote: > On Wed, Jul 22, 2015 at 1:54 PM, Garrett Cooper > wrote: > > > > > > On Jul 22, 2015, at 10:14, Gary Palmer wrote: > > > > ... > > > > > I'm no expert, but you may want to try setting > > > > > > hw.igb.num_queues=1 > > > > > > and maybe > > > > > > hw.ixgbe.num_queues=1 > > > > > > in the boot loader and trying that. > > > > There was another discussion that took place around June on current that > > might be helpful. I think the solution boiled down to what Gary described > > above, because the driver auto tuning was broken... > > Thanks! > > -NGie > > > NGie > I'll try the queues option but; why was does that kill my ehci hub ? Note > > ehci0: mem 0xdd923000-0xdd9233ff irq 16 > at device 26.0 on pci0 > panic: Couldn't find an APIC vector for IRQ 16 I believe the error message could be better written as "Couldn't find a free APIC vector". The IGB cards allocted multiple MSI-X interrupts for multi-queue use and exhausted the available pool, and the USB hub (ehci0) just happened to be the next thing probed by the PCI bus and tripped the panic. At least that is my understanding. Regards, Gary From owner-freebsd-hackers@freebsd.org Wed Jul 22 21:08:38 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1F7819A870C; Wed, 22 Jul 2015 21:08:38 +0000 (UTC) (envelope-from dieterbsd@gmail.com) Received: from mail-ie0-x22d.google.com (mail-ie0-x22d.google.com [IPv6:2607:f8b0:4001:c03::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E40D2121A; Wed, 22 Jul 2015 21:08:37 +0000 (UTC) (envelope-from dieterbsd@gmail.com) Received: by iebmu5 with SMTP id mu5so176876874ieb.1; Wed, 22 Jul 2015 14:08:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=qn7iZ4+OdmcVtT8/ptX9VGB5otf01eqiJ4fG3gRKVG8=; b=UdOPsea3nb6DHkBoO00v+v2F6NHDjcN4mJsxOaHpg4MkJ8u8VAeiW6y1d6G3+sUwFT cHO1zpwyLe1oNtK3KpzemrbWiKvHSHxMMJtErM9H03xSRLosmoyy7nDYN/QV1K2cIy2r zXf7GQMu+/0jO/eIs/MSDaotgXeTU3ZaHR+GFgUoXjaOWhV6/npHy3208l20g2Dsr1q1 H2usvWsLVTpr9thZsAnDmT/pU7pC5DWwoWtMPU6FAK+1iPyX56R/2Au+VeEYiep/K8Q+ mJph0bnggk0T52cXxlzfZbu3c3HrIQ0PKrJOdnybMxWH8BGDDu+RVkoNIMLLiamDivWM +A3w== MIME-Version: 1.0 X-Received: by 10.50.44.8 with SMTP id a8mr9359395igm.70.1437599317104; Wed, 22 Jul 2015 14:08:37 -0700 (PDT) Received: by 10.64.2.132 with HTTP; Wed, 22 Jul 2015 14:08:37 -0700 (PDT) Date: Wed, 22 Jul 2015 14:08:37 -0700 Message-ID: Subject: Re: format/newfs larger external consumer drives From: Dieter BSD To: freebsd-hackers@freebsd.org, freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 21:08:38 -0000 Don whY asks: > So, fsck's effort (and execution *time*) is based *mostly* on inodes? I don't know about *mostly*, but reducing the number of inodes significantly reduced fsck time for me. > In my case, there isn't any real physical room for an internal disk. > I'm using Dell FX160's -- they'll support a SATA laptop drive Assuming that "SATA laptop drive" means 2.5" form factor, just add a 6 TB SSD. (available this month, but the price is top secret) > The point is to get rid of the piles of CD/DVD media that I've > accumulated over the years Someone must make a jukebox for those. >> I am very tired of having an entire machine panic just because >> one disk decided to take a nap. This is not how you get 5 9s. :-( > > Or, power glitches, firmware bugs, etc. A UPS eats power glitches for breakfast. Firmware is a problem. More and more mainboards can have FLOSS firmware, but there is also buggy firmware in disks and other devices. Warren helpfully pointed us to > http://sourceforge.net/projects/fuse-ufs2/ Thanks, Warren! Sourceforge was kaput when I tried to check it out. I'm hoping that it is a high quality implementation, and, being fuse, will solve the kernel panic problem. I plan to look at the filesystem regression tests and see if I can think up any additional test cases. Chris H typed: > For the record, SourceForge hasn't been available for quite > some time. Slashdot reports: The short version is that a storage fault led to significant filesystem corruption, and we had to restore a massive amount of data from backups. There's a post at the SourceForge blog going into a bit more detail, and describing the steps our Siteops team took (and is still taking) to restore service. http://sourceforge.net/blog/sourceforge-infrastructure-and-service-restoration/ Last time I looked, some (not all) parts of fuse-ufs2 had recovered. > I thought this (fuse-ufs2) might be a nice addition to the ports > tree, and was hoping to put it there. Sounds good. From owner-freebsd-hackers@freebsd.org Wed Jul 22 23:45:55 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A26919A7AA7; Wed, 22 Jul 2015 23:45:55 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 39A6B1A51; Wed, 22 Jul 2015 23:45:55 +0000 (UTC) (envelope-from f0andrey@gmail.com) Received: by wicgb10 with SMTP id gb10so119569250wic.1; Wed, 22 Jul 2015 16:45:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=3J+diC6s0wkkWrFSHmivxGwEsZEFb93bhDsoo5dYB8E=; b=ps8T0pB/BFU9HR553I12qirAEXdI5bJi402rwhutp1rlGMDqG6aIzJxd5VAaFijRCn +QdxsLdOAbwkOFT2tYEmyg5sa6yddlQfa4kSerFwHdkxMthHwik7Noht1w9NLoT/TskL 3znsTBtj7FxdpRhbYSMUCBd3vBLVqHstn3kcyAQGncbM23YSCJA5a/9syY7zXIZR0GHL u5dD+ZtsGfeDuiUOyN0VkHgHcwjwuEFGiiq3NjO2+VlpoNr3+BbCiK6/MoxnbXU9SnlQ 25j0UeSx9hjILpUOwpGKEDOGkF2SxkgePAb1fjTJwS+V3POjAB/gatgdt8+E8GJVs94p tS8g== MIME-Version: 1.0 X-Received: by 10.194.87.4 with SMTP id t4mr10803749wjz.84.1437608753512; Wed, 22 Jul 2015 16:45:53 -0700 (PDT) Received: by 10.194.64.102 with HTTP; Wed, 22 Jul 2015 16:45:53 -0700 (PDT) Date: Thu, 23 Jul 2015 02:45:53 +0300 Message-ID: Subject: forgotten? Bug 183234 - newfs_msdos(8): [patch] From: Andrey Fesenko To: freebsd-fs@freebsd.org, "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jul 2015 23:45:55 -0000 More 2 year not apply working patch fixed Bug 183234 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183234 - newfs_msdos(8): [patch] can't boot BeagleBone Black when newfs_msdos is trimming to a multiple of sectors per track From owner-freebsd-hackers@freebsd.org Thu Jul 23 00:19:40 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C236B9A41B9 for ; Thu, 23 Jul 2015 00:19:40 +0000 (UTC) (envelope-from hsatterwhite@webassign.net) Received: from mail-ig0-x22a.google.com (mail-ig0-x22a.google.com [IPv6:2607:f8b0:4001:c05::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9092A1966 for ; Thu, 23 Jul 2015 00:19:40 +0000 (UTC) (envelope-from hsatterwhite@webassign.net) Received: by igbij6 with SMTP id ij6so149775674igb.1 for ; Wed, 22 Jul 2015 17:19:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=webassign.net; s=google; h=mime-version:from:date:message-id:subject:to:content-type; bh=T2LySpD3Kayo9ZlvXqx3VVZXwBABsTfyhARkCsdjFcI=; b=MTxND5U+suolZad6WPD9NWGfW6s5gW55Hv5CUJn213KaPknmwjH1olqOdNe1Tv4YRP Z5eVGWA5AoWW9MW4aX/OSovup6w84FEAbILlRkS6SJsp3I5D/7gRj7NAD8zYi546qXWJ CtbF/tG0isMaHYjOZL31ZW6QpT31h9a30ys2w= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=T2LySpD3Kayo9ZlvXqx3VVZXwBABsTfyhARkCsdjFcI=; b=W1UfJBESOB51R7aHoVcFoB+WWtmDk5IiEht6ND6PhOC0BYAD4WryMH7ScQcjYT/N2m eeT4+/mIVBcofUCmb/3CYOMd7UOb1VtpAPWu7yz8NyZkbRnWU0SpGpOik7mxXwR1aoAO g0cK+7hwrVq6womvTSTIihIJxyySq6OxcVDjBPhXpkKzk0UhkY1qUcV5waZgpH0armbT +3MSz5Q196MOTEuY7Y9sszHW+ZNN8LBoQ7QX3C/0qALfoT11x2pVXFmc0c6UeIeSFOrC +hfOn59cE7Sf/QzL/ZysteB7qyX9yB/TkwWQ29pDswlFVri2ueULTEK6TFisuEKGLcu+ ZmqQ== X-Gm-Message-State: ALoCoQlcVvxbuwjBOQoMw7cueCSm/LxvNL91DHMMsEjObezMjWOoWPTciAs0NgohHcm803cw8J5r X-Received: by 10.50.57.66 with SMTP id g2mr10444833igq.69.1437610779537; Wed, 22 Jul 2015 17:19:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.148.44 with HTTP; Wed, 22 Jul 2015 17:19:20 -0700 (PDT) From: Hunter Satterwhite Date: Wed, 22 Jul 2015 20:19:20 -0400 Message-ID: Subject: Cisco Virtual Interface Card (VIC) & FreeBSD To: FreeBSD Hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 00:19:41 -0000 Does anyone have experience or knowledge around FreeBSD enic/vnic driver support for Cisco's Virtual Interface Card? We are moving to Cisco FlexPod and this has been raised as a concern. I for one have not been successful in finding any information around this and do not have the necessary hardware to test FreeBSD on. Cisco does not offer one and of course there are no plans on supporting FreeBSD in this capacity, which came straight from one of their Data Center specialist. My team and I are heavily invested in FreeBSD and would like continue using it as our first choice of operating system. Any help our insight in to this would be greatly appreciated. Best, -- *Hunter Satterwhite* WebAssign | Systems Engineer, Technical Operations C 252.762.5177 Website From owner-freebsd-hackers@freebsd.org Thu Jul 23 15:07:34 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 224029A9C2E for ; Thu, 23 Jul 2015 15:07:34 +0000 (UTC) (envelope-from holger@layer-acht.org) Received: from alpha.holgerlevsen.de (mail.holgerlevsen.de [62.201.164.66]) by mx1.freebsd.org (Postfix) with ESMTP id A3BA41B2C for ; Thu, 23 Jul 2015 15:07:32 +0000 (UTC) (envelope-from holger@layer-acht.org) Received: from localhost (alpha.holgerlevsen.de [62.201.164.66]) by alpha.holgerlevsen.de (Postfix) with ESMTP id 22F64CAD655; Thu, 23 Jul 2015 17:07:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at alpha.holgerlevsen.de Received: from alpha.holgerlevsen.de ([62.201.164.66]) by localhost (mail.holgerlevsen.de [62.201.164.66]) (amavisd-new, port 10024) with ESMTP id avRdrbPj65uW; Thu, 23 Jul 2015 17:07:06 +0200 (CEST) Received: from matrix.localnet (epsilon.holgerlevsen.de [62.201.164.82]) by alpha.holgerlevsen.de (Postfix) with ESMTP id ACC89CAD654; Thu, 23 Jul 2015 17:07:06 +0200 (CEST) From: Holger Levsen To: reproducible-builds@lists.alioth.debian.org Subject: Re: [Reproducible-builds] reproducible builds of FreeBSD in a chroot on Linux Date: Thu, 23 Jul 2015 17:06:15 +0200 User-Agent: KMail/1.13.7 (Linux/3.16.0-0.bpo.4-amd64; KDE/4.8.4; x86_64; ; ) Cc: "freebsd-hackers@freebsd.org" References: <201505071122.36037.holger@layer-acht.org> <201507181609.49815.holger@layer-acht.org> <20150720123348.GD91487@pyro.eu.org> In-Reply-To: <20150720123348.GD91487@pyro.eu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart13194516.ZfEmHSPA2E"; protocol="application/pgp-signature"; micalg=pgp-sha512 Content-Transfer-Encoding: 7bit Message-Id: <201507231706.24967.holger@layer-acht.org> X-Mailman-Approved-At: Thu, 23 Jul 2015 15:16:01 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 15:07:34 -0000 --nextPart13194516.ZfEmHSPA2E Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Steven, On Montag, 20. Juli 2015, Steven Chamberlain wrote: > `mktemp freebsd-XXXXXXXX` on FreeBSD would result in random characters > being appended, resulting in freebsd-XXXXXXXX.v1adN6Qo as above. >=20 > `mktemp -d -t freebsd-XXXXXXXX` should replace the X's with random > characters, same as GNU mktemp. But it doesn't seem to have done that. this doesnt happen when trying this manually on freebsd: [jenkins@freebsd-jenkins ~]$ TMPDIR=3D/srv/workspace/chroots/ mktemp -d -t= =20 freebsd-XXXXXXXX /srv/workspace/chroots//freebsd-XXXXXXXX.Qnc7a204 [jenkins@freebsd-jenkins ~]$ TMPDIR=3D/srv/workspace/chroots/ mktemp -d -t= =20 freebsd=20 /srv/workspace/chroots//freebsd.xmBuKFoO So I've changed the code to use the 2nd command now=E2=80=A6 =20 > Are you sure that your RSSH command is sending switches -d and -t > correctly, or do you need a "--" or extra quotes? >=20 > Take a look in /srv/workspace/chroots/ and see if mktemp has perhaps > created a file instead of a directory? there are directories as expected=E2=80=A6 So I've disabled the cleanup after build and fired up another, the result c= an=20 be seen at https://jenkins.debian.net/view/reproducible/job/reproducible_freebsd/9/con= sole and again ends with=20 =2D------------------------------------------------------------- >>> stage 2.1: cleaning up the object tree =2D------------------------------------------------------------- cd /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd; MAKEOBJDIRPREFIX=3D/usr= /obj =20 MACHINE_ARCH=3Damd64 MACHINE=3Damd64 CPUTYPE=3D=20 GROFF_BIN_PATH=3D/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tm= p/legacy/usr/bin =20 GROFF_FONT_PATH=3D/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/t= mp/legacy/usr/share/groff_font =20 GROFF_TMAC_PATH=3D/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/t= mp/legacy/usr/share/tmac =20 _LDSCRIPTROOT=3D VERSION=3D"FreeBSD 11.0-CURRENT amd64 1100077" INSTALL= =3D"sh=20 /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tools/install.sh" =20 PATH=3D/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tmp/legacy/u= sr/sbin:/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tmp/legacy/= usr/bin:/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tmp/legacy/= bin:/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tmp/usr/sbin:/u= sr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tmp/usr/bin:/sbin:/bi= n:/usr/sbin:/usr/bin=20 CC=3D"cc " CXX=3D"c++ " DEPFLAGS=3D"" CPP=3D"cpp " AS=3D"as" AR=3D"ar" = LD=3D"ld" NM=3Dnm =20 OBJDUMP=3Dobjdump OBJCOPY=3D"objcopy" RANLIB=3Dranlib STRINGS=3D SIZE=3D"= size" make - f Makefile.inc1=20 DESTDIR=3D/usr/obj/srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/tmp par- cleandir =3D=3D=3D> lib (cleandir) =3D=3D=3D> lib/csu (cleandir) =3D=3D=3D> lib/csu/amd64 (cleandir) =3D=3D=3D> lib/libcompiler_rt (cleandir) =3D=3D=3D> lib/libc (cleandir) =3D=3D=3D> lib/libc/tests (cleandir) cd: /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/lib/libc/tests: No such= =20 file or directory *** Error code 2 and indeed, /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/lib/libc/ does = not=20 exist, while /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/lib/ exists an= d=20 is populated: [jenkins@freebsd-jenkins ~]$ ls=20 /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/lib/libc ls: /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/lib/libc: No such file = or=20 directory [jenkins@freebsd-jenkins ~]$ ls=20 /srv/workspace/chroots/freebsd.YUCtKJvs/freebsd/lib/libc libc++/ libcalendar/ libcapsicum/ libclang_rt/ libcompat/ = =20 libcuse/ =20 libc_nonshared/ libcam/ libcasper/ libcom_err/ libcrypt/ = =20 libcxxrt/ =20 [jenkins@freebsd-jenkins ~]$=20 Any ideas how to proceed now? cheers, Holger --nextPart13194516.ZfEmHSPA2E Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQIVAwUAVbEC6wkauFYGmqocAQqhuw//fzmfS446bELnuUkll0JWPg6FxmBSLZ3R yDMK8Ahv0Hsp40NZmlouEJsk6Y4ir7V6/KUz+y/nXMhJQTgDl8j2xypJx6yS99vS 3OVqJKYSwbpx9/7SWZmeks4NX1ign2kcKB8UfSsQoap4OV78lugg93ViHRv6V8OV 0DN489QgSMHRq1DSBA1zMZwbxANgtAsRFC9AJvPRCtqmszhlZWSc+uiyyKFdsuuG aS0wP75PmM6xZI8v43XdfXyovuFaRoNA7TkaBfmM6+ehztBEKhpymqorzAGfkM1y 5ChrhSXKQAhpH8/U1NQF/ICCaW0Kg4hQJ6gRn3wzZ4kqOo64gIW9qKNKZIOW+MTb N1pIqdJbl6D9ZtQeQS0CvnS0u4sPjyKTIwlSPhN1Z6La92cgdQMe2DK03418h/rn XpePkLM61yVh1QqltZ7JQhhN8FjGwPJv9IeIv3ORx//i8KM7Ufwcpk9lohYluN5D gNA2wlfkLsKuVBhViO9KEqUclAF4Gz8xlgdhN1AiX7PrEiivft7i4lWDY9iQOMTV Is3+NqfDmSPuXXQeV+viAkYgKBQB5ZCiX/YSZ6R9HgC1MTNeJFXTEbUeL5cCrFEv tKXbnUNOn5PQ+rMg0QnKw2NBcs6L+aDUWGPhqzU5AitPjCjRuIRGgOqp789ITQBL ug9aDKOXLAc= =0Zbs -----END PGP SIGNATURE----- --nextPart13194516.ZfEmHSPA2E-- From owner-freebsd-hackers@freebsd.org Thu Jul 23 15:28:37 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BC5E79A816C for ; Thu, 23 Jul 2015 15:28:37 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: from puchar.net (puchar.net [188.252.31.250]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "puchar.net", Issuer "puchar.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 484A81F1C for ; Thu, 23 Jul 2015 15:28:36 +0000 (UTC) (envelope-from wojtek@puchar.net) Received: Received: from 127.0.0.1 (localhost [127.0.0.1]) by puchar.net (8.14.9/8.14.9) with ESMTP id t6NF3QP6039887 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 23 Jul 2015 17:03:28 +0200 (CEST) (envelope-from wojtek@puchar.net) Received: from laptop.wojtek.intra (localhost [127.0.0.1]) by laptop.wojtek.intra (8.14.9/8.14.9) with ESMTP id t6NF3U87000750; Thu, 23 Jul 2015 17:03:31 +0200 (CEST) (envelope-from wojtek@puchar.net) Received: from localhost (wojtek@localhost) by laptop.wojtek.intra (8.14.9/8.14.9/Submit) with ESMTP id t6NF3POw000747; Thu, 23 Jul 2015 17:03:25 +0200 (CEST) (envelope-from wojtek@puchar.net) X-Authentication-Warning: laptop.wojtek.intra: wojtek owned process doing -bs Date: Thu, 23 Jul 2015 17:03:24 +0200 (CEST) From: Wojciech Puchar X-X-Sender: wojtek@laptop.wojtek.intra To: Hunter Satterwhite cc: FreeBSD Hackers Subject: Re: Cisco Virtual Interface Card (VIC) & FreeBSD In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (puchar.net [10.0.1.1]); Thu, 23 Jul 2015 17:03:29 +0200 (CEST) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jul 2015 15:28:37 -0000 > support for Cisco's Virtual Interface Card? We are moving to Cisco FlexPod > and this has been raised as a concern. I for one have not been successful > in finding any information around this and do not have the necessary > hardware to test FreeBSD on. > > Cisco does not offer one and of course there are no plans on supporting > FreeBSD in this capacity, which came straight from one of their Data Center > specialist. > > My team and I are heavily invested in FreeBSD and would like continue using > it as our first choice of operating system. Any help our insight in to this > would be greatly appreciated. > so why you are installing cisco? From owner-freebsd-hackers@freebsd.org Fri Jul 24 00:52:06 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0BBA9A9C74 for ; Fri, 24 Jul 2015 00:52:06 +0000 (UTC) (envelope-from Don.whY@gmx.com) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3DE5A1670 for ; Fri, 24 Jul 2015 00:52:06 +0000 (UTC) (envelope-from Don.whY@gmx.com) Received: from [192.168.1.115] ([67.212.197.98]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0Ld0jY-1YaL1R04lk-00iGY5 for ; Fri, 24 Jul 2015 02:51:57 +0200 Message-ID: <55B18C45.4030707@gmx.com> Date: Thu, 23 Jul 2015 17:52:21 -0700 From: Don whY User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: format/newfs larger external consumer drives References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:c6dkN7HVD6ksnqcfUIyZ2utXH15is6eqhAEX+9Rk8FVCHG0Jyba ZS9BQTJULKpZXTLhYLWzDjzn0+xaRkcyK6RM8BR8MHtaRrh0ikpDd81K+jXeZWFOxXd/HtF DcqCkJhMi8hgh/G6xUQQ5DY2r55Fl4rhuFzEI/F5gVr9mlwIDo6gfXvqgeKfy45PQagVO+b lzgKjmQ69QYvnz6tF5GZA== X-UI-Out-Filterresults: notjunk:1;V01:K0:7vpS2IY4yZE=:GyX9n3fYgALmIxFyKrb3XZ 7YjUUlumhw5IM8wOGWrWToiO3Y+uiYr9qna33wDmKo6m4pkhyQLvnj+N3NRpzfehF1ofcraXI eAiZFGUFH12lU46swcw0mUKQeI9jtxfA7gP9fdUT9CUUh9U14C9gUXWiTCmRQ2Pb10f/0rjLl beHBAOh1qVPuoQpjAbrdbk08AVSi2dQkZ760sYTUf2C7iUJD9qxGjG8C5fJcj0ZoPgqSmgleM P6CEdhtBF04+6T3rjwzE986i+B0KWosWIvYHRKBg0LNJxaNTAeH1uii2Pu7ypYs5uDU7B6p5d czUe7L6iUoTjzh0m3m8IbSnOVTNcoRCrqH5a/WpVMFskU0R/82oVbdHvfaG+otm5kZ2ziUeET lnETEQ1/mgl2BqOXFVZLdLRBfSdn8Z99E6vMQtnGEZRnQQiqsBCAazZm1+q1q90eaAlbMEhzf 5wkLKNM6kZvu6vFwkt3yb2KqWWCzvjdI9DrZ2bTQWHJq13K+dfoP2cngSVdKswp4w9DTvBq0W Jn10ixfjIvWEHiuF4AGacK5Qgg9qu6NL92Qq+FfYQBai8QlPQgHsLwXy1dXj+4btn9Gn5mJs6 nWa5l8Z7KCpOYBEBqEQzjAK7CeVMYNriih9JopREj3ndvP1ach1qMThb8UYbPOxJpB7xAZ7eN YGpmWevXESkMICRg3ZytD8bsxHEoQbiQ4BtbE9/38FFE0GPumBzn05/u0iVaGFMKcV1k= X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 00:52:06 -0000 On 7/22/2015 2:08 PM, Dieter BSD wrote: > Don whY asks: >> So, fsck's effort (and execution *time*) is based *mostly* on inodes? > > I don't know about *mostly*, but reducing the number of inodes > significantly reduced fsck time for me. OK. I may try building a filesystem, loading a fixed set of files (assorted) onto it, then fsck'ing it. Then, rebuild with a different block/frag/inode configuration and try again (same file set). At the very least, it will be an interesting experiment! >> In my case, there isn't any real physical room for an internal disk. >> I'm using Dell FX160's -- they'll support a SATA laptop drive > > Assuming that "SATA laptop drive" means 2.5" form factor, > just add a 6 TB SSD. (available this month, but the price is > top secret) "If you have to ask, then you can't afford it!" :> >> The point is to get rid of the piles of CD/DVD media that I've >> accumulated over the years > > Someone must make a jukebox for those. Sure! I could have rescued a large 42U unit for "a song" a while ago. But, who wants to find space for such a beast when you can move the entire contents onto 3.5" drives?? (and get true random access without waiting for a robot!) >>> I am very tired of having an entire machine panic just because >>> one disk decided to take a nap. This is not how you get 5 9s. :-( >> >> Or, power glitches, firmware bugs, etc. > > A UPS eats power glitches for breakfast. UPS's take lots of care and feeding. :< I've got a dozen 1500VA units here. Seems like I am perpetually replacing batteries, *somewhere*! :< > Firmware is a problem. > More and more mainboards can have FLOSS firmware, but there is also > buggy firmware in disks and other devices. > > Warren helpfully pointed us to > >> http://sourceforge.net/projects/fuse-ufs2/ > > Thanks, Warren! Sourceforge was kaput when I tried to check it out. > I'm hoping that it is a high quality implementation, and, being fuse, > will solve the kernel panic problem. I plan to look at the filesystem > regression tests and see if I can think up any additional test cases. I suspect I can live without this -- especially in the context of this being a "demo app" just to illustrate what sort of things are (relatively) easy to do. Let someone else with "free time" polish the rough spots! :> My plate is already overflowing :< From owner-freebsd-hackers@freebsd.org Fri Jul 24 07:05:06 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCE279A7250 for ; Fri, 24 Jul 2015 07:05:06 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 71A4715A1; Fri, 24 Jul 2015 07:05:05 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-248-13.lns20.per4.internode.on.net [121.45.248.13]) (authenticated bits=0) by vps1.elischer.org (8.14.9/8.14.9) with ESMTP id t6O74pnO030316 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 24 Jul 2015 00:04:55 -0700 (PDT) (envelope-from julian@freebsd.org) Subject: Re: Cisco Virtual Interface Card (VIC) & FreeBSD To: Hunter Satterwhite , FreeBSD Hackers References: Cc: ambrisko@freebsd.org From: Julian Elischer Message-ID: <55B1E38E.4040001@freebsd.org> Date: Fri, 24 Jul 2015 15:04:46 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 07:05:07 -0000 On 7/23/15 8:19 AM, Hunter Satterwhite wrote: > Does anyone have experience or knowledge around FreeBSD enic/vnic driver > support for Cisco's Virtual Interface Card? We are moving to Cisco FlexPod > and this has been raised as a concern. I for one have not been successful > in finding any information around this and do not have the necessary > hardware to test FreeBSD on. unfortunately not a lot of people use the Cisco gear so it's possible that no-one does have this experience. Sounds like you are going to be the Guinea Pig! :-) IS this the "card" they have in their blade box that is for connecting all the servers in the one box to an internal switch? > > Cisco does not offer one and of course there are no plans on supporting > FreeBSD in this capacity, which came straight from one of their Data Center > specialist. > > My team and I are heavily invested in FreeBSD and would like continue using > it as our first choice of operating system. Any help our insight in to this > would be greatly appreciated. We appreciate the support. I can't go out and buy one however.. ;-) there is a CIsco division (IronPort) that does use FreeBSD.. maybe Doug (ambrisko@) (CC'd) can shake some info loose. last I saw they were using Dell gear though. Doug? > > Best, From owner-freebsd-hackers@freebsd.org Fri Jul 24 12:49:44 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7A28A9A96E4 for ; Fri, 24 Jul 2015 12:49:44 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0140.outbound.protection.outlook.com [207.46.100.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3D0C51D24 for ; Fri, 24 Jul 2015 12:49:43 +0000 (UTC) (envelope-from aduane@juniper.net) Received: from DM2PR05MB736.namprd05.prod.outlook.com (10.141.178.25) by DM2PR05MB736.namprd05.prod.outlook.com (10.141.178.25) with Microsoft SMTP Server (TLS) id 15.1.225.19; Fri, 24 Jul 2015 12:34:00 +0000 Received: from DM2PR05MB736.namprd05.prod.outlook.com ([10.141.178.25]) by DM2PR05MB736.namprd05.prod.outlook.com ([10.141.178.25]) with mapi id 15.01.0225.018; Fri, 24 Jul 2015 12:34:00 +0000 From: Andrew Duane To: Don whY , "freebsd-hackers@freebsd.org" Subject: RE: format/newfs larger external consumer drives Thread-Topic: format/newfs larger external consumer drives Thread-Index: AQHQxar7lTdWI9gM6EWoof4+jTDiOp3qjXcQ Date: Fri, 24 Jul 2015 12:34:00 +0000 Message-ID: References: <55B18C45.4030707@gmx.com> In-Reply-To: <55B18C45.4030707@gmx.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: gmx.com; dkim=none (message not signed) header.d=none; x-originating-ip: [66.129.241.14] x-microsoft-exchange-diagnostics: 1; DM2PR05MB736; 5:nEMzu1DzWu+OuM3Fhha+qmMx8MLPIo/r5guxB0GAqX+ljNmtKfMSg9E/l2D1Oc0idyeam2rTttrMBcJAmN9T/w/zsbBQPRMVuOl29yzs++RKX11jLmmZQCfSBmYO6RutjT3WDW9numyiODXcVSM5Hw==; 24:gYNiIiQv3e85m8J+jY9bVsxFHu7PVUtrZH3IUcpLiQQYsjwZWCD7KwVCdLNMW+c5q6j0orfQ3erGWIGnvbjxcIq8wcUpskECOwMp6vlzzA0=; 20:q5s/+z43Elb7zsxB9H1WXPwC46gfLBxAYYG+w4VIuytDq/mRGdnmWljNaV+/iO/oOAYYVf1KajuItSLd86HIBw== x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(42134001)(42139001); SRVR:DM2PR05MB736; dm2pr05mb736: X-MS-Exchange-Organization-RulesExecuted x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:DM2PR05MB736; BCL:0; PCL:0; RULEID:; SRVR:DM2PR05MB736; x-forefront-prvs: 0647963F84 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(377454003)(13464003)(479174004)(24454002)(76576001)(76176999)(54356999)(107886002)(40100003)(50986999)(102836002)(92566002)(2950100001)(15975445007)(2900100001)(77096005)(5001960100002)(5001770100001)(1720100001)(5003600100002)(74316001)(33656002)(5002640100001)(122556002)(62966003)(87936001)(86362001)(66066001)(46102003)(77156002)(2501003)(2656002)(106116001)(189998001)(99286002)(19580405001)(19580395003)(7059030); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR05MB736; H:DM2PR05MB736.namprd05.prod.outlook.com; FPR:; SPF:None; MLV:sfv; LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: juniper.net X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2015 12:34:00.4628 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR05MB736 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2015 12:49:44 -0000 > -----Original Message----- > From: owner-freebsd-hackers@freebsd.org [mailto:owner-freebsd- > hackers@freebsd.org] On Behalf Of Don whY > Sent: Thursday, July 23, 2015 8:52 PM > To: freebsd-hackers@freebsd.org > Subject: Re: format/newfs larger external consumer drives >=20 > On 7/22/2015 2:08 PM, Dieter BSD wrote: > > Don whY asks: > >> So, fsck's effort (and execution *time*) is based *mostly* on inodes? > > > > I don't know about *mostly*, but reducing the number of inodes > > significantly reduced fsck time for me. >=20 > OK. I may try building a filesystem, loading a fixed set of files > (assorted) onto it, then fsck'ing it. Then, rebuild with a different > block/frag/inode configuration and try again (same file set). At the ver= y least, it > will be an interesting experiment! FSCK has 5 passes, each of which checks a different "thing" in the filesyst= em. Each pass will depend on how many of those "things" there are to check.= One checks inodes and cylinder groups, one checks all blocks, one checks a= ll directory and file entries, and so on. So fewer inodes will help, but mo= re files eat up the savings, etc. Some experiments can tell you how long it= takes to check each and what the savings would be. Also remember that each inode takes 128 bytes on disk. So a billion unused = inodes wastes a 128 GB on the disk. > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " From owner-freebsd-hackers@freebsd.org Sat Jul 25 05:54:33 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C38A9A9E08 for ; Sat, 25 Jul 2015 05:54:33 +0000 (UTC) (envelope-from ps06756@gmail.com) Received: from mail-la0-x236.google.com (mail-la0-x236.google.com [IPv6:2a00:1450:4010:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 89366E34 for ; Sat, 25 Jul 2015 05:54:32 +0000 (UTC) (envelope-from ps06756@gmail.com) Received: by lagw2 with SMTP id w2so24440838lag.3 for ; Fri, 24 Jul 2015 22:54:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=LnNxIdMo0av0JMopuZT5PILQyKpVQZmIyhlG29ccaTM=; b=QuVjFmy2X9E5NBGQ1dmZ1JsuuiZ+gFer4eNmanaHrVk7vW0zmfdaZeAYuCt6ejYCly KllSxwYAa+ysJjfss9YyCLh+DbvtRKG9hlJ9xJChz+8xjAF6jNG1mnAlCX1MhH49VRse uyzhvvPO9i6WDfhazp17dVvhxassrLyBzS6z40rsd1z5ZODJ1Aq5agkVybrb5mDqLf7C J+FjbfP82Ey/SVq9etRsbkBSk5+eWtrcHzKu8GIjipn3Zq/j5eJU7e8uoJPG6UiNZcUp MAioZ7Hjb3LryOSzbAZRACGDNECJvzqdkln1syWpsY3Sh4qA/TIzHJrJdwQlC/7TO7l3 xhnA== X-Received: by 10.152.205.67 with SMTP id le3mr17089587lac.50.1437803670562; Fri, 24 Jul 2015 22:54:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.87.194 with HTTP; Fri, 24 Jul 2015 22:54:11 -0700 (PDT) From: Pratik Singhal Date: Sat, 25 Jul 2015 11:24:11 +0530 Message-ID: Subject: How to interface AC'97 codec driver with kernel ? To: freebsd-hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 05:54:33 -0000 Hello all, I am writing the driver for AC'97 controller present in Allwinner A10 SoC as a part of my Google summer of code Project. I have understood the theoretical aspects of AC'97 and know "what" to code, but I am unable to understand , how to interface the code with FreeBSD kernel. For ex, when making changes in the mmc driver, it was very clear that the high-level file sys/dev/mmc/mmc.c will call the methods defined in our implementation of mmc driver, In the case of AC'97, what all files should I look at ? I have so far looked at sys/dev/sound/pcm/ directory, but can't seem to understand much there. Also,how does FreeBSD control the AC-link , which will be used to control various parameters related to AC'97 codec I/O ? I am new to working with sound at this low level, so there might be some trivial things which I may have missed. Any help would be very valuable for timely completion of project Thanks, Pratik Singhal From owner-freebsd-hackers@freebsd.org Sat Jul 25 08:54:53 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 101BF9A9180 for ; Sat, 25 Jul 2015 08:54:53 +0000 (UTC) (envelope-from hetakcoder@gmail.com) Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9D7681CE3 for ; Sat, 25 Jul 2015 08:54:52 +0000 (UTC) (envelope-from hetakcoder@gmail.com) Received: by wibxm9 with SMTP id xm9so59049704wib.1 for ; Sat, 25 Jul 2015 01:54:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=qrxLfbGGIj/nXqxS00qKqjcfS+6T6tVqVujfToNr9+Q=; b=oitm6f+99mpA0adJnJPqVmyiWa1UqwtMag6pv2XjDD3Qu20TUBahaWka0qUX0OHtYO LZ+NCF4l75b6Zs8g5nmdMSUCAuZb1O/TBXbhrS/JuP7IdlSuI5aTwXMuE0JguClOvRlU YhttsFBolSK0gRK3sAC4FkT4i8rj/oqkzN3mGooGnr6kxD49kOaQGqa2F6mZ8+or5ylq s2eAy9LaC0kkwIYGiQSUwzB1lo768mLgsSNEqQb+9fhKb0s7+3LNGVSfMkfxvv4IQ6sk puTstjZSSf3uZJFiJJEVq+MCVMfXnvmBoDqSB2QFXFxK4UU+xv8h+lpyTsC2BWI8eAlE MRlQ== X-Received: by 10.180.20.198 with SMTP id p6mr4865060wie.38.1437814490665; Sat, 25 Jul 2015 01:54:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.68.233 with HTTP; Sat, 25 Jul 2015 01:54:11 -0700 (PDT) From: HeTak Date: Sat, 25 Jul 2015 13:24:11 +0430 Message-ID: Subject: Kernel Debug Howto To: freebsd-hackers Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 08:54:53 -0000 Hi there, I have recently started some developments on FreeBSD net section. But I am kinda new to this field. My base interest is to first understand the implementation structure via tracing the code and so. I have three major questions: 1- how to debug changes made to FreeBSD kernel? (You know, till some levels, I can even use uprintf or so, but, for example inside radix.c (where I wanna understand how a route is checked to be unique and then inserted to the tree) I can't do such checks..) 2- are there standards there for freebsd kernel developments of which I can follow so my job gets a bit simplified? (Any development guides or so?I prospect it to be some differences between system developments and normal coding, but I don't have an idea on how to get that). 3- what is the fastest way to apply changes to FreeBSD kernel? (For now, I just follow the normal build & install kernel & reboot.) Thanks in advance for your patience in answering an anxious newbie :) -- HeTak From owner-freebsd-hackers@freebsd.org Sat Jul 25 09:11:37 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C9E989A96E1 for ; Sat, 25 Jul 2015 09:11:37 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from venus.codepro.be (venus.codepro.be [IPv6:2a01:4f8:162:1127::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.codepro.be", Issuer "Gandi Standard SSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 93D8F350 for ; Sat, 25 Jul 2015 09:11:37 +0000 (UTC) (envelope-from kp@FreeBSD.org) Received: from [IPv6:2001:4dd0:ff00:809d:1449:a7d9:ccf6:b355] (unknown [IPv6:2001:4dd0:ff00:809d:1449:a7d9:ccf6:b355]) by venus.codepro.be (Postfix) with ESMTPSA id B7FE6110F2; Sat, 25 Jul 2015 11:11:32 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3071\)) Subject: Re: Kernel Debug Howto From: Kristof Provost In-Reply-To: Date: Sat, 25 Jul 2015 11:11:32 +0200 Cc: freebsd-hackers Content-Transfer-Encoding: quoted-printable Message-Id: <514DDE7F-CF61-461D-A9FF-232DC938BDF5@FreeBSD.org> References: To: HeTak X-Mailer: Apple Mail (2.3071) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 09:11:37 -0000 > On 25 Jul 2015, at 10:54, HeTak wrote: > I have recently started some developments on FreeBSD net section. Great! > But I am kinda new to this field. My base interest is to first = understand the > implementation structure via tracing the code and so. >=20 > I have three major questions: > 1- how to debug changes made to FreeBSD kernel? > (You know, till some levels, I can even use uprintf or so, but, for = example > inside radix.c (where I wanna understand how a route is checked to be > unique and then inserted to the tree) I can't do such checks..) dtrace can be quite useful to understand flows. You can grab stack = traces (i.e. figure out where things are called from), get function arguments, = =E2=80=A6 > 2- are there standards there for freebsd kernel developments of which = I can > follow so my job gets a bit simplified? > (Any development guides or so?I prospect it to be some differences = between > system developments and normal coding, but I don't have an idea on how = to > get that). There=E2=80=99s style(9) for coding style. I=E2=80=99d also recommend "The Design and Implementation of the FreeBSD = Operating System=E2=80=9D (the second edition). > 3- what is the fastest way to apply changes to FreeBSD kernel? > (For now, I just follow the normal build & install kernel & reboot.) I pretty much do that. Depending on what you=E2=80=99re working on it = might be easier to run it in a VM. My work lately has been on the network code, so a VM is very convenient. It=E2=80=99s not so useful if you=E2=80=99re working on drivers, of = course. Regards, Kristof= From owner-freebsd-hackers@freebsd.org Sat Jul 25 09:25:33 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0BCFE9A9ABC for ; Sat, 25 Jul 2015 09:25:33 +0000 (UTC) (envelope-from hetakcoder@gmail.com) Received: from mail-wi0-x22d.google.com (mail-wi0-x22d.google.com [IPv6:2a00:1450:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7118BA73; Sat, 25 Jul 2015 09:25:32 +0000 (UTC) (envelope-from hetakcoder@gmail.com) Received: by wibxm9 with SMTP id xm9so54044809wib.0; Sat, 25 Jul 2015 02:25:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=HsdvCDwfg5iTt+wj0a3NCwJNiQtET7eK+yfkLJaNIKw=; b=IpcFY5El40I1RzZMZPHEbjompIvO9puwxCJ4sGERelvh5iFB83ZIlmYDR4o3fuid5a QCfjaBLRnnX3XAC92/7ni7LfVIRiUv5rTucAZqHrXKsPzOuc5HBWGyIEoxYSha0NHxzR BDSKB7ke5rxJ3YEfnRiQ8T0CyZWVZbQinjQrs/PZ4ji/5zq5QJpsthQaKRB6p+IF5wQu PUdjLQj5FrVr3sSUmGsn9g01XKhEF/5dxwaRJFx+MuO4M96KrUVnaF1lK3zw6aiNaf3N hZWWSjMCOeomo1WzQWlq+dD8VAPHIYcZmttS+ZdmcrSskoHYbtUKBrnS59eW9bEjMKJg jwPw== X-Received: by 10.180.14.101 with SMTP id o5mr5154929wic.82.1437816329977; Sat, 25 Jul 2015 02:25:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.68.233 with HTTP; Sat, 25 Jul 2015 02:24:50 -0700 (PDT) In-Reply-To: <514DDE7F-CF61-461D-A9FF-232DC938BDF5@FreeBSD.org> References: <514DDE7F-CF61-461D-A9FF-232DC938BDF5@FreeBSD.org> From: HeTak Date: Sat, 25 Jul 2015 13:54:50 +0430 Message-ID: Subject: Re: Kernel Debug Howto To: Kristof Provost Cc: freebsd-hackers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 09:25:33 -0000 On Sat, Jul 25, 2015 at 1:41 PM, Kristof Provost wrote: > > > On 25 Jul 2015, at 10:54, HeTak wrote: > > I have recently started some developments on FreeBSD net section. > Great! > =E2=80=8BThank you Kristof, b oth for your fast answering and your welcome.=E2=80=8B :) > > > But I am kinda new to this field. My base interest is to first > understand the > > implementation structure via tracing the code and so. > > > > I have three major questions: > > 1- how to debug changes made to FreeBSD kernel? > > (You know, till some levels, I can even use uprintf or so, but, for > example > > inside radix.c (where I wanna understand how a route is checked to be > > unique and then inserted to the tree) I can't do such checks..) > dtrace can be quite useful to understand flows. You can grab stack traces > (i.e. figure out where things are called from), get function arguments, = =E2=80=A6 > > 2- are there standards there for freebsd kernel developments of which I > can > > follow so my job gets a bit simplified? > > (Any development guides or so?I prospect it to be some differences > between > > system developments and normal coding, but I don't have an idea on how = to > > get that). > There=E2=80=99s style(9) for coding style. > I=E2=80=99d also recommend "The Design and Implementation of the FreeBSD = Operating > System=E2=80=9D > (the second edition). > > > 3- what is the fastest way to apply changes to FreeBSD kernel? > > (For now, I just follow the normal build & install kernel & reboot.) > I pretty much do that. Depending on what you=E2=80=99re working on it mig= ht be > easier to run it in a VM. > My work lately has been on the network code, so a VM is very convenient. > It=E2=80=99s not so useful if you=E2=80=99re working on drivers, of cours= e. > =E2=80=8B =E2=80=8BGreat to hear of such a tool as Dtrace and also the book. and actu= ally I'm using a VM as well. =E2=80=8B =E2=80=8BI'll check these and hope to be successful through my way. > > Regards, > Kristof =E2=80=8BCheerio, HeTak=E2=80=8B From owner-freebsd-hackers@freebsd.org Sat Jul 25 09:44:08 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BE6569A9F94 for ; Sat, 25 Jul 2015 09:44:08 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: from mail-ie0-x235.google.com (mail-ie0-x235.google.com [IPv6:2607:f8b0:4001:c03::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8115A11F3; Sat, 25 Jul 2015 09:44:08 +0000 (UTC) (envelope-from m.e.sanliturk@gmail.com) Received: by iehx8 with SMTP id x8so34786308ieh.3; Sat, 25 Jul 2015 02:44:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=F/+V4wnzf2azyUKF/eyThvwK2xWClbpvGtOoQafxd1I=; b=ZLhYy+6wifzf+L/oT+iXgpkUvaIeSoINRaKZwDFdAyrwXPkrQ3DjxAwT/TZLo+U9GK yGUVeX8f9orXErolV1gRzeN02TQHBcuVlgcoC/Hkme39brLTEEolvMrKNeXGfTtZhr0R +pX5rjnOueV+OboBRN5MNbJYL2qDzlnntFL9Bw3eQuC8jzNCKtj6drhkwA0YBF5rgAia rqduRiO/Jdo1ZCDMBjOU9ElS76+/dR/xh2Z5REJgnpdBaDl+YqkY3QuBEZB5BiqpMXyd 2otN4nfiTlqeSz3u73HUH+Q1dc2sBff9Xblcwcfs5QrcLAT4i0Y/aqktT6NKu3C1xye8 CpeQ== MIME-Version: 1.0 X-Received: by 10.50.36.101 with SMTP id p5mr3777637igj.58.1437817447603; Sat, 25 Jul 2015 02:44:07 -0700 (PDT) Received: by 10.65.15.33 with HTTP; Sat, 25 Jul 2015 02:44:07 -0700 (PDT) In-Reply-To: References: <514DDE7F-CF61-461D-A9FF-232DC938BDF5@FreeBSD.org> Date: Sat, 25 Jul 2015 02:44:07 -0700 Message-ID: Subject: Re: Kernel Debug Howto From: Mehmet Erol Sanliturk To: HeTak Cc: Kristof Provost , freebsd-hackers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 09:44:08 -0000 On Sat, Jul 25, 2015 at 2:24 AM, HeTak wrote: > On Sat, Jul 25, 2015 at 1:41 PM, Kristof Provost wrote: > > > > > > On 25 Jul 2015, at 10:54, HeTak wrote: > > > I have recently started some developments on FreeBSD net section. > > Great! > > > =E2=80=8BThank you Kristof, b > oth for your fast answering and your welcome.=E2=80=8B :) > > > > > > But I am kinda new to this field. My base interest is to first > > understand the > > > implementation structure via tracing the code and so. > > > > > > I have three major questions: > > > 1- how to debug changes made to FreeBSD kernel? > > > (You know, till some levels, I can even use uprintf or so, but, for > > example > > > inside radix.c (where I wanna understand how a route is checked to be > > > unique and then inserted to the tree) I can't do such checks..) > > dtrace can be quite useful to understand flows. You can grab stack trac= es > > (i.e. figure out where things are called from), get function arguments,= =E2=80=A6 > > > > > 2- are there standards there for freebsd kernel developments of which= I > > can > > > follow so my job gets a bit simplified? > > > (Any development guides or so?I prospect it to be some differences > > between > > > system developments and normal coding, but I don't have an idea on ho= w > to > > > get that). > > There=E2=80=99s style(9) for coding style. > > I=E2=80=99d also recommend "The Design and Implementation of the FreeBS= D > Operating > > System=E2=80=9D > > (the second edition). > > > Perhaps , the following books may also be useful : https://www.nostarch.com/abs_bsd2.htm ( Absolute FreeBSD, 2nd Edition ) There is also a book by Michael W. Lucas about ZFS . https://www.nostarch.com/rootkits.htm ( Designing BSD Rootkits ) https://www.nostarch.com/bsddrivers.htm ( FreeBSD Device Drivers ) Mehmet Erol Sanliturk > > > 3- what is the fastest way to apply changes to FreeBSD kernel? > > > (For now, I just follow the normal build & install kernel & reboot.) > > I pretty much do that. Depending on what you=E2=80=99re working on it m= ight be > > easier to run it in a VM. > > My work lately has been on the network code, so a VM is very convenient= . > > It=E2=80=99s not so useful if you=E2=80=99re working on drivers, of cou= rse. > > > =E2=80=8B > =E2=80=8BGreat to hear of such a tool as Dtrace and also the book. and ac= tually I'm > using a VM as well. =E2=80=8B > > =E2=80=8BI'll check these and hope to be successful through my way. > > > > > Regards, > > Kristof > > > =E2=80=8BCheerio, > HeTak=E2=80=8B > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org= " From owner-freebsd-hackers@freebsd.org Sat Jul 25 06:51:40 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AE16B9AA7CE for ; Sat, 25 Jul 2015 06:51:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5FA6A3A4 for ; Sat, 25 Jul 2015 06:51:40 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from outgoing.leidinger.net (p57BB805C.dip0.t-ipconnect.de [87.187.128.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id 5D98183E402; Sat, 25 Jul 2015 08:41:03 +0200 (CEST) Received: from webmail.leidinger.net (webmail.Leidinger.net [IPv6:fd73:10c7:2053:1::3:102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id 5A1C344C5; Sat, 25 Jul 2015 08:40:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=leidinger.net; s=outgoing-alex; t=1437806459; bh=uJ1R0TWgmDQZx/Y7RTGb+ufp2syXAUGvNeLQjTiCG84=; h=Date:From:To:Cc:Subject; b=ohIzFB0Gkw17NEi+cnolxclJFvSXLQLjYlIvFy8Jto2gZxtiMULaO+yK1UVhfy1YC otjQi4nht0LhjVpj9gQswA3k9RIkVCEO9cV3li47bqEKB/Emuw4apu4ArZnBpcn14e jpRrUTS5OTkEDwr6M4+gkyJpaG69YaAirWkajtS9mVodVnXpq+TUesU9BMrmAT6C6Q rmrIJ298ICPXfN/SYCHRWJspfghCmOaE286gnQt7d2SolWJqn6KZzemMucbGUS4pan JHTj3bMtdj+5498GvYBUd4VQVhaWBa4MINgosScuSsfuj5J74T+QUVfT/PYTfAz4PG rdjYSZdHJNFKg== Received: (from www@localhost) by webmail.leidinger.net (8.14.9/8.14.4/Submit) id t6P6exf6075835; Sat, 25 Jul 2015 08:40:59 +0200 (CEST) (envelope-from Alexander@leidinger.net) X-Authentication-Warning: webmail.leidinger.net: www set sender to Alexander@leidinger.net using -f Received: from p4FE4C599.dip0.t-ipconnect.de (p4FE4C599.dip0.t-ipconnect.de [79.228.197.153]) by webmail.leidinger.net (Horde Framework) with HTTP; Sat, 25 Jul 2015 08:40:58 +0200 Date: Sat, 25 Jul 2015 08:40:58 +0200 Message-ID: <20150725084058.Horde.VOuhK5_psS01pmYmg7IkQkZ@webmail.leidinger.net> From: Alexander Leidinger To: Pratik Singhal Cc: freebsd-hackers Subject: Re: How to interface AC'97 codec driver with kernel ? User-Agent: Horde Application Framework 5 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes MIME-Version: 1.0 Content-Disposition: inline X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: 5D98183E402.A1C19 X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-0.1, required 6, autolearn=disabled, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1438411264.9017@lU45AwtO7er7NoeaKUt8aQ X-EBL-Spam-Status: No X-Mailman-Approved-At: Sat, 25 Jul 2015 10:48:52 +0000 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 06:51:40 -0000 On Sat, 25 Jul 2015 11:24:11 +0530 Pratik Singhal wrote: > In the case of AC'97, what all files should I look at ? I have so far > looked at sys/dev/sound/pcm/ directory, but can't seem to understand > much there. sound/pcm contains generic code. sound/pci is most probably the part you want to understand most. It contains the hardware specific parts. Not all drivers there are on the same quality/maturity level. No idea which is the best one to look at. Maybe the following link helps a little bit with understanding more easy what is used where (automatically generated out of the FreeBSD source): http://www.leidinger.net/FreeBSD/dox/dev_sound/html/ Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0xC773696B3BAC17DC http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0xC773696B3BAC17DC -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0xC773696B3BAC17DC http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0xC773696B3BAC17DC From owner-freebsd-hackers@freebsd.org Sat Jul 25 13:25:35 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 766DC9AA6E4 for ; Sat, 25 Jul 2015 13:25:35 +0000 (UTC) (envelope-from deco33000@yandex.com) Received: from forward12p.cmail.yandex.net (forward12p.cmail.yandex.net [87.250.241.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2FAF51BC0 for ; Sat, 25 Jul 2015 13:25:34 +0000 (UTC) (envelope-from deco33000@yandex.com) Received: from web8g.yandex.ru (web8g.yandex.ru [95.108.252.108]) by forward12p.cmail.yandex.net (Yandex) with ESMTP id E766421F82 for ; Sat, 25 Jul 2015 16:25:29 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web8g.yandex.ru (Yandex) with ESMTP id 934BC5740F41; Sat, 25 Jul 2015 16:25:29 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1437830729; bh=7UdaMu6kYr3OW4qBqJB4/Vvdbtc7KLBGKuIpM+AtMEY=; h=From:To:Subject:Date; b=IFCAgJVZtJ8WjLnlzFyATTMkRMEr2boi1S9A5al5KWM5jsT3kZeZJIwNWjQ2lJ9Ti iFyoAzG8KNzew8fQaFZkzYS4uNXNwKT9TJt4oDzzZ4XT/6Idd4foJCrfDmUvUZ/jTy MA7IS6eS3qF6FkDPikFBYDR9WN7zDrjMMD2y198w= Received: by web8g.yandex.ru with HTTP; Sat, 25 Jul 2015 16:25:29 +0300 From: deco33000@yandex.com To: freebsd-hackers@freebsd.org Subject: Timekeeping between two hardclocks MIME-Version: 1.0 Message-Id: <1226791437830729@web8g.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sat, 25 Jul 2015 15:25:29 +0200 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 13:25:35 -0000 Hello, I am learning the freebsd way to keep the time up to date. I already read http://phk.freebsd.dk/pubs/timecounter.pdf I am mostly in sys/kern_tc.c We avoid to call hardware hardclock() every time we need a timestamp by applying some math (to improve performance). I get the idea. But, how do we know how far we are from the last hardclock(), at any given moment? Are the updates to the "fake" timestamps occuring at a constant rate? Is there a feed somewhere I missed? I don't see where in that case. This is the last -and most important- point I don't get on the timer/clock subsystem. I seriously need your help/pointers I guess. Thanks --š Jog From owner-freebsd-hackers@freebsd.org Sat Jul 25 15:33:49 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0C27F9AAC68 for ; Sat, 25 Jul 2015 15:33:49 +0000 (UTC) (envelope-from deco33000@yandex.com) Received: from forward11h.cmail.yandex.net (forward11h.cmail.yandex.net [IPv6:2a02:6b8:0:f35::9c]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BB0D511E7 for ; Sat, 25 Jul 2015 15:33:48 +0000 (UTC) (envelope-from deco33000@yandex.com) Received: from web20h.yandex.ru (web20h.yandex.ru [84.201.186.49]) by forward11h.cmail.yandex.net (Yandex) with ESMTP id 1DF36218D9 for ; Sat, 25 Jul 2015 18:33:35 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web20h.yandex.ru (Yandex) with ESMTP id B841013213B3; Sat, 25 Jul 2015 18:33:34 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1437838414; bh=E/qmBoC5o5ZOUNIkstrJe3Vf3tzW0MGTVBelqaRpctY=; h=From:To:In-Reply-To:References:Subject:Date; b=jRTX+m7v7ZZ3rat1IignWHw3RUI+q0A7paQozeug4t1H0HM9Itq510KAoOjXduqNl o0Ay8J/HWPssu4qvrGMB/XZ27JRET8h0Y9awFw1fAw6Z416PeYpeLp7uGwWmx7nY4F Ltvzy2qXb95IHafJBDUiGlm6t7jBeO3K2B8IcCrU= Received: by web20h.yandex.ru with HTTP; Sat, 25 Jul 2015 18:33:33 +0300 From: deco33000@yandex.com To: "freebsd-hackers@freebsd.org" In-Reply-To: <1226791437830729@web8g.yandex.ru> References: <1226791437830729@web8g.yandex.ru> Subject: Re: Timekeeping between two hardclocks MIME-Version: 1.0 Message-Id: <1408761437838413@web20h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sat, 25 Jul 2015 17:33:33 +0200 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 15:33:49 -0000 huumm.. Did I get it wrong ? we cannot guess where we are in time, we just cache the hardware clock and do some calculations on it up to the next hardware read. That way, we don't need to ask the hardware all the time. I was wrong, thinking that we could derivate the current timestamp (the exact one, at the request moment) without ever needing hardware. That would have been genius. But we just cache it. Simple. Is my understanding right now ? --š Jog From owner-freebsd-hackers@freebsd.org Sat Jul 25 16:05:30 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 04E199AA2CB for ; Sat, 25 Jul 2015 16:05:30 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) by mx1.freebsd.org (Postfix) with SMTP id DB29E2FF for ; Sat, 25 Jul 2015 16:05:29 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from ilsoft.org (unknown [73.34.117.227]) by outbound1.ore.mailhop.org (Halon Mail Gateway) with ESMTPSA; Sat, 25 Jul 2015 16:04:54 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id t6PG5LK7014069; Sat, 25 Jul 2015 10:05:21 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1437840321.48814.10.camel@freebsd.org> Subject: Re: Timekeeping between two hardclocks From: Ian Lepore To: deco33000@yandex.com Cc: "freebsd-hackers@freebsd.org" Date: Sat, 25 Jul 2015 10:05:21 -0600 In-Reply-To: <1408761437838413@web20h.yandex.ru> References: <1226791437830729@web8g.yandex.ru> <1408761437838413@web20h.yandex.ru> Content-Type: text/plain; charset="us-ascii" X-Mailer: Evolution 3.12.10 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 16:05:30 -0000 On Sat, 2015-07-25 at 17:33 +0200, deco33000@yandex.com wrote: > huumm.. > > Did I get it wrong ? we cannot guess where we are in time, we just cache the hardware clock and do some calculations on it up to the next hardware read. > That way, we don't need to ask the hardware all the time. > > I was wrong, thinking that we could derivate the current timestamp (the exact one, at the request moment) without ever needing hardware. That would have been genius. > > But we just cache it. Simple. > > Is my understanding right now ? Unfortunately I don't have the time right now (and for at least a few more days) to write up the detailed answers your questions need. One piece of advice I might offer quickly, though: over the past 2-3 years there have been some big changes in kernel timekeeping -- the addition of the Feed-Forward clock code and the transition to a "tickless" kernel with the advent of the "event timer" code -- and these things make it harder to under the basic logic that was largely unchanged for many years in kernel timekeeping and is still really at the heart of it all. You may find it useful to look at the kern_tc code in the 8-stable branch before those things were added. Then it might become more clear how the eventtimer changes work to skip the uneccessary timer ticks between counter rollovers. -- Ian From owner-freebsd-hackers@freebsd.org Sat Jul 25 18:21:24 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A93E39ABA4E for ; Sat, 25 Jul 2015 18:21:24 +0000 (UTC) (envelope-from deco33000@yandex.com) Received: from forward20h.cmail.yandex.net (forward20h.cmail.yandex.net [87.250.230.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 59440E97; Sat, 25 Jul 2015 18:21:23 +0000 (UTC) (envelope-from deco33000@yandex.com) Received: from web23h.yandex.ru (web23h.yandex.ru [IPv6:2a02:6b8:0:f05::33]) by forward20h.cmail.yandex.net (Yandex) with ESMTP id CBCDF21B65; Sat, 25 Jul 2015 21:21:13 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web23h.yandex.ru (Yandex) with ESMTP id 40915E604D2; Sat, 25 Jul 2015 21:21:13 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1437848473; bh=adqvYmo7C0EAZjcvhhpY4aPm/3+XaYhJsa4UZDbwVZc=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=F7wTXRSQrpTuPgQKWMwl/IVC72Al9Y/IF8EhOuo09zAJFsANTmD38y7c8jTrU/uCN gHa/PX68g+664vITRzrwLN2gUT8eYZvERLT4Nq83xPze+q49U9mLH3S+nZC50wbfI6 zHJotOTy0hgErm0KLfxup9stmzUBLcK1/+BxTzaE= Received: by web23h.yandex.ru with HTTP; Sat, 25 Jul 2015 21:21:12 +0300 From: deco33000@yandex.com To: Ian Lepore Cc: "freebsd-hackers@freebsd.org" In-Reply-To: <1437840321.48814.10.camel@freebsd.org> References: <1226791437830729@web8g.yandex.ru> <1408761437838413@web20h.yandex.ru> <1437840321.48814.10.camel@freebsd.org> Subject: Re: Timekeeping between two hardclocks MIME-Version: 1.0 Message-Id: <810331437848472@web23h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Sat, 25 Jul 2015 20:21:12 +0200 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 18:21:24 -0000 Thanks Ian, I read the freebsd7 source. I think i understand the rollovers, the deltas and so on. As far as event timers are concerned : we cannot handle timers inferior to the current kernel timing resolution right ? If it is 1ms, one cannot ask a timer to be processed EXACTLY at 0.5ms. It will have to wait the next interrupt to be handled. So, I guess I am pretty correct when I say that we have to wait for the hardware interrupt to check for new events. Because otherwise we have no point of reference (are we really at 0.5ms or 0.478ms or 0.51ms?).. I am sorry if I don't get it faster, but the devil is in the details in this context :) --š Jog From owner-freebsd-hackers@freebsd.org Sat Jul 25 20:03:04 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D20429AA921 for ; Sat, 25 Jul 2015 20:03:04 +0000 (UTC) (envelope-from kaduk@mit.edu) Received: from dmz-mailsec-scanner-8.mit.edu (dmz-mailsec-scanner-8.mit.edu [18.7.68.37]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 64ADAF0 for ; Sat, 25 Jul 2015 20:03:04 +0000 (UTC) (envelope-from kaduk@mit.edu) X-AuditID: 12074425-f799a6d000007db3-b1-55b3ea427a00 Received: from mailhub-auth-1.mit.edu ( [18.9.21.35]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP id 22.00.32179.34AE3B55; Sat, 25 Jul 2015 15:57:55 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id t6PJvsJP017024; Sat, 25 Jul 2015 15:57:54 -0400 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id t6PJvpoj003110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 25 Jul 2015 15:57:53 -0400 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id t6PJvoDM029828; Sat, 25 Jul 2015 15:57:50 -0400 (EDT) Date: Sat, 25 Jul 2015 15:57:50 -0400 (EDT) From: Benjamin Kaduk To: HeTak cc: freebsd-hackers Subject: Re: Kernel Debug Howto In-Reply-To: <514DDE7F-CF61-461D-A9FF-232DC938BDF5@FreeBSD.org> Message-ID: References: <514DDE7F-CF61-461D-A9FF-232DC938BDF5@FreeBSD.org> User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplleLIzCtJLcpLzFFi42IR4hRV1nV+tTnU4NRzDovtm/8xWsyc947V gcljxqf5LB47Z91lD2CK4rJJSc3JLEst0rdL4Mp4+byHueACX8WcXTdZGxhvcHcxcnJICJhI HJ76gAXCFpO4cG89WxcjF4eQwGImiefv37FCOBsZJf52dzNCOIeYJB42bYHKNDBKPF27iwmk n0VAW2JWy3J2EJtNQEVi5puNbCC2iICCxNZ5+5hBbGYBQ4klq34A1bNzCAvIS3TkgUQ5Bewl ln29AzaFV8BRYuvHN1C7mhklNj3fCjZGVEBHYvX+KSwQRYISJ2c+YYEYGSix9cM3pgmMgrOQ pGYhSUHY6hKND86yQdjaEvdvtrEtYGRZxSibklulm5uYmVOcmqxbnJyYl5dapGuhl5tZopea UrqJERTa7C6qOxgnHFI6xCjAwajEw7vh96ZQIdbEsuLK3EOMkhxMSqK8XyQ3hwrxJeWnVGYk FmfEF5XmpBYfYpTgYFYS4d3zCCjHm5JYWZValA+TkuZgURLn3fSDL0RIID2xJDU7NbUgtQgm K8PBoSTBu/4FUKNgUWp6akVaZk4JQpqJgxNkOA/Q8IUgNbzFBYm5xZnpEPlTjIpS4rzdIAkB kERGaR5cLyz1vGIUB3pFmPcDSBUPMG3Bdb8CGswENJinbwPI4JJEhJRUA6O3Sukrm7VvdJ96 RN693fBxi1Ntz+lmoxDjoD06OboB72bm9+7hXX69+Hlf6c1z/ywrt1y0zHhQ0iK+omhZ2b3T /rninC+5F5fvLHK07e+PeLPTxqBM2fFdduxlw19+ZgJ3vGYInzlRpjeBc5vmiWf7z4VPVbac Ve64O4incO8Wr62yuxykOpRYijMSDbWYi4oTAX8BSqEYAwAA Content-Type: TEXT/PLAIN; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jul 2015 20:03:05 -0000 On Sat, 25 Jul 2015, Kristof Provost wrote: > > > On 25 Jul 2015, at 10:54, HeTak wrote: > > I have recently started some developments on FreeBSD net section. > Great! > > > But I am kinda new to this field. My base interest is to first understa= nd the > > implementation structure via tracing the code and so. > > > > I have three major questions: > > 1- how to debug changes made to FreeBSD kernel? > > (You know, till some levels, I can even use uprintf or so, but, for exa= mple > > inside radix.c (where I wanna understand how a route is checked to be > > unique and then inserted to the tree) I can't do such checks..) > dtrace can be quite useful to understand flows. You can grab stack traces > (i.e. figure out where things are called from), get function arguments, = =E2=80=A6 Remote kgdb over a serial line can also be useful for stepping through execution in cases where that is appropriate, and of course kgdb on coredumps when the kernel panics. > > 3- what is the fastest way to apply changes to FreeBSD kernel? > > (For now, I just follow the normal build & install kernel & reboot.) > I pretty much do that. Depending on what you=E2=80=99re working on it mig= ht be easier to run it in a VM. > My work lately has been on the network code, so a VM is very convenient. > It=E2=80=99s not so useful if you=E2=80=99re working on drivers, of cours= e. To speed up the build stage, you can 'make -DKERNFAST kernel' if you have only made "normal" code changes. -Ben