yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] chrisw99:
I notice quite a lot of people on the ARHD 6.7.2 thread are complaining about lag (6.7.2 ARHD comes with faux 8b9), they are all reverting to 8b8 and the lag goes away.
[HTC Sensation] TheUntouchable:
Already mentioned here lots of times. But faux needs logs to fix this problem :) Just reverting back will not fix the problem..
[HTC Sensation] juancubo:
Faux, this has happen twice to me. The frequency get stuck at 810 and of course the phone lags. I solve it by running only the intellidemand part if the script. Then the phone works properly again, no reboot needed.

So for the next time it happens, what logs I need to extract so you can find the root cause. Is there a specific part or when I should get the files. Also what is the recommended why to send it to you.

I am in 008b8 and all my settings are my signature
[HTC Sensation] faux123:
so the lag is caused by CPUfreq being adjusted to 810MHz.... This I can see being a possibility of lag... but what is changing the clock to 810 MHz is still a mystery...

BTW, the same exact Linux 3.0.39 patches have been applied to:

HTC Amaze kernel (almost the same as Sensation) no issues of lag reported (I use it daily)

Galaxy Nexus kernel - no issues of lag reported

Samsung Galaxy S 2 (Hercules) - no issues of lag reported

Samsung Galaxy S 3 (ATT/Tmobile) - no issues of lag reported

Sensation is the ONLY phone that has this being reported.. and it seemed to be some app or some daemon that's changing the CPU freq to 810 MHz for some reason...
[HTC Sensation] UnixSlayer:
Faux..... I really do believe that the lowering usable memory is the culprit. I used 08b9, and sometimes it worked perfectly for a couple of hours. I kept tabs on the memory available each, and everytime. Memory available was 150 to 170 mb range. But when the lag hit, I immediately checked it. It was down to 50 mb, and lower. Like maybe the supercharger script was fighting it for memory allocation. Or something like that. Also.... When I got up in the morning.... Waking the phone caused the lag, and the memory drop. Hope this helps.
[HTC Sensation] juancubo:
Thanks for the response. I don't have any app for cpu freq neither a daemon because your kernel is a set and forget phylosofy . I used to have andrevoc but not on this set up . I also always superwipe. Next thing I will do is to format sd but not sure when cause I can solve it temporarly as I said. If I can replicate the issue consistently I will post it.
[HTC Sensation] faux123:
That's another facet to this mystery is the low memory issues.. again.. NONE of my other Linux 3.0 based kernels have this issue with memory as well....

Yes.. Android DO NOT behave well or properly when memory dips below 90 megs... It absolutely need at least 90 megs to have the system running smoothly... the Android LowMemoryKiller (LMK) should have been activated and KILL OFF the unused background apps to free up the critical memory it needed to work properly... LMK wasn't touched at all from Beta 8 to Beta 9... so why didn't it all of a sudden failed to auto-kill the apps when memory pressure was so high...

So far with my own sensation I have yet ENCOUNTERED ANY funny frequency issues or low memory issues... Both are still a mystery to me and I don't know where to fix when I can't reproduce it myself or have logs that points to the issues.

so my only advice for those who experience lag is to continue to monitor both the CPU freq and Available memory and try to see if there's some rogue app or daemon running in the background which may be changing the behavior of the system...
[HTC Sensation] ifti_a:
I have this but it's mainly.when using anything to do.with the net or data. Wish I kept logs before flashing beta 8

Sorry
[HTC Sensation] joaquinf:
Well... I took these screenshots while in the lag state and it clearly shows that the CPU is mainly locked at max freq and I didn't experience any unusual frequency changes

Will keep an eye on this
[HTC Sensation] TheUntouchable:
Hi Faux :) Have you read my previous post? Perhaps it doesn't have anything to do with it, but i think it's a hint :)

---------- Post added at 09:51 AM ---------- Previous post was at 09:34 AM ----------

Sadly this is a german article, but it's mentioned there that in the kernel 3.0.39 changes on the memory management were made, perhaps that is our problem.

http://www.golem.de/news/kernel-leistungssteigerungen-fuer-linux-3-0-und-3-2-1208-93608.html

