Home Examples Screenshots User manual Bluesky logo
OghmaNano Simulate organic/Perovskite Solar Cells, OFETs, and OLEDs DOWNLOAD

Speeding up simulations

One of the slowest parts of running OghmaNano simulations is not always the CPU computations, but the time spent writing data to disk. Modern processors and memory have become dramatically faster over the last 50 years, but storage performance has lagged behind, especially when compared to RAM speeds. As a result, disk I/O can easily become the bottleneck in resource-hungry simulations.

Why disk access dominates simulation time

Historically, magnetic hard drives were limited by mechanical motion: a head had to be physically moved to the correct position on a spinning disk before any data could be read or written. That seek time is fundamentally constrained by how fast you can move a piece of metal.

Solid-state drives (SSDs and M.2/NVMe drives) remove the moving parts and provide much faster access times, but they are still orders of magnitude slower than accessing data in RAM. Whenever OghmaNano writes large numbers of files – for example during parameter scans, fits, or 2D/3D simulations – this disk access adds up.

As a general rule:

Choosing the right storage

Different types of storage have very different performance characteristics, and this can significantly affect OghmaNano’s overall speed.

In short, for performance-critical work you should always try to keep your simulation folders on a local SSD or NVMe drive.

Cloud storage and automatically synced folders

Many systems now automatically sync user files to cloud services such as OneDrive, Dropbox, Google Drive or institutional backup systems. This is convenient for documents, but can be a serious problem for simulation workloads.

When a simulation is stored in a synced folder:

The result is that simulations appear to “crawl”, even on fast hardware, because every file operation is competing with the sync process.

This can be confusing because many operating systems present cloud-synced folders as if they were local home directories. For OghmaNano, it is usually best to:

Antivirus and background tools

Modern built-in tools such as Windows Defender are generally well-behaved and do not interfere too much with simulation workloads. However, some third-party antivirus products or security suites are much more aggressive: they may scan every single file that is written to disk, or continuously monitor directories as they change.

Because OghmaNano produces a large number of small files, such scanning can add a significant overhead. Symptoms include:

If you notice this behaviour, you may wish to:

Practical recommendations

To summarise, disk access is one of the slowest parts of an OghmaNano simulation, especially on systems where storage has been configured for convenience rather than performance. The following guidelines can help you get the best out of your hardware:

Taking a few minutes to ensure simulations are running from the right location can easily save hours of compute time over the lifetime of a project, especially for large parameter sweeps, 2D/3D drift-diffusion runs, or heavy optical simulations.