03-08-2017, 06:52 PM
(This post was last modified: 03-08-2017, 07:02 PM by kenneth558.
Edit Reason: Found stated valid range
)
Quote:hatahatanow i set swap as 16GB(USB hard disk ) .
youtube is smooth .
--------------------------
regards
I sure do want to watch youtubes like you. I don't know why I only get stop-and-go response of the videos. When I try to specify the amount of swap that you're using:
Code:
root@DietPi:~# dphys-swapfile setup
want /mnt/8ccd4c9a-baa0-4717-83e3-ff582354a048/.swapfile=28000MByte, restricting to config limit: 2048MBytes, (etc...)
So apparently I have the maximum size swap file I am allowed at about 2Gb. The stated valid range goes up to 2000Mb only. I am using a 32Gb USB Kingston flash drive (dedicated, with a formatted swap fs). Running the mount command does NOT show my flash drive mounted, but the free, blkid, and cat /proc/swaps commands show:
Code:
root@DietPi:~# free
total used free shared buffers cached
Mem: 2036460 262112 1774348 10356 18116 132948
-/+ buffers/cache: 111048 1925412
Swap: 2097148 0 2097148
root@DietPi:~# blkid|grep sdb
/dev/sdb1: UUID="8ccd4c9a-baa0-4717-83e3-ff582354a048" TYPE="swap" PARTUUID="e35da128-01"
root@DietPi:~# cat /proc/swaps
Filename Type Size Used Priority
/mnt/8ccd4c9a-baa0-4717-83e3-ff582354a048/.swapfile file 2097148 0 -1
This is a new u-SD card, freshly imaged and installed with your options, except that I'm not using a pi user, just root. Could that be my problem? I wasn't really clear on your step of adding the pi user and changing (?) that rc init file. That rc init file doesn't exist on my system.
Any ideas? Thanks!