yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] zzpianoman:
I was having an issue with excessive lag, and discovered that it may have been due to some kind of filesystem error. The one process that seemed to spike the highest in CPU usage was mmcqd - which is related to flash storage. I ended up completely wiping /system and /cache (not /data or /sdcard) and then meticulously going through my /sdcard partition and removing any clutter as well as completely removing the Android folder. Be careful with this because that clears app data for some apps that store files on /sdcard.

I then flashed ROM, gapps, SU, etc and everything seems to be flowing quite smoothly.

EDIT: One other thing that clued me in to the fact that there may have been something wrong with the filesystem, is that a number of files on /system appeared to be dated before the start of the Unix epoch (1970, 1969).
[Samsung Galaxy Nexus] Angiiie:
can someone tell me why? after i cleared caches and dalvik i tried to flash the kernel it was allright it showed up that updating the applications but as it wants to enter menu phone reboots? its on both kernels same think im using FML rom lollipop
[Samsung Galaxy Nexus] RW-1:
Wow, the date thing popped out at me right away ....

In /system, my lost+found folder is datad 31 dec 69 no others that I see

But in root, my folders are all good, but all files (charger, default.prop etc.) are all dated 31 dec 69 as well.

Before wiping /system and reflashing, etc. Perhaps a filesystem fix in TWRP, or something to that effect?

Long day, hitting the rack shortly after making sure my daughter has done her homework, she has dentist and orthodontist tomorrow morning, but I'll check back later .... thanks!
[Samsung Galaxy Nexus] jguerdat:
Not sure if it's ROM or kernel related but I turned on the CPU monitor from Developer Options and used Naked Browser to read these pages. It totally "froze" (really, huge lag since touch presses for Home eventually gave haptic feedback) but even the monitor was frozen. The only realistic fix was a battery pull.

I've had this problem since day 0. Everything seems fine until browsing, then all hell breaks out.
[Samsung Galaxy Nexus] RW-1:
Quick update;

This morning, decided to go with ZZ's advice above, though frantic because I had limited time :)

Wiped /system, cache and dalvik, I keep my sd pruned most of the time, but since only lost+found had the '69 date, left it.

Re-flashed ROM, gapps, SU, decided to leave out the FA kernel for now.

Rebooted and let it all settle in.

I have had one system UI not responding message, however while the dates on files in root are still all 1969, the GNex seems to be working much better overall. (not getting tremendous lag on opening app drawer, or home button, etc.)

Another good sign to me is if I shut it off, I no longer have to pull batt to have it respond to the power button to boot it back up (was constantly before).

Going to let it sit in this config for today, I can't afford to have another stressful day in it's previous config, for those out there following, this is how it rolls when you only have one phone s your daily driver hehehe.

Thanks so far to all involved in suggesting remedies, I'll post later today with more questions, one being why are my root files dated 69, and even now, looking thru /system, some folders now have a '99 for them.

Perhaps this weekend if I can get my photos off of it, I'll completely wipe it SD included. don't have anything other than that that I care about.
[Samsung Galaxy Nexus] PainFly23:
The file dates I think are normal, they're probably just how files with no date associated are handled. As for the SOD, I've found that I get it too if I'm using the lowest available CPU frequency. I bumped mine up to 250 MHz and haven't had a SOD since.

I really should do a full wipe sometime soon too, perhaps when 5.1 rolls around...
[Samsung Galaxy Nexus] RW-1:
Breathing easier at that if true. I wasn't having SOD's, even back in my OG days I'd up min freq... Neph's settings prevent this as well if you are using them, 350 min, 550 max screen off.

I'm definately going to allow time this weekend to get all my photos off of it, and will wipe it totally for 5.1. Of course by then it could be a secondary wifi only unit if I have the N6 by then :)

Update: Gifts!

TWRP 2.8.5.0 is out - Flash it while it's hot - (link is for toro) - http://techerrata.com/browse/twrp2/toro Enjoy!
[Samsung Galaxy Nexus] osm0sis:
FA_Synapse_Injector_Addon-AK2 is now live as well. Doesn't have a bootscript like the ramdisk I made, only injects Synapse support using a service for uci. Very clean. Should work for everyone! CM/AOSP+ guys, please give it a spin. :cowboy:
[Samsung Galaxy Nexus] rajputrajat:
Working fine for me on freshgiammi's rom.

Thanks
[Samsung Galaxy Nexus] bryantjopplin:
Sorry not up on any kernel related information, but what would this do for me?
[Samsung Galaxy Nexus] osm0sis:
https://play.google.com/store/apps/details?id=com.af.synapse
[Samsung Galaxy Nexus] erk1725:
Thanks for the UCI support for synapse Osmosis! Working great on VZW 1/8 FML with Smitty R10. Lots of new features it seems available now in synapse, versus trickster! Thank you! What is laptop mode? With neph's settings and checking KSM and Laptop mode, my phone is the fastest it has ever been!! Also, I use the activeidle gpu and not ondemand, but the idle speed says something like 153600000??

Anyway, regardless! Thank you so much for all the hard work guys!! I know I appreciate everything you guys do very much!!
[Samsung Galaxy Nexus] osm0sis:
Thanks! Yeah that's 153MHz. I have it use the actual tunables values. :)
[Samsung Galaxy Nexus] erk1725:
I understand now! Thank you, its super fast!! I recently helped a friend root his oneplus one and I have him set up running the latest AK kernel, with synapse, and it had me a bit nostalgic in several ways! haha....but through looking for custom kernel settings for him, I came across that laptop mode and it was suggested by a user to check that, so I did on his, but ive/weve never had that option available to us before that I am aware of. Couldn't locate much info on what it does, but I will leave it for now.....my GNEX is by far the fastest its ever been. KSM seems to help with multitasking, but I think it interferes with video streaming? I dunno, but anyways...that isn't really the point! ha.....do you have any info on laptop mode?

Thanks again very much!
[Samsung Galaxy Nexus] eternal70:
Woops, my bad
[Samsung Galaxy Nexus] bsmitty83:
Its for both
[Samsung Galaxy Nexus] eternal70:
Haha, yes. My bad, too sleepy here...... Didn't figured out that. Thanks !
[Samsung Galaxy Nexus] jcpowell:
So if on say FA 10 we just flash the add-on zip..
[Samsung Galaxy Nexus] erk1725:
That's all I did....flash in recovery, no wipe at all, and downloaded synapse from playstore
[Samsung Galaxy Nexus] RoadToNever:
R10 is still rebooting on incoming call
[Samsung Galaxy Nexus] PainFly23:
The add-on zip didn't work for me (I'm on FML and R10 if that matters), but flashing the boot IMG did.
[Samsung Galaxy Nexus] osm0sis:
Lots of great tunable info at kernel.org! :D

https://www.kernel.org/doc/Documentation/sysctl/vm.txt

https://www.kernel.org/doc/Documentation/laptops/laptop-mode.txt
[Samsung Galaxy Nexus] RW-1:
Hmmm, this is interesting.

Ok, so after my last two days of lagdo, I decided to flash R10, made a backup of the installed FML with its stock kernel first.

On the boot I got another round of fast boot animation, and then into the OS, set Neph's settings, but...

First off it is like it dropped all my sound selections, for example hangouts has 35 for messaging and hangouts, and default ringtone and notification in settings showed up as unknown, had to go select, have never seen this.

Going to run it, but at first signs of laggy stuff as before I'm going back to my backup, which ran today way better, etc

Update: sorry, but I'm recovering from backup, something in this doesn't agree with my GNex, I reset to defaults in trickster, but still had the same issues I had previously before a re-dirty flash of FML.

What a day ...
[Samsung Galaxy Nexus] tgibitz:
Flashing the kernel (R10) completely shuts down any sound...

Anyone experienced the same yet? Or has a solution maybe?

I am using the current LiquidSmooth Rom...
[Samsung Galaxy Nexus] bsmitty83:
Are you using the FML or cm kernel version ? You should be using the cm kernel
[Samsung Galaxy Nexus] tgibitz:
hell, what am I stupid...if you can't see the wood for the trees...

Thanks for the (very) fast answer!

Will flash the right one asap
[Samsung Galaxy Nexus] bsmitty83:
My fault really , as the cm version is for all versions besides FML , I just didn't know what else to name it besides "others" which is kinda ugly lol
[Samsung Galaxy Nexus] RW-1:
You Name one to FML Only, and then the other would, by definition, be for the rest ....
[Samsung Galaxy Nexus] Nautilus74:
[MENTION=4608636]bsmitty83[/MENTION]:

thanks for your works!

I'm using R10 and I finally found a good substitute to R1 !

After R1, up to R9, I found R1 always the best about speed and stability ....

R10 , if it does not cause problems, is definitely the best ! :)

I hope I never have to wait up to R20 for the next leap! :D ;)
[Samsung Galaxy Nexus] PainFly23:
I'm getting frequent crashes and reboots (3 so far today) with the synapsed version of the kernel on the same settings I've been using for weeks. Has anybody else experienced this? I've gone back to the original R10 and will report back if this fixes it.

Edit: It's been about 24 hours of uptime and everything's been stable so far. Going back to the non-synapsed version seems to have fixed it.
[Samsung Galaxy Nexus] jguerdat:
Strange issue. Any browser I use, fully-featured or stripped down, causes huge lag eventually. In the effort to see what's up, I turned on CPU monitoring in Developer Options. At the point of lag, I noticed com.estrongs.android.pop at the top of the list. Even killing the browser and ES File Manager (even uninstalled) leaves this process at the top of the list. A reboot doesn't even show it in the list. Anyone got ideas?
[Samsung Galaxy Nexus] osm0sis:
Yeah just flash the Synapse add-on instead; the extra tweaks from the bootscript in the full ramdisk Synapsed image were probably not jiving with your device/setup.
[Samsung Galaxy Nexus] msli:
guys any idea where gpu governor freg file is located?i cant find them on /cpu0,/cpu1
[Samsung Galaxy Nexus] osm0sis:
It's under its own device now. Search the thread for sgxfreq, I hunted it down awhile back. :)
[Samsung Galaxy Nexus] amd_h4x0r:
What's causing these file permissions to be reset each reboot? Shouldn't the permissions stick after setting them to 0755?
[Samsung Galaxy Nexus] bsmitty83:
Its the init.rc overriding them on reboot , I compiled my own FML build with the init.rc file changed and its permanent. So I guess you could try changing it there ?
[Samsung Galaxy Nexus] Schneewitzchen:
hey guys, the stuck on bootanimation issue seems not to be kernel related!

See this thread:

http://xdaforums.com/android/software/arm-arm64-android-5-0-lollipop-t3032247

I was on freshgiammi's aosp with FA R7 because above ones gave me stuck on boot even with a freshly installed system.

After overwriting the bootanimation with the correct one from the above thread, i flashed r10, and it works right after flashing. Restarted two times...wiped cache an dalvik and restarted. Got not a single stuck on bootanimation! :good:

Could someone else share his results! If it helps you, please thank the developer for this fix!
[Samsung Galaxy Nexus] tgibitz:
Jupp, der R10 hat bei mir super funktioniert. Bis ich ein neues theme + bootanimation installiert habe. Hab mir schon gedacht, dass es damit zu tun haben muss...crap. Grüße nach München ;)

in english :p : Also have the bootanimation problem and already suspected the theming to be faulty in some way. The rest worked absolutely fine up untill I altered the theme. Interesting to know that it is the bootanimation itself
[Samsung Galaxy Nexus] sodas43:
Lollipop boot animation memory leak fix !! for this reason we are getting bootloop !!

http://xdaforums.com/android/software/arm-arm64-android-5-0-lollipop-t3032247
[Samsung Galaxy Nexus] Rushead:
Most of what you guys are experiencing is NOT kernel related. If you have more than one device on 5.0.x, it's really easy to figure out. It must be frustrating for [MENTION=4608636]bsmitty83[/MENTION] since most of you don't revert to stock to clarify. I get it, stock kernels suck, I hate them, too. But it'd help devs out if you'd be willing to run stock for a day or more to help troubleshoot. (not directed at anyone in particular, just a friendly PSA)
[Samsung Galaxy Nexus] erk1725:
I just wanted to post a little follow-up about synapse. As I mentioned a few posts earlier......osmosis did a great job with making everything work very nicely! The additional features are very welcomed, and my phone has never felt faster to me. I had a few questions about laptop mode, and osmosis was so nice as to provide links for me to read up on, which I did. The long and short of it now is that with ksm and/or laptop mode enabled, I cant stream videos using stock browser, with newplayer in dev. options checked or not. I messed around with only enabling one setting at a time last night with a lot of rebooting after changing options and this is my conclusion. If there is any way I can help provide a log or anything, let me know and I will try my best. This is probably more ROM related than kernel (I assume)?

Thank you all very much for everything!!
[Samsung Galaxy Nexus] bsmitty83:
Never frustrating for me . my phone works great lol [emoji39]
[Samsung Galaxy Nexus] dbt816:
This fix works perfectly for me! I had to revert to the stock FML kernel just to get past consistent boot animation lockups.... with R10 it was chronic for me (and yes, I agree that it's not specifically a kernel issue.... it's just the way things happen to intermix during bootup on your specific gnex). Now I'm back on R10 and I've done 6 consecutive reboots with no lockup :good:
[Samsung Galaxy Nexus] erk1725:
Worked perfectly for me as described in op from the parent thread. No reverting or anything

Running 1/8 FML with synapse injected R10. Didn't really notice a difference on first reboot as far as speed of boot. My /settings/apps/running says I have 415MB free:D:good:

Thank you
[Samsung Galaxy Nexus] msli:
init.d script with nephilims settings except lower gpu(384mhz),and no min calibrated voltages or osmosis new tweaks(cant find their files) and no zram(personal preference i use turbo boost)

#!/system/bin/sh
# chmod -R 755 /system/etc/init.d
until [ `pidof com.android.systemui` != "" ]; do
sleep 1
done;
sleep 20;
if [ -e /system/etc/sysctl.conf ]; then
mount -o remount,rw /system;
mv /system/etc/sysctl.conf /system/etc/sysctl.conf.fkbak;
mount -o remount,ro /system;
fi;
echo "350000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo "350000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
echo "1520000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo "1520000" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq
echo "550000" > /sys/devices/system/cpu/cpu0/cpufreq/screen_off_max_freq
echo "550000" > /sys/devices/system/cpu/cpu1/cpufreq/screen_off_max_freq
echo "350000" > /sys/devices/system/cpu/cpu0/cpufreq/screen_on_min_freq
echo "350000" > /sys/devices/system/cpu/cpu1/cpufreq/screen_on_min_freq
echo "dyninteractive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo "dyninteractive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
echo "sioplus" > /sys/block/mmcblk0/queue/scheduler
echo "768" > /sys/block/mmcblk0/queue/read_ahead_kb
/system/xbin/sysctl -w net.ipv4.tcp_congestion_control=westwood
echo "0" > /sys/class/misc/colorcontrol/safety_enabled
echo "5" > /sys/devices/platform/omapdss/manager0/gamma
echo "-5" > /sys/module/panel_s6e8aa0/parameters/contrast
echo "-5 -3 7" > /sys/class/misc/colorcontrol/v1_offset
echo "2600000000 2760000000 3400000000" > /sys/class/misc/colorcontrol/multiplier
echo "1" > /sys/class/backlight/s6e8aa0/acl_set
echo "1" > /sys/devices/virtual/misc/soundcontrol/volume_boost
echo "1" > /sys/class/misc/soundcontrol/highperf_enabled
echo "0" > /sys/devices/virtual/misc/fsynccontrol/fsync_enabled
echo "70" > /sys/vibrator/pwmvalue
echo "60000" > /sys/devices/virtual/misc/tempcontrol/templimit
echo "2700 1300" > /sys/devices/virtual/misc/customvoltage/regulator_voltages
echo "384" > /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/frequency
echo "on3demand" > /sys/devices/platform/omap/pvrsrvkm.0/sgxfreq/governor
chmod 664 /sys/module/lowmemorykiller/parameters/minfree
echo "12800,17920,29696,33280,42240,81920" > /sys/module/lowmemorykiller/parameters/minfree
sysctl -w vm.swappiness=0
swapoff /dev/block/zram0
echo "1" > /sys/block/zram0/reset

based on bushers for dirty v
[Samsung Galaxy Nexus] RW-1:
I'm not sure of anything anymore, on the included kernel for FML, and I still have some issues, if I power down there is a 50% chance I can't just hit the power button to power back up, requires a batt pull first.

AND, looking at my file folder dates off of root today more than one are back in 1969 or have a 99, and I believe this to be key, something occurrs on these shutdowns, and when I restart the phone has a 31 dec 99 date as it waits to get connected to the network, either wifi or mobile ....
[Samsung Galaxy Nexus] zzpianoman:
I think the file dates stuff in root folder is actually fine. These files are all created at boot time, and since the device lacks an internal real time clock (I'm pretty sure), the system has no way of knowing the current time until a network connection is established. Now, why the file timestamps are not taken from the files in boot.img, I am not sure, but I think this is all normal behavior.
[Samsung Galaxy Nexus] siealex:
What is the default SElinux setting in this kernel? Enforcing or permissive? And does it depend on ROM?
[Samsung Galaxy Nexus] bsmitty83:
Permissive only

Not ROM dependent
[Samsung Galaxy Nexus] pattyboi:):
[MENTION=4608636]bsmitty83[/MENTION] when you get a chance you should try pulling back your optimized memcpy stuff + those 4 top commits here https://github.com/pattyboi/Rhinstone-a11/commits/rebase2/arch/arm/lib ,im getting crazy bandwidth scores,im probably gonna try doing some neon optimizing as well ;)

oh and some moto love https://github.com/pattyboi/Rhinstone-a11/commit/1cdc3e243d952d0e43773782f3f47efb3153c05b <-- helps save some precious memory ;)
[Samsung Galaxy Nexus] RW-1:
A question, in also reducing the memory footprint of the kernel, would removing most of all those governors that no one really uses for the CPU assist in that endeavor?
[Samsung Galaxy Nexus] bsmitty83:
You might gain back an extra meg or two of ram , but that's about it
[Samsung Galaxy Nexus] bsmitty83:
So its been quite a week for me so far , ive had two brand new laptops DOA on me , first was an HP touchsmart , showed up with blown beats audio speakers , second was an Asus ql55 that died on me while compiling fml , I got toro and toro+ done , was doing maguro when it turned off and never would come back on . also had a new printer DOA too lol . if that wasent enough my neighbors condo was vacant and nobody winterized / or left the heat on and a waterpipe burst and flooded my garage with 3in of water / ice ( it was -10°F out when it happened smh ) , and my wife is now sick in the hospital with a bad flu / stomach bug .

So I ordered a third laptop ( dell 15in , 5th gen i7 , 16gb ram ? ) once I get that and it hopefully works OK , I'll start setting it up for builds .
[Samsung Galaxy Nexus] TheMan0790:
Wow, that is awful. I hope for nothing but the best for you. And I hope your wife gets better as soon as possible.
[Samsung Galaxy Nexus] nikodr:
But isnt a 2 megabyte good to save? What i mean is that when Maguro was out it was a one gigabyte device in 2011. Now it is 2015 every mbyte free would not be bad to have. Lollipop needs everything we can give it. I think the mhl cable is not working on lollipop so why not take the ram from the kernel side?
[Samsung Galaxy Nexus] RW-1:
Well you have it in threes, and gone thru that, so you should be ok. Hope the wife feels better soon.

Slushy party at Smitty's this weekend! (bring your own flavoring) :)
[Samsung Galaxy Nexus] peterasimpson:
Hmm sounds interesting

