View Single Post
ste-phan's Avatar
Posts: 1,197 | Thanked: 2,710 times | Joined on Jan 2010 @ Hanoi
#279
Originally Posted by sixwheeledbeast View Post
You sound like you have setup the swap partitions correctly.

Flopswap controls which partitions are active it will never try to strip them. So you will start on your device swap if you are using version <=0.1.9, later versions I have made flopswap enable the "Use External Swap on boot" option in the menu as a default.

If you are still having trouble can you pastebin or post the output of

Code:
blkid | grep swap     ##(needs root)
dpkg-query -W -f='${Version}\n' upstart
dpkg-query -W -f='${Version}\n' flopswap
cat /etc/default/mount-opts-overwrite
cat /etc/default/mount-opts
cat /etc/fstab

Thank you for your suggestion! It seemed my card (Sandisk) was corrupt

First I rechecked with GParted and noticed two exclamation marks near the swap partitions on the Swap partition.
Reformatted and it worked: flopswap detected the swap partitions.

Then I decided to torture test swap and started by opening aplication manager: spontaneous reboot -> no more applications listed in application manager

The device started to behave erratically and reboot and again-> next reboot I rushed to FlopSwap to move swap back to device!

This was an annoying as I had the option "use external swap on boot" checked and forgotten through previous attempts, so the device kept booting using an easily corruptible swap.

I am going to try with another card and post perceived performance.



Here is the result of the above code sequence, for anyone interested (of course now with swap on device):


Code:
BusyBox v1.10.2 (Debian 3:1.10.2.legal-1osso31+0cssu0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/home/user # blkid | grep swap     ##(needs root)
/dev/mmcblk1p2: UUID="46b9ea3f-0398-4d32-abbc-76d0fa108e2b" TYPE="swap" 
/dev/mmcblk1p3: UUID="18488e77-b6a0-41cb-94de-6f6c2ee80826" TYPE="swap" 
/dev/mmcblk0p3: TYPE="swap" 
/home/user # dpkg-query -W -f='${Version}\n' upstart
0.3.8-68+0cssu7
/home/user # dpkg-query -W -f='${Version}\n' flopswap
0.2.0
/home/user # cat /etc/default/mount-opts-overwrite
swap_sd="0"
/home/user # cat /etc/default/mount-opts
# !!! Do not edit this file. It can be overwritten in next update !!!
# !!! Instead create and edit file /etc/default/mount-opts-overwrite !!!

# Options for mounting all filesystems
common_opts="noatime,nodiratime"

# Options for mounting root's filesystems (/, /home)
root_opts="errors=continue,commit=1,data=writeback"

# Options for mounting user's filesystems (MyDocs, SD cards, ...)
user_opts="noauto,nodev,exec,nosuid"

# Options for swap partitions
swap_opts=""

# Options for different filesystems
vfat_opts="utf8,uid=29999,shortname=mixed,dmask=000,fmask=0000,rodir"
ntfs_opts="nls=utf8,uid=29999,umask=0000"

# Renerate fstab at boot time in /etc/event.d/rcS-late
genfstab="1"

# When generating fstab add also swap partitions from SD card (if exists)
swap_sd="0"

# Call fsck -p for /home at boot time in /etc/event.d/rcS-late
home_fsck="1"

# Call fsck -p for user's partitions (MyDocs, SD cards, ...)
user_fsck="1"

# Include overwrite file
if [ -f /etc/default/mount-opts-overwrite ]; then
	. /etc/default/mount-opts-overwrite
fi
/home/user # cat /etc/fstab
# This file was generated by script /etc/event.d/rcS-late
# !!! Do not edit this file. It will be overwritten in next device startup !!!
# If you want static /etc/fstab add genfstab="0" to file /etc/default/mount-opts-overwrite
rootfs / rootfs rw 0 0
ubi0:rootfs / ubifs rw,bulk_read,no_chk_data_crc 0 0
/dev/mmcblk0p2 /home ext3 noatime,nodiratime,errors=continue,commit=1,data=writeback 0 2
/home/opt /opt none bind 0 0
/dev/mmcblk0p1 /home/user/MyDocs vfat noatime,nodiratime,noauto,nodev,exec,nosuid,utf8,uid=29999,shortname=mixed,dmask=000,fmask=0000,rodir 0 2
/dev/mmcblk1p2 none swap sw 0 0
/dev/mmcblk1p3 none swap sw 0 0
/dev/mmcblk0p3 none swap sw 0 0
/home/user #
Edit: so I pushed the system a little bit and experience reasonable responsability, virtually unstuttering audio stream, workable front view and modrana.

Kept SD Swap partiiton 1 active.
Untill FlowSwap info said Fresh Swap Recommended
Used 1497 MB , 196% of 763MB
Conky reported about 300- 400 MB Swap used

Swapping partitions took a while!

-Conky
-five MicroB windows
-file manager
-internet radio over bluetooth
-Orechiette
-Xournal
-Frontview (still able to scan and size an image)
-Modrana
-WifiEye
-Sketch
-Cutetube
-Image Gallery
-Phone

Last edited by ste-phan; 2014-10-22 at 16:31.
 

The Following 2 Users Say Thank You to ste-phan For This Useful Post: