All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Rik van Riel <riel@redhat.com>, Andrea Arcangeli <andrea@suse.de>
Cc: Mel Gorman <mel@csn.ul.ie>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: What to expect with the 2.6 VM
Date: Wed, 02 Jul 2003 13:05:01 -0700	[thread overview]
Message-ID: <542640000.1057176301@flay> (raw)
In-Reply-To: <Pine.LNX.4.44.0307021401570.31191-100000@chimarrao.boston.redhat.com>

>> So ether we declare 32bit archs obsolete in production with 2.6, or we
>> drop rmap behind remap_file_pages.
> 
>> Something has to change since IMHO in the current 2.5.73 remap_file_pages
>> is nearly useless.
> 
> Agreed.  What we did for a certain unspecified kernel tree
> at Red Hat was the following:
> 
> 1) limit sys_remap_file_pages functionality to shared memory
>    segments on ramfs (unswappable) and tmpfs (mostly unswappable;))
> 
> 2) have the VMAs with remapped pages in them marked VM_LOCKED
> 
> 3) do not set up pte chains for the pages that get mapped with
>    install_page
> 
> 4) remove said pages from the LRU list, in the ramfs case, they're
>    unswappable anyway so we shouldn't have the VM scan them
> 
> The only known user of sys_remap_file_pages was more than happy
> to have the functionality limited to just what they actually need, 
> in order to get simpler code with less overhead.
> 
> Lets face it, nobody is going to use sys_remap_file_pages for
> anything but a database shared memory segment anyway. You don't
> need to care about truncate or the other corner cases.

Well if RH have done this internally, and they invented the thing,
then I see no reason not do that in 2.5 ... 

>> Maybe I'm just taking this out of context, and it's twisting my brain,
>> but as far as I know, the nonlinear vma's *are* backed by pte_chains.
>
> Rik:
>
> They are, but IMHO they shouldn't be.  The nonlinear vmas are used
> only for database shared memory segments and other "bypass the VM"
> applications, so I don't see any reason why we need to complicate
> things hopelessly in order to deal with corner cases like truncate.

Agreed. Oddly, most of us seem to agree on this ... ;-)

M.


WARNING: multiple messages have this Message-ID (diff)
From: "Martin J. Bligh" <mbligh@aracnet.com>
To: Rik van Riel <riel@redhat.com>, Andrea Arcangeli <andrea@suse.de>
Cc: Mel Gorman <mel@csn.ul.ie>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: What to expect with the 2.6 VM
Date: Wed, 02 Jul 2003 13:05:01 -0700	[thread overview]
Message-ID: <542640000.1057176301@flay> (raw)
In-Reply-To: <Pine.LNX.4.44.0307021401570.31191-100000@chimarrao.boston.redhat.com>

>> So ether we declare 32bit archs obsolete in production with 2.6, or we
>> drop rmap behind remap_file_pages.
> 
>> Something has to change since IMHO in the current 2.5.73 remap_file_pages
>> is nearly useless.
> 
> Agreed.  What we did for a certain unspecified kernel tree
> at Red Hat was the following:
> 
> 1) limit sys_remap_file_pages functionality to shared memory
>    segments on ramfs (unswappable) and tmpfs (mostly unswappable;))
> 
> 2) have the VMAs with remapped pages in them marked VM_LOCKED
> 
> 3) do not set up pte chains for the pages that get mapped with
>    install_page
> 
> 4) remove said pages from the LRU list, in the ramfs case, they're
>    unswappable anyway so we shouldn't have the VM scan them
> 
> The only known user of sys_remap_file_pages was more than happy
> to have the functionality limited to just what they actually need, 
> in order to get simpler code with less overhead.
> 
> Lets face it, nobody is going to use sys_remap_file_pages for
> anything but a database shared memory segment anyway. You don't
> need to care about truncate or the other corner cases.

Well if RH have done this internally, and they invented the thing,
then I see no reason not do that in 2.5 ... 

>> Maybe I'm just taking this out of context, and it's twisting my brain,
>> but as far as I know, the nonlinear vma's *are* backed by pte_chains.
>
> Rik:
>
> They are, but IMHO they shouldn't be.  The nonlinear vmas are used
> only for database shared memory segments and other "bypass the VM"
> applications, so I don't see any reason why we need to complicate
> things hopelessly in order to deal with corner cases like truncate.

Agreed. Oddly, most of us seem to agree on this ... ;-)

M.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

  reply	other threads:[~2003-07-02 20:06 UTC|newest]

