Re: PF_RING (Vanilla) latency
Alfredo Cardigliano <[email protected]> Thu, 15 Aug 2019 12:46:05 +0200
| Newsgroups | gmane.linux.ntop.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============4250353899640552679== Content-Type: multipart/alternative; boundary="Apple-Mail=_121E23D1-A35A-4925-99B0-E841B23EC2D9" --Apple-Mail=_121E23D1-A35A-4925-99B0-E841B23EC2D9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Eitan did you try setting the pfring_send flush_packet parameter to 1? int pfring_send(pfring *ring, char *pkt, u_int pkt_len, u_int8_t = flush_packet); Alfredo > On 15 Aug 2019, at 08:42, Eitan Michaelson <[email protected]> wrote: >=20 > Hello, >=20 > Just completed a simple test and I'm not sure I'm getting the expected = results.. > I'm unis pfring_recv() to collects packets and then doing immediately = pfring_send() to send > them back (on a different ring/ interface). >=20 > Measuring this with an external sniffer shows around 1 second delay = between > the time that the packet was received and sent. This is the only = process running on the PC (Core i7) >=20 > 1. Does this makes any scene? > 2. What can I do to speed things to a reasonable speed ? >=20 > Thank you, > Eitan. >=20 > _______________________________________________ > Ntop-dev mailing list > [email protected] <mailto:[email protected]> > http://listgateway.unipi.it/mailman/listinfo/ntop-dev = <http://listgateway.unipi.it/mailman/listinfo/ntop-dev> --Apple-Mail=_121E23D1-A35A-4925-99B0-E841B23EC2D9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" class=3D"">Hi = Eitan<div class=3D"">did you try setting the pfring_send flush_packet = parameter to 1?</div><div class=3D""><br class=3D""></div><div = class=3D"">int pfring_send(pfring *ring, char *pkt, u_int = pkt_len, u_int8_t <b class=3D"">flush_packet</b>);<br = class=3D""><div><br class=3D""></div><div>Alfredo</div><div><br = class=3D""><blockquote type=3D"cite" class=3D""><div class=3D"">On 15 = Aug 2019, at 08:42, Eitan Michaelson <<a href=3D"mailto:[email protected]" = class=3D"">[email protected]</a>> wrote:</div><br = class=3D"Apple-interchange-newline"><div class=3D""><div = style=3D"margin-bottom: 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D"">Hello,</div><div style=3D"margin-bottom: 0cm; margin-top: = 0pt; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); = text-decoration: none;" class=3D""><br class=3D""></div><div = style=3D"margin-bottom: 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D"">Just completed a simple test and I'm not sure I'm getting the = expected results..</div><div style=3D"margin-bottom: 0cm; margin-top: = 0pt; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); = text-decoration: none;" class=3D"">I'm unis pfring_recv() to collects = packets and then doing immediately pfring_send() to send</div><div = style=3D"margin-bottom: 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D"">them back (on a different ring/ interface).</div><div = style=3D"margin-bottom: 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D""><br class=3D""></div><div style=3D"margin-bottom: 0cm; = margin-top: 0pt; caret-color: rgb(0, 0, 0); font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant-caps: normal; = font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: = rgb(255, 255, 255); text-decoration: none;" class=3D"">Measuring this = with an external sniffer shows around 1 second delay between</div><div = style=3D"margin-bottom: 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D"">the time that the packet was received and sent. This is the = only process running on the PC (Core i7)</div><div style=3D"margin-bottom:= 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: = rgb(255, 255, 255); text-decoration: none;" class=3D""><br = class=3D""></div><div style=3D"margin-bottom: 0cm; margin-top: 0pt; = caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); = text-decoration: none;" class=3D"">1. Does this makes any = scene?</div><div style=3D"margin-bottom: 0cm; margin-top: 0pt; = caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); = text-decoration: none;" class=3D"">2. What can I do to speed things to a = reasonable speed ?</div><div style=3D"margin-bottom: 0cm; margin-top: = 0pt; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); = text-decoration: none;" class=3D""><br class=3D""></div><div = style=3D"margin-bottom: 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D"">Thank you,</div><div style=3D"margin-bottom: 0cm; margin-top: = 0pt; caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; = font-style: normal; font-variant-caps: normal; font-weight: normal; = letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); = text-decoration: none;" class=3D"">Eitan.</div><div = style=3D"margin-bottom: 0cm; margin-top: 0pt; caret-color: rgb(0, 0, 0); = font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D""><br class=3D""></div><span style=3D"caret-color: rgb(0, 0, = 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none; float: = none; display: inline !important;" = class=3D"">_______________________________________________</span><br = style=3D"caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: = 12px; font-style: normal; font-variant-caps: normal; font-weight: = normal; letter-spacing: normal; text-align: start; text-indent: 0px; = text-transform: none; white-space: normal; word-spacing: 0px; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); = text-decoration: none;" class=3D""><span style=3D"caret-color: rgb(0, 0, = 0); font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none; float: = none; display: inline !important;" class=3D"">Ntop-dev mailing = list</span><br style=3D"caret-color: rgb(0, 0, 0); font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; text-align: start; = text-indent: 0px; text-transform: none; white-space: normal; = word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: = rgb(255, 255, 255); text-decoration: none;" class=3D""><a = href=3D"mailto:[email protected]" style=3D"font-family: = Helvetica; font-size: 12px; font-style: normal; font-variant-caps: = normal; font-weight: normal; letter-spacing: normal; orphans: auto; = text-align: start; text-indent: 0px; text-transform: none; white-space: = normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; = -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);" = class=3D"">[email protected]</a><br style=3D"caret-color: = rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: = normal; font-variant-caps: normal; font-weight: normal; letter-spacing: = normal; text-align: start; text-indent: 0px; text-transform: none; = white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255); text-decoration: none;" = class=3D""><a = href=3D"http://listgateway.unipi.it/mailman/listinfo/ntop-dev" = style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; = font-variant-caps: normal; font-weight: normal; letter-spacing: normal; = orphans: auto; text-align: start; text-indent: 0px; text-transform: = none; white-space: normal; widows: auto; word-spacing: 0px; = -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; = background-color: rgb(255, 255, 255);" = class=3D"">http://listgateway.unipi.it/mailman/listinfo/ntop-dev</a></div>= </blockquote></div><br class=3D""></div></body></html>= --Apple-Mail=_121E23D1-A35A-4925-99B0-E841B23EC2D9-- --===============4250353899640552679== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev --===============4250353899640552679==--