What is Memory Technology Device?

General Tech Technology & Software 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

Documentation and webpages are not very clear on this. Is it a Linux technology? Is it a type of storage device?

Some other questions:

  • If it is a Linux technology, what types of storage does it work with?
  • What is the "wear-out property"?
  • Why are MTD partitions defined with a boot parameter?
profilepic.png
manpreet 2 years ago


Most regular linux (and unix more generally) systems use a storage abstraction called block devices. A block device is a sequence of blocks (sectors). Individual blocks can be read or written. There is an assumption that reading or writing sequential blocks will be faster than reading and writing and an assumption that it's ok to write to the same place repeatedly.

That is a pretty good model for disk drives. It's not a good model for flash memory.

Flash memory has to be erased before it can be re-written. The erase circuitry is relatively complex so erase blocks (especially in NAND flash) are usually substantially bigger than write blocks. Each erase block can only be erased a limited number of times before failing. Therefore to maximise usable life a mechanism is needed to even out the wear across the device.

There are two approaches. One approach is to create a controller that presents a standard block device interface and handles wear leveling through remapping logical blocks to different physical ones and in some cases moving "cold" (rarely modified) data from low wear blocks to high wear ones. That means that any normal file system can be used, but the remapping system is difficult to implement correctly. In particular handling power failure correctly is very difficult. This is the approach used by SSDs, USB sticks, SD cards etc.

The other approach is not to try and pretend that flash is a disk drive at all but to create a new device type that represents a flash chip directly. The filesystem (or in the case of ubifs the ubi layer) then takes on the responsibility for wear leveling. Linux calls such devices mtd devices. As with hard drives each device can be split into multiple partitions (though IIRC the partitions are usually defined by the system firmware rather than by a partition table on the flash device in question). This approach is frequently seen in embedded devices, smartphones and smartphone-like tablets.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.