[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: memory_object_lock_request and memory_object_data_return fnord
From: |
Thomas Bushnell, BSG |
Subject: |
Re: memory_object_lock_request and memory_object_data_return fnord |
Date: |
13 Mar 2002 19:17:34 -0800 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 |
Neal H Walfield <neal@cs.uml.edu> writes:
> In the scenario case, we do a completely unnecessary read! That is
> not demand paging; that is a waste.
Oh, you're talking about the case where we are writing complete pages?
Yes, that's a defect of any scheme like this. In principle, using the
vm_copy interface is the only thing that can effectively avoid it.
> But the manager knows; why force the kernel to guess? Say we send:
>
> io_read (file, data, vm_page_size * 4, 0, &amount)
>
> By the time the kernel detects a sequential read, it is already too
> late to be of any use.
Well, this is an old Mach debate. :)
But note that the *manager* doesn't know any better than the kernel.
Only the *user* knows what the access pattern is. (Even if the "user"
resides in the same task as the pager.)
So we might someday want a way for users to declare things about
memory regions mapped in their address space, some kind of declaration
like that might be useful. That would be the time to add msync too.
Thomas
- memory_object_lock_request and memory_object_data_return fnord, Neal H Walfield, 2002/03/13
- Re: memory_object_lock_request and memory_object_data_return fnord, Thomas Bushnell, BSG, 2002/03/13
- Re: memory_object_lock_request and memory_object_data_return fnord, Neal H Walfield, 2002/03/13
- Re: memory_object_lock_request and memory_object_data_return fnord, Thomas Bushnell, BSG, 2002/03/13
- Re: memory_object_lock_request and memory_object_data_return fnord, Neal H Walfield, 2002/03/13
- Re: memory_object_lock_request and memory_object_data_return fnord,
Thomas Bushnell, BSG <=
- Re: memory_object_lock_request and memory_object_data_return fnord, Neal H Walfield, 2002/03/13
- Re: memory_object_lock_request and memory_object_data_return fnord, Roland McGrath, 2002/03/13
- Re: memory_object_lock_request and memory_object_data_return fnord, Neal H Walfield, 2002/03/23
- Re: memory_object_lock_request and memory_object_data_return fnord, Roland McGrath, 2002/03/24
- Re: memory_object_lock_request and memory_object_data_return fnord, Neal H Walfield, 2002/03/25
- Re: memory_object_lock_request and memory_object_data_return fnord, Roland McGrath, 2002/03/25
- GNU/Linux binary compatibility (Was: Re: memory_object_lock_request and memory_object_data_return fnord), Jeroen Dekkers, 2002/03/25
- Re: GNU/Linux binary compatibility (Was: Re: memory_object_lock_request and memory_object_data_return fnord), Wolfgang Jährling, 2002/03/25
- Re: GNU/Linux binary compatibility (Was: Re: memory_object_lock_request and memory_object_data_return fnord), Jeff Bailey, 2002/03/25
- Re: GNU/Linux binary compatibility (Was: Re: memory_object_lock_request and memory_object_data_return fnord), Marcus Brinkmann, 2002/03/25