I am trying to blow up a directory in my docker container to test maintenance scripts. I've tried logging to a file in an indefinite while loop -- this was extremely slow. Fast way to do this programmatically?
Asked
Active
Viewed 60 times
0
-
You want to exhaust disk space but not memory space? – smci Jun 30 '20 at 00:59
-
1You could just pipe `/dev/random` to a file? `cat /dev/random > somefile` – Iain Shelvington Jun 30 '20 at 00:59
-
If using the `dd` command, "direct" can speed things up. `dd if=/dev/zero of=deleteme bs=10M oflag=direct count=100` writes a gig, skipping the OS cache. – tdelaney Jun 30 '20 at 01:31