yashsingh1/xdaforums huggingface dataset:
[Nexus 5 Android Development] jawz101:
I'm not going to lie and say I notice any speed or battery improvements. I'd probably have to have 2 phones side by side to do a comparison or, better yet, some devices more open and with less variables such as Beagle Boards or Rasberry Pi's that only have a kernel, a shell, and some scripts that do math problems or something. I don't like giving objective opinions but xda is all about objective opinions. That's why a v6 supercharger script gets so popular.

I assume LTO is doing something but if it can't optimize the closed source code in any of the proprietary drivers I assume gains aren't noticeable without stripping out everything and testing it from a script from a command line. I think Linaro has some benchmarking scripts that will do things like that- I'll have to look.
[Nexus 5 Android Development] reas0n:
It would be nice if u found it. lol v6 supercharger is a scam, maybe it worked on old, really old phones, but now it doesn't make a difference.
[Nexus 5 Android Development] marioemp2k7:
Battery life is a very subjective issue. I for one, tend to get the most out of the battery while using the latest stable 5.0.2 Vivid iteration. Performance wise the latest LTO test 4 is the best, but the battery is a little worse. I'm eagerly waiting for the next one! Keep up the good work guys!
[Nexus 5 Android Development] socioteq:
One thing that I noticed in testing is that the default settings for the kernel were off (high/low freq for interactive governor). If you weren't getting good battery, I would check that your kernel falling back to 300. Before I checked that this wasn't the issue, I was pegged at 1190 at all times, 1190 high and 1190 low. I would install UKM and also just make sure that your settings are right. Now that I changed that setting, I am getting great Antutu scores and my battery life is wicked good. I spoke with reas0n and we noticed that this wasn't the issue across the board, as he didn't see the same issue as me. But it's worth checking.
[Nexus 5 Android Development] zeppelinmad4:
Just flashed Test4. Did anyone ever figure out a fix for the no mobile network problem? I remember seeing people saying they were having problems on Sprint but I'm on T-Mobile and am having problems. Sometimes when I reboot, I have data and sometimes when I reboot, I don't. Tried changing the network but nothing seems to work too well.
[Nexus 5 Android Development] patrickph:
[MENTION=3371513]reas0n[/MENTION] great work.I try build slimsaber for n5 with lto, feel my build run smooth but antutu sco is very low compare to with ubertc no-lto.

Any one here can share your antutu score ?
[Nexus 5 Android Development] socioteq:
Kernel settings?

Again, check your kernel settings. If they´re off you need to install UKM and fix frequencies.
[Nexus 5 Android Development] Isidorosis:
it's from this morning
[Nexus 5 Android Development] reas0n:
I get 44k on Antutu... And what? Nothing. Antutu isn't worth a use.

Btw, last commit of LTO is broken. I have still a lot of modules to enable/test. After testing and moving to normal cm-12.1 branch I will give a one, ready LTO commit.
[Nexus 5 Android Development] jawz101:
.... An article on Phoronix mentions noticing improvements in LTO compiled kernels with a Dhrystone 2 benchmark.

As for Linaro's benchmarks they mention some here

https://wiki.linaro.org/Platform/Android/AutomatedThirdPartyBenchmarks

I figure if I was writing a paper on this for school I'd have to do benchmarking by connecting via adb and run scripts.

Have no apps or gapps installed (or at least freeze them), set governor to performance so it stays at a constant frequency, put in airplane mode and have the device on a flat surface not touching the screen... And I'd try to just automate as much of the process as possible.

When I would benchmark my first Android phone it would spike cpu just by using the touchscreen during benchmarks... A single core cpu really shows you how intensive sensor data is.

