haiku/headers/private/system
Ingo Weinhold 47c40a10a1 * Prefixed memset_physical() and memcpy_to_physical() with "vm_",
added vm_memcpy_from_physical() and vm_memcpy_physical_page(), and
  added respective functions to the vm_translation_map operations. The
  architecture specific implementation can now decide how to implement
  them most efficiently. Added generic implementations that can be used,
  though.
* Changed vm_{get,put}_physical_page(). The former no longer accepts
  flags (the only flag PHYSICAL_PAGE_DONT_WAIT wasn't needed anymore).
  Instead it returns an implementation-specific handle that has to be
  passed to the latter. Added vm_{get,put}_physical_page_current_cpu()
  and *_debug() variants, that work only for the current CPU,
  respectively when in the kernel debugger. Also adjusted the
  vm_translation_map operations accordingly.
* Made consequent use of the physical memory operations in the source
  tree.
* Also adjusted the m68k and ppc implementations with respect to the
  vm_translation_map operation changes, but they are probably broken,
  nevertheless.
* For x86 the generic physical page mapper isn't used anymore. It is
  suboptimal in any case. For systems with small memory it is too much
  overhead, since one can just map the complete physical memory (that's
  not done yet, though). For systems with large memory it counteracts
  the VM strategy to reuse the least recently used pages. Since those
  pages will most likely not be mapped by the page mapper anymore, it
  will keep remapping chunks. This was also the reason why building
  Haiku in Haiku was significantly faster with only 256 MB RAM (since
  that much could be kept mapped all the time).
  Now we're using a different strategy: We have small pools of virtual
  page slots per CPU that are used for the physical page operations
  (memset_physical(), memcpy_*_physical()) with CPU-pinned thread.
  Furthermore we have four slots per translation map, which are used to
  map page tables.

These changes speed up the Haiku image build in Haiku significantly. On
my Core2 Duo 2.2 GHz 2 GB machine about 40% to 20 min 40 s (KDEBUG
disabled, block cache debug disabled). Still more than factor 3 slower
than FreeBSD and Linux, though.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28244 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-10-20 00:06:09 +00:00
..
arch - Add m68k pendant of: r27529 & r27778 - handle skipIframes parameter 2008-10-12 18:13:11 +00:00
posix - Fixed warnings 2008-08-02 11:30:55 +00:00
commpage_defs.h
ddm_userland_interface_defs.h
device_manager_defs.h fixed listdev and device_manager syscalls 2008-06-06 22:23:25 +00:00
elf32.h
generic_syscall_defs.h
real_time_data.h
safemode_defs.h Initial work towards supporting IO APICs. This cannot work for PCI interrupts 2008-07-18 23:19:41 +00:00
scheduler_defs.h Scheduling analysis: Also record the number of times a thread waits on a 2008-09-04 00:07:11 +00:00
spinlock_contention.h * Added optional spinlock contention measurement feature. Enabled when 2008-06-02 02:04:12 +00:00
syscall_process_info.h
syscalls.h * Made the use of file devices more convenient and complete by adding 2008-10-13 21:51:43 +00:00
system_info.h * Implemented a (private for now) get_system_info_etc() call, that can retrieve 2008-09-17 16:27:17 +00:00
thread_defs.h Moved the wait type definitions to <thread_defs.h>. We're going to use 2008-09-03 14:48:47 +00:00
tls.h
user_runtime.h We need to let the runtime loader call shared object termination hooks 2008-10-12 12:26:27 +00:00
user_thread_defs.h
vfs_defs.h
vm_defs.h * Prefixed memset_physical() and memcpy_to_physical() with "vm_", 2008-10-20 00:06:09 +00:00