Nexus 7 2013 Fstrim/lagfix

Psyside

Member
Apr 2, 2009
140
0
76
Hi guys, i'm an old time SSD owner, had like 5 SSD's till now, but mobile OS/stuff are new to me. With 4.3 Android bring fstrim, what i would like to know is how exactly does it work, and when does it occur?

Is it better option to use lagfix/fstrim in order to insure best performance? does clearing cache have any impact on my N7 2013 performance? sorry android/mobile noob here, more of an desktop guy. I know to tweak my desktop to max in order to get the best performance but i don't know how to do the same for my tablet, its not really consistent. Sometimes its very fast, sometimes commands take like + 200ms in order to start, i know this is not huge difference but its noticeable. I want to try all optimizations/tweaks before i conclude that its Android/tablet specific problem.

Any performance tweaks recommendations would be nice as well :)

Thanks.
 

zerogear

Diamond Member
Jun 4, 2000
5,611
9
81
IIRC, trim was added in either 4.3 or 4.4, so the 2013 N7 shouldn't have the slowdown issues -- you shouldn't need the 3rd party app. Trim is used whenever you delete files off the system.
 

Ravynmagi

Diamond Member
Jun 16, 2007
3,102
24
81
It's automatic, you don't need to do anything. And I don't believe the Nexus 7 2013 requires any further performance tweaks, it's pretty fast out of the box. I know that's not the fun answer a tweaker wants to hear, sorry. :p
 

sweenish

Diamond Member
May 21, 2013
3,656
60
91
It occurs about once a day, when certain conditions are met.

Given the standby time of the tablet, it's possible that it may skip a day.

You do not need another app.
 

Roland00Address

Platinum Member
Dec 17, 2008
2,196
260
126
I’ve learned a bit more on the conditions underlying when Android 4.3 will TRIM filesystems, as it wasn’t completely clear before. The Android framework will send out a “start idle maintenance window” event that the MountService listens for, and then invokes vold to fstrim filesystems when a few conditions have been met –
  • the device hasn’t been touched for over an hour
  • no idle maintenance window event has been sent in 24 hours
  • and the device is either off-charger with 80% battery or on-charger with 30% battery.
The goal is to have fstrim run roughly once every 24 hours if you’re in the habit of plugging the device in to charge every night.
http://www.anandtech.com/show/7185/android-43-update-brings-trim-to-all-nexus-devices
 

Psyside

Member
Apr 2, 2009
140
0
76
Also, what happens with TRIM if some notification occur during the trimning or before, does it stop the process, or even make it not happen at all? i almost permanently have background notifications on my N7 2013 :(
 

Psyside

Member
Apr 2, 2009
140
0
76
doesn't matter, trim doesn't affect OS operations.

Don't know if you understand me.

What i meant is, if TRIM is doing its job, and then notification occur during the process, *like (Skype message) does the TRIM command stop? because according to the post up, TRIM works only when the product is absolutely idle.
 

Roland00Address

Platinum Member
Dec 17, 2008
2,196
260
126
Also, what happens with TRIM if some notification occur during the trimning or before, does it stop the process, or even make it not happen at all? i almost permanently have background notifications on my N7 2013 :(

I think touched in the last hour means a human touching the touchscreen in the last hour.
 

lopri

Elite Member
Jul 27, 2002
13,312
687
126
I tried manual trim on my Nexus 4 running 4.3 and I did not perceive any difference. It was noticeable on Nexus 7 (2012) running 4.2.
 

Yuriman

Diamond Member
Jun 25, 2004
5,530
141
106
Can you be a little more specific? if lets say some application update, or some notification occur, it does not stop the trimming, is that what you say?

No. Only human interaction, not scheduled tasks, will likely interrupt it.