linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Konstantin Khlebnikov <khlebnikov@openvz.org>,
	Alex Williamson <alex.williamson@redhat.com>
Cc: linux-mm@kvack.org, Andrew Morton <akpm@linux-foundation.org>,
	linux-kernel@vger.kernel.org, Hugh Dickins <hughd@google.com>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	Nick Piggin <npiggin@kernel.dk>
Subject: Re: [PATCH v3 10/10] mm: kill vma flag VM_RESERVED and mm->reserved_vm counter
Date: Tue, 09 Oct 2012 12:02:01 +0200	[thread overview]
Message-ID: <1349776921.21172.4091.camel@edumazet-glaptop> (raw)
In-Reply-To: <20120731104239.20515.702.stgit@zurg>

On Tue, 2012-07-31 at 14:42 +0400, Konstantin Khlebnikov wrote:
> A long time ago, in v2.4, VM_RESERVED kept swapout process off VMA,
> currently it lost original meaning but still has some effects:
> 
>  | effect                 | alternative flags
> -+------------------------+---------------------------------------------
> 1| account as reserved_vm | VM_IO
> 2| skip in core dump      | VM_IO, VM_DONTDUMP
> 3| do not merge or expand | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
> 4| do not mlock           | VM_IO, VM_DONTEXPAND, VM_HUGETLB, VM_PFNMAP
> 
> This patch removes reserved_vm counter from mm_struct.
> Seems like nobody cares about it, it does not exported into userspace directly,
> it only reduces total_vm showed in proc.
> 
> Thus VM_RESERVED can be replaced with VM_IO or pair VM_DONTEXPAND | VM_DONTDUMP.
> 
> remap_pfn_range() and io_remap_pfn_range() set VM_IO|VM_DONTEXPAND|VM_DONTDUMP.
> remap_vmalloc_range() set VM_DONTEXPAND | VM_DONTDUMP.
> 
> Signed-off-by: Konstantin Khlebnikov <khlebnikov@openvz.org>
> Cc: Nick Piggin <npiggin@kernel.dk>
> Cc: Hugh Dickins <hughd@google.com>
> ---
>  Documentation/vm/unevictable-lru.txt             |    4 ++--
>  arch/alpha/kernel/pci-sysfs.c                    |    2 +-
>  arch/ia64/kernel/perfmon.c                       |    2 +-
>  arch/ia64/mm/init.c                              |    3 ++-
>  arch/powerpc/kvm/book3s_hv.c                     |    2 +-
>  arch/sparc/kernel/pci.c                          |    2 +-
>  arch/unicore32/kernel/process.c                  |    2 +-
>  arch/x86/xen/mmu.c                               |    3 +--
>  drivers/char/mbcs.c                              |    2 +-
>  drivers/char/mem.c                               |    2 +-
>  drivers/char/mspec.c                             |    2 +-
>  drivers/gpu/drm/drm_gem.c                        |    2 +-
>  drivers/gpu/drm/drm_vm.c                         |   10 ++--------
>  drivers/gpu/drm/exynos/exynos_drm_gem.c          |    2 +-
>  drivers/gpu/drm/gma500/framebuffer.c             |    3 +--
>  drivers/gpu/drm/ttm/ttm_bo_vm.c                  |    4 ++--
>  drivers/gpu/drm/udl/udl_fb.c                     |    2 +-
>  drivers/infiniband/hw/ehca/ehca_uverbs.c         |    4 ++--
>  drivers/infiniband/hw/ipath/ipath_file_ops.c     |    2 +-
>  drivers/infiniband/hw/qib/qib_file_ops.c         |    2 +-
>  drivers/media/video/meye.c                       |    2 +-
>  drivers/media/video/omap/omap_vout.c             |    2 +-
>  drivers/media/video/sn9c102/sn9c102_core.c       |    3 +--
>  drivers/media/video/usbvision/usbvision-video.c  |    3 +--
>  drivers/media/video/videobuf-dma-sg.c            |    2 +-
>  drivers/media/video/videobuf-vmalloc.c           |    2 +-
>  drivers/media/video/videobuf2-memops.c           |    2 +-
>  drivers/media/video/vino.c                       |    2 +-
>  drivers/misc/carma/carma-fpga.c                  |    2 --
>  drivers/misc/sgi-gru/grufile.c                   |    5 ++---
>  drivers/mtd/mtdchar.c                            |    2 +-
>  drivers/scsi/sg.c                                |    2 +-
>  drivers/staging/media/easycap/easycap_main.c     |    2 +-
>  drivers/staging/omapdrm/omap_gem_dmabuf.c        |    2 +-
>  drivers/staging/tidspbridge/rmgr/drv_interface.c |    2 +-
>  drivers/uio/uio.c                                |    4 +---
>  drivers/usb/mon/mon_bin.c                        |    2 +-
>  drivers/video/68328fb.c                          |    2 +-
>  drivers/video/aty/atyfb_base.c                   |    3 +--
>  drivers/video/fb-puv3.c                          |    3 +--
>  drivers/video/fb_defio.c                         |    2 +-
>  drivers/video/fbmem.c                            |    3 +--
>  drivers/video/gbefb.c                            |    2 +-
>  drivers/video/omap2/omapfb/omapfb-main.c         |    2 +-
>  drivers/video/sbuslib.c                          |    5 ++---
>  drivers/video/smscufx.c                          |    1 -
>  drivers/video/udlfb.c                            |    1 -
>  drivers/video/vermilion/vermilion.c              |    1 -
>  drivers/video/vfb.c                              |    1 -
>  drivers/xen/gntalloc.c                           |    2 +-
>  drivers/xen/gntdev.c                             |    2 +-
>  drivers/xen/privcmd.c                            |    3 ++-
>  fs/binfmt_elf.c                                  |    2 +-
>  fs/binfmt_elf_fdpic.c                            |    2 +-
>  fs/hugetlbfs/inode.c                             |    2 +-
>  fs/proc/task_mmu.c                               |    2 +-
>  include/linux/mempolicy.h                        |    2 +-
>  include/linux/mm.h                               |    3 +--
>  include/linux/mm_types.h                         |    1 -
>  kernel/events/core.c                             |    2 +-
>  mm/ksm.c                                         |    3 +--
>  mm/memory.c                                      |   11 +++++------
>  mm/mlock.c                                       |    2 +-
>  mm/mmap.c                                        |    2 --
>  mm/nommu.c                                       |    2 +-
>  mm/vmalloc.c                                     |    3 +--
>  security/selinux/selinuxfs.c                     |    2 +-
>  sound/core/pcm_native.c                          |    6 +++---
>  sound/usb/usx2y/us122l.c                         |    2 +-
>  sound/usb/usx2y/usX2Yhwdep.c                     |    2 +-
>  sound/usb/usx2y/usx2yhwdeppcm.c                  |    2 +-
>  71 files changed, 78 insertions(+), 106 deletions(-)


