Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 16 Aug 2002 23:56:37 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 16 Aug 2002 23:56:37 -0400 Received: from neon-gw-l3.transmeta.com ([63.209.4.196]:11538 "EHLO neon-gw.transmeta.com") by vger.kernel.org with ESMTP id ; Fri, 16 Aug 2002 23:56:36 -0400 Date: Fri, 16 Aug 2002 21:00:52 -0700 (PDT) From: Linus Torvalds To: "Martin J. Bligh" cc: Benjamin LaHaise , Andrea Arcangeli , Alan Cox , Chris Friesen , Pavel Machek , , Subject: Re: aio-core why not using SuS? [Re: [rfc] aio-core for 2.5.29 (Re: async-io API registration for 2.5.29)] In-Reply-To: <2154752289.1029530794@[10.10.2.3]> Message-ID: 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: 1317 Lines: 34 On Fri, 16 Aug 2002, Martin J. Bligh wrote: > > At least some of those you don't have to kmap ... at least not in > the traditional sense. This sort of thing is a good application > for the per-process (or per-task) kernel virtual address area. > you just map in the stuff you need for your own task, instead > of having to share the global space with everybody. Careful. The VM space is shared _separately_ from other data structures, which means that you can _not_ user per-VM virtual address areas and expect them to scale with load. And than some VM happens to have thousands of threads, and you're dead. > Some things > have to be global (well, easier at least) like the task_struct, > but the kernel stacks could be moved out with a little work, > files, vm_area_structs, etc. Kernel stacks most certainly can't do this easily, since you'll just hit the scalability problem somewhere else (ie many threads, same VM). And files, for example, can not only be many files for one VM, you can have the reverse too, ie many VM's, one file table. Linus - 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/