Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2001 17:08:40 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/vm vm_glue.c vm_meter.c
Message-ID:  <200105180008.f4I08eW70632@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/05/17 17:08:40 PDT

  Modified files:
    sys/vm               vm_glue.c vm_meter.c 
  Log:
  - Use a timeout for the tsleep in scheduler() instead of having vmmeter()
    wakeup proc0 by hand to enforce the timeout.
  - When swapping out a process, keep the process locked via the proc lock
    from the first checks up until we clear PS_INMEM and set PS_SWAPPING in
    swapout().  The swapout() function now must be called with the proc lock
    held and releases it before returning.
  - Comment out the code to attempt to lock a process' VM structures before
    swapping out.  It is broken in that it releases the lock after obtaining
    it.  If it does grab the lock, it needs to hand it off to swapout()
    instead of releasing it.  This can be revisisted when the VM is locked
    as this is a valid test to perform.  It also causes a lock order reversal
    for the time being, which is the immediate cause for temporarily
    disabling it.
  
  Revision  Changes    Path
  1.112     +22 -3     src/sys/vm/vm_glue.c
  1.53      +2 -4      src/sys/vm/vm_meter.c


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105180008.f4I08eW70632>