Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 18 Mar 2003 00:35:17 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 18 Mar 2003 00:35:17 -0500 Received: from mpls-qmqp-04.inet.qwest.net ([63.231.195.115]:48652 "HELO mpls-qmqp-04.inet.qwest.net") by vger.kernel.org with SMTP id ; Tue, 18 Mar 2003 00:35:17 -0500 Date: Mon, 17 Mar 2003 23:43:24 -0800 Message-ID: <002801c2ed22$0f7fcd20$a3ba0243@oemcomputer> From: "Paul Albrecht" To: "Rik van Riel" Cc: linux-kernel@vger.kernel.org References: Subject: Re: 2.4 vm, program load, page faulting, ... MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 915 Lines: 22 On Monday, March 17, 2003 Rik van Riel wrote: > > The mmap() syscall only sets up the VMA info, it doesn't fill in the page tables. That only happens when the process page faults. > > Note that filling in a bunch of page table entries mapping already present pagecache pages at exec() time might be a good idea. It's just that nobody has gotten around to that yet... > What doesn't make sense to me is that a program's working set isn't loaded before it starts execution. Can the working set be approximated using the address_space object? Then the kernel would know what pages should be allocated when the text and data segments are memory mapped in binary load. - 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/