This being a quad core chip it's got governors and hotplugging and all that jazz that would make for more variables.
[Nexus 5 Android Development] reas0n:
Well, kernels, but we talk about LTO for ROM,
[Nexus 5 Android Development] jawz101:
Then I don't know :/ I suppose Android in itself would probably have more significant gains but I wouldn't know how to measure that. Perhaps some of Google's tools in Android Studio or the Eclipse add-on. But, I mean, how much of Android code is anything more than the ui? Not a big codebase to look for ways to trim it up... I'm not entirely sure what to look for but I'm curious about compiling with and without then using something like Meld (a file comparison tool) to see what files look like between the two... Say some overflow animation code stuff got changed a lot... Then run some monitoring tool while you perform that action and see if milliseconds got shaved off? I'm just making this up :/
[Nexus 5 Android Development] reas0n:
No idea, but I saw a difference when I added the LTO only for ART (github says 85% of ART repo is C++, I also disabled Clang and used GCC for ART), so it must be doing something. Actually I'm still adding the modules, I just can't simply enable everything, the error logs are just impossible to read so I don't know what module doesn't like LTO :/
[Nexus 5 Android Development] jawz101:
That's realllly interesting about it affecting ART. If this is your research topic I'm very interested in what you find. I may start playing around with it too. Wish I had an SSD... and more RAM... and a faster CPU lol.
[Nexus 5 Android Development] zymphad:
Hehe, I updated my Ubuntu setup with i7 4790K, 256 SSD, 16gb 2400, but I haven't done any compiling since. Should get on that.

It's a laptop BTW, hahaha.
[Nexus 5 Android Development] jawz101:
Dang! Please do. I want to know what compile times that produces. How did you put a new CPU on a laptop?? Did you disassemble the thing?
[Nexus 5 Android Development] zymphad:
Had to upgrade to a new laptop. i7 4790K uses a newer socket than I had and uses the newer chipset as well. It's a full normal LGA1150 socket with Z97 chipset.

I'll do a run with stock Vivid and let you know the times, once it's all setup. New job and whatnot, been lazy with Ubuntu, I am a Windows 8.1 fan. Hence why W8.1 gets the new 512gb M6 m.2 drive.
[Nexus 5 Android Development] reas0n:
Compiling with LTO is broken because I'm still working on it, so it should be disabled while compiling
[Nexus 5 Android Development] big_bum:
Did you disable CM account or it isn't present in 12.1 yet?
[Nexus 5 Android Development] reas0n:
I found it useless so I deleted it. Besides that, I see I can't compile a good build from staging/cm-12.1 anymore and I don't have time to move now, I have a lot of university stuff... Sorry, but I have to pause a little, I don't have anyone who would help me.
[Nexus 5 Android Development] big_bum:
I think they started to move things from staging to cm-12.1
[Nexus 5 Android Development] reas0n:
I think I will move to cm-12.1 nightly branch in 2-3days and then give a build once/week till i get some time, so You will guys keep up-to-date with fixes etc.
[Nexus 5 Android Development] Dr.Pepper:
Dont you want to set up jenkins for weekly builds?
[Nexus 5 Android Development] reas0n:
It just won't help me. It won't merge CM changes for me to my repos.
[Nexus 5 Android Development] reas0n:
Here's a new build, but I haven't added interface features back, so it's the one for impatient guys ;)

I moved to cm-12.1 branch from staging, I was said that some bugs are gone.

It contains some new -ffast-math changes + enabled LTO for modules which I made working.

https://www.androidfilehost.com/?fid=95916177934552804
[Nexus 5 Android Development] reas0n:
[09/04]

-rebase from staging/cm-12.1 to cm-12.1

-way more stable

-added Link Time Optimization to normal builds (still work in progress but it's stable)

-added more fast math optimizations (thx to Khaon)

-just other, small things

-added MultiROM support

In next build I will add more kernel flags and gnu11 for ROM, it's said to give some performance improvement, so why not ;)

Also more LTO, more LTO and more LTO
[Nexus 5 Android Development] gptwarrior:
Running silky smooth as always made keep up the good work as always
[Nexus 5 Android Development] big_bum:
If you're playing with ROM optimizations, can you try JustArchi's optimizations too?

I've used to build myself a CM11 with JustArchi and it felt nice. I don't know if it was placebo, but it wasn't worse, so it didn't hurt the ROM.
[Nexus 5 Android Development] reas0n:
The ones I use are much more than JustArchi's optimizations, besides that they're not too safe as I see, I don't want to get new bugs
[Nexus 5 Android Development] ekowanz:
Same here..can't get the data turn on
[Nexus 5 Android Development] big_bum:
I somehow got my APNs back, but I still can't connect to mobile data.
[Nexus 5 Android Development] ekowanz:
*#*#4363#*#* then manually turn off and turn on radio. It always said connecting, but then disconnected. Can't give you logcat though.

Meanwhile im using previous build
[Nexus 5 Android Development] big_bum:
Already did that, it won't work. It's not a big deal for me, at least not right now.

What build are you using? The one from the 1st of April?
[Nexus 5 Android Development] Hormesis:
I'm having the same problem, can't get a mobile data connection. If there's anything else I can do to provide more useful information, just ask.

I didn't notice right away because I'm usually connected to wifi, but the moment I left the house, I had an ! over the mobile icon.
[Nexus 5 Android Development] big_bum:
This is from when switching from Wifi to Data.

It's the only usable thing I could get

F/libc (19355): Fatal signal 11 (SIGSEGV), code 1, fault addr 0xffffffff in tid 19358 (rild)
I/DEBUG ( 231): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 231): Build fingerprint: 'google/hammerhead/hammerhead:5.1/LMY47I/1767468:user/release-keys'
I/DEBUG ( 231): Revision: '11'
I/DEBUG ( 231): ABI: 'arm'
I/DEBUG ( 231): pid: 19355, tid: 19358, name: rild >>> /system/bin/rild <<<
I/DEBUG ( 231): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xffffffff
W/NativeCrashListener( 808): Couldn't find ProcessRecord for pid 19355
I/DEBUG ( 231): r0 ffffffff r1 00000000 r2 b6ed3601 r3 b6ef7000
E/DEBUG ( 231): AM write failure (32 / Broken pipe)
I/DEBUG ( 231): r4 ffffffff r5 00000000 r6 e5000000 r7 00000002
I/DEBUG ( 231): r8 00000000 r9 00000009 sl 00000001 fp 00000028
I/DEBUG ( 231): ip b6e28f2c sp b5b6a45c lr b6e526df pc b6e524aa cpsr 60070030
I/DEBUG ( 231):
I/DEBUG ( 231): backtrace:
I/DEBUG ( 231): #00 pc 000054aa /system/lib/libcutils.so (strlen8to16+17)
I/DEBUG ( 231): #01 pc 000056db /system/lib/libcutils.so (strdup8to16+14)
I/DEBUG ( 231): #02 pc 00005145 /system/lib/libril.so
I/WaitForWifiAsyncTask(23224): waiting for the wifi to be enabled...
I/DEBUG ( 231):
I/DEBUG ( 231): Tombstone written to: /data/tombstones/tombstone_00
W/rild (19358): type=1701 audit(0.0:148): auid=4294967295 uid=1001 gid=1001 ses=4294967295 subj=u:r:rild:s0 reason="memory violation" sig=11
I/BootReceiver( 808): Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
E/Diag_Lib(23984): Diag_LSM_Init: Failed to open handle to diag driver, error = 2
E/Diag_Lib(23984): Diag_LSM_Init: Failed to open handle to diag driver, error = 2
E/QcrilMsgTunnelSocket( 4024): Hit EOS reading message length
I/QcrilMsgTunnelSocket( 4024): Disconnected from 'qmux_radio/rild_oem0' socket

If this helps too:

