login
Header Space

 
 

Mailing list archives

Search results

Found 75 matching messages (0.064 seconds). Page 1 of 4.

[PATCH 08 of 11] anon-vma-rwsem

# HG changeset patch # User Andrea Arcangeli # Date 1209740186 -7200 # Node ID 0be678c52e540d5f5d5fd9af549b57b9bb018d32 # Parent de28c85baef11b90c993047ca851a2f52c85a5be anon-vma-rwsem Convert the anon_vma spinlock to a rw ...

linux-kernel - Andrea Arcangeli - May 2 2008 - 11:05

[PATCH 08 of 11] anon-vma-rwsem

# HG changeset patch # User Andrea Arcangeli # Date 1210115136 -7200 # Node ID 6b384bb988786aa78ef07440180e4b2948c4c6a2 # Parent 58f716ad4d067afb6bdd1b5f7042e19d854aae0d anon-vma-rwsem Convert the anon_vma spinlock to a rw ...

linux-kernel - Andrea Arcangeli - May 7 2008 - 10:35

Re: [PATCH 08 of 11] anon-vma-rwsem

On Wed, May 07, 2008 at 08:10:33PM -0700, Christoph Lameter wrote: ... we can live with the 512 vmas cap that guarantees sort won't ... is the only thing that the anon vma bitflag can achieve and it ... linux-kernel" in the body of a message to majordomo@vger.kernel ...

linux-kernel - Andrea Arcangeli - May 7 2008 - 23:41

Re: [PATCH 08 of 11] anon-vma-rwsem

... ->vm_file->f_mapping->i_mmap_lock); > } > spin_unlock(&global_lock); Multiple vmas may share the same mapping or refer to the same anonymous vma. The above code will deadlock since ... linux-kernel" in the body of a message to majordomo@vger.kernel ...

linux-kernel - Christoph Lameter - May 7 2008 - 19:39

Re: [PATCH 08 of 11] anon-vma-rwsem

... > way that I have seen of temporarily holding off reclaim from an ... vmas so the ram wasted on anon-vmas wouldn't save more than ... After that we remove the 512 vma cap and mm_lock is free to ... unsubscribe linux-kernel" in the body of a message to majordomo@vger. ...

linux-kernel - Andrea Arcangeli - May 7 2008 - 22:56

Re: [PATCH 08 of 11] anon-vma-rwsem

... ordering for that case: one type of lock goes before the other kind. ... vma->vm_file->f_mapping) spin_lock(&vma->vm_file->f_mapping->i_mmap_lock); } spin_unlock(&global_lock); and now ... linux-kernel" in the body of a message to majordomo@vger. ...

linux-kernel - Linus Torvalds - May 7 2008 - 19:19

Re: [PATCH 08 of 11] anon-vma-rwsem

... have mmap_sem held. I think for anon > > pages it is always called with ... zap_page_range calls unmap_vmas which walks to vma->next. Are you saying > that can ... holding mmap_sem. > I feel my understanding of list management and locking completely > ...

linux-kernel - Nick Piggin - May 15 2008 - 03:57

Re: [PATCH 08 of 11] anon-vma-rwsem

On Thu, May 08, 2008 at 08:30:20AM +0300, Pekka Enberg wrote: > On Thu, ... on the list */ + struct rw_semaphore sem;/* Serialize access to vma list */ struct list_head head; /* List of private "related" vmas */ }; not sure if it'll grow in size ...

linux-kernel - Andrea Arcangeli - May 8 2008 - 01:49

Re: [PATCH 08 of 11] anon-vma-rwsem

... May 14, 2008 at 06:11:22AM +0200, Nick Piggin wrote: ... mmap_sem held. I think for anon > pages it is always called ... calls unmap_vmas which walks to vma->next. Are you saying that ... be reworked into other types of locks. Thanks, Robin -- To unsubscribe ...

linux-kernel - Robin Holt - May 14 2008 - 07:26

Re: [PATCH 08 of 11] anon-vma-rwsem

... > later it would become a rwsem when XPMEM is selected making the ... before taking *two or more* of the per-vma locks. I really wish I'd thought of that. -- To unsubscribe from this list ... linux-kernel" in the body of a message to majordomo@vger.kernel ...

linux-kernel - Andrew Morton - May 7 2008 - 18:31

Re: [PATCH 08 of 11] anon-vma-rwsem

... wrote: > > On Thu, 2008-05-08 at 00:44 +0200, Andrea ... to be in the middle of > > zap_page_range while mmu_notifier_register runs. > > You ... time + a cap of vmas. It's not important if it ... allocations needed anyway, any one of them can fail, so this ...

linux-kernel - Andrea Arcangeli - May 7 2008 - 19:45

Re: [PATCH 08 of 11] anon-vma-rwsem

... 2008, Christoph Lameter wrote: > > > > Multiple vmas may share the same mapping ... refer to the same anonymous > > vma. The above code will deadlock ... rare, maybe Ben's > suggestion of just using stop-machine is ... we're not running out of vm flags yet, and if ...

linux-kernel - Christoph Lameter - May 7 2008 - 20:56

Re: [PATCH 08 of 11] anon-vma-rwsem

... struct address_space), not in the > vma itself. My bad. So the ... related to that brain-fart of mine, that obviously also means ... a cap on the number of vmas to min(1024,max_map_count) ... time. kvm runs with 127 vmas allocated... -- To unsubscribe from this ...

linux-kernel - Andrea Arcangeli - May 7 2008 - 21:52

Re: [PATCH 08 of 11] anon-vma-rwsem

... ^^^ 2.6.26-rc1 + below patch diff --git a/include/linux/rmap. ... { spinlock_t lock; /* Serialize access to vma list */ struct list_head head; /* List of private "related" vmas */ + int flag:1; ... sort and run O(N) instead of current O(N*log(N)) ...

linux-kernel - Andrea Arcangeli - May 8 2008 - 01:20

Re: [PATCH 08 of 11] anon-vma-rwsem

... looks bad, in fact. Lack of authorship, bad single-line Glad ... complained myself to various of those patches and I'll take ... making the conversion from spinlock->rwsem only if CONFIG_XPMEM=y as ... but ia64. Please ignore all patches but mmu-notifier-core. I ...

linux-kernel - Andrea Arcangeli - May 7 2008 - 17:26

Re: [PATCH 08 of 11] anon-vma-rwsem

... mm_lock() is an unbelievable piece of utter and > horrible CRAP. > > There ... later it would become a rwsem when XPMEM is selected making ... have been > in a separate patch. I'll happily apply that ... you say, it's order of magnitude safer even if entirely ...

linux-kernel - Andrea Arcangeli - May 7 2008 - 18:22

Re: [PATCH 08 of 11] anon-vma-rwsem

... 2008, Christoph Lameter wrote: > > Multiple vmas may share the same mapping ... refer to the same anonymous > vma. The above code will deadlock ... rare, maybe Ben's suggestion of just using stop-machine is ... we're not running out of vm flags yet, and if ...

linux-kernel - Linus Torvalds - May 7 2008 - 20:03

Re: [PATCH 08 of 11] anon-vma-rwsem

... 7 May 2008, Christoph Lameter wrote: > > > > Multiple vmas may share the same mapping or refer to the same anonymous > > vma. The above code will deadlock since ... really rare, maybe Ben's > suggestion of just using stop-machine is actually ...

linux-kernel - Robin Holt - May 7 2008 - 20:52

Re: [PATCH 08 of 11] anon-vma-rwsem

... I don't see a problem in making the conversion from > spinlock->rwsem only if CONFIG_XPMEM=y as I doubt XPMEM works on > ... this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at ...

linux-kernel - Jack Steiner - May 7 2008 - 18:42

Re: [PATCH 08 of 11] anon-vma-rwsem

... looks like a simple bit-per-vma. > > Andrea's mm_lock could have ... > way that I have seen of temporarily holding off reclaim from ... easily generate thousands and thousands of vma's in a process. ... linux-kernel" in the body of a message to majordomo@vger. ...

linux-kernel - Linus Torvalds - May 7 2008 - 21:32

speck-geostationary