[Click] Discard and memory usage
Eddie Kohler
kohler at cs.ucla.edu
Sat Jun 24 03:04:31 EDT 2006
It certainly could be similar ! Let us know if the new patch/Click don't
solve your issue.
Eddie
Paine, Thomas Asa wrote:
> I read seen Eddie's post from a few minutes ago. I'm guessing
> this is related to the "large" (and largely understated) memory leak I'm
> seeing :) hehe, funny, but a great way to close a Friday!
>
> Thanks,
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Thomas Paine (paineta at uwec.edu)
> University of Wisconsin - Eau Claire
> garbage foo(garbage g){return(g);}
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> -----Original Message-----
> From: click-bounces at pdos.csail.mit.edu
> [mailto:click-bounces at pdos.csail.mit.edu] On Behalf Of Paine, Thomas Asa
> Sent: Friday, June 23, 2006 4:40 PM
> To: Click
> Subject: [Click] Discard and memory usage
>
> 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);}
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
More information about the click
mailing list