I/WaitForWifiAsyncTask(23224): waiting for the wifi to be enabled...
I/rmt_storage( 226): rmt_storage_connect_cb: clnt_h=0x14 conn_h=0xb6403090
I/rmt_storage( 226): rmt_storage_rw_iovec_cb: /boot/modem_fs2: clnt_h=0x2: req_h=0x18 msg_id=3: R/W request received
I/rmt_storage( 226): wakelock acquired: 1, error no: 42
I/rmt_storage( 226): rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2 Unblock worker thread (th_id: -1236802816)
I/rmt_storage( 226): rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2: req_h=0x18 msg_id=3: Bytes written = 1572864
I/rmt_storage( 226): rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2: req_h=0x18 msg_id=3: Send response: res=0 err=0
I/rmt_storage( 226): rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2 About to block rmt_storage client thread (th_id: -1236802816) wakelock released: 1, error no: 22
I/rmt_storage( 226):
I/rmt_storage( 226): rmt_storage_disconnect_cb: clnt_h=0x0x14 conn_h=0x0xb6403090
I/WaitForWifiAsyncTask(23224): waiting for the wifi to be enabled...
[Nexus 5 Android Development] reas0n:
I will check those bugs tomorrow, no idea what happened. But I think that too much optimizations can break things, If I won't fix it I will just choose the most useful ones.

EDIT: well, I think I may found why we have problems with data, I used wrong RIL repo, I thought that CAF will be a good choice, but nope.

I also disabled Krait tunings and -pipe, those ones are pretty controversial, so let's disable those and make the place for better ones.

I hope that besides no data there are no other bugs huh?
[Nexus 5 Android Development] Hormesis:
Thanks for looking into this, much appreciated!
[Nexus 5 Android Development] big_bum:
I haven't seen anything else besides the data bug.
[Nexus 5 Android Development] CommanderDuplex:
problem fixed with 11/04 Build :good: GJ mate!
[Nexus 5 Android Development] reas0n:
[04/11]

-mobile data works like charm again

-removed Krait and Pipe optimizations

(why? Pipe optimizations are useful only on HDDs and Krait optimizations are conflicting with LTO and for me those flags are placebo, we already have similar settings in build/combo/arm)

Lol aren't u too fast? :v You may downloaded a outdated build, I accidentally uploaded a old one with new data, the actual one is good

guys who use MultiROM, does everything works now or not?
[Nexus 5 Android Development] Dratinire:
Multirom

Just flashed the latest build with Multirom.Works like a charm :good:

But all those flashing with multirom should delete the first 2 lines in the updater script found in the zip file,otherwise multirom TWRP wont flash the ROM.

Love the smoothness!:D
[Nexus 5 Android Development] reas0n:
It's because of device id, it's hammerheadcaf :silly: editing it to hammerhead would be the same probably.

The new build may be compiled with UberTC (finally) and with more LTOed modules.

Also I feel like that UberTC toolchain will blow us away, why? Because I realised that linaro-lto toolchain wasn't tuned for cortex-a15, it also didn't support hard float on kernel and softfp float on system... Anyway, the real improvements are coming ;)
[Nexus 5 Android Development] minhajlk:
I flashed the 4/9 build using Multirom v32b no issues, script needs editing though.
[Nexus 5 Android Development] socioteq:
[MENTION=3371513]reas0n[/MENTION] has optimizations coming that are going to be truly impressive, with benchmarks that likely have not previously been seen for hammerhead-- if you have been using this rom, you should consider dropping him a donation, he's definitely been putting in the time making all of this magic happen for your benefit. Consider that he is in college and doing this in his spare time (a huge amount of time), so not only is he broke because he's in school, but he's laboring like a child slave for your benefit!!.:eek: Drop him a buck or two!!
[Nexus 5 Android Development] reas0n:
1. System can't use hard float it can use softfp at least, which I will use in upcoming build

2. Some custom kernels use hard float and have no issues, but a toolchain with hard float support is needed too. For now my edited UberTC toolchain doesn't want to work, I have seen that one person compiled it and it works, I will need to talk with him.
[Nexus 5 Android Development] reas0n:
I'm looking really rarely into logcat, I haven't seen it :/

I see u added me in G+, could u reply me?
[Nexus 5 Android Development] FredC94:
Hello,

just flashed this ROM, but Camera HDR feature is missing, has anyone got the same issue ?

