yashsingh1/xdaforums huggingface dataset:
[Nexus 7 General] Jay Aristide:
Funny. I spend a good amount of my free time here on XDA helping people and answering questions that have already been answered elsewhere. I've authored threads with guides, tutorials and flashable zips for a few different devices since joining this community, ALWAYS taking the time to answer even the most basic of questions, and even going so far as to offering up my phone number in private message for those who thought they might need just a little more in-depth help. 500 thanks out of 600 posts speaks for itself, bro.

The image in my signature is a statement about business ethics. It's intention is to raise a single question in those who read it: Why would you go to such an extreme? When that question is asked, I have a very direct, factual and reasonable response prepared for them. While it usually doesn't cause them to dump their iCrap, it does give them something to think about, and at that point they never have an issue leaving their phone/tab/mp3 player in their car.

You're going to have to help me out with this one. Could you please go back through my history o six-hundred posts and find the one where I said that Apple users deserve no help with their Android devices? Or better yet, just find me one where I have something bad to say about Apple users, at all. I have nothing against Apple users. I wish them no ill-will, whatsoever, and if an Apple user ALSO owns an Android device, I see it as an opportunity. They get to witness, first hand, the difference between community-driven development and corporate-driven development. I'm always happy to help anyone who needs assistance, whether their product is Android, Apple, Microsoft, or whatever. I have no problem with the people who use Apple products, as I have no real issue with the products, themselves. What I have a problem with is Apple's business practices. And, on that, I stand firm.

I'm not being elitist, at all, and if you ask around about me on these forums, you'll realize how asinine your closing comment truly sounds. You, apparently, just hear/read what you want and discard the rest...

To everyone else: Sorry for'further cluttering up the thread with this, folks, but I've been part of it since page 2, I've made a lot of contributions to it, and have been offering my assistance wherever it could be used, all along. I feel I've a right and responsibility to defend myself against garbage like this.
[Nexus 7 General] styckx:
Holy crap.. STOP REPLYING.. Take this stupid argument elsewhere. You tell others to ignore you yet you do a multipost reply containing a wall of text about an issue that isn't tablet related and that 3 entire people even care about..

This is about lag on the Nexus not e-cred, move on already.
[Nexus 7 General] Jay Aristide:
Which seems to have been summarily resolved with the latest OS update (knock on wood) :)

Wish I had a nexus7 here that suffers from the lag issue so I could test this new version. But, as neither of the n7's here suffer from the issue, I'm just gonna wait till it gets merged into CM10 and picked up by ParanoidAndroid :)
[Nexus 7 General] dynamicpda:
This suggestion works like a champ.

On 4.1.1, I had filled my N7 up to 3G left. I deleted nandroid backups but was still seeing low scores on Androbench: SQLite tests were like less than 1 tps.

Installing 4.1.2, the scores rose to ~5 tps.

Then following TheRealCyberOptic's advice I copied files--the fat nandroid backups--back onto the N7 to fill up the space. Then I deleted them. SQLite scores are now ~51 tpbs. It is still less than the ~160 suggested under rankings on Androbench for the N7 but still 50 times better than when I started.
[Nexus 7 General] Turbotab:
As a side note, I wonder if the rumoured 32 GB N7 will offer significantly faster I/O performance, something most people overlook when comparing devices.

The 8 GB N7 uses a eMMC 4.41 package from Kingston fabbed on a 32nm process ,looking on their website they have newer eMMC chip (Version 4.5) fabbed on 19nm process, which may be faster. At the very least the smaller process explains why a future 32 GB model may not cost more than the current 16 GB.

Time for my 8 GB to hit ebay, 4 times the storage capacity is too tempting:victory:
[Nexus 7 General] Jay Aristide:
That future 32gb model is popping up, here and there.. I've been considering picking one up, especially if it doesn't end up costing more than the 16...
[Nexus 7 General] irishrally:
Before update:

#Micro-benchmark

SEQ RD: 28.06 MB/s

SEQ WR: 0.64 MB/s

RND RD: 2053.96 IOPS(4K)

RND WR: 26.92 IOPS(4K)

#SQLite benchmark

Insert: 731.7 TPS

Update: 579.15 TPS

Delete: 821.91 TPS

#Macro benchmark

Browser: 2684.75 msec

Market: 1378.5 msec

Camera: 1175.0 msec

Camcorder: 1179.5 msec

