Modern technology is built from layers that continuously interact with one another. At the physical level, electronic devices transform electrical signals into digital information. Digital logic turns that information into computation, while processors, memory and communication interfaces provide the machinery needed to execute instructions and move data. As these components become part of embedded systems, they begin to interact with the physical world through sensors, controllers, actuators and real-time software.
But computation does not exist in isolation. Operating systems coordinate hardware and software, firmware gives specialized machines their behaviour, and communication protocols allow independent systems to exchange information. At the same time, machine learning is moving beyond the cloud into edge and on-device systems, where models must operate within real constraints such as memory, processing power, latency and energy consumption.
PrajnaEdge explores these connections as one continuous technology landscape — and takes them beyond explanation. From computing foundations and embedded systems to intelligent machines and edge AI, ideas can be understood, experimented with, and eventually turned into technology that can be experienced in the real world.
Experiment with intelligence beyond the cloud.
Can this image classifier maintain its intelligence while becoming small enough for the edge?
AI runs directly on the device where data is generated, bringing intelligence into the device itself while operating within its compute, memory, power and latency constraints.
Can this image classifier maintain its intelligence while becoming small enough for the edge?
AI runs directly on the device where data is generated, bringing intelligence into the device itself while operating within its compute, memory, power and latency constraints.
Explore the ideas, systems and connections that shape technology — choose any node to begin your journey.
Deploying neural networks and intelligent decision loops on raw silicon targets.
The trade-offs of variable-sized memory allocation.
At the end of our previous exploration, we were left with a challenging question:
The answer is brief: no universally perfect strategy exists.
Memory allocation is a balance of trade-offs. Paging uses fixed-size pages, so a process may not use every byte of its final allocated page, creating internal fragmentation. Because pages can occupy any available physical frame, paging generally avoids external fragmentation.
Segmentation uses variable-sized logical segments, but those segments require suitable contiguous regions, so allocation and deallocation over time can create external fragmentation.
When we must place variable-sized segments into physical memory, how does the system choose where to put them?
Let us consider a memory layout with several scattered free regions of different sizes. When a new segment request arrives, three classical algorithms can determine its placement:
* First Fit: The allocator scans memory from the beginning and places the segment in the first free block that is large enough. This strategy is fast because it stops scanning immediately upon finding a fit, but it tends to crowd the beginning of memory with small fragments. * Best Fit: The allocator scans the entire memory space and places the segment in the smallest free block that is large enough. This preserves larger blocks for future allocations, but it often leaves behind tiny, unusable slivers of free space—"memory shrapnel"—that are too small to satisfy any future request. * Worst Fit: The allocator scans the entire memory space and places the segment in the largest free block available. The logic is that the remaining leftover space will still be large enough to be useful. In practice, however, this strategy quickly breaks down large blocks, making it impossible to allocate large segments later.
These strategies are not merely textbook definitions; they represent different philosophies of managing resource scarcity.
In this interactive scenario, we have a memory layout with three free blocks of varying sizes: 12 KB, 6 KB, and 20 KB, separated by blocks already in use by other processes.
We will attempt to allocate a sequence of three segment requests: 1. Request 1 (R1): 5 KB 2. Request 2 (R2): 10 KB 3. Request 3 (R3): 15 KB
Switch between the strategies below to see how the exact same sequence of requests succeeds or fails depending on the placement algorithm.
While First Fit, Best Fit, and Worst Fit are valuable mental models for variable-sized allocation, modern operating systems do not rely on a single algorithm to manage their memory. Real systems are far more complex, combining virtual memory hardware with specialized allocation layers:
* Linux: Uses the Buddy Allocator to manage physical page frames (mitigating external fragmentation by grouping pages into power-of-two blocks), and layers the SLAB/SLUB Allocator on top to manage small kernel objects (eliminating internal fragmentation by caching objects of specific sizes). * Android / Mobile Platforms: Operates under tight hardware constraints. Rather than swapping to disk, Android utilizes zram (compressed memory swap) to compress unused pages in RAM, and coordinates memory pressure using the Low Memory Killer Daemon (LMKD) to reclaim space under severe load. * Windows & Apple macOS/iOS: Employ advanced virtual memory managers that dynamically manage page tables, compress memory pages, and page out inactive memory to persistent storage when memory pressure rises.
Modern memory management is not a single universal algorithm, but a coordinated hierarchy of physical managers, virtual translation layers, and reclaim daemons working together.
We have followed the journey of memory from physical registers to virtual pages, through paging tables, page replacement algorithms, and variable-sized segment allocators.
But RAM—whether paged, segmented, or compressed—possesses a fundamental physical constraint: it is temporary. When a system loses power, everything inside its memory fades away. Programs need a way to keep their code, documents, images, databases, and configurations safe across reboots.
This transition from volatile memory to persistent storage leads us to our next major architectural question:
To answer this, we must cross the boundary from memory allocation to File Management.
PrajnaEdge is a technology company exploring the space between understanding technology, experimenting with ideas, and turning them into things that can be experienced.
PrajnaEdge began with Embedded Systems — exploring the foundations that connect hardware, software and intelligent computation.
The first technology universe is built around that foundation. The journey will expand as new ideas, experiments and products emerge.
PrajnaEdge is a technology company created by Devaharsha Meesarapu.
I am the engineer behind the design, development, and content of PrajnaEdge. I build low-level systems where code directly controls hardware, bridging the gap between register-level silicon behavior and intelligent edge decision loops.
I am an Embedded Firmware Engineer focused on developing software for resource-constrained systems. My experience spans bare-metal firmware, device drivers, microcontroller peripherals, and communication protocols, working across the boundary between hardware and software.
My work has involved microcontroller-based systems, real-time behaviour, hardware interfaces, and communication technologies such as CAN, CAN FD, UART, SPI, and I²C. I am particularly interested in understanding systems from the lowest level upward—from registers and peripherals to intelligent edge systems.
Engineering is not just about writing code; it is about managing constraints, timings, and physical hardware characteristics. True mastery of complex systems comes from understanding the interactions across different layers of the stack.
This conviction is why I built PrajnaEdge—to bridge the gap between conceptual theory and direct, register-level physical reality.
Software that runs directly on hardware without an operating system.
"Every embedded application begins long before main()."
An Operating System manages hardware and software resources so complex applications can work efficiently.
"When one loop is no longer enough to carry the burden."
PrajnaEdge is an independent education platform built to make knowledge freely accessible.
If you find PrajnaEdge useful, you can support its continued development.
Your support helps fund the time, tools, infrastructure, and experimentation that go into building and maintaining PrajnaEdge.
Welcome to PrajnaEdge (prajnaedge.dev), an independent engineering and technology platform created and maintained by Devaharsha Meesarapu. By using this website, you agree to these terms.
Educational & Research Focus: PrajnaEdge publishes interactive technical explorations, architectural models, and simulation walk-throughs covering embedded systems, computer architecture, operating systems, and edge artificial intelligence. All materials, interactive tools, and code demonstrations are provided solely for educational and conceptual understanding.
Hardware & Firmware Disclaimer: Embedded programming interacts directly with hardware registers, physical voltages, and precise timing. While all writeups and code demonstrations are prepared with care, they are provided "as is" without warranty of any kind. You are responsible for reviewing component datasheets, circuit schematics, and electrical ratings before deploying code to physical microcontrollers or custom hardware.
Intellectual Property: All original articles, custom SVG architectures, interactive simulators, curriculum sequences, and source code are the intellectual property of Devaharsha Meesarapu (© 2026 PrajnaEdge. All rights reserved). Non-commercial educational study and citation are welcome with proper attribution. Direct republication, unauthorized mirroring, or mass scraping of content is not permitted.
PrajnaEdge is committed to user privacy and minimal data collection. We do not sell, rent, or monetize your personal information.
localStorage purely to remember your interface preferences on your device (such as sound preferences for animations and tutorial display states). No personal identity data is stored in localStorage.
To help support platform operation and hosting, PrajnaEdge displays advertisements served by third-party advertising partners, including Google AdSense.
We use Google Analytics (measurement tag: G-6Y8ZVQB1V0) to evaluate anonymous, aggregate usage trends across our technical writeups.
Depending on your jurisdiction (including rights under GDPR, CCPA/CPRA, and applicable privacy laws), you have the right to request access to, correction of, or deletion of any personal communications you have submitted. We do not sell personal data.
For any questions regarding these terms, privacy practices, or data inquiries, contact the creator directly: