Overwhelming Disk Cache?
Overwhelming Disk Cache?
- Subject: Overwhelming Disk Cache?
- From: Charles Jolley <email@hidden>
- Date: Wed, 6 Apr 2005 11:26:11 -0700
Hi:
I have a little command line utility that scans through some files,
calling fstat on each of them. The problem is when I test this with
a large number of files (about 180,000), I start having problems
thoughout my system while the scan in running. Copying files in the
Finder will sometimes fail; apps will die while accessing files and
so on. Even the scanner's stat calls will failnow and then.
I suspect the problem is that my scanner is exhausting the file
caches or something like that causing file system calls to fail. But
I'm not sure.
Has anyone else run into this kind of problem? Do you know why a
tight loop calling fstat on files would be causing this problem?
What is the best way to fix this?
I could sleep() between calls I suppose, but I would like to make
this as fast as possible.
Thanks!
-Charles
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden