Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jan 2005 01:01:13 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Phillip Salzman <phill@sysctl.net>
Cc:        stable@freebsd.org
Subject:   Re: Very large directory
Message-ID:  <20050120070113.GC7352@dan.emsphone.com>
In-Reply-To: <00b001c4fea0$7533d490$6745a8c0@MESE>
References:  <00b001c4fea0$7533d490$6745a8c0@MESE>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Jan 19), Phillip Salzman said:
> I have a pair of servers that act as SMTP/AV gateways.  It seems that
> even though we've told the AV software not to store messages, it is
> anyway.
> 
> They've been running for a little while now - and recently we've
> noticed a lot of disk space disappearing.  Shortly after that, a
> simple du into our /var/spool returned a not so nice error:
> 
> 	du: fts_read: Cannot allocate memory
> 
> No matter what command I run on that directory, I just don't seem to
> have enough available resources to show the files let alone delete
> them (echo *, ls, find, rm -rf, etc.)

Try raising your datasize rlimit value; also see the thread
"Directories with 2 million files" at
http://lists.freebsd.org/pipermail/freebsd-current/2004-April/026170.html
for some other ideas.  "find . | xargs rm" sounds promising.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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