Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1622  / 3 Years ago, sat, june 19, 2021, 5:21:06

I installed ubuntu desktop version 11.04 on the little NAS box I'm building. I didn't purchase HDD yet, so I tried to install ubuntu on the SDHC card. But it's terribly slow! I would expect it to be faster than normal 5400rpm hdd, since seek times on any flash memory is low.



Pc details: 2gb ddr3 ram, 1.8 dual core atom, asrock d525 mobo, and 8gb SD card. In theory this should be more than enough for ubuntu.



But, few things worry me. First of all I believe I connected card reader to usb port. So that would limit speed. In the face of the fact that reader resides on usb, is this slowness expected?



I ran ubuntu test suit, and on hdd it reported reading speed 800mb/s.
How should I check device speed? Is there any other way?


More From » server

 Answers
7

Hard drives just about always have caches, typically 8 GB but often much larger.



They have both read-ahead and write-behind caches. The read-ahead will read the next few blocks after a a block was just read in anticipation of them being read in the near future, but will remove them from the cache if they don't get read before the cache fills up with other block.



Your SDHC card probably has no cache at all. While it would benefit from the fast seek times, you would be seeing the direct read and write behavior of the flash.



Writing flash is very slow because it must be erased and then written to in a second pass.



Flash wears out when you write to it too many times. Once you've done so it won't store data reliably. To prolong the life, wear leveling is used in which the physical sector used to store a logical sector number constantly changes. Thus there is effectively a filesystem underneath the filesystem that Linux actually sees.



The wear leveling is implemented by the hardware of your SDHC card and may not be implemented with very fast circuitry.



Flash can be made very, very fast as with solid state drives with SATA or SAS (Serial Attached SCSI) interfaces, but I expect those drives do have large RAM caches as well as faster wear leveling hardware.


[#43177] Saturday, June 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
enincroscope

Total Points: 252
Total Questions: 124
Total Answers: 104

Location: Tajikistan
Member since Thu, Apr 14, 2022
2 Years ago
enincroscope questions
Thu, Jan 20, 22, 08:33, 2 Years ago
Thu, Apr 7, 22, 01:09, 2 Years ago
Mon, May 16, 22, 09:08, 2 Years ago
;