<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Data Matters - A blog about flash memory &#187; bad block management</title>
	<atom:link href="http://blog.datalight.com/tag/bad-block-management/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.datalight.com</link>
	<description>Datalight's blog on flash memory, device data storage, data reliability and the embedded industry</description>
	<lastBuildDate>Wed, 23 Jun 2010 16:59:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Datalight Cuts Boot Time in Half for New LG Navigator</title>
		<link>http://blog.datalight.com/datalight-cuts-boot-time-in-half-for-new-lg-navigator</link>
		<comments>http://blog.datalight.com/datalight-cuts-boot-time-in-half-for-new-lg-navigator#comments</comments>
		<pubDate>Thu, 06 Nov 2008 21:36:05 +0000</pubDate>
		<dc:creator>RobHart</dc:creator>
				<category><![CDATA[Consumer Other]]></category>
		<category><![CDATA[Cost Savings]]></category>
		<category><![CDATA[Flash Memory Manager]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[bad block management]]></category>
		<category><![CDATA[flash manager]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[NAND]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[Windows CE]]></category>

		<guid isPermaLink="false">http://blog.datalight.com/datalight-cuts-boot-time-in-half-for-new-lg-navigator</guid>
		<description><![CDATA[The Challenge
Recently, LG Electronics, a well-known Korean-based manufacturer of consumer electronics, created a multimedia-enabled portable navigator for the North American market. The LN790 features a 4.3” LCD screen, Bluetooth hands-free functionality, and video-enabled playback. Ruggedness and fast access to data are important to consumers in this market, so the device was designed to boot directly [...]]]></description>
			<content:encoded><![CDATA[<p><strong>The Challenge</strong><br />
Recently, LG Electronics, a well-known Korean-based manufacturer of consumer electronics, created a multimedia-enabled portable navigator for the North American market. The LN790 features a 4.3” LCD screen, Bluetooth hands-free functionality, and video-enabled playback. Ruggedness and fast access to data are important to consumers in this market, so the device was designed to boot directly from a NAND mass storage environment using Windows CE. Unfortunately, LG product engineers had a difficult time getting the device to boot fast enough using CE’s FAL/FMD flash drivers.  At just over two minutes, the startup time did not match LG’s reputation for high-performance consumer devices.</p>
<p><strong>The Datalight Solution</strong><br />
As LG engineers went searching for solutions to the boot speed problem, they discovered that Datalight FlashFX® Pro uses a more efficient approach to managing bad blocks than CE’s standard FMD/FAL drivers, which can speed boot time significantly.  This difference is especially apparent when the device is using a large NAND disk, because boot time is somewhat proportional to the size of the flash.<br />
Why is FlashFX Pro more efficient? Startup with FAL requires the driver to read more data as part of its mount sequence, a lengthy process particularly if the disk is large. In contrast, FlashFX Pro requires a much simpler check of the media to complete the initial mount.</p>
<p><strong>The Customer Payoff</strong><br />
After implementation of FlashFX Pro, LG engineers were delighted to discover that the device’s boot time was cut by more than half. By using FlashFX Pro instead of the native Windows CE drivers, LG designers were able to achieve the performance their customers expect from a premium-quality personal navigator.  There was also an additional benefit they hadn’t counted on – FlashFX Pro support for over 200 flash parts means that the LN790 will be future-proof from flash parts going on allocation, unexpected price fluctuations, and end-of-life issues.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.datalight.com/datalight-cuts-boot-time-in-half-for-new-lg-navigator/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Datalight Products on VxWorks</title>
		<link>http://blog.datalight.com/datalight-products-on-vxworks</link>
		<comments>http://blog.datalight.com/datalight-products-on-vxworks#comments</comments>
		<pubDate>Thu, 07 Aug 2008 17:19:42 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[Datalight Products]]></category>
		<category><![CDATA[bad block management]]></category>
		<category><![CDATA[flash manager]]></category>
		<category><![CDATA[Flash Memory]]></category>
		<category><![CDATA[NAND]]></category>
		<category><![CDATA[Operating system]]></category>
		<category><![CDATA[VxWorks]]></category>
		<category><![CDATA[wear leveling]]></category>

		<guid isPermaLink="false">http://blog.datalight.com/?p=48</guid>
		<description><![CDATA[Datalight FlashFX Pro ships as an evaluation version in all VxWorks distributions since version 6.5. Customers who need support for NAND flash on VxWorks chose FlashFX Pro for abstracting the intricacies of working with flash memory. FlashFX Pro provides Bad Block Management (BBM), Wear Leveling, Garbage collection and background compaction functionalities on VxWorks along with [...]]]></description>
			<content:encoded><![CDATA[<p>Datalight FlashFX Pro ships as an evaluation version in all <a class="zem_slink" title="VxWorks" rel="homepage" href="http://www.windriver.com/" onclick="javascript:pageTracker._trackPageview('/www.windriver.com');">VxWorks</a> distributions since version 6.5. Customers who need support for <a class="zem_slink" title="Flash memory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Flash_memory" onclick="javascript:pageTracker._trackPageview('/en.wikipedia.org');">NAND flash</a> on VxWorks chose FlashFX Pro for abstracting the intricacies of working with flash memory. FlashFX Pro provides Bad Block Management (BBM), Wear Leveling, Garbage collection and background compaction functionalities on VxWorks along with support for 200+ flash parts. VxWorks is one of the top OS amongst Datalight Reliance customers. This is because Reliance provides a 100% reliable file system that provides fast performance.</p>
<p>Given the popularity of VxWorks amongst our customer based, we have prospective VxWorks customers ask us how our products are installed and configured on that platform. This short blog post will try and answer these questions. If you have more questions, please leave a comment and we will get back to you.</p>
<p>Q: How does a customer install Datalight VxWorks products<br />
We ship our products with an image of what would be put on a CD, so customers can extract our installation ZIP files into a temporary directory, and run SETUP.  This will install our product into a directory that they tell us (usually c:\dl\flashfx or c:\dl\reliance) and will add our CDF (WorkBench catalog files) in the appropriate place in the Workbench tree.<br />
Q: How do they configure it?  If it’s a menu structure (like Tornado’s Project) where is the menu, what are the options, and what are their effect?</p>
<p>In Workbench and Tornado, FlashFX Pro shows up in the Catalog right next to the TFFS flash driver, and Reliance shows up right next to dosFS.  Our manuals for VxWorks provide step-by-step guidance on how our products can be configured using the VxWorks development <a class="zem_slink" title="Integrated development environment" rel="wikipedia" href="http://en.wikipedia.org/wiki/Integrated_development_environment" onclick="javascript:pageTracker._trackPageview('/en.wikipedia.org');">IDEs</a><br />
Q: What effort is involved in using the Datalight Reliance or FlashFX Pro file system on VxWorks?<br />
Developers use the standard file system APIs of VxWorks (file open, file close, etc) like they would if dosFS or another file system and don’t need to know anything specific about the API of Reliance.  Same with FlashFX Pro – once we’re working in the environment, we’re a “disk”, and the people writing applications don’t need to know any special APIs.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.datalight.com/datalight-products-on-vxworks/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Choosing NAND or NOR Flash Memory: Tradeoffs and Strategies</title>
		<link>http://blog.datalight.com/choosing-nand-or-nor-flash-memory-tradeoffs-and-strategies</link>
		<comments>http://blog.datalight.com/choosing-nand-or-nor-flash-memory-tradeoffs-and-strategies#comments</comments>
		<pubDate>Tue, 08 Jul 2008 20:53:09 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[Cost Savings]]></category>
		<category><![CDATA[Extended Flash Life]]></category>
		<category><![CDATA[Flash Memory]]></category>
		<category><![CDATA[Flash Memory Manager]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Reliability]]></category>
		<category><![CDATA[bad block management]]></category>
		<category><![CDATA[flash manager]]></category>
		<category><![CDATA[NAND]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[reliability]]></category>

		<guid isPermaLink="false">http://blog.datalight.com/?p=30</guid>
		<description><![CDATA[Consumer electronics and embedded software devices are using larger amounts of flash memory for nonvolatile storage than ever before. So what kind of flash memory should you use? The choice between using NAND and NOR Flash may not be a simple one for the complex embedded devices being developed today. While ever-larger media files are [...]]]></description>
			<content:encoded><![CDATA[<p>Consumer electronics and embedded software devices are using larger amounts of flash memory for nonvolatile storage than ever before. So what kind of flash memory should you use? The choice between using NAND and NOR Flash may not be a simple one for the complex <a class="zem_slink" title="Embedded system" rel="wikipedia" href="http://en.wikipedia.org/wiki/Embedded_system" onclick="javascript:pageTracker._trackPageview('/en.wikipedia.org');">embedded devices</a> being developed today. While ever-larger media files are driving increased demand for inexpensive NAND, powerful new operating systems and intricate applications running on fast processors ask for the fast-executing code NOR can support.</p>
<p>Read Datalight whitepaper <em>Choosing NAND or NOR <a class="zem_slink" title="Flash memory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Flash_memory" onclick="javascript:pageTracker._trackPageview('/en.wikipedia.org');">Flash Memory</a>: Tradeoffs and Strategies to Learn More</em></p>
<p>Consumer electronics and embedded software devices are using larger amounts of flash memory for nonvolatile storage than ever before. One important decision in designing such devices is what kind of flash memory to use: NAND or NOR?</p>
<p>NOR flash memory has traditionally been used to store relatively small amounts of executable code for embedded computing devices such as PDAs and cell phones. NOR is well suited to use for code storage because of its reliability, fast read operations, and random access capabilities. Because code can be directly executed in place, NOR is ideal for storing firmware, boot code, operating systems, and other data that changes infrequently.</p>
<p>NAND flash memory has become the preferred format for storing larger quantities of data on devices such as USB Flash drives, digital cameras and MP3 players. Higher density, lower cost, and faster write and erase times, and a longer re-write life expectancy make NAND especially well suited for consumer media applications in which large files of sequential data need to be loaded into memory quickly and replaced with new files repeatedly.</p>
<p>The choice between using NAND and NOR Flash may not be a simple one for the complex embedded devices being developed today. While ever-larger media files are driving increased demand for inexpensive NAND, powerful new operating systems and intricate applications running on fast processors call for the kind of fast-executing code NOR can support. An important example is a smart phone or PDA that combines a tremendous need for storage with a demanding set of application performance requirements. In some cases an optimal design might call for both types of flash memory in the same device.</p>
<p>Whichever type of flash is used in a device, there are certain negative performance characteristics that need to be mitigated. NOR is fast to read current data but markedly slower to erase it and write new data. NAND is fast to erase and write, but slow to read non-sequential data through its serial interface. NAND is also prone to single-bit errors, requiring rigorous algorithms for <a class="zem_slink" title="Error detection and correction" rel="wikipedia" href="http://en.wikipedia.org/wiki/Error_detection_and_correction" onclick="javascript:pageTracker._trackPageview('/en.wikipedia.org');">error detection and correction</a>.</p>
<p>Well-designed software strategies can be very effective in increasing the performance and reliability of Flash hardware. The goals of flash memory management software include:</p>
<p><strong>Avoid loss of data. </strong>Perhaps the most important goal in managing flash memory is to assure that no data is ever lost as a result of an interrupted operation or the failure of a memory block. <strong> </strong>There are several ways that flash management software can achieve this goal. Rewrite operations, for example, can be managed in such a way that new data is written and verified before the old data is deleted, so that no power loss or other interruption can result in the loss of both old and new data. Bad block management is another important safeguard to prevent data being written to memory blocks that have failed. Software can check for bad blocks shipped from the factory, as is typical with NAND, and avoid writing to those blocks from the beginning. When blocks go bad over time they can be identified and managed so that they are no longer used. Finally, as the end of media life nears, good memory management software can implement a graceful strategy such as placing the entire flash unit in a read-only state, thereby avoiding data loss when the number of block errors exceeds a predefined number.</p>
<p><strong> </strong></p>
<p><strong>Improve effective performance. </strong>Two ways media management software can improve performance are background compaction and multithreading. Compaction reclaims space by identifying blocks that have obsolete data that can be erased, copying any valid data to a new location, then erasing the blocks to make them available for reuse. Such compaction increases the amount of usable space on the media and improves write performance. Compaction may also help to defragment noncontiguous data for improved performance on read operations. The space recovery is particularly valuable for the more costly NOR memory and the defragmentation benefits the slower-reading NAND. Compaction is best performed in the background during idle time, however, or it can interfere with critical operations and degrade performance. This is where a multithreading system becomes important. By allowing high-priority read requests to interrupt low-priority maintenance operations, a multithreading system can reduce read latency by orders of magnitude compared to a single-thread solution.</p>
<p><strong> </strong></p>
<p><strong>Maximize media lifespan. </strong>When some blocks of memory contain fixed content, such as binary code, the remaining blocks will experience increased demand for erase and write operations, leading to earlier failure. Wear-leveling algorithms can prevent overuse of memory blocks and prevent a “stalemate” scenario in which a small region of memory becomes locked in a pattern of repeated writing and compaction. Wear leveling software can monitor block usage to identify high-use areas and low-use areas containing static data, then swap the static data into the high use areas. It can also balance write operations across all available blocks by choosing the optimal location for each write operation.</p>
<p>The decision between NAND and NOR memory will ultimately depend on both technical and pricing requirements of the device being built. Whatever type or combination of flash is used, it is prudent to include memory management software to prevent data loss while improving the performance and maximizing the lifespan of the memory.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/dfbaefae-a323-47e9-8f3f-48bbf380b6fd/"><br />
</a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.datalight.com/choosing-nand-or-nor-flash-memory-tradeoffs-and-strategies/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Factors Affecting Flash Memory Performance</title>
		<link>http://blog.datalight.com/factors-affecting-flash-memory-performance</link>
		<comments>http://blog.datalight.com/factors-affecting-flash-memory-performance#comments</comments>
		<pubDate>Tue, 24 Jun 2008 19:04:11 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[Flash File System]]></category>
		<category><![CDATA[Flash Memory]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[bad block management]]></category>
		<category><![CDATA[flash manager]]></category>
		<category><![CDATA[flash memory performance]]></category>
		<category><![CDATA[wear leveling]]></category>

		<guid isPermaLink="false">http://blog.datalight.com/?p=25</guid>
		<description><![CDATA[The read, write and erase timing characteristics of flash hardware specifications are useful for comparing different products, but don’t tell the whole story about what you will get from your real-world devices. When Flash memory is incorporated into a system, the performance of the system depends on a number of factors. One key factor that [...]]]></description>
			<content:encoded><![CDATA[<p>The read, write and erase timing characteristics of flash hardware specifications are useful for comparing different products, but don’t tell the whole story about what you will get from your real-world devices. When <a class="zem_slink" title="Flash memory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Flash_memory" onclick="javascript:pageTracker._trackPageview('/en.wikipedia.org');">Flash memory</a> is incorporated into a system, the performance of the system depends on a number of factors. One key factor that can reduce the effective performance of flash memory involves the shared bus topology of your system. Optimal flash performance depends on the speed and availability of the bus that connects the flash to the system. Also critical are the manner in which the operating system handles interrupts and whether the flash device is connected to the system’s interrupt architecture.</p>
<p>The published read, write, and erase timing characteristics of flash hardware specifications are useful for comparing different products, but don’t tell the whole story about what you will get from your real-world devices. When Flash memory is incorporated into a system, the performance of the system depends on a number of factors in addition to the capabilities of the flash hardware.</p>
<p>One key factor that can reduce the effective performance of flash memory involves the shared bus topology of your system. Optimal flash performance depends on the speed and availability of the bus that connects the flash to the system. For example, if your flash shares a bus with parts that operate at slower clock speeds, the timing of the accesses to the flash part may be extended to match. On the other hand, your flash part may be competing for bus availability with other demanding high-speed system components.</p>
<p><a class="zem_slink" title="Random access memory" rel="wikipedia" href="http://en.wikipedia.org/wiki/Random_access_memory" onclick="javascript:pageTracker._trackPageview('/en.wikipedia.org');">RAM</a> memory, network interfaces, and LCD screens are demanding components that can compete with flash for bus and CPU bandwidth. The use of certain features of the processor and operating system, such as DMA and caching, can have a similar impact. As more components, peripherals, and device drivers are added to the system, more opportunities arise for the bus to be shared. The proliferation of high performance audio and video features, now common on mobile devices, can further tax a shared bus system on a general purpose chipset. For this reason special-purpose chipsets designed for a specific application, as well as tuning the characteristics of your flash management software to meet your specific needs, will generally enable higher levels of flash performance.</p>
<p>Well designed hardware bus topology can alleviate the issue of shared bus contention, yet other factors may still impact flash memory performance. Even if the flash part has full speed access to the processor’s external bus, the availability of the CPU to service that bus is still a question. Bus arbitration may take CPU cycles away from the flash bus in favor of other system busses or internal accesses. Operating system timer interrupts and other peripheral device driver interrupts can interfere with flash software operations, as can a CPU that is simply overloaded by running complex applications.</p>
<p>Also critical are the manner in which the operating system handles interrupts and whether the flash device is connected to the system’s interrupt architecture. Some flash is connected to processors in such a way that the signal generated by the flash is connected to a GPIO, or not connected at all. This may have little impact on flash performance, but it will limit the ability of the CPU to execute other flash-related software, such as garbage collection, or even unrelated tasks. Additionally, many systems have an explicit or implied interrupt priority that must be considered at the system level. Responsiveness requirements of all interrupt-driven components in the system must be carefully weighed against the desire to maximize flash performance.</p>
<p>An equally significant factor affecting flash performance that might be easily overlooked is the flash management software itself. There is a necessary amount of overhead inherent in running software to manage your flash memory, and there are some complex operations that the software needs to accomplish well in order to optimize flash performance. The software provided by your flash vendor may or may not provide satisfactory performance for your particular application.</p>
<p>While flash memory often appears to the end user like a virtual hard drive, the underlying technology is quite different and presents certain challenges. Flash management software can do more than bad block management and wear leveling, it can increase the effective performance of the flash part by addressing these challenges:</p>
<ol>
<li>Flash performance can be impeded by the need for a slow erase operation before writing new data, but software that intelligently performs background garbage collection during idle time can solve that problem.</li>
<li>Fragmented data can degrade performance in applications such as streaming media from NAND memory, but compaction software that de-fragments the data can improve performance in these situations.</li>
<li>With some algorithms, throughput is maximized for performance until a percentage of the flash memory is used, at which point performance can degrade. The percentage of the flash that is used before performance suffers can be tuned in some implementations, by allowing the system designer to reserve a specified amount of ‘cushion’ of unused memory.</li>
<li>In some solutions, maintenance operations such as garbage collection can preempt high-priority read requests. Implementations that make careful use of multithreading operating systems’ capabilities to manage this issue can reduce read latency by orders of magnitude.</li>
</ol>
<p>Several factors will affect the performance of flash memory in your real-world system, some of which may be beyond your control. Chipset hardware and system bus topology decisions may have been made already. No matter whether your hardware is specially designed for your application or you are using a general-purpose hardware design, though, the effective performance of your flash memory can be improved through software methods. <a href="http://www.datalight.com/products/flashfx" >Datalight FlashFX</a> is a multithreading memory management software solution that enables garbage collection, data compaction, memory cushion, and high priority read interrupts to allow the highest real-world flash performance your hardware configuration can support.</p>
<div class="zemanta-pixie" style="margin-top: 10px; height: 15px;"><a class="zemanta-pixie-a" title="Zemified by Zemanta" href="http://reblog.zemanta.com/zemified/2bc0b5d6-0579-4a2e-b3b5-7983d9609349/"><br />
</a></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.datalight.com/factors-affecting-flash-memory-performance/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
