Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to handle a massive amount of UDP packets?

Received: by 10.205.131.16 with SMTP id ho16mr160323bkc.3.1335126375071;
        Sun, 22 Apr 2012 13:26:15 -0700 (PDT)
X-BeenThere: erlang-programming@googlegroups.com
Received: by 10.204.10.85 with SMTP id o21ls2357777bko.3.gmail; Sun, 22 Apr
 2012 13:26:14 -0700 (PDT)
Received: by 10.205.123.6 with SMTP id gi6mr1410749bkc.5.1335126374160;
        Sun, 22 Apr 2012 13:26:14 -0700 (PDT)
Received: by 10.205.123.6 with SMTP id gi6mr1410748bkc.5.1335126374122;
        Sun, 22 Apr 2012 13:26:14 -0700 (PDT)
Return-Path: <erlang-questions-boun...@erlang.org>
Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104])
        by gmr-mx.google.com with ESMTP id k15si14916824bks.0.2012.04.22.13.26.13;
        Sun, 22 Apr 2012 13:26:14 -0700 (PDT)
Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org
Received: from hades.cslab.ericsson.net (hades [192.121.151.104])
	by hades.cslab.ericsson.net (Postfix) with ESMTP id 3BC385C0B1;
	Sun, 22 Apr 2012 22:26:08 +0200 (CEST)
X-Original-To: erlang-questi...@erlang.org
Delivered-To: erlang-questi...@erlang.org
Received: from segfault.kiev.ua (segfault.kiev.ua [193.193.193.4])
 by hades.cslab.ericsson.net (Postfix) with ESMTP id 103F05C000
 for <erlang-questi...@erlang.org>; Sun, 22 Apr 2012 22:26:06 +0200 (CEST)
Received: from segfault.kiev.ua (localhost.segfault.kiev.ua [127.0.0.1])
 by segfault.kiev.ua (8.14.4/8.14.4/8.Who.Cares) with ESMTP id q3MKQ5dE084861
 for <erlang-questi...@erlang.org>; Sun, 22 Apr 2012 23:26:05 +0300 (EEST)
 (envelope-from ne...@segfault.kiev.ua)
Received: (from netch@localhost)
 by segfault.kiev.ua (8.14.4/8.14.4/Submit) id q3MKQ0eP084858
 for erlang-questi...@erlang.org; Sun, 22 Apr 2012 23:26:00 +0300 (EEST)
 (envelope-from netch)
Date: Sun, 22 Apr 2012 23:26:00 +0300
From: Valentin Nechayev <ne...@segfault.kiev.ua>
To: erlang-questi...@erlang.org
Message-ID: <20120422202600.GA84...@netch.kiev.ua>
References: <4F8B0E95.4060...@berlin.ccc.de>
 <CAG1AG0EiCnndf+-UwdvSE7eDh9OtAdd3BBmX9MSSqE6iq-E...@mail.gmail.com>
 <4F8BE6FB.3020...@berlin.ccc.de>
 <CAG1AG0GHpFRHS2SG-ab+jEYeq=mFSiERA_UmLgfa+7OkvNH...@mail.gmail.com>
 <4F8D93A9.3060...@berlin.ccc.de>
 <CAJ9BULv0bHH48fdH5pa9EveM=Q72O8M7HctMhdTjO5p9w0Y...@mail.gmail.com>
 <CAOzgw902RuZLjV=HWcZjJ13Fa3ZPFUf_JQRKpEF399VK7=+...@mail.gmail.com>
 <CAMxVRxDaNDrmwMeDcba6fnb=aYp6wxQAthy154Bkxabg8+F...@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CAMxVRxDaNDrmwMeDcba6fnb=aYp6wxQAthy154Bkxabg8+F...@mail.gmail.com>
X-42: On
Subject: Re: [erlang-questions] How to handle a massive amount of UDP
	packets?
X-BeenThere: erlang-questi...@erlang.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: General Erlang/OTP discussions <erlang-questions.erlang.org>
List-Unsubscribe: <http://erlang.org/mailman/options/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=unsubscribe>
List-Archive: <http://erlang.org/pipermail/erlang-questions>
List-Post: <mailto:erlang-questi...@erlang.org>
List-Help: <mailto:erlang-questions-requ...@erlang.org?subject=help>
List-Subscribe: <http://erlang.org/mailman/listinfo/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: erlang-questions-boun...@erlang.org
Sender: erlang-questions-boun...@erlang.org

Using {active,once} on socket type other than stream one principally can't
give performance compared to uncontrolled stream, due to asynchronous manner
of sending messages to owner's mailbox and its processing.
OTOH, {active,once} is shorthand for "send me one next portion" and this "one"
can be extended to more numbers; e.g. {active,100} for "send me 100 next
packets and then stay and wait for next permit". This combines advantages
of both modes ('once' and 'true').


-netch-
_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions