Re: swapfile query

2017-08-20 Thread Cy Schubert
In message <201708210241.v7l2ftcf073...@donotpassgo.dyslexicfish.net>, Jamie La ndeg-Jones writes: > > 3. should total swap be 1x 2x or some other multiple of RAM these days? > > According to tuning(7) : > > | SYSTEM SETUP - DISKLABEL, NEWFS, TUNEFS, SWAP > | The swap partition should

Re: swapfile query

2017-08-20 Thread Jamie Landeg-Jones
> 3. should total swap be 1x 2x or some other multiple of RAM these days? According to tuning(7) : | SYSTEM SETUP - DISKLABEL, NEWFS, TUNEFS, SWAP | The swap partition should typically be approximately 2x the size of | main memory for systems with less than 4GB of RAM, or approximately |

Re: swapfile query

2017-08-20 Thread Stefan Esser
Am 20.08.17 um 01:39 schrieb Greg 'groggy' Lehey: >> 3. should total swap be 1x 2x or some other multiple of RAM these days? > > It never needed to be. The only issue is that if you want processor > dumps, you once needed a swap partition (and not a swap file) at least > marginally larger than

Re: swapfile query

2017-08-20 Thread John Baldwin
On Saturday, August 19, 2017 06:08:29 PM tech-lists wrote: > On 19/08/2017 17:54, Cy Schubert wrote: > > Then it doesn't matter if you use one or many swapfiles and deleting the 4 > > GB won't make a difference. Just add the desired swap as required. > > > > With 128 GB RAM you shouldn't be

Re: swapfile query

2017-08-20 Thread tech-lists
On 20/08/2017 08:22, Gary Jennejohn wrote: > Depends. I have vm.pageout_update_period=0 in /etc/sysctl.conf > and scan rate (sr) really does reflect the true scan rate. On > my system sr is 0 while the system is idle. > > As an aside, my system (8GB RAM) hardly ever swaps, even under > heavy

Re: swapfile query

2017-08-20 Thread tech-lists
On 19/08/2017 22:00, Cy Schubert wrote: > An easy way to find out is to run top, type in "w", then "o" and "swap" to > see which processes are using swap. You'll notice that the numbers won't > add up. I haven't looked at this but my guess is that there may be swap > leak. You can verify this

Re: swapfile query

2017-08-20 Thread Gary Jennejohn
On Sat, 19 Aug 2017 15:38:15 -0700 Cy Schubert wrote: > In message <20170819213149.GA34140@raichu>, Mark Johnston writes: > > On Sat, Aug 19, 2017 at 02:24:19PM -0700, Cy Schubert wrote: > > > In message <201708192100.v7jl0vfk003...@slippy.cwsent.com>, Cy Schubert >

Re: swapfile query

2017-08-19 Thread Greg 'groggy' Lehey
On Saturday, 19 August 2017 at 16:00:28 +0100, tech-lists wrote: > Hello list, > > (freebsd-current is r317212 on this machine) > > I have a machine with 128GB RAM. When 12-current was installed, for some > reason the swap partition was set to 4GB. I see sometimes via top and > also via daily

Re: swapfile query

2017-08-19 Thread Cy Schubert
In message <20170819213149.GA34140@raichu>, Mark Johnston writes: > On Sat, Aug 19, 2017 at 02:24:19PM -0700, Cy Schubert wrote: > > In message <201708192100.v7jl0vfk003...@slippy.cwsent.com>, Cy Schubert > > writes: > > > > > (On my -CURRENT laptop I see a scan rate in the hundreds on a totally

Re: swapfile query

2017-08-19 Thread Mark Johnston
On Sat, Aug 19, 2017 at 02:24:19PM -0700, Cy Schubert wrote: > In message <201708192100.v7jl0vfk003...@slippy.cwsent.com>, Cy Schubert > writes: > > > (On my -CURRENT laptop I see a scan rate in the hundreds on a totally idle > > laptop and in the teens of my idle firewall. IMO this doesn't

Re: swapfile query

2017-08-19 Thread Cy Schubert
In message <201708192100.v7jl0vfk003...@slippy.cwsent.com>, Cy Schubert writes: > (On my -CURRENT laptop I see a scan rate in the hundreds on a totally idle > laptop and in the teens of my idle firewall. IMO this doesn't seem right, > at least not compared to previous releases of FreeBSD or

Re: swapfile query

2017-08-19 Thread Cy Schubert
In message , tech-lists writes: > On 19/08/2017 17:54, Cy Schubert wrote: > > Then it doesn't matter if you use one or many swapfiles and deleting the 4 > > GB won't make a difference. Just add the desired swap as required. > > > > With 128 GB RAM

Re: swapfile query

2017-08-19 Thread Cy Schubert
In message , David Chisnall w rites: > On 19 Aug 2017, at 17:54, Cy Schubert wrote: > > > >> 3. should total swap be 1x 2x or some other multiple of RAM these days? > > > > Depends. If you're running some kind of

Re: swapfile query

2017-08-19 Thread David Chisnall
On 19 Aug 2017, at 17:54, Cy Schubert wrote: > >> 3. should total swap be 1x 2x or some other multiple of RAM these days? > > Depends. If you're running some kind of database server or OLTP > application. Some vendors recommend no swap whatsoever while others >

Re: swapfile query

2017-08-19 Thread tech-lists
On 19/08/2017 17:54, Cy Schubert wrote: > Then it doesn't matter if you use one or many swapfiles and deleting the 4 > GB won't make a difference. Just add the desired swap as required. > > With 128 GB RAM you shouldn't be swapping anyway. If your system is you > have more serious problems than

Re: swapfile query

2017-08-19 Thread Cy Schubert
In message <77fdd002-2873-eb67-c851-0127ae314...@zyxst.net>, tech-lists writes: > Hello list, > > (freebsd-current is r317212 on this machine) > > I have a machine with 128GB RAM. When 12-current was installed, for some > reason the swap partition was set to 4GB. I see sometimes via top and >

swapfile query

2017-08-19 Thread tech-lists
Hello list, (freebsd-current is r317212 on this machine) I have a machine with 128GB RAM. When 12-current was installed, for some reason the swap partition was set to 4GB. I see sometimes via top and also via daily status reports that sometimes the machine runs out of swap. It doesn't crash the