[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <3e8340490907131258g35c422ebm5a3147f9a80fd6eb@mail.gmail.com>
Date: Mon, 13 Jul 2009 15:58:36 -0400
From: Bryan Donlan <bdonlan@...il.com>
To: Alexey Vlasov <renton@...ton.name>
Cc: Andi Kleen <andi@...stfloor.org>, linux-kernel@...r.kernel.org
Subject: Re: Counters in df, du
2009/7/13 Alexey Vlasov <renton@...ton.name>:
> On Mon, Jul 13, 2009 at 09:54:22AM -0400, Bryan Donlan wrote:
>> >> Alexey Vlasov <renton@...ton.name> writes:
>> >> >
>> >> > I know that df, du can show different values if some files were deleted,
>> >> > but the processes which opened these files are still acting.
>> >>
>> >> You can check for that by doing ls -l /proc/*/fd | grep deleted
>> >>
>> >> It won't tell you the file size though.
>> >
>> > There comes a big list, like this:
>> >
>> > lowx------ 1 root root 64 Jul 13 14:58 1763 -> /tmp/ZCUDXqiMTp (deleted)
>> >
>> > The most interesting is that the /tmp size constantly grows.
>>
>> lsof -n | grep deleted
>
> # lsof -n /tmp | awk '/deleted/ {if ($7 != 0) print$0}'
>
> mysqld 22905 mysql 6u REG
> 0,13 20 663938322 /tmp/ib1oZTSZ (deleted)
> mysqld 22905 mysql 8u REG
> 0,13 84773 663938424 /tmp/ibRcarbD (deleted)
>
> # df -h /tmp
> Filesystem Size Used Avail Use% Mounted on
> tmpfs 4.1G 3.4G 630M 85% /tmp
>
> It will soon be up to 100% full and I'll have to remount.
Are those the only two results? That should only be adding up to ~84kb
of space...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists