Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263058AbUDLTiO (ORCPT ); Mon, 12 Apr 2004 15:38:14 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263079AbUDLTiO (ORCPT ); Mon, 12 Apr 2004 15:38:14 -0400 Received: from wanderer.mr.itd.umich.edu ([141.211.93.146]:38865 "EHLO wanderer.mr.itd.umich.edu") by vger.kernel.org with ESMTP id S263058AbUDLTiK (ORCPT ); Mon, 12 Apr 2004 15:38:10 -0400 Date: Mon, 12 Apr 2004 15:38:01 -0400 (EDT) From: Rajesh Venkatasubramanian X-X-Sender: vrajesh@red.engin.umich.edu To: Hugh Dickins cc: "Martin J. Bligh" , linux-kernel@vger.kernel.org, Andrew Morton Subject: Re: [PATCH] anobjrmap 9 priority mjb tree In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1159 Lines: 28 On Mon, 12 Apr 2004, Hugh Dickins wrote: > On Mon, 12 Apr 2004, Martin J. Bligh wrote: > > > > If it were just a list, maybe RCU would be appropriate. It might be > > rather write-heavy though ? I think I played with an rwsem instead > > of a sem in the past too (though be careful if you try this, as for > > no good reason the return codes are inverted ;-() > > Yes, I think all the common paths have to write, in case the > uncommon paths (truncation and swapout) want to read: the wrong > way round for any kind of read-write optimization, isn't it? In common workloads e.g., add libc mapping using __vma_prio_tree_insert, mostly you do not add new nodes to the tree. Instead, you just add to a vm_set list. I am currently considering using rwsem to optimize such cases. Similarly __vma_prio_tree_remove can also be optimized in some common cases. I don't know whether it will help. Let us see... Rajesh - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/