yashsingh1/xdaforums huggingface dataset:
[HTC One X] Thronesmasher:
I have run a few tests to see if this tool makes a difference on my One X running ICJ 4.2.1 with default kernel. The ROM has been running for about 3 weeks on my device with installation and deinstallation of apps on a daily base.

For the test I used Androbench micro benchmark in 3 scenarios:

1. after a cold reboot with LagFix installed but not run

2. after scenario 1, having run LagFix on /data and /cache

3. after scenario 2, after a cold reboot

I ran 10 samples on every scenario and in both scenarios I eliminated both the lowest and highest value in the result list

Here is the output of LagFix to show it has been run successfully:

See the results below, with error bars included.

Conclusion:

On my setup the only significant result after running LagFix was a higher random write throughput. The other benchmarks show no significant improvement, and after a reboot even some significant degradation. The difference in the results is rather small, however, with a sample size of 10.

Looking at these results, I think the improvement people are seeing might be a placebo effect, and the app doesn't really do anything performance-wise. Or maybe the app might have a rather limited effect on my setup somehow.
[HTC One X] AuxLV:
Well, looks like you didn't read FAQ. There are two possible reasons:

Maybe ICJ mounts partitions with -o discard. That means kernel does the trimming automatically. At the cost of slowing down delete operations. Which can only affect you if you delete tons of files at once. At that is kind of non-sense on a mobile (:

Your /data partition is not filled. Try creating 1gig file on /data with dd command from console - you will notice lagging immediately after dd finishes. Unless your kernel comes with discard, of course.

So, next time read FAQ (:
[HTC One X] Thronesmasher:
I have run the mount command prior to installing LagFix, no -discard is being used on my device

/data is filled for 50% atm, I've been trying out multiple apps per day for the last 3 weeks, installing and deinstalling, so I'd figure trimming might show some significant result by now
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

It's not placebo, you need to use almost all your storage capacity, delete some and fill it again. On some emmcs with stock kernel, the slow down write performance are significant, not only in transfer throughput, but the responsiveness of the system.

It's a well known effect on ssd, and since emmc use the same nand less the controller, the slow down write performance does happen.

To improve the performance back to normal, a format needs to be done, and for max performance gain a secure erase needs to be done. Consider trim on windows and fstrim on linux does the format magic without deleting your data inside.

The logic is proven in ssd world but lack interesting on emmc from legitimate tech review sites.

Just my two cents. :)

Sent from my Nexus 4
[HTC One X] Thronesmasher:
So you're saying for most people it's not necessary to use this app? Who keeps filling his /data to the brim, and then clearing it, in normal use?
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Yes for one who always left its storage more than 25% available. The hit will be barely miss.

But for one who got not so lucky emmc chip, the hit on performance may give headache. :P

For instance, galaxy nexus which comes with vyl00m rev. 0x25 chipset is not so slowing down. But newer galaxy nexus with v3u00m emmc suffers the most, even opening app take seconds when reach beyond 3gb available.

On nexus 4 the story is different, i loss 60% write performance when filling up the storage with movies, but even at the slowest, the write speed is the same as a fresh galaxy nexus write performance.

Sent from my Nexus 4
[HTC One X] mw86:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Its no different then computer and ssd trim function. If youve owned one and used it you would know how much performance is effected over time when blocks labeled free are housing old files you used to have even temp files. This app is probably good after restoring all apps after updating a rom. There are many temp files which would get wuped by trim. Then furthermore useful as you use phone and maybe add or remove media or just use phone in general files are created everywhere for even messages. The gains are not easily seen but there is no doubt they are there. A ssd on garbage collection vs trim deteriorates random writes as the drive is filled and depleted even if its smaller amount of data the data can be spread randomly over the presumed free space.

GS3 Tapatalk
[HTC One X] Thronesmasher:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Yep, I know the technical story. I'm just wondering, since my One X is 8 months old, I've been flashing ROMs on a weekly base, installing apps daily, and I can't seem to be able to measure the claimed performance boost.

Then again, maybe Androbench is not the right tool for this. It runs benchmarks only for a few seconds.
[HTC One X] mw86:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Okay now i got ya. I don't think we will br able to show positive or negative results from this due to the random nature of what it is Lag Fix alleviates. Most likely no way to percieve a difference unless you practically trashed your file system writing and erasing a ton of data. Id say if running lag fix finds anything at all it was a benefit and likely never needs to be run again until perhaps resetting up a rom update on a clean install. This is like CCleaner on pc wipe function. Its easier on a pc with ssd as there are tests already established that test random data rates. If i find any benches for android that are similar ill get a link up.

GS3 Tapatalk
[HTC One X] geoffcorey:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Not every phone will have the same perceived increase. But the overall trend, is a beneficial increase/restore to original function/speed.
[HTC One X] Copitox:
After this fix, my N7 keeps waking.

pic for proof. you can clearly see a before/after in the "activa" bar.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

That's weird. I don't have it on n4. Battery life is exactly the same.

But did you open the app all the time? I always close and swipe it from recent menu.

This just my crazy theory, if it's still opened in the background, the ads kick in and makes your phone awake.

Sent from my Nexus 4
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Did you reboot after using LagFix?
[HTC One X] gianptune:
Why does the donate version have more features than the non-donate version? Shouldn't they be the same exact thing, except one of them is used as a way to send you money to say thanks? I don't see anything wrong at all with having 2 versions of an app and charging more for features. But there is definitely something wrong with calling what you have here "donate". If you're going to do it like this, at least call it what it is. You have here an ad-supported app and a paid/premium/unlocked version. Calling it anything else is a flat-out lie.
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

I understand. It will be renamed to premium version and free one will receive scheduling too. I was very busy working on scheduler, didn't have time to sort some unrelated philosophical bs. Sorry, next time I'll think about naming app first and doing what users actually ask for after.
[HTC One X] KS Lin:
This app fixes the lags on my Official ICS 4.0.4 ROM for Xperia arc s. But, the problem is that for devices like arc s that have low internal memory (only about 300 MB available for apps), the apps are moved to sd card, so only the apps on the internal memory are fixed. :(

Can /sdcard partition be also trimmed?
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

SD cards work differently.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Come on, dude. It's just a name. Give the dev a break, will you? :)

Sent from my Nexus 4
[HTC One X] LorD ClockaN:
is 1.2 on market yet?

not offering me any update
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

The donate version is 1.2.

Sent from my Nexus 4
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Free version will be updated tomorrow.
[HTC One X] sanderg:
Legend & Desire

The app can be downloaded on the HTC Legend currently but it gives me the typewriter error so can be called incompatible.

On a HTC Desire, the app isn't visible in the store. Is that phone incompatible? It does suffer from lag :)
[HTC One X] ashishv:
Will this interfer with app2sd(ext4) where ext4 partition is linked to data?

Lg optimus one.
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Thanks for your report, Legend will be blocked in market too :)
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

No.
[HTC One X] vk2r:
Someone tried it on a Xperia Neo V? :S
[HTC One X] Andrev01:
App gives me "typewriter error" - is it possible to fix this, or simply my device has no chance to run this fix?
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Care to share what device you're running and on what rom?

Sent from my Nexus 4
[HTC One X] Andrev01:
It's in my sig. SE Xperia Ray on PACman ROM v 19.3, LuPuS v4 kernel.
[HTC One X] maxoxa:
sony

I'm on Sony XPERIA U - St25i, and the result is "Fantastic" piece of software. Lag is 0. Thanks for a great job.;)
[HTC One X] chrone:
oops sorry, the sig was not displayed on tapatalk app. hehe :D

great it worked on you! :)
[HTC One X] Andrev01:
So what can I do to run this on my Ray? :) Is this even possible?
[HTC One X] chrone:
let's wait for AuxLV to reply. my take is if your eMMC and kernel support fstrim, and rooted, it will work.
[HTC One X] AuxLV:
No.
[HTC One X] Andrev01:
My friend said that it works fine on his Ray. Why it doesn't on my?
[HTC One X] AuxLV:
Maybe kernel blocks TRIM operation. It should be BOTH supported by hardware and kernel. It is also known, that internals of devices change from time to time. For example, HTC One X has FOUR different Tegra 3 chips. And only revision #4 can be overclocked (: So it depends.
[HTC One X] AuxLV:
I've sent an update to my publisher, but it looks like he is offline today. So don't know when it will be live. Later today or tommorow. Free version will be updated right after donate version otherwise some links will be broken. Code base is now finally the same, so future updates will be syncronised.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Any change logs? Looking forward for this. :)

Sent from my Nexus 4
[HTC One X] AuxLV:
Fixed schedules disappearing after reboot, made a common code base for both versions, reworked a lot of code and brand new UI (:
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Premium version update is LIVE! Free version should also be live in a while - it was also uploaded few hours ago. Enjoy!
[HTC One X] Sipi1302:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

I can't download for neo from play store it saying that is not compatible with my device.
[HTC One X] mw86:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

The update came over the air for me :good: in play store. Thanks!

GS3 Tapatalk
[HTC One X] tbudke:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

Market says it's not compatible. Anyone know why? :confused:
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.2 2013.01.24

You could install betterbatterystats to check what causes the drain. Need to be rooted to see all stats though. Fstrim didn't drain the battery. It only runs on demand or sheduled.

If you're using the free version, make sure you close it with back button and swipe the recent apps list just in case.

Samsung series are blocked to avoid the notorious eMMC brick bug.

Oh btw, care to attach the log next time instead of posting directly? It's easier to scroll and quote that way. :)

Samsung series are blocked to avoid the notorious eMMC brick bug.

Sent from my Nexus 4
[HTC One X] sanderg:
HTC Sensation: Works

Works on the HTC Sensation using ARHD. Didn't run any benchmarks though.
[HTC One X] AuxLV:
I've added a poll to see if anyone with pre-ICS devices had any success. If not - I will remove 2.x compatability. This will minimize the size of APK by 500kb and will make my life a bit easier in supporting LagFix. But if anyone was helped I will leave support for older Androids, of course.
[HTC One X] Fandysilalahi:
Excuse me if its been posted before ,

Just want to inform that this app works wonders on my HSPA Samsung Galaxy Tab 2 7inch (P3100) runnig CM 10.1 M ROM. Been running this app every night before bed, reboot, and there are no lags to report.

Samsung owners be advised, the galaxy tab 2 has an OMAP 4 SOC , similar to that found on the GNex , hence it has no emmc bricking issue.

Thanks for this very useful app!
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Dear AuxLV,

I recalled someone asked about wear leveling days ago, but somehow i missed the answer and couldn't find any on the net. i wonder how fstrim and wear leveling go side by side so it won't abuse the same block being written over and over, thus reduce life span.

Is the wear leveling controlled by kernel or emmc firmware?

Sent from my Nexus 4
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Wear is controlled by chip firmware and I don't know if it is somehow possible to control it.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Aha, i do hope this baby has the built-in wear leveling in its firmware. Have to read more and more about what version of emmc does this nexus 4 use, hope it is v4.5. *finger crossed :D

Sent from my Nexus 4
[HTC One X] sberla54:
Thank you.

Yes, the app is closed.

I'm using GSam Battery Monitor and i don't see any apps using too much battery, indeed...maybe it's just a wrong sensation....

I didn't know the Samsung fact. Thank you.

Yes, you're right, an attachment would have been better :)
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Just to be clear: LagFix makes no impact on battery. It is only active when you run it or it runs on schedule. In any way it takes a few seconds to do the job. After that no activity happens. I even remove banners from memory when you switch to another app. If you have problems with battery - they are totally unrelated.

Some kernels require reboot, maybe you have one of those. Then reboot should fix additional kernel activity.
[HTC One X] sberla54:
I was just wondering if the trimming tweak could have, in any way, increased my battery use. It seemed unlikely to me, too, but i only wanted to be sure :)

I don't have a battery problem. My battery duration is still great.

I've already rebooted and everything works great.

Thank you for this great app!
[HTC One X] exitmood:
Excellent!.. Works great!
[HTC One X] a1exus:
When I ran it on my phone Samsung Galaxy Nexus (toro)

/data wasn't trimmed at all yet /cache was 436080640. Is this a lot?
[HTC One X] chrone:
/cache sometimes can get quite big.

mine was around 300MB for more than 3 days without reboot while yours around 425MB. i did wipe cache from stock recovery mode and after reboot did the lagfix. :D
[HTC One X] a1exus:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

How often do I need to run this app? I never ran it before..
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

It depends on how fast you fill storage. I'm fine with running it once a week, hardcore users might want to run a few times a week.
[HTC One X] a1exus:
i re-run app again (w/out filing up my space) and it gave me similar results... i'm confused now..
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

App output means nothing unless it shows errors, because it depends on kernel and device.
[HTC One X] a1exus:
I'm using Samsung Galaxy Nexus (toro) w/ leanKernel 4.8expt1-230
[HTC One X] -DarkKnight-:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

It says my device isn't supported but I know for a fact that my device definitely supported
[HTC One X] mw86:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

If DPI is modded it can effect compatibility. Playstore might be blocking more than just this on you if you know its compatible. Might need to use an app like lucky patcher to patch play store to allow all apps compatibility. But in most cases this should not be needed. Ill let someone else advise you but it may be good to note about play store causing issues for some using non standard DPI. Paranoid android does it differently so it gets away with many dpi changes.
[HTC One X] AuxLV:
Which device exactly?
[HTC One X] -DarkKnight-:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Look at signature :)
[HTC One X] AuxLV:
Nexus One is not supported.
[HTC One X] -DarkKnight-:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

The last version worked though...

Oh well I could do without this
[HTC One X] Ricfil:
What about Motorola devices? Specially Milestone in my case? Do you have any information if the NAND chip controller is compatible with the app? I went to download the free version to test it out, and the app is available for my model. Got no info back from Terminal when using the mount | get discard command, but still I see devices are behing ruled out as incompatibilities and/or hardbricks appear on them and are reported here (which is a pain in the arse for anyone who had that happen to them and anyone whom that might happen/or haven´t tried yet). Are more brands/models safe in that regard or further "study" must be made for them?

Any info on that?

Thanks for any idea.:good:
[HTC One X] azturbomini:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Nice.
[HTC One X] Ricfil:
Ok, nevermind my previous question (or if you nevertheless know the answer I´m still curious) although I´m using app2ext on my phone (very little internal memory-so apps reside on SDCard) so I must search other methods to my case:rolleyes:

Thanks anyway.
[HTC One X] rkuijpers:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

My thoughts exactly :D

Thanks for this nice app, dev! :beer:
[HTC One X] jericho7:
can anyone tell me why /system is not checked by default? is trimming it unneccesary?
[HTC One X] goTouch:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

You can go ahead and trim system. You do not write to system partition very often, so it is not really necessary.

I think it is not checked by default just to save you time.

Enviado do meu Galaxy Nexus
[HTC One X] AuxLV:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

I can enable Nexus One in market, but other users reported it did not help.
[HTC One X] chrone:
as far as i know, the trim command on emmc only works on emmc v4.41 (year 2010) and v4.5 (year 2012). perhaps that what is causing no gain from older emmc chipset.

resources:

