Closed GoogleCodeExporter closed 9 years ago
Thread is here:
http://pf.itd.nrl.navy.mil/pipermail/core-users/2014-August/001641.html
Another workaround is to specify node numbers when creating nodes, so their
object IDs are not longer random numbers.
Original comment by ahrenh...@gmail.com
on 25 Aug 2014 at 10:09
Thanks for the fix. I had thought that we could get more by using the id as Hex
by format(id, '03x').
This works and gives potential for 4096 nodes. However it seems that vnoded has
a limit anyway. I ran the howmanynodes.py script to see how far I got and with
using hex id I only get to 1012 nodes anyway as vnoded is running in to kernel
limits on the number of open files.
Does vnoded have to keep all the files open or could it open or close when
needed? I had plenty of memory left when I hit 1012 so I think my system would
handle more.
Original comment by stuartma...@gmail.com
on 5 Sep 2014 at 10:06
I have found if you change the ulimit for root that I can create at least 4000
nodes. I used howmanynodes.py after setting the ulimit to 4096 and managed to
create 4000 nodes. I also had to limit the number of nodes per bridge.
Attached is a slight variation on the patch which uses hex id's so that 3
digits allows up to 4096. In theory could use base 36 and get 46656 nodes in 3
digits but would have to write a helper function for that as base 36 is not in
Python by default.
Original comment by stuartma...@gmail.com
on 5 Sep 2014 at 10:57
Attachments:
fixed in r601
use interface names "vethOOOOO.ii.ss" and "vethOOOOO.iipss" for veth pairs
(where OOOOO = object id, ii = interface index, ss = hex short session ID)
1 byte shorter by using hex value for the short session ID used in naming
interfaces (e.g. "fa" vs "250").
2 bytes shorter by using "p" (for "peer") between interface index and short
session ID instead of ".1."
this should allow for up to 65535 nodes with up to 100 interfaces
Original comment by ahrenh...@gmail.com
on 28 Oct 2014 at 9:24
Original issue reported on code.google.com by
ahrenh...@gmail.com
on 21 Aug 2014 at 2:37Attachments: