Re: [PATCH] Revert 9fc2105aeaaf56b0cf75296a84702d0f9e64437b to fix pyaudio (and probably more)

From: Nicolas Pitre
Date: Wed Jan 07 2015 - 17:42:53 EST


On Wed, 7 Jan 2015, Linus Torvalds wrote:

> On Jan 7, 2015 1:29 PM, "Nicolas Pitre" <nicolas.pitre@xxxxxxxxxx> wrote:
> > >
> > > Lying about it is *not* fine, for all the reasons I've already wasted
> too
> > > much time trying to explain.
> >
> > Lying to whom? And for what purpose?
>
> You guys are the ones suggesting various "scaling" things to make the delay
> loop look different from what it is. That's just dishonesty. It actively
> hides the resolution of the delay time source, and it is a bad bad idea.
>
> Just educate people, don't lie to them. Tell them what bogomips means,
> instead of trying to make shit up.

What does it mean? That's the actual question. And I'm talking about
the user visible value here.

Given the "kernel does not break user space" mantra, and given that user
space has assumptions around the exported bogomips value that goes a
long way back, I really question what the bogomips meaning is from a
user space point of view.

According to the analysis Will Deacon performed on the user code that
broke with the bogomips gone, whose breakage started this very thread,
this user space instance appears to equate bogomips with CPU MHz.

You said yourself in this thread that one of the bogomips meanings is a
value proportional to the number of loops the CPU can perform which is
also in the same spirit as CPU MHz.

So far so good.

Since when does bogomips mean kernel low-level timer resolution? As
Catalin pointed out, the bogomips value went from 800 down to 6 when
timer based udelay was introduced on ARM for the same piece of hardware.
Is that really what user space is expecting here?

That's where I don't understand anymore.

If the answer is: "user space should never care because bogomips is
totally bogus" as some people are claiming then why all the fuss about
"lying"?

I don't want stupid games here either, I want a sensible answer from a
user space point of view because that's user space we don't want to lie
to, right?


Nicolas
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/