maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   additional swap file (https://talk.maemo.org/showthread.php?t=86752)

Hacker 2013-05-04 17:50

Hmmm, I already do plenty of things that might shorten the life of my N9, like overclocking, using it in juggling acts, etc.

This tweak would be par for the course. ;)

nbedford 2013-05-07 09:26

Re: additional swap file
 
People keep talking about mtd4 NAND-FLASH partition wearing out, anyway to tell if that happens?

juiceme 2013-05-07 10:19

Re: additional swap file
 
Well, flash memory characteristics are such that a byte value can be written to any location but when a byte location needs to be zeroed, it has to be done in "chunks" or erasepages where each page is several kilobytes in size.

This means that each time a single memory location changes, the whole page needs to be copied to another page (and then only the changing byte is changed) and after that the old page is ready to be erased.
Each page can only ever be erased a number ot times, something aroung 10k, before it wears out so that some bytes are either stuck to one or zero.

Because swap memory faces lots of write/erase cycles when the device starts swapping, it will start to wear the erasepages at speed.

The balancing mechanisms in the flash memory lock out the "burned" erase pges, which means that the more get burned, the faster is the rate that the rest of the pages start cycling, and thus burning ever faster and faster.

coderus 2013-05-27 04:45

Re: additional swap file
 
@rainisto and other geeks:
if we just repack system-services package to include modified .conf file and then install it via inception, will it work on stock kernel devices? it will automatically remake all aegis hashes as signed system update package installed.
Am i right?
And then if we want to revert it we can just reinstall system-services from nokia repository.

Please confirm this or not.

rainisto 2013-05-27 04:53

Re: additional swap file
 
In order to revert you need to install your custom package with com.nokia.maemo-origin, and not by default inception com.nokia.maemo/local-origin. But yes custom package will work on stock devices if you keep that limitation in mind.

coderus 2013-05-27 06:16

Re: additional swap file
 
well yes, downloading original package to apt cache and incepting it will work

TonyUkuk 2013-10-16 18:10

Re: additional swap file
 
Quote:

RM696-21-3_PR_001:~# accli -I |grep tcb-sign
aegis-enabler::tcb-sign <--- If grep doesn't find this line then you have to STOP and not go further.
what can i do bro if grep doesn't find? here is output

Code:

~ # opensh
sh: opensh: not found
~ # cd /home/user/MyDocs/Documents/
/home/user/MyDocs/Documents # dpkg -i opensh.de
b
Package opensh has package signature (origin '')
Selecting previously deselected package opensh.
(Reading database ... 45983 files and directories currently installed.)
Unpacking opensh (from opensh.deb) ...
aegis-installing opensh (from '')
Setting up opensh (1.00) ...
/home/user/MyDocs/Documents # opensh
BusyBox v1.20.0.git (MeeGo 3:1.20-0.2+0m8) built-in shell (ash)
Enter 'help' for a list of built-in commands.
/home/user/MyDocs/Documents # accli -l |grep tc
b-sign
accli: option requires an argument -- 'l'
/home/user/MyDocs/Documents # accli -I |grep tc
b-sign
/home/user/MyDocs/Documents # aegis-enabler::tc
b-sign
sh: aegis-enabler::tcb-sign: not found
/home/user/MyDocs/Documents #

Edit: solved,using openmode kernel+aegis-installer-hack. after this i get the output which is requeres

gipawu 2013-12-15 11:04

Re: additional swap file
 
Is there any way to completely disable swap?

juiceme 2013-12-15 15:45

Re: additional swap file
 
Quote:

Originally Posted by gipawu (Post 1396737)
Is there any way to completely disable swap?

/sbin/swapoff /dev/ramzswap0

tioubxancur 2015-12-18 14:42

Re: additional swap file
 
i recently started using mtd4 for swap. Will this cause major problems in the long run?
How do these mtd devices work? as in is this mtd4 a partition of a bigger flash storage or a separate device altogether. So even if swapping wears it out, will the whole flash storage be unusable or only mtd4 and i can stop swapping there and keep using the n9 like before?


All times are GMT. The time now is 00:10.

vBulletin® Version 3.8.8