I'm running a Mac Mini 2014 with High Sierra (10.13.4) and am experiencing some lag, since adding a pair of Thunderbolt RAID drives. I've also added 25 or so SMB sharing users. Only a few users are active at any time, and mostly through Sharing, not logging in.
The lag is apparent in the Desktop when I'm logged in, and in initial delay, when I access an SMB share.
A couple of questions:
How can I determine which maxed-out resource is causing the lag?
- Is it RAM (I've got less than a GB of swap in used)
- Is it CPU (I'm idling at less than 5% usage, but still see the lag)
- Is it Disk or throughput to disk? (I've got 15/18 TB free on the RAIDs and 210/252 GB free on the OS drive)
- Is it network? (I see mostly a number near 0 for packets/sec, with bursts higher)
- something else?
The only resource that seems stressed at first glance is cached files: 2.6GB.
Is there a way to manage (change priority, stop) some system services to free up more resources for file sharing?
Is ther a way to tune smbd so that it's more responsive? (I don't care about the console performance, as long as I can admin the system occasionally)
Update: I received several user complaints about performance. Not knowing what else to do, I restarted the machine. Looking at Activity Monitor, now, I see that it memory usage has changed - it's no longer using any Swap. Not sure why yet. Nothing was intentionally changed.