What is the least expensive way to find the oldest file in a directory, including all directories underneath. Assume directory is backed by SAN and under heavy load.
There is concern that "ls" could be locking and cause system degradation under heavy load.
Edit: Find performs very well under a simple test case - find oldest file amongst 400 gigs of files on an SSD drive took 1/20 seconds. But this is a MacBook Pro Laptop under no load... So it's a bit of an apples to oranges test case.
And as an aside what is the best way to find out implementations (underlying algorithms) for such commands?