Skip to main content

CPU 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
CPU 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/cpu-resource-ontology.html
Prepared: 11 November 2026
Status: Constructed topic-level ontology mapping; not a verified transcription of the source webpage.

1. PURPOSE
Represent a CPU resource as schedulable processing capacity with physical and logical topology, allocation constraints, utilisation, performance and availability. Distinguish CPU hardware, logical processors, CPU time, quotas and virtual CPU entitlements.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: observed CPU inventory, runnable tasks, allocations and utilisation.
R_t: topology, ownership, scheduling, affinity and dependency relations.
B_t: capacity, isolation, quota, thermal, power and policy boundaries.
K_t: known workload behaviour, measurements and scheduler rules.
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 scoring expression ranks feasible choices; it does not guarantee a globally optimal schedule.

3. ENTITY MODEL
CPU_RESOURCE: id, host_id, architecture, online_state, topology, capacity_model, policy.
PHYSICAL_CPU: socket_id, cores, frequency_domain, NUMA_node.
CORE: core_id, sibling_logical_processors, online_state.
LOGICAL_PROCESSOR: processor_id, affinity_mask, scheduling_state.
VCPU: virtual_processor_id, guest_id, host_mapping, entitlement.
CPU_ALLOCATION: workload_id, quota, period, affinity, priority, start, end.
CPU_METRIC: timestamp, utilisation, run_queue_length, throttling, frequency, temperature.
WORKLOAD: task_id, runnable_state, demand_estimate, deadline, class.
SCHEDULER: policy_id, ready_queue, dispatch_decision, accounting.

4. RELATIONSHIP GRAPH
HOST --contains--> PHYSICAL_CPU --contains--> CORE --exposes--> LOGICAL_PROCESSOR
NUMA_NODE --groups--> CORE
WORKLOAD --requests--> CPU_RESOURCE
SCHEDULER --dispatches--> WORKLOAD --runs_on--> LOGICAL_PROCESSOR
CPU_ALLOCATION --reserves_or_limits--> CPU_RESOURCE
VCPU --maps_to--> HOST_CPU_CAPACITY
CPU_METRIC --observes--> CPU_RESOURCE
POLICY --constrains--> CPU_ALLOCATION

5. CORE FLOWS
FLOW CPU_DISCOVERY:
  input(host); enumerate available and online logical processors; attach topology and measured capacity; output inventory.
FLOW DEMAND_ADMISSION:
  input(workload, requested_share); check quota, cpuset, security and admission rules; output admitted/rejected with reason.
FLOW CPU_DISPATCH:
  input(ready_queue, capacity, policy); select eligible workload; assign permitted processor; record context switch and accounting.
FLOW CPU_MONITOR:
  sample utilisation, runnable delay, throttling and frequency; compare against thresholds; emit observation and policy review.
FLOW CPU_REBALANCE:
  detect skew or contention; propose migrations respecting affinity, NUMA locality and isolation; validate before application.
FLOW CPU_RELEASE:
  on completion, cancellation or failure, update accounting and return scheduling entitlement.

6. INFERENCE RULES
IF logical_processor.online = false THEN it is ineligible for dispatch.
IF workload.affinity INTERSECT online_processors = empty THEN workload cannot currently run under that affinity.
IF quota_consumed >= quota_for_period THEN throttle according to applicable scheduler policy.
IF runnable_delay rises while eligible capacity is saturated THEN infer possible CPU contention, not proven causation.
IF utilisation is low AND runnable_delay high THEN inspect quotas, affinity, locks and scheduler constraints before claiming spare usable capacity.
IF vCPU_count > physical_logical_processor_count THEN record overcommit; do not infer failure automatically.
IF thermal_or_power_limits reduce frequency THEN effective compute capacity may decrease despite unchanged processor count.

7. MINI RECURSION ENGINE
function allocate_cpu(workload, state, depth, visited):
    if depth >= MAX_DEPTH: return DEFERRED("recursion bound")
    candidates = eligible_processors(workload, state)
    candidates = filter(candidates, online AND affinity_allowed AND policy_allowed)
    if candidates is empty: return WAITING("no eligible processor")
    choice = rank(candidates, locality, load, fairness, deadline)
    if choice in visited: return DEFERRED("cycle detected")
    if capacity_check(choice, workload, state):
        return dispatch_and_record(workload, choice, state)
    return allocate_cpu(workload, revised_state(state, choice), depth + 1, visited UNION {choice})
Termination depends on finite candidates and enforced MAX_DEPTH; admission is not guaranteed.

8. BOUNDARIES AND GUARANTEES
Capacity is workload-, architecture-, frequency- and contention-dependent; one logical processor is not necessarily equivalent to one physical core. Hyperthread siblings share execution resources. CPU quotas are accounting limits, not guaranteed execution speed. Scheduling decisions must respect security boundaries, affinity, real-time rules and available capacity. Sampling is imperfect; monitoring cannot by itself establish root cause. Fairness, deadline satisfaction and liveness require explicit scheduler assumptions.

9. SEMANTIC EQUIVALENCE
CPU resource ~= processor capacity only when scope, host, measurement interval and allocation semantics match.
CPU core != logical processor; logical processor != virtual CPU; utilisation != throughput; CPU time != wall-clock time; reserved capacity != guaranteed performance.

10. EXECUTION TRACE EXAMPLE
Observation: host has four online logical processors; workload A requests two eligible processors; workload B is throttled by a quota.
Expand: candidate assignments for A under affinity and policy.
Validate: reject offline or excluded processors; account for existing reservations.
Select: dispatch A to feasible candidates; keep B throttled until its quota period permits execution.
Update: record actual CPU time, run-queue delay and throttling; reconsider on next observation.

11. PROVENANCE AND CITATION
Topic source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/resource-entities/cpu-resource-ontology.html
Citation: Higgins, Mark Anthony; Sky Recursive AI. "CPU Resource Ontology — Flow Algebra v1.0", Semantic Library, 11 November 2026.
This file is an original, constructed mapping informed by standard computing concepts; source-page details were not independently verified.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