Skip to main content
MoodleLMSRAM
MoodleLMSRAM Partner Disclosure: Outbound /go/ links marked rel="sponsored" may earn a referral commission at zero extra cost (Partner Disclosure).
Stack Matrix Hub (10)

Moodledata Local NVMe SSD vs Network NFS Latency Bottleneck

Keep localcache and temp/requestdir on local NVMe even in multi-web setups so Moodle PHP stat() storms never choke over NFS.

localcachedir on local NVMe · 15x faster theme/JS cache · Zero NFS lock stall

Moodledata Local NVMe SSD vs Network NFS Latency Bottleneck
Telemetry verified 2026-10-25 by ExamLoad Systems.

Why Shared NFS Moodledata Destroys Page Load Time

Moodle checks thousands of compiled theme CSS, JS bundle, and language string files inside moodledata/localcache on every request. Putting localcache on shared NFS introduces 1-3 ms network stat() latency per check, adding seconds to every quiz page render.

Separating $CFG->localcachedir Onto Local Node NVMe

Even on split-tier web nodes sharing /var/moodledata over NFS or Gluster, always define $CFG->localcachedir = "/var/local/moodlecache"; and $CFG->tempdir = "/var/local/moodletemp"; on each web host local NVMe SSD.

Measured Thresholds & Configuration

Moodledata SubdirectoryI/O Access PatternMust Be Shared?Optimal Storage Medium
moodledata/filedirUploaded PDFs, MBZ, SCORMYes (multi-web)NVMe or Shared Storage
moodledata/localcacheHot CSS/JS/Lang readsNo (per-node)Local Node NVMe SSD
moodledata/sessionsAvoid disk completelyNo (use Redis)Redis 7.2 In-Memory
localcachedir on local NVMe · 15x faster theme/JS cache · Zero NFS lock stall Launch ChemiCloud ($4.49/mo)UltaHost VDS ($41.50/mo)