From 90aa054db82f3b3dd0115267cac1c5647f7936b9 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 28 Dec 2016 12:03:36 -0800 Subject: [PATCH] kernel - Cleanup swap comments * Cleanup some incorrect comments --- sys/vm/swap_pager.c | 2 +- sys/vm/swap_pager.h | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index bf2cbfbc81..8597b70da7 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -393,7 +393,7 @@ swap_pager_swap_init(void) /* * The zone is dynamically allocated so generally size it to - * maxswzone (32MB to 512MB of KVM). Set a minimum size based + * maxswzone (32MB to 256GB of KVM). Set a minimum size based * on physical memory of around 8x (each swblock can hold 16 pages). * * With the advent of SSDs (vs HDs) the practical (swap:memory) ratio diff --git a/sys/vm/swap_pager.h b/sys/vm/swap_pager.h index 491f0e3493..6ad21d68f6 100644 --- a/sys/vm/swap_pager.h +++ b/sys/vm/swap_pager.h @@ -61,9 +61,10 @@ #define SWB_NPAGES 16 /* - * Piecemeal swap metadata structure. Swap is stored in a hash table. + * Piecemeal swap metadata structure. Swap is stored in a RBTREE. Swap + * blocks are page-sized. e.g. block 1 is offset +4096 from block 0. * - * Storage use is ~1:16384 or so. + * ram:swap is around 1:341 * * Overall memory utilization is about the same as the old swap structure. */ -- 2.11.4.GIT