Re: documentation on sysctl vm.defer_swapspace_pageouts?

From: David Schultz (das_at_FreeBSD.ORG)
Date: 05/30/04

  • Next message: Michael Bushkov: "lookupd 0.2a"
    Date: Sun, 30 May 2004 00:34:13 -0700
    To: Geert Hendrickx <geert.hendrickx@ua.ac.be>
    
    

    On Sat, May 29, 2004, Geert Hendrickx wrote:
    > where can I find documentation on the vm.defer_swapspace_pageouts
    > sysctl? LINT only mentions it, without explaining, man sysctl doesn't
    > mention it at all, and even Google yields very few useful results...

    vm.defer_swapspace_pageouts causes the system to avoid using swap,
    if possible. With the option enabled, the VM system will still
    evict clean pages and read them in again from the filesystem when
    necessary, but it will only write dirty pages to the swap
    partition as a last resort.

    > I was looking for a way to tune swap-usage a bit, I heard Linux has a
    > "swappiness" setting (telling the kernel how easy it should go with
    > paging out), and I hoped FreeBSD would have something similar.
    > vm.defer_swapspace_pageouts might do the trick, but so it seems to be
    > poorly documented...

    Take a look at vm.swap_idle_enabled. With that option enabled,
    the VM system is more proactive in swapping out idle processes,
    rather than waiting for a low-memory situation to materialize
    before taking action.
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Michael Bushkov: "lookupd 0.2a"

    Relevant Pages

    • Re: Kernel hang on 6.x
      ... sysctl: unknown oid 'kern.maxswzone' ... round this up to a multiple of 288 (because the kernel rounds it down to ... a multiple of 288), so I'd use a value of at least 153405792. ... RAM just to hold metadata for your swap. ...
      (freebsd-hackers)
    • Re: System crashing when swap hits 25%
      ... If you want to set something with sysctl, ... swap file and performance is amazing. ... rather than the usual 2 or 3 apps with a few browser tabs open ... when things hang, at the moment I have: ...
      (Fedora)
    • Re: Kernel hang on 6.x
      ... sysctl: unknown oid 'kern.maxswzone' ... a multiple of 288), so I'd use a value of at least 153405792. ... RAM just to hold metadata for your swap. ... the kernel printf you added ...
      (freebsd-hackers)
    • Re: swap zone exhausted, increase kern.maxswzone
      ... sysctl: unknown oid 'kern.maxswzone' ... Limits the amount of KVM to be used to hold swap meta ... port a maximum of 14GB of configured swap. ...
      (freebsd-stable)
    • documentation on sysctl vm.defer_swapspace_pageouts?
      ... where can I find documentation on the vm.defer_swapspace_pageouts ... LINT only mentions it, without explaining, man sysctl doesn't ... and even Google yields very few useful results... ...
      (freebsd-hackers)