yashsingh1/xdaforums huggingface dataset:
[HTC One X] AuxLV:
1. To check mount options just run "mount" command from terminal emulator and investigate output. If you see discard for any partition, then this partition is auto-trimmed.

2. Some devices have real sd cards inside mounted at /sdcard, some like HTC One X have a partition if eMMC mounted in /sdcard, so it depends on your hardware. Filesystem is not really related to it.

3. Yes, kernels might not understand certain ioctl commands. There are two reasons for this: either command is intentionally blocked (like Samsung blocks it for SGS2 to save users from brickbug) or kernel is built impropely without correct identification of what commands are supported by hardware. Please also note that older eMMCs did NOT have support for TRIM operation at all.

4. Well, you can call ioctl commands yourself (: If you know how to code in C language and understand technical details of how to call ioctl and what to expect.

5. SD ERASE does not delete existing data. It zeroes unused block. For example, you delete a file. If you use HDD drive, then filesystem driver simply saves a flag that this file in this folder should now be considered deleted and new files may reuse its phisycal bytes as they want. When you run TRIM after deleting a file, kernel checks that some file was deleted and blocks which it was occupying are now free to re-use and send this data to memory controller and it marks these blocks as empty without touching actual file bytes in memory. SD ERASE adds another step - it fills these now considered empty blocks with zeros. That's because common memory chips in SD cards can only write data when blocks are zeroed. By the way, it also means that when you try to change on byte in a file in reality file is read into memory, blocks are zeroed and only then are written back in a whole - you can't write just one byte, only blocks of few kBs.
[HTC One X] bosas200:
Works with HTC Desire HD

Sent from my HTC Desire HD
[HTC One X] lartomar2002:
I have lagfix premium on a tegra 2 tablet. I can select /data but not /cache? I also have on a tegra 3 tablet and I can select all 3 options:system, data, cache.
[HTC One X] geoffcorey:
It depends on device manufacturer and the hardware they chose, and the software they write.
[HTC One X] -DarkKnight-:
It works on my a100
[HTC One X] add12364:
system trimming

System trimming is not checked by default. I was wondering if it is a good idea to do so on the nexus 10.

Thanks!

add12364
[HTC One X] -DarkKnight-:
Just check it
[HTC One X] jotha:
Thread cleaned

No need to bump a post after one day and then showing attitude when told so...

Just be patient.
[HTC One X] intronauta:
There's something weird

I've installed Lagfix(fstrim) premium in my Nexus 7 a week ago with schedule enabled in /cache /data and /system for all days.

My system is stock (rooted) 4.2.2 and has discard attribute in the mount command for data and cache by default:

/dev/block/platform/sdhci-tegra.3/by-name/CAC /cache ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,discard 0 0
/dev/block/platform/sdhci-tegra.3/by-name/UDA /data ext4 rw,nosuid,nodev,noatime,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered,discard 0 0

Every day I get a notification about the fstrim operation with "0 bytes was trimmed", something spected because discard (autotrimmed) option.

But today I get this:

View attachment 1872750

I've never remounted /system as rw and never flashed another rom, my Nexus 7 is stock and never has been wiped since november. Between the last fstrimmed operation yerterday and today there wasn't any massive operation of write/delete to justify these values.... :confused:
[HTC One X] chrone:
As i recall, auxlv told that the number was only symbolic so he replaced with text notification only within the apps. Perhaps he missed to replace the number on the notification bar. And as for discard mount option, you should not need to fstrim anymore since discard automatically frees deleted blocks right away when you delete files. Correct me if i'm wrong.

Sent from my Nexus 4
[HTC One X] intronauta:
Yep, I know that with discard fstrim is useless and redundant, but I was testing some things, just for fun ;)

Anyway, as I told before, everyday I get this notification

View attachment 1875532

that's the reason why I was surprised by the earlier notification, as if data was trimmed

No problem for me, just report this odd behaviour.
[HTC One X] tvisforme:
Any ideas about whether this is suitable for an LG P999 running Gingerbread? It seems to help on my N7 with CM10.1.

