yashsingh1/xdaforums huggingface dataset:
[L Speed] Paget96:
Well i have moved stuff from kernel tweaks to dynamic virtual memory.

It holds:

dirty_expire_centisecs
dirty_writeback_centisecs
dirty_background_ratio
dirty_ratio

Kernel tweaks now holds only:

leases_enable
lease_break_time
page_cluster
highmem_is_dirtyable

Now i have some doubts, should it be like this:

We have kernel tweaks as a toggle(no profile) to apply just those parameters because they are the same within all profiles

or

Rename kernel tweaks to virtual memory tweaks, and move them to virtual memory section with the same ability as before, three profiles and still able to control:

dirty_expire_centisecs
dirty_writeback_centisecs
dirty_background_ratio
dirty_ratio
leases_enable
lease_break_time
page_cluster
highmem_is_dirtyable

that's in case someone won't use dynamic virtual memory.

OR

Keep kernel tweaks at the same place but use it as a toggle and holds only this:

leases_enable
lease_break_time
page_cluster
highmem_is_dirtyable

and create new spinner(drop down options like kernel tweak is) inside virtual memory and call it virtual memory tweaks which holds:

dirty_expire_centisecs
dirty_writeback_centisecs
dirty_background_ratio
dirty_ratio

If you have any idea for whole workload, please write it detailed below, but with mentioned parameters.

I'm waiting for any kind of suggestions. :)

Thanks for supporting :D
[L Speed] Paget96:
Write deferral timer will be removed. Since android devices not using HDDs., there is no impact on our eMMC chips. :)

Cheers
[L Speed] DB126:
My inner geek would love to see these separated. However, from a usability perspective ('keep it simple') I think the existing kernel tweaks section should be removed from the 'main' section will all proposed settings being rolled into a new category under 'virtual memory'. Given the diversity of included tweaks suggest retaining the name 'kernel tweaks'. Those who want finer levels of control can head to the terminal or use a full fledged kernel manager.

These parameters are very difficult to generically tune given the wide diversity of devices, configurations, kernels and workloads! dirty_ratio/dirty_background_ratio, dirty_expire/dirty_writeback, sappiness, vfs_cache_pressure, overcommit_ratio, etc., etc. work in concert interacting with one another like a symphony. Tweak one and the others are impacted. Not to mention the number of open apps, LMK values, available "free" memory, etc. That's why most folks, including experienced server/system admins and developers, don't mess with them. That said, some (emphasize *some*) devices may benefit from the virtual memory settings applied by the current suite of kernel tweaks. I would start with those.

Actually, I would retain this one and fold it under the revamped kernel tweaks (or whatever you decide to call it) with a static value of 1 sec. That should minimize the chance of triggering a large synchronous write operation (not to mention potential data loss) while offer the benefit of improved responsiveness if the file system is busy when a write operation is attempted. Regardless, it should be removed from the 'battery' section as it offers no meaningful savings w/eMMC on target devices.

Comment: some of the above setting may survive a reboot! You will need a way to save and restore device defaults depending which values are tweaked.
[L Speed] Paget96:
So, keep current DynVM + move kernel tweaks to virtual memory section, but as a toggle and set laptop_mode to 1 sec.

Thanks
[L Speed] DB126:
Yes. You'll need to decide which DynVM parameters to retain as there are current (3) sets of values (battery/balanced/performance) under the old 'kernel tweaks'. It is

really hard

to make a creditable recommendation other than doing something different than the typical device defaults which can vary widely. Recommend modest tweaks; avoid extreme values as they are rarely beneficial to the majority of workloads (ie: special purpose only). Perhaps a slight bias toward retaining items in memory cache with a corresponding increase in check/write parameters to avoid 'burst' activity that can trigger synchronous locks. However, going two high can trigger overly aggressive LMK cleanups and potentially OMM kills which is highly undesirable. Good luck!
[L Speed] Paget96:
I know everything. All those caches are going to RAM and all of those parameters have a control of how and when those caches are going to be flushed on disk, and that's directly draw on LMK, and as you said, too much unhandled stuff can cause OOM. Everything is connected.
[L Speed] DB126:
Ya know - I could have some serious fun with that statement! Just joking; LOL!!

As always, thanks for all you do with L Speed and the community of dedicated users/supporters.
[L Speed] Paget96:
Hahah, i don't mean the same like it sounds :D But you got my point :D
[L Speed] Paget96:
#android #LSpeed

New alpha version!!!

v1.4.28-alpha18122017

OK folks, I'm here to represent our Dynamic virtual memory which works based on screen state. The thing I'm trying to make here is dynamically control device cache and give significant battery and performance improvements.

Please describe everything briefly, i have to see how all of it works on low-end devices (low ram) and also mid/high-end devices.

After all, we have to improve the mechanism of parameters according to device ram and current VM state, which will be done in the near future. For now we will have this as simple as possible.

Thanks for support, cheers.

Changelog:

- Updated Extended IO queue, using much longer queue than default

- Updated Services

- Added dynamic virtual memory

- Removed write deferral timer

- Removed kernel tweaks

- Added virtual memory tweaks (The rest of old kernel tweaks)

- Improved su shell (spend less time on su if not needed)

Download:

https://xdaforums.com/showpost.php?p=74880630&postcount=23

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Join beta channel on Play Store:

https://play.google.com/apps/testing/com.paget96.lspeed

Follow L Speed on Google+:

https://plus.google.com/communities/114615858954464149084

Follow L Speed on Facebook:

https://www.facebook.com/LSpeedAndroidOptimizer

Follow L Speed on xda-developers:

https://xdaforums.com/apps/l-speed

Join L Speed discussion on Telegram:

https://t.me/LSpeed

If you want, you can also donate me using this link:

http://paypal.me/Paget96

or simply disable adblocker and support me over ads inside the app :D

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Thanks for the support :D
[L Speed] gh0stzk:
Okkk uncle paget, i will test these new options with an old s3 mini with 800 mb ram..

What i expect? More battery and performance? I know how my s3 mini works so, i will put more attention on battery.

Will give u an inform in some days. Thanks for ur work.

Pd: i activated new dynamic and vm tweaks.
[L Speed] martyfender:
Ok, I've installed this alpha, turned on dynamic virtual memory and rebooted.

Now what do I look for, for the purpose of testing?

So far, apply on boot has been executed and I see a notification that lspeed is running.

with some guidelines from you, I will report back.

Thanks
[L Speed] DB126:
Interesting. Is dynamic virtual memory fully active? I am not seeing the expected tweaks. That said, device is performing well (short look). Will continue testing tomorrow.
[L Speed] DMPHOZA:
This is the best app to get performance, my Samsung Galaxy Pocket Noe GT-5310 running on karthick mostwanted's CM12.1 rom is nearly six years old and can even play some latest graphics intense games with minor problems (lag here and there). The phone is very fast with LSpeed and I hope that better ram management will be implemented in the future releases also is it possible to have a build in Graphics Optimizer similar to GL Tools inside LSpeed note this as a suggestion.

THAN YOU
[L Speed] cristixperia:
[MENTION=5514152]Paget96[/MENTION]

How I can remove this notification? :rolleyes:
[L Speed] cristixperia:
Sorry for double post. I forgot to attach the screenshot.
[L Speed] Paget96:
Good, send some feedbacks ;)

Battery and device performances, does it have any sort of lags after waking the screen... :)

What's the behavior you wanted to see? :D

I'm waiting for feedback. :)

Thank you so much. :D

I'll see what can i do ;)

It's foreground service and it cannot work without the notification. If you want to hide it, tap and hold on it and find a option to hide it, there should be one.
[L Speed] kchaisu:
Hi Paget96,

Thanks for your kind contribution. I have been testing the latest L-Speed Alpha 18122017 on HTC Desire S, RAM 768 MB, LineageOS-13 Sagaopt, using Balanced profile with Dynamic Virtual Memory turned on. So far, it is very good on battery and performance without screen turned on lagging on waking up. Thank you very much.
[L Speed] Paget96:
So it works good? :D

Nice to hear that, thanks for your kindly contribution :D
[L Speed] Paget96:
Any issues so far? :D

Any perofrmance or battery drops?

Waiting for feedback.
[L Speed] gh0stzk:
After hours testing new alpha, on s3 mini, 800mb ram, lineageos 14.1, i note a best performance, but i feel battery drops little faster.
[L Speed] DB126:
I am seeing the detail changes now; values work well on my 2 GB test device. So far no lags. Too early to properly assess battery usage. That said, I am not expecting significant changes in power consumption; smooth performance and reduced swap file activity are likely the biggest benefits (for me).

Edit: Positive trend continues after an hour of fairly aggressive use: snappy response, no lags, minimal swapping, no increase in battery consumption. Suggest pushing this build to Beta community for additional feedback. Important to see results on lower power/ram devices.
[L Speed] audiomarko:
Hello Paget96, great work .... runs very well on a Samsung Galaxy Note Edge with 6.0.1Stock with (RAM kernel)
[L Speed] zputnyq:
It works great on my device.

Device is much smoother [MENTION=5514152]Paget96[/MENTION].

thank you, I really appreciate it
[L Speed] martyfender:
I have not tested long enough to make a good assessment, but I no noticeable lags but my feeling is that there may be a slight increase power consumption as my battery seems to be dropping faster on my 1Gb device. Again, I am not certain that this is due to lspeed.. I usually look at the battery history graph in System Monitor to access this. Does anybody know of a better way to compare power consumtion over time? Maybe BBS, GSAM battery Monitor or Wakelock detector?

It has been a long time since I have tried any of those to remember if any of those would make it any clearer than the battery history graph in System Monitor (Pro version). The built in Android version never seems to provide much useful info on my device/ROM. I use the govtuner performance profile as I have not notice much battery improvement with the battery profile on my device/ROM.

Thanks
[L Speed] cristixperia:
After around 10 hours with latest alpha version :

My device is little bit responsive & faster (Asphalt 8 seems to run better).

Battery drop faster than normal. I use battery govtuner.

So long story short: performance increased, battery decreased.:silly:
[L Speed] peterlee928:
silly question - i have the beta version installed on my verizon pixel xl rooted on 8.1. im unable to instal the alpha file - any thoughts on what the issue might be? much thanks in advance :)
[L Speed] gh0stzk:
With alphas and betas, if u have beta, u need to uninstall it to install alpha
[L Speed] DB126:
There are many solid choices; GSAM is a good place to start.

---------- Post added at 08:37 PM ---------- Previous post was at 08:30 PM ----------

Preliminary objective data (~4 hours run time) suggest a 3-5% decrease in power consumption with my workloads. Anything under ±10% is within the subjective 'noise' level so essentially no difference for the same or better performance levels. Looks like you have a winner assuming others report similar findings.
[L Speed] :
Thanks since last alpha my phone runs like butter with relaxed gov and freq locked on 960mhz.

Good work and good idea for dynamic virtual memory, maybe Android will set this in last Android version ?
[L Speed] nreuge:
GSAM is good, but IMHO Accubattery is definitely the best battery monitoring app ^^
[L Speed] gotroot64:
great app for improving performance but what sucks is that my settings are set to save battery and instead of saving it drains the life because of it using up cpu. Don't know why
[L Speed] Alfa2205:
On the new alpha version the performance is better, the most significant changes I felt its like more responsive and smooth, but the battery drops faster even I chose battery govtuner. Im on the low spec device which has 899MB ram and 1500mAh battery capacity
[L Speed] jcarter3729:
Lspeed performance is great but the battery is draining twice as fast I would usually get about 3 and a half hours of on screen time but now I can barely get 2 hours
[L Speed] Alfa2205:
Virtual memory tweaks doesnt have options like the old kernel tweaks (battery, balanced, performance). Is it supposed to be like that?
[L Speed] martyfender:
This is not really a good overall test of battery performance, but I notice greater battery drain with my tablet use at work. I leave for work, fully charged. I only use the tablet during 2 15 minute breaks and during my 1 hour dinner hour.

I usually only check for play store updates and browse the web with Firefox.

I rarely ever watch video or play games. Most of my web browsing is on xda.

When I get home at about 11:30 PM, I ususally have 85-90% battery left.

Today when I arrived home I only had about 78% battery left.

Again, this was no controlled test, but a good indicator to me that I may revert to the previous beta, or turn off the dynamic virtual memory setting.

A second Nextbook Ares 8A at home, all afternoon and evening, had very little battey drop in doze mode, as I would expect.
[L Speed] Dr Grato:
Hi guys. Any mi a1 user here? Would be glad to share setup with u ?
[L Speed] Paget96:
We'll have another alpha within 2h ;)

I changed possible causer of battery drain. I have tried to keep caches longer than interval of calling pdflush/flush/kdmflush.

Stay tuned
[L Speed] Paget96:
I have changed my mind. I'll push beta instead.

Same as before, perform the same testing, now more people will be available to do the same. :)

I hope this one have fixed all the issues from the alpha version.

Beta will be up within 30mins, it's under the optimizations. :)

Cheers, have a nice day, thanks for the support. :)
[L Speed] Paget96:
#android #LSpeed

New beta version!!!

v1.4.28-beta1

OK folks, I'm here to represent our Dynamic virtual memory which works based on screen state. The thing I'm trying to make here is dynamically control device cache and give significant battery and performance improvements.

Please describe everything briefly, i have to see how all of it works on low-end devices (low ram) and also mid/high-end devices.

After all, we have to improve the mechanism of parameters according to device ram and current VM state, which will be done in the near future. For now we will have this as simple as possible.

Thanks for support, cheers.

Changelog:

- Updated Extended IO queue, using much longer queue than default

- Updated Services

- Added dynamic virtual memory

- Removed write deferral timer

- Removed kernel tweaks

- Added virtual memory tweaks (The rest of old kernel tweaks)

- Disabled highmem_is_dirtyable

- Set page cluster to 2 (4 pages per time)

- Improved su shell (spend less time on su if not needed)

- Updated profiles and profiles UI

- Updated Russian translation

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Join beta channel on Play Store:

https://play.google.com/apps/testing/com.paget96.lspeed

Follow L Speed on Google+:

https://plus.google.com/communities/114615858954464149084

Follow L Speed on Facebook:

https://www.facebook.com/LSpeedAndroidOptimizer

Follow L Speed on xda-developers:

https://xdaforums.com/apps/l-speed

Join L Speed discussion on Telegram:

https://t.me/LSpeed

If you want, you can also donate me using this link:

http://paypal.me/Paget96

or simply disable adblocker and support me over ads inside the app :D

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Thanks for the support :D
[L Speed] cristixperia:
I played Asphalt 8 first time with L speed and then without. Is a noticeable difference: with L speed the game running much better.:) So in terms of performance L speed is great ;)

For battery is too early to say something but I don't believe in miracles :laugh:
[L Speed] DB126:
I don't like the 'feel' of my mid-range device on the current beta; a bit sluggish with occasional lags that never occurred before. Not a fan (understatement!) of the persistent "L Speed is running" notification and associated background activity. Yes, the notification can be squashed but that's akin to pulling out the bulb when the 'check engine' light pops on.

Power consumption is up and appears to be approaching the ±10% threshold that I consider 'noise'.

From a technical perspective not a fan of actively managing flush processes. Clearly controversial. Tinkering with dirty ratio/expire/writeback parameters in concert with other VM tweaks is a better approach to managing cache IMHO.

So 'dynamic virtual memory' is a no-go for me...at least as it currently operates.
[L Speed] DB126:
Same. External/Internal build numbers are different. Google Play looks at the internal number.
[L Speed] gh0stzk:
I think there is a little bug in cpu govtuner section.

When u install lspeed, everything is on default system options isnt? Well i activate whatever of 3 options, battery, balanced and performance.

The execution interval shows "disabled" so thats what i want and its ok..

I made some reboots, then i go to cpu tuner section, and ... Execution interval was set to 3 minutes.. So.. That option must be disabled i gueess!

Rom RR android 6.0 but i note the same "issue" with LineageOs 7.1 rom
[L Speed] cristixperia:
38% in 1 hour :eek:

That's insane :eek:
[L Speed] KaaliRaat:
Why Removed write deferral timer???
[L Speed] DanGLES3:
Its now merged into virtual memory tweaks and always set to 1
[L Speed] Tkbf:
1.4.28-beta 1 running very well on S8+ with Batman ROM 1.5.0 and BatStock kernel 1.7.

With Dynamic virtual memory and Virtual memory tweak ON., device consum battery <1%/h	overnight, while very responsive when turning screen on, both are noticeable superior to any version before.
[L Speed] anon1135:
did u leave cache and swappiness on default?
[L Speed] Tkbf:
Yes, both are default.
[L Speed] nreuge:
Same on my Xperia Z5 / stock based rom 7.1.1.

I need a little more time to judge the actual effect on battery life.
[L Speed] anon1135:
might be my imagination but my battery seems to have gotten better as well. will report again the next day
[L Speed] Paget96:
We are now cooperating with Kingo root. Big thanks for them.

Check links below. :)

https://www.kingoapp.com/save-battery-android-phone-device.htm

https://www.kingoapp.com/speed-up-android-phone-device.htm

https://www.kingoapp.com/root-tutorials/how-to-lspeed-boost-rooted-phone.htm
[L Speed] Paget96:
I need from you to execute next

su