ps: as someone mentioned earlier in this topic, I cleared the cache from camera app, but the issue remains

Thank you
[Nexus 5 Android Development] reas0n:
[04/12]

-fully compiled with UberTC 4.9

-optimizations updates for LTO, -ffast-math

-made a real use of softfp float support (needed a toolchain)

well, I hope that performance is improved now, just try it and tell me

Probably CAF issue again, not my fault.
[Nexus 5 Android Development] big_bum:
You used changlong's UberTC, or did you manage to build the one from your repo with LTO support?
[Nexus 5 Android Development] reas0n:
I'm still trying to use newer binutils/gdb but with no success for now.

EDIT: I can tell from myself that the ROM got much smoother now, but it needs some adjustments, because benchmarks got a little lower :( I think I will remove hard float support and move back to soft.

EDIT2: About those lower benchmarks... I just realised I was underclocked, LOL. I will test again after I come back home
[Nexus 5 Android Development] zymphad:
Bummer, TWRP 2.8.6.1 hasn't been updated for CAF still.

Also is this CM kernel or Chaos kernel?
[Nexus 5 Android Development] reas0n:
read the description, it's a edited CM kernel.

I'm going to take a break now, I need some time for myself. The rom is pretty nice now, so.. :cowboy:

I'll come back with 1-2weeks, probably with new stuff.
[Nexus 5 Android Development] patrickph:
Sure, I has to use VPN to access g+ in China ... so I don't use G+ so much, maybe I should get a VPN on my phone...
[Nexus 5 Android Development] Android5ever:
Does Chaos Kernel work with this ROM?
[Nexus 5 Android Development] reas0n:
Can You access Telegram or other chat? Telegram seems to be working in China as I see

I think it may be out-of-date, neo doesn't have too much time AFAIK. My enhanced stock kernel has the most useful things, if You want something else, You can tell about it.
[Nexus 5 Android Development] CommanderDuplex:
Doubletap2wake would be fine :D

i love your ROM and the only missing feature is that I guess :c
[Nexus 5 Android Development] reas0n:
I may add it but for sure won't activate it as default (battery)
[Nexus 5 Android Development] gptwarrior:
Reason thanks a lot for your hard work with this ROM I'll be donating you a beer when I get paid end of this month. Take your time with updates dunno how you can improve with how good it is already lol
[Nexus 5 Android Development] reas0n:
Guys, could You test for me if You have problem with Maps? Install it, turn on location, get the GPS fix with GPS only and with GPS+mobile, try to turn on navigation, zooming in/out.. Please tell me if You get any FCs/freezes/whatever. I'll appreciate it.

also with report please tell if what gapps You use (and if You downloaded Maps from Play Store or they were in gapps)
[Nexus 5 Android Development] ekowanz:
I got no FC.. But freeze yes. Wait it couple seconds. With bankgapss, install maps from apkmirror.

But for daily use i got nokia heremaps. Its working with no freeze.
[Nexus 5 Android Development] CommanderDuplex:
no problems so far on mine , no freeze and no FC (tested with WiFi)
[Nexus 5 Android Development] socioteq:
As a followup to what [MENTION=3371513]reas0n[/MENTION] was talking about re: Google maps FCs - I was having issues with graphical FCs that were fixed by flashing a different gapps package with a clean-flashed ROM. Iwas using du tbo gapps (which is one of the few blackout/inverted gapps packages out there) but as [MENTION=727550]reason[/MENTION] correctly stated to me: no matter what gapps package you use, you ought to be downloading your google apps from the play store since gapps varies amongst devices (I.e. device specific packages). Just a heads up for those of you who are having issues with specifically Google applications on this ROM. It should solve your problem.
[Nexus 5 Android Development] reas0n:
Yup so as it was said above, I changed the Gapps to Slim gapps. They're working without issues.
[Nexus 5 Android Development] big_bum:
I'm having some trouble with Instagram, not with Maps.

Whenever I try to take a picture with the builtin Instagram camera, the screen turns black and Instagram hangs.

Other camera apps work, so I'm sure it's Instagram's fault, but I want to know if I'm the only one with this bug.
[Nexus 5 Android Development] Dr.Pepper:
So,i have this too,but its only that rom,on other caf roms its ok
[Nexus 5 Android Development] :
Does this work with ukm?
[Nexus 5 Android Development] Azurael:
Yup. I'm using Synapse, I flashed a UKM zip from somewhere...
[Nexus 5 Android Development] reas0n:
UKM isn't a ideal choice for now.. I use Kernel Adiutor and it's great :cowboy:

About Instagram, I logcated it and there were no errors, wtf? I have no idea.
[Nexus 5 Android Development] Azurael:
It works well enough, well I changed the colour calibration - that's all I care about. The defaults seem to work fine for me, so far as everything else goes. I did try similar tweaks to what works best on my G2, but couldn't really improve battery life. If it ain't broke, don't fix it and all that :) Incidentally, I'm getting far closer to the battery life I get out of my G2 than I have with any other ROM on the Nexus 5, I'm impressed! I was starting to think there was something up with it - 2/3 the battery capacity, similar hardware but 1/4 the battery life.
[Nexus 5 Android Development] reas0n:
software support is really great for N5, that's why, I also had a G2 :laugh:

