Skip to content

Memory Simulator v1.0

Latest

Choose a tag to compare

@Luvpreet042004 Luvpreet042004 released this 31 Dec 13:46
· 4 commits to main since this release

This release provides a complete interactive memory management simulator with a graphical user interface, designed for learning and experimentation with operating system memory concepts.
✨ Features
🧠 Physical Memory Simulation

  • Initialize physical memory with configurable size
  • Dynamic memory allocation and deallocation
  • Supports First Fit, Best Fit, and Worst Fit allocation strategies
  • Automatic coalescing of free memory blocks

🧩 Cache Simulation

  • Configurable L1 and L2 caches
  • Adjustable cache size, block size, and associativity
  • Tracks cache hits, misses, and hit ratios
  • Simulates miss penalty propagation and total access cycles

📊 Real-Time Visualization

  • Graphical memory map showing allocated and free blocks
  • Allocated blocks displayed with IDs and borders for clarity
  • Live updates on allocation, deallocation, and access

📈 Statistics Panel

  • Used vs total memory tracking
  • Cache statistics per level
  • Total cycle count for memory accesses

🖥️ Interactive GUI (Qt)

  • Windows desktop application
  • Buttons for initialize, malloc, free, access, cache configuration
  • Console-style log output

Reset button to restart the simulation cleanly

🔄 Reset Support

  • Clears memory, caches, statistics, and visualization
  • Ready for a fresh simulation run without restarting the app