After Update (and complete wipe of the device - http://xdaforums.com/showpost.php?p=32598705&postcount=106

#Micro-benchmark

SEQ RD: 28.55 MB/s

SEQ WR: 10.34 MB/s

RND RD: 1922.09 IOPS(4K)

RND WR: 123.09 IOPS(4K)

#SQLite benchmark

Insert: 52.66 TPS

Update: 54.46 TPS

Delete: 56.39 TPS

#Macro benchmark

Browser: 145.25 msec

Market: 264.25 msec

Camera: 287.5 msec

Camcorder: 814.75 msec
[Nexus 7 General] Jay Aristide:
Hey man, that's a fairly comprehensive guide you have in that post you linked.. So comprehensive, I think people would benefit from making your own thread of it (but I would suggest linking them to CWM 6.0.1.0 as well as TWRP (some of us are still pretty apprehensive abut TWRP at this point)). Either way, awesome -- and very helpful -- post!
[Nexus 7 General] TheRealCyberOptic:
I've been asked to describe how to fully recover (discard/trim) free space, so here it is:

this will take some time... but you can safely ignore the final message "write error: no space left on drive".

you might also do this for the different partitons (cache, system, ...), too - even for non-4.1.2 systems, as discard also works for ICS (just tried it with my Nexus Q - Android 4.0.4).
[Nexus 7 General] Jay Aristide:
Note to self: thank this post in a couple of hours when I have another thanks available.

Until then, ^5 man! That's good stuff :)

One thing, though.. I think discard only works if it's compiled in. I.e., I'm not sure you can simply remount /data with discard on stock kernels, as people have reported hard resets resulting from trying to.
[Nexus 7 General] immajew69:
So does anyone know if the lag from the slow i/o speeds is a hardware defect? If it is then I'm going to try to exchange my n7 for a new one. But if it can be fixed in an update or something, yknow, I can wait. I've done numerous factory resets and and the lag keeps coming back and I'm sick of dealing with it. Zram + no fsync definitely help, but it only covers up the lag a little.
[Nexus 7 General] hamdir:
I can confirm lag due to poor io when downloading apps, it's not launcher lag but switching between apps takes a long time to open, the one x has a vastly faster io and we don't have this issue
[Nexus 7 General] Harry GT-S5830:
Use a new kernel
[Nexus 7 General] larzy:
I deleted a whole bunch of apps and music and it was still lagging. However I worked out how to stop the lag...in developer options, select "Don't keep activities" and save..it never lags anymore however there is a few minor setbacks with using this...for example the browser doesn't remember tabs that were open when its reopened.

Please guys give it a try and see if it solves the problem for you.
[Nexus 7 General] Captpt:
You could do what I do with Facebook with my GS2, instead of using the app I just use a bookmarked shortcut to Facebook on my home page... The background stuff in Facebook is a battery killer on my GS2..

Sent from my GSII w/ICS SHOstock2
[Nexus 7 General] no6969el:
Yes I agree that that helps and I have been trying to spread that fix around to everyone. I even made a video of it the other day to show people where to go to disable it.

http://www.youtube.com/watch?v=WnJRYTKqnRc

It has so far sped up my system a good bit. I originally thought it was the Amazon app store but have since installed it again after disabling currents. The tablet still lags at times but it is much better.
[Nexus 7 General] larzy:
Holy Molly.... disabling currents background synch has worked... finally thanks guys !!!
[Nexus 7 General] 0Reefa:
Lag definitely appears when there's some kind of background sync happening..

Turned off Currents auto sync, Facebook now loads normally, with the lag it would take up to 10 seconds to load the news feed, pictures, profiles etc.

Initiated a manual sync in Feedr, tried Facebook again and it lagged. As soon as the sync completed, no more lag!
[Nexus 7 General] androidkid311:
So seems like syncing is causing the lag and not a hardware issue..??? Still waiting to get my second one lol. Had the money but then bought a road bike lol! Damn you tour due France!! Lol. A friend did say however when it almost hit the storage limit it lagged constantly. Anyone else getting this?
[Nexus 7 General] mmaestro:
I think it's a combination of things. As storage use increases, I/O decreases, and so the time taken to for background syncs to complete gets longer and so the lag is more apparent.
[Nexus 7 General] unremarked:
Yep, definitely. iOS doesn't experience any lag. Ever.

Oops: http://www.youtube.com/watch?v=k5Q4K3mrUNY

Whoops: http://www.youtube.com/watch?v=hU-aWoD1Wo4

Crap: http://www.youtube.com/watch?v=GPqXwerQZps&feature=player_detailpage#t=198s

Huh, that's weird: http://www.youtube.com/watch?v=aLIZTsy7wCs&

Photoshop!: http://www.youtube.com/watch?v=DQ-oGBcQ5h8

Just a few examples. I know that you can find many, many more of various different Android phones/tablets experiencing lag. I'm not trying to argue that Android is better than iOS, or that it is lag free. Only that I find it extremely amusing that people always talk about the "smooth"ness and "lag free"ness of iOS, when in fact it can be just as laggy. No device is perfect, and if you're searching for a perfect device, you're going to constantly be disappointed. My i7 Mac and i7 Windows PC both lagged from time to time too.

On topic: I don't experience any lag on my Nexus 7 with 2gb of storage space left. I am running LiquidSmooth Beta and faux123 kernel.
[Nexus 7 General] ausch30:
I was just thinking what a joke "Project Butter" was and came on here to see if anyone else felt the same. I love Android but I have to admit that this thing is just as jerky as any other device/version I've used (EVO 4G sense and CM, EVO 3D, EVO LTE, Transformer stock and Revolver, Epic 4G, GS3, Nexus 7).

I remember something a while back that a Google engineer wrote. It said something like Android will never be as smooth as iOS because of the way they were built. Basically Android was built from the start for multitasking, iOS was built from the start to run an app (key word being "an" ). When the user touches the screen all other processes stop, in Android the screen is just another process.

I will always love Android, guess we'll just have to accept that there's always going to be some lag inherent in the platform.

Edit: now that I'm reading through the thread there's a supposed difference, I have the "one with the bigger gb's" ;) I currently have 13.25GB free. This XDA premium app lags like crazy.

Edit #2: My apologies, it was a Google intern. I'm still starting to think he was right though

https://plus.google.com/100838276097451809262/posts/VDkV9XaJRGS
[Nexus 7 General] unremarked:
There's pet peeve number two. Wonderful, the XDA app lags. And the Facebook app lags too.

Neither of these are Google apps or system issues. These are third-party apps made by not Google. Saying that Android lags because a third party app lags is like saying all pizza sucks because you didn't like Pizza Hut.
[Nexus 7 General] Bigjim1488:
My galaxy nexus begs to differ about project butter!
[Nexus 7 General] Mungulz:
Tapatalk doesn't lag for me lol.
[Nexus 7 General] Jay Aristide:
This thread is becoming a reminder why I steer clear of XDA these days, and of the fact that some people will ***** and whine about anything. If you don't like your n7, return it and buy an iPad or a laptop. Don't cry here because your embedded device doesn't function as fluidly as your four thousand dollar computer.

/done with crybabies

/unsubbed
[Nexus 7 General] johnjohn25:
The main apps that lag for me are the google ones! Gmail, Gallery, and Chrome are the ones that always take about 10-20 seconds for anything to load.
[Nexus 7 General] bso44:
Use QuickPic instead of the stock Gallery.
[Nexus 7 General] mmaestro:
You know, it's not really loading time that's bothering me. It's the OS accepting touch inputs late or sometimes not at all. When mine is lagging, typing is all but impossible because the KB drops about 1/3 of the letters I hit. The KB flies when it's working right, I can enter a lot of text fast, but it's so rare for it to work flawlessly that that's barely worth mentioning. Most of the time I need to hit a letter and wait to see if it registers before I hit the next one. It's a painful experience.
[Nexus 7 General] androidkid311:
What you smoking?? I'm glad u unsubbed. Talking my opinion. People like you just cause problems on xda forums. And if u stayed clear why did u just write on this thread? Lol. Anyway good to see peoples own perspective of a device.
[Nexus 7 General] TheRealCyberOptic:
Just checked my other nexus 7 thats still on 4.1.1 - works there. no hard reset.

btw: it's most likely that your device will not respond to your input - just let it sit around, do not reset or force anything. it will just take take some time to get the flash filled. if it's done your device will be responsive again.
[Nexus 7 General] styckx:
You win the internet with this! Sure as hell beats dumping mp3s and movies to try and fill it up.
[Nexus 7 General] klownkillah:
is root required?

Does this require root? I think it does....
[Nexus 7 General] TheRealCyberOptic:
it does require root if

you are not running 4.1.2

want to do other partitions than /data (or /cache? can't check right now, just having all devices in progress)

if you're unrooted you can omit the remount and just create the zero-file with the dd-command for the /data partition.
[Nexus 7 General] styckx:
What's strange is I did this on CM10 101012 nightly which has 4.1.2 merged in and it just locks up the device completely and never completes (I gave it 30 minutes)

On the other hand I restored my stock rooted 4.1.2 nandroid and this command is working as it should. My device isn't locked up and I'm watching my empty space progress away on a widget at a rate of about a gig a minute which is about right.
[Nexus 7 General] TheRealCyberOptic:
1GB/min is quite good - just checked my Q and got 1GB/hour! ;) My N7 sits there since 2 hours ago almost freezed (however statusbar works) - it is likely have to do with background apps running and trying to get some IOs to the flash.

