-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disk space usage of pipelines #157
Comments
Initial tooling for pruning # du -skhc /data/*
32G /data/compile
27G /data/epoch-097e46a4d589b9e34ed2903beecd1a04
16G /data/epoch-3820829bb005c559218fffb16ee32f3b
17G /data/epoch-410108220dc0168ea4d9bd697dfa8e34
56K /data/epoch-7b9b14524382caea73504bb5a36d8879
40K /data/epoch-8550e0f943a1074985306ec2c9d21822
25G /data/epoch-9baa5939aca1673d141e85b6ecd1e770
0 /data/html-current
4.0K /data/html-current.log
0 /data/html-live
4.0K /data/html-live.log
4.0K /data/linked
0 /data/linked-current
4.0K /data/linked-current.log
0 /data/linked-live
4.0K /data/linked-live.log
99G /data/prep
212G total
# /usr/local/bin/epoch --base-dir /data
Files to be deleted in prep/universes
000266a0eb75736fb01067c065abfdcf
00065d52d8d3a4ed06de725186e78055
0008e7ff536074039c951738c9386eff
001351655c7802dc23d2b7508c32f206
0014e3e571ed5319e5db4b6c3dc31c48
001ff6efc0fbeb22ffde83cc265ceb41
00221d8f37762a32b03e84334594560a
0024ed8660c331065b18a08bbe205a2c
00259e1f647baf2c1493e52d0d9ff07d
0035a1d03fc9aaa713d6aac6d1fe7fe8
... plus 20959 more
Deleting 20969 files in /data/prep/universes
✔️ │███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│ 20969/20969
Files to be deleted in compile/u
000266a0eb75736fb01067c065abfdcf
0014e3e571ed5319e5db4b6c3dc31c48
001ff6efc0fbeb22ffde83cc265ceb41
00259e1f647baf2c1493e52d0d9ff07d
003cafc54a9826c27f9a6a44bbbe45d2
004e68d419cbbf2cf6e49edbee60da35
0062d3b633c68a7b15fd49012400b3e5
006b995bf91c4616f744e3f862ac63cd
007077bb760550510c5a3a9cf34bbefe
0078206d4374af0bf15247fd078daced
... plus 6323 more
Deleting 6333 files in /data/compile/u
✔️ │█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████│ 6333/6333 After running epoch prune # du -skhc /data/*
23G /data/compile
27G /data/epoch-097e46a4d589b9e34ed2903beecd1a04
16G /data/epoch-3820829bb005c559218fffb16ee32f3b
17G /data/epoch-410108220dc0168ea4d9bd697dfa8e34
56K /data/epoch-7b9b14524382caea73504bb5a36d8879
40K /data/epoch-8550e0f943a1074985306ec2c9d21822
25G /data/epoch-9baa5939aca1673d141e85b6ecd1e770
0 /data/html-current
4.0K /data/html-current.log
0 /data/html-live
4.0K /data/html-live.log
4.0K /data/linked
0 /data/linked-current
4.0K /data/linked-current.log
0 /data/linked-live
4.0K /data/linked-live.log
26G /data/prep
129G total The next step is to provide After that epoch cli tool needs to have a way to diff two epochs of the same type. # epoch diff /data/epoch-9baa5939aca1673d141e85b6ecd1e770 /data/epoch-8550e0f943a1074985306ec2c9d21822 Shows a rich diff format of which package versions are present or absent between the two epochs. This is particularly useful for the html epochs that are used by ocaml.org. # epoch diff /data/epoch-9baa5939aca1673d141e85b6ecd1e770 /data/epoch-8550e0f943a1074985306ec2c9d21822 --summary Provides a quick summary of how many package versions are added, missing or new between the two epochs # epoch diff /data/epoch-9baa5939aca1673d141e85b6ecd1e770 /data/epoch-8550e0f943a1074985306ec2c9d21822 --package lwt Provides a diff for a single package which versions are added, missing or new between the two epochs. |
ocaml-docs-ci uses a concept of Epochs to track sets of package documentation that interlink and share common dependencies. Each Epoch is self-contained and can grow to 100G or more for production.
When they are no longer used Epochs can be removed and the disk space reclaimed. Outside of epochs two directories
compile
andprep
also take up a lot of disk space. But there is no clean way of reclaiming the un-used diskspace from them. For example on live docs.ci.ocaml.org they look like:Both directories appear to contain
universes
but they aren't linked to a specific Epoch and can't be easily pruned.Further investigation is required to work out how we can reclaim disk space or organise these directories into epochs so they can be reclaimed.
The text was updated successfully, but these errors were encountered: