* Non-linear Remap Vs. VM Cleanup: Performance Hit
@ 2015-02-24 22:36 D. Cooper Stevenson
2015-02-27 15:39 ` Kirill A. Shutemov
0 siblings, 1 reply; 2+ messages in thread
From: D. Cooper Stevenson @ 2015-02-24 22:36 UTC (permalink / raw)
To: linux-kernel
Hello All,
I read the Linus's release for RC1. One of his favorite features in the
release are, "actually some vm cleanups, where this release is getting
rid of the largely unused non-linear remapping code (replaced with just
emulating it with lots of smaller mappings) and unifies the NUMA and
PROTNONE handling for page tables."
I understand that non-linear page remapping is unused (and, presumably,
reduces the code base size) but according to the remap_file_pages man
page (http://man7.org/linux/man-pages/man2/remap_file_pages.2.html)
non-linear system will be, "eventually be replaced by a slower in-kernel
emulation."
Was this a change of necessity? What gives?
Also, would you please Cc: me on your replies as I am not a member of
the mailing list?
Best Regards,
-Cooper
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Non-linear Remap Vs. VM Cleanup: Performance Hit
2015-02-24 22:36 Non-linear Remap Vs. VM Cleanup: Performance Hit D. Cooper Stevenson
@ 2015-02-27 15:39 ` Kirill A. Shutemov
0 siblings, 0 replies; 2+ messages in thread
From: Kirill A. Shutemov @ 2015-02-27 15:39 UTC (permalink / raw)
To: D. Cooper Stevenson; +Cc: linux-kernel
On Tue, Feb 24, 2015 at 02:36:25PM -0800, D. Cooper Stevenson wrote:
> Hello All,
>
> I read the Linus's release for RC1. One of his favorite features in the
> release are, "actually some vm cleanups, where this release is getting rid
> of the largely unused non-linear remapping code (replaced with just
> emulating it with lots of smaller mappings) and unifies the NUMA and
> PROTNONE handling for page tables."
>
> I understand that non-linear page remapping is unused (and, presumably,
> reduces the code base size) but according to the remap_file_pages man page
> (http://man7.org/linux/man-pages/man2/remap_file_pages.2.html) non-linear
> system will be, "eventually be replaced by a slower in-kernel emulation."
>
> Was this a change of necessity? What gives?
As with all cleanups it's not necessary, but it makes life easier.
It removed >1.5k lines of non-trivial code from critical path of the
kernel. It's rarely used and tend to be error-prone. And developers need
to be aware about exists of non-linear mapping while implementing new
features.
For instance, faultaround feature I've implemented was broken for
non-linear mapping for some time and it took time to track it down.
--
Kirill A. Shutemov
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-27 15:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 22:36 Non-linear Remap Vs. VM Cleanup: Performance Hit D. Cooper Stevenson
2015-02-27 15:39 ` Kirill A. Shutemov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox