From owner-freebsd-questions@FreeBSD.ORG Thu Dec 18 17:33:26 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71005106564A for ; Thu, 18 Dec 2008 17:33:26 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from kanga.honeypot.net (kanga.honeypot.net [IPv6:2001:470:a80a:1:21f:d0ff:fe22:b8a8]) by mx1.freebsd.org (Postfix) with ESMTP id 371318FC29 for ; Thu, 18 Dec 2008 17:33:26 +0000 (UTC) (envelope-from kirk@strauser.com) Received: from localhost (localhost [127.0.0.1]) by kanga.honeypot.net (Postfix) with ESMTP id C0DB253EA12E for ; Thu, 18 Dec 2008 11:33:25 -0600 (CST) X-Virus-Scanned: amavisd-new at honeypot.net Received: from kanga.honeypot.net ([127.0.0.1]) by localhost (kanga.honeypot.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UAcXfV+Za861 for ; Thu, 18 Dec 2008 11:33:23 -0600 (CST) Received: from athena.localnet (athena.daycos.com [IPv6:2001:470:c054:1:221:9bff:fe00:de3f]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by kanga.honeypot.net (Postfix) with ESMTPSA id 8B6F753EA12C for ; Thu, 18 Dec 2008 11:33:23 -0600 (CST) From: Kirk Strauser To: freebsd-questions@freebsd.org Date: Thu, 18 Dec 2008 11:33:21 -0600 User-Agent: KMail/1.10.3 (Linux/2.6.27-9-generic; KDE/4.1.3; x86_64; ; ) References: <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com> In-Reply-To: <7fec743f0812180854o2e66bee2m8369eba789290758@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812181133.21330.kirk@strauser.com> Subject: Re: /tmp running out of inodes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Dec 2008 17:33:26 -0000 On Thursday 18 December 2008 10:54:33 Tankko wrote: > On a side question...what the the best policy for deleting files from > /tmp? Seems like a lot of apps are happy to leave files in /tmp. What kind of files are you seeing in /tmp? I have files in mine from July, but only about 7,000 files today - not nearly enough to run out of inodes (not that it should crash the FS anyway). > Is clean up commonly done as a cron job? What about files like mysql.sock= > which are important. I can't just blindly remove everything in /tmp each > night. I think you really need to figure out what's spamming /tmp. You *can* do something like "find /tmp -type f -oldermt '3 days ago' -delete", but that's just addressing the symptoms. -- Kirk Strauser