simulate_disk_allocation
Simulate disk-block allocation for files using contiguous, linked, or indexed strategies. Analyze how blocks are assigned based on file sizes and block parameters.
Instructions
PURE DISK-BLOCK ALLOCATION SIMULATION using flat arguments.
Arguments are files, strategy, total_blocks, and block_size_bytes. Not for page-reference algorithms, directory scans, or real disk changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Required simulated files, e.g. [{"name":"A","size_bytes":9000}] | |
| strategy | Yes | Required disk allocation strategy: contiguous, linked, or indexed | |
| total_blocks | No | Total simulated disk blocks; default 128 | |
| block_size_bytes | No | Bytes per block; default 4096 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| summary | Yes | ||
| strategy | Yes | ||
| allocations | Yes | ||
| free_blocks | Yes | ||
| total_blocks | Yes | ||
| block_size_bytes | Yes | ||
| free_block_ratio | Yes | ||
| block_map_preview | Yes | ||
| largest_free_extent_blocks | Yes | ||
| external_fragmentation_ratio | Yes |