Is there a way to make the pi use swap?

2018-09-14 Thread Gene Heskett
Greetings; As I attempt to go beyond the original setup on the pi 3b, which was to run linuxcnc on it. But since it has 1/2 its cpu power left over, I am finding the lack of memory to be a pita. Starting a camera application so I can calibrate out the errors in the lathes mechanics then kills

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

2018-09-14 Thread Alan Corey
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. Should load every boot. Nothing new or tricky there. On 9/14/18,

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

2018-09-14 Thread Gene Heskett
On Friday 14 September 2018 20:16:32 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.

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

2018-09-14 Thread Gene Heskett
On Friday 14 September 2018 20:56:28 Gene Heskett wrote: > On Friday 14 September 2018 20:16:32 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 wit

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

2018-09-14 Thread Alan Corey
I don't know about that, I think it's the same in the BSDs and they don't have udev. It's maybe more memory than file. vmstat should show it, and I think there's a swapctl, but those are optionally installed things. If you use Firefox you probably need it: KiB Mem : 949444 total,30988 free

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

2018-09-14 Thread Gene Heskett
On Friday 14 September 2018 21:39:02 Alan Corey wrote: > I don't know about that, I think it's the same in the BSDs and they > don't have udev. It's maybe more memory than file. > > vmstat should show it, and I think there's a swapctl, but those are > optionally installed things. > vmstat seems t

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

2018-09-14 Thread Alan Corey
Yeah, vmstat shows me procs ---memory-- ---swap-- -io -system-- --cpu- r b swpd free buff cache si sobibo in cs us sy id wa st 0 1 423424 43348 16380 21282800 6 632 8 1 92 0 0 Do you have the sw field in your

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

2018-09-14 Thread Gene Heskett
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 sobibo > in cs us sy id wa st 0 1 423424 43348 16380 21282800 > 6