Notices


Reply
Thread Tools
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#241
I have not been able to confirm if /proc/diskstats can report more than 32 bits.
I am pretty happy with FlopSwap now.

Therefore, I have pushed it to testing, please rate. Thanks
http://maemo.org/packages/package_in...lopswap/0.1.9/
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 4 Users Say Thank You to sixwheeledbeast For This Useful Post:
TomJ's Avatar
Posts: 505 | Thanked: 665 times | Joined on Oct 2009
#242
I have 4 partions on SD set up as so:

Code:
   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/mmcblk1p1          0+  62499   62500-   1999992    c  W95 FAT32 (LBA)
/dev/mmcblk1p2      62500  200467  137968    4414976   83  Linux
/dev/mmcblk1p3     224882  249295   24414     781248   82  Linux swap / Solaris
/dev/mmcblk1p4     200468  224881   24414     781248   82  Linux swap / Solaris
FlopSwap doesn't seem able to see them. Is there something else I need to do to get them noticed?
__________________
Want to know how to add public holidays to your device calendar? See the instructions wiki page.

Want to improve the location bar's search capabilities? there's a wiki page for that too...
 
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#243
Originally Posted by TomJ View Post
I have 4 partions on SD set up as so:

FlopSwap doesn't seem able to see them. Is there something else I need to do to get them noticed?
Originally Posted by TomJ
Originally Posted by sixwheeledbeast
How did you get on with Flopswap and your modified boot settings. I didn't find what had been changed from stock to try and help.
I have discovered what the porblem was; even though I told cfdisk under easy debian to make the partions swap, I still had to run mkswap to get them ready. Have now done so and everything's tickety-boo.

Thanks for getting back to me Tom.

Anyway another bump, need a few more votes to push to Extras.
http://maemo.org/packages/package_in...lopswap/0.1.9/
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#244
Flopswap now in Extras.
Thank you voters.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following 5 Users Say Thank You to sixwheeledbeast For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#245
Flopswap can't check status for me:
Code:
$ sudo /opt/flopswap/script/swapused.sh 
/dev/mmcblk1p2 /dev/mmcblk0p3
/dev/mmcblk1p2 mmcblk0p3
sh: mmcblk0p3: unknown operand
sh: mmcblk0p3: unknown operand
sh: mmcblk0p3: unknown operand
and says check only one swap is active
Flopswap is enabled in settings.

/edit: but /dev/mmcblk0p3 seems not to get disabled. weird...
/edit2: and `sudo start relocateswap` returns 1
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-07-16 at 12:33.
 
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#246
Originally Posted by marmistrz View Post
Flopswap can't check status for me:
Code:
$ sudo /opt/flopswap/script/swapused.sh 
/dev/mmcblk1p2 /dev/mmcblk0p3
/dev/mmcblk1p2 mmcblk0p3
sh: mmcblk0p3: unknown operand
sh: mmcblk0p3: unknown operand
sh: mmcblk0p3: unknown operand
and says check only one swap is active
This is correct flopswap calculates swap used on the active swap, therefore only one must be active not two.

Originally Posted by marmistrz View Post
Flopswap is enabled in settings.
Good this is correct.
Have you setup two swap partitions on the uSD like in the wiki?
http://wiki.maemo.org/Flopswap#Partition_Requirements
http://wiki.maemo.org/Flopswap#FAQ

If you have issues after fixing your partitions and rebooting, please post output of
Code:
blkid | grep swap     -- ( need 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
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#247
Originally Posted by sixwheeledbeast View Post
This is correct flopswap calculates swap used on the active swap, therefore only one must be active not two.


Good this is correct.
Have you setup two swap partitions on the uSD like in the wiki?
http://wiki.maemo.org/Flopswap#Partition_Requirements
http://wiki.maemo.org/Flopswap#FAQ

If you have issues after fixing your partitions and rebooting, please post output of
Code:
blkid | grep swap     -- ( need 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
I'm not sure whether they're equally sized, but their sizes are similar. But one of them is on eMMC, on of them on uSD. And I'd rather it stayed like this

Code:
Nokia-N900:~# blkid | grep swap     --
/dev/mmcblk1p2: UUID="4ca89a73-e144-40a2-92ee-6f5d4722addb" TYPE="swap" 
/dev/mmcblk0p3: UUID="d4a22705-08a3-4be5-91b1-90fe802ffb90" TYPE="swap" 
Nokia-N900:~# dpkg-query -W -f='${Version}\n' upstart
0.3.8-68+0cssu7
Nokia-N900:~# dpkg-query -W -f='${Version}\n' flopswap
0.1.9
Nokia-N900:~# cat /etc/default/mount-opts-overwrite
swap_sd="1"
Nokia-N900:~# 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
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here

Last edited by marmistrz; 2014-07-16 at 15:17.
 
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#248
Originally Posted by marmistrz View Post
I'm not sure whether they're equally sized, but their sizes are similar. But one of them is on eMMC, on of them on uSD. And I'd rather it stayed like this
Unfortunately flopswap needs and is designed purposely to use the two linux swap partitions on the card.

It doesn't have anywhere to flop to otherwise
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.

Last edited by sixwheeledbeast; 2014-07-16 at 15:21. Reason: fix quote box
 

The Following User Says Thank You to sixwheeledbeast For This Useful Post:
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#249
Originally Posted by sixwheeledbeast View Post
Unfortunately flopswap needs and is designed purposely to use the two linux swap partitions on the card.

It doesn't have anywhere to flop to otherwise
It has the internal swap to flop there (it should be disabled normally and enabled only for defrag)...

Could you add floping main -> secondary -> main,
with main = uSD swap, secondary = internal swap in the next release?
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 2,292 | Thanked: 4,135 times | Joined on Apr 2010 @ UK
#250
Originally Posted by marmistrz View Post
it should be disabled normally and enabled only for defrag
That is how ereswap works not flopswap.
Flopswap doesn't do that it is purposely designed to not use the device swap at all.
Not only does it reduce eMMC wear, it also takes half the amount of time and effort to refresh the swap. This is the whole method behind "flopswap".
eMMC is only manually used so you can remove the back cover.
__________________

Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -


Before posting or starting a thread please try this.
 
Reply


 
Forum Jump


All times are GMT. The time now is 12:13.