[Click] Discard and memory usage
Paine, Thomas Asa
PAINETA at uwec.edu
Fri Jun 23 17:39:54 EDT 2006
I had a click config that has been running in production for 6 months.
When I added a Tee element, and ran that, the system ran out of ram in a
hurry. I went back on my R&D box and simply did this...
############################
tee1::PullTee(2);
tee2::PullTee(2);
outsideRx::PollDevice(eth1) -> Queue -> tee1[0] ->
insideTx::ToDevice(eth2);
insideRx::PollDevice(eth2) -> Queue -> tee2[0] ->
outsideTx::ToDevice(eth1);
tee1[1] -> Discard;
tee2[1] -> Discard;
############################
It too runs out of ram (testing with 60Kpps into one side)... If I
remove the Tee/Discards all is well. Is there a problem with tee or
discard, or am I using it incorrectly? This was tried on 1.5.0 as well
as a freshened CVS from this morning. Also, when the click is
uninstalled the, memory is not freed, but yet there is no reported
outstanding "news". I'm assuming from Tee's description that "Tee sends
a copy of each incoming packet out each output", it means one "copy" is
the original memory space and not two more copies. Any thoughts?
<removed>/conf# free -m ; date
total used free shared buffers
cached
Mem: 2027 64 1962 0 2
38
-/+ buffers/cache: 23 2003
Swap: 0 0 0
Fri Jun 23 13:26:39 CDT 2006
<removed>/conf# click-install tee.click ; date
Fri Jun 23 13:26:44 CDT 2006
<removed>/conf# free -m ; date
total used free shared buffers
cached
Mem: 2027 131 1895 0 2
38
-/+ buffers/cache: 90 1936
Swap: 0 0 0
Fri Jun 23 13:26:51 CDT 2006
<removed>/conf# free -m ; date
total used free shared buffers
cached
Mem: 2027 197 1829 0 2
38
-/+ buffers/cache: 156 1870
Swap: 0 0 0
Fri Jun 23 13:26:57 CDT 2006
<removed>/conf# free -m ; date
total used free shared buffers
cached
Mem: 2027 256 1770 0 2
38
-/+ buffers/cache: 215 1811
Swap: 0 0 0
Fri Jun 23 13:27:03 CDT 2006
<removed>/conf# free -m ; date
total used free shared buffers
cached
Mem: 2027 344 1682 0 2
38
-/+ buffers/cache: 303 1723
Swap: 0 0 0
Fri Jun 23 13:27:11 CDT 2006
<removed>/conf# free -m ; date
total used free shared buffers
cached
Mem: 2027 421 1605 0 2
38
-/+ buffers/cache: 380 1646
Swap: 0 0 0
Fri Jun 23 13:27:18 CDT 2006
<removed>/conf# click-uninstall ; date
Fri Jun 23 13:27:25 CDT 2006
<removed>/conf# free -m
total used free shared buffers
cached
Mem: 2027 481 1545 0 2
38
-/+ buffers/cache: 439 1587
Swap: 0 0 0
Thanks,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thomas Paine (paineta at uwec.edu)
University of Wisconsin - Eau Claire
garbage foo(garbage g){return(g);}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the click
mailing list