All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefani Seibold <stefani@seibold.net>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Andy Lutomirski <luto@amacapital.net>,
	"H. Peter Anvin" <hpa@linux.intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	the arch/x86 maintainers <x86@kernel.org>,
	Dave Jones <davej@redhat.com>,
	Martin Runge <Martin.Runge@rohde-schwarz.com>,
	Andreas Brief <Andreas.Brief@rohde-schwarz.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Subject: Re: [PATCH v2] x86: Remove compat vdso support
Date: Wed, 12 Mar 2014 09:30:46 +0100	[thread overview]
Message-ID: <1394613046.995.51.camel@wall-e.seibold.net> (raw)
In-Reply-To: <CA+55aFz+OfvtXLxg4CA4C6GPGh8F_aDuG6nnFFCCBpjTPLP1zA@mail.gmail.com>

Am Dienstag, den 11.03.2014, 10:09 -0700 schrieb Linus Torvalds:
> On Tue, Mar 11, 2014 at 9:50 AM, Andy Lutomirski <luto@amacapital.net> wrote:
> > Looking forward, would it be reasonable to have an extensible set of
> > flags that live in the ELF interpreter's headers somewhere
> 
> No. Not reasonable. The whole "32-bit x86" and "looking forward"
> combination makes absolutely zero sense.
> 
> I can pretty much guarantee that even *phones* will be 64-bit if/when
> x86 ever gets there. They'll need it just for ARM emulation, I bet.
> 
> So 32-bit x86 is dead, dead, dead. There's absolutely no future to it.
> We're not adding new stuff to "future-proof" it.
> 

Quite frankly this sounds like the mad scientist in an old marvell
comic: "dead, dead, dead".

Is it possible to calm down and get a more technical discussion rather
than blaming and treats not to accepting patches?

Can we also stop this hard words like "WTF". I don't like this style and
other developers too, especially women.

32-bit is not dead. I think 98 percent of all computers running linux
are embedded devices and a lot of them are not capable for 64 bit
support. So its your opinion, but there a also developers not sharing
this.

For me i still work with old Celeron Pentium III devices. And the life
time of this device will end in 7 years.

A lot of peoples (also main kernel hackers) ask me to do this patch
because the time functions in 32 bit kernel mode are so slow compared to
a 64 bit linux. And as i can see most of the involved kernel developers
are not opposite against this patch.

The other side is that many embedded developers use hand crafted time
functions using TSC or similar to get a fast time functions, but did not
know the pitfalls (C- and P-States) to handle this in a right way. So a
reliable way is to use the kernel functions, because the kernel knows
the state of the CPU and always returns the correct time. But this will
result in a slow down of the application, which generates latency.

We use this kind of patch for a long time and it decreased the latency
of our applications notable.

The current solution is quite clean, but there was a issue with the size
of the vDSO which not fits into one page by some kernel configurations. 

There is a solution for this to #undef CONFIG_OPTIMIZE_INLINING and
CONFIG_X86_PPRO_FENCE in arch/x86/vdso/vdso32/vclock_gettime.c. 

To prevent issues which future kernel releases, we have now two ideas to
solve this:

One ist Andy's kick ouf of the compat VDSO. For this there is already a
patch there.

And the other one is (thanks to Andys archeology investigations) to
increase the size of the vDSO fixmap space which has according to Andy
no side effect. This can be done in a very clean and easy way. The code
is still there, since the fixmap area is not fix:

Lguest, XEN, OPLC and the reservetop will move the fixmap during boot,
so we can easily get additional space by fixing __FIXADDR_TOP.

I will write a patch for the later one.

- Stefani



  parent reply	other threads:[~2014-03-12  8:31 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-11  1:03 [PATCH v2] x86: Remove compat vdso support Andy Lutomirski
2014-03-11  1:39 ` Linus Torvalds
2014-03-11  2:37   ` Andy Lutomirski
2014-03-11  3:09     ` Linus Torvalds
2014-03-11  4:10       ` Andy Lutomirski
2014-03-11  8:37         ` Ingo Molnar
2014-03-11  9:36         ` Linus Torvalds
2014-03-11 14:53           ` Andy Lutomirski
2014-03-11 15:30             ` Linus Torvalds
2014-03-11 16:14               ` H. Peter Anvin
2014-03-11 16:30                 ` Linus Torvalds
2014-03-11 16:42                   ` Andy Lutomirski
2014-03-11 16:42                   ` H. Peter Anvin
2014-03-11 16:45                     ` Andy Lutomirski
2014-03-11 16:50                       ` Andy Lutomirski
2014-03-11 16:52                         ` H. Peter Anvin
2014-03-11 17:09                         ` Linus Torvalds
2014-03-11 17:14                           ` H. Peter Anvin
2014-03-11 17:16                           ` Andy Lutomirski
2014-03-12  8:30                           ` Stefani Seibold [this message]
2014-03-12 14:41                             ` Linus Torvalds
2014-03-12 15:46                               ` Linus Torvalds
2014-03-12 16:04                                 ` Linus Torvalds
2014-03-12 16:18                                   ` Brian Gerst
2014-03-12 16:18                                 ` Andy Lutomirski
2014-03-12 19:41                                 ` Linus Torvalds
2014-03-12 20:52                                   ` Andy Lutomirski
2014-03-12 21:37                                   ` H. Peter Anvin
2014-03-12 21:45                                     ` Andy Lutomirski
2014-03-12 21:46                                     ` Linus Torvalds
2014-03-12 21:49                                       ` Andy Lutomirski
2014-03-12 23:06                                         ` H. Peter Anvin
2014-03-12 23:43                                           ` Andy Lutomirski
2014-03-12 23:46                                             ` H. Peter Anvin
2014-03-13 16:23                                   ` Thomas Gleixner
2014-03-12 13:55                           ` One Thousand Gnomes
2014-03-13  7:08                           ` George Spelvin
2014-03-11 17:03                       ` H. Peter Anvin
2014-03-11 17:07                       ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1394613046.995.51.camel@wall-e.seibold.net \
    --to=stefani@seibold.net \
    --cc=Andreas.Brief@rohde-schwarz.com \
    --cc=Martin.Runge@rohde-schwarz.com \
    --cc=davej@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=hpa@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luto@amacapital.net \
    --cc=torvalds@linux-foundation.org \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.