Skip to main content

Memory Resource Ontology

Resource Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
MEMORY RESOURCE ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Resource Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/resource-entities/memory-resource-ontology.html
Prepared: 11 November 2026
Status: Constructed topic-level mapping; not a verified transcription of the source page.

1. PURPOSE
Represent memory as a finite, allocatable computational resource with capacity, addressability, ownership, access permissions, residency, pressure and lifecycle. Distinguish physical memory, virtual address space, committed memory, resident pages, cache and swap rather than treating their sizes as interchangeable.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observed allocations, requests, free pages, working sets, faults and telemetry.
R_t: owns, allocates, maps, reserves, commits, shares, releases, evicts.
B_t: capacity, permissions, quotas, alignment, isolation and safety bounds.
K_t: memory architecture, policy, locality and historical usage.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
The score is a policy-dependent ranking, not a measured probability unless calibrated.

3. ENTITY MODEL
MemoryResource(id, kind, capacity_bytes, available_bytes, page_size, locality, state)
MemoryAllocation(id, owner, requested_bytes, committed_bytes, resident_bytes, lifetime)
MemoryRegion(id, virtual_range, mapping, permissions, sharing_mode)
MemoryPool(id, resource_ids, quota, policy)
Process(id, address_space, memory_limit)
Page(id, frame_or_backing, state, access_flags)
MemoryPressure(id, scope, severity, timestamp)
Kinds include RAM, virtual memory, device memory, cache and persistent memory; units and accounting domains must be explicit.

4. RELATIONSHIP GRAPH
Process --requests--> MemoryAllocation
MemoryAllocation --consumes--> MemoryResource
Process --owns/maps--> MemoryRegion
MemoryRegion --maps_to--> Page
Page --resides_in--> PhysicalFrame | BackingStore
MemoryPool --contains--> MemoryResource
Quota --constrains--> Process | MemoryPool
MemoryPressure --observed_on--> MemoryResource
Scheduler --responds_to--> MemoryPressure

5. CORE FLOWS
FLOW A: RESOURCE DISCOVERY
Input: resource identifier, topology and telemetry.
Expand: enumerate memory classes, capacity, page size, NUMA locality and limits.
Validate: unit consistency, freshness and authority of counters.
Output: typed resource inventory and confidence notes.

FLOW B: ALLOCATION
Input: owner, size, permissions, alignment, locality preference.
Expand: candidate pools and mappings.
Filter: capacity, quota, access policy and supported allocation type.
Select: admissible allocation under chosen placement policy.
Execute: reserve/commit/map as applicable; observe actual result.
Output: allocation handle or explicit failure.

FLOW C: ACCESS AND TRANSLATION
Input: virtual address, process context and operation.
Validate: mapped region and requested access rights.
Translate: address through applicable mapping and page tables.
Observe: hit, page fault, protection fault or invalid address.
Output: access result; no assumption that a mapped page is resident.

FLOW D: PRESSURE MANAGEMENT
Input: free/available memory, reclaimable cache, fault rates, swap activity.
Expand: reclaim, eviction, migration, compaction and admission controls.
Filter: pinned pages, isolation constraints, dirty-write obligations.
Select: bounded response according to policy.
Output: updated pressure state and measured impact.

FLOW E: RELEASE
Input: allocation handle and owner authority.
Validate: ownership, outstanding references and release semantics.
Execute: unmap/decommit/free as appropriate; update accounting.
Output: released resource or documented pending state.

6. INFERENCE RULES
IF requested allocation exceeds enforced quota THEN reject or request authorised quota change.
IF physical available memory is low AND reclaimable memory exists THEN consider reclaim before declaring exhaustion.
IF a process references an unmapped address THEN raise an invalid-access condition.
IF an access violates region permissions THEN deny it regardless of free capacity.
IF repeated major page faults and swap activity increase THEN infer possible memory pressure, subject to corroboration.
IF pages are shared THEN avoid double-counting their physical footprint across owners.
IF committed bytes exceed resident bytes THEN do not infer a fault: commitment and residency are distinct.

7. BOUNDED RECURSION ENGINE
function resolve_memory_request(request, state, depth, visited):
    if depth >= MAX_DEPTH: return INDETERMINATE_DEPTH_LIMIT
    key = canonical(request, state.policy_version)
    if key in visited: return INDETERMINATE_CYCLE
    visited.add(key)
    candidates = expand(request, state.relationships)
    valid = filter(candidates, state.capacity_and_security_bounds)
    if valid is empty: return FAILURE_NO_ADMISSIBLE_RESOURCE
    choice = rank(valid, state.placement_policy)
    result = attempt(choice)
    if result.success: return verify_and_record(result)
    if retryable(result) and retry_budget_remaining():
        return resolve_memory_request(adapt(request, result), observe(), depth + 1, visited)
    return FAILURE_WITH_REASON
Termination depends on finite MAX_DEPTH and retry budget.

8. SEMANTIC EQUIVALENCE AND NON-EQUIVALENCE
RAM capacity != virtual address-space size.
Reserved != committed != resident memory.
Free != available memory (reclaimable cache may contribute to availability).
Shared mappings != duplicated physical allocations.
Cache memory may be reclaimable but not necessarily immediately reclaimable.
Equivalent memory reports require matching units, scope, sampling time and accounting rules.

9. EXAMPLE EXECUTION TRACE
Request: process P asks for a 64 MiB writable anonymous allocation.
Discover: available allocation mechanism and process quota.
Filter: quota, virtual-space availability and permission constraints.
Select: an admissible mapping; reserve or commit per platform semantics.
Observe: successful mapping does not guarantee all 64 MiB is physically resident.
Access: pages may be populated on demand; record faults and residency.
Release: unmap and verify accounting under the operating system's rules.

10. OPERATIONAL BOUNDARIES
This ontology does not guarantee successful allocation, physical residency, latency, confidentiality or absence of out-of-memory conditions. Actual behaviour depends on operating system, overcommit settings, hardware, containers, quotas, concurrent workloads and measurement accuracy. Avoid treating telemetry snapshots as atomic truth. Protect memory contents and address metadata as potentially sensitive.

11. PROVENANCE AND CITATION
Title: Memory Resource Ontology — Flow Algebra v1.0
Authors: Mark Anthony Higgins — Sky Recursive AI
Source URL: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/resource-entities/memory-resource-ontology.html
Scope: Original constructed Flow Algebra interpretation of the named ontology topic, not a quotation or verified extraction of the page's embedded specification.
Citation: Higgins, Mark Anthony; Sky Recursive AI. Memory Resource Ontology — Flow Algebra v1.0. Kireth Research Semantic Library (2026). Cite the source URL when reusing this mapping.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