It just so happens that I got my G-Nex out of the loft last week, I might have to give this a try.

Cheers :)
[Samsung Galaxy Nexus] pattyboi:):
best of luck buddy,hope mrs smitty feels better!
[Samsung Galaxy Nexus] eternal70:
Hey dude ! You still working for tuna ?
[Samsung Galaxy Nexus] pattyboi:):
soon,very very soon ;) ive been doing a bringup for the htc device thats my dd since my moto g died,ill be back in the sea with the tuna soon :)
[Samsung Galaxy Nexus] eternal70:
Hell yes ! Missing your nukedtrinity very much ! [emoji6]
[Samsung Galaxy Nexus] pattyboi:):
im gonna try and take mwis's kernel and make nukedtrinity3 out of it :)
[Samsung Galaxy Nexus] frizluca:
[MENTION=4608636]bsmitty83[/MENTION] it's possible to also have the kernel in .tar ? beacause i can only use Odin
[Samsung Galaxy Nexus] bsmitty83:
Why can you only use Odin ?
[Samsung Galaxy Nexus] frizluca:
because I broke volume button and i can't go on cwm .. i can only use odin with jig usb ( now i'm in bootloop)
[Samsung Galaxy Nexus] bsmitty83:
You can make a tarball yourself easily from either your phone or PC . just unzip the kernel .zip and compress it as a .tar instead , most decent file managers allow this .
[Samsung Galaxy Nexus] frizluca:
mm i try but the Odin application stop when i flash the .tar.. any idea?
[Samsung Galaxy Nexus] bsmitty83:
Do you have to flash a boot image with Odin ? Because the kernel zip only contains the zimage , you can use fastboot to flash the zimage if you have a PC . I've never used Odin so im not sure what the procedure is .
[Samsung Galaxy Nexus] frizluca:
but my phone is in bootloop... is there any way to go to fastboot mode without volume button ? i can only go to download mode using the jig usb
[Samsung Galaxy Nexus] zzpianoman:
How far do you get in the boot process? Have you tried to connect via adb and computer?
[Samsung Galaxy Nexus] frizluca:
no, i think i can't : i'm so good with this thing...

can u explain me how can i do to fix it ? i buy today rhe jig usb to go on download mode but i read on the net that i can only use odin and i can only flash md5 , tar file
[Samsung Galaxy Nexus] mangusZen:
@ frizluca

you do this to a boot.img of a odin tar file.

http://xdaforums.com/showthread.php?t=1588461

prepare to blood and tears.
[Samsung Galaxy Nexus] Nephilim:
I'm back on R6, hands down the smoothest experience on my device so far.
[Samsung Galaxy Nexus] PepperRoni:
Is it possible to download the R6 version of the kernel anywhere? At the moment I`m using R10 but have several reboots a day... now I want to give R6 a try but can`t find it to download.
[Samsung Galaxy Nexus] RW-1:
Ditto, I have from R7 onwards, but ...
[Samsung Galaxy Nexus] erk1725:
I have R6, always been a fallback as well, but I like synapse. If someone cares to tell me how to upload it, I would be more that happy to do so

Thanks:good:
[Samsung Galaxy Nexus] osm0sis:
Add-on zip should work on any version, just I can't promise all the options will be present/working if they changed from R6 to R10. :good:
[Samsung Galaxy Nexus] erk1725:
Not sure if this will work or not.........

https://docs.google.com/file/d/0B_z5yN6vAJsCbDVJdTI1aFc1TGc/edit?usp=docslist_api

---------- Post added at 01:13 PM ---------- Previous post was at 01:07 PM ----------

This is good to know:good:

Thank you [MENTION=1143630]osmosis[/MENTION]
[Samsung Galaxy Nexus] bsmitty83:
I find it odd that people are having issues on r10 , I've been running it since I made it without a single problem , as long as zram is off it should work fine ..
[Samsung Galaxy Nexus] Nautilus74:
No problem here with your R10 + cm12 0125 ramdisk

on CM12 0218 version on my f2fs gnex! ;)