why does "ip route flush cache" take two seconds to run?

From: Christopher Friesen (cfriesen@nortelnetworks.com)
Date: Tue Oct 17 2000 - 10:25:02 EST


I'm trying to swap an IP alias from one network card to another, and so
I'm flushing the route cache. To measure how long this takes, I have
"route -C" running in one window with a timestamp (seconds and
microseconds) after each iteration.

I then issue the "ip route flush cache" command with a timestamp after
it in another window. This returns right away.

However, from the time the command is issued until the cache is actually
cleared is two whole seconds. I would have expected it to be
essentially instantaneous.

Does anyone know why this is taking so long and maybe how I could speed
it up?

Thanks,

Chris

-- 
Chris Friesen                    | MailStop: 043/33/F10  
Nortel Networks                  | work: (613) 765-0557
3500 Carling Avenue              | fax:  (613) 765-2986
Nepean, ON K2H 8E9 Canada        | email: cfriesen@nortelnetworks.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Oct 23 2000 - 21:00:11 EST