Date: Sun, 09 Sep 2018 12:40:03 +0000 From: Lorenzo Salvadore <phascolarctos@protonmail.ch> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: swap config Message-ID: <Ft-rBYuwEG1UY7W3ryi-9xyLUkJ-kWvDx5YZcA8nLPqT43G-zQDnwYgstFaHx0NHBU-_3ItMNzjvTHbPfoRs0M3bfc4gUN-VoxI1oxi4KPQ=@protonmail.ch> In-Reply-To: <goQ6cy3nzG0mwIpbkUqxh1oUx_fBt0-pu1Q0e5cDUXJ6bqU78vCkuT6vak620ohxdpOtwEgleHeRChJpC6_iLHPyfWP686gV8AMUaC8islU=@protonmail.ch> References: <10538979.gLySxXtyIk@chameleon.friedrich.org> <goQ6cy3nzG0mwIpbkUqxh1oUx_fBt0-pu1Q0e5cDUXJ6bqU78vCkuT6vak620ohxdpOtwEgleHeRChJpC6_iLHPyfWP686gV8AMUaC8islU=@protonmail.ch>
next in thread | previous in thread | raw e-mail | index | archive | help
> My system has 16GB of memory, so I multiplied that by 4 to get 64GB. > I created a swap partition of 64GB. > When I boot, I get: > warning: total configured swap (16777216 pages) exceeds maximum recommend= ed > amount (986928 pages). > warning: increase kern.maxswzone or reduce amount of swap. > I tried adding kern.maxswzone to /boot/loader.conf but it complains no ma= tter > what value I set. > What should I do? I'm not actually swapping, since I have so much memory,= so > I could turn swap off and re-create the swap partition. > Correct? The swap space you reserve depends of course on what you do with your compu= ter, however 64GB, whatever your use is and whatever the formula you used to determine this is, seems huge to me. Keep in mind that 1. as you say, you already have 16GB of RAM and you are not swapping, henc= e you are waisting 64GB of HD; 2. swap is slow: if you ever happen to need that much swap space, then you= would better have a very fast computer to still use it! I.e. a very fast disk= access (cpu speed is secondary), and I doubt normal computers are able to reach suc= h high speeds. I would suggest you turn off swap completely, without recreating any swap p= artition. In alternative, you could use a zfs filesystem, which would allow you to si= ze your swap space dynamically as you need it and you could still set maxium a= nd minimum swap space if you wanted. Lorenzo Salvadore.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Ft-rBYuwEG1UY7W3ryi-9xyLUkJ-kWvDx5YZcA8nLPqT43G-zQDnwYgstFaHx0NHBU-_3ItMNzjvTHbPfoRs0M3bfc4gUN-VoxI1oxi4KPQ=>