Re: Is there a way to make the pi use swap?

2018-09-15 Thread Gene Heskett
On Saturday 15 September 2018 16:16:24 Jeffrey Walton wrote: > On Fri, Sep 14, 2018 at 8:16 PM, Alan Corey wrote: > > My /etc/fstab just has > > /var/swap2 none swap sw 0 0 > > That's for a swap file which was made by dding 0s into it, then > > running mkswap. > > > > You'd replace /var/swap2 w

Re: Is there a way to make the pi use swap?

2018-09-15 Thread Jeffrey Walton
On Fri, Sep 14, 2018 at 8:16 PM, Alan Corey wrote: > My /etc/fstab just has > /var/swap2 none swap sw 0 0 > That's for a swap file which was made by dding 0s into it, then running > mkswap. > > You'd replace /var/swap2 with /dev/sda2 > > Sounds like you're just not loading it from your fstab. S

Re: Is there a way to make the pi use swap?

2018-09-15 Thread Gene Heskett
On Saturday 15 September 2018 11:04:37 Alan Corey wrote: > Make sure you have rootwait in your cmdline.txt. Just that word. It > tells the kernel to wait for a drive to spin up if needed. I had > several nasty hard crashes requiring repowering the Pi without it. It > would swap something out a

Re: Is there a way to make the pi use swap?

2018-09-15 Thread Alan Corey
Make sure you have rootwait in your cmdline.txt. Just that word. It tells the kernel to wait for a drive to spin up if needed. I had several nasty hard crashes requiring repowering the Pi without it. It would swap something out and expect to read it back instantly. Meanwhile the drive had gone

Re: Is there a way to make the pi use swap?

2018-09-15 Thread Gene Heskett
On Friday 14 September 2018 23:36:27 Gene Heskett wrote: > On Friday 14 September 2018 23:12:35 Alan Corey wrote: > > Yeah, vmstat shows me > > > > procs ---memory-- ---swap-- -io -system-- > > --cpu- r b swpd free buff cache si sobi > > bo in c