[sheepdog] [PATCH] test: Implentment fast random on AES

Joseph Glanville joseph at cloudscaling.com
Tue May 7 01:15:28 CEST 2013


I can't get all the tests to pass on my system, patch or not.
I always have 6 test failures. :(


On Mon, May 6, 2013 at 9:00 AM, MORITA Kazutaka
<morita.kazutaka at gmail.com>wrote:

> At Mon, 06 May 2013 16:24:39 +0800,
> Liu Yuan wrote:
> >
> > On 05/06/2013 04:15 PM, Joseph Glanville wrote:
> > > +    _random | dd bs=1M | $COLLIE vdi write test$i -p 7000 &
> >
> > 'dd bs=1M' is redundant? I can't still pass the tests with your patch
> > yet. Still sees 'error writing output file' error
>
> I think it is because openssl fails to write data to stdout because collie
> vdi
> write has exited.  If so, we can safely ignore the error message.
>
> I've tried the following simpler version.  It looks working correctly
> without dd
> and shows much better performance than /dev/urandom on my environment.
>
> ==
> _random()
> {
>     openssl enc -aes-256-ctr -pass pass:"$(date)" -nosalt < /dev/zero
> 2>/dev/null
> }
> ==
>
> Thanks,
>
> Kazutaka
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/sheepdog/attachments/20130506/12a3619e/attachment-0004.html>


More information about the sheepdog mailing list