Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Feb 2002 16:37:58 -0800
From:      Kirk McKusick <mckusick@mckusick.com>
To:        Ollivier Robert <roberto@eurocontrol.fr>
Cc:        "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG>, iedowse@FreeBSD.ORG
Subject:   Re: Unconnected files problem 
Message-ID:  <200202110038.g1B0bwi05500@beastie.mckusick.com>
In-Reply-To: Your message of "Tue, 28 Aug 2001 14:02:24 %2B0200." <20010828140224.B99849@caerdonn.eurocontrol.fr> 

next in thread | previous in thread | raw e-mail | index | archive | help
I have (finally) found and fixed this problem. You need to get
version 1.107 or later of /sys/ufs/ffs/ffs_softdep.c (2002/02/07).

	Kirk McKusick

=-=-=-=-=-=

Date: Tue, 28 Aug 2001 14:02:24 +0200
From: Ollivier Robert <roberto@eurocontrol.fr>
To: "FreeBSD Current Users' list" <freebsd-current@FreeBSD.ORG>
Cc: iedowse@FreeBSD.ORG, mckusick@FreeBSD.ORG
Subject: Unconnected files problem

I have a script that generates index for all my mail messages (using
glimpse). Sometimes, the disk is full because it has some rather big
temporary files (and I have a lot of mail).

It seems that we may have a softupdate-related (that's a guess from me)
problem because some of these temporaty files end up as unconnected to any
directory but link count is still one and they still takes space. The last
time fsck ran on the filesystem, it gave me back more than 60000 (!!)
fragments (cf the following:

-=-=-
Aug 23 12:21:38 caerdonn root: /dev/da0s1g: Reclaimed: 0 directories, 22 files, 60424 fragments 
Aug 23 12:21:38 caerdonn root: /dev/da0s1g: 10295 files, 387087 used, 73408 free (1048 frags, 9045 blocks, 0.2% fragmentation) 
-=-=-

lsof doesn't show them so they're not open by any process.

The mtime of the files are exactly when the glimpseindex command is run. We
know that SU has some issues when a filesystem is full but this is quite a
problem because as you can see below, I'm losing a lot of space till the
next reboot...

UNREF FILE I=1081  OWNER=roberto MODE=100600
SIZE=523 MTIME=Aug 28 00:46 2001 
CLEAR? no

UNREF FILE  I=18498  OWNER=roberto MODE=100600
SIZE=230665 MTIME=Aug 26 08:05 2001 
RECONNECT? no

CLEAR? no

UNREF FILE  I=18508  OWNER=roberto MODE=100600
SIZE=11225707 MTIME=Aug 23 20:02 2001 
RECONNECT? no

CLEAR? no

UNREF FILE  I=18530  OWNER=roberto MODE=100600
SIZE=28322748 MTIME=Aug 24 20:09 2001 
RECONNECT? no

CLEAR? no

UNREF FILE  I=18573  OWNER=roberto MODE=100600
SIZE=28326193 MTIME=Aug 25 20:09 2001 
RECONNECT? no

CLEAR? no

UNREF FILE  I=18575  OWNER=roberto MODE=100600
SIZE=18684173 MTIME=Aug 24 20:08 2001 
RECONNECT? no

CLEAR? no

UNREF FILE  I=19204  OWNER=roberto MODE=100600
SIZE=13771800 MTIME=Aug 26 08:05 2001 
RECONNECT? no

CLEAR? no

UNREF FILE  I=19353  OWNER=roberto MODE=100600
SIZE=18679309 MTIME=Aug 25 20:08 2001 
RECONNECT? no

CLEAR? no

** Phase 5 - Check Cyl groups
10223 files, 446324 used, 74595 free (1019 frags, 9197 blocks, 0.2% fragmentation)

fsdb (inum: 2)> inode 19353
current inode: regular file
I=19353 MODE=100600 SIZE=18679309
        MTIME=Aug 25 20:08:18 2001 [0 nsec]
        CTIME=Aug 25 20:08:18 2001 [0 nsec]
        ATIME=Aug 25 20:08:11 2001 [0 nsec]
OWNER=roberto GRP=staff LINKCNT=1 FLAGS=0 BLKCNT=8ec0 GEN=4c2a6c10

-- 
Ollivier ROBERT  -=-  Eurocontrol EEC/ITM  -=-  Ollivier.Robert@eurocontrol.fr
FreeBSD caerdonn.eurocontrol.fr 5.0-CURRENT #46: Wed Jan  3 15:52:00 CET 2001

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202110038.g1B0bwi05500>