Sent from my Nexus 7
[HTC One X] AuxLV:
I don't remember any reports with your device. If it was shipped with Android 2.2 then most probably you don't need it.
[HTC One X] FReaKRaNT:
Does this actually improve performance on N7?

Cheers, FReaKRaNT
[HTC One X] AuxLV:
Did you read FAQ?
[HTC One X] dollyaja:
Works on my xperia J(daily schedule), question, does it necessary choose the system to be trimed?
[HTC One X] AuxLV:
No if you don't write info to system frequently. Most people never do and system is read only.
[HTC One X] FReaKRaNT:
Yes I did. I also bought the app. However I'm just wondering if there is any improvement in the opinions of other people that use it on N7.

Cheers, FReaKRaNT
[HTC One X] killswitch11:
Not sure if this has been asked or what, but has anyone running Franco kernel on N4 and/or N7 run into any conflicts with this app? If not, I'm pulling the trigger on the paid version.
[HTC One X] AuxLV:
Did not try on Franco's kernel, but works fine with stock kernel from CM.
[HTC One X] fozzie:
It's not going to do anything as cache & data partitions are already mounted with the discard option.
[HTC One X] FReaKRaNT:
FYI from PA thread:

Originally Posted by simonbarsinistr *

I guess I've not seen how flash memory capacity affects nexus devices. I've had four of them, but I never did fill any up all the way. But from what I understood, Lag fix, the fstrim utility, removes redundant files from cache and data, file systems that are accessed often, in order to speed up read and write function.

No!

http://en.m.wikipedia.org/wiki/TRIM

Also that "lag fix" utility is worthless on 4.2.2 + Nexus 7. The bug with some 16GBs was fixed in kernel and with discard mounting.

One of these days I'm just going to have to make an app called entropy magic lag solver that does nothing and make some money.

__________________

[KERNEL] M-Kernel

Last edited by Metallice; Yesterday at 09:30 AM.

Cheers, FReaKRaNT
[HTC One X] adwinp:
Good job, although TRIM should only be used with SSDs.

eMMC 4.5 brings forth "discard", which is, I quote: "A variant of the TRIM command that is more memory technology friendly".

That is achieved by sending CMDs 35, 36 & 38.

Have a look at the jedec eMMC specification for details.
[HTC One X] AuxLV:
Thanks for info! I will read tech docs this weekend.
[HTC One X] markop90:
R: [APP] LagFix for Nexus 7 & HTC One X

With discard mount option problem is not totally fixed, performance decreases also with it.

You're my hero! Good job! It works nice on galaxy nexus

An idea for a future version: weekly cronjobs :)
[HTC One X] chrone:
very well put. great! :)

Here's hoping more advance ssd controller and nand chip high performance on future android phone. :D

glad you make it here, markop90! :D
[HTC One X] AuxLV:
So I've read some docs while travelling to work. Now I better understand the process, will dig further this weekend, expect an update. I think I also found a guy who will help me with paid version for those of you who can't stand ads and want to donate me some money (no one clicked any banners yet...). Hope update will make your life even better and easier!
[HTC One X] chrone:
looking forward for the update too. paid version with no ads and weekly cronjob, yay! :cowboy:
[HTC One X] AuxLV:
I hope so (: Google does not like European countries for unknown reasons... Me and my friends are developing some games now and we were searching for publishing options for three months. This just drives me crazy already... Hate bureaucracy!
[HTC One X] knitler:
If it doesn't work on Sense ROMs how can it work on the one X and One X+? it comes with sense form HTC.

EDIT: Works fine on my One X+ with stock ROM.
[HTC One X] AuxLV:
I'm using CyanogenMod on my HOX. I've used it on all my previous devices and will use it in the future. It looks like some custom ROMs based off Sense require ROOT rights to run chmod command which is essential to make fstrim linux binary a runnable executable. So next update will bring chmod through su and that will fix the issue. su chmod was tested by AlexNone and reported working on these ROMs.
[HTC One X] emd2009:
I am running AOKP 4.1.2 with Franco #300 on toroplus and I got FC's after I run data and cache; however if I just run cache, it works fine.
[HTC One X] AuxLV:
Yeah, I see reports in market console. Will fix in next update.
[HTC One X] Archon810:
Does anyone know if this works on the TF300? Or any other ASUS tablet with lag like that?
[HTC One X] chrone:
Re: [APP] LagFix for Nexus 7 & HTC One X

You could always try it out and uninstall if it's not working, no harm's done. :)

Sent from my Nexus 4
[HTC One X] dosmac:
Is there any way this would work on 2.3.4? I'm having this issue with an Atrix running an older version of Android.

http://xdaforums.com/showthread.php?p=36258006#post36258006

I've tried to install and of course its only 4.0+ :(

I guess the issue is fstrim isn't supported by default, and I don't have a C++ compiler on my phone :\
[HTC One X] AuxLV:
Re: [APP] LagFix for Nexus 7 & HTC One X

Next version will support earlier Androids. I thought it was N7/HOX issue only. Just wait another day, I'm busy improving after all feedback received (:
[HTC One X] Dunc001:
Is support for Sense ROMs coming?

EDIT - Sorry, just found the answer on previous page! Look forward to next update...
[HTC One X] dosmac:
Thank you so much! :D
[HTC One X] AuxLV:
Update is published! It will take few hours to be processed by market, so stand by. Changelog:

v1.1

* Fixed chmod not working on some custom Sense ROMs.

* Added Android 2.2+ support.

* Fixed crashes.

* App is now multi-threaded.

* Updated UI a bit.

* New icon.

* App is renamed.
[HTC One X] dosmac:
I am getting an error when I run the app:

# ./fstrim -v /data

./fstrim -v /data

fstrim: FSTRIM: Not a typewriter

# ./fstrim -v /cache

./fstrim -v /cache

fstrim: FSTRIM: Not a typewriter

That's from trying to invoke via adb shell fstrim, it prints the commands to run but errors when ran. Same from in-app the console prints fstrim -v /data then that error Not a typewriter!
[HTC One X] AuxLV:
This is a response from your memory controller. Looks like you don't need this app - trimming is not supported. Which device do you have?
[HTC One X] gladden237:
Im on gnex toro, with lean kernel. im getting the device not supported message that the toro guy on pg 56 had. what is the best solution to this? (auxl responded to this, but I couldn't understand the big words) also, how dangerous is it to trim system?

---------- Post added at 12:47 PM ---------- Previous post was at 12:06 PM ----------

well i cleared data for the app and rebooted. tried it again, and now i can select all three options (btw im on liquid smooth rom if that matters).i hit run and it says it has trimmed everything, although it happens very quick and doesnt show how much has been trimmed. it would be nice to know how much it trimmed.
[HTC One X] Scuzzlebutt33:
I'm trying the free version before I buy. I click run button in the app, the run button goes black, but nothing happens. No asking for root (which I have) no error message. What is it doing?

This is on a Verizon GNex running CM10.1.

Thanks.

Edit: It suddenly decided to work. It reports partitions were trimmed. Does this indicate it is a useful thing to do, or did CM10.1 make trimming obsolete?
[HTC One X] e2zippo:
Just bought the premium version, but it doesn't seem to be working on a TF300, anyone else who had success on a TF300? It just get stuck on fstrim data.

Cheers!

Skickat från min ASUS Transformer Pad TF300T via Tapatalk 2
[HTC One X] hanschke:
I got only the message that root is required on my cm10.1 and trim is not supportet on the leankernel. how to fix it that we get su again? I have bought the pro.
[HTC One X] AuxLV:
Just clean app data - su lags sometimes. Update with fix will be released soon.
[HTC One X] hanschke:
lagfix data or su? There is no su clean option inside cm. wait for update :)
[HTC One X] DMagister:
Samsung Galaxy Note 10.1 64G. LagFix hang on /data and... device is dead. Doesn't boot any mode except download, odin can't flash anything: "There is no PIT partition". Can't do Re-Partition with PIT file. :(

I have no any problem on this unit and LagFix withing 2-3 month's before.
[HTC One X] wirtzpeitz:
Is there an intent to trigger LagFix that I could call from Tasker? If not, could this be implemented?

Also, what happens if the device is rebooted while fstrim is running? Is this catastrophic?

Thanks.
[HTC One X] thegios:
Not sure this is working on my GNex stock rooted 4.2.2

I click on RUN, button gets disabled, while the following stays on screen

# fstrim -v /data

nothing else, no warning to not exit the app or shut down the phone...

it stays like this for almost 5 minutes, then it writes the following

# fstrim -v /data

Partition was trimmed

# fstrim -v /cache

Partition was trimmed

Finished Hurray!

but no info about how much was trimmed...

Anyway I have tested before and after, and here are the results

BEFORE

-------

SEQ RD: 26.28

SEQ WR: 5.07

BEFORE

-------

SEQ RD: 26.46

SEQ WR: 5.03
[HTC One X] Busyb0x:
thanks you for keeping this app up to date !

works great on my device
[HTC One X] MRobbo80:
Thanks very much, I liked this app and brought the premium version :mad:
[HTC One X] Gorerotic:
This just solved ALL of my performance problems with my GNex!!! Always had the feeling about my custom Roms having Ram-leaks, since it got very slow just hours after a full wipe/install and it was almost impossible to even type words without having to wait.

Benchmarks attached. I almost forgot how fluid Android can be...

ps.: I've got the "eMMc V3U00M 08/2012" chip
[HTC One X] Braneless:
How are your scores that high?! Your "before" scores are about what my "after" scores are! Gnex with JBSourcery 5.3 and Lean Kernel 6.5
[HTC One X] Gorerotic:
I'm running on the latest AOKP Nightly Build from 30/5 with latest franco nightly Kernel. SD-read ahead Buffer at 512 /cfq scheduler.

edit: Just noticed that fsync was turned off, which should explains these scores. With fsync on they're lower.
[HTC One X] Mrpresto:
App was working great until last week. Went to do s cleanup and now my device is not supported. Any clew what has happened??

Sent from my axi0m infuzed Gnex
[HTC One X] AuxLV:
No clue, but new version is coming in a week or two with lots of improvements.
[HTC One X] sinthemau:
Hello, just testing LagFix free on my Gnex. Not a lot of improvement, as follows:

seq wr 5.25 MB/s before

rnd wr 59.72 iops (4K) before

seq wr 5.63 MB/s after

rnd wr 62.65 iops (4K) after

Run only /data and /cache. Do I need to run also/system ??? Is it dangerous for Gnex ???

Thanks a lot for your work. If Lagfix will be functional and good for my Gnex I will upgrade to paid version.

Bye
[HTC One X] TheInVisibleGoD:
Just reinstall the app! ;)
[HTC One X] sinthemau:
Hello, just testing LagFix free on my Gnex. Not a lot of improvement, as follows:

seq wr 5.25 MB/s before

rnd wr 59.72 iops (4K) before

seq wr 5.63 MB/s after

rnd wr 62.65 iops (4K) after

Run only /data and /cache. Do I need to run also/system ??? Is it dangerous for Gnex ???

Thanks a lot for your work. If Lagfix will be functional and good for my Gnex I will upgrade to paid version.

UPDATE: Run also /system and no improvement at all. Is it normal?
[HTC One X] Ci-Fi:
Can anyone recommend how often I should run lagfix?
[HTC One X] fozzie:
Daily.
[HTC One X] enigma1981:
Yup, it's an ongoing battle

Swyped from my Galaxy SIII using Tapatalk 4 beta.
[HTC One X] AuxLV:
Most of users will be fine running once per week.
[HTC One X] Mrpresto:
I did resolve the problem, thanks.

I think it had to do with a kernel I was running.

Everything is all well:thumbup:

Sent from my Galaxy Nexus
[HTC One X] misteroh:
my tf101 has been on fstrim -v /data for the last 2 hours... what do i do?! i'm scared to restart
[HTC One X] cAnArdtichAud:
Gnex cm 10.1

Hi guys, from my side, the app says it is not supported, grey checkboxes.

I'm running a Gnex (gsm) with cm 10.1 rom (no specific kernel), what should I do? Change Rom for a supported Kernel? which one do you think I should try?

Thx a lot.
[HTC One X] AuxLV:
Just restart the device.
[HTC One X] AuxLV:
Clear app data and retry.
[HTC One X] cAnArdtichAud:
That did the trick, dammit, awesome!! Thx
[HTC One X] saggitas:
just bought the app, and it works well on my GNex.

On my TF101 it works fine on /system and /cache, but encountered the same issue as [MENTION=3616075]misteroh[/MENTION], so i had to do a reboot. any idea why it doesn't like trimming the /data partition of the TF101?
[HTC One X] AuxLV:
Don't know really, the app calls kernel function which never ends for unknown reason.
[HTC One X] mw86:
Should this be safe still on a Galaxy S4 international exynos gt-i9500. I had sprint qualcomm gs3 last I was using this. Also i am not using aosp or cm but touch wiz so lag fix to enable trim is still recommended for android 4.2.2 right? My concern is the nand used or compatibility. Have you had success reports on the gs4 models or my model in particular?

Edit: actually its looking good, went ahead and tested based on it should be safe on most devices.

Is system recommended to be trimmed being that its unchecked default? Is that one to trim less often or after system installs?

Edit: system trimmed fine

Thanks for making Lagfix!
[HTC One X] abu busyra:
any same apps for unrooted devices?
[HTC One X] saggitas:
oh well, at least 2 out of 3 ain't that bad :D
[HTC One X] AbhishekS:
I just downloaded it. System is unticked by default. Is it safe to trim system too.

And how often should I trim system?
[HTC One X] Ci-Fi:
Yes, it's safe to trim system. I have mine scheduled to trim all 3 every night. Probably overkill, but it's not hurting anything.
[HTC One X] Anderson2:
I would like to use lagfix but am worried about bricking my Nexus 7.

1. I have a rooted Nexus 7 using stock Android 4.2.2. Is it safe to use lagfix on this device.

2. Have there been any bricking of Nexus 7 tablets?

3. How best to backup everything in case something gets corrupted.

4. Does wifi have to be on while lagfix works?

5. How long should the trimming take on a 16 G Nexus 7?

Thanks

Sent from my Nexus 7
[HTC One X] NYLimited:
1. I had no problem with it

2. Not that I heard of

3. Use TWRP or CWR

4. No

5. From a few seconds to minutes; depends on your tab.

----

Often wrong. Never in doubt.
[HTC One X] Anderson2:
Thank you very much.

I used it and it got rid of my lag!

Sent from my Nexus 7
[HTC One X] alfiemenace:
Why can't I trim my data and cache using Lagfix when using franco.kernel, it says not supported :(
[HTC One X] Ci-Fi:
Try clearing app data of Lagfix in settings>apps
[HTC One X] NYLimited:
I don't think it is the kernel.

I have used it with fK without any problems.

----

Often wrong. Never in doubt.
[HTC One X] AuxLV:
A lot of people started to complain about Franco kernel on different devices recently. Looks like he blocked needed functions. Ask him what happened.
[HTC One X] garyngkt:
I just ran LagFix on my rooted Asus TF101 with Team EOS ROM (4.2.2), after clicking Run there are no messages or status. Is it running?:silly:
[HTC One X] AuxLV:
Should be. I remember some reports from users of this device, that process never finish.
[HTC One X] garyngkt:
IC thanks. Does this mean the process never started at all?.
[HTC One X] AuxLV:
I don't really know, because I don't have such device.
[HTC One X] alfiemenace:
some people reported that it works on theirs. it also works on me now, but only in cache, data reports end transport blah blah. is it because my device is encrypted?
[HTC One X] AuxLV:
Yes, encrypted partitions can not be trimmed.
[HTC One X] fozzie:
Works fine on my N4 & N7, both running the latest Franco kernels.
[HTC One X] StormIceX:
why the "/system" option in unchecked? may cause some problem to my gnex?
[HTC One X] fozzie:
Because it's a read-only partition and so things aren't routinely being deleted and so there's nothing to trim.
[HTC One X] StormIceX:
thx for the info
[HTC One X] cobra11111:
Is this app for Samsung S4 good or not?

Gesendet von meinem GT-I9505 mit Tapatalk 2
[HTC One X] demosthen3s:
I can definitely confirm that this worked on my N7 running latest Franco kernel. Initially it didn't work, but I cleared app data, tried again and it worked flawlessly.
[HTC One X] andreasha:
There would be nice with an option for a reboot after completed TRIM
[HTC One X] mattpannella:
so, my phone just locked up while running fstrim and eventually just turned off, and now i'm pretty sure it's bricked.

i'm getting that QHSUSB_DLOAD thing in windows

sigh

am i basically screwed?
[HTC One X] rohitsahu111:
caused etrucha

is it compatible with galaxy note or only the nexus phones???
[HTC One X] AuxLV:
What device?
[HTC One X] AuxLV:
Some versions of Note will be bricked upon running, so I do not recommend lagfix for these.
[HTC One X] sherlock:
Initially didn't work, then I cleared data, now working. Really fixed all lag saved my time to flash a new Rom which previously was my only way out when my phone became ridiculously slow and unusable. Great job man and thank you for this wonderful application.

Sent from my maguro
[HTC One X] fex09:
Works with Xperia?

Does this app work with Xperia Devices?
[HTC One X] DeeZZ_NuuZZ:
try that...it will say if it is working or not then you can see :P
[HTC One X] AuxLV:
Should work
[HTC One X] Headless96:
Works with S4 (i9505) if anybody's wondering

Trimmed /system, /data and /cache a few times over the past few days and haven't run into any problems

Sent from my :tank:
[HTC One X] AuxLV:
Thanks for your report! Many people are asking me that question in emails. Now I know what to answer!
[HTC One X] flo90:
Work on galaxy note 2 international ? (N7100)
[HTC One X] alfredino85:
htc one s

This tool works on htc one s (s4 cpu version)?
[HTC One X] Cyclu:
I also wonder.
[HTC One X] Stephen:
It might be worth addiing to the OP a list of confirmed working devices, that way if anybody asks and doesn't read the OP you can just point them there!
[HTC One X] woodsonmh:
I have n/a in androbench values. Is lagfix needed on my asus infinity?

Woody

Sent from my ASUS Transformer Pad TF700T
[HTC One X] Matr0x:
+1 APX mode after launch with all three checkbox marked. Process started ok, stage one passed, blank screen and brick. Charging led lights up, its ok, nothing else doesnt work. All my data is lost forever ?

ACER A701 64GB, root, 4.1.1 stock. Never had any issues, used LagFix for several times earlier with no problem.

Most common scenario. Sending some videos to tablet via cable, it starts to lag, im rebooting it, then launch LagFix. Free space was about 10GB so far.
[HTC One X] DominoDoug:
Just ran this on my Nexus 7 and now I can't get past the Google Logo splash screen. Tried factory reset and data wipe via recovery but still can't get it to boot. Any fixes? :(
[HTC One X] bsoplinger:
I know I've used it successfully without any issues and others have reported good results on their Nexus 7 tablets. I don't even reboot when the once weekly process runs.

Sent from my Nexus 7 using Xparent Purple Tapatalk 2
[HTC One X] Anderson2:
Same here.
[HTC One X] niels-cil:
guys, would it work in the HTC One?
[HTC One X] :
Hi,

Yes, in any case I use it without any issues.

:)
[HTC One X] AuxLV:
Khm, I don't like brick reports... And I don't know how to help you, guys...
[HTC One X] DominoDoug:
My issue was a bad CM nightly across two devices. Scary moment with no working nightly zip on either device! Adb push to the rescue!
[HTC One X] AuxLV:
Glad to hear that!