yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] spica1234:
I've modified fsync code, there are 2 times of sync, during realtime writing periodically while copying/writing and final sync. in sr3r2 final sync was disabled only and in this every byte to byte sync is disabled.

it works like that during copying/writing, during process it periodically syncs and atlast it syncs all data. In sr3r2 final sync was only disabled.

In this build I've disabled realtime sync also, here is the function. It disables every offsets of writing

SYSCALL_DEFINE(sync_file_range2)(int fd, unsigned int flags,

loff_t offset, loff_t nbytes)

{

return 0;

}

instead of orginal in sr3r2

SYSCALL_DEFINE(sync_file_range2)(int fd, unsigned int flags,

loff_t offset, loff_t nbytes)

{

return sys_sync_file_range(fd, offset, nbytes, flags);

}

The reason for this sync disable was battery, in my testing it was giving very well battery life. because each and activity of writeback was prohibited inhere. the the main concern is FC

By e2fsck it corrects ext2/3/4. not DB. but there is indeed DB workaround too by defraging DB data everytime by an init.d script. I am trying that now if it succeed then it will be really good
[LG Optimus 2x] Dac0908:
3 days on test built 8, phone works very good, snappy and responsive. Battery consumption bit higher than on SR3R2 no OC, but tolerable. Still has around 40% juice left at the end of the day, 10-20% less than before. All in all - it's good :)

Had one freeze while using Cracked.com app, but I don't think it's kernel related. More like app bug or something with bunch of youtube videos embedded in article.
[LG Optimus 2x] spica1234:
Thanks dac ,SR4 will be gamer extreme for game lovers;) optimized for 2D/3D.
[LG Optimus 2x] spica1234:
Till then enjoy this last testbuild

Changelogs:

-Mainly optimized for power saving w/o touching voltages, improved SMP code to suspend both core(nr_cpu_ids) instead one.

-fuel gauge correction(previously broken in last test build)

-improved scrolling (optimization in early stage)

-Improved 2D/3D( improvement in early phaze PreSr4)

-NoOC

http://db.tt/faeCneQE
[LG Optimus 2x] woodback:
and 1 with OC please
[LG Optimus 2x] max.sh4dow:
Spica do you think, it's posible to add EAP SIM support to this kernel ?

Patch available here : http://code.google.com/p/seek-for-android/wiki/EapSimAka

thx :D
[LG Optimus 2x] erups:
Spica.

I just found out that system reports I only have 1 core...

And System Tuner sees CPU1 as offline!

I wanted to reinstall the kernel, but the link

http://db.tt/3xhGpyeM

has expired.

Also I'm having a hardtime understanding the oc parameters.

I was used to Andrev...

What do MinCPU1On, MaxCPU1Off and MaxScrOffFreq exactly mean?

How do I set minimum freq and maximum freq for both cpus?

I don't want 1.4 GHz for max for example, and don't want anything less than 816MHz when awake.
[LG Optimus 2x] Ferrum Master:
I cannot see any major improvements at all regarding CPU performance... Linpack actually is slower on average run count. Scrolling is at last faster. But I see still see - it is bit jerky frame rate wise. Try to scroll it slowly... it ain't normal it stutters. Take in hand WM Mango device and you'll understand what does fluid mean.

I/O performance seems to be better with Stefan's kernel, I dunno why, but simple thing as installing apps is a bit slower here.

But overall I am very pleased with this kernel, let us see how stable it is and fast after few hours.

And btw does this kernel also use still 48kHz resampling still? :p

AND always installing beta 1.3 django EXT4 full wipe from scratch... so no mushrooms soups here...
[LG Optimus 2x] stevvie:
Tb10 seems to eat the battery compared to tb8. Under tb8 I got almost 2 days under tb10 I barely get 18 hours of use. Also ip Tables no longer work in tb10.
[LG Optimus 2x] TrymHansen:
MaxCPU1off is the frequency at which the second core turns ON if it stays above it for the length of time specified in timecpu1on.

Conversely, mincpu1on is the frequency at which the second core turns OFF if below it for the length of time specified in timecpu1off.

screenoff_maxpufreq is the maximum frequency allowed when the screen is off, much like you were used to from Andrev OC.

If you find these parameters confusing, you can alternatively download guestekrnL 1.6 (not 1.6.1, it forgets the under/overclock after sleep) and the included OC tool (an enhanced Andrev OC sort of) which includes the same OTF-parameters. Adjust them in realtime with the tool and get used to what they do, and when you feel you know the effects they have you can reinstall HP.

If not using the HP-tool (which I haven't tried), or GuesteOC on guestekrnL, you do it manually by

echo 816000 >/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq

and the same with .../scaling_max_freq for your max frequency. Tegra cores run in sync, so unless one is off, they run at the same frequency, you cannot adjust the parameters per core. (At least not yet.)
[LG Optimus 2x] erups:
Much appreciated!

But where do I find timecpu1on?
[LG Optimus 2x] spica1234:
Open HP 2X Kernel Tweaker application, its in there:)

Edit: you will find mincpu1on aka at min frequency above 80% load it will activate second core.

And max cpu1off aka during frequency rampdown below 50% load, at which frequency it will deactivate 2nd core.

Interval poll i have not integrated as an OTF. I mean time in ms it will take to activate 2nd core. As kernel completely works on load balancing tracking.
[LG Optimus 2x] TrymHansen:
Darn, I installed an old version of the kernel I had lying about (SR3-OTFv2), and turns out the timecpu1on/off parameters are not there. So I guess in older version of the kernel they're hardcoded, presumably to 20q default values. (But you'd have to ask spica to be sure.)

I'm unable to download any recent version, links expired, so I can't tell if they're present in the newer kernels, but according to spica's post above they should be.
[LG Optimus 2x] spica1234:
Oh i misunderstood. I thought mincpu1on and maxcpu1off frequency.

I have not set polling intervval (time in ms) as dynamic as it works on load basis. May be stefen has.
[LG Optimus 2x] TrymHansen:
Ok, good to have confirmation. Yes, guestekrnL has made those OTF as well. Sorry for confusing you erups, you need only concern yourself with maxcpu1off and mincpu1on.
[LG Optimus 2x] spica1234:
its 16/44.1:)
[LG Optimus 2x] TrymHansen:
I think you will find it's the other way round Spica, maxcpu1off is the activation freq, and mincpu1on the deactivation freq.

I just tested it to make sure it behaves the same on HP as on guestekrnl.

(I wrote 400000 to mincpu1on, and the second core turns off as expected. Then I wrote 216000 to mincpu1on, and as you know when the device is plugged in the frequency does not go below 300000, and the second core did not turn off.)
[LG Optimus 2x] spica1234:
mincpu1on is minimum 2nd core cpu activation frequency

and maxcpu1off means during down ramping scaling of frequency at which max freq it starts deactivating 2nd core. This is what I originally wrote in my OTF and it's preserved and included in mine and Etana kernel of Vadonka. I dont know if stefen has changed anything in his kernel.

gueste's polling interval is 200ms for mincpu1on and 500ms for maxcpu1off. while mine is 2000ms for mincpu1on and 1000ms for maxcpu1off.

Which kernel you're using?
[LG Optimus 2x] TrymHansen:
2.6.32.-9HP-2X-Xtreme-SR3-OTFv2.

You can do the experiment easily yourself, you'll find it's true.

EDIT: When I first wrote the app to control the OTF the naming suggested it would be like you say. Now I've come to think of maxcpu1off as "The maximum frequency at which the 2nd core will stay off" (in other words turn it on if above) and mincpu1on as "The minimum frequency at which cpu2 will stay on" (in other words turn off.)
[LG Optimus 2x] spica1234:
Strange i have not that issue of locked 300 mhz min frequency. are you sure there is nothing left in init.d i mean no previous script which sets frequecy as per screen events on/off?

