yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] Picc0:
My device(16GB) is just one week old, i got it from argos/london. Its serial starting with C8O, so its still present at newer series too.

Rooted, stock.

The "lag issue" was started two days ago, internal storage free space accidently dropped under 1GB. Deleting things did not work in my case.

Looks like its a TRIM related software bug in 4.1.1

Here is what i've done to repair it(hopefully it will be okay until they repair the issue.

ATTENTION! Follow this guide your own risk, I am in no way responsible for anything you do to your tablet period.

1.Backup, backup, backup!

2.Download/unzip stock 4.1 from here: http://www.android-advice.com/file-downloads/nakasi-jrn84d-factory-8b0bd791.tgz or http://d-h.st/Gja (thanks for the links to FreedomITA

3.Download/install android SDK from here: http://www.google.hu/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CCUQFjAA&url=http%3A%2F%2Fdeveloper.android.com%2Fsdk%2Findex.html&ei=16tlULnqCITdsgbY6oCwBg&usg=AFQjCNFbgMqImhTGaT6VIt6_bZnsYGlu7Q&sig2=a6pNKDyAQ8wQiLzoOFdGlg

4.Follow this guide, dont forget to hit the thanks button! When you reach step 6, watch change the .zip name to your actual zip! http://xdaforums.com/showthread.php?t=1781250

5.Root with this (rooting with toolbox v2.0 not sure its a good idea, because its made for 4.1.1)

http://d-h.st/8I4

Looks like in 4.1 the issue is not present, but i'm not 100% sure.

Dont update to 4.1.1! The updater will bother you pretty often, but simply click to install it later.

Hope this helps.

EDIT: for more information follow this thread: http://productforums.google.com/forum/#!topic/mobile/loqbCbKVMWE/discussion%5B101-125%5D
[Nexus 7 General] sauceboy25:
AOKP

OK. As a noob, I went through it last night.

Unlocked the bootloader, rooted it, flashed CWM. Then flashed AOKP Build 3 (which is off JRO03R) and gapps, then ran Androbench. The benchmarks were about where stock 7's grade out. If I'm reading it correctly, AOKP also default overclocks the CPU to 1.5GHz, which doesn't seem to affect the benchmarks either way, at least not the I/O marks. Reducing it to 1.3 or 1.2 seems to increase battery life without impacting performance.

I uploaded all my apps and dropped in a couple of movies, leaving ~2.5G of storage left. Androbench marks remain about the same. So I'll give it a few days and see what happens. Probably drop in some more content to get storage down to about 1G to see how that impacts.
[Nexus 7 General] Jay Aristide:
Awesome, man :). Thanks for taking the time to do all that, it should clear up a lot of questions and speculation in this thread - especially if your device stays nice and zippy :)

Wish I could hit thanks more than once...
[Nexus 7 General] Metallice:
Simms is running Rasbean which is also based on the newest revision of 4.1.1 and he does not have the problem as well.
[Nexus 7 General] P1n3apqlExpr3ss:
Anyone else get lag in gmail? It pretty much also stutters when deleting messages and comes up with a dialog box saying "deleting x messages", never had that problem on any ROM on my GS3
[Nexus 7 General] drpepe:
I experienced zero lag until I installed Bards Tale which dropped my free space down to about 2gb. Things got very laggy very quickly...

I've now deleted other apps and data to make 3.8gb of space but no improvement. It seems a lot worse on startup: takes ages to load up widgets (calendar) and starting apps usually causes them to hang (Facebook, google Music especially) . After 5 to 10 minutes after startup things improve, but still not getting the performance I used to have.

I'm gonna uninstall Bards Tale to see where that gets me. Does anyone have any proven solutions or any suggestions? :)
[Nexus 7 General] Picc0:
Same problem here, i have a solution, working so far. I wrote down on #511.
[Nexus 7 General] Dragooon123:
How much free space do you have after installing 4.1?
[Nexus 7 General] Picc0:
now i have 6.6, but this method is based on others experience. i will fill up my storage less then 2 days i guess.

read here.
[Nexus 7 General] Dragooon123:
That page is horrible to browse on a lag infested Nexus 7, I'm gonna completely wipe and downgrade to absolute stock 4.1 and redownload everything I had. Let's hope this makes it better.
[Nexus 7 General] dark5lalom:
widgets play a key

I got my nexus 7 a few days ago and I also found that removing the media library widget helps because it is fairly intensive (for me anyway because it updates with my stuff. Also if you have it loaded with a heap of stuff, that affects it the slightest
[Nexus 7 General] Dragooon123:
It doesn't have much to do with the lag caused by crappy I/O.
[Nexus 7 General] sauceboy25:
OK as I mentioned above I've installed aokp build 3 on my C60 16gb nexus 7. Post install and app installation the benchmarks were typical. So I loaded up a bunch of movies, reducing free space to 610MB. So pretty much completely full.

The resulting benchmarks have been largely good. Specifically, the I/O marks have dropped a lot - seq wr down to 8.6 and random wr down to 30.6, down from about 10 and 130 respectively. To put it in perspective, when lagging previously with stock, the seq wr was 0.3, or 1/30 of normal. So while the marks are down, its not noticeable. The only marks that really collapsed were the SQL marks, which are now in low single digits, down from 50-60. All of this I suspect can be attributed to reducing storage so low that its impairing any kind of swap operation. But I'm only guessing.

Also - the only glitches as of this moment are that Gallery doesn't work at all - apparently a known problem. Also, the Amazon Mobile app seems to have disappeared from my Amazon appstore, which is odd. And in terms of AOKP, the ROM Control offers CPU clock control, but doesn't seem to retain it after reboot, regardless of setting. Other than, it works pretty well. Looking forward to trying other ROMs, once I can figure out how not to lose game progress.

In other words I'm optimistic now. I'm going to wait a day and rebench and then remove the movies and see if it bounces back.
[Nexus 7 General] ExploreMN:
Just out of curiosity, what speeds are "average" for stock on a fresh factory reset? My previous N7 that I returned only got about 7.5-8.0 on sequential writes (seems to be where the real issue is) and then other users show like 10-11 on sequential writes like on page 3 of this thread. I just got my replacement N7 which is a C8O model and get between 8.25 and 8.9. So what is the real average, and if it is in the 7.5-8.5 range, what are others doing to get 10-11 and even higher sequential writes on stock? Just luck of the draw or what?
[Nexus 7 General] Dragooon123:
I get 8-9.5 depending upon the time of the day and alignment of stars (apparently it just varies), you got a problem when it drops below 1MBs (which it does seem to after a while and causes hell to break loose)
[Nexus 7 General] Metallice:
All I can say is I always get 11+ when empty and it goes down steadily to about 8-9 with 3GB free.
[Nexus 7 General] drpepe:
Amazed by people worrying about sequential write speeds of 7 or 8,

:D my androbench sequential write speeds are currently running at 0.3 to 0.8!
[Nexus 7 General] Metallice:
Also I'd like to add that the newest JRO03R has helped with the issue a LOT. Maybe even completely fixed it?

Anyway with 1GB free my sequential writes have gone from 0.5 to 3-5. Not great but much better and no more lagging. Random writes are still terrible though, but maybe that's just a consequence of full storage.
[Nexus 7 General] Jay Aristide:
You can expect sequential read/write speeds to drop as storage fills up, it's just how nand works. It definitely shouldn't be dropping to less than 2, even with a completely full device. Glad to hear JRO03R has it fixed. Shouldn't be long at all until Google pushes an ota for it o maybe even S
[Nexus 7 General] Metallice:
Exactly what I was thinking. I only said what I said because I'm not sure by how much it is "supposed" to drop. Also not sure if the pitiful random writes are normal too as the newest build didn't change those scores. It "looks"/"seems" fixed at least.

The S build is weird though as I'm pretty sure it has a build date of way back in August. I would be curious to see if it also fixes the IO issue like the R build. Although convention would suggest that S is newer than R.
[Nexus 7 General] czesiu:
how bad is it?
[Nexus 7 General] ExploreMN:
You probably shouldn't be so amazed...that's the one that seems to take the hit when lag occurs. 0.3 to 0.8 would mean your tablet is nearly unusable. Most report their tablets become junk when it hits about 0.4 on the sequential write.

Personally, I'm probably going the Jay route with this one until Google pulls their head out of their arse and fixes this.

---------- Post added at 07:28 PM ---------- Previous post was at 07:02 PM ----------

Update...just loaded down this stock C8O with only 0.9GB free while still on 4.1 and it still come in at 8.5 sequential write. Before I Jayize this thing, I'm going to update to 4.1.1 and try again just to kind of reverify what we already seem to know.
[Nexus 7 General] Metallice:
Make sure you load 4.1.1 r6 aka JRO03R. Latest CM10/AOKP/PA/Rasbean have this.
[Nexus 7 General] sauceboy25:
Androbench marks vary wildly.

I'm at <600MB of storage left, and three benchmarks in an hour gave wildly varying results, with the first at SEQ WR of 0.77 and the last at 11.32.

That said, I'm obviously optimistic about JRO03R appearing to fix the lag problem.
[Nexus 7 General] khaytsus:
Where is it said that JRO03R fixes this? And will that fix a stock older build of stuff with the files you've packaged?
[Nexus 7 General] ExploreMN:
Just another update...and the plot thickens.

I upgraded to the latest 4.1.1 and then loaded this thing to the gills...400mb free. No lag what-so-ever.

Not sure what this means, but hopefully a more technical mind will find the info useful.

Time to do some Jaymods to this thing and watch it scream!!!
[Nexus 7 General] Jay Aristide:
Jayize, Jaymods... LOL you flatter, man. All I've done is taken things others have cooked up and organized them for anybody to use easily... BTW, I've gone back to _motley's 1.1.1 w/484mhz GPU and a -75mV undervolt. Liked the faux kernel quite a bit, but there were a couple of issues I couldn't really get past.

---------- Post added at 09:22 PM ---------- Previous post was at 09:20 PM ----------

A lot of people on JRO03R and above have reported they don't have the lag issues. As for your other question, I don't know. I'd recommend flashing the binaries zip first, see how that does, then flashing a custom kernel and disabling fsync.

---------- Post added at 09:24 PM ---------- Previous post was at 09:22 PM ----------

ParanoidAndroid always builds off the latest CM 10, and the build he released today did not contain the new binaries. I still had to flash my binaries zip to get GPS working..

Edit: this is even though the build number for his past two releases has been JRO03R
[Nexus 7 General] simms22:
that build number is just a build.prop edit. rasbean was built fresh hours after the drivers/binaries were dropped. make a nandroid, see if rasbean will fix your issue(out of curiosity).
[Nexus 7 General] Metallice:
The latest 2.16 fixed the lag issue. 2.15 does not. The only thing missing from 2.16 is the GPS binary. Its just not included at all for some reason.
[Nexus 7 General] Jay Aristide:
Right on :) I just went ahead and flashed the zip. Same binaries are same binaries :)
[Nexus 7 General] Metallice:
The plot hasn't thickened... that was expected. Storage was working fine with 4.1. It got messed up with 4.1.1. The latest 4.1.1r6 or JRO03R fixes it...

---------- Post added at 11:53 PM ---------- Previous post was at 11:52 PM ----------

People love to make up catchy names and buzzwords for things. It makes it easy for them to understand and for the ideas spread. A lot of things are too complicated or technical for most to understand or to take the time to learn... but anyone can say "linaro" or "ZRam" or "cpuquiet" or "V6 supercharged" or in this case "jaymods". Catchy words mean must be better!!! Its frustrating mental lazyness that contributes to a lot of snake oil and placebo in the android community. It's not too hard to learn this stuff. It really isn't. Unfortunately there is not much that anyone can do. Most people are at the very least either dumb or lazy or (most likely) uneducated (in reference to Android) (without the time or desire to learn) so buzzwords spread like the plague.

No offense intended to you Jay... unless you started calling them JayMODs or some other catchy name lol :)
[Nexus 7 General] espionage724:
JRO03R as in the entire ROM? Or a binary in JRO03R?

I use Team EOS's stable build currently, which afaik, isn't 4.1.1r6. I did flash that CWM package of JRO03R onto this ROM though, and I use franco.Kernel with fsync off. I have 2.3GB free space, and notice no lag issues.

Wonder what other apps Google will throw up for 25 cents... I though 8GB was enough for me, but now, I'm not soo sure :p
[Nexus 7 General] Metallice:
I wasn't aware which version of 4.1.1 you were referring to. I assumed the latest. Did you flash the r6 binaries or is it just pure JRO03D? Also was it an upgrade or a full wipe? Curious. Oh well. Either way it appears JRO03R fixes the problem so it couldn't hurt to upgrade.
[Nexus 7 General] Jay Aristide:
I figured he was talking about the ota update pretty much because of the 'plot thickens' thing. He's downloading PA and installing it with my tweaks tomorrow, AFAIK, but it's interesting to know he's on 30D right now with less than a gig free and experiencing no issues...

For that matter, do we have any reports of a c80 of any build acting screwy when it gets low on space?
[Nexus 7 General] Metallice:
C7O here... I don't know about other serials. I just assumed they were all affected to she degree.

Maybe as long as the storage is filled up while on the working 4.1 and then 4.1.1D is flashed over top everything is fine? Maybe it's only when the storage gets filled while on 4.1.1 that causes problems?

Heh well hopefully he flashes the binaries you posted as well... since for some reason PA 2.16 fails to include any GPS binary whatsoever.
[Nexus 7 General] drpepe:
Well actually, apart from the 1st 10 minutes or so after startup and besides particular problems with certain apps (Facebook, Google Music, mainly) the tablet runs ok - not as good as it was, but certainly not "nearly unusable", despite sequential write speeds of 0.4 to 1.1.
[Nexus 7 General] Jay Aristide:
I think they did fix it...quietly

Also, once you get a taste of PA, _motley's, my tweaks, and the new binaries, you won't give two squirts whether Google fixes it or not ;) Once it's setup right, this thing is absolutely amazing. I literally don't even use a PC anymore. In the past thirty days I've been on my PC for about 15 minutes, and that was just long enough to open a bash shell, extract the new binaries, write the edify script, and zip up the binaries package into something cwm flashable...
[Nexus 7 General] Dragooon123:
Running 4.1 and with ~2.8GB free I can pull of 0.4MB/s Random write and nearly 9-10MB/s sequential write.
[Nexus 7 General] Picc0:
looks like the TRIM is working on 4.1
[Nexus 7 General] Dragooon123:
Yeah, I want to give JR0O3R a try (wiped my device already) but I can't find a stock ROM based on it.
[Nexus 7 General] Picc0:
nakasi-jrn84d- this is 4.1

read back, i wrote a complete how-to.
[Nexus 7 General] Dragooon123:
I am running stock 4.1, I want stock 4.1.1_r6 (JR0O3R), but all I can find are ROMs based on it but heavily customised.
[Nexus 7 General] simms22:
rasbean jelly isnt heavily custumized and is lightweight http://fitsnugly.euroskank.com/?rom=rasbeanjelly&device=grouper

just opwn the busybox app that comes with it and install busybox. its based on the latest.
[Nexus 7 General] Dragooon123:
I'll take a look in a while.

BTW: I did the ota update to 4.1.1 and performance went to hell. Definitely a problem with the update.

---------- Post added at 08:28 PM ---------- Previous post was at 08:26 PM ----------

