![]() |
Re: Clear RAM?
In my experience sluggishness comes from the crazy swapping that's going on all the time.
The N900 is set to the highest swappiness level by default, meaning it will favor swapping out to flash memory rather than using RAM that was just holding cache. As root, do Code:
echo 1 >/proc/sys/vm/swappiness After reducing the swappiness level, I experienced a much more responsive device, especially with several applications open running for a few days, and it looks like it has increased battery life, too. |
Re: Clear RAM?
thats all ok but, how much free memory do you have on normal usage?
ill share you mine Code:
$ free |
Re: Clear RAM?
right. i understand now with the replies to this thread that my skipping / freezing issues are more related to the processor.
|
Re: Clear RAM?
Quote:
There are a number of issues I commonly experience that can only be solved by a reboot - for example being unable to connect to certain wifi points. Really irritating, so not sure if there are any solutions out there for a 'soft reboot'? (and not just restarting from the console) |
Re: Clear RAM?
yah.. chalk it up to being a windows noob. thanks for all the info guys. this is a great community! :)
|
Re: Clear RAM?
terminal
htop [or top] and then kill pid [number for the app you want dead] But seriously the biggest cause of "slow ups" will be processes spiking into the 30% or more range of cpu usage. |
Re: Clear RAM?
Free RAM = Wasted RAM, i have paid for the RAM in my N900, so i want to use it.
|
Re: Clear RAM?
so guys, if my RAM is 70% busy it means not so bad ?? hehe :)
|
Re: Clear RAM?
Not bad at all. Except that it's using _too little_ (unless you just booted up your N900). Linux tries to use all the RAM, because (as biggzy said), free RAM = wasted RAM. Linux will read all files (including applications) _through_ RAM, so that next time something accesses that file (or application) it's already in RAM. Saves time, and battery (no need to actually access flash/disk whatever). Same when you write to a file, the data will be in RAM too, so that when another application comes around to read the file it'll get the data from RAM. That's fast.
As soon as an application needs RAM for something for itself (e.g. its data structures) it'll get its RAM from some of the RAM used as above (aka 'buffer cache'), unless there's still 'free RAM' (if you just booted, remember), and if the file that was buffered this way is accessed again it'll have to be dragged from flash/disk. There's no speed penalty in this either, at least nothing to talk about. It's all very efficient. |
Re: Clear RAM?
After a few months I have come back to this thread. The question now is, and I should have asked it back then, How do you free up the cpu usage without having to reboot. I know I saw a script you could run but the search isnt turning up anything for me.
|
All times are GMT. The time now is 00:51. |
vBulletin® Version 3.8.8