3 ms·
man, I just spent like 8 minutes today writing a python script to use up all the disk space on some servers (part of ops readiness testing) when I could have ju
by sytringy05 9y ago
man, I just spent like 8 minutes today writing a python script to use up all the disk space on some servers (part of ops readiness testing) when I could have just used this trick.
`yes` will help me on the "see what happens when something uses all the CPU and memory" test case. Thanks Reddit/HN!
- acdha 9y agodd can also be useful for that kind of thing since you can use a source like /dev/urandom to generate random bytes if you're trying to avoid compression and the adjustable block sizes can be optimized for the underlying storage system.
- sytringy05 9y agoI did actually use dd to begin with but it didn't work as I wanted it too right away (can't remember why, probably something SUSE related) and by then I'd used up 6 mins of the 15 mins I gave myself for the job. I also had to do the same test on windows, so python won