Whatever, I'm going to go back to old, good SaberMod, I'll soon give to You a kernel compiled with GCC5.0 ;)
[Nexus 5 Android Development] Azurael:
I think you got my intent in that post backwards - I got 7 hours SOT out of my G2 once (yeah, I didn't do much else that day...) Battery life on my D802 has always been great with AOSP/CM-based ROMs (not so much with stock!) Pretty useless, but I know if some calamity befalls my charger or I'm away I'll make it through 2 days without too much stress. I know the Nexus 5 will never match that, but it's not so bad with this ROM & kernel :) At least it's not shouting at me when I get home from work following a grand total of about 2 minutes SOT!
[Nexus 5 Android Development] socioteq:
Build Up!

New build with GCC5 is up on the AFH link on OP. [MENTION=3371513]reas0n[/MENTION] will get on a bit later and give you a full rundown of changes :good::good::good:
[Nexus 5 Android Development] reas0n:
[15/04]

-updated sqlite from OptiPop

-updated source to the latest

-used SaberMod GCC5.0 for kernel, 4.9 for ROM
[Nexus 5 Android Development] big_bum:
Can you build with gcc5.0?

I'm having some trouble with netfilter

net/netfilter/nf_conntrack_core.c: In function 'hash_conntrack_raw':
net/netfilter/nf_conntrack_core.c:73:12: internal compiler error: in get_upper_bound, at graphite-isl-ast-to-gimple.c:529
static u32 hash_conntrack_raw(const struct nf_conntrack_tuple *tuple, u16 zone)
^
0xc61273 get_upper_bound
../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:529
0xc61273 graphite_create_new_loop_guard
../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:560
0xc61273 translate_isl_ast_node_for
../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:596
0xc61273 translate_isl_ast
../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:742
0xc60a78 translate_isl_ast_node_block
../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:684
0xc60a78 translate_isl_ast
../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:753
0xc61879 graphite_regenerate_ast_isl(scop*)
../.././../gcc/gcc-SaberMod/gcc/graphite-isl-ast-to-gimple.c:1074
0xc5f993 graphite_transform_loops()
../.././../gcc/gcc-SaberMod/gcc/graphite.c:310
0xc5fe40 graphite_transforms
../.././../gcc/gcc-SaberMod/gcc/graphite.c:338
0xc5fe40 execute
../.././../gcc/gcc-SaberMod/gcc/graphite.c:419

Disabled graphite, compiled at O1, nothing wroks.

Trying to do a build with your kernelflags.
[Nexus 5 Android Development] reas0n:
Install SaberMod cloog, it's here: https://gitlab.com/SaberMod/sabermod-manifest

about my flags, I need to clean up some flags here and there