lkml.org 
[lkml]   [2014]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Reading large amounts from /dev/urandom broken
On Sun 2014-08-10 14:51:08, Andrey Utkin wrote:
> 2014-08-09 10:45 GMT+03:00 Pavel Machek <pavel@ucw.cz>:
> > Warn about my quick benchmark?
> >
> > http://atrey.karlin.mff.cuni.cz/~pavel/quickbench.html
> >
> > I don't see what is insane about it. Yes, there might be more
> > effective generators of random bits, but that is not the point, this
> > is quick&dirty attempt at benchmark.
> >
> > Also people will use cat /dev/urandom > /dev/sdX (and similar) to
> > clean hard drives. There should be no need to warn about
> > that. (Performance is going to be disk-limited anyway).
>
> I believe "cat /dev/urandom" doesn't result in reading with _block
> size_ more than 32 MB. As it was already explained by Theodore,
> currently single read() operation will return "short read" when
> requested to give more than 32 MB at once. You still can read more in
> consecuential reading acts.

Well, I still don't think this behaviour change is a good idea.

Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


\
 
 \ /
  Last update: 2014-08-12 11:21    [W:0.038 / U:2.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site