Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rmlint some example run tests statistics
$ find -type d | wc -l
875
$ file | wc -l
11376092
$ time rmlint -o sh:stdout -c sh:hardlink|tee >( xz > rmlint.sh.xz )
real 1447m43.626s
user 661m13.740s
sys 98m40.956s
$ ls -lha rmlint.sh.xz
-rw-r--r-- 1 user user 49M Dec 27 06:38 rmlint.sh.xz
$ xzcat rmlint.sh.xz |wc
4501842 21142839 1370084896
$ xzcat rmlint.sh.xz |grep cp_hardlink |wc -l
3127470
$ time du -hs A/ B/ C/
3.2T A/
1.1T B/
89M C/
real 9m59.672s
user 0m23.904s
sys 1m55.532s
$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/foo-bar XT XT 525M X% /mnt/foo-bar
$ xzcat rmlint.sh.xz | time bash -s -- -d -x -p # -x leaves file , -p double check byte-by-byte equvalence before deleting file
(...)
14867.16user 10243.49system 61:56:20elapsed 11%CPU (0avgtext+0avgdata 3984maxresident)k
6823389088inputs+0outputs (217major+2690083154minor)pagefaults 0swaps
$ time du -hs A/ B/ C/
1.8T A/
140G B/
1.2M C/
real 12m42.310s
user 0m24.008s
sys 2m2.532s
$ df -h .
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/foo-bar XT XT 2.4T X% /mnt/foo-bar
# system is ext4 over lvm over 3 hdds:
$ pvs
PV VG Fmt Attr PSize PFree
/dev/sda1 vg lvm2 a-- 3.64t 987.65g
/dev/sdd1 vg lvm2 a-- 5.46t 987.65g
/dev/sde1 vg lvm2 a-- 5.46t 987.65g
# Harddrives involved
$ smartctl -a /dev/sda|grep 'Model\|Rotation\|Factor\|Firmware'
Model Family: Seagate Desktop HDD.15
Device Model: ST4000DM000-1F2168
Firmware Version: CC54
Rotation Rate: 5900 rpm
Form Factor: 3.5 inches
$ smartctl -a /dev/sdd|grep 'Model\|Rotation\|Factor\|Firmware'
Model Family: Western Digital Red
Device Model: WDC WD60EFRX-68MYMN1
Firmware Version: 82.00A82
Rotation Rate: 5700 rpm
$ smartctl -a /dev/sde|grep 'Model\|Rotation\|Factor\|Firmware'
Model Family: Western Digital Green
Device Model: WDC WD60EZRX-00MVLB1
Firmware Version: 80.00A80
Rotation Rate: 5700 rpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.