It seems drivers/vfio/pci/vfio_pci.c uses VM_RESERVED

  CC [M]  drivers/watchdog/advantechwdt.o
drivers/vfio/pci/vfio_pci.c: In function a??vfio_pci_mmapa??:
drivers/vfio/pci/vfio_pci.c:464:28: erreur: a??VM_RESERVEDa?? undeclared (first use in this function)
drivers/vfio/pci/vfio_pci.c:464:28: note: each undeclared identifier is reported only once for each function it appears in



--
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:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2012-10-09 10:02 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31 10:41 [PATCH RESEND v3 00/10] mm: vma->vm_flags diet Konstantin Khlebnikov
2012-07-31 10:41 ` [PATCH v3 01/10] x86, pat: remove the dependency on 'vm_pgoff' in track/untrack pfn vma routines Konstantin Khlebnikov
2012-07-31 10:42 ` [PATCH v3 02/10] x86, pat: separate the pfn attribute tracking for remap_pfn_range and vm_insert_pfn Konstantin Khlebnikov
2012-07-31 10:42 ` [PATCH v3 03/10] mm, x86, pat: rework linear pfn-mmap tracking Konstantin Khlebnikov
2012-07-31 10:42 ` [PATCH v3 04/10] mm: introduce arch-specific vma flag VM_ARCH_1 Konstantin Khlebnikov
2012-07-31 10:42 ` [PATCH v3 05/10] mm: kill vma flag VM_INSERTPAGE Konstantin Khlebnikov
2012-07-31 10:42 ` [PATCH v3 06/10] mm: kill vma flag VM_CAN_NONLINEAR Konstantin Khlebnikov
2012-10-09 23:01   ` Sasha Levin
2012-07-31 10:42 ` [PATCH v3 07/10] mm: use mm->exe_file instead of first VM_EXECUTABLE vma->vm_file Konstantin Khlebnikov
2012-08-01  1:34   ` James Morris
2012-07-31 10:42 ` [PATCH v3 08/10] mm: kill vma flag VM_EXECUTABLE and mm->num_exe_file_vmas Konstantin Khlebnikov
2012-07-31 10:42 ` [PATCH v3 09/10] mm: prepare VM_DONTDUMP for using in drivers Konstantin Khlebnikov
2012-07-31 10:42 ` [PATCH v3 10/10] mm: kill vma flag VM_RESERVED and mm->reserved_vm counter Konstantin Khlebnikov
2012-10-09 10:02   ` Eric Dumazet [this message]
2012-10-09 12:12     ` Linus Torvalds
2012-10-09 14:21       ` Alex Williamson
2012-10-09 23:00         ` Alex Williamson
2012-10-10  4:06           ` Alex Williamson
2012-07-31 16:31 ` [PATCH RESEND v3 00/10] mm: vma->vm_flags diet Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
2012-07-31 10:34 [PATCH " Konstantin Khlebnikov
2012-07-31 10:35 ` [PATCH v3 10/10] mm: kill vma flag VM_RESERVED and mm->reserved_vm counter Konstantin Khlebnikov

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=1349776921.21172.4091.camel@edumazet-glaptop \
    --to=eric.dumazet@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=alex.williamson@redhat.com \
    --cc=hughd@google.com \
    --cc=khlebnikov@openvz.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=npiggin@kernel.dk \
    --cc=torvalds@linux-foundation.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