Re: [PATCH] - FIX - UCP/EMI Throttling MT v4.0

Andreas Fink <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
On 23.03.2007, at 17:37, Vincent CHAVANIS wrote:

> Hi all
>
> For those who are using my throttling EMI patch posted a few month  
> ago on this ML
> Here is an rare issue that can make the sending thread waiting for  
> lifetime.
>
> The issue is reproductible when no MT is sent for a while so  
> 'last_mt_microtime' is not initialized.
> We fix it at connect (UCP 60), we will now initialize this variable  
> to the current microtime.
>
> 2007-03-23 11:05:30.450 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Throughput detected, we need to sleep <1.000000>sec
> 2007-03-23 11:05:31.450 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Sleeping Done.
> 2007-03-23 11:05:31.450 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> last_mt_microtime:<3689911777816892928.000000>  
> now:<1174644331.450592> delay:<1.000000>
> 2007-03-23 11:05:31.450 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Traffic Policy exceeded, we need to sleep  
> <3689911776642248704.000000>sec
> 2007-03-23 12:30:41.659 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Traffic Policy exceeded, we need to sleep  
> <3689911776642243584.000000>sec
> 2007-03-23 12:30:52.730 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Traffic Policy exceeded, we need to sleep  
> <3689911776642243584.000000>sec
> 2007-03-23 12:30:55.739 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Traffic Policy exceeded, we need to sleep  
> <3689911776642243584.000000>sec
> 2007-03-23 12:30:57.244 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Traffic Policy exceeded, we need to sleep  
> <3689911776642243584.000000>sec
> 2007-03-23 12:30:59.261 [12348] [53] DEBUG: EMI2[SMSC_8]: QOS:  
> Traffic Policy exceeded, we need to sleep  
> <3689911776642243584.000000>sec
>
> Vincent.
>
> --
> Telemaque - 06560 SOPHIA-ANTIPOLIS - (FR)
> Service Technique/Reseau - NOC
> Developpement SMS/MMS/Kiosques
> http://www.telemaque.fr/
> [email protected]
> <emi_patch_ack_v4.txt>


Does it actually work?
The reason why I ask this is because you simply sleep for a certain  
delay when the throughput has been reached.
the delay however might fall short if someone wakes this thread in  
the meantime. I use that often in my code to trigger another thread  
telling it that there is now something to send. I'm not sure if EMI  
driver does that however.

The effect would be not sleeping that long which is probably just  
increasing the throughput a bit.

Andreas Fink

Fink Consulting GmbH
Global Networks Schweiz AG
BebbiCell AG

---------------------------------------------------------------
Tel: +41-61-6666330 Fax: +41-61-6666331  Mobile: +41-79-2457333
Address: Clarastrasse 3, 4058 Basel, Switzerland
E-Mail:  [email protected]
www.finkconsulting.com www.global-networks.ch www.bebbicell.ch
---------------------------------------------------------------
ICQ: 8239353 MSN: [email protected] AIM: smsrelay Skype: andreasfink
Yahoo: finkconsulting SMS: +41792457333
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.