All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Phillips <phillips@arcor.de>
To: Andrew Morton <akpm@osdl.org>
Cc: paulmck@us.ibm.com, sct@redhat.com, hch@infradead.org,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [RFC] Distributed mmap API
Date: Wed, 25 Feb 2004 17:46:46 -0500	[thread overview]
Message-ID: <200402251746.46598.phillips@arcor.de> (raw)
In-Reply-To: <20040225141646.28aa0750.akpm@osdl.org>

On Wednesday 25 February 2004 17:16, Andrew Morton wrote:
> > but how can we legitimately get !pfn_valid there?
>
> A mapping of some I/O region?

With MAP_PRIVATE, on a distributed filesystem?  OK...

Can we recognize those I/O vmas and handle them with their own separate loop, 
saving a few cycles for the common case?  Or just:

	if (pte_present(pte)) {
		unsigned long pfn = pte_pfn(pte);
		struct page *page;
		if (unlikely(!pfn_valid(pfn))) {
			ptep_get_and_clear(ptep);
			tlb_remove_tlb_entry(tlb, ptep, address+offset);
			continue;
		}
		page = pfn_to_page(pfn);
		if (unlikely(!all) && is_anon(page))
			continue;
		pte = ptep_get_and_clear(ptep); /* get dirty bit atomically */
		tlb_remove_tlb_entry(tlb, ptep, address+offset);
		if (PageReserved(page))
			continue;
		if (pte_dirty(pte))
			set_page_dirty(page);
		if (page->mapping && pte_young(pte) && !PageSwapCache(page))
			mark_page_accessed(page);
		tlb->freed++;
		page_remove_rmap(page, ptep);
		tlb_remove_page(tlb, page);
	} else {

Regards,

Daniel


WARNING: multiple messages have this Message-ID (diff)
From: Daniel Phillips <phillips@arcor.de>
To: Andrew Morton <akpm@osdl.org>
Cc: paulmck@us.ibm.com, sct@redhat.com, hch@infradead.org,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org
Subject: Re: [RFC] Distributed mmap API
Date: Wed, 25 Feb 2004 17:46:46 -0500	[thread overview]
Message-ID: <200402251746.46598.phillips@arcor.de> (raw)
In-Reply-To: <20040225141646.28aa0750.akpm@osdl.org>

On Wednesday 25 February 2004 17:16, Andrew Morton wrote:
> > but how can we legitimately get !pfn_valid there?
>
> A mapping of some I/O region?

With MAP_PRIVATE, on a distributed filesystem?  OK...

Can we recognize those I/O vmas and handle them with their own separate loop, 
saving a few cycles for the common case?  Or just:

	if (pte_present(pte)) {
		unsigned long pfn = pte_pfn(pte);
		struct page *page;
		if (unlikely(!pfn_valid(pfn))) {
			ptep_get_and_clear(ptep);
			tlb_remove_tlb_entry(tlb, ptep, address+offset);
			continue;
		}
		page = pfn_to_page(pfn);
		if (unlikely(!all) && is_anon(page))
			continue;
		pte = ptep_get_and_clear(ptep); /* get dirty bit atomically */
		tlb_remove_tlb_entry(tlb, ptep, address+offset);
		if (PageReserved(page))
			continue;
		if (pte_dirty(pte))
			set_page_dirty(page);
		if (page->mapping && pte_young(pte) && !PageSwapCache(page))
			mark_page_accessed(page);
		tlb->freed++;
		page_remove_rmap(page, ptep);
		tlb_remove_page(tlb, page);
	} else {

Regards,

Daniel

--
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:[~2004-02-25 22:54 UTC|newest]

Thread overview: 135+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-16 19:09 Non-GPL export of invalidate_mmap_range Paul E. McKenney
2004-02-16 19:09 ` Paul E. McKenney
2004-02-17  2:31 ` Andrew Morton
2004-02-17  2:31   ` Andrew Morton
2004-02-17  7:35 ` Christoph Hellwig
2004-02-17  7:35   ` Christoph Hellwig
2004-02-17 12:40   ` Paul E. McKenney
2004-02-17 12:40     ` Paul E. McKenney
2004-02-18  0:19     ` Andrew Morton
2004-02-18  0:19       ` Andrew Morton
2004-02-18 12:51       ` Arjan van de Ven
2004-02-18 14:00         ` Paul E. McKenney
2004-02-18 14:00           ` Paul E. McKenney
2004-02-18 21:10           ` Christoph Hellwig
2004-02-18 21:10             ` Christoph Hellwig
2004-02-18 15:06             ` Paul E. McKenney
2004-02-18 15:06               ` Paul E. McKenney
2004-02-18 22:21               ` Christoph Hellwig
2004-02-18 22:21                 ` Christoph Hellwig
2004-02-18 22:51                 ` Andrew Morton
2004-02-18 22:51                   ` Andrew Morton
2004-02-18 23:00                   ` Christoph Hellwig
2004-02-18 23:00                     ` Christoph Hellwig
2004-02-18 16:21                     ` Paul E. McKenney
2004-02-18 16:21                       ` Paul E. McKenney
2004-02-18 23:32                     ` Andrew Morton
2004-02-18 23:32                       ` Andrew Morton
2004-02-19 12:32                       ` Christoph Hellwig
2004-02-19 12:32                         ` Christoph Hellwig
2004-02-19 18:56                         ` Andrew Morton
2004-02-19 18:56                           ` Andrew Morton
2004-02-19 19:01                           ` Christoph Hellwig
2004-02-19 19:01                             ` Christoph Hellwig
2004-02-19 13:04                             ` Paul E. McKenney
2004-02-19 13:04                               ` Paul E. McKenney
2004-02-20  3:17                             ` Anton Blanchard
2004-02-20  3:17                               ` Anton Blanchard
2004-02-20 21:46                               ` Valdis.Kletnieks
2004-02-19  0:28                     ` Andrew Morton
2004-02-19  0:28                       ` Andrew Morton
2004-02-18 18:36                       ` Paul E. McKenney
2004-02-18 18:36                         ` Paul E. McKenney
2004-02-19 12:31                       ` Christoph Hellwig
2004-02-19 12:31                         ` Christoph Hellwig
2004-02-19  9:11                         ` Paul E. McKenney
2004-02-19  9:11                           ` Paul E. McKenney
2004-02-19 18:32                           ` Lars Marowsky-Bree
2004-02-19 18:38                             ` Arjan van de Ven
2004-02-19 19:16                             ` viro
2004-02-19 19:16                               ` viro
2004-02-19 16:15                               ` Paul E. McKenney
2004-02-19 16:15                                 ` Paul E. McKenney
2004-02-19 18:59                         ` Tim Bird
2004-02-19 18:59                           ` Tim Bird
2004-02-20  1:27                       ` David Schwartz
2004-02-19  9:11                   ` David Weinehall
2004-02-19  9:11                     ` David Weinehall
2004-02-19  8:58                     ` Paul E. McKenney
2004-02-19  8:58                       ` Paul E. McKenney
2004-03-04  5:51                       ` Mike Fedyk
2004-03-04  5:51                         ` Mike Fedyk
2004-02-19 10:29                   ` Lars Marowsky-Bree
2004-02-19 10:29                     ` Lars Marowsky-Bree
2004-02-19  9:00                     ` Paul E. McKenney
2004-02-19  9:00                       ` Paul E. McKenney
2004-02-19 11:11                     ` Arjan van de Ven
2004-02-19 11:53                       ` Lars Marowsky-Bree
2004-02-19 11:53                         ` Lars Marowsky-Bree
2004-02-18 18:04         ` Tim Bird
2004-02-18 18:04           ` Tim Bird
2004-02-19 20:56       ` Daniel Phillips
2004-02-19 20:56         ` Daniel Phillips
2004-02-19 22:06         ` Stephen C. Tweedie
2004-02-19 22:06           ` Stephen C. Tweedie
2004-02-19 22:31           ` Daniel Phillips
2004-02-19 22:31             ` Daniel Phillips
2004-02-19 16:42             ` Paul E. McKenney
2004-02-19 16:42               ` Paul E. McKenney
2004-02-20  2:06               ` Daniel Phillips
2004-02-20  2:06                 ` Daniel Phillips
2004-02-19 19:47                 ` Paul E. McKenney
2004-02-19 19:47                   ` Paul E. McKenney
2004-02-20  5:07                   ` Daniel Phillips
2004-02-20  5:07                     ` Daniel Phillips
2004-02-20 12:02                     ` Paul E. McKenney
2004-02-20 12:02                       ` Paul E. McKenney
2004-02-20 20:37                       ` Daniel Phillips
2004-02-20 20:37                         ` Daniel Phillips
2004-02-20 14:01                         ` Paul E. McKenney
2004-02-20 14:01                           ` Paul E. McKenney
2004-02-20 23:00                           ` Daniel Phillips
2004-02-20 23:00                             ` Daniel Phillips
2004-02-20 16:17                             ` Paul E. McKenney
2004-02-20 16:17                               ` Paul E. McKenney
2004-02-21  3:19                               ` Daniel Phillips
2004-02-21  3:19                                 ` Daniel Phillips
2004-02-21 19:00                               ` Daniel Phillips
2004-02-22 23:39                                 ` Paul E. McKenney
2004-02-25 21:04                                   ` [RFC] Distributed mmap API Daniel Phillips
2004-02-25 21:04                                     ` Daniel Phillips
2004-02-25 19:12                                     ` Paul E. McKenney
2004-02-25 19:12                                       ` Paul E. McKenney
2004-02-25 19:14                                     ` Paul E. McKenney
2004-02-25 19:14                                       ` Paul E. McKenney
2004-02-25 22:07                                     ` Andrew Morton
2004-02-25 22:07                                       ` Andrew Morton
2004-02-25 22:07                                       ` Daniel Phillips
2004-02-25 22:07                                         ` Daniel Phillips
2004-02-25 22:16                                         ` Andrew Morton
2004-02-25 22:16                                           ` Andrew Morton
2004-02-25 22:46                                           ` Daniel Phillips [this message]
2004-02-25 22:46                                             ` Daniel Phillips
2004-03-03  3:00                                       ` Daniel Phillips
2004-03-03  3:00                                         ` Daniel Phillips
2004-03-03  3:15                                         ` Andrew Morton
2004-03-03  3:15                                           ` Andrew Morton
2004-03-03 13:06                                           ` Daniel Phillips
2004-03-03 13:06                                             ` Daniel Phillips
2004-03-04 18:55                                             ` Paul E. McKenney
2004-03-04 18:55                                               ` Paul E. McKenney
2004-02-20 21:17                         ` Non-GPL export of invalidate_mmap_range Christoph Hellwig
2004-02-20 21:17                           ` Christoph Hellwig
2004-02-20 22:16                           ` Daniel Phillips
2004-02-20 22:16                             ` Daniel Phillips
2004-02-20 23:56                             ` GFS requirements (was: Non-GPL export of invalidate_mmap_range) Lars Marowsky-Bree
2004-02-21  3:16                               ` Daniel Phillips
2004-02-21 14:17                                 ` Lars Marowsky-Bree
2004-02-21 19:09                                   ` Daniel Phillips
2004-02-22 10:37                                     ` Lars Marowsky-Bree
2004-02-24 18:26                                       ` Daniel Phillips
2004-02-18 12:12     ` Non-GPL export of invalidate_mmap_range Dominik Kubla
2004-02-18 12:12       ` Dominik Kubla
     [not found]   ` <24651326.1077037044@42.150.104.212.access.eclipse.net.uk>
2004-02-18 13:13     ` Christoph Hellwig
2004-02-17 22:22 ` David Weinehall
2004-02-17 22:22   ` David Weinehall

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=200402251746.46598.phillips@arcor.de \
    --to=phillips@arcor.de \
    --cc=akpm@osdl.org \
    --cc=hch@infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=paulmck@us.ibm.com \
    --cc=sct@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.