Re: 50x slower /dev/urandom comparing to ubuntu
Don't know about your specific results, but it's not like there isn't a simple and well known workaround...
Might not make much of a diff for a very small file like what you're creating, but generally speaking
You can execute your file creation in multiple dd operations with all except the last creating much larger chunk at once.
In other words, a major reason why your dd takes a long time is because it's creating the file 1M at a time.
You could for instance create a file 3/4 more of the full file size at once, then create the remainder 1M at a time...
The result then would be a fraction of a second instead of multiple seconds to create your file with randomized content.
Depending on what you are creating the file for, you could even create your file in one 100M step which should be nearly instantaneous.
And,
This would work almost no matter what size of file which could be relatively enormous.
TSU
Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
Solved a problem recently? Create a wiki page for future personal reference!
Learn something new?
Attended a computing event?
Post and Share!
Bookmarks