SR3 or SR3R2? SR3 is tool old and it was removed due to such issue with OTF.

YEs may be SR3 had that issue of 300mhz min frequency locked up which was resolved in SR3R

mincpu1 on : during upscaling at what min frequency it should activate 2nd core eg. 216->1015 upscaling suppost at 800mhz

maxcpu1off: during downscaling at what max frequency it will turn off 2nd core eg. 1015-> 216 downscaling suppost 503mhz

It wont take quick effect like gueste kernel. as his activation time is 200 ms while mine 2000ms(which is default set b y nvidia)

So my kernel for example will wait for 2000ms after cpu pass mincpu1on frequency after 2000ms still max ramping frequency is 800 then only it activates. suppost if after 2000ms cpu frequency has fall down then it wont activate. same for maxcpu1off

Please find SR3R version latest stable build from below link. thanks to superskill for uploading

http://xdaforums.com/showpost.php?p=24926178&postcount=4623
[LG Optimus 2x] spica1234:
Testbuild11: (OC)

-Scheduler tracing support. When launching new process. Scheduler trace cfs rq load. And decide priority for new process. Multi tasking will be more robust. Kernel will auto balance load. It should help with more free RAM after hours usage and help with more smoothness

-optimized scrolling(Beta stage)

-Optimized 2D/3D for lag free game(beta stage)

-KSM (Kernel Samepage Merging) support. It will use low RAM though will provide more performance through merging duplicate and/or inactive pages in same page more info http://en.m.wikipedia.org/wiki/Kernel_SamePage_Merging_(KSM)

-ARM sched powersaving featured

-Various optimized flags aimed for balance between stability-performance and battery management

-other changelogs is same of tb10

Downloads:

http://db.tt/faeCneQE
[LG Optimus 2x] SuperSkill:
I'm pleased to testbuilds coming out in good rates now, no more thanks left today, will test latest after work, but 10.zip was good, only thing ønsker, a bit high consumption during use :) keep it up :D
[LG Optimus 2x] SuperSkill:
Spica :D

If you want you can put my link to your work at first post to make it easier for all to find them :) If any of you have the few I'm missing please share or pm ;)

Thanks:)
[LG Optimus 2x] TrymHansen:
Yes. It's not an "issue", it's like that with all stock kernels. Minimum frequency when plugged in is 300867Hz. Look at included screenshots. Note I'm not saying anythings wrong, just stating a fact.

Again, no. Min freq when plugged in is 300Mhz.

EDIT: Forget about it, it doesn't really matter, as long as it works.
[LG Optimus 2x] vpaulve:
Spica, this file is same than linked yesterday, 06:53 PM (10.zip), is it right? No Testbuild11?
[LG Optimus 2x] spica1234:
No just file name is same "10.zip" as its alike tb10 oc version
[LG Optimus 2x] spica1234:
Thank you for reporting.

Ok now i got it first i misunderstood. When plugin means during charge?
[LG Optimus 2x] Ferrum Master:
Just got a random reboot while charging... Just noticed the phone flashing and media scan running. Something went wrong.
[LG Optimus 2x] TrymHansen:
Yes.

I'm going to make a program to make it easier to see the effects of the various otf-parameters (I have one already, need to adapt it).
[LG Optimus 2x] Ferrum Master:
V11 broken, doesn't see external sd card anymore, freaked out at start, thought that this is a return of spica sdformatter kernel, but no... in recovery everything is fine... :p
[LG Optimus 2x] spica1234:
Thats nice, thank you. Do you mean plugin by charging?
[LG Optimus 2x] spica1234:
Does it get resolved?
[LG Optimus 2x] Skyfall007:
bad battery on tb11... the best battery which i've ever had was on tb8!
[LG Optimus 2x] spica1234:
Thank you for reporting. Allow one battery charge-discharge cycle to notice battery life.
[LG Optimus 2x] Ferrum Master:
No it didn't something went wrong very badly and corrupted something although vold.fstab file was normal. Cache/Dalvik wipe didn't help. Did a nandroid back... to Gueste 1.6.1... :p

So till later... maybe someone will catch something also.
[LG Optimus 2x] Stefan Gündhör:
I dunno if it still matters, but you got that the wrong way round, even NVidia did in the source documentation.

maxcpu1off is the max freq second core will be off up to, after frequency is higher than this limit, second core will be turned on after being higher for longer than on-time milliseconds

mincpu1on is the frequency down to which second core should stay enabled, after freq goes lower than this boundary for longer than off-time milliseconds second core will be turned off

Have you never wondered, why NVidia asserts after setting that mincpu1on is lower than maxcpu1off? Because u turn second core on at higher freqs and off after being lower for some time again. The other ways round it wouldn't make sense and also in my kernel I use the freqs as just described and it works, as can be tested with guesteOC tool-
[LG Optimus 2x] spica1234:
Dont take it in wrong way but,

You are wrong here bro. Mincpu1on is at which mincpufreq 2nd core will be activated.

If i set 1.2 ghz at 1ghz of max clock. It never activates 2nd core in hp 2x kernel tweaker. And if i check by system tunner it never activates 2nd core. Same way if i lowwer polling interval to 100ms for on and 200ms for off and if i set mincpu1on at 216 & off at 1.2 as of 1ghz max freq it doesnt off 2nd core. Its completely logic and working fine. Thats why my users have never issue of 2nd core remaining always on:)

Nv_assert is idealized assert. What it should be. Perfectly right when mincpu1on frequency goes above (suppose 800) there is a need for activation of 2nd core and when maxcpu1off (suppose 850) means load is off turn the second core off:)

Have you never wondered why mincpu1on is less then max cpu1 off. Neither nvidia is wrong nor me. But it makes sense.

I believed the same logic which is followed by faux123(another recognized developer maintaining 6 devices), morfic, vadonka, vork kernel(another recognized developer), pastime1971,hackworks, harsh, heil1125 and nvidia. I dont think excluding me, their logic is also wrong:)

I have done a ton of R & D in this OTF creation during my testing phaze especially with mincpu1on and maxcpu1off. That wasnt overkill but for more understanding and more robust values for OTF HP eXtended Project:) and because of those overkill testing only OTF is now super stable.

Never mind:) you believe your understanding while i believe mine. But your logic is wrong here. Chills;)
[LG Optimus 2x] Stefan Gündhör:
Oh this issue has different reason, it didn't exist before v1.6.1 ;)

Trym and I have done much testing too, believe me. And we could exactly watch second core behavior thx to Trym's tool.

I don't say the logic of all the devs is wrong, I just say Nvidia documentation is wrong there and everyone just took the contents of the doku there for given.

Remove the NV_ASSERT line and try it again. (maybe the failing of the NV_ASSERT just completely cancels the second core turing on/off procedure)

Or best wait for Trym's tool to be out for your kernel then you can really monitor second core behavior.

By the way, NV_ASSERT asserts that mincpu1on is lower than maxcpu1off

In your logic mincpu1on is the frequency second core is turned on (when higher than this) and maxcpu1off the frequency second core is turned off (when lower than this).

Let's just assume this is true - what happens p.ex. if mincpu1on is 800 and maxcpu1off is 1000 and you run (and lock) the kernel at 900 MHz? Constant activation and deactivation of second core? :-)
[LG Optimus 2x] spica1234:
Bro, i am using system tuner as trym app is not yet available. And i can notice adequate functioning as per value. For example powersave '3' set max cpu1on frequency to above original available scaling max frequency and it doesnt activate 2nd core at all (same achieved by setting OTF value of mincpu1on any greater than scaling available max frequency )

And same way if i lower polling interwals, it applies to setting mincpu1on 216 and max 1.1 when actualy max frequency is 1ghz. By this appliances it doesnt turn off 2nd core.

