yashsingh1/xdaforums huggingface dataset:
[Windows 8 General] Talderon:
Scenario:

I have a friend with a Windows 7 Ultimate running Media Center. He has his Windows 8 Media Center key for his copy of Windows 8 Pro.

He wants to upgrade but is not sure what will happen with Media Center when the initial Windows 8 version does not have Media Center.

Will he have to reset all of this stuff or when he applies the Media Center key, everything will appear as expected?

I am trying to help him out with info, but it's not easy to find, apparently. Has anyone done this yet? What kinds of issues did you face? Did it go smoothly or was it a nightmare?

Thanks!
[Sony Xperia P, U, Sola, Go] palahjunkie:
I'm pretty interested in customizing my own ROM, I'm Actually using TheSlim but I'd like to be able to do my own version with my own wall papers and ADW launche, I might do this at first only for me but I'm willing to learn to build better ROMs for everyone, I'm interested primarly cause I have a Telcel branded Xperia U which is not unlockable and I previously owned a Motorola Defy+ and I loved the community and all the ROMs they had so I decided to start learning by cooking (?) already made ROMs only I need a little advice or tutorial on what things can be made and what can be removed, the scripts and fixses I can search all that myself.

Thanks in regards.
[Sony Xperia P, U, Sola, Go] fareed_xtreme:
Dude, This is the wrong Section. You should've asked this in the Q&A instead...

Please read the Forum Rules (Pinned Second Post in this Development Section)

Anyways Thanks a lot for your interest in Development. Hope you have a good learning journey...
[Sony Xperia P, U, Sola, Go] pinsicchio:
I am interested too, do you have some links that introduce the topic?
[Sony Xperia P, U, Sola, Go] nickholtus:
Maybe look here: http://www.xperiaplanet.nl/index.html

and then by guides
[Sony Xperia P, U, Sola, Go] palahjunkie:
Thanks for the move and also for the page, Ill start there.
[Samsung Galaxy Nexus] kizakiyuria:
i'm wondering too

:D
[Samsung Galaxy Nexus] peachpuff:
My sequential write is down to 2.27mb/sec :eek:
[Samsung Galaxy Nexus] Sdobron:
Never reset my phone to stock and my numbers are all much better than yours. Using Faux kernel with FIOPS scheduler
[Samsung Galaxy Nexus] Soldier-2Point0:
Looks like someone has been changing ROMs without doing a factory reset...
[Samsung Galaxy Nexus] chrone:
Yeah, i never thought this would happen. Hehe

Whoa, did you frequent use your storage with lots of small and big file sizes?

I guess you do a lot of write-delete-write cycle like me. I get new hobby to watch 720p movies and hdtv series on this gnex, and total Bit written in my storage were over 16GB, hence the flash memory or nand's write amplication occured and slowed down both sequential and random write speed.

Now that is awesome! Stock kernel didn't have this tweak on storage performance. hope they will add this feature on next build.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] BrianDigital:
I would point to how much free space is left rather than that wiping everytime a rom is changed....

---------- Post added at 05:28 AM ---------- Previous post was at 05:26 AM ----------

Is fsync turned off in faux?
[Samsung Galaxy Nexus] chrone:
Is fsync enabled by default on stock kernel? That explains the slow performance on write but with safer data. :)

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] GldRush98:
Disregard
[Samsung Galaxy Nexus] Smokeey:
There is absolutely no point at all in doing this. The increase is so small that its just a waste of time.
[Samsung Galaxy Nexus] BrianDigital:
Yes it is enabled in stock setups, turning it off just leaves the stuff in ram it also tricks benchmarking tests with inaccurate data since its not doing the writing

To the op my stock gnex has results more akin to the after trim results how much storage do you have free
[Samsung Galaxy Nexus] chrone:
thanks for the heads up. unfortunately a lot of nexus 7 users report slow performance once their sdcard was fulled with data and the regression was pretty much down to below 1Mbps for sequential write. take a look the bugs reported on android open source project.

same as the above.

oh okay, nice to know that. :)

the available storage left around 3-5gb i guess?

forgot to check when it's down to 5Mbps sequential write. i watched supernatural season 1 to season 6 using gnex before reset to factory image, and the total amount of the serial was more less 42Gb, thus frequent copy-watch-delete thing. :D

care to vote for bug fix on android open source project as follows? more than 200 people voted this bug to be fix or this feature to be implemented. hope google will listen.

the bug report link, to vote on this following link, click the star button below add comment section at bottom of adroind open source project but report page:

