Active Topics

 


Reply
Thread Tools
Posts: 499 | Thanked: 836 times | Joined on Jun 2012 @ Finland
#141
Hmm, everything seems to be working alright with my phone, but are my "swap" columns are not supposed to be showing zero, right?

From the few examples that people posted and what my other phone's "free" command I get the feeling that something went wrong. I did get a MALF warning but after that everything has worked normally

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.

Code:
~ $ free
             total         used         free       shared      buffers
Mem:       1008648       708512       300136            0        25688
-/+ buffers:             682824       325824
Swap:            0            0            0
~ $
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#142
Boxeri,

Seems like you didn't do the procedure correctly; do it over SSH in opensh again and it should be fine...
 
Posts: 499 | Thanked: 836 times | Joined on Jun 2012 @ Finland
#143
Yes, i was already also able to locate my error. Have to reflash, but it is ok, as this is my learning/practice device. Is nano the best to edit the lines?
 
Moderator | Posts: 6,215 | Thanked: 6,400 times | Joined on Nov 2011
#144
Originally Posted by Boxeri View Post
Yes, i was already also able to locate my error. Have to reflash, but it is ok, as this is my learning/practice device. Is nano the best to edit the lines?
Nano is the easiest if you are not familiar with vi
 
death_jax's Avatar
Posts: 326 | Thanked: 122 times | Joined on Sep 2012 @ Italy
#145
Originally Posted by Boxeri View Post
Hmm, everything seems to be working alright with my phone, but are my "swap" columns are not supposed to be showing zero, right?

From the few examples that people posted and what my other phone's "free" command I get the feeling that something went wrong. I did get a MALF warning but after that everything has worked normally

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.

Code:
~ $ free
             total         used         free       shared      buffers
Mem:       1008648       708512       300136            0        25688
-/+ buffers:             682824       325824
Swap:            0            0            0
~ $
I tried the procedure with Inception (in the past I tried it in Open Mode). At the beginning, the swap had regural MB, but after opened some applications (like games or browser), that MB went slowly down, and now I have 0 MB, also with applications closed, phone rebooted or turned off.
 
Posts: 697 | Thanked: 137 times | Joined on Jul 2012 @ Hillerød, DK
#146
Someone able to answer to this?
I don't understand but my swap seems never to be used after the change. Below is just after reboot.

BusyBox v1.21.0 (1.21.0power1+harmattan0) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ free
total used free shared buffers
Mem: 1008108 688284 319824 0 93476
-/+ buffers: 594808 413300
Swap: 422136 0 422136
~ $ free
total used free shared buffers
Mem: 1008108 702244 305864 0 95688
-/+ buffers: 606556 401552
Swap: 422136 0 422136
~ $ free
total used free shared buffers
Mem: 1008108 750712 257396 0 91228
-/+ buffers: 659484 348624
Swap: 422136 0 422136
__________________
OK
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#147
swap used whrn memory full.
try to open 20+ applications and check swap then
__________________
Telegram | Openrepos | GitHub | Revolut donations
 

The Following User Says Thank You to coderus For This Useful Post:
Posts: 697 | Thanked: 137 times | Joined on Jul 2012 @ Hillerød, DK
#148
Originally Posted by coderus View Post
swap used whrn memory full.
try to open 20+ applications and check swap then
Of course, thanks!
__________________
OK
 
Posts: 6 | Thanked: 0 times | Joined on Dec 2011
#149
Originally Posted by rainisto View Post
I made more advanded tutorial howto enable the unused mtd partition as swap. With this method you can freely still use the mass-storage mode.

Disclaimer: you can brick your device if you don't have opensh and don't follow instructions carefully.

RM696-21-3_PR_001:~# devel-su
RM696-21-3_PR_001:~# opensh
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.
RM696-21-3_PR_001:~# free
total used free shared buffers
Mem: 1008648 803080 205568 0 33580
-/+ buffers: 769500 239148
Swap: 262136 54012 208124
RM696-21-3_PR_001:/# cp /etc/init/enable-swap.conf /tmp/enable-swap.conf
RM696-21-3_PR_001:/# vi /tmp/enable-swap.conf
# make editions on 2 lines that is mentioned in my earlier patch that I posted here. http://pastebin.com/raw.php?i=8rS81vUX
RM696-21-3_PR_001:/# cp /tmp/enable-swap.conf /etc/init/enable-swap.conf
RM696-21-3_PR_001:/# export A=`sha1sum /tmp/enable-swap.conf |cut -b1-40`;
RM696-21-3_PR_001:/# perl -pi -w -e 's#40 (.*) A(.*)enable-swap#40 $ENV{A} A$2enable-swap#smg' /var/lib/aegis/refhashlist
RM696-21-3_PR_001:/# accli -c tcb-sign -F /var/lib/aegis/refhashlist -i /var/lib/aegis/refhashlist
RM696-21-3_PR_001:/# /usr/sbin/validator-init; aegis-loader;echo 1 > /sys/kernel/security/validator/flush
RM696-21-3_PR_001:~# reboot
# wait system to reboot and login again:
RM696-21-3_PR_001:~# free
total used free shared buffers
Mem: 1008648 478264 530384 0 24040
-/+ buffers: 454224 554424
Swap: 444664 0 444664


As you can see after reboot you have about 530MB free ram which is 256MB more than before, and swap file is now the 450MB mtd partiotion which was previously unused by the device.

I'm not going to make comparision if onenand mtd partition is faster than mass storage flash partition. If pages are cached in either flash its going to be a bit slower than ramz.

Performance benefit of this is that you have 256MB more ram to play with, and if your not running over 15 apps simultaneously then most likely this increased amount of ram will make your device faster, since its more unlikely that system needs to page your background apps in swap
i followed all the steps until the last step where its suppose to reboot itself...
cause it didnt reboot itself so i did it manually and now i am stuck at "device not working properly" error..it managed to switch on for some reason and i check dropcache showed new swap memory...but when i restarted again i am stuck at "device not working properly" error how do i fix this...without losing my phone settings and apps...thanks
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#150
Originally Posted by xcentric View Post
i followed all the steps until the last step where its suppose to reboot itself...
cause it didnt reboot itself so i did it manually and now i am stuck at "device not working properly" error..it managed to switch on for some reason and i check dropcache showed new swap memory...but when i restarted again i am stuck at "device not working properly" error how do i fix this...without losing my phone settings and apps...thanks
Most common problem is that people are trying to run these command from terminal manually and not by logging in with ssh. In that case any typo or perl command will mess up your refhashlist. To recover you need to check what sha1sum line differs in refhashlist, and fix the line and resign.

That disclaimer is there for a reason, if people dont login with ssh and use copy paste, you most likely end up in brick and need to reflash.
__________________
IRC: jonni@freenode
Sailfish: € Qt5 SailfishTouchExampleQt5 MultiPointTouchArea Example € ipaddress € stoken € Sailbox (Dropbox client) €
Harmattan: € Presence VNC for HarmattanLive-F1BTinput-terminalBabyLockBabyLock TrialQML TextTV
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.

Last edited by rainisto; 2013-05-02 at 07:02.
 
Reply


 
Forum Jump


All times are GMT. The time now is 22:02.