![]() |
2014-10-20
, 19:01
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#271
|
The Following User Says Thank You to misiak For This Useful Post: | ||
![]() |
2014-10-21
, 14:37
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#272
|
Everything makes sense and is clear, except the objection misiak proposed (I actually thought about this before I even saw his response).
It seems (at first sight, anyway) that the percentage of fresh swap remaining should be <= the total amount of swap space remaining reported by free.
But I'm sure I'm wrong and you will clarify things.
EDIT: One way I see this being possible is if the way FlopSwap works is by partitioning the swap space. So you might keep internally a cursor where you start writing sequentially (which is set for example when you make a fresh swap), but which is different of how free swap space is calculated by the free command.
Just speculating.
Each block is 512 bytes.
You have to divide by 2 to get kB.
And then of course by 2048 to get MB.
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-10-21
, 18:47
|
Posts: 330 |
Thanked: 556 times |
Joined on Oct 2012
|
#273
|
![]() |
2014-10-21
, 19:58
|
Posts: 330 |
Thanked: 556 times |
Joined on Oct 2012
|
#274
|
![]() |
2014-10-21
, 20:00
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#275
|
The Following 3 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-10-21
, 20:47
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#276
|
The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-10-22
, 07:46
|
|
Posts: 1,197 |
Thanked: 2,710 times |
Joined on Jan 2010
@ Hanoi
|
#277
|
![]() |
2014-10-22
, 11:07
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#278
|
Just got a new 64GB in and learned about his program only this week.
With GParted I have formatted first P1 (Ext4) and P2 and P3 linux swap of each +/- 800 MB, at the end of the disc.
FlopSwap reports only /dev/mmcblk0p3 (built in memory swap partition)
No other swap space available.
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
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2014-10-22
, 11:39
|
|
Posts: 1,197 |
Thanked: 2,710 times |
Joined on Jan 2010
@ Hanoi
|
#279
|
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
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 #
The Following 2 Users Say Thank You to ste-phan For This Useful Post: | ||
![]() |
2014-10-22
, 15:20
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#280
|