The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2012-07-17
, 12:36
|
Posts: 78 |
Thanked: 24 times |
Joined on Feb 2012
@ Moscow
|
#102
|
I do not have the truth for you, just assumption, that disabling eMMC swap for some N900s leads to unpredictable behaviour.
Please see my posts in compcache/ramzwap thread.
![]() |
2012-07-17
, 21:04
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#103
|
![]() |
2012-07-18
, 06:40
|
Posts: 805 |
Thanked: 1,605 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#104
|
The Following 3 Users Say Thank You to misiak For This Useful Post: | ||
![]() |
2012-07-18
, 07:33
|
Posts: 78 |
Thanked: 24 times |
Joined on Feb 2012
@ Moscow
|
#105
|
But there is no reason for "glitch" to disappear
I have atm another SD card with real partition and my glitch appeared again once, but only once. It is a class 2 card, whereas the other was/is a class4.
So totally confusing...
![]() |
2012-07-18
, 17:15
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#106
|
![]() |
2012-07-20
, 11:41
|
|
Posts: 5,028 |
Thanked: 8,613 times |
Joined on Mar 2011
|
#107
|
The Following 2 Users Say Thank You to Estel For This Useful Post: | ||
![]() |
2012-07-20
, 20:31
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#108
|
~# cat /proc/swaps Filename Type Size Used Priority /dev/mmcblk0p3 partition 786424 12680 -1 /dev/mmcblk1p3 partition 786424 261084 2
![]() |
2012-07-22
, 19:12
|
Posts: 2,292 |
Thanked: 4,135 times |
Joined on Apr 2010
@ UK
|
#109
|
Sure there is. Here, for your convenience
Code:if [ `id -u` != 0 ] ; then exec sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi
if [ `id -u` != 0 ] ; then exec | sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi
The Following User Says Thank You to sixwheeledbeast For This Useful Post: | ||
![]() |
2012-07-22
, 21:55
|
|
Posts: 4,118 |
Thanked: 8,901 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#110
|
#!/bin/sh # executing a shell script given as parameter(s) as root if [ `id -u` != 0 ] ; then exec sudo gainroot <<EOF exec sh $0 $* EOF exit $? fi # own shell code from here
I don't think large swaps have a benefit.
When fragmentation occurs, swapoff will take forever.
The Following 6 Users Say Thank You to peterleinchen For This Useful Post: | ||
Automatic Re-swapping can cause problems if your in the middle of something.
My method has a separate event.d file (which I personally prefer over editing rcS-late)
The two scripts you mention in your method are the same as Ereswap (currently in devel) wiki.maemo.org/Ereswap
My method has one script to switch swap (automatically forcing onto uSD if not already)
The other script is to switch to internal swap so the uSD/back cover can be removed.
If you have Swap on uSD removing the back cover will (in the words of vi_) insta-unmount your swap, which is like pulling a RAM stick out of a desktop. My script is useful for if I need to get in the back while powered up.
IIRC (from something I read on TMO) the swapon/swapoff is better done with the N900 unlocked.
Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap - Qnotted - zzztop - Bander - Fight2048 -
Before posting or starting a thread please try this.