I'll try with ionice - then the system shouldn't freeze anymore.

edit:

btw of course the scheduler has also a big impact on when it's going to freeze or not
[Nexus 7 General] Keanen:
I have loaded the new update and my Nexus 7 is leaps and bounds faster than it was before. This is what I expected from the beginning and am happy to be able to use my tablet now.
[Nexus 7 General] badsubby:
im a noob but have adb and everything setup. Where do I put this command since I dont want to reset because of google music device activation limit. Any help would be greatly appreciated since my benchmarks are abysmal. Thank you.
[Nexus 7 General] TheRealCyberOptic:
you connect with "adb shell" obtain superuser with the command "su" and then proceed as stated.

edit: if you have no root but updated to 4.1.2, then skip the "su" and "mount" commands.
[Nexus 7 General] badsubby:
Could I do it the noob way and fill it up all the way and then delete? Would that have the same effect on I/O speeds, etc?
[Nexus 7 General] TheRealCyberOptic:
yes, i can confirm that.
[Nexus 7 General] styckx:
First pass on stock 4.1.2 rooted went well. Now to boot back to CM10 and figure out why this isn't working on it.

/data/deleteme: write error: No space left on device

158259009+0 records in

158259008+0 records out

10128576512 bytes transferred in 2400.393 secs (4219549 bytes/sec)

shell@android:/ #

Ok, it was a little slower than a gig/m :)
[Nexus 7 General] badsubby:
I appreciate it. From the previous few pages I still dont why we have to fill it up. Some people got that by just getting the update. Can you please enlighten me just a bit as to how it'll make the I/O speeds faster? Thank you again.
[Nexus 7 General] TheRealCyberOptic:
It is just a batch trim to release empty space addresses in the eMMC controller space map.
[Nexus 7 General] jmdearras:
Does this delete active data?
[Nexus 7 General] badsubby:
Sorry last question :) And this whole trim thing is the root cause of slow I/O from the get go and now we have to "release" that by filling and deleting, correct? I'm sorry but I'm such a noob. I can follow directions for flashing updates and stuff but this is advanced :)
[Nexus 7 General] TheRealCyberOptic:
No, it dos not tamper your data.
[Nexus 7 General] styckx:
It's really unnecessary for anyone to actually do.. If you're worried about speed just use your device as normal.
[Nexus 7 General] TheRealCyberOptic:
No, TRIM is good - it seems that the built in memory dos not support auto-trim and thus must be done by the software which was enabled by the update.
[Nexus 7 General] Jay Aristide:
What he said. You don't really *need* to do this, unless you want a taste of instant gratification :D I'm still baffled as to why it works on 4.1 and 4.1.1.. it really shouldn't unless you're running custom stuff with discard enabled.... *shrug* if it works it works. So glad to see this thread finally profiting from true resolution!! it's been a hell of an 80 pages, heh
[Nexus 7 General] badsubby:
My device is still bad even after the update. So my understanding was that doing this would speed it up like other people have reported. Fingers crossed, lets see.
[Nexus 7 General] TheRealCyberOptic:
That is what the remount is for ;)
[Nexus 7 General] styckx:
Ok I got it to work on Cyanogenmod w/ the 4.1.2 merged in.

The remounting was causing it to lock up. Skipping that and just creating the dummy file works..
[Nexus 7 General] dmalovic:
Could you please write the procedure for trim of a stock 4.1.2 N7. I have ADB running, and I side loaded the latest update. What partitions can we trim? Thanks for the newbie help
[Nexus 7 General] TheRealCyberOptic:
I think you would benefit most by trimming data and cache. You only need to do the dd-command trough the adb shell for stock 4.1.2. Remount is only necessary for older versions.
[Nexus 7 General] badsubby:
After copying files to the maximum storage limit and deleting them. I've noticed increased I/O speeds (which I translate to everything being faster) and overall system performance. I got my fingers crossed that it remains that way. here is a screenshot.

Coming from THIS even after the 4.1.2 update.
[Nexus 7 General] dmalovic:
I know it's hard to believe my ignorance, but I was asking about the exact syntax of the dd command. I don't know if dd is an argument of the trim command, or a standalone command. And how does one specify the partition? If it's not too much trouble, could you please write the full command line we need to type in.

