yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy Nexus] schizophrenia:
same thing.... same rom

r277 seems very laggy

r281 is less laggy, but opening and closing apps are very slow (takes 5-10 seconds to open dropbox/root explorer etc)

after

5 hours or moderate to heavy use (e.g. games / video)

both are initially rather smooth upon reboot

r276 so far does better

these kind of slowness and lag seem never really happened before
[Samsung Galaxy Nexus] thisguy23:
Bc its the latest one that doesnt lag with cna.
[Samsung Galaxy Nexus] franciscofranco:
Do this:

echo 8099,10132,20000,20000,50000,100000 > /sys/module/lowmemorykiller/parameters/minfree

What happens?
[Samsung Galaxy Nexus] nuwan32:
Would that super charger script work with jelly bean and this kernel, because it does the same thing right?
[Samsung Galaxy Nexus] franciscofranco:
I know nothing of those scripts. I had that minfree command pre-277, but I commented it to see what happened, thats why I asked the guy with memory problems to input it again and see what goes.
[Samsung Galaxy Nexus] schizophrenia:
give me a few hours to test it.

never meant to give you hassle. just want to find out the cause.

appreciate your patience.

thanks
[Samsung Galaxy Nexus] FingerMove:
I've been always using maximum brightness and I mostly get around 50%:
[Samsung Galaxy Nexus] momomok:
Immediate effect: free RAM size increases, and no more lag.

Still need a more hours / day to test before concluding...

But why is this change affecting a few people only?

I've posted a thread at a local forum, everyone seems to be happy with CNA 3.6.6 + r281... except me :confused:
[Samsung Galaxy Nexus] franciscofranco:
I have no idea. I removed those things on r281 to see users unbiased feedback, so thank you and the rest of you that reported better or worse experiences :)
[Samsung Galaxy Nexus] momomok:
never mind :D

and will this be reset upon reboot?
[Samsung Galaxy Nexus] yellowdie:
Is your Root Browser set with the proper permissions? I use ES File Explorer, but then you have to go into settings, and scroll down and set it as Root and set Mount File System as writable.

And I have mine set up like this:

hispeed_freq: 1228

go_hispeed_load: 50

min_sample_time: 40000

input_boots_freq: 1036

Franco, I wonder if that was actually the reason osm0sis and I (and others) were getting lag, but we just got side tracked with vfs by mistake.
[Samsung Galaxy Nexus] nuwan32:
Wow I tried this and gotta say it feels amazing. My Swype doesn't lag anymore and I've yet to test everything else. Please include this again in the kernel.
[Samsung Galaxy Nexus] franciscofranco:
Nop, sysfs settings never persist on reboots.

Nah, VFS played its role as well.
[Samsung Galaxy Nexus] Culex316:
My free memory increases from 89MB to around 209MB according to os monitor and my phone feels like it was injected with cocaine.
[Samsung Galaxy Nexus] franciscofranco:
Ahaha that made me laugh ;)
[Samsung Galaxy Nexus] osm0sis:
Between both commands my homescreens definitely don't feel laggy anymore! Going to drop back down to 384GPU now so I can judge better, but icons seem to instantly load in the app drawer and scrolling seems more fluid again. :)

init.d for now, but can't wait for the next build Franco :good: :D

Edit: Damn, can't get it to work from an init.d script...
[Samsung Galaxy Nexus] joaquinf:
This seems to improve the overall user experience. UI seems more fluid and phone feels more responsive.
[Samsung Galaxy Nexus] BigBake88:
Still rockin' 275 and have not rebooted the phone in nearly 10 days and I just checked my free RAM and I have nearly 380MB. Granted, during the work week I am not using the phone heavily like I do on the weekends, but I definitely do not have the memory leakage like some are reporting on with the 281 build.
[Samsung Galaxy Nexus] yellowdie:
Dude, that's pretty impressive. I'm a flash junkie, so I can barely make it a whole day without a reboot. :silly:

---------- Post added at 10:05 AM ---------- Previous post was at 09:56 AM ----------

I've got mine working in an init.d. I wasn't sure where would be best, so I have the command set at line one, then have a 'sleep 30' followed by the same command again. I just haven't gotten around to experimenting with which one works best, but it works perfectly fine for me like that. Let me know if you want my file.
[Samsung Galaxy Nexus] ChazzMatt:
Did 276 also have the old vfs cache 300 settings?

If so, that one sounds better for now. :good:

Just need to combine the good of 276 with the good stuff of later builds?
[Samsung Galaxy Nexus] dracon6ai:
Changed the memory settings and noticed an impact almost instantly. Also noticed those settings are close to the "Ultimate" memory setting in Rom Toolbox. So out of curiosity I'm going to run the Ultimate setting to see the difference. Bright side is I can set it to change the settings on boot this way also (what I did for the cache pressure also). Here's some screens comparing what you submitted to JRummy's presents. Got Franco's on in the pics.

Edit - I know the Empty Application shows 10000 but it actually is 100000. The app doesn't display all the digits.

Laziness is nothing more than the habit of resting before one gets tired!
[Samsung Galaxy Nexus] franciscofranco:
Pre r277 all builds had vfs_cache_pressure = 300 and those minfree options I posted few posts ago.
[Samsung Galaxy Nexus] chugger93:
I still love 281 (well who doesnt love any nightly right?) but I still get wifi sticks. I was on 3g, normally I'm on wifi at home, went to wifi settings and no AP's were listed, refreshing failed sorta thing..and wifi wouldnt shut off. Had to reboot.

It's all good...I can live with a few reboots to fix the issue... still wanted to report it. I doubt it's necessarily fixable since its happened for so long and so many builds.
[Samsung Galaxy Nexus] shawnaye:
sorry for the noob question, how do we echo commands? via adb?
[Samsung Galaxy Nexus] Kurre:
So you really tested something new with LMK.. :) what about that adj parameter, what I asked earlier. Afaik that one is also quite important with LMK ?

Hmm this is little odd..I didn't notice big difference would playing around with vfs values...nor while testing those minfree values :eek: maybe my rom is fast enough without those tweaks :p out maybe I'm just blind to improvements :D

Sent from my slimbeaned GNex :)

---------- Post added at 05:39 PM ---------- Previous post was at 05:38 PM ----------

adb shell, terminal emulator, command center or something like that :)

Sent from my slimbeaned GNex :)
[Samsung Galaxy Nexus] franciscofranco:
adj was deprecated long ago, and now with the newest LMK commits from Google team the driver automatically manages those adj values by itself.
[Samsung Galaxy Nexus] osm0sis:
Must be the one after the sleep 30 that makes it stick, I'll try it out. ;)

Odd that we didn't notice until r281 then... must be something else contributing? r275-r277 were the ones that REALLY flew for me.
[Samsung Galaxy Nexus] nuwan32:
App called terminal emulator
[Samsung Galaxy Nexus] momomok:
Don't forget to type su before keying the command if you use terminal emulator
[Samsung Galaxy Nexus] joaquinf:
Or you can open a command window and type

adb shell
echo 8099,10132,20000,20000,50000,100000 > /sys/module/lowmemorykiller/parameters/minfree

Typing in terminal emulator app sometimes is a PITA :p
[Samsung Galaxy Nexus] timbck2:
Ah, ok. I've been using PayPal for years but never paid any attention to the format of their confirmation numbers.
[Samsung Galaxy Nexus] yellowdie:
So I just reinstalled 263, 276, 277, and 281. I have an init.d script that sets vfs and memfree so they are all equal. And 276 is definitely noticeably smoother than the ones after it. But oddly 267 was about -10 db lower on the wifi strength than 263 and 281. Same place at my desk, same grip when checking. I've never been one to not use the latest nightly, so I'm still gonna try 281--but there was definitely a difference. Weird.
[Samsung Galaxy Nexus] The Gingerbread Man:
The joys of copy and paste :D

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] TheMan0790:
Can't run adb shell for the command...gives me error: device not found. Thoughts?
[Samsung Galaxy Nexus] jcmm11:
Do you have fast-charge enabled?
[Samsung Galaxy Nexus] TheMan0790:
No, I don't. I'm gonna do some Googling of this issue so I don't draw the ire of XDA members to my noob issue...;)
[Samsung Galaxy Nexus] The Gingerbread Man:
Just reporting another positive out come with this, definatly seems more snappy now

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] joaquinf:
Check under settings>developer options>USB debugging ---> it should be ticked and check if you have the right drivers installed
[Samsung Galaxy Nexus] The Gingerbread Man:
Use terminal emulator from the market. Type SU press enter then copy paste the command

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Kurre:
Ah, of course..I had some things mixed up :) Kudos to you again, Franco. Happy to learn from you ;)

I'd suggest this..

Developer's Day

I'd say that here is probably many happy users who think that Franco should be honored with this deed. At least I feel that way :D
[Samsung Galaxy Nexus] TheMan0790:
Thanks for the advice. Looks like I got it, but...noob question: How do I know if it worked?
[Samsung Galaxy Nexus] joaquinf:
well .. go to the path using a file exporer and check whether or not the vaules match in the file
[Samsung Galaxy Nexus] Mayday_XL:
I am back to the r276 and eyerything is fine.
[Samsung Galaxy Nexus] supernova_00:
Franco, could you please respond now that you're not busy messing with people's heads with reverting back to default wifi drivers ;)
[Samsung Galaxy Nexus] SpecRek9:
Does this{1} works only on r281 or it can be issued on r276 as well.

{1} echo 8099,10132,20000,20000,50000,100000 > /sys/module/lowmemorykiller/parameters/minfree

Thanks
[Samsung Galaxy Nexus] Squez:
I'm looking for advice on advanced settings to get better battery life. I have seen reports of hours of screen time, but I come nowhere near that. Galaxy Nexus LTE running JBSourcery, with LTE on 100% of the time. I know LTE has a lot to do with it, but I can barely squeeze an hour of screen time on a full charge. Betterbatterystats doesn't show too much abnormal, so I'm looking for some kernel tweaks. I've made some simple changes to CPU, but don't fully understand some of the advanced options (voltages, colors, etc) that might help me out as well. Any advice is appreciated.

Thanks in advance!
[Samsung Galaxy Nexus] The Gingerbread Man:
Cant see why not

Some of it may depend on your rom, I also find under clocking to 1ghz and using lazy gov gives a very very good balance between performance and battery (this is my normal setting). Look into other stuff like apps keeping services running in back ground (Facebook) and remove them. Do you keep latitude reporting your location constantly? Do you use Google now a lot? Perhaps turn it off? Is GPS turned off when not in use? Screen brightness. The list could be endless but these are first to my mind

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] TheMan0790:
Thanks. Looks like I got it working
[Samsung Galaxy Nexus] Squez:
Thanks for the reply. I've actually done a number of the things that you've described above. I no longer have the FB app and just use a shortcut to the mobile site. Latitude is disabled, Google Now is disabled, GPS is almost always off and screen brightness is on Auto. As mentioned, when I look at Betterbatterystats, there really isn't anything that is running in the background that stands out. I should mention I have the extended 2100 battery as well.
[Samsung Galaxy Nexus] nuwan32:
You can always just open that file and see if the changes were saved or check if you have more free ram than before
[Samsung Galaxy Nexus] JarGnex:
Definitely lags for me using minco v4 =/
[Samsung Galaxy Nexus] The Gingerbread Man:
Screen brightness set to auto can use more battery as its constantly scanning and using CPU power to do so so perhaps think about using set values 10,25,50,75,100. Failing all else try to reflash stock ROM or reflash custom rom and fully wipe device before and that will defiantly get rid of any rogue apps and check to see how your battery does installing them again slowly. Check the services for your apps and permissions as you go along

Sent from my Galaxy Nexus

---------- Post added at 06:30 PM ---------- Previous post was at 06:04 PM ----------

Had a random reboot, 281 512 minco v4. I don't understand all this but here's last kmsg http://db.tt/U080o1oy

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] schizophrenia:
Franco, same as momomok, this change is very positive and the phone remains somewhat snappy even after some heavy use and it seems to be good.

thanks a lot and now I am just awaiting for a new nightly/milestone so that I can flash and no need to echo this every time I reboot.

Thanks for the hardworks Franco
[Samsung Galaxy Nexus] yellowdie:
So, this lag has been bugging me and I've been testing it more. I think my my terminology is wrong, a better way to describe it is not 'lag' but it feels like it's out of oil. When osm0sis and I were testing r281 initially, we talked about the lag on the launcher, app drawer and settings as the most obvious places. But if this helps explain it, my app drawer is a vertical scroll with 17 rows of apps. On r276. one flick of my thumb scrolls all the way to the bottom, on r281 the same flick gets me about 60-70% of the way down. But after using it for a few hours, then it returns to normal. So it's not like it's freezing, it just feels stiffer than it used to. Franco, does that make sense or help with anything? I have my vfs set to 300 and my aggressive memfree settings in place with init.d.

:cowboy:
[Samsung Galaxy Nexus] timbck2:
I just wanted to report I just had a force close in the Franco.kernel updater app (latest version) - here's what happened: I decided to experiment with building a ROM myself, successfully built Affinity Series Beta 1 and installed it. Of course it comes by default with Glados kernel, and of course I immediately tried to install Franco kernel (r281). But when I hit the "Auto-flash" button to download the latest nightly, it FC'd. I started the app again, and was able to install successfully.

Is there a log file or any other information you might want, Franco?
[Samsung Galaxy Nexus] rye&ginger:
WiFi is stuck on using r281 on Codename Android ROM 3.6.5. Can't turn it off via settings or CM notification panel.

It did not occur during 2 days on M5. Also reduce data drops and no sleep death which I was having.

Here is last kmsg...want other logs? They don't seem to contain relevant info anyway.

https://docs.google.com/file/d/0B40DWhDHlkEASWNEWUI3Q0FuWFk/edit

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] nuwan32:
hmm i just got a fc as well. i clicked fast usb charged and it just closed.. weird never happened to me before. im gonna assume its one of those "non kernel related" issues, but just saying :)
[Samsung Galaxy Nexus] aeroseek:
Oh hell yeah. Changing minfree and vfs making my phone fly!

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] nuwan32:
+1. might actually revert back to 277, since restarting sets it back to normal.
[Samsung Galaxy Nexus] franciscofranco:
Makes no sense. Did you report the FC so I can see the log?
[Samsung Galaxy Nexus] Astug:
Would the minfree settings stay after a reboot?
[Samsung Galaxy Nexus] nuwan32:
Hmmm no. But I will if it happens again

---------- Post added at 12:50 AM ---------- Previous post was at 12:50 AM ----------

not unless you use a startup script.
[Samsung Galaxy Nexus] Langduscher:
Do some of you EVER read??

NO!! (unless you run a unit.d script)
[Samsung Galaxy Nexus] Algimene:
With minfree mod the ROM feels snappier, thx for your work :thumbup:
[Samsung Galaxy Nexus] garu12:
Find 276 runs smoothest. (Damn smooth!) On cm10 if it matters. Never had any issues with wifi on any of them personally.
[Samsung Galaxy Nexus] shawnaye:
Echoed min free. Phone doesn't have the occasional lag anymore. Could anyone make an init d script of it? Think it could benefit noobs like me. Haha.
[Samsung Galaxy Nexus] franciscofranco:
Err... do you want to be a noob or do you want to learn and stop being a beginner? Easy choice here :)
[Samsung Galaxy Nexus] ChazzMatt:
:confused:

It's PRE-277 that is good. As in r276 and before.

I'm back on 276 too.
[Samsung Galaxy Nexus] yellowdie:
Yep, I highly recommend learning how to make your own. It's easy to Google it and learn. And once you have it down, you can do anything you want! Your phone will print money.

:D
[Samsung Galaxy Nexus] timbck2:
Neither did I - sorry.
[Samsung Galaxy Nexus] shawnaye:
Yeah Franco I do wanna learn. Haha. Usually I do just search the forums and don't really ask anyone for help.

Shall Google when I'm home then.
[Samsung Galaxy Nexus] yellowdie:
Enjoy the powers!! If you get stuck, let us know. We won't shut you out, we just want people to constantly learn and grow themselves. =D
[Samsung Galaxy Nexus] cgrimes5:
Would you mind helping me with a ram issue, I have ran echo by franco, but I have a question concerning on app that all of a sudden I'm having a issue with and it is using 60mb of my ram Google voice and I keep stopping it and it starts up again not receiving any voicemail or anything and it has been running all day off and on. Any help would be appreciated.
[Samsung Galaxy Nexus] BigBake88:
275 is just awesome. Fast, stable, and good battery life. No slowdown or sluggishness after an uptime of 238 hrs since my last reboot. 275/276 IMO is milestone worthy!
[Samsung Galaxy Nexus] aeroseek:
I'm pulling my hair trying to get this init.d script to work (or any init.d script for that matter). Running latest rasbeanjelly and r281.

init.d directory permissions set for 755, script is called 99minfree with same permissions. Contents are:

#!/system/bin/sh

echo 8099,10132,20000,20000,50000,100000 > /sys/module/lowmemorykiller/parameters/minfree

What am I missing here?
[Samsung Galaxy Nexus] hiarc:
Quotes!

echo "8099, 10132, 20000, 20000, 50000, 100000" > /sys/module/lowmemorykiller/parameters/minfree
[Samsung Galaxy Nexus] Kurre:
Afaik, it should be with quotes AND commas...at least using "cat minfree" has commas.. :)

Sent from my slimbeaned GNex :)
[Samsung Galaxy Nexus] markusssss:
I have read that the version more satisfying for now, it's 276. I installed. what are the best settings to reduce battery consumption?

thank you in advance for your help :)
[Samsung Galaxy Nexus] teriemer:
+1 on 275 on CM10 - it's really great.

Although that I'm new to Nexus, I've been here on XDA since SGS1 (and latest with S3). But I must admit, the GN is a damn fine phone with nice clean AOSP. In fact - the GN has become my primary phone now...

Thumps up to Franco for these great kernels :D

I got a total n00b Q (I'm blussing now)...

But the Echo script mentioned in this thread, does that also apply to 275? And to say it straight forward, I don't get it how to add it via Terminal Emulator? I tried search, but without succes.

Can I ask for a step by step guidance? (Ahh I hate to ask such a n00b Q, sorry mann - but hx in adv.)
[Samsung Galaxy Nexus] tobitronics:
What tcp congestion algorithm do you guys use?

Beamed from my Google Galaxy Nexus
[Samsung Galaxy Nexus] Kurre:
Yes it works on every kernel version, since its related to lowmemorykiller which is quite mandatory for a kernel..:)

In terminal give these two commands:

su

echo "8099,10132,20000,20000,50000,100000" > /sys/module/lowmemorykiller/parameters/minfree

Ps. I'm using now these values:

2048,3584,26624,29952,33536,37120

You can try those also if you like :)

Sent from my slimbeaned GNex :)
[Samsung Galaxy Nexus] markusssss:
settings that you have set to save battery?
[Samsung Galaxy Nexus] shawnaye:
still kinda lost regarding init.d

read http://xdaforums.com/showthread.php?t=1610741

and http://xdaforums.com/showthread.php?t=1709836

basically for init.d i just have to create a blank file, put #!/system/bin/sh at the beginning.

then below that just put echo "8099,10132,20000,20000,50000,100000" > /sys/module/lowmemorykiller/parameters/minfree right?

after that, how do i make the init.d script that i just created work?

i rebooted, check the minfree values they remained unchanged.

tried using script manager to run, error resolving interpreter : Interpreter must start with /

using default shell

exec sh '/etc/init.d/77min'

root@android :/ # exec sh '/etc/init.d/77min'

: not found/77min[2]

the script then just ends.
[Samsung Galaxy Nexus] schumici:
i can't choose. which one is better, milestone 5 or "r"series
[Samsung Galaxy Nexus] djjonastybe:
Franco can you make an addition in your updater app?

Your app can read temperature. So can you make it monitor the temperature for a certain amount of time?

This is my idea:

Add a switch called monitoring mode:

- enables monitoring temperature

- enables monitoring how much which gpu clock is used

- monitor iva clock usage

This would be unique. If I knew more about where you got the values from I could make it for you or make an example. I don't have much freetime since we started working on multithreading in Java Class. Also ADO.NET is also a very heavy class.
[Samsung Galaxy Nexus] teriemer:
Thx so much :)

That did it for me - wup wup

Testing now...
[Samsung Galaxy Nexus] osm0sis:
Seems like the mistake most people are making is that lowmemorykiller appears to get set by the kernel late in the boot so sleep 30 needs to be before that echo command in the script. Quotes aren't really necessary unless there are spaces, but definitely doesn't hurt to have them surrounding the values just to be safe. One other weird thing about shell scripts is you should leave two new lines at the end of the file.

Also maybe worth mentioning the init.d dir on my system has chmod 777, while the scripts inside are chmod 755.

Edit: And while it doesn't hurt setting these on pre-r277 builds, there really isn't a point since those were also the defaults Franco has set for them.
[Samsung Galaxy Nexus] shawnaye:
Hi bro. Could you help check if my file is correct for usage? Placed it in init folder but still the file isn't changing values.

http://db.tt/CY3V4Y69
[Samsung Galaxy Nexus] osm0sis:
You didn't follow the instructions in my post.
[Samsung Galaxy Nexus] franciscofranco:
You mean like an option to be enabled for X time that monitors those settings?
[Samsung Galaxy Nexus] yellowdie:
Try clearing the app data, uninstall the app, reboot, then reinstall and reboot again.

Yep, what others and osm0sis said. You need this:

#!/system/bin/sh

sleep 30

echo "8099,10132,20000,20000,50000,100000" > /sys/module/lowmemorykiller/parameters/minfree

With a blank line at the end. BUT I think the real problem you're running into is Rasbean. Rasbean is one of the best ROMs I've used, don't get me wrong, but it doesn't have built in init.d support (I've had hit or miss luck on it--worked sometimes, not others). So you'll want to do something like this:

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

That will install init.d support, then your files should run properly. And like Os said, 777 (rwx rwx rwx) or 775 (rwx r rwx) should both be fine.

Like Os also said (he's shmart), pre-r277, Franco ran that echo line for us. He turned it off in r281 just to test and see. So running it is pointless. :cowboy:

:):D:laugh::good:
[Samsung Galaxy Nexus] tobitronics:
Does 512 mhz gpu actually need more juice? Or does it run on the same voltage as 384 (which seems unlikely to me)?

Beamed from my Google Galaxy Nexus
[Samsung Galaxy Nexus] haxor:
Guys how much battery backup you are getting on full charge ? Mine hardly reached one day :(
[Samsung Galaxy Nexus] djjonastybe:
Franco the OMAP Gamma settings are causing SYNC_LOST spams in dmesg

The issue is present in CM10. I haven't tried your kernel though.
[Samsung Galaxy Nexus] sundials:
Hey guys, I just installed the kernel but the vibration intensity settings are greyed out in the advanced settings section. Have I messed up somewhere or do I have to pay for the app to be able to make vibration stronger?
[Samsung Galaxy Nexus] ffgf:
Not agaiiiin...

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] schumici:
guys, can anyone answer my question?