| The Following 2 Users Say Thank You to sixwheeledbeast For This Useful Post: | ||
|
|
07-17-2012
, 08:36 AM
|
|
Posts: 76 |
Thanked: 19 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.
|
|
07-17-2012
, 05:04 PM
|
|
|
Posts: 996 |
Thanked: 1,204 times |
Joined on Aug 2010
@ Ruhrgebiet, Germany
|
#103
|

|
|
07-18-2012
, 02:40 AM
|
|
Posts: 574 |
Thanked: 903 times |
Joined on Feb 2010
@ Gdynia, Poland
|
#104
|
| The Following 3 Users Say Thank You to misiak For This Useful Post: | ||
|
|
07-18-2012
, 03:33 AM
|
|
Posts: 76 |
Thanked: 19 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...
|
|
07-18-2012
, 01:15 PM
|
|
Posts: 1,433 |
Thanked: 2,089 times |
Joined on Apr 2010
@ St. Helens, England
|
#106
|
|
|
07-20-2012
, 07:41 AM
|
|
|
Posts: 3,973 |
Thanked: 5,945 times |
Joined on Mar 2011
|
#107
|
), so I'm going to exploit big swaps very soon 
| The Following 2 Users Say Thank You to Estel For This Useful Post: | ||
|
|
07-20-2012
, 04:31 PM
|
|
|
Posts: 996 |
Thanked: 1,204 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
|
|
07-22-2012
, 03:12 PM
|
|
Posts: 1,433 |
Thanked: 2,089 times |
Joined on Apr 2010
@ St. Helens, England
|
#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: | ||
|
|
07-22-2012
, 05:55 PM
|
|
|
Posts: 996 |
Thanked: 1,204 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 5 Users Say Thank You to peterleinchen For This Useful Post: | ||
![]() |
| Thread Tools | Search this Thread |
|
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.
The stable-beast currently runs...
21.2011.38-1Smaemo6 (CSSU Stable)
2.6.28.10power52 (125-600Mhz SR VDD1&2)
Wiki Admin
sixwheeledbeast's wiki
Testing Squad Subscriber
- mcallerx - tenminutecore - FlopSwap -
Before posting in a thread please try this.
Before starting a new thread please try this.