A memory access latency estimation method of a memory access latency estimation system, the memory access latency estimation system comprising a first monitor, a plurality of second monitors, and a processor, the processor being hardware-implemented, the processor comprising a member selected from a group comprising a central processing unit (CPU), a graphic processing unit (GPU), a tensor processing unit (TPU), a neural network processing unit (NPU), an application specific integrated circuit (ASIC), a deep learning processing unit (DPU), a vector processing unit (VPU), and a microprocessor, the memory access latency estimation method comprising:
- measuring, by the first monitor, a first access latency of a first access operation of a first memory, wherein the first memory comprises a dynamic random-access memory;
- measuring, by the plurality of second monitors, a plurality of first indexes of the first memory corresponding to the first access operation;
- using, by the processor, a plurality of first coefficients and the plurality of first indexes to perform a first weighted calculation to generate a first estimated latency;
- adjusting, by the processor using a machine learning model implemented in hardware circuitry of the processor, the plurality of first coefficients to generate a plurality of updated first coefficients;
- using, by the processor, the plurality of updated first coefficients and the plurality of first indexes to perform the first weighted calculation to adjust the first estimated latency for the first estimated latency to approximate the first access latency;
- and
- using, by the processor, the plurality of updated first coefficients and a plurality of second indexes of the first memory to perform a second weighted calculation to generate a second estimated latency for a second access operation;
- wherein number and types of the plurality of first indexes are the same as number and types of the plurality of second indexes, the plurality of second indexes are corresponding to the second access operation, and the first access operation precedes the second access operation.