I have not tried as per your way. May be it should working also but as per my ways its working also.

Anyways, thank you for suggestion i will look for it aswell:)
[LG Optimus 2x] Stefan Gündhör:
I'd really wonder if it still works for you if you remove the NV_ASSERT line. Maybe you find a free minute sometime to test.
[LG Optimus 2x] spica1234:
If min cpu1on is 800 as per my logic then after rechecking with polling interwals it activates 2nd core at 800mhz and when load drops after polling interwal of off cpu it deactivates 2nd core during downward scaling at 1ghz . Constant activation and/or deactivation depends on polling interwals for both.

Thats why nvidia recommends to set mincpu1on to be less than maxcpu1off(which should be lower than actual max frequency)

I can see no wrong behaviour of 2nd core with my and other dev's same logic.

If in this case i have to keep cpu1on min freq higher than maxcpu1off then even it works by w/o changing nv_assert line

Nv_assert basically shows developer recommendation as per their expertized recommendation. In my case if i remove whole nv_assert lines(which i did in the beginning) then even it worked and if i keep it regardless of whether mincpu1on is greater /less than maxcpu1off then even it works like powersave '3'

Plus if i enable kernel error messages with higher log level then even i cant find any errors and nor even at OS level.
[LG Optimus 2x] TrymHansen:
My new OTF app is here.
[LG Optimus 2x] vpaulve:
With Testbuild11 I had two automatic reboot into Go Launcher EX and Twicca.
[LG Optimus 2x] Skyfall007:
i have found a bug: after turning off usb connection the external card can't be accesed. I must reboot the phone!
[LG Optimus 2x] Ferrum Master:
Another one... strange... to reboot didn't help at all.
[LG Optimus 2x] SuperSkill:
Often after startup I don't get access to sdext, but it's always been like that so for me I guess it's the sdcard and not kernel or rom. Therefore I've ordered a new card to try ;)
[LG Optimus 2x] stevvie:
TB8 has working IP tables TB10 does not

Also noticed with TB8 and above (not got the PM for TB11 yet;) ) I can not mount any CIFS. With HP-PreSR4-2 I can mount Cifs. Just a heads up.
[LG Optimus 2x] Ferrum Master:
Man, I've got literary dozens of SD Cards because of my work... they cannot be all faulty... :D. It is pure kernel fault. As same OS same file system same apps, with different kernel doesn't cause any problems...
[LG Optimus 2x] SuperSkill:
I can't put up against this can I mate :) I just know it could be a problem, but regarding you i should know better mate :D
[LG Optimus 2x] spica1234:
I will revert it or i will fix it. I have tried to put mmc in suspend(mmc_sleep) state during hotplug for powersaving and resume it when when wakeup but i guess its not registering back in some cases. Thanks for reporting. I will release code-corrected version in few mins. If still its not properly being registered then i will implement it PostSR4 not now.
[LG Optimus 2x] spica1234:
Thank you bro for this beautiful application. I stressed cpu and its locked with 300mhz min frequency . You were right. I have fixed that already. Now regardless of whatever settings (eg mincpu1on maxcpu1off etc any settings) it doesnt lock at 300mhz:)
[LG Optimus 2x] TrymHansen:
Thanks. There are a few other things which are interesting when using the app.

1) On an OC-kernel, set maxfreq to 1000Mhz, UNPLUG IT, let it rest so one core is idle. Set polling interval to 100ms, Start a 100% stresstest. Notice how the frequencies jump to the maximum overclock for a short while before settling back at 1000Mhz.

That's why the extreme overclock editions would not boot on some phones, didn't matter if you had set maxfreq at 1000Mhx, it would still jump to 1550 or whatever the max was when activating the second core. Stefan has also postulated this may in part be why OC-kernels are less batteryfriendly than Non-OC. (Although there is more to it than that.)

