public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Counters in df, du
@ 2009-07-13  8:11 Alexey Vlasov
  2009-07-13  9:09 ` Andi Kleen
  0 siblings, 1 reply; 11+ messages in thread
From: Alexey Vlasov @ 2009-07-13  8:11 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 804 bytes --]

Hi.

Periodically there is an overflow on /tmp on my boxes, and I can't find
the reaason why. May be it isn't a bug in tmpfs and you can help me find
the reason, and if it is an error, I hope you will help me to eliminate
it.

I know that df, du can show different values if some files were deleted,
but the processes which opened these files are still acting.

Well now I see this picture on one of my boxes. Below I post the results
of how I was trying to find what was /tmp full of.

# df -h /tmp
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 4.1G  3.3G  762M  82% /tmp

# du -hs /tmp
518M    /tmp

# lsof /tmp | awk '{if ($7 != 0) print$0}'
(in attach)

I still don't see any files taking 3G. Now I know only one solution
mount/remount /tmp.

-- 
BRGDS. Alexey Vlasov.

[-- Attachment #2: tmp.lsof --]
[-- Type: text/plain, Size: 1176 bytes --]

# lsof /tmp | awk '{if ($7 != 0) print$0}'
COMMAND     PID                           USER   FD   TYPE             DEVICE  SIZE      NODE NAME
authdaemo  6555                           root    5u  unix 0xffff81030b8c2840       281375180 /var/lib/courier/authdaemon/socket.tmp
authdaemo  6558                           root    5u  unix 0xffff81030b8c2840       281375180 /var/lib/courier/authdaemon/socket.tmp
authdaemo  6559                           root    5u  unix 0xffff81030b8c2840       281375180 /var/lib/courier/authdaemon/socket.tmp
authdaemo  6560                           root    5u  unix 0xffff81030b8c2840       281375180 /var/lib/courier/authdaemon/socket.tmp
authdaemo  6561                           root    5u  unix 0xffff81030b8c2840       281375180 /var/lib/courier/authdaemon/socket.tmp
authdaemo  6562                           root    5u  unix 0xffff81030b8c2840       281375180 /var/lib/courier/authdaemon/socket.tmp
mysqld    22905                          mysql    6u   REG               0,13    20 663938322 /tmp/ib1oZTSZ (deleted)
mysqld    22905                          mysql    8u   REG               0,13 84773 663938424 /tmp/ibRcarbD (deleted)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-09-03 12:54 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-13  8:11 Counters in df, du Alexey Vlasov
2009-07-13  9:09 ` Andi Kleen
2009-07-13 11:32   ` Alexey Vlasov
2009-07-13 11:59     ` [PATCH] Report file size for deleted files; was " Andi Kleen
2009-07-13 13:13       ` Andreas Schwab
2009-07-13 13:20         ` Andi Kleen
2009-09-03 12:32       ` Alexey Vlasov
2009-07-13 13:54     ` Bryan Donlan
2009-07-13 19:55       ` Alexey Vlasov
2009-07-13 19:58         ` Bryan Donlan
2009-07-13 20:11           ` Alexey Vlasov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox