Jump to content

[KERNEL] [Y300/G510] Stock Huawei


Guest

Recommended Posts

Well, the changes to OnDemand definitely got an impact on scores:

 

Before it behaved like this:

  • idle? -> scale to MIN frequency
  • any kind of load? -> immediately squeeze anything out of the CPU it got and bump everything to max, no matter how much energy it does cost biggrin.png

Now it does: scale better through all available frequency ranges, which leads to an more frequent selection of frequencies below MAX.

 

Before: it only jumped between 320 MHz and 1008 MHz

Now: frequencies 480 MHz and 700 MHz are getting used as well

 

I'm trying to optimize the scaling algorithm(s) a bit.

 

Here's an screenshot of the frequency utilization AFTER those changes:

 

Screenshot_2014_07_24_18_32_16.png

Edited by Guest
Link to comment
Share on other sites

I can't see the screen

You need to click on "spoiler"

EDIT: you are right. On my mobile browser it doesn't get shown.

Edited by Guest
Link to comment
Share on other sites

Update of yesterday's TEST_BUILD: http://www26.zippyshare.com/v/41036313/file.html -> http://www1.zippyshare.com/v/3102165/file.html

 

  • commented out 1 line of the new ondemand governor (which is supposed to downscale the frequency faster)
  • compressed the kernel once again with LZ4 (I still don't notice any difference during boot)
  • removed 2 commits
  • changed kernel's config a tiny bit

 

This build seems quite responsive and first bench runs seems to perform better than yesterday - even with the new OnDemand. I still fear the new algorithm for target frequency determination causes l0wer benchmark scores though. They are not back at the level they have been once.

 

 

(same build compiled with GCC 4.6.4 -> http://www44.zippyshare.com/v/84522078/file.html ; seems like 3D scores are better on this GCC version. in my oppinion GCC 4.9.1 is still the better choice)

 

 

 

EDIT: In the updated version

  • PMEM got removed
  • reduced MAX charging voltage from 4350 mV to 4300 mV to increase battery longevity and to prevent overcharging
  • enabled 2nd ZRAM device (total number of ZRAM devices is now: 2)
  • some minor config/code changes not worth mentioning
Edited by Guest
Link to comment
Share on other sites

Yes, because on this kernel build there's already an frandom-script included within the ramdisk.

 

Optionally you can use any other frandom-script of your choice, too. It doesn't matter. It might the more safe to use "start frandom" in case I'll auto-enable frandom one day again :P

Link to comment
Share on other sites

Guest fonz93

I remember that you posted (or Victod maybe) an executable command in terminal emulator to see if it is working, can you link that? i can't find it, thank you

Edited by fonz93
Link to comment
Share on other sites

Guest fonz93

If it worked you will have 2 new files under /dev :

/dev/random.orig

/dev/urandom.orig

 

i have random, random.orig, urandom, urandom.orig, it's ok?right?

 

 

With this kernel version, i have a problem of no "enough space available" (SCREENSHOT) (6 mb only) in /data, but i have 350 mb left, this happens only if i start frandom at boot

 

i simply added this line:

 

# Frandom

start frandom;

 

in my init.d script, where i am wrong?

 

 

Edit: After 2 reboots, the problem just disappeared and now it seems that "start frandom" via init.d works, really strange

Edited by fonz93
Link to comment
Share on other sites

Guest luca020400

Update of yesterday's TEST_BUILD: http://www26.zippyshare.com/v/41036313/file.html

 

  • commented out 1 line of the new ondemand governor (which is supposed to downscale the frequency faster)
  • compressed the kernel once again with LZ4 (I still don't notice any difference during boot)
  • removed 2 commits
  • changed kernel's config a tiny bit

 

This build seems quite responsive and first bench runs seems to perform better than yesterday - even with the new OnDemand. I still fear the new algorithm for target frequency determination causes l0wer benchmark scores though. They are not back at the level they have been once.

 

 

(same build compiled with GCC 4.6.4 -> http://www44.zippyshare.com/v/84522078/file.html ; seems like 3D scores are better on this GCC version. in my oppinion GCC 4.9.1 is still the better choice)

Thanks 

Only a question : I tried to build your kernel in mine CarbonRom 4.2.2 with GCC 4.6.4 but got a lot of error

How have you compiled this kernel with this gcc version ?

Thanks 

Link to comment
Share on other sites

By supressing all warnings about uninitialized variables. Most of the time it's a false positive.

I don't have any other kinds of errors. Everything got fixed.

Link to comment
Share on other sites

Guest SH3H1

Is 118MB ZRAM (Disksize?) too much?? :Huh:

@Fonz93

Can you make a script with this? Since the app halfs the disksize 1/2 every reboot :wacko:

Link to comment
Share on other sites

Is 118MB ZRAM (Disksize?) too much?? huh.png

 

It shouldn't be more than 10% of total RAM available in general. For our device I wouldn't recommend more than 50 - 75 MB totally.

Link to comment
Share on other sites

Guest SH3H1

It shouldn't be more than 10% of total RAM available in general. For our device I wouldn't recommend more than 50 - 75 MB totally.

Okay thank you...!!!

So i merely ask fonz to make one with 75MB

I wan't maximum possible since my phone slows down whenever the ZRAM block is full :O

Link to comment
Share on other sites

Some technical information about the RAM usage on our phone.
 
My device got an total amount of 463 MB RAM.
 
A part of it is getting statically allocated for our hardware:
 

MDP (video/camera): 28 MB
ADSP (QDSP audio/multimedia chip): 18 MB
Audio: 2 MB
"Unknown" (don't know yet): 2 MB
---
= 50 MB "dead" memory not useable for anything else

 
 
 
This leaves 413 MB as maximum available for the kernel, which is getting split into:
 

Memory block #1: 251 MB
Memory block #2: 0 MB
Memory block #3: 1 MB
Memory block #4: 160 MB
 
---
 
Number of free pages: 393 MB
Reserved pages (for buffers and other stuff): 70 MB
Highmem pages: 0 MB

This leaves a real amount of 323 MB memory for Android.


It's possible to reduce the size of the MDP & ADSP buffers. This would increase the amount of free RAM at cost of functionality. We could only experimentally try how low we can go.

Edited by Guest
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.