2) Play with the "turn on" and "turn off" frequencies and see how it makes the processor behave. You'll see they work as intended. Then I'll tell you that the "turn on" frequency actually adjusts "maxcpu1off" and "turn off" adjusts "mincpu1on". Draw your own conclusions.
[LG Optimus 2x] spica1234:
Yes i already observed it. Millisec jump to 1408 mhz. And i came to conclusion that these OC codes are written for governors like ondemand conservatice etc. And for them it doesnt accecpt any frequency rather that described in frequency table. And in our pseudo governor case it just listens to voltage table rather than frequency table. It does scale voltage scaling not exactly frequency scaling. Thats why out tegra governor scales at any dynamic runtime generated frequencies rather than assigned in frequency table. Ideally as per case of standard governoes it doesnt accept any frequency(eg 1000mhz/823mhz etc thats not in entry of freqtable) rather than described in freq table. And cpu insome cases fails to read cpu_info>max frequency and assigns max freq to 1408mhz which is infact a symbolic constant of oc codes. Now i will take a look at it.

Anyways please try version below tb12 if you get time and confirm '300mhz' locked not happening now:)

http://db.tt/AR9gSF7D
[LG Optimus 2x] spica1234:
Tb12:

-Another attempt to fix mmc_resume after mmc_sleep event

http://db.tt/AR9gSF7D
[LG Optimus 2x] emanuele95:
dropbox link is not working!!!!!! where do i download the last version??
[LG Optimus 2x] spica1234:
The post above yours.
[LG Optimus 2x] spica1234:
Another mirror of 12.

BIG THANKS TO korumera for hosting support.

http://www.xdafileserver.nl/index.php?dir=LG/Optimus 2x (P990)/roms/Horse Power 2x eXtreme
[LG Optimus 2x] TrymHansen:
I did. The kernel-name of TB12 is "2.6.39-HP-2X-Xtreme-SR3R-Final-NoOC-OTFv2" even though it is an OC-version.

Anyway, the minimum frequency when plugged in (charging) is still 300Mhz. I don't see why you want to change it, all stock-based kernels are like that. Anyway, you didn't "fix" it (it doesn't need fixing if you ask me.)

---------- Post added at 06:26 PM ---------- Previous post was at 06:16 PM ----------

Look closely at why it doesn't happen when the phone is plugged in. There is a different code-path somewhere, because it simply does not happen then. Btw, Stefan fixed this a while ago, but reverted some of it due to suspicions of increased power-consumption. He'll have an idea what to do.
[LG Optimus 2x] spica1234:
Ok thank you. Yes you're right. Okay now i will look for 1408 jump. It happens only once everytime during activation of 2nd core.
[LG Optimus 2x] Stefan Gündhör:
Oh boy you told me your kernel does not have the OC-scaling bug. I'm searching day and night for the reason what I'm doing wrong and now I have to find out you have the bug too, like I always thought right from the beginning -.-

But because none of the recognized DEVs noticed before me I had to be wrong of course :-) Sorry no offense, but I (Trym and me) discovered the OC scaling bug already weeks ago and I also told you, maybe you believe me now :)
[LG Optimus 2x] spica1234:
Yes boy i told you because its more obvious and more frequent everytime in your kernel than mine in system tuner . In your kernel i can see popping of 1408 everytime even in system tuner while in mine only in trym's application never in system tuner.

Yes you and trym discovered this bug, no other recognized developers as trym application is available for my kernel just now and none of my users reported it, for the bug discovery, you can take credit:)

Now let's concentrate about bug solution w/o affecting innocent battery instead bug discovery as its already discovered by you and trym:p
[LG Optimus 2x] TrymHansen:
Please guys, let's not start a war (again.) And you both have used the same code. Same code = same behaviour.
[LG Optimus 2x] Ferrum Master:
You are funny guys... I'll start testing the new kernel...
[LG Optimus 2x] spica1234:
Lol. Yes being on topic about thread:p And please report battery. I have added smp hotplug codes to suspend both cores. And please report mmc_resume part.