Home | History | Annotate | Download | only in uvm
History log of /src/sys/uvm/uvm_aobj.h
RevisionDateAuthorComments
 1.23  18-Oct-2013  christos use __USE() for empty macro
 1.22  14-Sep-2012  rmind branches: 1.22.2;
- Describe uvm_aobj and the lock order.
- Remove unnecessary uao_dropswap_range1() wrapper.
- KNF. Sprinkle some __cacheline_aligned.
 1.21  02-Feb-2011  chuck branches: 1.21.4; 1.21.10; 1.21.14;
udpate license clauses on chuck^2 code to match the new-style BSD licenses.
based on diff that rmind@ sent me (and confirmed with chs@ via email).

no functional change with this commit.
 1.20  01-Dec-2007  yamt branches: 1.20.40; 1.20.46; 1.20.48;
remove a duplicated decl. of aobj_pager.
 1.19  22-Feb-2007  matt branches: 1.19.16; 1.19.18; 1.19.24;
Fix lossage from boolean_t -> bool and updated x86 bus_dma.
 1.18  11-Dec-2005  christos branches: 1.18.26;
merge ktrace-lwp.
 1.17  08-Nov-2005  yamt add a function to drop all swap slots in a given range. for tmpfs.
XXX maybe it's better to implement true truncation.
 1.16  17-Sep-2005  yamt make VMSWAP optional again.
 1.15  13-Sep-2005  yamt wrap swap related code by #ifdef VMSWAP. always #define VMSWAP for now.
 1.14  31-Jul-2005  yamt revert "defflag VMSWAP" changes for now.
there seems to be far more people who don't want to edit
their kernel config files than i thought.
 1.13  30-Jul-2005  yamt defflag VMSWAP.
 1.12  24-Mar-2004  junyoung branches: 1.12.16;
Nuke __P().
 1.11  15-Sep-2001  chs branches: 1.11.18;
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.
 1.10  11-Jan-2000  chs branches: 1.10.6; 1.10.8; 1.10.10;
add support for ``swapctl -d'' (removing swap space).
improve handling of i/o errors in swap space.

reviewed by: Chuck Cranor
 1.9  21-Jun-1999  thorpej branches: 1.9.2;
Protect prototypes, certain macros, and inlines from userland.
 1.8  26-Mar-1999  chs branches: 1.8.4;
add uvmexp.swpgonly and use it to detect out-of-swap conditions.
 1.7  25-Mar-1999  mrg remove now >1 year old pre-release message.
 1.6  12-Feb-1998  chs branches: 1.6.4;
add copyright.
 1.5  10-Feb-1998  perry add/cleanup multiple inclusion protection.
 1.4  07-Feb-1998  mrg restore rcsids
 1.3  07-Feb-1998  chs declare aobj_pager, needed in uvm_km.c.
 1.2  06-Feb-1998  thorpej RCS ID police.
 1.1  05-Feb-1998  mrg branches: 1.1.1;
Initial revision
 1.1.1.1  05-Feb-1998  mrg 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. :-)
 1.6.4.1  09-Nov-1998  chs initial snapshot. lots left to do.
 1.8.4.2  01-Jul-1999  thorpej Sync w/ -current.
 1.8.4.1  07-Jun-1999  chs merge everything from chs-ubc branch.
 1.9.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
 1.10.10.1  01-Oct-2001  fvdl Catch up with -current.
 1.10.8.1  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.10.6.1  21-Sep-2001  nathanw Catch up to -current.
 1.11.18.4  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.11.18.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.11.18.2  18-Sep-2004  skrll Sync with HEAD.
 1.11.18.1  03-Aug-2004  skrll Sync with HEAD
 1.12.16.3  07-Dec-2007  yamt sync with head
 1.12.16.2  26-Feb-2007  yamt sync with head.
 1.12.16.1  21-Jun-2006  yamt sync with head.
 1.18.26.1  27-Feb-2007  yamt - sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
 1.19.24.1  08-Dec-2007  mjf Sync with HEAD.
 1.19.18.1  09-Jan-2008  matt sync with HEAD
 1.19.16.1  03-Dec-2007  joerg Sync with HEAD.
 1.20.48.1  08-Feb-2011  bouyer Sync with HEAD
 1.20.46.1  06-Jun-2011  jruoho Sync with HEAD.
 1.20.40.1  05-Mar-2011  rmind sync with head
 1.21.14.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.21.14.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.21.10.1  22-Nov-2012  riz Pull up following revision(s) (requested by rmind in ticket #694):
sys/uvm/uvm_aobj.h: revision 1.22
sys/uvm/uvm_aobj.c: revision 1.117
sys/uvm/uvm_aobj.c: revision 1.118
sys/uvm/uvm_aobj.c: revision 1.119
sys/uvm/uvm_object.h: revision 1.33
- Describe uvm_aobj and the lock order.
- Remove unnecessary uao_dropswap_range1() wrapper.
- KNF. Sprinkle some __cacheline_aligned.
- Manage anonymous UVM object reference count with atomic ops.
- Fix an old bug of possible lock against oneself (uao_detach_locked() is
called from uao_swap_off() with uao_list_lock acquired). Also removes
the try-lock dance in uao_swap_off(), since the lock order changes.
 1.21.4.2  22-May-2014  yamt 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")
 1.21.4.1  30-Oct-2012  yamt sync with head
 1.22.2.1  18-May-2014  rmind sync with head

RSS XML Feed