Thread overview: 151+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-01  1:39 What to expect with the 2.6 VM Mel Gorman
2003-07-01  1:39 ` Mel Gorman
2003-06-30 17:43 ` Daniel Phillips
2003-06-30 17:43   ` Daniel Phillips
2003-07-01 20:10   ` Martin J. Bligh
2003-07-01 20:10     ` Martin J. Bligh
2003-07-01 21:41   ` Mel Gorman
2003-07-01 21:41     ` Mel Gorman
2003-07-01 21:51     ` Davide Libenzi
2003-07-01 21:51       ` Davide Libenzi
2003-07-01 21:58     ` Martin J. Bligh
2003-07-01 21:58       ` Martin J. Bligh
2003-07-02  9:01       ` Mel Gorman
2003-07-02  9:01         ` Mel Gorman
2003-07-01  2:25 ` Andrea Arcangeli
2003-07-01  2:25   ` Andrea Arcangeli
2003-07-01  3:02   ` Andrew Morton
2003-07-01  3:02     ` Andrew Morton
2003-07-01  3:22     ` Andrea Arcangeli
2003-07-01  3:22       ` Andrea Arcangeli
2003-07-01  3:25       ` Andrea Arcangeli
2003-07-01  3:25         ` Andrea Arcangeli
2003-07-01  3:29       ` Rik van Riel
2003-07-01  3:29         ` Rik van Riel
2003-07-01  4:04         ` Andrea Arcangeli
2003-07-01  4:04           ` Andrea Arcangeli
2003-07-01 11:01     ` Hugh Dickins
2003-07-01 11:01       ` Hugh Dickins
2003-07-01  3:25   ` William Lee Irwin III
2003-07-01  3:25     ` William Lee Irwin III
2003-07-01  4:39     ` Andrea Arcangeli
2003-07-01  4:39       ` Andrea Arcangeli
2003-07-01  6:33       ` William Lee Irwin III
2003-07-01  6:33         ` William Lee Irwin III
2003-07-01  7:49         ` Andrea Arcangeli
2003-07-01  7:49           ` Andrea Arcangeli
2003-07-01  8:59           ` William Lee Irwin III
2003-07-01  8:59             ` William Lee Irwin III
2003-07-01  9:27             ` Andrea Arcangeli
2003-07-01  9:27               ` Andrea Arcangeli
2003-07-01 12:09               ` severe problem of linux 2.4.21 usb tu guangxiu
2003-07-01 14:24             ` What to expect with the 2.6 VM Martin J. Bligh
2003-07-01 14:24               ` Martin J. Bligh
2003-07-01 16:22               ` William Lee Irwin III
2003-07-01 16:22                 ` William Lee Irwin III
2003-07-01 17:54                 ` Martin J. Bligh
2003-07-01 17:54                   ` Martin J. Bligh
2003-07-02  3:04                   ` Andrea Arcangeli
2003-07-02  3:04                     ` Andrea Arcangeli
2003-07-01 14:42           ` Martin J. Bligh
2003-07-01 21:45     ` Mel Gorman
2003-07-01 21:45       ` Mel Gorman
2003-07-01 22:06       ` Martin J. Bligh
2003-07-01 22:06         ` Martin J. Bligh
2003-07-01 21:46   ` Mel Gorman
2003-07-01 21:46     ` Mel Gorman
2003-07-02  3:08     ` Andrea Arcangeli
2003-07-02  3:08       ` Andrea Arcangeli
2003-07-02 15:57   ` Mel Gorman
2003-07-02 15:57     ` Mel Gorman
2003-07-02 17:11     ` Andrea Arcangeli
2003-07-02 17:11       ` Andrea Arcangeli
2003-07-02 17:10       ` Martin J. Bligh
2003-07-02 17:10         ` Martin J. Bligh
2003-07-02 17:47         ` Andrea Arcangeli
2003-07-02 17:47           ` Andrea Arcangeli
2003-07-02 17:52           ` Martin J. Bligh
2003-07-02 17:52             ` Martin J. Bligh
2003-07-02 18:13             ` Andrea Arcangeli
2003-07-02 18:13               ` Andrea Arcangeli
2003-07-02 18:05           ` Rik van Riel
2003-07-02 18:05             ` Rik van Riel
2003-07-02 20:05             ` Martin J. Bligh [this message]
2003-07-02 20:05               ` Martin J. Bligh
2003-07-02 21:40           ` William Lee Irwin III
2003-07-02 21:40             ` William Lee Irwin III
2003-07-02 21:48             ` Martin J. Bligh
2003-07-02 21:48               ` Martin J. Bligh
2003-07-02 22:14               ` William Lee Irwin III
2003-07-02 22:14                 ` William Lee Irwin III
2003-07-02 22:02             ` Andrea Arcangeli
2003-07-02 22:02               ` Andrea Arcangeli
2003-07-02 22:15               ` William Lee Irwin III
2003-07-02 22:15                 ` William Lee Irwin III
2003-07-02 22:26                 ` Andrea Arcangeli
2003-07-02 22:26                   ` Andrea Arcangeli
2003-07-02 23:11                   ` William Lee Irwin III
2003-07-02 23:11                     ` William Lee Irwin III
2003-07-02 23:30                     ` Andrea Arcangeli
2003-07-02 23:30                       ` Andrea Arcangeli
2003-07-02 23:55                       ` William Lee Irwin III
2003-07-02 23:55                         ` William Lee Irwin III
2003-07-03 11:31                         ` Andrea Arcangeli
2003-07-03 11:31                           ` Andrea Arcangeli
2003-07-03 11:46                           ` William Lee Irwin III
2003-07-03 11:46                             ` William Lee Irwin III
2003-07-03 12:58                             ` Andrea Arcangeli
2003-07-03 12:58                               ` Andrea Arcangeli
2003-07-03 13:06                               ` Rik van Riel
2003-07-03 13:06                                 ` Rik van Riel
2003-07-03 13:48                                 ` Andrea Arcangeli
2003-07-03 13:48                                   ` Andrea Arcangeli
2003-07-03 18:53                                 ` William Lee Irwin III
2003-07-03 18:53                                   ` William Lee Irwin III
2003-07-03 19:27                                   ` Andrea Arcangeli
2003-07-03 19:27                                     ` Andrea Arcangeli
2003-07-03 19:32                                     ` Rik van Riel
2003-07-03 19:32                                       ` Rik van Riel
2003-07-03 20:16                                     ` William Lee Irwin III
2003-07-03 20:16                                       ` William Lee Irwin III
2003-07-04  0:40                                       ` Andrea Arcangeli
2003-07-04  0:40                                         ` Andrea Arcangeli
2003-07-04  1:46                                         ` William Lee Irwin III
2003-07-04  1:46                                           ` William Lee Irwin III
2003-07-04  2:34                                           ` Andrea Arcangeli
2003-07-04  2:34                                             ` Andrea Arcangeli
2003-07-04  4:10                                             ` William Lee Irwin III
2003-07-04  4:10                                               ` William Lee Irwin III
2003-07-04  5:54                                               ` Andrea Arcangeli
2003-07-04  5:54                                                 ` Andrea Arcangeli
2003-07-04  8:15                                                 ` William Lee Irwin III
2003-07-04  8:15                                                   ` William Lee Irwin III
2003-07-04 23:44                                                   ` Andrea Arcangeli
2003-07-04 23:44                                                     ` Andrea Arcangeli
2003-07-05  0:05                                                     ` William Lee Irwin III
2003-07-05  0:05                                                       ` William Lee Irwin III
2003-07-05  0:08                                                       ` Andrea Arcangeli
2003-07-05  0:08                                                         ` Andrea Arcangeli
2003-07-03 18:48                               ` Jamie Lokier
2003-07-03 18:48                                 ` Jamie Lokier
2003-07-03 18:54                                 ` William Lee Irwin III
2003-07-03 18:54                                   ` William Lee Irwin III
2003-07-03 19:33                                   ` Andrea Arcangeli
2003-07-03 19:33                                     ` Andrea Arcangeli
2003-07-03 22:21                                     ` William Lee Irwin III
2003-07-03 22:21                                       ` William Lee Irwin III
2003-07-04  0:46                                       ` Andrea Arcangeli
2003-07-04  0:46                                         ` Andrea Arcangeli
2003-07-04  1:33                                         ` Jamie Lokier
2003-07-04  1:33                                           ` Jamie Lokier
2003-07-04  1:36                                         ` William Lee Irwin III
2003-07-04  1:36                                           ` William Lee Irwin III
2003-07-04  6:54                                 ` Garbage collectors and VM (was Re: What to expect with the 2.6 VM) Zack Weinberg
2003-07-04 12:07                                   ` Jamie Lokier
2003-07-04 16:13                                     ` Garbage collectors and VM Zack Weinberg
2003-07-03 19:06                           ` What to expect with the 2.6 VM Andrew Morton
2003-07-03 19:06                             ` Andrew Morton
2003-07-03 19:34                             ` Andrea Arcangeli
2003-07-03 19:34                               ` Andrea Arcangeli
2003-07-02 18:07         ` Rik van Riel
2003-07-02 18:07           ` Rik van Riel

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=542640000.1057176301@flay \
    --to=mbligh@aracnet.com \
    --cc=andrea@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=mel@csn.ul.ie \
    --cc=riel@redhat.com \
    /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.