![]() |
How to free swap memory without rebooting?
My N9 is fastest in every way when swap memory usage is lowest. Emails swipe faster, homescreens swipe faster, and I think that swap-related slowdown is one of the primary reasons N9 owners are rebooting all of the time--because rebooting resets the swap memory.
I have seen other threads that discuss complex (and admittedly risky) ways to add swap capacity to our N9s, but I have a much more simple question: How can we reset the swap memory as if we had rebooted without actually rebooting? After looking and searching I have yet to find an answer. I imagine that there must be a command that could be put in Profilematic or simply entered from time to time that would do the job, but what is it? This could be a game-changer for many users, since clean swap positively impacts my N9's speed performance as much as FasterN9 and light overclocking. Thanks. |
Re: How to free swap memory without rebooting?
Well, I don't use OC, I don't use FasterN9, and still I find the performace good all the time regardless of uptimes...
(well it's only 7 days now because I did some boot stuff back then... but generally I only boot my device when I need to change to different kernel/OS...) I do not think you need to boot your devices regularily to have good performance. If that's required, then you have misbehaving applications or you have yourself done some tuning of the device that has turned sour. :) |
Re: How to free swap memory without rebooting?
Quote:
Quote:
http://talk.maemo.org/showthread.php?t=84007 You can reset the swap by running (as root) Code:
swapoff -a A better solution would be having TWO swap spaces and from time to time swap (no pun intended) between them. This has been discussed a number of times. See e.g. http://talk.maemo.org/showthread.php?t=42357 http://talk.maemo.org/showthread.php?t=84296 http://talk.maemo.org/showthread.php?t=86752 ...and many others. Some of them discuss the N900 but the solution is actually the same for the N9. |
Re: How to free swap memory without rebooting?
I am not sure but is this what you are looking for?
http://store.ovi.com/content/258450?...e=search&pos=1 |
Re: How to free swap memory without rebooting?
Maybe Dropcache http://store.ovi.com/content/258450 help you out:
(dropcache and inception required) Code:
terminal command: |
Re: How to free swap memory without rebooting?
Thanks for the responses! I have read and researched what everyone has said and here's some feedback.
Quote:
The swap-related slowdown issue is discussed in this thread: http://talk.maemo.org/showthread.php?t=84007 I started this thread in hopes that an answer could be found to the swap-reset question. Once we have an answer, It can be merged in a solution thread. Quote:
Quote:
And thanks for the two swap spaces ideas and research threads. I'll check them out, but am still looking for a workable, easy swap reset approach that avoids reboot. Mikkosssss and Lirion, I have tried Dropcache, but as discussed in the thread discussed above, it does not seem to solve the problem of freeing swap memory (though it is very useful in tracking the problem as it shows the amount of free swap memory). Thanks again, everyone. |
Re: How to free swap memory without rebooting?
Swap memory cant be free up except booting, only way is to add more swap memory from 255 to 412
|
Quote:
I saw your earlier post, so any insight would be much appreciated. |
Re: How to free swap memory without rebooting?
Sorry I dont know why, just know many developer said CANT..I dont know the reason and the meaning, just I know is cant
|
Re: How to free swap memory without rebooting?
Quote:
Code:
N900:~# free One way of reducing the impact of swapping is spreading the bandwidth, such as one swap partition in the device and one on the SD card, as discussed in those threads that I linked in my first reply. EDIT: I am actually a bit surprised how much main memory is used before swapping occurs (or how little main memory is left free). My gut feeling would be to strive for at least 20% slack, which would mean even more swap usage. Obviously the Hildon programmers knew better. |
All times are GMT. The time now is 20:15. |
vBulletin® Version 3.8.8