https://code.google.com/p/android/issues/detail?id=37258
[Samsung Galaxy Nexus] markop90:
Same issue here... If my free space goes below 3gb the phone begins to slow down horribly... Until I factory-reset it....

Random writes <0.50 mb/s on androbench
[Samsung Galaxy Nexus] Sdobron:
I'm pretty sure I recall reading it's off but I'm not 100% sure...
[Samsung Galaxy Nexus] zero_x3:
I usually have about 1 or 2 movies (~700MB or ~1.6GB) on my phone at a time and never had any problems. One day, I felt ambitious to watch a few movies and pretty much got my GNex to under 3GB. Since then, it hasn't been the same.

What I have

GSM Galaxy Nexus

yakjuxw

4.1.1 stock

Unlocked and Rooted

Baseband version I9250XXLF1

Kernel Version 3.0.31-g6fb96c9

Build Number JRO03C.I9250XWLH2

What I've tried

Clearing up movies, camera pictures/videos

Uninstalling recent apps

Clearing app/browser caches

AndroBench Results with 8.14GB available

Sequential Read = 1.97 MB/s

Sequential Write = 0.14 MB/s

Random Read = 0.39 MB/s, 101.47 IOPS(4K)

Random Write = 0.0 MB/s, 1.76 IOPS(4K)

EDIT: Converted from Yakjuxw to yakju using this and now running stock 4.1.2. Now my AndroBench is

26.93 MB/s

12.21 MB/s

8.98 MB/s

0.52 MB/s
[Samsung Galaxy Nexus] chrone:
same boat here. reset to factory image does format the sdcard and the performance is back to normal again. i hope they do fix this on next build to trigger a command something like TRIM on SSD without having the need to reset to factory image periodically. please vote at the bottom page of page one for Android dev to hear us out regarding this problem. this happens on Nexus 7 as well. :)
[Samsung Galaxy Nexus] ph4zrd:
Mounting the relevant partitions with ext4's discard option (as I suggested on code.google.com/p/android/issues/detail?id=39154) seems to fix the problem. You may then fill the filesystem with zeros using dd and simply delete the created file afterwards.
[Samsung Galaxy Nexus] alangrig:
How do you guys regard these results?:
[Samsung Galaxy Nexus] markop90:
I had this problem, and remounting data and cache with discard option on every boot solved this.
[Samsung Galaxy Nexus] chrone:
It's normal. :D

When your sequential write speed is way below 7MBps then something is not right. The random write will be affected too.

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] Jar3112:
Here it is.

First, i ran the app, as you will see in the log.

The, i ran the script from the sdcard, and in the screenshot you'll see the output in terminal emulator, output that seems not to be present in the logcat.

I'm a little confused...

EDIT: NOW I'm really confused!

