PrajnaEdge
A curiosphere for curious minds who want to understand, experiment with, and experience technology.

Technology is a system of connections.

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.

To continue exploring
Products

Technology, made tangible.

PrajnaEdge products and technology experiences are currently in development.
In Development

Playground

Experiment with intelligence beyond the cloud.

AI runs closer to where data is generated — reducing dependence on distant cloud infrastructure and enabling faster, more responsive systems.
Edge AI Computer Vision

Image Classification

Can this image classifier maintain its intelligence while becoming small enough for the edge?

On-Device AI Coming later

On-Device Intelligence

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.

Edge AI Playground

Image Classification

Can this image classifier maintain its intelligence while becoming small enough for the edge?

Choose an image

Upload an image
Supports JPG, JPEG, PNG
This classifier recognizes only Apple, Banana, and Orange. Other objects may be incorrectly classified as one of these classes.

Choose the model

Model size
4.91 MiB
Largest activation
~625 KiB
Test accuracy
99.11%
Measured model accuracy
Your image is processed locally in your browser.
Playground · Future Area

On-Device AI

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.

Coming later

Explore the ideas, systems and connections that shape technology — choose any node to begin your journey.

PrajnaEdge Navigation Tree
Embedded Systems Tree

Edge AI Demonstrations

Deploying neural networks and intelligent decision loops on raw silicon targets.

Sort:
Operating Systems

A File Is Not Stored as a File

Understanding block translation layers, allocation strategies, and logical-to-physical address mapping.

Operating SystemsStorage ManagementFilesystemAllocationFragmentation

1. Start with the Familiar File

When you browse your storage, you see files organized neatly into folders:

notes.txt

A user or an application interacts with a file as a single, continuous stream of bytes. You open the file, write some text, read it back, and close it.

But this continuity is a software abstraction. The underlying physical storage device has no concept of a "file," a "name," or a "directory." It does not know where notes.txt begins or ends.

Instead, storage devices operate purely in terms of fixed-size data blocks.

Application → File → Filesystem → Storage Blocks → Physical Device

The key realization is simple:

A file is a logical object managed by the operating system. Storage hardware works entirely with blocks.

2. From File to Blocks

When a file is written to storage, the filesystem must divide the continuous file bytes into discrete, block-sized chunks.

Suppose notes.txt is exactly 10 KB in size, and the filesystem organizes storage into 4 KB blocks. The filesystem splits the file as follows:

* Block 1: Bytes 0 to 4,095 (4 KB) → Storage Block 120 * Block 2: Bytes 4,096 to 8,191 (4 KB) → Storage Block 121 * Block 3: Bytes 8,192 to 10,239 (2 KB used) → Storage Block 122

Notice that the final block (Block 122) contains only 2 KB of file content, but it still consumes a full 4 KB block on disk. The remaining 2 KB of that block cannot be allocated to another file, resulting in internal fragmentation.

This block-based translation is handled entirely by the operating system's filesystem driver.

3. A File's Blocks Do Not Have to Be Physically Adjacent

Because the filesystem maps logical segments to storage blocks through an index, a file's blocks do not need to sit next to each other on the physical drive.

A file could easily be scattered across the storage medium:

notes.txt ↓ Logical Block 0 → Storage Block 120 Logical Block 1 → Storage Block 121 Logical Block 2 → Storage Block 245

This establishes an important separation of concerns:

1. Logical File Order: A continuous byte sequence starting at 0 and running to 10,239. 2. Physical Block Locations: Scattered blocks (120, 121, 245) residing wherever space was available when the write occurred.

The storage hardware does not know these blocks are related; it simply reads and writes individual blocks as commanded.

4. Classic Storage Allocation Strategies

How does the filesystem keep track of which blocks belong to which files? Historically, three classic allocation strategies were designed to solve this mapping problem:

Contiguous Allocation File A: Start 120, Length 3 Block 120 Block 121 Block 122 Sequential, but prone to fragmentation Linked Allocation File B: Start 120 Block 120 ptr: 245 Block 245 ptr: 91 Block 91 ptr: NULL Non-contiguous, but random access is poor Indexed Allocation File C: Index Block 150 Index [150] 0: 120 1: 245 2: 91 Block 120 Block 245 Block 91 Efficient indexes, handles large files

Contiguous Allocation The filesystem places the entire file's blocks in consecutive sequence on the storage device. * Advantage: Extremely fast sequential access, as the device read heads (in HDDs) or controller logic (in SSDs) do not need to jump addresses. * Disadvantage: Prone to external fragmentation. As files are created and deleted, finding consecutive blocks large enough for new files becomes increasingly difficult.

Linked Allocation Each block contains a small pointer to the next block, forming a chain. * Advantage: No block space is wasted due to external fragmentation; any free block can join the chain. * Disadvantage: Poor random access performance. To read Block 50, the OS must read Blocks 1 through 49 first to follow the pointers.

Indexed Allocation All data block pointers are collected together in a single dedicated index block. * Advantage: Supports fast direct/random access to any block without reading preceding data. * Disadvantage: Overhead. Even tiny files consume an entire extra block just to hold the index mapping.

5. Important Clarification

Modern operating system filesystems rarely implement these classic models in their raw textbook form. Instead, they use advanced adaptations:

* Extents: Rather than indexing every block individually, modern filesystems allocate ranges of consecutive blocks. An extent is simply a (Start Block, Run Length) pair. For example: "Start at Block 120 and read the next 8 blocks." * B-Trees / Extent Trees: Large files index their extents inside tree structures, allowing quick lookups and scaling to petabytes of data.

The fundamental goal, however, remains the same: translating a single logical file stream into a set of mapped storage block addresses.

6. EdgeCase: From File to Blocks

Use the simulator below to visualize how the filesystem translates a 10 KB file into logical blocks, maps them to physical sectors, and services a read request from the middle of the file:

7. Do Not Overclaim Physical Placement

While the filesystem maps files to "Storage Blocks," it is important to realize that these storage blocks are still logical representations.

On modern Solid State Drives (SSDs) and NVMe drives, there is another translation layer inside the device itself. When the filesystem requests Logical Block Address (LBA) 120, the SSD controller's Flash Translation Layer (FTL) intercepts the request and maps it to a physical flash memory cell.

The SSD controller does this to balance wear across its silicon gates, handle bad blocks, and optimize write performance. The operating system filesystem manages logical block layouts, while the storage drive controller manages the actual physical hardware mapping.

8. Real Operating-System Connection

Most production operating systems rely heavily on extent-based allocation instead of raw block mapping:

* Linux (ext4): Uses extent trees to store metadata. A single extent can represent up to 128 MB of contiguous space on a 4 KB block filesystem, reducing metadata overhead significantly. * Windows (NTFS): Refers to extents as data runs. The MFT record describes files as a series of runs mapping logical clusters to physical storage clusters. * macOS (APFS): Employs dynamic extent allocation paired with copy-on-write clones, letting multiple directory entries reference the same extents until a write is made.

9. Connection to Fragmentation

In the Memory Management branch, we saw how memory becomes fragmented as pages are allocated and freed. The same phenomenon occurs in storage.

When a file's blocks are scattered far apart on physical storage, the file is fragmented: * On Hard Disk Drives (HDDs): Fragmentation is highly destructive to performance. The mechanical drive head must physically rotate and seek to jump between distant sectors, causing noticeable delays. * On Solid State Drives (SSDs): There are no moving heads, so mechanical seek delays do not apply. However, extreme fragmentation still imposes CPU overhead on the filesystem driver (which must manage massive mapping tables) and limits the drive controller's ability to run parallel block operations.

10. The Next Question

We now know that a file is a logical object whose data is mapped onto storage blocks.

But those blocks do not exist in isolation.

What exactly is the layer between the filesystem and the storage device — and how do partitions, volumes and filesystems turn a raw device into something the OS can actually use?

System Tree Node Operating Systems

PrajnaEdge

Engineering concepts you don't just read — you experience.
Founded in 2026.

PrajnaEdge is a technology company exploring the space between understanding technology, experimenting with ideas, and turning them into things that can be experienced.

Our Mission

To make technology easier to explore, deeper to understand, and more exciting to experience.

Our Vision

To build a technology ecosystem where curiosity, experimentation and creation continuously lead to one another.

Where it began

Embedded Systems

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.

CREATOR PROFILE

Devaharsha Meesarapu

Embedded Systems • Firmware • Edge AI

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.

View Resume →

ABOUT ME

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 PHILOSOPHY

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.

CONNECT

LinkedIn → GitHub →

Interactive Career Journey

BTech · ECE

Foundations

Where it all began — understanding the physical layer of computation. Circuits, signals, and systems gave me a mental model of how information moves through hardware.

⬡
Connects to Systems
Understanding circuits directly enables writing firmware that talks to peripherals at the register level.
What it is
BTech in Electronics and Communication
Undergraduate foundation covering analog & digital circuits, signal processing, microprocessors, and communication systems.
CircuitsSignal ProcessingMicroprocessorsVLSI
What I did
Core Engineering Fundamentals
Studied semiconductor physics, digital logic design, and embedded microcontrollers. Built prototypes using 8-bit MCUs.
8051Logic DesignPCB Basics
What I learned
The Hardware Mental Model
Every software abstraction sits on physical reality. Understanding silicon teaches you why timing, power, and noise are first-class engineering problems.
Let's Connect
Interested in embedded systems, AI, or building something meaningful? I'd love to hear from you.
Open to collaborations, research, and interesting engineering conversations.
Help Improve PrajnaEdge
Found something to improve? I'd love to hear your thoughts.

Bare Metal

Software that runs directly on hardware without an operating system.

Applications
↑
Operating Systems
YOU ARE HERE
Bare Metal
Processor
↑
Hardware

"Every embedded application begins long before main()."

Operating Systems

An Operating System manages hardware and software resources so complex applications can work efficiently.

Applications
↑
YOU ARE HERE
Operating Systems
Bare Metal
↑
Processor
↑
Hardware

"When one loop is no longer enough to carry the burden."

← Return to Systems Tree
Select Domain
Explore application domains branching from the Systems Tree
Automotive
Aerospace & Defence
Consumer
Embedded AI
Industrial
Medical
Multimedia
Network & Connectivity
Robotics
Explore Active Systems Tree →
← Return to Systems Tree
Select Depth
Examine computation through architectural depth layers
Architecture
Controller
Digital
Programming
Processor
Explore Processors → Explore Controllers →

Support PrajnaEdge

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.

Select Region
Select Amount
Select an amount to support PrajnaEdge.