Re: Packet loss every 30.999 seconds



On Fri, Dec 21, 2007 at 04:24:32PM -0800, Alfred Perlstein wrote:
* David G Lawrence <dg@xxxxxxxxxxxxxx> [071221 15:42] wrote:
Unfortunately, the version of the patch that I sent out isn't going to
help your problem. It needs to yield at the top of the loop, but vp isn't
necessarily valid after the wakeup from the msleep. That's a problem that
I'm having trouble figuring out a solution to - the solutions that come
to mind will all significantly increase the overhead of the loop.

I apologize for not reading the code as I am swamped, but a technique
that Matt Dillon used for bufs might work here.

Can you use a placeholder vnode as a place to restart the scan?
you might have to mark it special so that other threads/things
(getnewvnode()?) don't molest it, but it can provide for a convenient
restart point.

That was one of the solutions that I considered and rejected since it
would significantly increase the overhead of the loop.
The solution provided by Kostik Belousov that uses uio_yield looks like
a find solution. I intend to try it out on some servers RSN.

Out of curiosity's sake, why would it make the loop slower? one
would only add the placeholder when yielding, not for every iteration.

Marker is already reinserted into the list on every iteration.

Attachment: pgpe9g0jfH3xY.pgp
Description: PGP signature



Relevant Pages

  • Summary: System crashing in loop
    ... OBP firmware version. ... but will crash and end up in a state ... The only way out of this loop, is to power off the system ... and restart. ...
    (SunManagers)
  • Re: Do Until... Restart
    ... An IF statement in the loop will do it, with no need to restart ... where I've said Reset B1:B500. ... The macro must run until there are exactly 100 instances of 15 in B1:B500 ...
    (microsoft.public.excel.programming)
  • Re: Transparent wrappers/weak types?
    ... >> If I wrap an object in a structure S can code continue to run ... >> if the object causing the type error is of type S and if so returns ... to "fix" the type error you need a way to restart the LOOP ...
    (comp.lang.lisp)
  • Restart and Startup Fail Loop
    ... Last Known Good Configuration: Loop continues ... Disable auto restart on Failure: Error Message as follows- ... Re-installing application may fix this problem. ...
    (microsoft.public.windowsxp.general)
  • Re: Restarting a service - help a noob day!
    ... >> Trying to write a vbs to add a printer then stop and restart the spool ... Is there a better way Do loop until maybe. ... >> Pete. ... > If nLoopCount> nLoopMax Then ...
    (microsoft.public.scripting.vbscript)