|
|
|
|
|
|
|
|
|
|
xen-devel
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
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] vif tx drops, (continued)
- Re: [Xen-devel] vif tx drops, David Becker
- Re: [Xen-devel] vif tx drops, Keir Fraser
- Re: [Xen-devel] vif tx drops, David Becker
- Re: [Xen-devel] vif tx drops, David Becker
- Re: [Xen-devel] vif tx drops, Keir Fraser
- Re: [Xen-devel] vif tx drops, David Becker
- Re: [Xen-devel] vif tx drops, Keir Fraser
- Re: [Xen-devel] vif tx drops, David Becker
- Re: [Xen-devel] vif tx drops, Ian Pratt
- Re: [Xen-devel] vif tx drops, Keir Fraser
- Re: [Xen-devel] vif tx drops,
Keir Fraser <=
- Re: [Xen-devel] vif tx drops, Brian Wolfe
- Re: [Xen-devel] vif tx drops, Keir Fraser
- Re: [Xen-devel] vif tx drops, Brian Wolfe
- Re: [Xen-devel] vif tx drops, Keir Fraser
- Re: [Xen-devel] vif tx drops, Brian Wolfe
- Re: [Xen-devel] vif tx drops, Christian Limpach
- Re: [Xen-devel] vif tx drops, Christian Limpach
- Re: [Xen-devel] vif tx drops, Ian Pratt
- Re: [Xen-devel] vif tx drops, Keir Fraser
- Re: [Xen-devel] vif tx drops, Alvin Starr
|
|
|
|
|