Skip to content
Back to skills

Hardware Aware Design

ASecurity

Hardware-aware architecture for high performance: memory hierarchy & cache behavior, NUMA, SIMD/vectorization, mechanical sympathy, false sharing, and lock-free vs locked concurrency. Architect-level guidance on designing software that matches the machine. USE WHEN: latency/throughput-critical design, "cache miss", "NUMA", "SIMD", "false sharing", "memory bandwidth", "mechanical sympathy", "lock-free", "cache line", data-oriented design, hot-path performance architecture. DO NOT USE FOR: ap...

  • 31 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 8, 2026
ai-agentsgonodeperformance

Security analysis

A100/100

Scanned September 8, 2026

npx -y skills add claude-dev-suite/claude-dev-suite --skill hardware-aware-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hardware Aware Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hardware Aware Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/claude-dev-suite-hardware-aware-design/badge)](https://www.skillsdirectory.com/skills/claude-dev-suite-hardware-aware-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: hardware-aware-design
description: |
  Hardware-aware architecture for high performance: memory hierarchy & cache
  behavior, NUMA, SIMD/vectorization, mechanical sympathy, false sharing, and
  lock-free vs locked concurrency. Architect-level guidance on designing software
  that matches the machine.

  USE WHEN: latency/throughput-critical design, "cache miss", "NUMA", "SIMD",
  "false sharing", "memory bandwidth", "mechanical sympathy", "lock-free",
  "cache line", data-oriented design, hot-path performance architecture.

  DO NOT USE FOR: app-level profiling tasks (use the performance agent/skills);
  GPU/AI accelerator selection (use `ai-systems` hardware skill); networking
  (use `systems-networking`).
allowed-tools: Read, Grep, Glob
---
# Hardware-Aware Design (Mechanical Sympathy)

When a design is bound by the machine, architecture must respect it.

## The memory hierarchy is the dominant cost

Rough latencies: L1 ~1ns, L2 ~4ns, L3 ~15ns, **DRAM ~100ns**, NVMe ~50–100µs,
network/disk far worse. A cache miss to DRAM is ~100× an L1 hit → **layout and
access patterns often matter more than algorithmic constants** on hot paths.

- **Cache lines (64B)**: pack hot fields together; avoid pointer-chasing
  (linked lists/trees thrash the cache) — prefer contiguous arrays.
- **False sharing**: two cores writing different vars on the same line ping-pong
  the line → pad/align per-core data to a cache line.
- **Data-oriented design / SoA vs AoS**: struct-of-arrays enables streaming +
  SIMD and better cache use than array-of-structs for bulk processing.
- **Prefetch & predictability**: sequential, predictable access lets HW prefetch
  and branch predictors win; random access defeats them.

## Parallelism levers

- **SIMD/vectorization** (SSE/AVX/NEON, SVE): data-parallel hot loops; needs
  aligned, contiguous, branch-light data.
- **NUMA**: pin memory near the core that uses it; cross-socket access is far
  slower — partition data per node, avoid a global shared structure.
- **Concurrency**: lock-free/wait-free (CAS, RCU) avoids contention but is hard
  and ABA-prone; often a well-placed lock or sharded/per-core state beats clever
  lock-free. Cache-coherence traffic (MESI) is the hidden cost of shared writes.

## When to invoke this
- µs-scale latency budgets, high-throughput data processing, DB/engine internals,
  trading, media/codec, simulation. **Not** for typical CRUD/web services — there,
  I/O and architecture-level concerns dominate, not cache lines.

## Process
Identify the bottleneck resource (CPU/mem-bandwidth/latency) first, then choose
the matching technique. Measure; don't micro-optimize on intuition.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.