![]() |
N900, ohmd, syspart, VM & swap tweaks
Hi all,
this post is intentionally kept light & clear in order to have a scratch page to be updated only with sure and certain findings and conclusion. My goal would be to find the better configuration (if any) of system files for a specified use-case. When something is being explicitely working (I mean, lot of people report it works for their use case), we can put that single item in a wiki. Here's the usual WARNING FOR EVERYBODY - MANY OF THOSE TWEAKINGS COULD LEAD TO A NON WORKING N900 AND A REFLASH TO RESTORE IT IN CASE OF MISTAKES - SO BE AWARE!!! Now you can go on reading, you've been warned STILL NO DATA CONFIRMED NOR AVAILABLE Things under investigation: VM tweaks SYSPART / OHMD tweaks SCHEDULER/SYStemBLOCK tweaks OTHER tweaks |
Re: N900, ohmd, syspart, VM & swap tweaks
First of all, if a single document speaking about the aforementioned matters does exist, please point me in the right direction, it will be very nice from you! After having said that, now, this post is a long one.
Lot of comments had been posted during last year and a half, together with scripts, scripts collections, programs then completed with GUI (thank you DeBernardis & Saturn!!! and all the other that contributed, I hope to have thanked all of you when I found something useful), but until today I did not find a resume with subsequent explanations and conclusions on many detaiils expressed in the subject. One thing on we all could agree - I think - is that most of the lagginess problems that arise on our beloved 900s are due to memory constraint. Probably with 512M of rams, the quantity of threads around full of people wanting to smash the phone against a wall would be 1/10 or 1/100 in respect of as today, knowing that anyway the VSYNC problem will make our 900s feel slow perhaps forever (or until Stskeeps changes his mind and decides to try finally to compile vsync against 2.6.28 kernels... :) I know I know, many times you said it is almost impossible to too many changes required in the source, but we can always hope!). So said, I tried in a year really LOT of this tweaks. I am a curious person, and I learnt lot of things about kernel internals of VM and the like. On one side it has been rather rewarding, sometime frustrating, but at the end is a week now that I really feel that 'urge to change something' going down. To verify it is not a placebo effect, I used this morning half a day my 900 in its original configuration (not from scratch, with the full bloat of software I have installed only with no tweaks applied in its standard configuration except the overclock), and now I can rather firmly claim that for my use case the difference does exist. Reverted now happily to tweaked configuration. I also made some rough benchmarks, and often the results from those benchmarks left me wiithout clear ideas. So i decided the final judge was the use I made of the phone day by day. Such decision on a side is very important because inspite everything we could say, we have a n900 to USE it, not only to hack with it. On the other side, it is rather hard to stay subjective when travelling in the feeling realm, and I decided to write this post in order to find some other testers willing to compare opinions. I installed some test tools also from the tools repository, being IOSTAT perhaps the most important. I modified Conky in order to have dirty pages, writebacks and uninterruptible processes updated once per second.I started working in a systematic manner around a month ago, but decided not to share anything until the point I had some clear ideas on what I wanted and was looking from/for those experiments. For working, I mean not only try to change something and to say: -"yes, it feels better". I mean methodically change 1 parameter, fire a test script with 128M dd to and from swap partitions, fire at least three memory hogs (browser with standard pages with flash AD, maps and mobilestellarium for example) keeping htop and my modified conky running in the background all the day. When testing, this modified conky+htop alone keeps the sistem load around 1 when screen is on and Xorg working, so I hope the stress test is good enough. Batteries never got to the 4 hours mark while testing, with phone always warm... I cannot tell how many times my phone rebooted under such high loads with modified parameters, and especially the number of phone calls i lost while doing those test :)!!! I think a definitive conclusion will be almost impossible to achieve, because VM organization and prioritizing is not a simple matter, and a good part of that is pure math. But at least to achieve some confidence that if I use my N900 as a media server, for example, some modifications will be helpful, I think that's a reasonable goal! Next post will resume my tests. The idea is to keep the thread clear as much as possible in order to collect all infos in the first post. So please, if somebody would like to join and share his experiences, please try to follow the scheme I am explaining: SETUP: N900 mmc yes//no which one stock/modified kernel which one USAGE short description of your use case TWEAKS APPLIED divided in the area where they affect WHY THOSE TWEAKS? Here is the trickyest part. It would be nice to explain WHY and HOW you get to the conclusion that the modifications make the n900 feel better, technical background and kind of response (feeling, stress test, benchmark...) So let's start, hoping somebody will follow me in this crazy job. After all the work I did, the feeling is that Nokia engineers did a very good job on their part, inspite of some comments stating the opposite. Keep in mind they have to provide a resilient machine instead of a top-performing one optimizing what they have and, keeping in mind the kind of device the 900 is, I think they did really a great job |
Re: N900, ohmd, syspart, VM & swap tweaks
Everything said, here follows a resume of my experiences so far.
SETUP: N900 8Gb class 6 uSD card Power kernel, std overclock 850 (sometimes I up to 1100 while watching a quick video or using heavily Gnumeric) USAGE: Browser (maemo.org, home banking, other forums, no flash video and flash adverts blocked), 4 online IM accounts OR (mutually exclusive) bluetooth tethering for my PC, mediaplayer for OGGs, Sygyc maps, games from time to time, calendar and obviously PHONE TWEAKS: VM--------------- MODS EXPLANATION
FINAL COMMENTS
With the settings reported here and my use case, I read 14 uninterruptible processes in the queue and processor 100% @850, with a waiting reaction time always less than 3/4s maximum. During last week only once I had to leave the n900 to settle for some minutes before going responsive again. Try to launch, without waiting states between your clicks, microb, contacts (my list is over 580 buddies), mediaplayer, angry birds, calendar, bounce evolution, mobilestellarium, gnumeric, and panorama - you get it! But the best thing happened this morning - I was testing with tons of apps active going back and forth between them, system load was over 4, 12 D processes, processor ranging from 50 to 100%, I was messaging and the phone rang - OK, I thought, let's see who I will have to recall now... and 1 second later the phone interface appeared! At that point I decided it was the time to post on TMO :) So that's all folks! I hope this one is only the start of a constructive process trying to understand better the internals of 900, and at the same time the start for a good 'optimization based on use cases' wiki, or best, some CSSU packages adaptation based on use cases who any user could then choose! Cheers, everybody. PS: please, don't blame me too much for grammar and english mistakes - english is not my native language! EDIT - And thank you for patience if you read everything - tried to clean a little bit with formatting after vi_ suggestion |
Re: N900, ohmd, syspart, VM & swap tweaks
Quote:
|
Re: N900, ohmd, syspart, VM & swap tweaks
Tried to clean up a little bit, lot of text meant lot of formatting. TY for the suggestion, didn't thought about that
|
Re: N900, ohmd, syspart, VM & swap tweaks
Whoa. Mind. Blown.
|
Re: N900, ohmd, syspart, VM & swap tweaks
amazing post jurop88, should implement it to swappolube :)
|
Re: N900, ohmd, syspart, VM & swap tweaks
Quote:
Great finds here with modifications to priority processes omhd. I've have pulseaudio et al media at a high stack priority in order to reduce jittering for a few months now - but never felt the need to play around more. Thanks for the testing you've done. Seriously. |
Re: N900, ohmd, syspart, VM & swap tweaks
Moving hildon-sv-notification-daemon out of [mediasrc] closes the socket and doesn't allow any sound?
|
Re: N900, ohmd, syspart, VM & swap tweaks
Made some of these changes and will see how it pans out over the next few days. I am a fairly heavy user so it will be interesting.
|
All times are GMT. The time now is 00:06. |
vBulletin® Version 3.8.8