Flash

JavaScript

Javascript



Related articles by Zemanta

Marcadores: , , , ,



# 11/08/2009 03:44:00 AM, Comentários, Links para esta postagem,

FAT16, FAT32, NTFS, exFAT - USB Micro SD Flash Drives

If you're reading/writing a single file, NTFS seems to win hands down. But in real life situations where multiple files being read and write, then it's another story, NTFS was more than half a minute slower when writing just 50 MB of multiple files and directories. For some reason, the reading times from Disk Bench seem to be pretty much the same between the file systems, I'm not sure if they're accurate, but many other test results on the Internet (e.g. Irongeek.com, AnandTech.com) have shown that FAT16 to be the quickest as well, although the difference becomes less significant for bigger files. If you have done some tests with your UFD, please feel free to post them. Flash drive fragmentation can have a serious impact on flash drive performance, especially during write operations, which can take several milliseconds per data block. It might not be so important for a USB drive that is used to transfer a couple of files from one computer to the next, but if an SSD is used as a hard disk replacement, it can certainly be relevant. A standard hard disk defragmentation tool might not be the ideal tool to defragment a flash drive, since it is not aware of the allocation block size inside the flash drive. This may slow down the defragmentation procedure.








FAT16, FAT32, NTFS, or exFAT on USB Flash Drives?



If you don't feel like reading this boring guide and your thumb drive or partition is 2 GB* or smaller, then stick with the default FAT16 for best performance and cross-platform compatibility. There is a reason why most UFDs in these sizes, including my 4 GB stick, come pre-formatted with FAT16.
*Windows NT 4.0, 2000, XP, and Vista can support FAT16 up to 4 GB using 64K cluster size. However, it may create compatibility issues with some applications. But for storage purposes, it shouldn't cause any problems.



Question:
I just bought a USB thumb drive, which format should I use?

This question has been asked many times on NBR, many people are not sure about which one to use or suits their needs. In this guide, I will help you to understand the benefits and drawbacks for each of them.
Tools used for this guide:
FAT16 (a.k.a. FAT)
Pros:
Cons:
FAT32
Pros:
Cons:
NTFS
Pros:
Cons:
exFAT (a.k.a. FAT64)
Pros:
Cons:
Some test results with Nodesoft Disk Bench
Multiple tests were done for better accuracy, they were all done with the default allocation size, optimize for performance enabled, and antivirus disabled.

1 MB file | Read (MB/s) | Write (MB/s)
FAT16 - 32.393 - 2.063
FAT32 - 32.393 - 1.339
NTFS - 32.393 - 2.797
exFAT - 32.393 - 1.464
10 MB file | Read (MB/s) | Write (MB/s)
FAT16 - 129.334 - 4.645
FAT32 - 129.334 - 3.943
NTFS - 129.334 - 29.326
exFAT - 129.334 - 4.703
100 MB file | Read (MB/s) | Write (MB/s)
FAT16 - 306.212 - 5.106
FAT32 - 306.212 - 5.065
NTFS - 321.915 - 4.952
exFAT - 379.010 - 5.188
Writing 50 MB of 712 files and 95 folders
FAT16 - 1 min 12 sec
FAT32 - 1 min 19 sec
NTFS - 1 min 50 sec
exFAT - 1 min 55 sec

Conclusions
If you're reading/writing a single file, NTFS seems to win hands down. But in real life situations where multiple files being read and write, then it's another story, NTFS was more than half a minute slower when writing just 50 MB of multiple files and directories. For some reason, the reading times from Disk Bench seem to be pretty much the same between the file systems, I'm not sure if they're accurate, but many other test results on the Internet (e.g. Irongeek.com, AnandTech.com) have shown that FAT16 to be the quickest as well, although the difference becomes less significant for bigger files. If you have done some tests with your UFD, please feel free to post them.




Flash drive fragmentation and performance




Is it necessary to defragment flash storage devices, such as a USB flash drives, SD cards, and newer SSD hard-disk replacements? Does it get faster if you do? There are arguments for and against defragmenting. On hard disk media, reading or writing fragmented files involves the overhead of the read heads having to jump from one place on the platter to the other, which can take as much as 8 milliseconds on a typical hard disk drive. However, hard disks are very fast when it comes to reading sequential data, which is on the order of 100 MB per second on a 3.5 inch consumer-grade hard disk. Obviously, allocating file data sequentially on a hard disk will save time on accessing the file.




Since a flash drive does not have moving parts, its access time is independent on where the data is stored, which is why supposedly flash drives don't need defragmenting. A quick Google search gives us plenty of pages where people suggest that there should be no difference in performance, while defragmentation only increases wear of the flash drive since flash memory can be rewritten only about 10 to 100 thousand times. Wear is usually not a big issue since most flash drives will use wear leveling to spread out the write operations, though. I found two pages where some empirical data is discussed, rather than theoretical considerations. One suggests that there is a small difference, which can be due to a flash device that contains both slow and fast flash memory, and due to I/O operations being needed for accessing non-contiguous data. [Yegulalp 2006] Another web page claims that there is a clear difference upon writing fragmented files. [Diskeeper 2007].

