[Beowulf] Generation of strings MPI fashion..

Brian Oborn linuxpunk at gmail.com
Fri Oct 7 10:40:55 PDT 2016


One note is that you'll want to use /dev/urandom instead of /dev/random as
you're not doing cryptography and you'll quickly run out of entropy in
/dev/random.

Brian Oborn

On Fri, Oct 7, 2016 at 12:19 PM, Darren Wise <darren at wisecorp.co.uk> wrote:

> Heya folks,
>
> This may seem really simple to some and it is fairly simple from the
> terminal using bash of generation and sorting (examples below)
>
> What I would like to do, to get started with making a program to run in
> MPI on my cluster.. I thought of a fairly simple bash script and this works
> fine for a single machine but what is the best way to go around it or
> converting this simple notion in to an MPI runable command.
>
> Generates random strings of chars:
> $ tr -cd '[upper:]' < /dev/random | fold -w9 | head -c${1:-1000} | tee
> somefile.txt
>
> Removes duplicate lines:
> $ sort filename.txt | uniq
>
> This is fine for generation as I mention for a single machine, but what's
> the best way to turn this around and use MPI with a shared NFS mounted
> filesystem..
>
> While this is an example im going to generate a bash script to allow me to
> generate every possible permutation of a desired string length along with
> types of chars a-z, A-Z, 0-9 along with symbols..
>
> So any advice is welcome really and it's just an educational way for me to
> transpire into generating code that can be used within my small beowulf.
>
> > Kind regards,
> > Darren Wise Esq.
> >
> > www.wisecorp.co.uk
> > www.wisecorp.co.uk/babywise
> > www.darrenwise.co.uk
>
> _______________________________________________
> Beowulf mailing list, Beowulf at beowulf.org sponsored by Penguin Computing
> To change your subscription (digest mode or unsubscribe) visit
> http://www.beowulf.org/mailman/listinfo/beowulf
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.beowulf.org/pipermail/beowulf/attachments/20161007/de58b7a5/attachment.html>


More information about the Beowulf mailing list