Luca:

That looks like the solution I sent Mats - except instead of trying to be clever and 
sometimes use myGlobals.actTime, you just brute forced it.  He reported earlier that 
it didn't work.

This may be a symptom of a more serious problem.

>From what I've seen, gcc 3.2 changed the thread model under Linux from 2.9x's 1:1 to 
>M:1 (that is one program thread to one kernel thread vs. multiple program threads to 
>one kernel thread).

This MAY have implications for the shared memory - I've seen documentation that Linux 
does copy on write after fork().  Thus it could be that the two threads' myGlobals are 
actually different memory area.  That would explain a couple of the "I'm not seeing 
any data" type problems... what do you think/know?

-----Burton



---------- Original Message ----------------------------------
From: Luca Deri <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
Date:  Tue, 10 Dec 2002 09:02:13 +0100

>Mats Akerberg wrote:
>
>>Hi!
>>
>>On Mon, 9 Dec 2002, Burton M. Strauss III wrote:
>>  
>>
>>>Try this patch - I'm running it at home... let me know.
>>>
>>>(On small networks - those with little traffic, such as a home network -
>>>there isn't enough packets to keep myGlobals.actTime current)
>>>
>>>    
>>>
>>
>>Nop didn't help!
>>I changed to use ntop-02-12-10.tgz (Which I patched)
>>
>>But it still stops collection after a while and all I se in the log
>>is a bundle of theese.
>>
>>
>>10/Dec/2002 08:41:23 RRD: rrd_update(/usr/local/var/ntop/rrd/interfaces/eth1/eth
>>ernetPkts.rrd) error: illegal attempt to update using time 1039505775 when last
>>update time is 1039505775 (minimum one second step)
>>10/Dec/2002 08:41:23 RRD call stack:
>>10/Dec/2002 08:41:23 argv[0]: rrd_update
>>10/Dec/2002 08:41:23 argv[1]: /usr/local/var/ntop/rrd/interfaces/eth1/ethernetPk
>>ts.rrd
>>10/Dec/2002 08:41:23 argv[2]: 1039505775:185510
>>10/Dec/2002 08:41:23 RRD: rrd_update(/usr/local/var/ntop/rrd/interfaces/eth1/bro
>>adcastPkts.rrd) error: illegal attempt to update using time 1039505775 when last
>> update time is 1039505775 (minimum one second step)
>>10/Dec/2002 08:41:23 RRD call stack:
>>10/Dec/2002 08:41:23 argv[0]: rrd_update
>>10/Dec/2002 08:41:23 argv[1]: /usr/local/var/ntop/rrd/interfaces/eth1/broadcastP
>>kts.rrd
>>10/Dec/2002 08:41:23 argv[2]: 1039505775:882
>>
>>             Mats Akerberg ([EMAIL PROTECTED])
>>               http://www.decus.se/~mats
>> PGP fingerprint 39 74 49 B0 40 0F 16 CA  C1 EE AA 08 55 76 CE 6F
>>
>>
>>_______________________________________________
>>Ntop-dev mailing list
>>[EMAIL PROTECTED]
>>http://listgateway.unipi.it/mailman/listinfo/ntop-dev
>>  
>>
>Mats,
>I ahve just committed a fix for your problem. Can you please resync and 
>let me know whether is works?
>
>Thanks, Luca
>
>
>-- 
>Luca Deri <[EMAIL PROTECTED]>      http://luca.ntop.org/
>Hacker: someone who loves to program and enjoys being
>clever about it - Richard Stallman
>
>
>_______________________________________________
>Ntop-dev mailing list
>[EMAIL PROTECTED]
>http://listgateway.unipi.it/mailman/listinfo/ntop-dev
>


____________________________________________________________
Free 20MB Web Site Hosting and Personalized E-mail Service!
Get It Now At Doteasy.com http://www.doteasy.com/et/
_______________________________________________
Ntop-dev mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev

Reply via email to