about summary refs log tree commit diff
path: root/scripts/optimise-store.pl
AgeCommit message (Collapse)AuthorFilesLines
2006-09-19 * Doh.Eelco Dolstra1-2/+1
2006-09-19 * Doh! Of course we have to take execute permission into account.Eelco Dolstra1-2/+9
* Restore the mtime on modified directories.
2006-09-19 * `optimise-store.pl' reduces disk space consumption by hard-linkingEelco Dolstra1-16/+40
all identitical files in the Nix store to each other. (Previously it only computed the size that would be saved by doing so.)
2006-09-19 * Cleanups.Eelco Dolstra1-19/+12
2006-09-19 * `show-duplication.pl', a small utility that shows the amount ofEelco Dolstra1-1/+0
package duplication present in (e.g.) a profile. It shows the number of instances of each package in a closure, along with the size in bytes of each instance as well as the "waste" (the difference between the sum of the sizes of all instances and the average size). $ ./show-duplication.pl /nix/var/nix/profiles/default gcc 11 3.3.6 19293318 3.4.4 21425257 ... average 14942970, waste 149429707 coreutils 6 ... average package duplication 1.87628865979381, total size 3486330471, total waste 1335324237, 38.3017114443825% wasted This utility is useful for measuring the cost in terms of disk space of the Nix approach.
2005-01-05 * Prototype store optimiser. It searched the Nix store for identicalEelco Dolstra1-0/+69
files and hard-links them to each other to save disk space. Currently it doesn't actually do the hard-linking, it just reports the amount of space saved if it did.