[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20071117.160316.162501140.davem@davemloft.net>
Date: Sat, 17 Nov 2007 16:03:16 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: andi@...stfloor.org
Cc: arjan@...radead.org, dada1@...mosbay.com,
linux-kernel@...r.kernel.org, netdev@...t.kernel.org
Subject: Re: [NET]: rt_check_expire() can take a long time, add a
cond_resched()
From: Andi Kleen <andi@...stfloor.org>
Date: Sat, 17 Nov 2007 13:56:08 +0100
> Arjan van de Ven <arjan@...radead.org> writes:
> >> >
> >> > Its not that cheap. The ChangeLog included my own numbers, on a
> >> > Pentium M machine. (i686, 1.6 GHz, 1.5 GB ram)
> >> >
> >> > Without "if (need_resched())" (so calling need_resched() X.XXX.XXX
> >> > times), each run takes 88ms
> >> >
> >> > With the extra check (and *much* less function calls), each run
> >> > takes 25ms
>
> ms?!? The numbers sound wrong. Wrong unit?
Read what Eric is saying. He is saying "any entire run" purging
the routing cache takes that long, not just one call.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists