Hi Norman,
we need to seperate 2 areas of fragmentation.
1. filesystem/OS level fragmentation
nothing that we can do anything about it except running your trusted defrag if the filesystem has one and actually is in need of defragging.
2. database/global fragmentation:
This is a very interesting topic, usually nothing needs to be done for an IRIS database, IRIS is pretty good in managing global block density. (refer to https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls...)
You can use the output of an integrity check to see how your global density is per global in the database. Both defrag and compact operations are non-destructive and non interruptive, so even if they don't finish they can just be started again and will continue on.
Hi Alexey,
without knowing any details, have you checked if your routine cache is big enough to cache both routines?
refer to guide to monitor memory usage
Best Regards
Timo









In addition, here is the intro course from learning https://learning.intersystems.com/course/view.php?id=1130