May dietpi save Pine64 ; watch youtube via chromium
#11
More "standard way" to create swap files is :

Code:
$ dd if=/dev/zero of=/path/to/swapfile bs=1M count=512 # For 512MB swap file
$ mkswap /path/to/swapfile
$ swapon /path/to/swapfile

"free" command will shows both real memory and swap.
  Reply
#12
(03-09-2017, 02:52 PM)martinayotte Wrote: More "standard way" to create swap files is :

Code:
$ dd if=/dev/zero of=/path/to/swapfile bs=1M count=512 # For 512MB swap file
$ mkswap /path/to/swapfile
$ swapon /path/to/swapfile

"free" command will shows both real memory and swap.
Thank you, martinayotte.  I suppose the DietPi devs had some sort of reason to go the other route.

In the course of trying to watch youtube videos, I notice that if I let them load while I put them on pause some (at least) will actually play normally (no stop-and-go/buffer catchup) eventually.  I'm still trying to figure out how the OP did it.
  Reply
#13
(03-09-2017, 07:20 AM)kenneth558 Wrote: Yes, I did but didn't think to include it because the swapon command produced no response.  My bad in not posting that info.  Thank you kindly for asking.  Did you enable swap via fstab instead?  

I run 1GB/2GB boards headless, so haven't run into any memory issues as yet, so I haven't needed to enable swap space on the pine64 (yet!) Wink

martinayotte has since posted the way I would normally create and enable swap files. When working with swap partitions, you still use the mkswap command to prepare the swap space and swapon to enable it. And you can add either the file or partition version of swap space to the /etc/fstab line in order to make it persistent across reboots.

You would add (using the correct path instad of /dev/hdb1) the following to /etc/fstab for a swap partition...

Code:
/dev/hdb1       none    swap    sw      0       0

... or the below (again, replacing /swapfile with the path to the swapfile) for a swapfile.

Code:
/swapfile       none    swap    sw      0       0

This article may help if anyone wants to learn more about the reasons for and how to make swap files/partitions.
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Emails from pine64 received as spam by gmail Matan 2 107 08-21-2019, 08:30 AM
Last Post: Leiaz
  PINE64 Installer - Simple Way to Image Your MicroSD pineadmin 100 28,704 08-05-2019, 01:24 AM
Last Post: pineadmin
  How to handle a Pine64 correctly gbjensen 6 5,195 03-28-2019, 11:43 PM
Last Post: InsideJob
  Dietpi marekf 1 143 03-22-2019, 01:49 PM
Last Post: Violette
Information Creating a NAS server in Pine64 javi_cala 4 1,912 01-21-2019, 02:03 AM
Last Post: bartes
  The 6 most common reasons why Pine64 won't boot Andrew2 109 64,761 10-11-2018, 11:35 PM
Last Post: Technolab88
  Pine64 installer way slow flashing Paraplegic Racehorse 2 380 01-10-2018, 04:05 PM
Last Post: dkryder
  Pine64 Ubuntu Mate No Sound adamjedgar 3 863 11-06-2017, 02:53 AM
Last Post: Luke
  Upgrading Memory on PINE64 + 2GB Osh818 2 1,166 04-24-2017, 10:12 PM
Last Post: Osh818
  Mini-Tutorial to get a linux Desktop GUI working on Pine64+ speedro86 15 6,574 04-05-2017, 01:45 PM
Last Post: speedro86

Forum Jump:


Users browsing this thread: 1 Guest(s)