[lkml]   [2002]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
Subject9 vmacct patches to follow

Alan, Robert and Andrew agreed that the VM overcommit accounting feature
should go into 2.5 first as is, then my fixes to it could follow after.
You now have it in your BK tree, so I'm now mailing you my fixes (many
thanks to DavidW for his invaluable webpage: patches apply
to your current tree up to and including ChangeSet 1.523).

As Andrew noted, nothing crashes without these fixes; but some arches
and configs won't build without the last (vmacct 9/9), since a flag was
added to do_munmap but not all sources updated. I've made that patch
the last (not because I'm deluded into thinking that will coerce you
into applying the rest, but) because I'm uncertain whether you will want
to fix the build with my patch (which removes the added flag again, with
extra code in the one rare mremap path which needs to suppress accting),
or instead update these 11 sources with the additional acct flag:


The 9 patches coming are:

vmacct1 shmem_file_write rounding VM_ACCT
vmacct2 SHMEM_MAX_BYTES overflow checking
vmacct3 mremap MAP_NORESERVE not in flags
vmacct4 mmap MAP_NORESERVE not in vm_flags
vmacct5 remove unhelpful vm_unacct_vma
vmacct6 fix shared and private accounting
vmacct7 update overcommit doc and comment
vmacct8 shmem_file_setup when MAP_NORESERVE
vmacct9 remove acct arg from do_munmap

Documentation/vm/overcommit-accounting | 14 ++---
include/linux/mm.h | 4 -
include/linux/shmem_fs.h | 2
ipc/shm.c | 4 -
kernel/fork.c | 5 -
mm/memory.c | 19 ++----
mm/mmap.c | 57 ++++++++++----------
mm/mprotect.c | 27 ++++++---
mm/mremap.c | 35 ++++++++----
mm/shmem.c | 92 +++++++++++++++++++--------------
10 files changed, 142 insertions, 117 deletions

Please apply!

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:22    [W:0.104 / U:1.880 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site