From owner-freebsd-bugs@FreeBSD.ORG Mon Apr 9 16:30:10 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1147E16A400 for ; Mon, 9 Apr 2007 16:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 04A8513C46A for ; Mon, 9 Apr 2007 16:30:10 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l39GU9UY044624 for ; Mon, 9 Apr 2007 16:30:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l39GU955044616; Mon, 9 Apr 2007 16:30:09 GMT (envelope-from gnats) Date: Mon, 9 Apr 2007 16:30:09 GMT Message-Id: <200704091630.l39GU955044616@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Dan D Niles Cc: Subject: Re: bin/111146: fsck fails on 6Tfilesystem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Dan D Niles List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Apr 2007 16:30:10 -0000 The following reply was made to PR bin/111146; it has been noted by GNATS. From: Dan D Niles To: Jan Srzednicki Cc: bug-followup@FreeBSD.org Subject: Re: bin/111146: fsck fails on 6Tfilesystem Date: Mon, 09 Apr 2007 11:27:10 -0500 On Sun, 2007-04-08 at 21:24 +0200, Jan Srzednicki wrote: > > If the values are all right, try running fsck with strace/truss and show > the result. > I added a debugging print statement to fsck_ffs, and sent it a SIGINFO every two seconds. Here is the tail of the output, and the tail of the truss output. It seems like it is allocation space for < 10k inodes at a time until it fails. When it fails it is trying to allocate space for 1.5g inodes. Is that normal? /dev/da0: phase 1: cyl group 2223 of 33666 (6%) Trying to calloc space for 2240 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 448 inodes Trying to calloc space for 6208 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 768 inodes Trying to calloc space for 384 inodes Trying to calloc space for 448 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 448 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 384 inodes Trying to calloc space for 448 inodes Trying to calloc space for 4032 inodes Trying to calloc space for 6208 inodes Trying to calloc space for 1664 inodes /dev/da0: phase 1: cyl group 2252 of 33666 (6%) Trying to calloc space for 3584 inodes /dev/da0: phase 1: cyl group 2253 of 33666 (6%) Trying to calloc space for 448 inodes Trying to calloc space for 3648 inodes Trying to calloc space for 384 inodes Trying to calloc space for 4352 inodes Trying to calloc space for 384 inodes Trying to calloc space for 5376 inodes Trying to calloc space for 384 inodes Trying to calloc space for 448 inodes Trying to calloc space for 384 inodes Trying to calloc space for 448 inodes Trying to calloc space for 1572191256 inodes fsck_ffs: cannot alloc 1993797728 bytes for inoinfo 919: break(0x22ab2000) = 0 (0x0) 1919: break(0x22ab3000) = 0 (0x0) 1919: lseek(4,0x6570640000,SEEK_SET) = 1885601792 (0x70640000) 1919: read(4,"\M-mA\^D\0\M-k\^C\0\0\M-j\^C\0\0"...,65536) = 65536 (0x10000) 1919: lseek(4,0x657bdf0000,SEEK_SET) = 2078212096 (0x7bdf0000) 1919: read(4,"\0\0\0\0U\^B\t\0004\^[\^EF\M-V\b"...,16384) = 16384 (0x4000) 1919: write(1,"Trying to calloc space for 448 i"...,38) = 38 (0x26) 1919: lseek(4,0x657bdf4000,SEEK_SET) = 2078228480 (0x7bdf4000) 1919: read(4,"\M-mA\^B\0\M-k\^C\0\0\M-j\^C\0\0"...,65536) = 65536 (0x10000) 1919: break(0x22ab4000) = 0 (0x0) 1919: lseek(4,0x657be04000,SEEK_SET) = 2078294016 (0x7be04000) 1919: read(4,"\0\0\0\0000\0\0\0000\0\0\0\0\0\0"...,65536) = 65536 (0x10000) 1919: lseek(4,0x65875b4000,SEEK_SET) = -2024062976 (0x875b4000) 1919: read(4,"\0\0\M-'\M-K,\M^H\M-:\M-Q*\^C\0"...,16384) = 16384 (0x4000) 1919: write(1,"Trying to calloc space for 15721"...,45) = 45 (0x2d) 1919: write(2,"fsck_ffs: ",10) = 10 (0xa) 1919: write(2,"cannot alloc 1993797728 bytes fo"...,41) = 41 (0x29) 1919: write(2,"\n",1) = 1 (0x1) 1919: exit(0x8) 1919: process exit, rval = 2048