OpenBSD CVS

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


[BACK] Up to [local] / src / sys / uvm

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.50 / (download) - annotate - [select for diffs], Sat Sep 16 09:33:27 2023 UTC (8 months, 3 weeks ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.49: +4 -3 lines
Diff to previous 1.49 (colored)

Allow counters_read(9) to take an optional scratch buffer.

Using a scratch buffer makes it possible to take a consistent snapshot of
per-CPU counters without having to allocate memory.

Makes ddb(4) show uvmexp command work in OOM situations.

ok kn@, mvs@, cheloha@

Revision 1.49 / (download) - annotate - [select for diffs], Fri Aug 18 09:18:52 2023 UTC (9 months, 3 weeks ago) by claudio
Branch: MAIN
Changes since 1.48: +2 -48 lines
Diff to previous 1.48 (colored)

Move the loadavg calculation to sched_bsd.c as update_loadav()

With this uvm_meter() is no more and update_loadav() uses a simple timeout
instead of getting called via schedcpu().

OK deraadt@ mpi@ cheloha@

Revision 1.48 / (download) - annotate - [select for diffs], Thu Aug 3 16:12:08 2023 UTC (10 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.47: +6 -17 lines
Diff to previous 1.47 (colored)

Remove the per-cpu loadavg calculation.
The current scheduler useage is highly questionable and probably not helpful.
OK kettenis@ cheloha@ deraadt@

Revision 1.47 / (download) - annotate - [select for diffs], Thu Aug 3 16:08:12 2023 UTC (10 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Mark the exponential constants for load avarage calculation as const.
OK cheloha@

Revision 1.46 / (download) - annotate - [select for diffs], Wed Aug 2 13:54:45 2023 UTC (10 months, 1 week ago) by cheloha
Branch: MAIN
Changes since 1.45: +18 -32 lines
Diff to previous 1.45 (colored)

uvm_loadav: don't recompute schedstate_percpu.spc_nrun

We track the nrun value in schedstate_percpu.spc_nrun.  There is no
reason to walk the allproc list to recompute it.

Prompted by claudio@.

Thread: https://marc.info/?l=openbsd-tech&m=169059099426049&w=2

ok claudio@

Revision 1.45 / (download) - annotate - [select for diffs], Tue Aug 1 14:15:44 2023 UTC (10 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.44: +2 -4 lines
Diff to previous 1.44 (colored)

The swapper left the building long time ago. Now with the issue in
inteldrm fixed we should be able to remove this unneeded wakeup for good.
OK mvs@ cheloha@ deraadt@

Revision 1.44 / (download) - annotate - [select for diffs], Wed Jun 21 21:16:21 2023 UTC (11 months, 2 weeks ago) by cheloha
Branch: MAIN
Changes since 1.43: +7 -8 lines
Diff to previous 1.43 (colored)

Revert "schedcpu, uvm_meter(9): make uvm_meter() an independent timeout"

Sometimes causes boot hang after mounting root partition.

Thread 1: https://marc.info/?l=openbsd-misc&m=168736497407357&w=2
Thread 2: https://marc.info/?l=openbsd-misc&m=168737429214370&w=2

Revision 1.43 / (download) - annotate - [select for diffs], Tue Jun 20 16:30:30 2023 UTC (11 months, 3 weeks ago) by cheloha
Branch: MAIN
Changes since 1.42: +8 -7 lines
Diff to previous 1.42 (colored)

schedcpu, uvm_meter(9): make uvm_meter() an independent timeout

uvm_meter(9) should not base its periodic uvm_loadav() call on the UTC
clock.  It also no longer needs to periodically wake up proc0 because
proc0 doesn't do any work.  schedcpu() itself may change or go away,
but as kettenis@ notes we probably can't completely remove the concept
of a "load average" from OpenBSD, given its long Unix heritage.

So, (1) remove the uvm_meter() call from schedcpu(), (2) make
uvm_meter() an independent timeout started alongside schedcpu() during
scheduler_start(), and (3) delete the vestigial periodic proc0 wakeup.

With input from deraadt@, kettenis@, and claudio@.  deraadt@ cautions
that this change may confuse administrators who hold the load average
in high regard.

Thread: https://marc.info/?l=openbsd-tech&m=168710929409153&w=2

general agreement with this direction from kettenis@
ok claudio@

Revision 1.42 / (download) - annotate - [select for diffs], Mon Dec 28 14:01:23 2020 UTC (3 years, 5 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.41: +70 -28 lines
Diff to previous 1.41 (colored)

Use per-CPU counters for fault and stats counters reached in uvm_fault().

ok kettenis@, dlg@

Revision 1.41 / (download) - annotate - [select for diffs], Wed Jun 24 22:03:45 2020 UTC (3 years, 11 months ago) by cheloha
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

kernel: use gettime(9)/getuptime(9) in lieu of time_second(9)/time_uptime(9)

time_second(9) and time_uptime(9) are widely used in the kernel to
quickly get the system UTC or system uptime as a time_t.  However,
time_t is 64-bit everywhere, so it is not generally safe to use them
on 32-bit platforms: you have a split-read problem if your hardware
cannot perform atomic 64-bit reads.

This patch replaces time_second(9) with gettime(9), a safer successor
interface, throughout the kernel.  Similarly, time_uptime(9) is replaced
with getuptime(9).

There is a performance cost on 32-bit platforms in exchange for
eliminating the split-read problem: instead of two register reads you
now have a lockless read loop to pull the values from the timehands.
This is really not *too* bad in the grand scheme of things, but
compared to what we were doing before it is several times slower.

There is no performance cost on 64-bit (__LP64__) platforms.

With input from visa@, dlg@, and tedu@.

Several bugs squashed by visa@.

ok kettenis@

Revision 1.40 / (download) - annotate - [select for diffs], Tue Mar 24 15:03:59 2020 UTC (4 years, 2 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.39: +2 -1 lines
Diff to previous 1.39 (colored)

Use FALLTHROUGH in uvm_total() like it is done in uvm_loadav().

CID 1453262.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Dec 5 15:19:33 2019 UTC (4 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.38: +61 -1 lines
Diff to previous 1.38 (colored)

Move uvmexp_print() to a better place.

ok mlarkin@

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 6 07:49:38 2018 UTC (5 years, 7 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.37: +6 -1 lines
Diff to previous 1.37 (colored)

new sysctl for userland malloc flags, kernel part. ok millert@ deraadt@

Revision 1.37 / (download) - annotate - [select for diffs], Tue May 9 09:36:04 2017 UTC (7 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.36: +9 -14 lines
Diff to previous 1.36 (colored)

Stop considering some sleeping threads are running.

PZERO used to be a special value in the first BSD releases but since
the introduction of tsleep(9) there's no way to tell if a thread is
going to sleep for a "short" period of time.

This remove the only (ab)use of ``p_priority'' outside the scheuler
logic, which will help moving avway from a priority-based scheduler.

ok visa@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:53 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.35: +1 -2 lines
Diff to previous 1.35 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.35 / (download) - annotate - [select for diffs], Tue Jan 20 19:43:21 2015 UTC (9 years, 4 months ago) by kettenis
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.34: +5 -4 lines
Diff to previous 1.34 (colored)

Move ps_strings "after" the random stackgap.  This makes its location a
per-process value, and therefpore turns the VM_PSSTRINGS sysctl into a
per-process one as well.  This gets rid of a pointer to the bottom of the
stack at a fixed location.  Also clears the road for unmapping the stackgap.

ok deraadt@

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 11 16:35:40 2014 UTC (9 years, 11 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.33: +2 -7 lines
Diff to previous 1.33 (colored)

Chuck Cranor rescinded clauses in his license
on the 2nd of February 2011 in NetBSD.

http://marc.info/?l=netbsd-source-changes&m=129658899212732&w=2
http://marc.info/?l=netbsd-source-changes&m=129659095515558&w=2
http://marc.info/?l=netbsd-source-changes&m=129659157916514&w=2
http://marc.info/?l=netbsd-source-changes&m=129665962324372&w=2
http://marc.info/?l=netbsd-source-changes&m=129666033625342&w=2
http://marc.info/?l=netbsd-source-changes&m=129666052825545&w=2
http://marc.info/?l=netbsd-source-changes&m=129666922906480&w=2
http://marc.info/?l=netbsd-source-changes&m=129667725518082&w=2

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jul 8 13:19:16 2014 UTC (9 years, 11 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +4 -3 lines
Diff to previous 1.32 (colored)

rearrange some includes.  also, pull in uvm/uvm.h because soon sysctl.h
won't be pulling in the uvm side of the kitchen.

Revision 1.32 / (download) - annotate - [select for diffs], Tue May 6 11:50:14 2014 UTC (10 years, 1 month ago) by mpi
Branch: MAIN
Changes since 1.31: +4 -5 lines
Diff to previous 1.31 (colored)

Include <sys/vmmeter.h> directly instead of relying on it being
pulled by <uvm/uvm_extern.h> and turn uvm_total() into a private
function.

The preferred way to get memory stats is through the VM_UVMEXP
sysctl(3) since VM_METER is just a wrapper on top of it.  In the
kernel, use `uvmexp' directly instead of uvm_total().

This change does not remove <sys/vmmeter.h> from <uvm/uvm_extern.h>
to give some more time to port maintainers to fix their ports.

ok guenther@ as part of a larger diff.

Revision 1.31 / (download) - annotate - [select for diffs], Sun Apr 13 23:14:15 2014 UTC (10 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.30: +2 -7 lines
Diff to previous 1.30 (colored)

compress code by turning four line comments into one line comments.
emphatic ok usual suspects, grudging ok miod

Revision 1.30 / (download) - annotate - [select for diffs], Sat Mar 23 16:12:31 2013 UTC (11 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.29: +9 -2 lines
Diff to previous 1.29 (colored)

refactor sys/param.h and machine/param.h.  A lot of #ifdef _KERNEL is added
to keep definitions our of user space.  The MD files now follow a consistant
order -- all namespace intrusion is at the tail can be cleaned up
independently.  locore, bootblocks, and libkvm still see enough visibility to
build.  Checked on 90% of platforms...

Revision 1.29 / (download) - annotate - [select for diffs], Thu Jul 22 17:31:39 2010 UTC (13 years, 10 months ago) by thib
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.28: +1 -5 lines
Diff to previous 1.28 (colored)

Remove the VM_KMPAGESFREE sysctl. After the pmemrange
changes it was returing a constant 0, changing to cope
with those changes makes less sense then just removing
as it provides the user with no usefull information.

sthen@ grepped the port's tree for me and found not hits,
thanks!

OK deraadt@, matthew@

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 17 00:13:59 2009 UTC (14 years, 11 months ago) by oga
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

date based reversion of uvm to the 4th May.

More backouts in line with previous ones, this appears to bring us back to a
stable condition.

A machine forced to 64mb of ram cycled 10GB through swap with this diff
and is still running as I type this. Other tests by ariane@ and thib@
also seem to show that it's alright.

ok deraadt@, thib@, ariane@

Revision 1.27 / (download) - annotate - [select for diffs], Fri May 8 13:50:15 2009 UTC (15 years, 1 month ago) by ariane
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Remove static qualifier of functions that are not inline.
Makes trace in ddb useful.

ok oga

Revision 1.26 / (download) - annotate - [select for diffs], Mon Mar 23 13:25:11 2009 UTC (15 years, 2 months ago) by art
Branch: MAIN
Changes since 1.25: +21 -2 lines
Diff to previous 1.25 (colored)

Processor affinity for processes.
 - Split up run queues so that every cpu has one.
 - Make setrunqueue choose the cpu where we want to make this process
   runnable (this should be refined and less brutal in the future).
 - When choosing the cpu where we want to run, make some kind of educated
   guess where it will be best to run (very naive right now).
Other:
 - Set operations for sets of cpus.
 - load average calculations per cpu.
 - sched_is_idle() -> curcpu_is_idle()

tested, debugged and prodded by many@

Revision 1.25 / (download) - annotate - [select for diffs], Fri Mar 20 15:19:04 2009 UTC (15 years, 2 months ago) by oga
Branch: MAIN
Changes since 1.24: +6 -14 lines
Diff to previous 1.24 (colored)

While working on some stuff in uvm I've gotten REALLY sick of reading
K&R function declarations, so switch them all over to ansi-style, in
accordance with the prophesy.

"go for it" art@

Revision 1.24 / (download) - annotate - [select for diffs], Sat Dec 15 03:42:57 2007 UTC (16 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.23: +5 -1 lines
Diff to previous 1.23 (colored)

export kernel uvm_km_pages_free as vm.kmpagesfree; ok tedu, tested jsg

Revision 1.23 / (download) - annotate - [select for diffs], Wed Oct 10 15:53:53 2007 UTC (16 years, 8 months ago) by art
Branch: MAIN
Changes since 1.22: +4 -2 lines
Diff to previous 1.22 (colored)

Make context switching much more MI:
 - Move the functionality of choosing a process from cpu_switch into
   a much simpler function: cpu_switchto. Instead of having the locore
   code walk the run queues, let the MI code choose the process we
   want to run and only implement the context switching itself in MD
   code.
 - Let MD context switching run without worrying about spls or locks.
 - Instead of having the idle loop implemented with special contexts
   in MD code, implement one idle proc for each cpu. make the idle
   loop MI with MD hooks.
 - Change the proc lists from the old style vax queues to TAILQs.
 - Change the sleep queue from vax queues to TAILQs. This makes
   wakeup() go from O(n^2) to O(n)

there will be some MD fallout, but it will be fixed shortly.
There's also a few cleanups to be done after this.

deraadt@, kettenis@ ok

Revision 1.22 / (download) - annotate - [select for diffs], Wed Feb 14 00:53:48 2007 UTC (17 years, 4 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Consistently spell FALLTHROUGH to appease lint.
ok kettenis@ cloder@ tom@ henning@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Nov 29 12:24:18 2006 UTC (17 years, 6 months ago) by miod
Branch: MAIN
Changes since 1.20: +6 -12 lines
Diff to previous 1.20 (colored)

Kernel stack can be swapped. This means that stuff that's on the stack
should never be referenced outside the context of the process to which
this stack belongs unless we do the PHOLD/PRELE dance. Loads of code
doesn't follow the rules here. Instead of trying to track down all
offenders and fix this hairy situation, it makes much more sense
to not swap kernel stacks.

From art@, tested by many some time ago.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jun 21 23:50:38 2004 UTC (19 years, 11 months ago) by tholo
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7, OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

First step towards more sane time handling in the kernel -- this changes
things such that code that only need a second-resolution uptime or wall
time, and used to get that from time.tv_secs or mono_time.tv_secs now get
this from separate time_t globals time_second and time_uptime.

ok art@ niklas@ nordin@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Jun 13 21:49:29 2004 UTC (20 years ago) by niklas
Branch: MAIN
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (colored)

debranch SMP, have fun

Revision 1.4.2.10 / (download) - annotate - [select for diffs], Fri Jun 11 19:06:40 2004 UTC (20 years ago) by drahn
Branch: SMP
Changes since 1.4.2.9: +2 -1 lines
Diff to previous 1.4.2.9 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Treat SONPROC as runnable for nrun (uptime) too. pointed out by millert@

Revision 1.4.2.9 / (download) - annotate - [select for diffs], Fri Jun 11 19:03:23 2004 UTC (20 years ago) by drahn
Branch: SMP
Changes since 1.4.2.8: +2 -1 lines
Diff to previous 1.4.2.8 (colored) to branchpoint 1.4 (colored)

ONPROC processes count as runable in t_rq as well.

Revision 1.4.2.8 / (download) - annotate - [select for diffs], Sat Jun 5 23:13:13 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.4.2.7: +1 -1 lines
Diff to previous 1.4.2.7 (colored) to branchpoint 1.4 (colored)

Merge with the trunk

Revision 1.18 / (download) - annotate - [select for diffs], Mon May 17 13:08:42 2004 UTC (20 years ago) by pedro
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

typo

Revision 1.16.2.3 / (download) - annotate - [select for diffs], Mon Nov 4 18:02:33 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.16.2.2: +50 -39 lines
Diff to previous 1.16.2.2 (colored) to branchpoint 1.16 (colored) next main 1.17 (colored)

Huge sync to NetBSD plus lots of bugfixes.
 - uvm is as in netbsd-current minus uvm_map forward merge.
 - various locking bugfixes in nfs.
 - make sure that all specops and fifoops are correct in all vnodeop vectors.
 - make the filesystem code more like filsystem code and less like vm code.

Revision 1.16.2.2 / (download) - annotate - [select for diffs], Tue Jun 11 03:33:03 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.16.2.1: +2 -2 lines
Diff to previous 1.16.2.1 (colored) to branchpoint 1.16 (colored)

Sync UBC branch to -current

Revision 1.4.2.7 / (download) - annotate - [select for diffs], Thu Mar 28 14:54:26 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.4.2.6: +1 -1 lines
Diff to previous 1.4.2.6 (colored) to branchpoint 1.4 (colored)

Merge in -current from roughly a week ago

Revision 1.17 / (download) - annotate - [select for diffs], Thu Mar 14 01:27:18 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_SYNC_A, OPENBSD_3_5_BASE, OPENBSD_3_5, OPENBSD_3_4_BASE, OPENBSD_3_4, OPENBSD_3_3_BASE, OPENBSD_3_3, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

First round of __P removal in sys

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Sat Feb 2 03:28:27 2002 UTC (22 years, 4 months ago) by art
Branch: UBC
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Merge in UBC performance changes from NetBSD.
Fix a bunch of merge errors from yesterday.

Revision 1.4.2.6 / (download) - annotate - [select for diffs], Wed Dec 5 01:23:58 2001 UTC (22 years, 6 months ago) by niklas
Branch: SMP
Changes since 1.4.2.5: +14 -7 lines
Diff to previous 1.4.2.5 (colored) to branchpoint 1.4 (colored)

Merge in -current

Revision 1.16 / (download) - annotate - [select for diffs], Wed Nov 28 19:28:15 2001 UTC (22 years, 6 months ago) by art
Branch: MAIN
CVS Tags: UBC_BASE
Branch point for: UBC
Changes since 1.15: +15 -8 lines
Diff to previous 1.15 (colored)

Sync in more uvm from NetBSD. Mostly just cosmetic stuff.
Contains also support for page coloring.

Revision 1.4.2.5 / (download) - annotate - [select for diffs], Tue Nov 13 23:02:31 2001 UTC (22 years, 7 months ago) by niklas
Branch: SMP
Changes since 1.4.2.4: +46 -6 lines
Diff to previous 1.4.2.4 (colored) to branchpoint 1.4 (colored)

merge in -current

Revision 1.15 / (download) - annotate - [select for diffs], Mon Nov 12 01:26:09 2001 UTC (22 years, 7 months ago) by art
Branch: MAIN
Changes since 1.14: +41 -2 lines
Diff to previous 1.14 (colored)

Bring in more changes from NetBSD. Mostly pagedaemon improvements.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Nov 7 02:55:50 2001 UTC (22 years, 7 months ago) by art
Branch: MAIN
Changes since 1.13: +7 -6 lines
Diff to previous 1.13 (colored)

Another sync of uvm to NetBSD. Just minor fiddling, no major changes.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Nov 6 01:35:04 2001 UTC (22 years, 7 months ago) by art
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Move the last content from vm/ to uvm/
The only thing left in vm/ are just dumb wrappers.
vm/vm.h includes uvm/uvm_extern.h
vm/pmap.h includes uvm/uvm_pmap.h
vm/vm_page.h includes uvm/uvm_page.h

Revision 1.4.2.4 / (download) - annotate - [select for diffs], Wed Oct 31 03:32:14 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.4.2.3: +4 -1 lines
Diff to previous 1.4.2.3 (colored) to branchpoint 1.4 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.12 / (download) - annotate - [select for diffs], Sat Aug 11 10:57:22 2001 UTC (22 years, 10 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Various random fixes from NetBSD.
Including support for zeroing pages in the idle loop (not enabled yet).

Revision 1.11 / (download) - annotate - [select for diffs], Thu Aug 2 11:06:38 2001 UTC (22 years, 10 months ago) by art
Branch: MAIN
Changes since 1.10: +5 -2 lines
Diff to previous 1.10 (colored)

Sysctl for finding out how many pages there are in kmem_map.

Revision 1.4.2.3 / (download) - annotate - [select for diffs], Wed Jul 4 11:01:06 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.4.2.2: +2 -2 lines
Diff to previous 1.4.2.2 (colored) to branchpoint 1.4 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Jun 23 19:24:34 2001 UTC (22 years, 11 months ago) by smart
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Sync with NetBSD 19990911 (just before PMAP_NEW was required)
  - thread_sleep_msg() -> uvm_sleep()
  - initialize reference count lock in uvm_anon_{init,add}()
  - add uao_flush()
  - replace boolean 'islocked' with 'lockflags'
  - in uvm_fault() change FALSE to TRUE to in 'wide' fault handling
  - get rid of uvm_km_get()
  - various bug fixes

Revision 1.4.2.2 / (download) - annotate - [select for diffs], Mon May 14 22:47:47 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.4.2.1: +16 -23 lines
Diff to previous 1.4.2.1 (colored) to branchpoint 1.4 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jan 29 02:07:46 2001 UTC (23 years, 4 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.8: +1 -0 lines
Diff to previous 1.8 (colored)

$OpenBSD$

Revision 1.8 / (download) - annotate - [select for diffs], Thu Sep 7 20:15:28 2000 UTC (23 years, 9 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

Convert bzero to memset(X, 0..) and bcopy to memcpy.
This is to match (make diffs smaller) the code in NetBSD.
new gcc inlines those functions, so this could also be a performance win.

Revision 1.7 / (download) - annotate - [select for diffs], Wed Jun 14 16:51:55 2000 UTC (24 years ago) by provos
Branch: MAIN
Changes since 1.6: +14 -22 lines
Diff to previous 1.6 (colored)

put in own ctl level for swapencrypt.

Revision 1.4.2.1 / (download) - annotate - [select for diffs], Fri Mar 24 09:09:50 2000 UTC (24 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.4: +19 -4 lines
Diff to previous 1.4 (colored)

Sync with -current

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 18 20:51:32 2000 UTC (24 years, 2 months ago) by provos
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.5: +18 -3 lines
Diff to previous 1.5 (colored)

postpone memory allocation for uvm swap encryption until it is turned on with
sysctl.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 15 15:50:20 2000 UTC (24 years, 3 months ago) by art
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

Fix the NetBSD id strings.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Dec 30 18:21:55 1999 UTC (24 years, 5 months ago) by provos
Branch: MAIN
CVS Tags: SMP_BASE
Branch point for: SMP
Changes since 1.3: +9 -1 lines
Diff to previous 1.3 (colored)

swap encryption for UVM, option UVM_SWAP_ENCRYPT.  needs to be enabled
via sysctl.
Pages are encrypted with the Blowfish encryption algorithm, the key
is initialized randomly on first swap out, ensuring that entropy has
accumulated in the kernel randomness pool.  Eventually, swap encryption
will be decided on a process by process basis, e.g. a process that reads from
a cryptographic filesystem will enable swap encrypt for its pages. okay
art@ and deraadt@.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Aug 23 08:13:24 1999 UTC (24 years, 9 months ago) by art
Branch: MAIN
CVS Tags: kame_19991208, OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.2: +0 -5 lines
Diff to previous 1.2 (colored)

sync with NetBSD from 1999.05.24 (there is a reason for this date)
 Mostly cleanups, but also a few improvements to pagedaemon for better
 handling of low memory and/or low swap conditions.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Feb 26 05:32:07 1999 UTC (25 years, 3 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

add OpenBSD tags

Revision 1.1 / (download) - annotate - [select for diffs], Fri Feb 26 01:30:15 1999 UTC (25 years, 3 months ago) by art
Branch: MAIN

Import of uvm from NetBSD. Some local changes, some code disabled

This form allows you to request diff's 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.