Argus 3.0.6 and dnaclusters

Chris Wakelin c.d.wakelin at reading.ac.uk
Thu Dec 13 19:01:33 EST 2012


That doesn't seem to make any difference, even with no traffic, or if I
make it 5 millseconds. Perhaps it doesn't get to that point in the code?

Best Wishes,
Chris

On 13/12/12 23:51, Carter Bullard wrote:
> Hmmmm,
> Well on line 3907 in ArgusSource.c, we come out of a series
> of select() calls, and various workarounds, for various bugs, 
> and if we don't have any packets, we set the global time and
> continue.  We could put a nanosleep() there, to give up the
> run queue for a little while.  I'd put it right before the getimeofday()
> call on line 3908.  Maybe sleep for 50 uSeconds?
> 
> Try this patch:
> 
> ==== //depot/argus/argus/argus/ArgusSource.c#104 - /Volumes/Users/carter/argus/argus/argus/ArgusSource.c ====
> 3907a3908,3910
>>                                  struct timespec tsbuf = {0, 50000}, *ts = &tsbuf;
>>                                  nanosleep(ts, NULL);
>>
> 
> To see if that doesn't do something?
> 
> Carter 

-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094



More information about the argus mailing list