Subject: many many route added and flush not work after
To: None <tech-net@NetBSD.org>
From: rmkml <rmkml@free.fr>
List: tech-net
Date: 03/28/2006 19:45:15
Hi,
Im use netbsd30 over macppc arch,
I have started a script to create many many route (1Millions)
but after, I need flush this route,
but I have this msg :
route flush
route: malloc: Cannot allocate memory
anyone have ideas ?
look my (bad) script :
ROUTE='/sbin/route'
for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
19 20 21 22 23 24
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94
95 96 97 98 99
do
for ii in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 6
9 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
94 95 96 97 98 99
do
for iii in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 6
8 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
93 94 95 96 97 98 99
do
$ROUTE add -net $i.$ii.$iii 82.238.92.254
done
done
done
ok route created after 1 hour.
# netstat -m
133 mbufs in use:
131 mbufs allocated to data
2 mbufs allocated to packet headers
228 calls to protocol drain routines
Best Regards
Rmkml