From owner-freebsd-questions Thu Aug 17 10: 0:51 2000 Delivered-To: freebsd-questions@freebsd.org Received: from rhymer.cogsci.ed.ac.uk (rhymer.cogsci.ed.ac.uk [129.215.144.8]) by hub.freebsd.org (Postfix) with ESMTP id D734E37B86E for ; Thu, 17 Aug 2000 09:55:14 -0700 (PDT) Received: (from richard@localhost) by rhymer.cogsci.ed.ac.uk (8.9.3+Sun/8.9.3) id RAA28581; Thu, 17 Aug 2000 17:54:24 +0100 (BST) Date: Thu, 17 Aug 2000 17:54:24 +0100 (BST) Message-Id: <200008171654.RAA28581@rhymer.cogsci.ed.ac.uk> From: Richard Tobin Subject: Re: file size limit? To: Dan Nelson , "Andrew L. Gould" In-Reply-To: Dan Nelson's message of Thu, 17 Aug 2000 09:27:27 -0500 Organization: just say no Cc: questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > According to the mail archives, the limit is somewhere between 500GB > and 1TB. I don't think anyone has actually tested out farther than 100 > GB or so through. You don't need a TB of disk to test most aspects of a 1TB file; just seek to 1TB and write something. The program below produced an 8TB file (actually 8,000,000 * 1024 * 1024) bash-2.03$ big 8000000 >foo bash-2.03$ ls -l foo -rw-r--r-- 1 richard 10 8388608000000 Aug 6 11:50 foo but failed for 9TB: bash-2.03$ big 9000000 >foo write: File too large I notice that "tail" doesn't seem to work above 2GB (under 4.1-RELEASE), but "dd" does (eg on the 8TB file above "dd bs=8k skip=1023999999 #include int main(int argc, char **argv) { int meg = atoi(argv[1]); long long i, j; char buf[33]; for(i=0; i<8192; i+=32) { sprintf(buf, "byte 0x%016x \n", i); write(1, buf, 32); } j = (long long)meg * (1024 * 1024) - 8192; if(lseek(1, j, SEEK_SET) == -1) { perror("lseek"); return 1; } for(i=0; i<8192; i+=32) { sprintf(buf, "byte 0x%016x \n", j+i); if(write(1, buf, 32) < 0) { perror("write"); return 1; } } return 0; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message