Launching ashell may involve multiple operations depending on your startup command line. One way to narrow it down would be to add TRACE=EXEC to the miame.ini, which will trace each LIT command executed. Since each trace is time-stamped, that might at least reveal whether the long delay occurs before the very first ashell trace, or after the first LIT command, or ...?
To go even deeper, you could use the Linux strace tool. If you don't have it, you can probably install it with
yum install strace. With that, you can then generate a low-level trace of all system commands executed by ashell, via a command line such as:
$ strace -tt -o ashell.trc ashell -n log dsk0:150,277:
The trace file (ashell.trc in this case) will look something like this...
13:48:41.613837 execve("/vm/repo/65/65core/bin/ashell", ["ashell", "-n", "log", "150,277"], [/* 55 vars */]) = 0
13:48:41.614090 brk(0) = 0x83df000
13:48:41.614142 mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xfffffffff76ef000
13:48:41.614185 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
13:48:41.614234 open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
13:48:41.614262 fstat64(3, {st_mode=S_IFREG|0644, st_size=153441, ...}) = 0
13:48:41.614285 mmap2(NULL, 153441, PROT_READ, MAP_PRIVATE, 3, 0) = 0xfffffffff76c9000
13:48:41.614303 close(3) = 0
13:48:41.614333 open("/lib/libncurses.so.5", O_RDONLY|O_CLOEXEC) = 3
13:48:41.614355 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0pO\0\0004\0\0\0"..., 512) = 512
...
13:48:41.648141 stat64("/vm/miame/dsk0/001004/log.lit", {st_mode=S_IFREG|0666, st_size=17370, ...}) = 0
13:48:41.648219 open("/vm/miame/dsk0/001004/log.lit", O_RDONLY|O_LARGEFILE) = 6
13:48:41.648242 stat64("/vm/miame/dsk0/001004/log.lit", {st_mode=S_IFREG|0666, st_size=17370, ...}) = 0
13:48:41.648263 _llseek(6, 0, [17370], SEEK_END) = 0
13:48:41.648278 _llseek(6, 0, [0], SEEK_SET) = 0
13:48:41.648293 time(NULL) = 1687639721
...
Maybe that will reveal something. In my example above, the entire sequence of launching and logging to a directory took all of 0.035 seconds, but there were no large directories to scan in the operation of loading and executing LOG.LIT.