Does the latest CM10 have JRO03R merged? Couldn't find anything in change log...
[Nexus 7 General] ChrisM001:
AOKP v.3/JRO03R doesn't fix the lag issue. Same bad IO performance as former builds. Just tested. It would be great if more people would test before giving over optimistic issue solved-statements.
[Nexus 7 General] Jay Aristide:
There are a lot of people, at this point, who would disagree with you. Your experience is singular, as people who have flashed a 30R rROM and the 30R binaries are reporting no noticeable lag @ < 1gb free.
[Nexus 7 General] ChrisM001:
Next I tested the original 4.1 release instead of 4.1.1 and what shall I say: this works great. So the solution for the lag problem is to return to the original ROM version 4.1. So it can be regarded as proven that no hardware defect is the reason of the issue but erroneous firmware by Google.
[Nexus 7 General] Jay Aristide:
This was established and confirmed pages ago. Thanks for adding your confirmation, though. Upgrade to aokp 3 or cm10 nightly and flash my binaries zip, or upgrade to aosp r6, and you'll find the problem's been resolved, entirely.
[Nexus 7 General] khaytsus:
Thanks for the update, this thread is full of lots of random statements and it's hard to tell what's what.. I suspect it's more than just "full", but could be what type of "full", perhaps how many files etc.. Who knows.

I didn't expect JR003R was some kind of magic bullet, I'd think that Google would announce it and suggest people try it if it were.
[Nexus 7 General] Jay Aristide:
The JRO03R build, together with the JRO03R binaries (they are NOT one and the same, and a JRO03R build does NOT necessarily mean it includes JRO03R binaries) *does* fix the lag issue. So far, over two dozen people across half a dozen threads have confirmed it, and *one* person has offered a dissenting view.
[Nexus 7 General] ChrisM001:
It *doesn't*. Test it for yourself and you will see. And show me the 2 dozen people. I also follow a lot of "lag"-threads and there were 2 people who were optimistic and wanted to test it further.
[Nexus 7 General] Metallice:
I agree with Jay here. the more likely explanation is that AOKP build doesn't have JRO03R fully merged. Paranoid Android (and whatever CM10 date it was built on) version 2.15 said JRO03R in Settings:About, but it did not fix the I/O problem. PA version 2.16 also says JRO03R, but this time it DOES fix the l/O issue. It is probably the same thing with AOKP build 3.

I'm not sure if the JRO03R binaries matter, as I flashed them over PA 2.15 (which as I said claimed to be JRO03R) and the IO issue was still present. You do have to flash them over PA 2.16 regardless... since it is missing any sort of GPS binary whatsoever.
[Nexus 7 General] MXR2:
With 2gb left on my 16gb C80 model. no signs of lag
[Nexus 7 General] Jay Aristide:
Yeah, I doubt it's in the binaries, as none of them are nand-related in any way. I just include the binaries in you should flash this' because so many ROMs say jro03r but don't contain [all] of them, it's just best and less hassle to go ahead and flash them. 2.16 PA *definitely* fixes the lag issue on it's own, as does the lastest CM10 NIGHTLIES, aosp.r6 and anything built on aosp.r6 or CM10 bases from the last four or five days.

Chris, you should re-read the last 5 or 6 pages of this thread, go read the last 15 or so pages of the PA thread, and then check out the las dozen or so pages of the _motley thread. You'll find plenty of people reporting their lag issues have cleared up.

Personally, I don't like seeing the considerable effort several people have put into tracking down and rectifying this issue being discounted on one person's 'oh it don't work' claim. But, I guess all the people saying their lag has cleared up with the latest nightlies are high on Placebos and don't know what they're talking about...............................I hereby yield to your expert opinion based on one flash of one ROM and facts we've had for days

---------- Post added at 04:55 PM ---------- Previous post was at 04:55 PM ----------

What software version / build are you on? You're probably high on a placebo fix.
[Nexus 7 General] ChrisM001:
I'm very sorry, but I have to revoke my findings, because when I was down to 1,5 GB the lag came back even with 4.1. I deleted some apps to have 4 GB free space, but the lag with horrible sequential writing speeds < 0,5 in Androbench remained.

So now after having tested the possible fixes of the lag issue, I come to the conclusion that it could really be a hardware defect.
[Nexus 7 General] Jay Aristide:
Okay, now, just for giggles. Please flash either AOSP.r6, ParanoidAndroid 2.16 (and my binaries zip to get GPS), or RaspBean Jelly, and see if your problem doesn't go away.
[Nexus 7 General] krazeecracker:
Quick question for ya jay. I'm running pa with Franco kernel. I jacked the graphics to full on beach buggy and its got a slight lag now. Would the zip help? Or is it my GPU struggling to keep up since its not ocd?
[Nexus 7 General] ChrisM001:
Ok will test ParanoidAndroid 2.16 with your binaries tomorrow. I bet sooner or later they will also show the lag, but let's see.
[Nexus 7 General] khaytsus:
Okay, so, I am using the stock ROM, so I'm not following 5 other threads on this issue..

So you say 2.15 of PA did not fix it, 2.16 of PA did, but you still have to flash the binaries? Why is that? PA 2.16 hasn't picked up the binaries yet?

I've been avoiding flashing a ROM as the N7 ROM is very stable, but perhaps I'll have to.. I hate having to babysit the free space, and the market sale right now is eating into my buffer zone.
[Nexus 7 General] Jay Aristide:
2.16, as well as the last couple of CM nightly builds, has the JRO03R binaries, just for whatever reason, it doesn't have the GPS binary (which my zip comtans). Either way, since none of the binaries are nand related, we're pretty sure it's something actually in the more recent builds.

I've actually been playing with the idea of setting up a build environment and at least doing some riffs, but I haven't done anything coding related in over a decade, and I've *never* done any java coding, so I'm not sure how useful that would be. That being said, I'm a pretty quick study, so *shrug* I might do it anyways..

I'm looking forward to seeing what kind of results you get.
[Nexus 7 General] ExploreMN:
Just a comment and thank you to Jay... My tablet is running great. I can even download AND install app updates WHILE watching Netflix without a hiccup. There was no way in hell all that could be done at the same time before!

So, thanks for all the help and guidance! Never met a nicer or more helpful guy on these forums!
[Nexus 7 General] Jay Aristide:
2.16 has the new binaries, but for some reason the latest cm nightlies haven't had the GPS binary *shrug*
[Nexus 7 General] joshtb86:
Where are your binaries?

Also, where is aosp r6 for download?

Thanks guys!
[Nexus 7 General] Dragooon123:
You are doing a complete wipe (fastboot erase) before flashing right? It seems that once the lag has started it doesn't go away.
[Nexus 7 General] ChrisM001:
Sure.
[Nexus 7 General] ÜBER™:
So I'm guessing this means I don't have the IO issue? Or the >3GB bug..

Sent From My N7 via White Tapatalk
[Nexus 7 General] xopher.hunter:
What is your free space like? I assume its less than 3 gigs but try getting closer to 1 gig left and try androbench again.
[Nexus 7 General] ÜBER™:
Sorry I forgot to upload it.

Sent From My N7 via White Tapatalk
[Nexus 7 General] Jay Aristide:
You have fsync on or off?
[Nexus 7 General] ÜBER™:
Its on and I even rebooted to make sure it needed it and re ran.

Sent From My N7 via White Tapatalk

---------- Post added at 01:29 AM ---------- Previous post was at 01:24 AM ----------

Oh and this is with it off.

Sent From My N7 via White Tapatalk
[Nexus 7 General] androidkid311:
What annoys me is that its a "quad core" processor you would think it would handle things....smoother and project butter is nonsense to me lol! Just can't touch iOS smoothness. Me eh Android has a loooong way to go still but its still a good device minus the lag lol.