What these sources do not seem to realize is that reading flash memory can be done by random access, or on a sector (or page) level (512 to 2048 bytes at a time), but writing is done in much larger blocks of 16 to 256 kilobytes.[Wikipedia 2008]. Writing a single 512-byte sector of data can involve reading a full 128 kB block, erasing it, and then rewriting the original data with only 512 bytes changed.
I did a test on a Kingston 512 MB SD-card I bought in 2006 for my digital camera and tested it from a computer with SD card reader, running Linux. I created a highly fragmented file by reformatting the flash card (in FAT-32 format, 4 kB cluster size), and then sequentially writing thousands of files with sizes of 124 and 4 kB, interleaved, until the drive was full. Then I deleted all the small 4 kB files and replaced them by a single 15 MB file, that was spread out over about 4000 little fragments. I measured the time it took to write all this data, carefully flushing the disk cache every time with a sync command. Here are the results:
Description
Data size
Time
Transfer speed
Initial write
486 MB
291 s
1.67 MB/s
Fragmented write
15.2 MB
492.6 s
0.031 MB/s
That's pretty shocking: a factor 50 decrease in speed due to fragmentation! Apparently, a single write operation takes up to 120 milliseconds, even if it is only 4 kB of data.
After unmounting and remounting the flash drive (to get rid of data stored in the cache), I tested the read speeds:
Description
Data size
Time
Transfer speed
Contiguous read
12.1 MB
1.7 s
7.2 MB/s
Fragmented read
15.2 MB
4.6 s
3.3 MB/s
Clearly, there is some extra overhead for read operations on a fragmented file, but much, much less than for writing data.




Conclusions

Fragmentation can have a serious impact on flash drive performance, especially during write operations, which can take several milliseconds per data block. It might not be so important for a USB drive that is used to transfer a couple of files from one computer to the next, but if an SSD is used as a hard disk replacement, it can certainly be relevant. A standard hard disk defragmentation tool might not be the ideal tool to defragment a flash drive, since it is not aware of the allocation block size inside the flash drive. This may slow down the defragmentation procedure.

I will repeat the experiment later with other types of flash memory, and try to figure out the internal block size which is not specified anywhere.

Marcadores: , , , ,



# 11/05/2009 09:29:00 AM, Comentários, Links para esta postagem,

XOOPS Cube Modules Videos





XOOPS Cube Modules Video









Web Design Tutorial 5b: Using Templates in XOOPS - Installing XOOPS Part II video

Web Design Tutorial 5b: Using Templates in XOOPS - Installing XOOPS Part II
Video de 02:27 visto 807 vezes
Xoops Users Profile Ajax Based video

Xoops Users Profile Ajax Based
Video de 03:09 visto 2.210 vezes
How to add Paypal Subscription Gateway on Xoops video

How to add Paypal Subscription Gateway on Xoops
Video de 09:59 visto 1.378 vezes
Xoops User Profile Ajax Based video

Xoops User Profile Ajax Based
Video de 01:52 visto 1.466 vezes
SPOOX - XOOPS installguide1 video

SPOOX - XOOPS installguide1
Video de 01:11 visto 635 vezes
How to Setup Frontpage of Xoops video

How to Setup Frontpage of Xoops
Video de 02:55 visto 864 vezes
How to Setup Banners in Xoops video

How to Setup Banners in Xoops
Video de 03:05 visto 560 vezes
How to install Xoops using Fantastico video

How to install Xoops using Fantastico
Video de 04:29 visto 833 vezes
How to Configure PD-Downloads on Xoops video

How to Configure PD-Downloads on Xoops
Video de 02:39 visto 262 vezes
XOOPS Cube video

XOOPS Cube
Video de 00:17 visto 1.313 vezes
Web Design Tutorial #5a: Using Fantastico and XOOPS Administration - Installing XOOPS Part I video

Web Design Tutorial #5a: Using Fantastico and XOOPS Administration - Installing XOOPS Part I
Video de 04:07 visto 385 vezes
Reasons why you should touch XOOPS Cube video

Reasons why you should touch XOOPS Cube
Video de 04:10 visto 2.067 vezes
Youtube Stream module for xoops video

Youtube Stream module for xoops
Video de 00:20 visto 298 vezes
Video Tutoriais : XOOPS : Filezilla and host CHMOD video

Video Tutoriais : XOOPS : Filezilla and host CHMOD
Video de 04:16 visto 2.076 vezes
New Exciting Xoops Book (2008 Edition) video

New Exciting Xoops Book (2008 Edition)
Video de 01:24 visto 489 vezes
Xoops User Profile Ajax Based (Best quality video) video

Xoops User Profile Ajax Based (Best quality video)
Video de 02:51 visto 1.003 vezes
How to Setup Paid Downloads Inside Categories on Xoops video