More information about the changes here:

http://thread.gmane.org/gmane.linux.kernel.mm/82854
[HTC Sensation] faux123:
I know exactly what went inside the patches. I hate it when mainline hacker is doing what I was doing for a long time now. They backported several memory management patches designed for Linux 3.5+ to Linux 3.0 and as I stated many times, sensation is the only one with issues :p
[HTC Sensation] chrisw99:
It appears it is happening to people who have a totally clean installation after superwiping before installing 6.7.2 ARHD with faux 8b9, and then disappears reverting to 8b8.

I know that's not much help, but it possibly means the fault could be in ARHD rather than the kernel?

My question, is the lagginess happening to other ROMS than ARHD?
[HTC Sensation] TheUntouchable:
Its also happening on viperS, which is totaly different to ARHD. And its also happening after additional flashing it on a rom.

---------- Post added at 11:12 AM ---------- Previous post was at 11:11 AM ----------

So the ram problems are not related to that changes? Sad.. :( Can't find anything on the logs when the lags occur..
[HTC Sensation] Yank555:
OK, so since my Sensation is not my daily driver anymore, I superwiped it yesterday evening, and flashed ViperS on it, plus my 1.91 kernel (008b9) with my usual settings (details in my signature), hoping to reproduce the lags.

I fiddled with it yesterday evening, behaved well...

Put it to charge overnight, woke up fine this morning, no lags...

Just checked it, still fine...

Can anyone provide a behavior that induces the lags ?

Thanx, JP.
[HTC Sensation] Iceberger:
When you activate sense landscape and start rotating the phone you'll see the lags right away.

Venom tweaks > sense > enable landscape
[HTC Sensation] TheUntouchable:
Using whatsapp, the stock browser, the camera and the gallerie for example :) Crazy that you don't get any problems.. Are you using hardswap with the new configuration?
[HTC Sensation] fragargon:
Hi,

this is excatly what i m facing... the weird things is that happened only when i open some browser apps like facebook - net browser or xda.

I m using some apps like services those are tasker and llama but no one neither script interact with OOM or LMK...

This is the same setup as i was running on V8B8 (except Zram not enable) and this is not happening .

I ve got logcat and dsmeg... around 20h31' - here a little example.

dsmeg:

logcat:

from that time it becomes really laggy - here is the complete logs file

this is my 2 cent - noob inside forgive if mistaken.

thks
[HTC Sensation] Bluewall:
Not a pro but this part http://pastebin.com/e8U5Kh4r is a bit weird isn't it ? The kernel needed to kill all that app in one time. Like it was at very very low free memory ?
[HTC Sensation] Yank555:
Can you provide the result of this in a terminal :

echo /proc/vm/swappiness

Thanx, JP.

---------- Post added at 11:59 AM ---------- Previous post was at 11:59 AM ----------

Thanx guys, as soon as can spare the time, I'll give this a go !

JP.
[HTC Sensation] acesabe:
Rolled back to 8b8 after various lag/kernel panic issues which seem random/unreproducible (no /proc/last_kmsg either :-/) sorry can't be more helpful.
[HTC Sensation] jyo1:
ahh.. not again ;)
[HTC Sensation] PaulGiz:
If you can't help, please don't clog up this thread with endless posts about how you can't help.

You're free to run anything you want. It is only applicable to this thread when you can help with development.

P.
[HTC Sensation] PeeHoo:
Hi!

I am using this with Viper 1.1.0. I have settings for maximum frequency 1,56GHz but system tuner (but haven't change any settings.

System tuner shows maximum frequency 1,29GHz and governor intellidemand. And that is my reason why I am unsure if everything is ok... How do I check that everytyhing works what I meant to be? Faux 8b8.
[HTC Sensation] ianoob:
Intellidemand throttles down your max when you don't need it. There should be 4 max frequencies: max screen off, max full load, max no load and max phase two (coming out of no load to make sure you need full max). This is why you can't use intellidemand when running benchmarks
[HTC Sensation] framir:
Log after Lag

My log afeter lag...

Now i'm trying with 8b5 but i've also the same problem...
[HTC Sensation] Yank555:
If you have the same problem wit 008b5, then it cannot be kernel related !!

What exactly are you running :

- ROM

- MODs / scripts ... (this is the most important information to provide !!)

- zram ?

- hardswap ?

- kernel (name / exact version, if in doubt, use "uname -a" in a terminal)

- kernel config (if using Aroma, or just provide the "/system/init.d/99z_kernel" file)

Please be very exhaustive, even the obvious can be important, the more you tell, be likelier we can help...

Thanx, JP.

PS: The big red font is not meant to flame you, I just would like everybody to see this and provide that imput ;)
[HTC Sensation] framir:
All my mod and configuration are in my signature!

Thanks
[HTC Sensation] Yank555:
Well you say "lastest" faux, better provide the exact version number, same goes for Viper ;)

So you have

no other MOD, script

whatever installed ?

Viper Tweaks ? Supercharger ? Specifice settings in System Tuner ? Anything ?

And you are experiencing lag on faux '008b5 ?

JP.
[HTC Sensation] framir:
I use "Latest" because i update ever system and kernel.

I don't use System Tuner or Anything.

I've only same tweak in build.prop, but now i've restored the original ViperS 1.1.0.

I'm not use supercharger.

Viper tweak yes.

1. Minfree Multitasking Ultimate (i ever set it so and never had lag problem)

2. Enable Fast Dormancy

3. Volume keys shooter

4. Search key to take a photo

5. Volume up to wake

6. Longpress delay very short

7. Enable slide 2 unlock

8. Enable Sweep2Wake with backlight

9. Ultrasmooth rosie

10. infinite scroll

11. show unlock animation

12. Wallpaper scrolling

:D

Many thanks.
[HTC Sensation] TheUntouchable:
1. Minfree Multitasking Ultimate (i ever set it so and never had lag problem) <-- had problems from the begining with that setting.. it lets apps stay much longer in the ram till it kicks them out. Sure that you had the same setting with 8b5 bevor you changed to 8b9?
[HTC Sensation] framir:
But i've swap file on sd, with this system was ever fast since i've update kernel...

Bun now i investigat if there are also someting wrong...
[HTC Sensation] Matico3:
jelly bean

Wouldn't happen to work on 4.1.1 by any chance?

I know it says 4.0.x but I was just wondering if anybody had tried it...

EDIT: whoops replied to the wrong post... sorry...
[HTC Sensation] sjknight413:
Since there are no 4.1.1 sense roms and this is a sense kernel,

No.
[HTC Sensation] Yank555:
Can you tell me exactly what this sets as Low Memory Killer settings (1.) ?

Just set 1. to multitasking ultimate, reboot, and check with System Tuner to see how the are defined and post it here please (screenshot will do).

Supercharger script also tweaks this, and agressive settings will cause lag if set too low ! As the system will struggle to free memory. Plus supercharger script sets swappiness to 20 (I've been told), which means, swap is hardly used, which would make matters worse !!

If you use my hardswap, I do set LMK settings quite agressively as well, while settings swappiness to 100 (max), but obviously this still works lagfree for me... Plus I just use that mod, not a multitude of mods.

This is most likely a (if not the) Problem !!

Plus Ultrasmooth rosie most likely will change 2 things, transition animations will be set down (less of them to speed things up) plus will flag Rosie to be system persisitent, which means that the low memory killer won't kill Rosie. And Rosie = Sense = very memory hungry, so potential "ouch" here. Though I'm not sure this really applies, I'm just guessing from older "smooth" mods (Sense 3,6) where this was done so Rosie won't be reloaded that often.

Thanx, JP.

PS: But see when I asked, what tweaks do you use, you said none, and now you listed 12, even if most are harmless ;)
[HTC Sensation] Matico3:
Weeeeell... worth a try :P but in theory, ie once we eventually get 4.1.1 sense, would ICS kernels work?
[HTC Sensation] framir:
Yank555 thank you for your explain! :)

I've attache the screnn of minfree!

For memory killer i use only this viper mod! I not have any script.

So for rosie what do you recommend?
[HTC Sensation] Yank555:
Not much, I've been using a sense-less ROM, so without Rosie... :(

I just tested these settings on my Sensation, activated Landscape Rosie, turned my Sensation around a lot of times, started many apps, no lag so far.

To be precise :

- ViperS 1.1.0

- Hard swap

- Veno tweak multitasking ultimate

- ultrasmooth Rosie

- Landscape Rosie

JP.
[HTC Sensation] framir:
And for minfree do you mean is too low? Or it's ok?

I've set it so when i activate hard swap to have more process in ram and i never had a problem before since 2 days... :confused:
[HTC Sensation] Yank555:
It is aggressive, but that is what I set via hardswap script (but is obviously overridden my ViperS somewhere).

But this will only work if swappiness is set to 100 (or very high at least).

As I said earlier, Supercharger sets swappiness to 20, which makes swap almost not work, plus these aggressive settings, that's a good recepy for lag ;)

You can run stick LMK settings, to check if that removes the lag. Maybe these settings were ok on 3.0.38 Linux memory management, and the new changes that came with 3.0.39 have issues running like this ?

I will keep my Sensation like this, hoping for it to start lagging. (I never thought I could say something like this, "hope it lags" :D)

JP.
[HTC Sensation] faux123:
Me too :p. The kernel's default settings for lmk shouldn't be fiddle with. It is very easy to cause lag simply having a bad lmk thresholds.
[HTC Sensation] ifti_a:
Hi all

I just had to flash beta to again for a log. Well about 30mins after it did a soft reboot, here is the last_kmsg.zip, hope it helps faux and yank. The settings i set while flashing were faux recommended except my max CPU is 1.51...

http://db.tt/rReB94W8

Edit : I haven't got a lag yet but i noticed that my memory is falling as I multi task. It's at 80mb. Not sure if it'll free it soon
[HTC Sensation] Yank555:
Can you post your "/system/etc/99z_kernel" ?

This would be a general request on my end so I can see what exactly you chose while installing the kernel.

Thanx, JP.
[HTC Sensation] ifti_a:
http://db.tt/sHZOOROV
[HTC Sensation] fragargon:
hi JP,

unfortunately I can provide what you ask coz... on same setup i flashed v008b8 without zram this morning. (so no more swap)

testing purpose. Since it s running smoothly this is what i get on dsmeg

so now i m gonna flashed beta 9 without enabling zram on same setup... i will see if mem lags is back or not - it should be some reason :rolleyes:

(i havn't got any swap partition on sd)
[HTC Sensation] HunnyBearLewis:
Please don't clog up this thread with endless posts about how others can't help. You seem to like it.
[HTC Sensation] ifti_a:
Paulgiz is very helpful
[HTC Sensation] fragargon:
hi,

i m back with v08b9

min 192mhz / max 1728mhz / 3d @ 266mhz / zram disable / uv -75mV / no swap / screen off at 594 mhz

well back to 70 mb mem available... here is logcat and dsmeg :rolleyes:
[HTC Sensation] Yank555:
70Mb, but with lag or without lag ?

JP.
[HTC Sensation] ifti_a:
Well I mange to get a kmsg before and during the lag.

I started log the kmsg then did my browsing and it lagged

Here it is, hope it helps faux and isn't too big :(

http://db.tt/AZ3f3FMH

Thanks
[HTC Sensation] fragargon:
With lags. It was worse without zram.
[HTC Sensation] TheUntouchable:
Yank, are you testing the hole thing with hardswap at the moment? I have the feeling that people with hardswap don't get the lag thing..
[HTC Sensation] Yank555:
How is your Low Memory Killer configured ?

JP.

---------- Post added at 09:37 AM ---------- Previous post was at 09:36 AM ----------

Yep, with hard swap.

Using a thing link "Multitasking ultimate" without swap is close to suicidal :p

Those getting lags, can you confirm that you :

- are not using zram

- are not using hardswap

- have set multitasking ultimate

JP.
[HTC Sensation] TheUntouchable:
- are not using zram <-- no (using it)

- are not using hardswap <-- yes (not using it)

- have set multitasking ultimate <-- no (stock)

Same settings here for 8b8 and 8b9 :)
[HTC Sensation] fragargon:
Lmk is the one provided by kernel. I haven't got or installled script to mod lmk value.

cat /proc/vm/swappiness => no such files or directories

Edit: this try was without zram / no swap partition and no ultimate things :)
[HTC Sensation] TheUntouchable:
I don't have a /proc/vm too ;)
[HTC Sensation] chrisw99:
I had zram. I never had swap, and never use any multitasking tweaks or any other performance type tweaks.

Yank, I'm just organising the various files I've downloaded on my phone and usually the kernel is in the name e.g. pyramid-ics-xe-008b8-aroma-v4.zip

But I also have yank555.lu-pyramid-ics-sense-v1.8-aroma.zip and a v1.91.

Can you please tell me which kernels are in these?
[HTC Sensation] TheUntouchable:
yank555 1.8 -> faux kernel 8b8

yank555 1.91 -> faux kernel 8b9

:)
[HTC Sensation] ItayPBM:
It seems that both of the cpu cores are working all the time, even when not neccesery. How can I fix it?
[HTC Sensation] TheUntouchable:
Reading the first page of this thread or using the search would be the first right step :)

Intellidemand Governor tweak:

Introducing Smart Core Management

Automatic offlining of 2nd CPU core while Screen is ON.

Scenarios:

1- While Screen is ON > 3 min, and average load of the CPU is < 35%, then CPU1 will be taken offline.

2- While Screen is On, if average CPU load > 35%, CPU1 will be Online and both CPUs max frequencies will be limited to 1.13 GHz Max

3- While Screen is On, After both CPUs' Max is limited to 1.13 GHz, when the average CPU load has dropped down to less than < 25%, then both CPUs Max freq will be restored to 1.51 GHz Max (then go back to scenario 1).

-- for 3D Games or GPU intensive apps, both CPUs's max frequencies will be restored to 1.51 GHz and both CPUs will be online.
[HTC Sensation] ItayPBM:
Thank you :)
[HTC Sensation] Yank555:
My bad guys, the file is here :

echo /proc[B][COLOR="Red"]/sys[/COLOR][/B]/vm/swappiness

Sorry, JP.
[HTC Sensation] TheUntouchable:
Its 60 on my phone :)
[HTC Sensation] Yank555:
The is Linux default value.

Set it to 100 and see how it works out with the lags.

If that helps I will add this to the zram activation bit of the script generator.

On hardswap it is set to 100.

JP.
[HTC Sensation] TheUntouchable:
Will test it later if i have time to go back to 8b9. But the last time i was on 8b9 the zram swap (free command) was fully used when it lagged.
[HTC Sensation] Yank555:
Maybe if it was getting used sooner (higher swappiness) it wouldn't have come to the lag...

I will try to test mine without hardswap, but with stoch LMK settings then.

As I said, using utilmate LMK settings without swap cannot work properly.

JP.
[HTC Sensation] TheUntouchable:
Never used ultimate lmk settings after we talked about the camera fc and the low mem warnings, i am on stock :)

That was the post with full zram use and kmsg log:

http://xdaforums.com/showpost.php?p=29850499&postcount=8137
[HTC Sensation] fragargon:
same here, will try this when back home this evening;

thks :good:
[HTC Sensation] ianoob:
I had a reboot when using the camera but the kmsg was blank? I'm guessing too much uv, had at 62.5, lowered to 50 and haven't repeated.
[HTC Sensation] yazzabo:
Which file i have to change if i want reduce the 3 minutes in first scenario?
[HTC Sensation] TheUntouchable:
After a reboot the kmsg log is written new, you have to get the last_kmsg with the command

su
cat /proc/last_kmsg > /mnt/sdcard/last_kmsg

in an terminal.

If you had removed the batterie, the last_kmsg is lost.

Don't know if its possible to change that value.. You will have to wait for faux to answer this or yank :)
[HTC Sensation] jyo1:
From a specific example of what I've seen with Facebook app on 008b8 and 008b9:

008b8 - While running facebook for a while, it uses about 75-80 MB. Just after exiting (not force-close, but closing the app using back button), it shows about 50MB used. After 2-3 hours, the usage shows about 14-15MB

008b9 - While running facebook for a while it uses about 125-130 MB. Just after exiting (not force-close, but closing the app using back button), it shows about 90MB used. After 2-3 hours, the usage shows about 50MB

Somehow or other, b9 does have a delay in freeing up memory.

:rolleyes:
[HTC Sensation] TheUntouchable:
So, back to Yank555 v1.91 with the same settings. Played a little bit with my phone, the ram was down to 80 mb. I started copilot (navi) and i saw problems with my sd card in the kmsg log, can someone confirm that? After starting tempel run (game) the kernel throws again the lowmem messages and systemtuner tells me that only 66 mb of ram are free.

...
<7>[ 4110.629791] sd_blk_issue_rw_rq: ---(sd-qd) start sector=2969728, size 1, total time=1009521 us

<6>[ 4110.629943] mmc1: reinit card

<6>[ 4110.630035] mmc1: mmc_reinit_card

<6>[ 4110.635162] msm_sdcc_setup_vreg: Disabling SD slot power

<6>[ 4110.646240] msm_sdcc_setup_vreg: Enabling SD slot power

<6>[ 4110.946838] mmc1: mmc_reinit_card return 0

<7>[ 4111.689666] sd_blk_issue_rw_rq: ---(sd-qd) start sector=2969728, size 1, total time=742645 us

<7>[ 4113.313629] sd_blk_issue_rw_rq:(sd-qd)finish cmd(25) start 123008, size 11, time=552703 us

<7>[ 4113.314544] sd_blk_issue_rw_rq: ---(sd-qd) start sector=123008, size 11, total time=553649 us

<7>[ 4115.330322] sd_blk_issue_rw_rq: ---(sd-qd) start sector=4309377, size 1, total time=740447 us

<7>[ 4115.918914] sd_blk_issue_rw_rq:(sd-qd)finish cmd(25) start 8215296, size 5, time=549163 us

<7>[ 4115.918945] sd_blk_issue_rw_rq: ---(sd-qd) start sector=8215296, size 5, total time=549224 us

<7>[ 4116.919738] sd_blk_issue_rw_rq: ---(sd-qd) start sector=3834690, size 1, total time=929138 us

<7>[ 4117.659667] sd_blk_issue_rw_rq: ---(sd-qd) start sector=8613570, size 1, total time=729888 us
...
[HTC Sensation] TheUntouchable:
Again, really low mem situation after opening the gallery. Had to wait for a minute or so till the black screen shows me my pictures.

(ps: with current "free" ram log, my logs are now automatically generated with one click :D )
[HTC Sensation] TheUntouchable:
And again.. opening the gallery was not the problem this time, but opening a picture leads to a black screen and i had to wait. Now with "top" log too.
[HTC Sensation] Hawke84:
just want to say thank u for all the beta testers who are submitting logs for the lags to help Faux. i havent had time recently as im out of the country on business and need my phone working so had to switch back to previous build as i was also getting lags.

So thanks to all the people who are helping with this :cowboy:
[HTC Sensation] chrisw99:
BTW, I also had a problem last week opening the gallery which took ages. I discovered the following day 0.0Gb free on my SD card, and a 2Gb .dat file in the thumbnails directory.
[HTC Sensation] TheUntouchable:
I have 20 GB left so i dont think its the same problem :D
[HTC Sensation] fragargon:
hi TheUntouchable,

could tell me on your current setup kernel, I m back home and gonna flashed faux kernel => Yank555 v1.91

I would like try some other "flavor" around mem things... zram /hardswap... swappiness??

so 192mhz/1728mhz / 3dGL 300mhz - intellidemand - etc... the thing is... are using zram and a swap partition??

thks
[HTC Sensation] TheUntouchable:
Hi fragargon :)

Just look at my signature, there is everything you need to know :) But with this setup i have problems with v1.91. (with zram and w/o hardswap)