In the log I posted the isn't a sign of the activity of lagfix app. I'm posting another one, named lagfixapp.txt, with it (this one i copy/pasted from terminal on my computer, don't know why the "logcat -d > log.txt" command didn't copy the whole activity.

Looking at the logcat while running the script, even though terminal emulator showed it as executed, I couldn't see any trace of it.
[Samsung Galaxy Nexus] backfromthestorm:
Follow my last post and youll be done in 2 minutes.
[Samsung Galaxy Nexus] Jar3112:
R: Nexus Storage Performance Over Time & TRIM

In fact that's what I've done. Even with the script I was running before I had an identical output, but I didn't see an effect in androbench test, unlike the lagfix app, which gave a noticeable effect.

Well, I'll give a last try then I'm gonna give up and just use the app.. thank you all for your help anyway!

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] backfromthestorm:
Just flash this to install init.d support for fstrim on boot. It`ll install everything needed and set permissions.

Itll run fstrim on data and cache on each boot.

https://www.dropbox.com/s/rcgwd1xe7olu2ys/fstrim-init.d.zip
[Samsung Galaxy Nexus] Jar3112:
R: Nexus Storage Performance Over Time & TRIM

Wow! Thank you man! :D

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] backfromthestorm:
Heres the ultimate edition lol.

Run fstrim on boot automaticaly with backfromthestorms init.d zip.

https://www.dropbox.com/s/rcgwd1xe7olu2ys/fstrim-init.d.zip

Flash this new one, then after every boot you can check its worked by looking in data/local/log.txt!

No apps, no constant flashing, flash it once, job done.
[Samsung Galaxy Nexus] Jar3112:
R: Nexus Storage Performance Over Time & TRIM

You, Sir, made my day!

This log clears every remaining doubt!!

Sent from my Galaxy Nexus
[Samsung Galaxy Nexus] backfromthestorm:
Your welcome. Nice and simple hey. Fstrim on boot, job done.
[Samsung Galaxy Nexus] chrone:
first post updated with links to the ultimate edition from your dropbox and i attached it too just for backup. hope this is okay. :good:
[Samsung Galaxy Nexus] carberoz:
hi..

does lagfix fix the problem permanently?

or this problem will be back? if the problem will be back, how long the problem will back since we use lagfix?

one more question..

is this perfomance issue hardware of software issue? thanks :)
[Samsung Galaxy Nexus] chrone:
it's not permanent since this is the way nand chipset -flash drive, solid state drive, emmc, and so on- limitation.

once you do the write-delete cycle and it fills up your storage than the slow down occurs.

the slow down may vary between emmc version and the type of nand chipset it has.

i use lagfix (fstrim) premium app and schedule it to run each midnight since i often write new movie or tv series each day and delete them once it has been watched.

to achieve consistent performance you need to left 25% of your storage available for the over provisioning to kick in.

i believe recent emmc version 4.41 above has dynamic wear levelling and with trim function it will prolong the nand lifespan and also brings back performance if there are enough free space to use with.

this is a hardware issue and there's no solution to improve this thing other than using trim command or secure erase (software solution).

on ssd with sandforce firmware, trim cannot restore the performance back to normal as in clean slate, but performing secure erase does.

do note that ssd has advanced built-in controller to do wear levelling, over provisioning, garbage collection, and reduce write amplication compared to simple or no controller at all on emmc and flash drive, though they use the same nand technology to store data.
[Samsung Galaxy Nexus] chrone:
Re: Nexus Storage Performance Over Time & TRIM

Hello backfromthestom, does this script needs to be run on rom with init.d support?

Just tested on stock rom and seemed it didn't work. No init.d on /system/etc and also no log.txt on /data/local.

I might be missing something though. :)

Oh yeah, how to uninstall it? I deleted fstrim on /system/bin just now.

Sent from my Nexus 4
[Samsung Galaxy Nexus] backfromthestorm:
The init.d script needs a Rom with init.d support of course.

If your rooted there's an easy way of adding init.d if you don't have it already, with one file, pm me if you need it. Or just flash a kernel with init.d support.

Or you can flash one of the other two zips, they run fstrim from recovery manually.

I prefer using the init.d zip, that way whenever I reboot, it's trimmed automatically, can forget about it that way.

http://db.tt/pBBkjL2p
[Samsung Galaxy Nexus] chrone:
Re: Nexus Storage Performance Over Time & TRIM

Aha, that's why it didn't work back then. Haha. Thanks, dude! :)

Sent from my Nexus 4
[Samsung Galaxy Nexus] wkwkwk:
Any idea if there's a kernel with trim/discard option in dm-crypt?

The default one in CM10 (and CM10.1) doesn't have it and neither the Franco one.

Performance on an encrypted device is really poor, even with the device empty (I'm assuming the encryption process is filling up everything).

Thanks.
[Samsung Galaxy Nexus] chrone:
am afraid there's still no news. encrypted device without its dedicated encoder-decoder chipset to process all the encryption will surely brings down the input output throughput which uses cpu power to do the encryption and could translates to the slower performance.

never tried encryption on gnex and n4 though so could not tell how slow it is.
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

Thank you very much for this! I knew there had to be a way to make a script for this and had been looking for a while now. Not sure if I downloaded an older zip but in the script I had to change the second fstrim command from data to /data and I added the /system partition as well. Works great and thanks again!
[Samsung Galaxy Nexus] chrone:
awesome! care to share the script with us for nexus users?

i believe backfromthestorm is using htc one x. :)
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

Credit goes to backfromthestorm, all I did was a simple fix and added system partition. Should work on any android with init.d support. Backfromthestorm mentioned he also had a zip to add init.d support for ROMs/kernels that do not have it.

https://www.box.com/shared/5q4q4p4qmwzguf4gu8we
[Samsung Galaxy Nexus] chrone:
thanks dude, i've reached my thanks limit today, no worries will send you one later though. hehehe

i'll give your script a try later and report back. am now using motley kernel which support init.d, yay! :good:
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

Looking forward to the feedback, as was mentioned earlier in the thread, it also creates a log file in /data/local/log.txt you can check to see if it installed and ran upon rebooting and it clears the log each boot.

Edit:

Never heard of motley kernel. I'm running project elite from droidforums and this thing flies, with project elite kernel.
[Samsung Galaxy Nexus] chrone:
Re: Nexus Storage Performance Over Time & TRIM

It works! :thumbup:

566095872 Bytes was trimmed

2606108672 Bytes was trimmed

317743104 Bytes was trimmed

How to change the log name to fstrim.log?

I tried changing but failed to flash it. Scripting newbie here. Hehe

Sent from my Nexus 4
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

Glad to hear! Just use a root file manager and go to /system/etc/init.d/ and edit the 99fstrim file. There will be a line that reads "LOG_FILE=/data/local/log.txt" just change the log.txt to anything you would like to name it. Now to start learning some busybox/Linux commands FTW! Lol

Edit:

If you wanted to make the change into the zip you have to extract it and make that same change then rezip. ;)
[Samsung Galaxy Nexus] chrone:
oh ok, i did rezip the file after editing with notepad+ but then change the zip package name and failed when flashing. haha

will try again later if got free time. :)
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

Here u go!

https://www.box.com/shared/l5afni1mxe1wpb2ubw3s
[Samsung Galaxy Nexus] chrone:
Re: Nexus Storage Performance Over Time & TRIM

Thanks dude, i have already changed it via es file explorer. Haha :D

Sent from my Nexus 4
[Samsung Galaxy Nexus] v36sedan:
Re: Nexus Storage Performance Over Time & TRIM

Is this needed or can it be used on a vzw gnex?
[Samsung Galaxy Nexus] chrone:
Re: Nexus Storage Performance Over Time & TRIM

No need if you feel like your storage performance is up to the test. :)

Sent from my Nexus 4
[Samsung Galaxy Nexus] alifath1234:
it worked very well

first of all you should know that you saved my life buddy. thanks...

my phone is galaxy nexus running android 4.2.2

BASEBAND VERSION: I9250XXLH1

KERNEL VERSION: 3.0.31-G9F818de

Build number: Android Revolution HD 10.0 GSM by mike 1986

i used first recommend: use AuxLV's LagFix (fstrim) app from Google Play weekly. (highly recommended)

and here are the results by screen shots

and for your knowledge the trimming part took only 2 second, the devices memory is 16gb and 4.5gb was free during tests.

before trimming:

after trimming:

i hade this issue on my previous phone( nexus s ).

finally all those nightmares are done...
[Samsung Galaxy Nexus] chrone:
whoa nice speed bump there on write speed. awesome! :)
[Samsung Galaxy Nexus] carlo67:
hi

i have the p6800

do anyone recommendations to try lagfix with p6800? [Fstrimmer_data_CWM.zip and flash it in recovery]?

I have the pa2.55

anyone tried it?
[Samsung Galaxy Nexus] chrone:
Re: Nexus Storage Performance Over Time & TRIM

What is p6800? I guess you're asking in the wrong thread. Try to go to lagfix's thread and ask there. Hehe :)

I don't whether fstrim your emmc chip will be good for your device, there's a know bug in samsung emmc that it might brick your device. So do it with your own risk.

When i'm back on PC, i'll take a look at p6800 device.

Sent from my Nexus 4
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

Thanks for bringing up that point. Here is a play store app that will check for the emmc brick bug.

https://play.google.com/store/apps/details?id=net.vinagre.android.emmc_check
[Samsung Galaxy Nexus] carlo67:
http://xdaforums.com/showthread.php?t=2171233

I have the pa2.55 now but it doesn't work. someone else told me about Fstrimmer_data_CWM.zip and flash it in recovery
[Samsung Galaxy Nexus] chrone:
the fstrim data cwm flashable is posted on the first post of this thread as attachment.

here's the link: http://xdaforums.com/attachment.php?attachmentid=1669116&d=1358930777

do note that we here do not take responsibility if you brick your device by doing this. it's know issue fstrimming/secure erasing might brick your phone/table for certain samsung emmc chipset.
[Samsung Galaxy Nexus] carlo67:
if I if I get eMMC Brickbug Check and if I am good. I can do it?
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

I would say it should be safe. You can look in the app details or Google for more info.
[Samsung Galaxy Nexus] carlo67:
it won't let me to install the eMMC Brickbug Check on pa2.55
[Samsung Galaxy Nexus] JPBeard21:
Re: Nexus Storage Performance Over Time & TRIM

Isn't pa up to 3.1 these days? Might be time for an update. Or nandroid and run stock for the check and revert. There may be other methods to check for the bug.
[Samsung Galaxy Nexus] chrone:
there's also other way to try this fstrim if you are rooted:

download the attached fstrim, extract and copy the fstrim binary to /system/bin using root explorer

change the fstrim permission to be readable and executable for user/group/public from android terminal emulator:

su
chmod 755 /system/bin/fstrim
fstrim -v /cache
fstrim -v /data

profit
[Samsung Galaxy Nexus] Alex-V:
thx the init.d script version works beatifull on my one x (we have the same problems)
[Samsung Galaxy Nexus] chrone:
Re: Nexus Storage Performance Over Time & TRIM

Glad it helps you out, dude. :)

Sent from my Nexus 4
[Samsung Galaxy Nexus] Jimjams:
I am using both "-o discard" and lagfix app, is it ok to go this way??

Before being forced to reset the phone, root it and install init.d support and "-o discard" mount command, I was using a stock, not rooted rom, with encryption on... To me every one should use an encrypted phone, and now, while the phone is fast again and finally usable, I am not confortable using it without encryption....

Any hope to have a fix for the encrypted phone ??????
[Samsung Galaxy Nexus] chrone:
I guess it's up for the kernel and file system developers. Hehe

Sent from my Nexus 4
[Samsung Galaxy Nexus] geoffcorey:
TRIM + encryption do not go together for safety reasons (you can trace back what is data and what isn't through trimmed deleted blocks).

Now, I know luks encryption + ext4 has discard support on normal desktop Linux kernel, but I'm not sure since which version. However, it is *HIGHLY* discouraged for security reasons.
[Samsung Galaxy Nexus] hhwong:
is this normal? Sorry noob here......
[Samsung Galaxy Nexus] chrone:
i believe you're using custom kernel with either dynamic fsync enabled or fsync off. that explains the high write throughput on your screenshots. so yeah it's normal having that numbers on custom kernel. no need to trim since all the writings are done on RAM and written to emmc later on. :)
[Samsung Galaxy Nexus] hhwong:
yeah, cm10.1 with franco, fsync disabled.

does fsync really make THAT much of a difference? I saw the first page numbers they are literally 20 times slower on writing.

At first i thought i read the unit wrong lol.....
[Samsung Galaxy Nexus] chrone:
The write throughput on emmc is pretty slow. Perhaps due to lack of dual/quad band channel on the nand side. Newer hardware has faster write throughput. As on Nexus 4 matches class 10 flash drive write performance. Hehe

Sent from my Nexus 4
[Samsung Galaxy Nexus] hhwong:
damn thats nice, i was still debating if i should upgrade my phone, i think i am just gonna wait for the next nexus instead of getting it now.

EDIT: I just did a benchmark with same setting except fsync off, i am getting about 10mb/s on SW and about 0.5RW. god damn.....fsync is a huge difference!
[Samsung Galaxy Nexus] chrone:
System really writes to emmc when fsync is enabled thus explains the slow write throughput but it's there for a reason. You might experience loosing data or perhaps breaking your system down when using fsync off and suddenly the system crashes or so.

Sent from my Nexus 4
[Samsung Galaxy Nexus] hhwong:
Eh, so far system hasnt crashed a single time yet :D I only OC slightly to 1.3ghz so the risk of hanging is very slim anyways.

So, beside the system file integrity, is there any other reason why should I enable fsync?
[Samsung Galaxy Nexus] chrone:
i guess data corruption -and the headache which follows because of data lost or troubleshooting the soft bricked phone if you don't know how to return to phone its original state- is the only possible negative effect of running fsync disabled. :p
[Samsung Galaxy Nexus] RoadToNever:
Can't the trim command run automatically like on PCs?
[Samsung Galaxy Nexus] chrone:
it can if you're using custom rom which supports init.d, or stock rom with custom kernel which supports init.d. or using a scriipt manager app like ph4zard suggested back then. or purchased the lagfix premium app from gplay. :)
[Samsung Galaxy Nexus] borzowsky:
i have been using the lagfix app, and the init script that trim every time i reboot the phone, but compared to when i format and install a new rom, it's always laggy.

What can I do?

is there a solution?

If i send it to Samsung maintenance, are they gonna repair it and change the internal memory?

Thanks!!!
[Samsung Galaxy Nexus] chrone:
I don't know what to reply since never have experienced the terrible slow down issue on gnex and n4, but some colleagues of mine experiencing same issues as yours.

Are you using stock rom and kernel, or custom rom and kernel with discard mount option? Discard option does slow down the write performance when writing and or deleting data.

And do you keep 25% available storage for garbage collection?

I don't know whether samsung will replace the nand since it's soldered to the printed circuit board aka. pcb, thus replacing the emmc would be difficult or perhaps replacing the entire pcb.

Last but not least, what kind of lag are you experiencing? Lots of factors may produce lags. Care to do androbench when it is laggy? If androbench score produces normal result when the slow down appears, perhaps the culprit is not from emmc related.

Sent from my Nexus 4
[Samsung Galaxy Nexus] user4242:
pls help!!!