yashsingh1/xdaforums huggingface dataset:
[Galaxy S III Original Android Development] AndreiLux:
Hotplugging still has to obey the runqueue depth thresholds so even if this might impacts the frequency thresholds it does not trigger or affect the hot-plugging granularity, the frequency thresholds are there just as safeguard to not plug in in the low frequencies where you can have high load respective to the low frequencies, but it's totally irrelevant to us.

It does not matter if a secondary CPU is running on high frequency with low load, the CPU idle driver takes care of such cases and suspend execution / clock gating takes place on that CPU and it doesn't have any active dynamic leakage if it's not executing anything. The only disadvantage here is that you're processing small loads on a much higher base frequency and thus also voltage so your efficiency/cycle is suffering needlessly when you could have executed the same task at lower voltage, static leakage also is higher but that's some minor power consumer during load as it's overshadowed by the dynamic leakage on the executing CPU. That's an architectural limitation on the ARM designs as all cores are on a single frequency plane. Qualcomm cores are asymmetrical with each core having its own frequency plane, but that also brings some problems with itself. Load is also only a statistic in percentage of how much time the CPU is executing something, if the load is low, there's less power consumption.

Load balancing is already happening in the scheduler and you have the most demanding task almost always on CPU 0 (Due to many scheduling factors); I suspect you're misunderstanding how that works since you're saying "balancing the load equally won't process it any faster", you cannot balance a single process/task on different CPU's or somehow divide it, it's a single thread and thus the lowest granularity entity you have in code execution. Your 100/10%-80/30% is not possible. The scheduler already does its job in grouping the processes together on the CPUs such that the highest load threads are not limited due to pre-emption of other processes on the same core. Actually that's the reason why we artificially change the weight distribution with the CPUPower driver on the lower frequencies so that we take advantage of the shallow power efficiency curve at the bottom frequencies, so that when you exceed 500 MHz there will be task-rescheduling and, if needed, migration to the other cores.

The whole power management is a choreography of different mechanisms coming into play at different times; each having different granularities.

CPU Idle / WFI on a minimum target residency of 5µS.

CPU core power collapse due to AFTR on a target residency of 1000µS (Only happens on a single core).

The scheduler doing load balancing continuously.

The CPUFreq governor doing frequency changes on a 12500 - 30000µS rate.

CPUPower driver changing the weight distribution based on CPUFreq frequency, also part of the scheduler mechanics.

Hotplugging doing complete power collapse at the same rate as CPUFreq (30000µS) based on a collected 2s trailing window for offlining the cores and 1s for bringing them online.
[Galaxy S III Original Android Development] thething869:
Re: [Kernel][09/01] Perseus

It seems that what ive been taught for how in which the CPU load distribution and power management works previously was a bit oversimplified, so thank you for the detailed explanation/break down.

Sched_mc: yea sweet that clears that up

Clock gating/secondary CPU with low load: yes thats what i was referring to, the unneeded higher clock for the low load, but as you have now informed me its a hardware limitation so not much can be done.

Load balancing: yes you were correct, I misunderstood how load balancing works.. makes sense now though, you can't split a thread. So because of this, along with the fact that arm designs are on a single frequency plane is what accounts for my scenario where a second core is unnecessarily running at a higher frequency with low load?

The problem you said you noticed before was that high residency was being achieved in the WFI state and thus a delay in reaching the complete power collapse of the core.. right?

Cheers, given me lots to think about
[Galaxy S III Original Android Development] Flypwnz:
Re: [Kernel][09/01] Perseus

Can anyone post script for disabling mdnie?
[Galaxy S III Original Android Development] The Broken:
Re: [Kernel][09/01] Perseus

Seriously, you don't want that! Isn't it possible in Stweaks? Because on Siyah it is..
[Galaxy S III Original Android Development] Flypwnz:
Re: [Kernel][09/01] Perseus

This is siyah thread? Correct me if I wrong.
[Galaxy S III Original Android Development] Drizzy xS:
Re: [Kernel][09/01] Perseus

Your wrong. Haha :p
[Galaxy S III Original Android Development] The Broken:
Re: [Kernel][09/01] Perseus

? You can be all smart ass and stuff or just accept my help since Purseus uses Stweaks 2
[Galaxy S III Original Android Development] Flypwnz:
Re: [Kernel][09/01] Perseus

Just tell me you are stupid or what? You are using siyah not perseus.
[Galaxy S III Original Android Development] domenicop:
can i flash the kernel via odin, using the not-CWM version, if my phone is unrooted?

i would like to not increase the cusom binary count, if that possible of course...
[Galaxy S III Original Android Development] The Broken:
Re: [Kernel][09/01] Perseus

Flashing with Odin will increase your flash count. What I suggest is: root it and then flash everything with mobile Odin (i read that mobile Odin doesn't increase the flash count) or through CWM.

If you later want to reset your flash counter, search for "triangle away"
[Galaxy S III Original Android Development] Infy_AsiX:
Re: [Kernel][09/01] Perseus

Very informative discussion Andrei. Can you explain why the core bias is dual? Doesn't having just the one save significant power while hotplugging works in sync? Also any reason not to raise online bias down? As the default 30 seems really slow.

Besides those settings, undervolting and sound everything else is default for me.

?????? Galaxy S3 ??????
[Galaxy S III Original Android Development] Anakha56:
@AndreiLux & thething869 thank you so much for the interesting conversation, learnt quite a bit there :).
[Galaxy S III Original Android Development] owl74:
Good morning everyone. Has anyone tried using this with:

GT-I9300 - Italy

PDA: I9300XXEMA1

CSC: I9300ITVEMA1

Version: 4.1.2

Date: 2013-01-12

Sorry for noob question but is there any chance that the kernel can break something if flashed with a new rom?

Thank you
[Galaxy S III Original Android Development] MuertoKo:
Re: [Kernel][09/01] Perseus

Worked properly so just flash

Enviado desde mi GT-I9300 usando Tapatalk 2
[Galaxy S III Original Android Development] airpong:
Would you make some tweak for this kernel to enhance battery life from next release?! really appreciate.
[Galaxy S III Original Android Development] mamba720027:
Re: [Kernel][09/01] Perseus

The default settings are pretty much optimized for that but I usually play with settings to balance out performance and battery for my personal use which I'll share. If theirs any reboots,its most likely cause of too much UV ,just raise CPU,GPU,internal/memory voltages accordingly for example +25 to each frequency. I have not choose to left anything to "set on boot" in STweaks so my profile should be safe to use without worrying about a sudden bootloop right after u apply it :D

And here's my STweaks profile I been useing a couple days now that u can try and see if battery usage is any better.

http://db.tt/c7s393bc

Just use a file manager such as rootexplorer,unzip file and place profile in "data/.Perseus"

Use the app found in link below to backup or restore profiles,which u can now use to apply the unzipped profile.

xdaforums.com/showthread.php?p=35149008

Here's my current usage with that setup
[Galaxy S III Original Android Development] domenicop:
Re: [Kernel][09/01] Perseus

Is there some perserus settings script aimed to decrease ui lagging/increase ui responsiveness?
[Galaxy S III Original Android Development] Stivikivi:
there is noch data/perseus folder :S
[Galaxy S III Original Android Development] break1:
AW: [Kernel][09/01] Perseus

"data/.perseus"
[Galaxy S III Original Android Development] Stivikivi:
when i go on data, their is only another folder named data, app, app asec app-private cfw backup clipboard and so on.

nothing with .perseus weird :S

nvm, had to tick an option to see this ty
[Galaxy S III Original Android Development] mamba720027:
Re: [Kernel][09/01] Perseus

I think it presentes itself after installing the app to back profiles,looks like in the screenshot below.
[Galaxy S III Original Android Development] behemot24:
reading those lines was for me like a 3rd degree encounter :cyclops: I had no idea that there so many variables and specific terms involved in kernel development and tuning - it looks like a whole science on its own. i knew the guys who develop kernels are smart, but now i think they're geniuses :)
[Galaxy S III Original Android Development] TheMasahiro:
Anyone know how to reduce the lag on unlock screen? I mean the moment you click on the side button until the screen turns on takes like 1.5 seconds....
[Galaxy S III Original Android Development] giajp:
R: [Kernel][09/01] Perseus

Thank u mamba. Why u disable The dynamic fsync?

Sent from my iPhone5 Fu**er S3 using the Perseus kernel.
[Galaxy S III Original Android Development] The Broken:
Re: [Kernel][09/01] Perseus

Download wake lock from play store and put it on partial wake lock. This will let you turn your screen on like instantly. It will have an effect on your battery life though..
[Galaxy S III Original Android Development] Jmldsilva:
Re: [Kernel][09/01] Perseus

Hi. I can't film in full hd it gives an error every time.. can you help me?
[Galaxy S III Original Android Development] habylab:
Re: [Kernel][09/01] Perseus

Hmmm, are you on 31.2? 31.1 had this problem.
[Galaxy S III Original Android Development] mamba720027:
Re: [Kernel][09/01] Perseus

From what I understand is with dynamic fync on it keeps the data writes safe and allows synchronization writes to disc when the screen turns off which prevents data lost and system corruption in the event of a sudden crash and phone turns off.

With Dynamic Fsync disable it speeds up system. I see dynamic fsync as a safety mechanism that hinders performance so I just disabled it since I never experienced anything being corrupted useing my device in such a scenario. Its like disabling "write cacheing" on a computer storage drive to boost performance where it is recommended not to do it.
[Galaxy S III Original Android Development] qwerty12:
You actually want dynamic fsync turned on. That is, if I've read you right and you don't mind the flushing of cached data to be delayed. With it on, when the screen goes off, cached data is flushed and fsync() et al. is now allowed to run when requested to. With it off, fsync() will run as the kernel sees fit (I know nothing of the rules regarding this) even if your screen is on and you're (presumably) using the phone.

Keeping it off is the safer option, but I don't mind having everything flushed when the screen is off rather than also having it flush when my screen is on as, obviously, I'm not using it then. My phone's screen gets turned off plenty so it's not like data never gets flushed. My phone doesn't abruptly restart on its own when in use so I don't really have to worry about losing data and my phone gets shutdown normally when I do turn it off.
[Galaxy S III Original Android Development] mamba720027:
Re: [Kernel][09/01] Perseus

That's right. So its up to user choice to leave it on or off.
[Galaxy S III Original Android Development] AndreiLux:
Re: [Kernel][09/01] Perseus

If there's any feature request for the next version now is the time to express it. I got most demands covered but just checking again. Also not AOSP or dual-boot related please.
[Galaxy S III Original Android Development] ramas123:
Re: [Kernel][09/01] Perseus

Is it possible to port touchwake as it was in S1 kernels?
[Galaxy S III Original Android Development] mamba720027:
Re: [Kernel][09/01] Perseus

Any way to add a feature or option to reduce the screen frame rate less than 40 or modify it as to reduce even more battery consume by the screen? This may not be possible or if its possible I won't mind experimenting with something of such.
[Galaxy S III Original Android Development] thekoRngear:
I just wish to have the stweak app to open faster. That is it.
[Galaxy S III Original Android Development] vasilisf7:
Απ: [Kernel][09/01] Perseus

If possible to twik the speaker up a little bit! Thanks. ..

☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆

.GT I9300 ON STEROIDS!!!

.OMEGA ROM V39

.PERSEUS LATEST KERNEL

.PHILZ RECOVERY

.MOTOMOTO00 THEME

.RAUB'S & VEGETA'S MODS
[Galaxy S III Original Android Development] nfsmw_gr:
Those two would be awesome! :D

Plus some zRam support would be nice. :)
[Galaxy S III Original Android Development] d8389:
Charge control
[Galaxy S III Original Android Development] tolis626:
I don't have a feature request exactly,but if you have time try to check GPU related stuff.I mean,I have to up voltages too much for it to be stable and it still does a hiccup every now and then.It might be the way your implementation works,but just sayin'. :)

Other than that,anything that improves performance is welcome ;)
[Galaxy S III Original Android Development] TheMasahiro:
ohh... i see... if thats the downside i dont mind the 1.5 seconds delay xD
[Galaxy S III Original Android Development] Bushido76:
AW: [Kernel][09/01] Perseus

I thought christmas is over... ;)

My wishlist:

- reintegration of block modules of linux 3.3 including fiops scheduler (without loosing exfat support)

- a possibility to read out emmc firmware date (maybe a debug message)

Thanks in advance,

Bushido
[Galaxy S III Original Android Development] onfire23:
Re: [Kernel][09/01] Perseus

Hi my request would be the same as the poster one post above me....the gpu is not stable at higher clocks....but it is stable at the same exact voltage in siyah kernel...but I like ur kernel more...

And can u confirm throttling of the cpu before 80 c..it throttles when the battery temp is about 41c( cpu around 65c)...this happens in all samsung jb roms and kernels...but cm10.1 doesnt seem to be affected. ...
[Galaxy S III Original Android Development] orangerot.:
AW: [Kernel][09/01] Perseus

I would like to have a slider for usb and ac charging rate to change the ac rate to 1200 ma and the usb charging to 900 ma. A fading led would be awesome too :)
[Galaxy S III Original Android Development] mattiadj:
R: [Kernel][09/01] Perseus

+1! There are only things that I miss from siyah

From universe with my gs3
[Galaxy S III Original Android Development] Flypwnz:
Re: [Kernel][09/01] Perseus

Enable/disable mdnie in STweaks.
[Galaxy S III Original Android Development] tincmulc:
Feature request:

Logging of deep idle residency times and exposure to some kind of interface (/sys would work). It should display the average residency and total time for each of the idle states (including the normal WFI).
[Galaxy S III Original Android Development] AndreiLux:
Re: [Kernel][09/01] Perseus

This three are already in so no need to repeat requests.

That's available in every kernel.
[Galaxy S III Original Android Development] mattiadj:
R: [Kernel][09/01] Perseus

Editable with stweaks?

From universe with my gs3
[Galaxy S III Original Android Development] orangerot.:
AW: [Kernel][09/01] Perseus

I was wondering about this too. Just checked stweaks again and non of these options are available there..
[Galaxy S III Original Android Development] AndreiLux:
Re: [Kernel][09/01] Perseus

I meant they're in the v32 feature set.
[Galaxy S III Original Android Development] BrandoHD:
Re: [Kernel][09/01] Perseus

Thess options would be made available in STweaks upon flashing the kernel, if the dev so chooses
[Galaxy S III Original Android Development] TheMasahiro:
What do you guys think about the best multitasking fix?
[Galaxy S III Original Android Development] nfsmw_gr:
It made my phone lag,so i don't use it.

Try it if you wish,just browse through the zip before you install it so you can know what to unistall after. ;)

Also after having tried lots of mods and tweaks since the i9000 i had,i now clean every rom from the performance mods it has,including buid.prop and init.d tweaks because i saw lilte to no performance gain and also sometimes i saw stutter too!

The only tweaks i'd recommend you to use would be the zipaling and sqlite optimize scripts and some manual sysctl tweaking. :)
[Galaxy S III Original Android Development] Scarface1991:
+1
[Galaxy S III Original Android Development] Jmldsilva:
Re: [Kernel][09/01] Perseus

Iep it works now.. many thanks...
[Galaxy S III Original Android Development] giajp:
R: [Kernel][09/01] Perseus

Enable/disable Android logger

Sent from my iPhone5 Fu**er S3 using the Perseus kernel.
[Galaxy S III Original Android Development] bala_gamer:
Testing with checkrom v5 (lh1) , antutu, nenamark crashes and restarts the mobile.

Camera looks good so far
[Galaxy S III Original Android Development] eric-filth:
Humm strange.

Here is everything smooth and working. Serious i liked this version.

Im using LH1 stock unbranded with my update.

Enviado do meu GT-I9300
[Galaxy S III Original Android Development] bala_gamer:
my base rom should be the problem. which rom are you using eric?

Edit:

glad to see the compatibility with stweaks ! thumbs up.
[Galaxy S III Original Android Development] AndreiLux:
I have no such issues. Check your scripts and settings, sounds like an undervolting problem.
[Galaxy S III Original Android Development] eric-filth:
Just LH1 (ITV) Stock with some modifcations by me.

Enviado do meu GT-I9300
[Galaxy S III Original Android Development] currydude:
Yay was waiting for an update :)
[Galaxy S III Original Android Development] eric-filth:
Good. I dont knew that.

Can you upload stweaks here for us?

Enviado do meu GT-I9300
[Galaxy S III Original Android Development] bala_gamer:
oops sorry mate , jus flashed lh9... just install siyah once and backup stweaks.. you can flash back perseus later .

though there is not too much options available to tweak its a good start atleast. Hope to see the same understanding between gokhan and andrei for a very long time ....

edit: fortunately its there in my tb.. have attached it here , import via tb :)
[Galaxy S III Original Android Development] aydc:
GokhanMoral's stweaks lets us set usb charging speed higher with this kernel too. I don't know if it works though? This is a very important feature for me, since with Samsung's default charging speed, charging your battery is like watching paint dry.
[Galaxy S III Original Android Development] eseregin:
Had Camera freeze in video mode.

Just hang application.

Anybody tried it?
[Galaxy S III Original Android Development] MuertoKo:
Heya Andrei welcome back :D

Decreased Mali utilization timeout to 100ms down from 1s which improves reaction time on instant GPU loads (Lock screen is best example).

Will this mean an improvement on the unlock lag? O.o As I'd read some time ago that it was Exynos/Modem related, not Mali... but that makes some sense to me :P

And btw, is GPU overclocked or just OC ready?

Btw will give it a flash to test features :)
[Galaxy S III Original Android Development] SirCanealot:
Very sorry for the noobish question, but if the kernel doesn't support extweaks, how do I adjust params? I assume an initd script?

If so, does anyone have a decent example of one I can use? I really want to give this kernel a proper try! (going to flash it on the way to work and mess around though! :D)

Sorry again for the NOOB question, but I have learning difficulties, so anything with plain text code like initd scripts makes me sit in front of the screen crying for about an hour till I can figure it out :P

Thanks!
[Galaxy S III Original Android Development] albireox:
I don't know if I understood your question, but you can use STweaks (the link for download is posted in the previous page). Just restore the zip using titanium backup.
[Galaxy S III Original Android Development] greatervoice:
Hi,

Does this kernel is suitable for latest sammy jellybean 4.1.1 leaks?
[Galaxy S III Original Android Development] albireox:
NO!

Until Samsung releases sources for the JB (and that would be after they release the final version of the ROM) I don't thing will see a JB compatible kernel.
[Galaxy S III Original Android Development] greatervoice:
Thankyou for your quick reply

---------- Post added at 04:09 PM ---------- Previous post was at 04:07 PM ----------

Please anyone give information about jellybean 4.1.1 leak compatable kernels?
[Galaxy S III Original Android Development] bala_gamer:
wait until its officially released and samsung to drop the source code
[Galaxy S III Original Android Development] albireox:
I don't know if it's because of the STweaks or not, but after I installed STweaks, my phone freezes sometimes. No changes were made in stweaks.
[Galaxy S III Original Android Development] AndreiLux:
I don't know what you are all doing, If I would have supported STweaks in any way I'd think I'd have mentioned that in some way; I even double-checked to see if I didn't magically happen to unwillingly copy the /res folder over in the ramdisk, but no. Whatever STweaks is doing is failing its compatibility checks. In fact I just asked Gokhan and it's because he forgot a default .xml within the app.

Bala_gamer, I'd appreciate if you stop being quick to the trigger and claiming and posting things in here, ok? Not a big fan of that stuff.

@eseregin

Please elaborate on how it happened, what base ROM are you on, did it crash on immediately switching to video mode, did it crash when you started recording? Back camera right?
[Galaxy S III Original Android Development] bala_gamer:
@ andrei

oops my bad, it ended up wrong. just had a second that you may be working on it, sorry for that
[Galaxy S III Original Android Development] torsrex:
Re: [Kernel][09/01] Perseus

Not sure if this is possible, but I'd like to lover the lowest exposure of the camera. I noticed that when filming fire and such the exposure is still too high.
[Galaxy S III Original Android Development] funeralcrows:
Re: [Kernel][09/01] Perseus

USB charge/AC charge voltage slider.

LED Fading/Blinking toggle.

Screen turn off delay adjuster, to assist CRT effect.
[Galaxy S III Original Android Development] airpong:
Thanks. but I am using I9305, is the setting the same? (i mean in stweaks) :confused:
[Galaxy S III Original Android Development] dragon135:
Re: [Kernel][09/01] Perseus

I need adjustable usb charging current, so I don't needed to worry when sleeping with usb plugged

Sent from my GT-I9300
[Galaxy S III Original Android Development] JSale:
If at all possible, compatibility with malistatus.

Regards

Jack
[Galaxy S III Original Android Development] thething869:
Re: [Kernel][09/01] Perseus

Its easier if someone just recreates mali status for Perseus. Andrei has posted the paths for the current gpu freq and voltages in the first post. Simply change the paths in mali status to suit the changed perseus kernel... I'm pretty sure that's all that needs to be done... I would do it but I won't be near a PC for a while
[Galaxy S III Original Android Development] nfsmw_gr:
Hey Andreilux,don't know if it's possible to fix this or not but i've found a bug(must be general not on your kernel only.)

I copied a rom,in other words a large file,from a folder to another and while the rom was being copied the statusbar was laggy as hell and the whole android system was laggy too.

So i think when there's high io load the system lags,in my opinion for no obvious reason(the statusbar isn't affected at all by the transfer,it doesn't read anything afaik)...

Could you take a look at this issue please?

EDIT:Btw same lag happens when you get statusbar notifications,i forgot to mention that too.
[Galaxy S III Original Android Development] JSale:
Ok thanks, I'll have a look later.

Regards

Jack
[Galaxy S III Original Android Development] onfire23:
Re: [Kernel][09/01] Perseus

Slide2wake would be nice:)