mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@osdl.org>
To: Linus Torvalds <torvalds@osdl.org>
Cc: roland@redhat.com, mingo@redhat.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] report user-readable fixmap area in /proc/PID/maps
Date: Sun, 12 Oct 2003 19:17:06 -0700	[thread overview]
Message-ID: <20031012191706.02c22aab.akpm@osdl.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0310121845100.12190-100000@home.osdl.org>

Linus Torvalds <torvalds@osdl.org> wrote:
>
> If you really want /proc/PID/maps to look right, add a new vm_area_struct,
>  see if you can allocate it as part of the "struct mm_struct" so that we
>  don't get yet another (unnecessary) allocation on fork time.

It could be done "on demand".  So get_user_pages() and the /proc code will
call the new add_fixmap_vma() on entry.  Hence the additional overhead is
only incurred when /proc/pid/maps is accessed, or get_user_pages() is
called.

It'll need a new flag in mm_struct.  mm_struct.swap_address can be
salvaged: it is no longer used.


  parent reply	other threads:[~2003-10-13  2:14 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-07  8:54 Roland McGrath
2003-10-13  1:17 ` Andrew Morton
2003-10-13  1:35   ` Roland McGrath
2003-10-13  1:49     ` Linus Torvalds
2003-10-13  2:08       ` William Lee Irwin III
2003-10-13  2:17       ` Andrew Morton [this message]
2003-11-26  6:49 David Mosberger

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=20031012191706.02c22aab.akpm@osdl.org \
    --to=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=roland@redhat.com \
    --cc=torvalds@osdl.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®