[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] vif tx drops



> > > 
> > > "  But the random-number generator is crap.
> > > 
> > > I'll say.  Out of 55 recently created VMs, 15 got dup mac addrs.
> > >     count addr
> 
> > You could try adding the following ahead of the above code in
> > tools/python/xen/xm/create.py:
> > 
> > random.seed(time.time())
> > 
> > (you may need to add an 'import time' at the top of the file).
> 
> Yes, this is worth a try. 
> 
> I've experimented with random.randint() but I am totally unable to
> make it perform so abysmally as to generate 15 dupes in 55 selections
> from a space of 8 million. I'm getting about 1 dupe every 2000
> selections. 
> 
>  -- Keir

Actually theg change is trivial ('random.seed()') so I checked it
in. Hopefully it will avoid embarrassingly bad 'random' choices.

 -- Keir


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.