소스 정보
- 저장소
- coreos/chunkah
- 최근 소스 활동
- 2026년 4월 30일 02:31
- 감지된 SKILL.md 언어
- 영어
- 스타
- 134
- 포크
- 14
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/coreos/chunkah --skill benchmark-packing명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | benchmark-packing |
| description | Benchmark chunkah packing algorithm changes against a series of OCI images. |
This skill guides benchmarking of packing algorithm changes by chunking a series of consecutive OCI images and measuring layer reuse between them. The key tools are:
tools/chunk-image-series.py -- chunks a series of imagestools/analyze-layer-reuse.py -- compares layer sharing across
the chunked seriesAfter making code changes, build the container image:
just buildimg --no-chunk
This produces localhost/chunkah:latest.
Source images must be in containers-storage. Either:
From OCI archives:
for archive in /path/to/*.ociarchive; do
version=$(echo "${archive}" | grep -oP 'PATTERN')
skopeo copy "oci-archive:${archive}" "containers-storage:localhost/myrepo:${version}"
done
From a registry:
chunk-image-series.py can pull directly from a registry:
tools/chunk-image-series.py docker://quay.io/fedora/fedora-coreos \
--tag-filter '43.*' --limit 10 ...
tools/chunk-image-series.py containers-storage:localhost/myrepo \
--tag-filter '43.*' \
--prefix myrepo-chunked \
--chunkah-image localhost/chunkah \
--force \
-- --prune /sysroot --max-layers 128
Key flags:
--force to overwrite results from prior runs--limit N to control how many images to process--Pass all chunked images as separate positional arguments:
image_args=()
for i in $(seq 0 9); do
image_args+=("containers-storage:localhost/myrepo-chunked:${i}")
done
tools/analyze-layer-reuse.py --json "${image_args[@]}" > results.json
IMPORTANT: do NOT use brace expansion inside quotes (e.g.
"...:{0,1,2}") -- it won't expand. Always build the argument
list explicitly.
The JSON summary fields are:
avg_reuse_ratio -- fraction of data shared (0.0 to 1.0)avg_download_bytes -- average new data per updateAlways clean up chunked images after capturing results:
for i in $(seq 0 9); do
podman rmi "localhost/myrepo-chunked:${i}" 2>/dev/null || true
done
Always measure the original (un-chunked) images as a baseline:
image_args=()
for tag in $(podman images --filter reference='localhost/myrepo' \
--format '{{.Tag}}' | sort); do
image_args+=("containers-storage:localhost/myrepo:${tag}")
done
tools/analyze-layer-reuse.py --json "${image_args[@]}" > original.json
To compare a code change against the current defaults:
quay.io/coreos/chunkah:dev)localhost/chunkahThe source images and original baseline can be reused across runs.
chunk-image-series.py creates temporary localhost/tmp-chunk-src
tags during chunking. These are cleaned up on exit, but if a prior
run was interrupted, stale tags may remain and cause duplicate
entries. Before running analysis, verify tags are clean:
podman images --filter reference='localhost/myrepo' --format '{{.Tag}}' | sort
If you see duplicate tags, remove them before proceeding. A red
flag in results is min_download_bytes: 0 -- this means two
consecutive images were identical (likely duplicates).
Results can vary significantly depending on the specific time window of builds tested. Always test against multiple independent corpora (e.g. different image types, different time periods) before concluding a change is beneficial. An improvement on one sample may not generalize.
The default --max-layers is 64. Results at 64 layers vs 128
layers can differ substantially. Always compare configurations at
the same layer count.