From owner-freebsd-hackers Sun Feb 25 11:13:16 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 487AA37B4EC for ; Sun, 25 Feb 2001 11:13:12 -0800 (PST) (envelope-from dillon@earth.backplane.com) Received: (from dillon@localhost) by earth.backplane.com (8.11.2/8.9.3) id f1PJDAc15495; Sun, 25 Feb 2001 11:13:10 -0800 (PST) (envelope-from dillon) Date: Sun, 25 Feb 2001 11:13:10 -0800 (PST) From: Matt Dillon Message-Id: <200102251913.f1PJDAc15495@earth.backplane.com> To: David Gilbert Cc: Bernd Walter , David Gilbert , freebsd-hackers@FreeBSD.ORG Subject: Re: [hackers] Re: Large MFS on NFS-swap? References: <15000.8884.6165.759008@trooper.velocet.net> <20010225042933.A508@cicely5.cicely.de> <200102250644.f1P6iuL12016@earth.backplane.com> <15001.21129.307283.198917@trooper.velocet.net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :Hmmm... I was just having a little fun, and I think that someone's :using the wrong type of integer somewhere: : :[1:23:323]root@news:~> vnconfig -e -s labels -S 1t vn0 :[1:24:324]root@news:~> disklabel -r -w vn0 auto :[1:25:325]root@news:~> newfs /dev/vn0c :preposterous size -2147483648 : :Dave. Heh heh. Yes, newfs has some overflows inside it when you get that big. Also, you'll probably run out of swap just newfs'ing the metadata, you need to use a larger block size, large -c value, and a large bytes/inode (-i) value. But then, of course, you are likely to run out of swap trying to write out a large file even if you do manage to newfs it. I had a set of patches for newfs a year or two ago but never incorporated them. We'd have to do a run-through on newfs to get it to newfs a swap-backed (i.e. 4K/sector) 1TB filesystem. Actually, this brings up a good point. Drive storage is beginning to reach the limitations of FFS and our internal (512 byte/block) block numbering scheme. IBM is almost certain to come out with their 500GB hard drive sometime this year. We should probably do a bit of cleanup work to make sure that we can at least handle FFS's theoretical limitations for real. vnconfig -e -s labels -S 900g vn0 newfs -i 1048576 -f 8192 -b 65536 -c 100 /dev/vn0c mobile:/home/dillon> pstat -s Device 1K-blocks Used Avail Capacity Type /dev/ad0s1b 524160 188976 335184 36% Interleaved -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message