http://www.jedec.org/sites/default/files/Victor_Tsai.pdf
[HTC One X] AuxLV:
Yes, but looks like not everyone agrees (:
[HTC One X] surtrafl:
Hi, I own a Htc One X, I´ve been using this app and for some reason my phone started to act weird, everytime I use fstrim it brokes something on my phone, first youtube would not play any video, then my camera didnt work, even games are ULTRA laggy and now after a couple of times trimming (/system also) my phone can´t make calls, I can barely use my phone, it seems like my GPU is dead, or going to be... can fstrim could be the responsible of this?
[HTC One X] goTouch:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Are you rebooting after using fstrim? It should do the trick.

Enviado do meu Galaxy Nexus
[HTC One X] surtrafl:
Wipe cache, dalvik, reboot, factory reset.. but none did the trick
[HTC One X] chrone:
i fstrim each morning at 7am everyday for /system, /data, and /cache with no issue at all since the first time LagFix was born. :D

is it working okay after factory reset and not using fstrim?
[HTC One X] AuxLV:
Totally unrelated. If your GPU is dead, then this is GPU problem. I suggest to make a backup and reflash ROM. Maybe try another one. Btw, which ROM do you have?
[HTC One X] ptmax13:
Just wondering...

I have stock 4.2.1 on my Gnex. I did a clean install because of some issues. I installed the factory image with GNex toolkit.

I use franco kernel, the latest nighly.

I there a way to know if "/data" is mounted with the -discard parameter?
[HTC One X] AuxLV:
Run mount from terminal emulator, it should show all mount options.
[HTC One X] ptmax13:
thanks for the quick reply...

I ran the command but the output is too long. Is there something specific I should look for?

At first glance, "-discard" doesn't show up anywhere.

(Stupid question of the day: Why there are so many things mounted?)
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

mount | grep /data

mount | grep /cache

mount | grep /system

mount | grep discard

Sent from my Nexus 4
[HTC One X] ptmax13:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

|u0_a124@android:/ $ mount | grep /data

/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=writeback,noauto_da_alloc 0 0

u0_a124@android:/ $ mount | grep /cache

/dev/block/platform/omap/omap_hsmmc.0/by-name/cache /cache ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=writeback,noauto_da_alloc 0 0

u0_a124@android:/ $ mount | grep /system

/dev/block/platform/omap/omap_hsmmc.0/by-name/system /system ext4 ro,noatime,user_xattr,acl,barrier=1,data=ordered 0 0

u0_a124@android:/ $ mount | grep discard

1|u0_a124@android:/ $

Can you decipher it for me please?

Sent from my Galaxy Nexus using my fingers.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

I don't see any discard mounting options on your post. Start from rw, noatime, and so on are the mounting options.

Sent from my Nexus 4
[HTC One X] AuxLV:
No discard visible. It if was, you'd see it in the comma separated list like:

/dev/block/platform/omap/omap_hsmmc.0/by-name/userdata /data ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,discard,barrier=1,nomblk_io_submit,data=writeback,noauto_da_alloc 0 0
[HTC One X] kye04:
Hi

I have a Defy + .

Free version works fine.

Premium version says ""looks like your device do not support trimming ""

Any ideea why ?
[HTC One X] davebugyi:
Since 1.3 it says on my Old HTC sensation as well, however that is the free version
[HTC One X] curiouso9:
wonder who test this on MIUI rom.. on htc one x of course.
[HTC One X] chrone:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

If it's from official miuirom and it works on stock hox then it will also work, since miuirom always use stock kernel from device stock kernel.

Sent from my Nexus 4
[HTC One X] KS Lin:
Re: [APP] LagFix (fstrim) v1.3 2013.01.27

Oh, no. It's just a placebo effect. I didn't see the app reporting that there's typewriter error. Now, in the new version, the app is reporting that my phone is not supported. :(
[HTC One X] AuxLV:
I will make detection improvements in next update. It's kind of hard to test - I only have devices with full support from hw and kernels (:
[HTC One X] AuxLV:
Fixed detection and some other small bugs. Update should propagate through Play soon (:
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Stopped working on S3. Previous version worked fine.
[HTC One X] :
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Works fine for me
[HTC One X] FDisk80:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

With MA2?
[HTC One X] gpzbc:
Thanks for this great app. I installed it on my Galaxy Nexus (Verizon) last week and used it with no problems. Now with the most recent update, the "data" checkbox is greyed out. Does that mean my device is incompatible?

By the way, I have a Galaxy Nexus (Verizon) running CM 10.1 with Franco Kernel #364.

Thanks for your help.
[HTC One X] AuxLV:
If you have problems, then clear app data in Android settings, re-run trim process and tell me what you see in log.
[HTC One X] gpzbc:
Re: [APP] LagFix (fstrim) v1.4 2013.02.02

Thanks,

I cleared app data, opened LagFix and the data box was checked. Great! So I pressed Run, then it acted like it was running, but slow. Then I got a really quick message that said Trim Is Not Supported... , right before it force closed.

Sent from my Nexus 7