I’m trying to use DEVONthink to index (not import) a directory structure
Directories - 255
Files - 768,964 (99% are small MD files, sharded across the directory structure)
Total size - 5.3G
DEVONthink initially indexes the directory structure without apparent issue. Peak memory usage by Devonthink is around 17GB. The DT database is creates is approx 4.8GB.
But any other activities such as Verification sees Devonthink become “Devonthink (Not Responding)” and memory utilisation climbs from 17GB until it hits 60+GB before getting stopped by the OS. Spotlight indexing on the DB is disabled. Thumbnail generation is disabled. Tag collection is disabled.
The only notable additional feature I am leveraging is wikilinks (Names & Aliases). But even so the memory utilisation seems to proportionate to the total size on disk.
Is this a bug ?
A limitation ?
Me being overly optimistic on my part, I accept its a lot of files?
Any suggestions on a work around ?
Any diagnostics I can perform to help investigate this if it is a bug ?
I have seen that behavior indexing PDFs. Open Activity Monitor and check if there is one or more DT_whatever_Helper using most of the memory. In my case with PDFs, it is a bug in Apple way to get the text from the PDFs and even worse: if you kill the helper, the memory is not recovered because it leaks in kernel… The only solution is a restart. And I think Tahoe 26.5 solved this, but previous versions had some kernel memory leaks.
I’m not sure if this happens with MD files as well.
I don’t see any specific DT_…_Helper processes running at the moment. But next time I try the index process I’ll look out for these, although I am on Tahoe 26.5.1.
9 times out of 10 verification doesn’t complete. Memory is exhausted and the OS gives me the option to resume, but it instantly paused again or to kill DEVONthink completely.
However as I type, a verification appears to have completed. Memory utilisation is down to 19.6GB. However CPU is pegged at 100%. The activity panel is now flickering “Retrieving Metadata Suggestions”. It’s as if the activity panel is starting to be drawn and immediately torn down many times per second. The progress indicator bar doesn’t even get rendered.
Its as though it is displaying the activity panel once per file or its stuck in some never ending loop.
I’ve not configured any smart rules in this database yet. Although it looks like “Rename to Chat suggestion” was enabled to run every minute. Something I wasn’t aware of.
I’d had enough waiting for the the “Retrieving Metadata Suggestions” to complete and managed to do a clean quit and startup of Devonthink. With this one database open Devonthink is now sitting at 3.44GB and essentially idle CPU.
As you mentioned AI, I checked my AI settings. It was configured to point to a local install of Ollama. But Ollama is shutdown due to the memory demands of Devonthink indexing this folder. Could Devonthink repeatedly trying to call Ollama and failing been the trigger for “Retrieving Metadata Suggestions” to loop ?
If you didn’t change the conditions of the rule and only changed the trigger to every minute, then the rule processed the ca. 770,000 items again and again. In addition, each failure was logged to the Window > Log panel which probably got bloated quickly too.