CVSROOT:        /cvs
Module name:    src
Changes by:     sema...@cvs.openbsd.org 2022/07/29 11:47:12

Modified files:
        share/man/man4 : ddb.4 
        sys/conf       : files 
        sys/ddb        : db_command.c db_interface.h 
        sys/kern       : subr_hibernate.c 
        sys/uvm        : uvm_swap.c 
Added files:
        regress/sys/uvm/blist: Makefile test-1.in test-1.out test-2.in 
                               test-2.out test-3.in test-3.out test-4.in 
                               test-4.out test-5.in test-5.out 
        sys/kern       : subr_blist.c 
        sys/sys        : blist.h 

Log message:
Replace the swap extent(9) usage by a blist data structure.

It makes uvm_swap_free() faster: extents have a cost of O(n*n) which doesn't
really scale with gigabytes of swap.

Based on initial work from mpi@
The blist implementation comes from DragonFlyBSD.

The diff adds also a ddb(4) 'show swap' command to show the blist and help
debugging, and fix some off-by-one in size printed during hibernate.

ok mpi@

Reply via email to