The NetBSD Project

CVS log for src/sys/uvm/uvm_pglist.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / uvm

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.90.4.1: download - view: text, markup, annotated - select for diffs
Mon Jan 15 14:15:54 2024 UTC (12 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3
Diff to: previous 1.90: preferred, colored; next MAIN 1.91: preferred, colored
Changes since revision 1.90: +21 -19 lines
Pull up following revision(s) (requested by tnn in ticket #554):

	sys/uvm/uvm_physseg.c: revision 1.20
	sys/uvm/uvm_pglist.c: revision 1.91
	sys/uvm/uvm_pglist.c: revision 1.92
	sys/uvm/uvm_physseg.h: revision 1.9

uvm: change type of uvm_physseg.start_hint from u_int to u_long
Avoids assertion failure in uvm_pglistalloc_s_ps() with large paddrs.
PR kern/57683.

fix DEBUG build

Revision 1.92: download - view: text, markup, annotated - select for diffs
Sun Jan 14 10:38:47 2024 UTC (12 months ago) by tnn
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, HEAD
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -3 lines
fix DEBUG build

Revision 1.91: download - view: text, markup, annotated - select for diffs
Sat Jan 13 09:44:42 2024 UTC (12 months ago) by tnn
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +20 -18 lines
uvm: change type of uvm_physseg.start_hint from u_int to u_long

Avoids assertion failure in uvm_pglistalloc_s_ps() with large paddrs.
PR kern/57683.

Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue Dec 21 08:27:49 2021 UTC (3 years ago) by skrll
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC2, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +26 -7 lines
Update uvm_pglistalloc_[cs]_ps to return EINVAL if [low, high] doesn't
match any memory.

Useful for bus_dmamem_alloc where a tag might not cover any memory.
This will be used in an update to ehci.

"looks good" from chuq@

Revision 1.89: download - view: text, markup, annotated - select for diffs
Mon Dec 20 22:40:46 2021 UTC (3 years ago) by skrll
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +12 -10 lines
Slight code re-structure and wrap a long line.  Interestingly this gives
the same binary before and after.

Revision 1.86.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:03 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +7 -4 lines
Sync with HEAD.

Revision 1.86.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:45:01 2021 UTC (3 years, 9 months ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.86: preferred, colored; next MAIN 1.87: preferred, colored
Changes since revision 1.86: +7 -4 lines
Sync with HEAD.

Revision 1.88: download - view: text, markup, annotated - select for diffs
Fri Mar 26 09:35:18 2021 UTC (3 years, 9 months ago) by chs
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +5 -2 lines
in uvm_pglistalloc_contig_aggressive(), avoid looking forward past
the end of the target range of the physseg.
fixes PR 56074.

Revision 1.87: download - view: text, markup, annotated - select for diffs
Wed Mar 24 06:37:27 2021 UTC (3 years, 9 months ago) by skrll
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -4 lines
Trailing whitespace

Revision 1.86: download - view: text, markup, annotated - select for diffs
Wed Oct 7 17:51:50 2020 UTC (4 years, 3 months ago) by chs
Branches: MAIN
Branch point for: thorpej-futex, thorpej-cfargs
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +178 -19 lines
Add a new, more aggressive allocator for uvm_pglistalloc() to allocate
contiguous physical pages, and try this new allocator if the existing
one fails.  The existing contig allocator only tries to allocate pages
that are already free, which works fine shortly after boot but rarely
works after the system has been up for a while.  The new allocator uses
the pagedaemon to evict pages from memory in the hope that this will
free up a range of pages that satisfies the constraits of the request.
This should help with things like plugging in a USB device, which often
fails for some USB controllers because they can't get contigous memory.

Revision 1.85: download - view: text, markup, annotated - select for diffs
Sun Jun 14 21:41:42 2020 UTC (4 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +2 -4 lines
Remove PG_ZERO.  It worked brilliantly on x86 machines from the mid-90s but
having spent an age experimenting with it over the last 6 months on various
machines and with different use cases it's always either break-even or a
slight net loss for me.

Revision 1.84: download - view: text, markup, annotated - select for diffs
Thu Jun 11 22:25:51 2020 UTC (4 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +3 -2 lines
Counter tweaks:

- Don't need to count anonpages+filepages any more; clean+unknown+dirty for
  each kind of page can be summed to get the totals.

- Track the number of free pages with a counter so that it's one less thing
  for the allocator to do, which opens up further options there.

- Remove cpu_count_sync_one(). It has no users and doesn't save a whole lot.
  For the cheap option, give cpu_count_sync() a boolean parameter indicating
  that a cached value is okay, and rate limit the updates for cached values
  to hz.

Revision 1.83: download - view: text, markup, annotated - select for diffs
Thu Jun 11 19:20:47 2020 UTC (4 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +4 -4 lines
uvm_availmem(): give it a boolean argument to specify whether a recent
cached value will do, or if the very latest total must be fetched.  It can
be called thousands of times a second and fetching the totals impacts not
only the calling LWP but other CPUs doing unrelated activity in the VM
system.

Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat May 23 20:22:42 2020 UTC (4 years, 7 months ago) by ad
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +3 -26 lines
uvm_pglistfree(): just use uvm_pagefree().

Revision 1.70.16.2: download - view: text, markup, annotated - select for diffs
Wed Apr 8 14:09:05 2020 UTC (4 years, 9 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.70.16.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.16.1: +53 -60 lines
Merge changes from current as of 20200406

Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Mar 1 21:43:56 2020 UTC (4 years, 10 months ago) by ad
Branches: MAIN
CVS tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +8 -2 lines
uvm_pglistalloc() / uvm_pglistfree() musn't be called from interrupt
context.  Assert it.

Revision 1.79.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 29 20:21:12 2020 UTC (4 years, 10 months ago) by ad
Branches: ad-namecache
Diff to: previous 1.79: preferred, colored; next MAIN 1.80: preferred, colored
Changes since revision 1.79: +5 -5 lines
Sync with head.

Revision 1.72.4.1: download - view: text, markup, annotated - select for diffs
Thu Feb 27 18:24:44 2020 UTC (4 years, 10 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.72: preferred, colored; next MAIN 1.73: preferred, colored
Changes since revision 1.72: +5 -5 lines
Pull up following revision(s) (requested by rin in ticket #732):

	sys/uvm/uvm_pglist.c: revision 1.80

Make this compile again with PGALLOC_VERBOSE.

Revision 1.80: download - view: text, markup, annotated - select for diffs
Thu Feb 20 04:54:47 2020 UTC (4 years, 10 months ago) by rin
Branches: MAIN
CVS tags: ad-namecache-base3
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +5 -5 lines
Make this compile again with PGALLOC_VERBOSE.

Revision 1.79: download - view: text, markup, annotated - select for diffs
Tue Dec 31 13:07:14 2019 UTC (5 years ago) by ad
Branches: MAIN
CVS tags: ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -4 lines
Rename uvm_free() -> uvm_availmem().

Revision 1.78: download - view: text, markup, annotated - select for diffs
Fri Dec 27 12:51:57 2019 UTC (5 years ago) by ad
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +37 -51 lines
Redo the page allocator to perform better, especially on multi-core and
multi-socket systems.  Proposed on tech-kern.  While here:

- add rudimentary NUMA support - needs more work.
- remove now unused "listq" from vm_page.

Revision 1.77: download - view: text, markup, annotated - select for diffs
Sat Dec 21 14:50:34 2019 UTC (5 years ago) by ad
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +4 -4 lines
Detangle the pagedaemon from uvm_fpageqlock:

- Have a single lock (uvmpd_lock) to protect pagedaemon state that was
  previously covered by uvmpd_pool_drain_lock plus uvm_fpageqlock.
- Don't require any locks be held when calling uvm_kick_pdaemon().
- Use uvm_free().

Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Dec 21 14:41:44 2019 UTC (5 years ago) by ad
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +6 -6 lines
- Rename VM_PGCOLOR_BUCKET() to VM_PGCOLOR().  I want to reuse "bucket" for
  something else soon and TBH it matches what this macro does better.

- Add inlines to set/get locator values in the unused lower bits of
  pg->phys_addr.  Begin by using it to cache the freelist index, because
  computing it is expensive and that shows up during profiling.  Discussed
  on tech-kern.

Revision 1.75: download - view: text, markup, annotated - select for diffs
Sat Dec 21 13:00:25 2019 UTC (5 years ago) by ad
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +4 -4 lines
uvmexp.free -> uvm_free()

Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Dec 16 22:47:55 2019 UTC (5 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +4 -4 lines
- Extend the per-CPU counters matt@ did to include all of the hot counters
  in UVM, excluding uvmexp.free, which needs special treatment and will be
  done with a separate commit.  Cuts system time for a build by 20-25% on
  a 48 CPU machine w/DIAGNOSTIC.

- Avoid 64-bit integer divide on every fault (for rnd_add_uint32).

Revision 1.73: download - view: text, markup, annotated - select for diffs
Fri Dec 13 20:10:22 2019 UTC (5 years, 1 month ago) by ad
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +3 -4 lines
Break the global uvm_pageqlock into a per-page identity lock and a private
lock for use of the pagedaemon policy code.  Discussed on tech-kern.

PR kern/54209: NetBSD 8 large memory performance extremely low
PR kern/54210: NetBSD-8 processes presumably not exiting
PR kern/54727: writing a large file causes unreasonable system behaviour

Revision 1.70.16.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:58 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +15 -12 lines
Sync with HEAD

Revision 1.70.14.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:52 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.70.14.1: preferred, colored; branchpoint 1.70: preferred, colored; next MAIN 1.71: preferred, colored
Changes since revision 1.70.14.1: +6 -3 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.72: download - view: text, markup, annotated - select for diffs
Tue Nov 13 10:31:01 2018 UTC (6 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, isaki-audio2-base, isaki-audio2
Branch point for: netbsd-9
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -3 lines
only warn once per call to uvm_pglistalloc_simple() if waiting.

Revision 1.70.14.1: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:48 2018 UTC (6 years, 4 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +11 -11 lines
Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.71: download - view: text, markup, annotated - select for diffs
Mon Sep 3 16:29:37 2018 UTC (6 years, 4 months ago) by riastradh
Branches: MAIN
CVS tags: pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +11 -11 lines
Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.62.12.2: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:22 2017 UTC (7 years, 1 month ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.62.12.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.12.1: +93 -87 lines
update from HEAD

Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 5 13:41:01 2017 UTC (7 years, 11 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +75 -69 lines
Sync with HEAD

Revision 1.67.4.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:53 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +75 -69 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Dec 23 09:18:02 2016 UTC (8 years ago) by skrll
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-compat-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +3 -3 lines
PRIxPHYSMEM -> PRIxPHYSSEG to fix the build

Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Dec 23 08:53:56 2016 UTC (8 years ago) by skrll
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -5 lines
Whitespace

Revision 1.68: download - view: text, markup, annotated - select for diffs
Fri Dec 23 07:15:28 2016 UTC (8 years ago) by cherry
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +78 -69 lines
"Make NetBSD great again!"

Introduce uvm_hotplug(9) to the kernel.

Many thanks, in no particular order to:

TNF, for funding the project.

Chuck Silvers - for multiple API reviews and feedback.
Nick Hudson - for testing on multiple architectures and bugfix patches.
Everyone who helped with boot testing.

KeK (http://www.kek.org.in) for hosting the primary developers.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Sun Oct 26 01:42:07 2014 UTC (10 years, 2 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +3 -3 lines
Define UVMDEBUG for expensive debugging operations. Idea from chuq.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:36:21 2014 UTC (10 years, 4 months ago) by matt
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +40 -40 lines
Don't use C++ try keyword as a variable name.

Revision 1.62.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:45 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
Rebase to HEAD as of a few days ago.

Revision 1.63.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:57:00 2014 UTC (10 years, 5 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.63: preferred, colored; next MAIN 1.64: preferred, colored
Changes since revision 1.63: +2 -2 lines
Rebase.

Revision 1.62.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:19 2014 UTC (10 years, 7 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.62.2.1: preferred, colored; branchpoint 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62.2.1: +3 -3 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon May 19 05:48:14 2014 UTC (10 years, 8 months ago) by riastradh
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +0 -2 lines
Back out previous silliness -- on failure no pages are allocated.

Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon May 19 05:24:29 2014 UTC (10 years, 8 months ago) by riastradh
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -2 lines
Don't leak memory on failure in uvm_pglistalloc_contig.

Free pages like uvm_pglistalloc_simple does.

Discovered by code inspection.

Revision 1.62.16.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:22 2014 UTC (10 years, 8 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.62: preferred, colored; next MAIN 1.63: preferred, colored
Changes since revision 1.62: +3 -3 lines
sync with head

Revision 1.42.16.14: download - view: text, markup, annotated - select for diffs
Sat Feb 15 10:19:14 2014 UTC (10 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.13: preferred, colored; branchpoint 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42.16.13: +18 -18 lines
Adapt to K{,D}ASSERTMSG changes

Revision 1.63: download - view: text, markup, annotated - select for diffs
Sun Sep 15 15:54:23 2013 UTC (11 years, 4 months ago) by martin
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +3 -3 lines
Mark potentialy unused variables

Revision 1.42.16.13: download - view: text, markup, annotated - select for diffs
Wed Feb 29 18:03:40 2012 UTC (12 years, 10 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.12: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.12: +14 -4 lines
Improve UVM_PAGE_TRKOWN.
Add more asserts to uvm_page.

Revision 1.42.16.12: download - view: text, markup, annotated - select for diffs
Tue Feb 14 01:12:42 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.11: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.11: +12 -2 lines
Add more KASSERTs (more! more! more!).
When returning page to the free pool, make sure to dequeue the pages before
hand or free page queue corruption will happen.

Revision 1.42.16.11: download - view: text, markup, annotated - select for diffs
Thu Feb 9 03:05:01 2012 UTC (12 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.10: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.10: +4 -2 lines
Major changes to uvm.
Support multiple collections (groups) of free pages and run the page
reclaimation algorithm on each group independently.

Revision 1.62.2.1: download - view: text, markup, annotated - select for diffs
Sun Nov 6 22:05:00 2011 UTC (13 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +4 -4 lines
remove pg->listq and uobj->memq

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Sep 27 01:02:39 2011 UTC (13 years, 3 months ago) by jym
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, agc-symver-base, agc-symver
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +10 -10 lines
Modify *ASSERTMSG() so they are now used as variadic macros. The main goal
is to provide routines that do as KASSERT(9) says: append a message
to the panic format string when the assertion triggers, with optional
arguments.

Fix call sites to reflect the new definition.

Discussed on tech-kern@. See
http://mail-index.netbsd.org/tech-kern/2011/09/07/msg011427.html

Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:10:24 2011 UTC (13 years, 7 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51: +161 -45 lines
Sync with HEAD.

Revision 1.42.16.10: download - view: text, markup, annotated - select for diffs
Fri Jun 3 08:00:51 2011 UTC (13 years, 7 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.9: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.9: +2 -2 lines
Restore $NetBSD$

Revision 1.42.16.9: download - view: text, markup, annotated - select for diffs
Fri Jun 3 02:43:42 2011 UTC (13 years, 7 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.8: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.8: +29 -20 lines
Rework page free lists to be sorted by color first rather than free_list.
Kept per color PGFL_* counter in each page free list.
Minor cleanups.

Revision 1.45.4.3: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:15 2011 UTC (13 years, 7 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.45.4.2: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.4.2: +0 -2 lines
sync with head

Revision 1.42.16.8: download - view: text, markup, annotated - select for diffs
Fri May 27 17:17:17 2011 UTC (13 years, 7 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.7: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.7: +36 -16 lines
Fix a bug where limit could be greater avail_end.  Now if that happens, we
just bail.  Use KDASSERTMSG so panics are more informative.

Revision 1.42.16.7: download - view: text, markup, annotated - select for diffs
Wed May 25 23:58:50 2011 UTC (13 years, 7 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.6: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.6: +50 -6 lines
Make uvm_map recognize UVM_FLAG_COLORMATCH which tells uvm_map that the
'align' argument specifies the starting color of the KVA range to be returned.

When calling uvm_km_alloc with UVM_KMF_VAONLY, also specify the starting
color of the kva range returned (UMV_KMF_COLORMATCH) and pass those to
uvm_map.

In uvm_pglistalloc, make sure the pages being returned have sequentially
advancing colors (so they can be mapped in a contiguous address range).
Add a few missing UVM_FLAG_COLORMATCH flags to uvm_pagealloc calls.

Make the socket and pipe loan color-safe.

Make the mips pmap enforce strict page color (color(VA) == color(PA)).

Revision 1.61: download - view: text, markup, annotated - select for diffs
Sat Apr 23 18:14:13 2011 UTC (13 years, 8 months ago) by rmind
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -4 lines
Replace "malloc" in comments, remove unnecessary header inclusions.

Revision 1.45.4.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:56:38 2011 UTC (13 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.45.4.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.4.1: +161 -43 lines
sync with head

Revision 1.52.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:20:07 2011 UTC (13 years, 11 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.52: preferred, colored; next MAIN 1.53: preferred, colored
Changes since revision 1.52: +51 -21 lines
Sync with HEAD

Revision 1.60: download - view: text, markup, annotated - select for diffs
Wed Jan 26 08:49:48 2011 UTC (13 years, 11 months ago) by enami
Branches: MAIN
CVS tags: uebayasi-xip-base7, bouyer-quota2-nbase, bouyer-quota2-base
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +5 -3 lines
Introducing inner loop prevent us from exiting from the original loop.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Tue Jan 25 17:22:43 2011 UTC (13 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +3 -4 lines
When starting the second pass, don't continue the for loop but instead
just test try exceeding limit.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Jan 24 22:54:01 2011 UTC (13 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +5 -5 lines
Use the (new) KDASSERTMSG

Revision 1.57: download - view: text, markup, annotated - select for diffs
Mon Jan 24 19:13:55 2011 UTC (13 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +21 -9 lines
Fix start_hint in "simple" alloc (fencepost error).
When restarting the loop, make sure end is not above current limit.
Do a quick test to see if the physseg is within the range of desired addresses.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Sun Jan 23 21:29:52 2011 UTC (13 years, 11 months ago) by he
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -3 lines
DEBUG does not imply DIAGNOSTIC; make sure we have a non-null
KASSERTMSG implementation (DIAGNOSTIC) so that the variable inside
the DEBUG section gets used.

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Jan 22 01:36:27 2011 UTC (13 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +14 -4 lines
Fix the corruption of ps->start_hint.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Jan 21 19:27:09 2011 UTC (13 years, 11 months ago) by matt
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +17 -10 lines
Cleanup/add some asserts.  no functional change.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Fri Jan 21 16:56:38 2011 UTC (13 years, 11 months ago) by cegger
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3 lines
buildfix: use PRIxPADDR for type paddr_t

Revision 1.52: download - view: text, markup, annotated - select for diffs
Tue Jan 18 21:43:29 2011 UTC (14 years ago) by matt
Branches: MAIN
Branch point for: bouyer-quota2
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +120 -32 lines
Improve the efficiency of searching for a contiguous set of free pages.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Thu Nov 25 04:45:30 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +13 -27 lines
Revert vm_physseg allocation changes.  A report says that it causes
panics when used with mplayer in heavy load.

Revision 1.45.2.5: download - view: text, markup, annotated - select for diffs
Sun Nov 21 12:14:15 2010 UTC (14 years, 1 month ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.45.2.4: preferred, colored; branchpoint 1.45: preferred, colored; next MAIN 1.46: preferred, colored
Changes since revision 1.45.2.4: +21 -7 lines
Sync with HEAD.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Nov 18 11:49:41 2010 UTC (14 years, 2 months ago) by cegger
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
build fix: vm_physmem_index is only used with DEBUG.
Fix build when DIAGNOSTIC is enabled but not DEBUG

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Nov 18 08:41:11 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3 lines
Optimize DIAGNOSTIC check code.

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Nov 18 08:18:31 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +17 -3 lines
Fix DIAGNOSTIC physseg find check.

Revision 1.47: download - view: text, markup, annotated - select for diffs
Sun Nov 14 15:06:34 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base6
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +13 -13 lines
Be a little more friendly to dynamic physical segment registration.

Maintain an array of pointer to struct vm_physseg, instead of struct
array.  So that VM subsystem can take its pointer safely.  Pointer
to this struct will replace raw paddr_t usage in the future.

Dynamic removal is not supported yet.

Only MD data structure changes, no kernel bump needed.

Tested on i386, amd64, powerpc/ibm40x, arm11.

Revision 1.45.2.4: download - view: text, markup, annotated - select for diffs
Fri Nov 12 19:00:00 2010 UTC (14 years, 2 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.45.2.3: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.3: +5 -19 lines
Fix debug code.

Revision 1.45.2.3: download - view: text, markup, annotated - select for diffs
Tue Aug 17 06:48:16 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.45.2.2: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.2: +2 -2 lines
Sync with HEAD.

Revision 1.39.4.3: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:55:17 2010 UTC (14 years, 5 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.39.4.2: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.4.2: +4 -4 lines
sync with head.

Revision 1.45.4.1: download - view: text, markup, annotated - select for diffs
Sat Jul 3 01:20:07 2010 UTC (14 years, 6 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
sync with head

Revision 1.46: download - view: text, markup, annotated - select for diffs
Thu Jun 17 03:13:58 2010 UTC (14 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base5, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +4 -4 lines
disable some DEBUG code uvm_pglist_add() that has severe performance
problems with large mappings.  i've seen my system hang for a total
of 45 seconds when radeondrm is opened by X11, and it is the checks
in this function that take so long.

Revision 1.42.16.6: download - view: text, markup, annotated - select for diffs
Tue Jun 1 19:04:02 2010 UTC (14 years, 7 months ago) by matt
Branches: matt-nb5-mips64
CVS tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Diff to: previous 1.42.16.5: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.5: +3 -3 lines
Fix bad initialization spotted by Manuel Bouyer.

Revision 1.45.2.2: download - view: text, markup, annotated - select for diffs
Wed Apr 28 08:31:05 2010 UTC (14 years, 8 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.45.2.1: preferred, colored; branchpoint 1.45: preferred, colored
Changes since revision 1.45.2.1: +21 -7 lines
Always use struct vm_physseg *vm_physmem_ptrs[] in MD code.

Revision 1.45.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 9 08:43:33 2010 UTC (14 years, 11 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +6 -6 lines
vm_nphysseg -> vm_nphysmem

Revision 1.42.16.5: download - view: text, markup, annotated - select for diffs
Sat Jan 23 20:03:28 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.4: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.4: +7 -7 lines
Use roundup2 instead of roundup when doing alignment rounding since all
alignments must be a power of 2. (thanks to rmind for suggesting it).

Revision 1.42.16.4: download - view: text, markup, annotated - select for diffs
Sat Jan 23 19:54:04 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.3: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.3: +67 -19 lines
Add a start_hint to vm_physseg so when allocating pages, we can skip
forward over pages that are probably still allocated.

Revision 1.42.16.3: download - view: text, markup, annotated - select for diffs
Fri Jan 22 08:54:41 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.2: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.2: +9 -28 lines
Remove some optimizations since they actually don't do the right thing.
We never want to test the starting page first since it doesn't really give
use any good information that we can use for the next pass.

Revision 1.42.16.2: download - view: text, markup, annotated - select for diffs
Fri Jan 22 06:05:16 2010 UTC (14 years, 11 months ago) by snj
Branches: matt-nb5-mips64
Diff to: previous 1.42.16.1: preferred, colored; branchpoint 1.42: preferred, colored
Changes since revision 1.42.16.1: +4 -4 lines
Fix a couple comment typos.

Revision 1.42.16.1: download - view: text, markup, annotated - select for diffs
Fri Jan 22 05:17:32 2010 UTC (14 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +79 -20 lines
Rework the algorithm to allocate contiguous pages to be much much faster.
(read the comments if you want to know how it's done).

Revision 1.42.12.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:23:10 2009 UTC (15 years, 8 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +8 -8 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.39.4.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:40 2009 UTC (15 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.39.4.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.4.1: +30 -22 lines
sync with head.

Revision 1.42.6.1: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:58 2009 UTC (15 years, 8 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.42: preferred, colored; next MAIN 1.43: preferred, colored
Changes since revision 1.42: +8 -8 lines
Sync with HEAD.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Tue Mar 10 03:27:24 2009 UTC (15 years, 10 months ago) by nonaka
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base1, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip, rmind-uvmplock
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +3 -3 lines
remove "#define PGALLOC_VERBOSE".

Revision 1.44: download - view: text, markup, annotated - select for diffs
Mon Mar 9 09:53:55 2009 UTC (15 years, 10 months ago) by reinoud
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +8 -8 lines
For this physical address printing use uintmax_t since on Xen PAE this length
(64) is not the same as the base architecture (32).

Revision 1.43: download - view: text, markup, annotated - select for diffs
Mon Mar 9 07:00:26 2009 UTC (15 years, 10 months ago) by nonaka
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +4 -4 lines
fix compile failure when PGALLOC_VERBOSE is defined.

Revision 1.40.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:32:06 2008 UTC (16 years, 6 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.40: preferred, colored; next MAIN 1.41: preferred, colored
Changes since revision 1.40: +24 -16 lines
Sync w/ -current. 34 merge conflicts to follow.

Revision 1.39.2.3: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:15:17 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.39.2.2: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.2: +24 -16 lines
sync with head.

Revision 1.38.26.3: download - view: text, markup, annotated - select for diffs
Thu Jun 5 19:14:38 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.26.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.26.2: +24 -16 lines
Sync with HEAD.

Also fix build.

Revision 1.42: download - view: text, markup, annotated - select for diffs
Wed Jun 4 12:45:28 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, netbsd-5-base, netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, matt-nb5-mips64, jym-xensuspend
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +24 -16 lines
- vm_page: put listq, pageq into a union alongside a LIST_ENTRY, so we can
  use both types of list.

- Make page coloring and idle zero state per-CPU.

- Maintain per-CPU page freelists. When freeing, put pages onto the local
  CPU's lists and the global lists. When allocating, prefer to take pages
  from the local CPU. If none are available take from the global list as
  done now. Proposed on tech-kern@.

Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Wed Jun 4 02:05:54 2008 UTC (16 years, 7 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.39.2.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.1: +3 -3 lines
sync with head

Revision 1.38.26.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:38 2008 UTC (16 years, 7 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38.26.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.26.1: +0 -7 lines
Sync with HEAD.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Mon Jun 2 12:24:16 2008 UTC (16 years, 7 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base3
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
UVM_PAGEZERO_TARGET -> UVM_PAGEZERO_LOWAT

Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:56 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -9 lines
sync with head.

Revision 1.39.4.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:26:01 2008 UTC (16 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -9 lines
sync with head.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:24:12 2008 UTC (16 years, 8 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -9 lines
Remove clause 3 and 4 from TNF licenses

Revision 1.38.26.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:15 2008 UTC (16 years, 9 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -2 lines
Sync with HEAD.

Revision 1.38.22.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:33 2008 UTC (16 years, 9 months ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +8 -2 lines
sync with head.

Revision 1.38.6.1: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:13 2008 UTC (16 years, 9 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +8 -2 lines
sync with HEAD

Revision 1.33.2.5: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:52 2008 UTC (16 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.33.2.4: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.2.4: +8 -2 lines
sync with head.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Wed Feb 27 14:24:24 2008 UTC (16 years, 10 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: yamt-pf42, yamt-nfs-mp
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +8 -2 lines
Assert uvm_fpageqlock is held in a few more places.

Revision 1.33.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:47:12 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.33.2.3: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.3: +11 -11 lines
sync with head.

Revision 1.37.4.2: download - view: text, markup, annotated - select for diffs
Mon Aug 20 21:28:33 2007 UTC (17 years, 5 months ago) by ad
Branches: vmlocking
Diff to: previous 1.37.4.1: preferred, colored; branchpoint 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37.4.1: +8 -8 lines
Sync with HEAD.

Revision 1.37.12.1: download - view: text, markup, annotated - select for diffs
Wed Aug 15 13:51:24 2007 UTC (17 years, 5 months ago) by skrll
Branches: nick-csl-alignment
Diff to: previous 1.37: preferred, colored; next MAIN 1.38: preferred, colored
Changes since revision 1.37: +11 -11 lines
Sync with HEAD.

Revision 1.38.28.2: download - view: text, markup, annotated - select for diffs
Sat Jul 21 19:21:56 2007 UTC (17 years, 6 months ago) by ad
Branches: matt-mips64
Diff to: previous 1.38.28.1: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.28.1: +471 -0 lines
Merge unobtrusive locking changes from the vmlocking branch.

Revision 1.38.28.1
Sat Jul 21 19:21:55 2007 UTC (17 years, 6 months ago) by ad
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.38: +0 -471 lines
file uvm_pglist.c was added on branch matt-mips64 on 2007-07-21 19:21:56 +0000

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Jul 21 19:21:55 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, mjf-devfs-base, mjf-devfs, matt-mips64-base, matt-armv6-prevmlocking, matt-armv6-base, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: mjf-devfs2, matt-mips64, matt-armv6, keiichi-mipv6
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +11 -11 lines
Merge unobtrusive locking changes from the vmlocking branch.

Revision 1.37.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 17:51:58 2007 UTC (17 years, 10 months ago) by ad
Branches: vmlocking
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +11 -11 lines
Pull in the initial set of changes for the vmlocking branch.

Revision 1.36.6.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:55:29 2007 UTC (17 years, 10 months ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.36: preferred, colored; next MAIN 1.37: preferred, colored
Changes since revision 1.36: +3 -3 lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.33.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:12:33 2007 UTC (17 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.33.2.2: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.2: +3 -3 lines
sync with head.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Wed Feb 21 23:00:14 2007 UTC (17 years, 10 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup, nick-csl-alignment-base, mjf-ufs-trans-base, mjf-ufs-trans, ad-audiomp-base, ad-audiomp
Branch point for: vmlocking, nick-csl-alignment
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +3 -3 lines
Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.

Revision 1.33.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:51:06 2006 UTC (18 years ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.33.2.1: preferred, colored; branchpoint 1.33: preferred, colored
Changes since revision 1.33.2.1: +6 -5 lines
sync with head.

Revision 1.35.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:50 2006 UTC (18 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +6 -5 lines
Sync with head.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Fri Sep 15 15:51:13 2006 UTC (18 years, 4 months ago) by yamt
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, post-newlock2-merge, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Branch point for: yamt-idlelwp
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +6 -5 lines
merge yamt-pdpolicy branch.
	- separate page replacement policy from the rest of kernel
	- implement an alternative replacement policy

Revision 1.34.8.3: download - view: text, markup, annotated - select for diffs
Fri Sep 15 11:54:56 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.34.8.2: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.8.2: +5 -4 lines
make UVM_KICK_PDAEMON() a real function and stop including
uvm_pdpolicy.h from uvm.h.  this also fixes build of pmap(1).

Revision 1.34.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 03:00:13 2006 UTC (18 years, 4 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +4 -4 lines
sync with head

Revision 1.33.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:12:40 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +4 -4 lines
sync with head.

Revision 1.34.6.1: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:39:45 2006 UTC (18 years, 7 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +4 -4 lines
Sync with head.

Revision 1.34.12.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:49 2006 UTC (18 years, 7 months ago) by tron
Branches: peter-altq
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +4 -4 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.34.8.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:59:30 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.34.8.1: preferred, colored; branchpoint 1.34: preferred, colored
Changes since revision 1.34.8.1: +4 -4 lines
sync with head.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun May 14 05:30:31 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +4 -4 lines
XXX: GCC uninitialized.

Revision 1.34.8.1: download - view: text, markup, annotated - select for diffs
Sun Mar 5 12:51:09 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
separate page replacement policy from the rest of kernel.

Revision 1.34: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:25:29 2005 UTC (19 years, 1 month ago) by christos
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +2 -2 lines
merge ktrace-lwp.

Revision 1.26.2.4: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:12:40 2005 UTC (19 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.3: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26.2.3: +14 -41 lines
Sync with HEAD. Here we go again...

Revision 1.33: download - view: text, markup, annotated - select for diffs
Mon Jun 27 02:19:48 2005 UTC (19 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, thorpej-vnode-attr-base, thorpej-vnode-attr, ktrace-lwp-base
Branch point for: yamt-lazymbuf
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +14 -41 lines
Use ANSI function decls.

Revision 1.26.2.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:39:30 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.2: preferred, colored
Changes since revision 1.26.2.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.26.2.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:57:12 2004 UTC (20 years, 4 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26.2.1: preferred, colored
Changes since revision 1.26.2.1: +3 -3 lines
Sync with HEAD.

Revision 1.32: download - view: text, markup, annotated - select for diffs
Fri Sep 17 20:46:03 2004 UTC (20 years, 4 months ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3 lines
make free page queue filo rather than fifo.
data in pages freed more recently are more likely on cpu cache.

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:57:09 2004 UTC (20 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +26 -12 lines
Sync with HEAD

Revision 1.31: download - view: text, markup, annotated - select for diffs
Wed Mar 24 07:47:33 2004 UTC (20 years, 9 months ago) by junyoung
Branches: MAIN
CVS tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
Drop trailing spaces.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Nov 3 03:58:28 2003 UTC (21 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -3 lines
add a DEBUG check if freed PG_ZERO pages are really zero-filled.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Sat Nov 1 15:18:42 2003 UTC (21 years, 2 months ago) by yamt
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +13 -3 lines
in uvm_pagefree and friends, if freed pages have been marked by
PG_ZERO flag, put them to PGFL_ZEROS queue rather than default one
so that we can re-use zero-filled pages efficiently.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Tue Aug 26 15:12:19 2003 UTC (21 years, 4 months ago) by yamt
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +6 -6 lines
use VM_PAGE_TO_PHYS macro instead of using phys_addr directly.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Aug 2 14:12:51 2003 UTC (21 years, 5 months ago) by drochner
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +6 -6 lines
sync comments with reality

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Mar 10 19:52:24 2003 UTC (21 years, 10 months ago) by thorpej
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -4 lines
Make PGALLOC_VERBOSE compile where size_t != int.

Revision 1.13.2.7: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:17:11 2002 UTC (22 years, 2 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.13.2.6: preferred, colored; branchpoint 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13.2.6: +1 -1 lines
Catch up to -current

Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Nov 2 07:40:49 2002 UTC (22 years, 2 months ago) by perry
Branches: MAIN
CVS tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -3 lines
/*CONTCOND*/ while (0)'ed macros

Revision 1.17.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:50:26 2002 UTC (22 years, 4 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.17.2.2: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.2: +192 -84 lines
sync kqueue branch with HEAD

Revision 1.13.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:47:09 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.5: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.5: +102 -78 lines
Catch up to -current.

Revision 1.19.8.3: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:37:36 2002 UTC (22 years, 6 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.19.8.2: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.8.2: +192 -84 lines
catch up with -current.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Thu Jun 27 18:05:29 2002 UTC (22 years, 6 months ago) by drochner
Branches: MAIN
CVS tags: kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gehenna-devsw-base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +101 -77 lines
Big cleanup and speed improvements to pglist_alloc code:
-pass vm_physseg* instead of physseg index, and PFN (int) instead
 of physical address (could be done even more)
-simplify detection of boundary crossing and behave more intelligently
 in this case
-take stuff out of the inner loops, or put into "#ifdef DEBUG"
 (because we move along physsegs we don't need to check that the
  pages are physically contigous)
-make the "simple" and "contigous" branches look more uniform; at
 least the outer loops might coalesce one day

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:52:19 2002 UTC (22 years, 7 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored
Changes since revision 1.17.2.1: +157 -54 lines
catch up with -current on kqueue branch

Revision 1.19.8.2: download - view: text, markup, annotated - select for diffs
Thu Jun 20 15:53:15 2002 UTC (22 years, 7 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.19.8.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.8.1: +4 -3 lines
catch up with -current.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu Jun 20 08:24:22 2002 UTC (22 years, 7 months ago) by enami
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -7 lines
Shift by PAGE_SHIFT instead of dividing by PAGE_SIZE.

Revision 1.13.2.5: download - view: text, markup, annotated - select for diffs
Thu Jun 20 03:50:45 2002 UTC (22 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.4: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.4: +266 -79 lines
Catch up to -current.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue Jun 18 15:49:48 2002 UTC (22 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +138 -54 lines
Make the DMA memory allocators (uvm_pglistalloc())
obey the preferences expressed by freelist assignment,
to avoid wasting valuable "low memory" to devices which
don't really need it.
comments:
-I'm not sure searching the physsegs within a freelist
 beginning with the biggest is the right thing. This is
 what the "memory steal" code in uvm_page.c does, so
 keep it consistent.
-There seems to be some confusion whether the upper
 address limit passed is inclusive or not. Stays on
 the save side, possibly leaving one page out.
-The boundary/pagemask check can be simplified, also some
 arguments passed are only used for diagnostic checks.
-Integration with UVM_PAGE_TRKOWN???

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun Jun 2 14:44:46 2002 UTC (22 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +4 -3 lines
move initialization of the "struct pglist" returned by uvm_pglistalloc()
from the calling code into uvm_pglistalloc() itself for consistency
and easier error handling

Revision 1.19.8.1: download - view: text, markup, annotated - select for diffs
Thu May 30 13:52:45 2002 UTC (22 years, 7 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +156 -54 lines
Catch up with -current.

Revision 1.20: download - view: text, markup, annotated - select for diffs
Wed May 29 19:20:11 2002 UTC (22 years, 7 months ago) by drochner
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +156 -54 lines
Add another allocator to uvm_pglistalloc() which is used in the case where
no alignment / boundary / nsegs restrictions apply.
This one doesn't insist in a contigous range, and it honours the "waitok"
flag, thus succeeds in situations which were hopeless with the existing one.

(A solution which searches for a minimum number of contiguous ranges using
some best-fit or so algorithm would be expensive to implement; I believe the
"either-or" done here does reflect the current use by bus_dma quite well.)

Now agp memory allocation is robust for me. (tested on i810)

Revision 1.19.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 12 00:03:59 2002 UTC (22 years, 10 months ago) by thorpej
Branches: newlock
Diff to: previous 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19: +7 -8 lines
Convert the fpageqlock to a spin mutex at IPL_VM and rename it
to fpageq_mutex.

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:05:46 2002 UTC (23 years ago) by thorpej
Branches: kqueue
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +29 -33 lines
Sync kqueue branch with -current.

Revision 1.13.2.4: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:19:09 2001 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.3: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.3: +4 -1 lines
Catch up to -current.

Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 12 21:19:57 2001 UTC (23 years, 2 months ago) by thorpej
Branches: thorpej-mips-cache
Diff to: previous 1.18: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18: +4 -1 lines
Sync the thorpej-mips-cache branch with -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat Nov 10 07:37:01 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
CVS tags: thorpej-mips-cache-base, newlock-base, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, ifpoll-base, eeh-devprop-base, eeh-devprop
Branch point for: newlock, gehenna-devsw
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -1 lines
add RCSIDs, and in some cases, slightly cleanup #include order

Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Mon Oct 1 12:48:47 2001 UTC (23 years, 3 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +26 -33 lines
Catch up with -current.

Revision 1.13.2.3: download - view: text, markup, annotated - select for diffs
Fri Sep 21 22:37:17 2001 UTC (23 years, 4 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.2: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.2: +26 -33 lines
Catch up to -current.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Sat Sep 15 20:36:47 2001 UTC (23 years, 4 months ago) by chs
Branches: MAIN
CVS tags: thorpej-devvp-base3, thorpej-devvp-base2, post-chs-ubcperf
Branch point for: thorpej-mips-cache
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +26 -33 lines
a whole bunch of changes to improve performance and robustness under load:

 - remove special treatment of pager_map mappings in pmaps.  this is
   required now, since I've removed the globals that expose the address range.
   pager_map now uses pmap_kenter_pa() instead of pmap_enter(), so there's
   no longer any need to special-case it.
 - eliminate struct uvm_vnode by moving its fields into struct vnode.
 - rewrite the pageout path.  the pager is now responsible for handling the
   high-level requests instead of only getting control after a bunch of work
   has already been done on its behalf.  this will allow us to UBCify LFS,
   which needs tighter control over its pages than other filesystems do.
   writing a page to disk no longer requires making it read-only, which
   allows us to write wired pages without causing all kinds of havoc.
 - use a new PG_PAGEOUT flag to indicate that a page should be freed
   on behalf of the pagedaemon when it's unlocked.  this flag is very similar
   to PG_RELEASED, but unlike PG_RELEASED, PG_PAGEOUT can be cleared if the
   pageout fails due to eg. an indirect-block buffer being locked.
   this allows us to remove the "version" field from struct vm_page,
   and together with shrinking "loan_count" from 32 bits to 16,
   struct vm_page is now 4 bytes smaller.
 - no longer use PG_RELEASED for swap-backed pages.  if the page is busy
   because it's being paged out, we can't release the swap slot to be
   reallocated until that write is complete, but unlike with vnodes we
   don't keep a count of in-progress writes so there's no good way to
   know when the write is done.  instead, when we need to free a busy
   swap-backed page, just sleep until we can get it busy ourselves.
 - implement a fast-path for extending writes which allows us to avoid
   zeroing new pages.  this substantially reduces cpu usage.
 - encapsulate the data used by the genfs code in a struct genfs_node,
   which must be the first element of the filesystem-specific vnode data
   for filesystems which use genfs_{get,put}pages().
 - eliminate many of the UVM pagerops, since they aren't needed anymore
   now that the pager "put" operation is a higher-level operation.
 - enhance the genfs code to allow NFS to use the genfs_{get,put}pages
   instead of a modified copy.
 - clean up struct vnode by removing all the fields that used to be used by
   the vfs_cluster.c code (which we don't use anymore with UBC).
 - remove kmem_object and mb_object since they were useless.
   instead of allocating pages to these objects, we now just allocate
   pages with no object.  such pages are mapped in the kernel until they
   are freed, so we can use the mapping to find the page to free it.
   this allows us to remove splvm() protection in several places.

The sum of all these changes improves write throughput on my
decstation 5000/200 to within 1% of the rate of NetBSD 1.5
and reduces the elapsed time for "make release" of a NetBSD 1.5
source tree on my 128MB pc to 10% less than a 1.5 kernel took.

Revision 1.13.2.2: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:13:45 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13.2.1: preferred, colored; branchpoint 1.13: preferred, colored
Changes since revision 1.13.2.1: +2 -6 lines
Catch up with -current.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jun 27 21:18:34 2001 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-devvp-base, pre-chs-ubcperf
Branch point for: thorpej-devvp, kqueue
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +2 -6 lines
Macro'ize the code that checks the free and inactive thresholds and
wakes the pagedaemon.

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:10:45 2001 UTC (23 years, 7 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +18 -17 lines
Catch up to -current.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Sat May 26 21:27:21 2001 UTC (23 years, 7 months ago) by chs
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4 lines
replace vm_page_t with struct vm_page *.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Fri May 25 04:06:17 2001 UTC (23 years, 7 months ago) by chs
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +8 -8 lines
remove trailing whitespace.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Sun Apr 29 04:23:21 2001 UTC (23 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +8 -7 lines
Implement page coloring, using a round-robin bucket selection
algorithm (Solaris calls this "Bin Hopping").

This implementation currently relies on MD code to define a
constant defining the number of buckets.  This will change
reasonably soon (MD code will be able to dynamically size
the bucket array).

Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 12 13:32:15 2001 UTC (23 years, 10 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.8.2.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.2: +5 -13 lines
Sync with HEAD.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Sun Feb 18 21:19:08 2001 UTC (23 years, 11 months ago) by chs
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -13 lines
clean up DIAGNOSTIC checks, use KASSERT().

Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 8 09:21:05 2000 UTC (24 years, 1 month ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.1: +18 -23 lines
Sync with HEAD.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Sat Nov 25 06:28:00 2000 UTC (24 years, 1 month ago) by chs
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +18 -23 lines
lots of cleanup:
use queue.h macros and KASSERT().
address amap offsets in pages instead of bytes.
make amap_ref() and amap_unref() take an amap, offset and length
  instead of a vm_map_entry_t.
improve whitespace and comments.

Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:12:05 2000 UTC (24 years, 2 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +23 -21 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Jun 27 17:29:34 2000 UTC (24 years, 6 months ago) by mrg
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +1 -3 lines
remove include of <vm/vm.h>

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat May 20 19:54:01 2000 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -4 lines
Clean up a comment.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Mon Apr 24 17:12:01 2000 UTC (24 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +23 -16 lines
Changes necessary to implement pre-zero'ing of pages in the idle loop:
- Make page free lists have two actual queues: known-zero pages and
  pages with unknown contents.
- Implement uvm_pageidlezero().  This function attempts to zero up to
  the target number of pages until the target has been reached (currently
  target is `all free pages') or until whichqs becomes non-zero (indicating
  that a process is ready to run).
- Define a new hook for the pmap module for pre-zero'ing pages.  This is
  used to zero the pages using uncached access.  This allows us to zero
  as many pages as we want without polluting the cache.

In order to use this feature, each platform must add the appropropriate
glue in their idle loop.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Thu Jul 22 22:58:39 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2 lines
Garbage collect thread_sleep()/thread_wakeup() left over from the old
Mach VM code.  Also nuke iprintf(), which was no longer used anywhere.

Add proclist locking where appropriate.

Revision 1.6.8.2: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:47:22 1999 UTC (25 years, 7 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.6.8.1: preferred, colored; branchpoint 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6.8.1: +5 -9 lines
Sync w/ -current.

Revision 1.6.8.1: download - view: text, markup, annotated - select for diffs
Mon Jun 7 04:25:37 1999 UTC (25 years, 7 months ago) by chs
Branches: chs-ubc2
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +9 -9 lines
merge everything from chs-ubc branch.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon May 24 19:10:58 1999 UTC (25 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +5 -9 lines
- Change uvm_{lock,unlock}_fpageq() to return/take the previous interrupt
  level directly, instead of making the caller wrap the calls in
  splimp()/splx().
- Add a comment documenting that interrupts that cause memory allocation
  must be blocked while the free page queue is locked.

Since interrupts must be blocked while this lock is asserted, tying them
together like this helps to prevent mistakes.

Revision 1.6.2.1: download - view: text, markup, annotated - select for diffs
Thu Feb 25 04:35:40 1999 UTC (25 years, 10 months ago) by chs
Branches: chs-ubc
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +9 -9 lines
in uvm_pglistalloc(), treat pages being paged out as "free"
when deciding whether to wakeup the pagedaemon.
also, don't unlock the free page queue until we've done the wakeup.

Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Aug 13 02:11:03 1998 UTC (26 years, 5 months ago) by eeh
Branches: MAIN
CVS tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base
Branch point for: chs-ubc2, chs-ubc
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -4 lines
Merge paddr_t changes into the main branch.

Revision 1.5.2.1: download - view: text, markup, annotated - select for diffs
Thu Jul 30 14:04:15 1998 UTC (26 years, 5 months ago) by eeh
Branches: eeh-paddr_t
Diff to: previous 1.5: preferred, colored; next MAIN 1.6: preferred, colored
Changes since revision 1.5: +4 -4 lines
Split vm_offset_t and vm_size_t into paddr_t, psize_t, vaddr_t, and vsize_t.

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Jul 8 04:28:28 1998 UTC (26 years, 6 months ago) by thorpej
Branches: MAIN
CVS tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +12 -7 lines
Add support for multiple memory free lists.  There is at least one
default free list, and 0 - N additional free list, in order of descending
priority.

A new page allocation function, uvm_pagealloc_strat(), has been added,
providing three page allocation strategies:

	- normal: high -> low priority free list walk, taking the
	  page off the first free list that has one.

	- only: attempt to allocate a page only from the specified free
	  list, failing if that free list has none available.

	- fallback: if `only' fails, fall back on `normal'.

uvm_pagealloc(...) is provided for normal use (and is a synonym for
uvm_pagealloc_strat(..., UVM_PGA_STRAT_NORMAL, 0); the free list argument
is ignored for the `normal' case).

uvm_page_physload() now specified which free list the pages will be
loaded onto.  This means that some platforms which have multiple physical
memory segments may define additional vm_physsegs if they wish to break
individual physical segments into differing priorities.

Machine-dependent code must define _at least_ the following constants
in <machine/vmparam.h>:

	VM_NFREELIST: the number of free lists the system will have

	VM_FREELIST_DEFAULT: the default freelist (should always be 0,
	but is defined in machdep code so that it's with all of the
	other free list-related constants).

Additional free list names may be defined by machine-dependent code, but
they will only be used by machine-dependent code (e.g. for loading the
vm_physsegs).

Revision 1.4: download - view: text, markup, annotated - select for diffs
Tue May 5 20:51:07 1998 UTC (26 years, 8 months ago) by kleink
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +1 -4 lines
Remove inclusions of syscall (and syscall argument) related header files;
we don't need them here.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Mar 9 00:58:59 1998 UTC (26 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +161 -163 lines
KNF.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri Feb 6 22:32:26 1998 UTC (26 years, 11 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -0 lines
RCS ID police.

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Thu Feb 5 06:25:09 1998 UTC (26 years, 11 months ago) by mrg
Branches: CDC
CVS tags: uvm980205
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of the new virtual memory system, UVM, into -current.

UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some
minor portions derived from the old Mach code.  i provided some help
getting swap and paging working, and other bug fixes/ideas.  chuck
silvers <chuq@chuq.com> also provided some other fixes.

this is the UVM kernel code portion.


this will be KNF'd shortly.  :-)

Revision 1.1: download - view: text, markup, annotated - select for diffs
Thu Feb 5 06:25:09 1998 UTC (26 years, 11 months ago) by mrg
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>