How to Setup Paid Downloads Inside Categories on Xoops
Video de 04:03 visto 178 vezes
Installazione Xoops 2.3.0 RC video

Installazione Xoops 2.3.0 RC
Video de 03:29 visto 1.750 vezes
How to Add Screenshot and Set Permissions on Xoops video

How to Add Screenshot and Set Permissions on Xoops
Video de 03:56 visto 149 vezes
Web Design Tutorial #5: XOOPS - Overview of the Content Management System (CMS) XOOPS video

Web Design Tutorial #5: XOOPS - Overview of the Content Management System (CMS) XOOPS
Video de 05:43 visto 1.107 vezes
XOOPS - OceanNet.jp Themes video

XOOPS - OceanNet.jp Themes
Video de 02:16 visto 863 vezes
SPOOX - XOOPS installguide2 video

SPOOX - XOOPS installguide2
Video de 06:43 visto 169 vezes
How to Change the Look of your Site in Xoops video

How to Change the Look of your Site in Xoops
Video de 02:52 visto 416 vezes
XOOPS - X-Torrent Module & uTorrent video

XOOPS - X-Torrent Module & uTorrent
Video de 07:50 visto 1.830 vezes
Xoops | How To Setup Subscriptions video

Xoops | How To Setup Subscriptions
Video de 06:20 visto 81 vezes
How to install Document Management Module in Xoops video

How to install Document Management Module in Xoops
Video de 02:01 visto 723 vezes
How to Setup User info, Meta tags and Footer inside Xoops video

How to Setup User info, Meta tags and Footer inside Xoops
Video de 02:14 visto 479 vezes
Xoops | How To Setup Banners video

Xoops | How To Setup Banners
Video de 03:19 visto 264 vezes
How to create categories and forum on Xoops video

How to create categories and forum on Xoops
Video de 03:07 visto 526 vezes
How to Configure General Settings of Frontpage on Xoops video

How to Configure General Settings of Frontpage on Xoops
Video de 03:26 visto 348 vezes
Xoops | How To Setup Frontpage video

Xoops | How To Setup Frontpage
Video de 03:09 visto 124 vezes
Temi Xoops Serie Zeta video

Temi Xoops Serie Zeta
Video de 01:00 visto 79 vezes
xoops?????? video

xoops??????
Video de 05:45 visto 142 vezes
How to Install a forum module in Xoops video

How to Install a forum module in Xoops
Video de 02:28 visto 252 vezes
How to Setup Index page and Categories on Xoops video

How to Setup Index page and Categories on Xoops
Video de 03:04 visto 600 vezes
Xoops | How To Install A Forum Module video

Xoops | How To Install A Forum Module
Video de 02:42 visto 786 vezes
Web Design Tutorial 5c: Installing Modules in XOOPS - Installing XOOPS Part III video

Web Design Tutorial 5c: Installing Modules in XOOPS - Installing XOOPS Part III
Video de 04:12 visto 359 vezes
Xoops - How To Add Paypal Subscription Gateway PART 1 video

Xoops - How To Add Paypal Subscription Gateway PART 1
Video de 08:58 visto 76 vezes
Xoops - How To Setup Index Page and Categories video

Xoops - How To Setup Index Page and Categories
Video de 03:18 visto 279 vezes
Xoops | How To Setup Header Logo video

Xoops | How To Setup Header Logo
Video de 02:02 visto 278 vezes
Xoops-How To Add Screenshot and Set Permissions video

Xoops-How To Add Screenshot and Set Permissions
Video de 04:10 visto 10 vezes
Installazione Xoops video

Installazione Xoops
Video de 04:16 visto 84 vezes
Xoops - How To Install Using Fantastico video

Xoops - How To Install Using Fantastico
Video de 04:43 visto 107 vezes
Xoops | How To Set Forum Permissions video

Xoops | How To Set Forum Permissions
Video de 02:09 visto 175 vezes
Xoops - Adding Required Plugins video

Xoops - Adding Required Plugins
Video de 02:45 visto 94 vezes
Xoops-How To Setup Paid Downloads video

Xoops-How To Setup Paid Downloads
Video de 04:17 visto 23 vezes
XOOPS promo video (beta) video

XOOPS promo video (beta)
Video de 01:21 visto 171 vezes
Xoops | How To Configure General Settings Of Frontpage video

Xoops | How To Configure General Settings Of Frontpage
Video de 03:40 visto 29 vezes
Xoops - How To Setup Custom Usergroups And Categories video

Xoops - How To Setup Custom Usergroups And Categories
Video de 02:44 visto 34 vezes
Xoops - How To Install Document Management Module video

Xoops - How To Install Document Management Module
Video de 02:16 visto 103 vezes
By Mikhail Miguel


Marcadores: , , , , ,



# 10/26/2009 06:19:00 AM, Comentários, Links para esta postagem,