for i in ls /sys/class/scsi_disk/; do
cat /sys/class/scsi_disk/$i/write_protect
cat /sys/class/scsi_disk/$i/cache_type
cat /sys/class/scsi_disk/$i/protection_mode
cat /sys/class/scsi_disk/$i/protection_type
done
[L Speed] DB126:
Well, that's unfortunate.
[L Speed] :
So far it looks like Kingroot has only posted an article about L speed. I really hope they don't have anything to do with further app development.
[L Speed] DB126:
Optics are bad even if not endorsed which apparently is not the case. One of the strongest L Speed appeals was relative independence which has become less of a selling point of late with inclusions of Firebase Analytics, persistent foreground/background tasks, etc. Now affiliation with Kingo Root. Positive reputation can only take you so far when mingling with questionable actors.

Edit: I have now quarantined L Speed (full network isolation) which is rather unusual as I normally wouldn't allow such an app on my devices.
[L Speed] gh0stzk:
So.... Better we save last apks ???
[L Speed] ytgbg:
I hope this app will not go the ES File Explorer road...
[L Speed] martyfender:
I get no such file or directory.

Using a root file explorer I do see an empty directory at the following path /sys/class/scsi_disk

There are four scsi directories. They are all empty.
[L Speed] koyo:
Sry to ask but what is "it" ? I have doze notification disabled so there should be nothing else that needs a constant foreground service to use unless something has changed about how L Speed applies its tweaks
[L Speed] Paget96:
Well, nope, that won't happen. I received an email and they asked if i want their sdk or just sharing links. I said links for sure :)

And that will end up here :)

So you don't have to worry, i have a brain to think with it.
[L Speed] Paget96:
Yes, foreground service need a notification, you can hide it from the system :)
[L Speed] koyo:
no I am asking WHAT is using foreground service?
[L Speed] DB126:
There is a reason newer Android builds notify of persistent foreground services...because they are generally a bad idea. Hiding the notification is like pulling the bulb when the 'check engine' light comes on. Disabling 'dynamic virtual memory' will banish both the notification and the underlying cause. Or just pull the bulb ...
[L Speed] koyo:
Thought this was just a Oreo thing. I am on Nougat
[L Speed] jugoslavpetrovic:
cat: /sys/class/scsi_disk/ls/write_protect: No such file or directory

cat: /sys/class/scsi_disk/ls/cache_type: No such file or directory

cat: /sys/class/scsi_disk/ls/protection_mode: No such file or directory

cat: /sys/class/scsi_disk/ls/protection_type: No such file or directory

cat: /sys/class/scsi_disk//sys/class/scsi_disk//write_protect: No such file or directory

cat: /sys/class/scsi_disk//sys/class/scsi_disk//cache_type: No such file or directory

cat: /sys/class/scsi_disk//sys/class/scsi_disk//protection_mode: No such file or directory

cat: /sys/class/scsi_disk//sys/class/scsi_disk//protection_type: No such file or directory

1|bullhead:/ #
[L Speed] Chinaboy5216:
RRN CHN 5.8.5 vidwhal, scsi folders present but all empty. Device SM-N9008V China model.

Screenshots https://yadi.sk/d/xBBCgaLG3QokJp
[L Speed] ahadrox:
Sir,I want to help in translation (Bangla/Bengali). So that our Bangladeshi users can understand everything in this app :)

Thanks :)
[L Speed] Paget96:
Awesome, new strings will be up in 1h. :)

Cheers.
[L Speed] audianer:
Can i do anything without root with this app?
[L Speed] Paget96:
Nope :/
[L Speed] audianer:
Thanks, I thought so. Then I wait until the warranty has expired.
[L Speed] Paget96:
Thanks for posting here :)
[L Speed] Paget96:
#android #LSpeed

New beta version!!!

v1.4.28-beta2

Changelog:

- Updated dynamic virtual memory

- Updated battery improvements (experimental)

- Added profiles to virtual memory tweaks

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Join beta channel on Play Store:

https://play.google.com/apps/testing/com.paget96.lspeed

Follow L Speed on Google+:

https://plus.google.com/communities/114615858954464149084

Follow L Speed on Facebook:

https://www.facebook.com/LSpeedAndroidOptimizer

Follow L Speed on xda-developers:

https://xdaforums.com/apps/l-speed

Join L Speed discussion on Telegram:

https://t.me/LSpeed

If you want, you can also donate me using this link:

http://paypal.me/Paget96

or simply disable adblocker and support me over ads inside the app :D

Play Store:

https://play.google.com/store/apps/details?id=com.paget96.lspeed&hl=en

Thanks for the support :D
[L Speed] :
In the virtual memory tweak section, when I select "Battery" the toast shown below says "Balanced Profile". The applied values are different, it's just that the wrong toast is shown.