A beautiful web-based application that simulates OS memory management using First Fit and Best Fit algorithms.
- 🎨 Modern, responsive UI
- 📊 Visual representation of memory allocation
- 💾 First Fit and Best Fit algorithms
- 📈 Internal fragmentation calculation
- 📱 Mobile-friendly design
- Install dependencies:
pip install -r requirements.txt- Start the Flask server:
python app.py- Open your browser and navigate to:
http://localhost:5000
- Select an algorithm (First Fit or Best Fit)
- Enter memory partition sizes (space-separated integers in KB)
- Example:
900 910 300 250
- Example:
- Enter process sizes (space-separated integers in KB)
- Example:
275 690 155 750
- Example:
- Click "Run Allocation" to see the results
Allocates each process to the first available partition that is large enough.
Allocates each process to the smallest available partition that can accommodate it, minimizing wasted space.
The results page displays:
- Job overview with sizes
- Memory block allocation details
- Status (Allocated/Not Allocated)
- Internal fragmentation for each block
- Total statistics (memory used, available, internal fragmentation)
Memory Allocation Visualizer/
├── app.py # Flask application
├── requirements.txt # Python dependencies
├── templates/
│ ├── index.html # Input page
│ └── result.html # Results page
└── MAV.py # Console version (legacy)
- Backend: Python Flask
- Frontend: HTML5, CSS3 (vanilla, no frameworks)
- Algorithms: First Fit, Best Fit memory allocation
- Group Number: [Group XX]
- Members:
- Member 1 Name
- Member 2 Name
- Member 3 Name
- Section: [Section Name]
Made with ❤️ for Operating Systems class