<html><body>
<div style="font-size: 13px; font-family: Tahoma; color: rgb(0, 0, 0);
font-weight: normal; font-style: normal; background-image: none;
background-attachment: scroll; background-origin: padding-box;
background-clip: border-box; background-color: rgba(0, 0, 0, 0);
background-size: auto; background-position: 0% 0%; background-repeat: repeat
repeat;">
</div>
<div style="font-style: normal; font-family: tahoma; color: rgb(0, 0, 0);
font-size: 13px; font-weight: normal; background-image: none;
background-attachment: scroll; background-origin: padding-box;
background-clip: border-box; background-color: rgba(0, 0, 0, 0);
background-size: auto; background-position: 0% 0%; background-repeat: repeat
repeat;">
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
Hi Guus, </div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
</div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
thanks for your reply. How many bytes should be allocated for each mac
entry? </div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
I still think there must be a general error in this setup because tinc
uses at the end 99% of 1 GB assigned memory for this virtual machine.
(vsphere / ESXi 4.1)</div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
Finally, when the host is running out of memory space, tincd is terminated
during a <span style="font-family: arial, sans-serif; background-color:
rgb(255, 255, 255);"> </span><b style="font-family: arial, sans-serif;
background-color: rgb(255, 255, 255);">vasprintf</b><span
style="font-family: arial, sans-serif; background-color: rgb(255, 255,
255);">(..) call. </span></div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
</div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
How can I collect or dump helpful information. </div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
</div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
The information I see in debug=5 mode are looking fine?!</div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
</div>
<div style="font-style: normal; font-family: tahoma; color: #000000;
font-size: 13px; font-weight: 400">
<div>
Sending ADD_SUBNET to CLIENTHOST (CLIENTIP port 37239): 10 6a6b2977
SERVERHOST 8:96:d7:61:9e:58#10</div>
<div>
Sending 46 bytes of metadata to CLIENTHOST (CLIENTIP port 37239)</div>
<div>
Broadcasting packet of 64 bytes from SERVERHOST (MYSELF)</div>
<div>
Sending packet of 64 bytes to CLIENTHOST (CLIENTIP port 655)</div>
<div>
Flushing 46 bytes to CLIENTHOST (CLIENTIP port 37239)</div>
<div>
Read packet of 64 bytes from Linux tun/tap device (tap mode)</div>
<div>
Learned new MAC address 8:96:d7:4a:a1:c8</div>
<div>
Sending ADD_SUBNET to CLIENTHOST (CLIENTIP port 37239): 10 50a18407
SERVERHOST 8:96:d7:4a:a1:c8#10</div>
<div>
Sending 46 bytes of metadata to CLIENTHOST (CLIENTIP port 37239)</div>
<div>
Broadcasting packet of 64 bytes from SERVERHOST (MYSELF)</div>
<div>
Sending packet of 64 bytes to CLIENTHOST (CLIENTIP port 655)</div>
<div>
Flushing 46 bytes to CLIENTHOST (CLIENTIP port 37239)</div>
<div>
Read packet of 64 bytes from Linux tun/tap device (tap mode)</div>
<div>
Learned new MAC address c0:25:6:bd:d0:c4</div>
<div>
Sending ADD_SUBNET to CLIENTHOST (CLIENTIP port 37239): 10 2bafcbfa
SERVERHOST c0:25:6:bd:d0:c4#10</div>
<div>
Sending 46 bytes of metadata to CLIENTHOST (CLIENTIP port 37239)</div>
<div>
Broadcasting packet of 64 bytes from SERVERHOST (MYSELF)</div>
<div>
Sending packet of 64 bytes to CLIENTHOST (CLIENTIP port 655)</div>
<div>
Flushing 46 bytes to CLIENTHOST (CLIENTIP port 37239)</div>
<div>
Read packet of 64 bytes from Linux tun/tap device (tap mode)</div>
<div>
Learned new MAC address 8:96:d7:53:e8:53</div>
<div>
Sending ADD_SUBNET to CLIENTHOST (CLIENTIP port 37239): 10 3c810297
SERVERHOST 8:96:d7:53:e8:53#10</div>
<div>
</div>
<div>
Does tincd distinquish between different vlans when the same mac address
is seen?</div>
<div>
</div>
<div>
thanks a lot</div>
<div>
</div>
<div>
</div>
<div>
Florian</div>
</div>
</div>
<blockquote style="padding-right: 0px; padding-left: 5px; margin-left: 5px;
border-left-color: rgb(0, 0, 0); border-left-width: 2px; border-left-style:
solid; margin-right: 0px; font-size: 13px;">
-----Original Message-----<br />
From: Guus Sliepen <guus@tinc-vpn.org><br />
To: tinc@tinc-vpn.org<br />
Date: Sun, 15 Jun 2014 12:44:00 +0200<br />
Subject: Re: memory leak with vlan tagged traffic in switch mode<br />
<br />
<div style="font-family: monospace, courier new, courier">
On Thu, Jun 12, 2014 at 06:52:15AM +0200, Florian Schoedel wrote:<br />
<br />
> I am trying to connect two segments with about 4 x 1000 mac
addresses<br />
> (distributed on different vlans). I am always running out of memory
on one<br />
> side. This happens only on the side where the arp requests come
from.<br />
> Currently there is no unicast traffic between the sides; only
broadcasted<br />
> arp requests.<br />
> It looks like tincd reserves memory with each arp request which
isn't freed<br />
> afterwards or<br />
> tincd builds internal structures for the arp cache, based on the
wrong<br />
> information from the ethernet header, when I transport 8021q tagged
traffic.<br />
<br />
Tinc reserves memory for each MAC address it sees. Unfortunately,
it's<br />
not too space efficient with those, so if all 4000 MAC addresses are<br />
being seen by tinc, that can easily cause tinc to allocate 1 megabyte
of<br />
memory. How much memory do you have and how much do you see tinc use in<br
/>
your setup?<br />
<br />
> If I change my config from switch to hub mode, everything works
fine.<br />
> Are there any drawbacks If I use hub mode when there are only two
connected<br />
> sites?<br />
<br />
If it's only two sites, there is no drawback to using hub mode.<br />
<br />
--<br />
Met vriendelijke groet / with kind regards,<br />
Guus Sliepen <<a href="mailto:guus%40tinc-vpn.org">
guus@tinc-vpn.org</a>></div>
</blockquote>
<br>Thüga MeteringService GmbH, Sitz: Naila, eingetragen beim Amtsgericht in Hof, HRB: 4125
Geschäftsführer: Peter Hornfischer
StNr.: 223/140/10756, geführt beim Finanzamt Hof, USt-ID-Nr.: DE 246359579
Bankverbindung: BayernLB München, BLZ 700 500 00, Konto-Nr. 4113816
Geschäftsadresse Thüga MeteringService GmbH, Zum Kugelfang 2, 95119 Naila
Haftungsausschluss: Diese Nachricht erhält vertrauliche Informationen, welche nur für den Empfänger bestimmt sind. Falls Sie diese Nachricht irrtümlicherweise erhalten haben,
benachrichtigen Sie uns bitte sofort und vernichten Sie sämtliche Kopien (digital/Papier). Danke.
Disclaimer: The information contained in this message is confidential and may only be used by the intended recipient. If you received it in error,
please notify us immediately and destroy any copies (digital and paper). Thank you.
</body></html>