From owner-freebsd-fs Mon Jul 6 10:58:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA20120 for freebsd-fs-outgoing; Mon, 6 Jul 1998 10:58:08 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from gatewaya.anheuser-busch.com (gatewaya.anheuser-busch.com [151.145.250.252]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id KAA19966; Mon, 6 Jul 1998 10:57:53 -0700 (PDT) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewaya.anheuser-busch.com; id MAA10576; Mon, 6 Jul 1998 12:55:38 -0500 Received: from stlabcexg004.anheuser-busch.com(unknown 151.145.101.160) by gatewaya via smap (V2.1) id xma010567; Mon, 6 Jul 98 12:55:31 -0500 Received: by stlabcexg004.anheuser-busch.com with Internet Mail Service (5.5.1960.3) id <3CR6WWH3>; Mon, 6 Jul 1998 18:58:32 +0100 Message-ID: <31B3F0BF1C40D11192A700805FD48BF901776600@STLABCEXG011> From: "Alton, Matthew" To: "'Erick Engelke'" Cc: "'hackers@freebsd.org'" , "'freebsd-fs@freebsd.org'" , "Smallie, Scott" Subject: RE: lfs Date: Mon, 6 Jul 1998 18:58:50 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > -----Original Message----- > From: Erick Engelke [SMTP:erick@dark.uwaterloo.ca] > Sent: Friday, July 03, 1998 4:54 PM > To: Alton, Matthew > Subject: RE: lfs > > > > On Tue, 30 Jun 1998, Alton, Matthew wrote: > > > Like others in the past, I'm interested in seeing LFS completed. > > > I've been mucking around with this for awhile. We should cooperate. > > Sure, but this will be a bit embarrassing for the first message or > two. > > The first steps I've taken were obvious... even for me as a FreeBSD > kernal > new guy (all my other kernel work has been various RTOS, Microsoft and > OS/2)... compile this as a LKM and try her out. > > I see that a newlfs'd partition shows up nicely with the ifile log > file > and lost+found. But as soon as sync happens, whether timed or due to > a > umount or file i/o, we have a panic. [Alton, Matthew] Are you getting a core dump for kgdb? I don't have a scratch box running this code right now. I've got a nasty old 486/33 almost up for testing purposes but its imbecilic BIOS won't boot with an NE2000 clone in the bus. > > Since successive boots don't notice the updates, I'm assuming the log > is > never being updated. Possibly the kernel pages are not mapped to > backing > store... as a first guess. I'll try lfsdump to investigate. > > I've started adding debugging code to figure out how far we get. > Hmmm, where do printfs send their output... nowhere I happen to be > looking? [Alton, Matthew] I thought they went to /dev/console but the relevant descriptors may be closed when lfs is using them. Can anybody provide the correct poop on kernel-mode debug output to /dev/console before I go and spontaneously reinvent the wheel? > Also, how do I make this pop into the kernel debugger? [Alton, Matthew] See http://www.freebsd.org/handbook/handbook297.html#627 > Sorry for the startup questions. [Alton, Matthew] Don't apologise, for crying out loud. I've been starting up for 17 years ;-) > Erick > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jul 7 03:26:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA03829 for freebsd-fs-outgoing; Tue, 7 Jul 1998 03:26:46 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from wipinfo.soft.net (agni.wipinfo.soft.net [164.164.6.20]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA03783 for ; Tue, 7 Jul 1998 03:26:19 -0700 (PDT) (envelope-from hiren@tagore.wipinfo.soft.net) Received: from tagore.wipinfo.soft.net by wipinfo.soft.net (SMI-8.6/SMI-SVR4) id PAA03665; Tue, 7 Jul 1998 15:51:25 -0500 Date: Tue, 7 Jul 1998 16:03:29 +0530 (IST) From: Hiren Mehta X-Sender: hiren@tagore To: freebsd-fs@FreeBSD.ORG Subject: FC_SIZE so small Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I was looking through the code of msdosfs implementation of freebsd which uses fat-cache. I do not understand why FC_SIZE is so small (FC_SIZE=2). If we increase it to higher value, is it going to affect the performance of the file system ? Thanks Hiren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jul 7 07:46:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA07684 for freebsd-fs-outgoing; Tue, 7 Jul 1998 07:46:10 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from dark.uwaterloo.ca (dark.uwaterloo.ca [129.97.50.72]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA07675; Tue, 7 Jul 1998 07:46:05 -0700 (PDT) (envelope-from erick@dark.uwaterloo.ca) Received: from localhost (erick@localhost) by dark.uwaterloo.ca (8.8.7/8.8.7) with SMTP id KAA16379; Tue, 7 Jul 1998 10:38:59 -0400 (EDT) (envelope-from erick@dark.uwaterloo.ca) Date: Tue, 7 Jul 1998 10:38:58 -0400 (EDT) From: Erick Engelke To: "Alton, Matthew" cc: "'hackers@freebsd.org'" , "'freebsd-fs@freebsd.org'" , "Smallie, Scott" Subject: RE: lfs In-Reply-To: <31B3F0BF1C40D11192A700805FD48BF901776600@STLABCEXG011> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 6 Jul 1998, Alton, Matthew wrote: > erick wrote: > > I see that a newlfs'd partition shows up nicely with the ifile log > > file and lost+found. But as soon as sync happens, whether timed or > > due to a umount or file i/o, we have a panic. > [Alton, Matthew] > Are you getting a core dump for kgdb? I don't have a scratch > box running this code right now. I've got a nasty old 486/33 > almost up for testing purposes... Now that I'm more up to speed on kdb (thanks for the tips), I got a bit farther. My scratch pc is a 486/50... not much better, eh? The actual error is in the lfs_writeseg() of lfs_segment.c where lfs is copying individual bufs into contiguous memory for a big long write. (called from lfs_segwrite, from lfs_sync) It looks like I'm dying at ++cbp->b_vp->v_numoutput... and a quick look suggests it is possible the vnode points to garbage. I'll have to verify that with kdb and experiment some more. While on the topic, LFS has a lot of hacks, many specifically about bufferring. Some other PC OS's simply manipulate the page tables to map buffers into contiguous RAM... (and then instruct 3rd parties to never do the same). I don't imagine that pagetable fiddling practice is ever used with FreeBSD, is it? > > Hmmm, where do printfs send their output... nowhere I happen to be > > looking? > [Alton, Matthew] > I thought they went to /dev/console They do. My mistake. Thanks for the hints. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jul 7 09:08:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA19528 for freebsd-fs-outgoing; Tue, 7 Jul 1998 09:08:06 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from gatewayb.anheuser-busch.com (gatewayb.anheuser-busch.com [151.145.250.253]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id JAA19366; Tue, 7 Jul 1998 09:07:58 -0700 (PDT) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewayb.anheuser-busch.com; id KAA26310; Tue, 7 Jul 1998 10:54:54 -0500 Received: from stlabcexg006.anheuser-busch.com(unknown 151.145.37.158) by gatewayb via smap (V2.1) id xma025437; Tue, 7 Jul 98 10:54:28 -0500 Received: by stlabcexg006.anheuser-busch.com with Internet Mail Service (5.5.1960.3) id <3CRV7TST>; Tue, 7 Jul 1998 10:57:14 -0500 Message-ID: <31B3F0BF1C40D11192A700805FD48BF901776602@STLABCEXG011> From: "Alton, Matthew" To: "'Erick Engelke'" Cc: "'hackers@freebsd.org'" , "'freebsd-fs@freebsd.org'" , "Smallie, Scott" Subject: RE: lfs Date: Tue, 7 Jul 1998 10:57:45 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > -----Original Message----- > From: Erick Engelke [SMTP:erick@dark.uwaterloo.ca] > Sent: Tuesday, July 07, 1998 9:39 AM > To: Alton, Matthew > Cc: 'hackers@freebsd.org'; 'freebsd-fs@freebsd.org'; Smallie, Scott > Subject: RE: lfs > > > > The actual error is in the lfs_writeseg() of lfs_segment.c > where lfs is copying individual bufs into contiguous memory > for a big long write. (called from lfs_segwrite, from lfs_sync) > > It looks like I'm dying at ++cbp->b_vp->v_numoutput... and a quick > look > suggests it is possible the vnode points to garbage. I'll have to > verify > that with kdb and experiment some more. [Alton, Matthew] We need to know precisely where panic() is called and whether it is called there exclusively. The lfs code has been sitting stagnant for a good long time and changes made 'around' it in the rest of the system may be breaking some assumptions. I don't know how stable this code was ever considered to be, but it's surprisingly pre-alpha now. I'm looking into ways to do automated bounds checking for pointer arithmetic for another (rent- paying) project and we may be able to use them here. > While on the topic, LFS has a lot of hacks, many specifically about > bufferring. Some other PC OS's simply manipulate the page tables to > map > buffers into contiguous RAM... (and then instruct 3rd parties to never > do > the same). I don't imagine that pagetable fiddling practice is ever > used > with FreeBSD, is it? > > [Alton, Matthew] FreeBSD is, thank God, really anything but a PC OS. All our APIs are published and everything! 8^D To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jul 7 13:53:15 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA02066 for freebsd-fs-outgoing; Tue, 7 Jul 1998 13:53:15 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from smtp02.primenet.com (daemon@smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA02036; Tue, 7 Jul 1998 13:53:10 -0700 (PDT) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id NAA08332; Tue, 7 Jul 1998 13:53:02 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp02.primenet.com, id smtpd008307; Tue Jul 7 13:53:01 1998 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id NAA01160; Tue, 7 Jul 1998 13:52:53 -0700 (MST) From: Terry Lambert Message-Id: <199807072052.NAA01160@usr04.primenet.com> Subject: Re: lfs To: Matthew.Alton@anheuser-busch.com (Alton, Matthew) Date: Tue, 7 Jul 1998 20:52:53 +0000 (GMT) Cc: erick@dark.uwaterloo.ca, hackers@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG, Scott.Smallie@anheuser-busch.com In-Reply-To: <31B3F0BF1C40D11192A700805FD48BF901776602@STLABCEXG011> from "Alton, Matthew" at Jul 7, 98 10:57:45 am X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > FreeBSD is, thank God, really anything but a PC OS. All our > APIs are > published and everything! 8^D Snort! Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jul 7 15:51:38 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA14906 for freebsd-fs-outgoing; Tue, 7 Jul 1998 15:51:38 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from gatewayb.anheuser-busch.com (gatewayb.anheuser-busch.com [151.145.250.253]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id PAA14888; Tue, 7 Jul 1998 15:51:30 -0700 (PDT) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewayb.anheuser-busch.com; id RAA13117; Tue, 7 Jul 1998 17:49:27 -0500 Received: from stlabcexg004.anheuser-busch.com(unknown 151.145.101.160) by gatewayb via smap (V2.1) id xma013066; Tue, 7 Jul 98 17:49:17 -0500 Received: by stlabcexg004.anheuser-busch.com with Internet Mail Service (5.5.1960.3) id <3CR6W803>; Tue, 7 Jul 1998 23:52:13 +0100 Message-ID: <31B3F0BF1C40D11192A700805FD48BF901776603@STLABCEXG011> From: "Alton, Matthew" To: "'hackers@freebsd.org'" , "'freebsd-fs@freebsd.org'" Subject: lfs Date: Tue, 7 Jul 1998 23:52:47 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org #define LFS_MAGIC 0x070162 So who was born on 01 JULY 1962? ;-) Matthew Alton Computer Services - UNIX Systems Administration (314)632-6644 matthew.alton@anheuser-busch.com alton@plantnet.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jul 7 16:41:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA20984 for freebsd-fs-outgoing; Tue, 7 Jul 1998 16:41:05 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA20964; Tue, 7 Jul 1998 16:41:01 -0700 (PDT) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost [127.0.0.1]) by dingo.cdrom.com (8.8.8/8.8.5) with ESMTP id QAA02573; Tue, 7 Jul 1998 16:40:47 -0700 (PDT) Message-Id: <199807072340.QAA02573@dingo.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: "Alton, Matthew" cc: "'hackers@freebsd.org'" , "'freebsd-fs@freebsd.org'" Subject: Re: lfs In-reply-to: Your message of "Tue, 07 Jul 1998 23:52:47 BST." <31B3F0BF1C40D11192A700805FD48BF901776603@STLABCEXG011> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 07 Jul 1998 16:40:46 -0700 From: Mike Smith Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > #define LFS_MAGIC 0x070162 > > So who was born on 01 JULY 1962? ;-) You mean January the 7th, right? 8) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jul 7 16:50:19 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA22697 for freebsd-fs-outgoing; Tue, 7 Jul 1998 16:50:19 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from gatewayb.anheuser-busch.com (gatewayb.anheuser-busch.com [151.145.250.253]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id QAA22618; Tue, 7 Jul 1998 16:49:38 -0700 (PDT) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewayb.anheuser-busch.com; id SAA25513; Tue, 7 Jul 1998 18:47:30 -0500 Received: from stlabcexg006.anheuser-busch.com(unknown 151.145.37.158) by gatewayb via smap (V2.1) id xma025456; Tue, 7 Jul 98 18:47:05 -0500 Received: by stlabcexg006.anheuser-busch.com with Internet Mail Service (5.5.1960.3) id <3CRV7V8A>; Tue, 7 Jul 1998 18:50:02 -0500 Message-ID: <31B3F0BF1C40D11192A700805FD48BF901776604@STLABCEXG011> From: "Alton, Matthew" To: "'Mike Smith'" Cc: "'hackers@freebsd.org'" , "'freebsd-fs@freebsd.org'" Subject: RE: lfs Date: Tue, 7 Jul 1998 18:50:37 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > -----Original Message----- > From: Mike Smith [SMTP:mike@smith.net.au] > Sent: Tuesday, July 07, 1998 6:41 PM > To: Alton, Matthew > Cc: 'hackers@freebsd.org'; 'freebsd-fs@freebsd.org' > Subject: Re: lfs > > > #define LFS_MAGIC 0x070162 > > > > So who was born on 01 JULY 1962? ;-) > > You mean January the 7th, right? 8) [Alton, Matthew] Nope. #define FS_MAGIC 0x011954 Bill Joy's Bday is January 19. We Yanks use MMDDYY except in the military where we don't. :-) > -- > \\ Sometimes you're ahead, \\ Mike Smith > \\ sometimes you're behind. \\ mike@smith.net.au > \\ The race is long, and in the \\ msmith@freebsd.org > \\ end it's only with yourself. \\ msmith@cdrom.com > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Wed Jul 8 02:05:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA00498 for freebsd-fs-outgoing; Wed, 8 Jul 1998 02:05:57 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from smtp04.primenet.com (root@smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA00466; Wed, 8 Jul 1998 02:05:51 -0700 (PDT) (envelope-from tlambert@usr08.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id WAA15414; Tue, 7 Jul 1998 22:10:46 -0700 (MST) Received: from usr08.primenet.com(206.165.6.208) via SMTP by smtp04.primenet.com, id smtpd015350; Tue Jul 7 22:10:37 1998 Received: (from tlambert@localhost) by usr08.primenet.com (8.8.5/8.8.5) id WAA02478; Tue, 7 Jul 1998 22:10:31 -0700 (MST) From: Terry Lambert Message-Id: <199807080510.WAA02478@usr08.primenet.com> Subject: Re: lfs To: Matthew.Alton@anheuser-busch.com (Alton, Matthew) Date: Wed, 8 Jul 1998 05:10:31 +0000 (GMT) Cc: hackers@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG In-Reply-To: <31B3F0BF1C40D11192A700805FD48BF901776603@STLABCEXG011> from "Alton, Matthew" at Jul 7, 98 11:52:47 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > #define LFS_MAGIC 0x070162 > > So who was born on 01 JULY 1962? ;-) The magic number for NXFS is 0x010763 (01 Jul 1963); that's my birthday. I think you mean 07 Jan 1962.... Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Wed Jul 8 02:17:52 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA04109 for freebsd-fs-outgoing; Wed, 8 Jul 1998 02:17:52 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.133.1] (may be forged)) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA03889; Wed, 8 Jul 1998 02:17:24 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id KAA02211; Wed, 8 Jul 1998 10:06:59 +0200 (CEST) To: "Alton, Matthew" cc: "'hackers@freebsd.org'" , "'freebsd-fs@freebsd.org'" Subject: Re: lfs In-reply-to: Your message of "Tue, 07 Jul 1998 23:52:47 BST." <31B3F0BF1C40D11192A700805FD48BF901776603@STLABCEXG011> Date: Wed, 08 Jul 1998 10:06:57 +0200 Message-ID: <2206.899885217@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <31B3F0BF1C40D11192A700805FD48BF901776603@STLABCEXG011>, "Alton, Mat thew" writes: >#define LFS_MAGIC 0x070162 > >So who was born on 01 JULY 1962? ;-) Margo ? -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jul 9 11:10:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA23992 for freebsd-fs-outgoing; Thu, 9 Jul 1998 11:10:11 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from gatewayb.anheuser-busch.com (gatewayb.anheuser-busch.com [151.145.250.253]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id LAA23923; Thu, 9 Jul 1998 11:10:00 -0700 (PDT) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewayb.anheuser-busch.com; id NAA00769; Thu, 9 Jul 1998 13:07:45 -0500 Received: from stlabcexg004.anheuser-busch.com(unknown 151.145.101.160) by gatewayb via smap (V2.1) id xma029793; Thu, 9 Jul 98 13:07:17 -0500 Received: by stlabcexg004.anheuser-busch.com with Internet Mail Service (5.5.1960.3) id <3QYWQC10>; Thu, 9 Jul 1998 19:10:12 +0100 Message-ID: <31B3F0BF1C40D11192A700805FD48BF901776608@STLABCEXG011> From: "Alton, Matthew" To: "'FreeBSD-fs@FreeBSD.ORG'" , "'Hackers@FreeBSD.ORG'" Subject: lfs b_blkno diddling Date: Thu, 9 Jul 1998 19:10:13 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm having some difficulty determining where the physical disk block allocation algorithm is located. Does the lfs code (or ufs for that matter) just use the vnodes provided by the vm system without regard to the placement on disk (i.e. the value of (buf)->b_blkno) or does it somehow control these things. I thought that the ffs im- provements from 4.3BSD involved strategic physical locality of data placement on disk and assumed that this was implemented in the ffs code. I can see where doing a big nasty write to disk beats doing a lot of little writes in lfs - I also assumed that lfs writes tried to en- force contiguity if possible, I just can't see where. The word "strat- egy" crops up all over the place in the code. I'll look into that. The section 9 man pages are really sparse. I'll fix the VOP_* ones when I get this all sorted out :-) Matthew Alton Computer Services - UNIX Systems Administration (314)632-6644 matthew.alton@anheuser-busch.com alton@plantnet.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jul 9 12:15:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA07456 for freebsd-fs-outgoing; Thu, 9 Jul 1998 12:15:59 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from critter.freebsd.dk (critter.freebsd.dk [195.8.129.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA07425; Thu, 9 Jul 1998 12:15:52 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.8.7/8.8.5) with ESMTP id VAA00486; Thu, 9 Jul 1998 21:13:33 +0200 (CEST) To: "Alton, Matthew" cc: "'FreeBSD-fs@FreeBSD.ORG'" , "'Hackers@FreeBSD.ORG'" Subject: Re: lfs b_blkno diddling In-reply-to: Your message of "Thu, 09 Jul 1998 19:10:13 BST." <31B3F0BF1C40D11192A700805FD48BF901776608@STLABCEXG011> Date: Thu, 09 Jul 1998 21:13:33 +0200 Message-ID: <484.900011613@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <31B3F0BF1C40D11192A700805FD48BF901776608@STLABCEXG011>, "Alton, Mat thew" writes: >I'm having some difficulty determining where the physical disk block >allocation algorithm is located. This is located in ffs respectively lfs start looking at ffs_balloc() -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jul 9 12:21:47 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA08886 for freebsd-fs-outgoing; Thu, 9 Jul 1998 12:21:47 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from gatewayb.anheuser-busch.com (gatewayb.anheuser-busch.com [151.145.250.253]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA08880; Thu, 9 Jul 1998 12:21:44 -0700 (PDT) (envelope-from Matthew.Alton@anheuser-busch.com) Received: by gatewayb.anheuser-busch.com; id OAA02304; Thu, 9 Jul 1998 14:19:42 -0500 Received: from stlabcexg006.anheuser-busch.com(unknown 151.145.101.161) by gatewayb via smap (V2.1) id xma001094; Thu, 9 Jul 98 14:19:32 -0500 Received: by stlabcexg006.anheuser-busch.com with Internet Mail Service (5.5.1960.3) id <3QY72MRV>; Thu, 9 Jul 1998 14:22:01 -0500 Message-ID: <31B3F0BF1C40D11192A700805FD48BF901776609@STLABCEXG011> From: "Alton, Matthew" To: "'Poul-Henning Kamp'" Cc: "'FreeBSD-fs@FreeBSD.ORG'" , "'Hackers@FreeBSD.ORG'" Subject: RE: lfs b_blkno diddling Date: Thu, 9 Jul 1998 14:22:06 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-Type: text/plain Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org And there it is 8) Thank you. > -----Original Message----- > From: Poul-Henning Kamp [SMTP:phk@critter.freebsd.dk] > Sent: Thursday, July 09, 1998 2:14 PM > To: Alton, Matthew > Cc: 'FreeBSD-fs@FreeBSD.ORG'; 'Hackers@FreeBSD.ORG' > Subject: Re: lfs b_blkno diddling > > In message <31B3F0BF1C40D11192A700805FD48BF901776608@STLABCEXG011>, > "Alton, Mat > thew" writes: > >I'm having some difficulty determining where the physical disk block > >allocation algorithm is located. > > This is located in ffs respectively lfs > > start looking at ffs_balloc() > > -- > Poul-Henning Kamp FreeBSD coreteam member > phk@FreeBSD.ORG "Real hackers run -current on their > laptop." > "ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color > terminal To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jul 9 14:44:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA01623 for freebsd-fs-outgoing; Thu, 9 Jul 1998 14:44:08 -0700 (PDT) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from gatekeeper.tsc.tdk.com (root@gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA01605; Thu, 9 Jul 1998 14:44:04 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.8/8.8.8) with ESMTP id OAA14480; Thu, 9 Jul 1998 14:37:32 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id OAA17187; Thu, 9 Jul 1998 14:37:31 -0700 (PDT) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id OAA03663; Thu, 9 Jul 1998 14:37:30 -0700 (PDT) From: Don Lewis Message-Id: <199807092137.OAA03663@salsa.gv.tsc.tdk.com> Date: Thu, 9 Jul 1998 14:37:30 -0700 In-Reply-To: Poul-Henning Kamp "Re: lfs b_blkno diddling" (Jul 9, 9:13pm) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Poul-Henning Kamp , "Alton, Matthew" Subject: Re: lfs b_blkno diddling Cc: "'FreeBSD-fs@FreeBSD.ORG'" , "'Hackers@FreeBSD.ORG'" Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Jul 9, 9:13pm, Poul-Henning Kamp wrote: } Subject: Re: lfs b_blkno diddling } In message <31B3F0BF1C40D11192A700805FD48BF901776608@STLABCEXG011>, "Alton, Mat } thew" writes: } >I'm having some difficulty determining where the physical disk block } >allocation algorithm is located. } } This is located in ffs respectively lfs } } start looking at ffs_balloc() For a description, see /usr/share/doc/smm/05.fastfs To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message