Re: [PATCH v3 0/7] x86: Rewrite switch_to()

From: Herbert Xu
Date: Wed Aug 17 2016 - 01:17:08 EST


Andy Lutomirski <luto@xxxxxxxxxxxxxx> wrote:
>
> I will be quite surprised if you can measure any effect at all. I've
> never seen context switches take fewer than ~2k cycles, and on my
> laptop, they take 8k-9k cycles. The scheduler is really, really slow.

Indeed, I think I still have a bugzilla entry somewhere regarding
the huge performance regression when we first switched over to the
current scheduler.

Over the years people have been trying to hack around it, e.g.,
network driver polling, low latency socket, anything to avoid
going into the scheduler. We really should fix it properly some
day.

Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt