On Thu, Aug 05, 2010 at 10:09:06AM -0400, John Drescher wrote: > On Thu, Aug 5, 2010 at 8:57 AM, Henry Yen <he...@aegisinfosys.com> wrote:
> > On (at least) Linux, /dev/random will quickly block - use /dev/urandom > > instead. > > Since these tend to be slow I would just create a large file from one of > these. Well, for this case you shouldn't simply pick one or the other. Again, on Linux, you generally can't use /dev/random at all -- it will block after reading just a few dozen bytes. /dev/urandom won't block, but your suggestion of creating a large file from it is very sensible. /dev/urandom seems to measure about 3MB/sec or thereabouts, so creating a large "uncompressible" file could be done sort of like: dd if=/dev/urandom of=tempchunk count=1048576 cat tempchunk tempchunk tempchunk tempchunk tempchunk tempchunk > bigfile -- Henry Yen Aegis Information Systems, Inc. Senior Systems Programmer Hicksville, New York ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users