Active Topics

 


Reply
Thread Tools
Posts: 649 | Thanked: 762 times | Joined on Mar 2012 @ Ohio
#11
Originally Posted by peterleinchen View Post
Then what?

The output states that you have 256M of swap (ramzwap). Stock configuration.

I do not know the details, but if ancelad created a swap file it should show up here. (assuming you installed swap management)
I'm not sure either. I have swap management installed, and it tells me (even after restart) that my swap is not at 768mb. Maybe there is another way to check for other SWAP?
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#12
Originally Posted by Ancelad View Post
I often have situations, then I have about 50 mb RAM and ~400 mb (from 768) of SWAP free... With 255 mb SWAP my device works slower than with 768 mb...

Additional space - from rootfs.

Code:
dd if=/dev/zero of=myswapfile bs=1M count=513
So, I think, old-ubiboot users can sleep quietly...
Might work for some time, before your flash evoporates in smoke

There's a really good reason why flash-based devices do not use flash as swap area; swap is one of those things which cause lots of rewrites to the file, and with flash this means that every block written needs to consume a new erasepage. The memory controller is constantly copying data off the old pages and onto the new pages. Since each page only has a lifetime of about 10^5 erase cycles that will run out pretty quickly.

Even worse, the memory controller will perform wear leveling when the blocks your file was originally written to start burning through, thus using up and eventually burning the rest of the flash memory of your device
 

The Following User Says Thank You to juiceme For This Useful Post:
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#13
Originally Posted by juiceme View Post
Might work for some time, before your flash evoporates in smoke

There's a really good reason why flash-based devices do not use flash as swap area; ...
Yep, you are fully right.

But:
on N900 we have swap set default to mmcblk0p3 (internal flash). And I do not know about any device starving from that ...
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Ancelad's Avatar
Posts: 1,552 | Thanked: 3,108 times | Joined on Jun 2012 @ Russia, 96
#14
Originally Posted by imaginaryenemy View Post
Thank you for this. I am excited to see if there is any performance increase.

I use Drop Cache, and in that program it still has the SWAP listed at a maximum of 255mb available. I'm assuming that has more to do with the app than an actual reading of available SWAP. How to I check available swap from the command line, since my usual way is not giving a proper reading?
Have you change your opensudo password?
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#15
why you using opensudo here?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#16
Originally Posted by peterleinchen View Post
But:
on N900 we have swap set default to mmcblk0p3 (internal flash). And I do not know about any device starving from that ...
oo I never knew that! Really truly so?
What's the implementation of the FS layer there, does the swap sit on bare silicon or does it have some layers under it (ubifs, jffs, something?)
 
Posts: 649 | Thanked: 762 times | Joined on Mar 2012 @ Ohio
#17
Originally Posted by Ancelad View Post
Have you change your opensudo password?
No. At least not knowingly...
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#18
Originally Posted by juiceme View Post
oo I never knew that! Really truly so?
What's the implementation of the FS layer there, does the swap sit on bare silicon or does it have some layers under it (ubifs, jffs, something?)
No idea
How to check? (looks like it is made with standard 'mkswap /dev/mmcblk0p3')
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
peterleinchen's Avatar
Posts: 4,118 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#19
Originally Posted by coderus View Post
why you using opensudo here?
Same question I asked him and answer was
"mkswap does not work without sudo/opensudo"
As I am on OpenKernel I can not verify it, but may believe that crippled aegis hinders (iirc mount also needed open mode)
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,700 times | Joined on Nov 2011 @ Ängelholm, Sweden
#20
it's better to write proper aegis manifest and install package with aegis-installer or openmode
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Reply


 
Forum Jump


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