Thank you for your patience with ignorant newbies ;)

Domi
[Nexus 7 General] TheRealCyberOptic:
No problem.

Go here: http://xdaforums.com/showthread.php?p=32632095

Or here: http://www.it-psycho.de
[Nexus 7 General] styckx:
dd is an actual command. :) Just paste what he wrote on the command line.. For a matter of reference for the Nexus 7. If you have 10GB free this should take roughly 40-45 minutes to fill it up and then delete the dummy file.
[Nexus 7 General] ram130:
Wish there was a app for this fill up file.
[Nexus 7 General] klownkillah:
permission denied

I am unrooted using stock 4.1.2 and only trying this on /data - so the operation not permitted on the remount is expected:

1|shell@android:/ $ mount -o remount,rw,discard /data

mount -o remount,rw,discard /data

mount: Operation not permitted

However, it seems like there is a permission issue for me in accessing /data at all - i am unable to create the /data/deleteme file:

1|shell@android:/ $ dd if=/dev/zero of=/data/deleteme bs=64k ; rm /data/deleteme

teme bs=64k ; rm /data/deleteme <

/data/deleteme: cannot open for write: Permission denied

rm failed for /data/deleteme, No such file or directory

nor even do a directory listing (ls) of the /data directory:

255|shell@android:/ $ ls /data

ls /data

opendir failed, Permission denied

1|shell@android:/ $

---------- Post added at 04:03 PM ---------- Previous post was at 03:54 PM ----------

would doing this to the sdcard be helpful - perhaps using the following command:

shell@android:/ $ dd if=/dev/zero of=/storage/sdcard0/deleteme bs=64k ; rm /storage/sdcard0/deleteme
[Nexus 7 General] styckx:
I'm not so sure this is completely fixed.. On CM10 (the new nightly w/ 4.1.2 merged) my write speeds were all over the place. Random Write Speeds never reached triple digits. Usually averaging 40 IOPS. Went back to my stock 4.1.2. Nandroid.. Same deal.. All over the place results after filling up empty space and then regaining it..

So.. I just grabbed the fresh factory image.. Cleared my entire `SDCard' did a fastboot -w update of the factory images and re-ran the tests..

Five tests in a row.. Identical results. Random Write Speeds always triple digits averaging 126 IOPS. Evreything was consistent and fast.

Dumped my 350mb TB folder on the device and restore 64 apps.. Re-Ran test.. Again.. Nearly identical to the virgin tests.

I am in the process of filling the card back up again to see if it goes back to sporadically slow benchmark results.
[Nexus 7 General] Metallice:
So the new kernel source was just recently released, which reveals a lot of information about the issue.

First change:

mmc: set emmc vcore voltage to 3.0V

per EE's request, set eMMC core voltage to 3.0V.

*Shrug* I'm not sure what this does. From my very limited knowledge it seems like it maybe manually sets the voltage to 3.0V if the regulator fails to or vice-versa? I dunno. May be related to low I/O.

Second change:

mmc: core: new discard feature support at Samsung eMMC v4.41+.

Support discard feature if MID field in the CID register is 0x15, EXT.CSD[192]
(device version) is 5 and Bit 0 in the EXT.CSD[64] is 1. Also removed REQ_SECURE flag
check to avoid kernel hang.

This patch is released from samsung.

Here's the big one. Here's why the discard option caused hard lock ups for me and others who tried this on 4.1.1. Discard option didn't work on Samsung EMMC chips, which coincidentally, were the chips that were having the performance issues with low free space.

So that script or whatever someone posted to remount data with discard and to trigger discard? Yeah it doesn't look like it will actually do anything without a 4.1.2 kernel (unless your unaffected by the issue with a Hynix or Kingston chip instead of the Samsungs. In that case, adding discard will actually DECREASE performance based on the next change below)

Third Change:

mmc: card: Bypass discard for Hynix and Kingston

In order to change mount option,
issuing discard request by chip to eliminate performance drop.

This causes this discard mount option to do nothing on Hynix and Kingston chips. The Kingston one is used for the 8GB chip and I would guess the Hynix is a 16GB chip that isn't as common than the Samsung chip, which explains why there were a few odd cases of people without this issue. It looks like there's a hardware issue with Samsung EMMC storage chips and the discard option is needed to prevent this problem from causing performance degradation. Using discard on the other chips interestingly enough causes performance to decrease.

(Side note: I very much doubt CM10 nightlies are using the new kernel source already. Probably 4.1.2 ROM with 4.1.1 kernel and ramdisk.)