maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Upgrading (https://talk.maemo.org/forumdisplay.php?f=8)
-   -   n800, SD, SDHC, and storage (https://talk.maemo.org/showthread.php?t=5118)

padraic2112 2007-03-07 17:48

n800, SD, SDHC, and storage
 
There are a lot of threads on this discussion forum, and blog posts around, that have some confusing information regarding various SD cards and their usability in the n800.

I spent the last 6 hours digging through all of them to make sure I had the entire story, and I thought I'd shove everything into a single post.

The n800 stock kernel currently supports SD 1.0 and SD 1.1 cards (hardware support) and both Fat16 and Fat32 file systems. The stock kernel does not support SDHC (SD 2.0) cards.

The n800 file manager application only formats in Fat16, but will read Fat32 partitions just fine.

In a nutshell, then, you can plug *any* SD card < 4GB into your n800 and everything will "just work". You can use 4GB cards that are NOT SDHC cards, but (a) these cards are not official SD 1.0 cards and (b) the file manager will format them as fat16 devices, which will limit them to 2GB, so you need to format them on another device (like a PC) as Fat32 file systems to get the 4GB of usable space out of them. The 4GB cards (that *aren't* SDHC) are technically outside of any spec (they don't conform to 1.0, 1.1, or 2.0 of the SD specification), so they are liable to produce buggy results, use at your own risk. Note that many people are using the 4GB cards with little problems.

There is a kernel patch available to make your n800 support SDHC cards - this is available here http://intr.overt.org/blog/?p=44. Commercially, there are 8 GB SDHC cards readily available. Vendors are releasing 16GB SDHC cards at various points this year. RiDATA 16GB SDHC cards are being showcased 08-11 Mar 2007 - http://www.cdfreaks.com/news/RIDATA-...-PMA-Show.html.

So, to sum up:

If you don't want to get adventurous, don't buy any card bigger than 2GB and make sure that the card you buy is not SDHC, and you top out at 4GB.

If you're a little bit adventurous, buy a 4GB non-SDHC card and you can top out at 8GB.

I'll try and get a list of known to be working cards. For the ubergeeks amongst us, my theory is that certain of the 4GB cards have a voltage problem that makes them buggy with the n800, that's just a SWAG.

If you want to kernel hack your n800, you should be able to buy and use 8GB SDHC cards, right now, in your n800.

If you wait until the next release of the OT 2007 OS, the SDHC patch (according to a blog I can't find at the moment) should have been included. I have been unable to find out if the File Manager app will also be updated when this occurs (I certainly hope so, and encourage everybody to email Ari Jaaksi (http://jaaksi.blogspot.com/) or post to his blog to encourage him to make sure that (a) the kernel patch is incorporated (b) the file manager app is updated to default to fat32.

Oh, and finally, flash memory cards are probably going to plummet in price in the next 3 months as the higher capacity cards hit the mainstream, so if budgeting is an issue, patience will reward you well at this point.

Whoo! Forget an iPod, within a year I'd say the probability is > .99 that you'll be able to walk around with 32x2=64GB of storage in your n800!

TA-t3 2007-03-07 17:59

Re: n800, SD, SDHC, and storage
 
I really don't think we all should email poor Ari.. no need to spam him to death. I'm pretty sure the message has been noted by Nokia already, and either it'll happen or it won't, for the upcoming release. Other than that little nit. nice writeup!

(As for 128GB in the N800.. I remember my school paid nearly $15K for a ten-megabyte disk to the school computer.. ah, those were the days! :p)

markku 2007-03-07 18:13

Re: n800, SD, SDHC, and storage
 
This cleared a lot about that SD card thing, good work. It would be nice to have such a data storage in N800. Lots of videos, music...we'll see what will happen.

Markku

Seb Per 2007-03-07 18:54

Re: n800, SD, SDHC, and storage
 
128 MB... what'll be the impact on the access speed to data? if you have a gigantic warehouse, you can't use the same small forklift that ran fast and efficient in your little storage.

heavyt 2007-03-07 19:33

Re: n800, SD, SDHC, and storage
 
padraic2112 that was a clear and easy to understand review, thank you.

fanoush 2007-03-07 19:44

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by padraic2112 (Post 38016)
but you won't be able to use the internal file manager app to do much, you'll have to do most of your interfacing at a terminal.

I think the only problem with file manager is when formatting the card (i.e it can't format as fat32). Already formatted card should work just fine. Or is there really some problem?

Karel Jansens 2007-03-07 20:05

Re: n800, SD, SDHC, and storage
 
I have 2 "non-standard" 4GB cards in my N800. I didn't format them, just plunked them in and they work just fine with the file manager. With anything, actually...

yumheart 2007-03-07 20:12

Re: n800, SD, SDHC, and storage
 
I have two 8gb SDHC cards in mine. Patched kernel too of course. File manager works fine for everything I have used it for. I have never tried to format a card however...

heavyt 2007-03-07 21:19

Re: n800, SD, SDHC, and storage
 
So is it safe to assume one can use the file manager on all cards but you can not format (reformat) all cards to fat 32?

padraic2112 2007-03-08 03:48

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by fanoush (Post 38024)
I think the only problem with file manager is when formatting the card (i.e it can't format as fat32). Already formatted card should work just fine.

I have updated my top post for new readers to clarify this, thanks.

Yes, as far as I know (I just got my n800 today and don't have my SD cards yet) this is correct. I'll update the top post again when I can confirm.

padraic2112 2007-03-08 03:57

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by Seb Per (Post 38021)
128 MB... what'll be the impact on the access speed to data? if you have a gigantic warehouse, you can't use the same small forklift that ran fast and efficient in your little storage.

Bad analogy, but that depends on how the file manager is written.

Yes, the big cards will be less responsive if the file system is being searched or indexed, but there shouldn't be too much of a performance hit just reading the card... you see lag in digital cameras and digital camera software when you have lots of pictures on big cards because the software is usually doing some sort of thumbnail caching, which can be time consuming.

Fat 32 is not a high performance file system, like xfs or ext3. The file system itself does no optimization when writing files, so your memory card is liable to suffer from fragmentation. If you do lots of small-file writing, or often delete/replace large files, the file system's responsiveness will deteriorate, although not to the extent it would on a mechanical platter-style hard drive.

If you use a windows box, just connect your n800 to it every once in a while and run the defrag utility on the flash card.

Seb Per 2007-03-08 07:24

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by padraic2112 (Post 38084)
Bad analogy, but that depends on how the file manager is written.

Yes, the big cards will be less responsive if the file system is being searched or indexed, but there shouldn't be too much of a performance hit just reading the card... you see lag in digital cameras and digital camera software when you have lots of pictures on big cards because the software is usually doing some sort of thumbnail caching, which can be time consuming.

Fat 32 is not a high performance file system, like xfs or ext3. The file system itself does no optimization when writing files, so your memory card is liable to suffer from fragmentation. If you do lots of small-file writing, or often delete/replace large files, the file system's responsiveness will deteriorate, although not to the extent it would on a mechanical platter-style hard drive.

If you use a windows box, just connect your n800 to it every once in a while and run the defrag utility on the flash card.

THank you for this lesson. I don't know much about computer science, and I m sorry if my analogy was bad. I guess my question originated from my own (wrong?) belief that the power of the processor and the operating memory are quite limited on this beautiful device.

TA-t3 2007-03-08 10:36

Re: n800, SD, SDHC, and storage
 
The 128MB vs. 128GB issue _is_ actually an issue.. or would be, if the flash is as slow as a disk or the computer is as fast as a desktop computer. Linux drags all data from disk (and back again) "through" memory, whatever memory it has available, and any following access of data on the same page on the disk will get it from memory if it's there. So the more memory you have, the faster your system will be. To have lots of memory on your system can result in quite a dramatic difference.
However, the N800 I/O speed is limited anyway, so it may not make that much of a difference in practice although I think it would be measurable.

jpj 2007-03-08 15:01

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by padraic2112 (Post 38016)
Commercially, there are 8 and 16 GB SDHC cards available, and Samsung had a 64GB SDHC prototype last September, so it is likely that 64GB cards will be available within this calendar year.

Not a bad summary attempt, but check your facts, please:

There are no 16GB SDHC cards currently available. Vendors such as Panasonic and Toshiba have projected launches sometime in 2007, but there have been no actual product announcements.

The Samsung 64GB prototype was Compact Flash, not SDHC. In fact, the SD 2.0 spec defines a capacity limit of 32GB, suggesting that higher densities must either be noncompliant (again) or await further spec revisions.

padraic2112 2007-03-08 17:25

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by jpj (Post 38141)
There are no 16GB SDHC cards currently available. Vendors such as Panasonic and Toshiba have projected launches sometime in 2007, but there have been no actual product announcements.

http://www.cdfreaks.com/news/RIDATA-...-PMA-Show.html

I'm hoping to pick up one of these this weekend. Picking nits, I suppose, but you're right, I'll update the top post.

padraic2112 2007-03-08 17:41

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by jpj (Post 38141)
The Samsung 64GB prototype was Compact Flash, not SDHC. In fact, the SD 2.0 spec defines a capacity limit of 32GB, suggesting that higher densities must either be noncompliant (again) or await further spec revisions.

Thanks for this -> I ought to have checked that source. Yes, this is correct, the 64GB prototype was CF, not SDHC.

From what I've read, the upper theoretical limit on SD is 128GB, so I would imagine that there will be an SD 2.1 spec that ups the capacity limit past 32 GB, but you're correct, the 2.0 spec caps out at 32GB.

Updated the top post.

jpj 2007-03-09 00:19

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by padraic2112 (Post 38168)
http://www.cdfreaks.com/news/RIDATA-...-PMA-Show.html

I'm hoping to pick up one of these this weekend. Picking nits, I suppose, but you're right, I'll update the top post.

Read that link more carefully. Advanced Media is launching their RITECH branded SDHC line, SSD cards, and two port USB Hub drive. The 16GB and 32GB capacity points refer only to the SSD (solid state disk) cards, not SDHC. Nothing earth shattering there, and considering the relative densities of the two form factors (the SSDs are sized like 1.8" and 2.5" hard drives), I'd be surprised if their biggest SDHC even matched the 8GB capacity leaders, let alone surpassed it.

I do expect we'll see 16GB (possibly even 32GB) SDHC production sometime this year, but we're not quite there yet.

fcassia 2007-04-08 09:23

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by padraic2112 (Post 38084)
If you use a windows box, just connect your n800 to it every once in a while and run the defrag utility on the flash card.

You are kidding, right? Because you DO know that flash memory has a limited number of read/write cycles, right? And you DO know that "defragmentation" is a very read/write intensive process, right?

You are also aware that in Flash cards are MEMORY and hence there is no SEEK TIME involved because it takes the same time to get data from memory position #1 as it does from memory position #3276864738, yes?

In short: running a "defrag" on a flash device is not only pointless, it will also reduce the life of your memory card. Brilliant!.

jpj 2007-04-08 14:25

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by jpj (Post 38231)
I do expect we'll see 16GB (possibly even 32GB) SDHC production sometime this year, but we're not quite there yet.

Updating my previous comments: Patriot Memory might be first to market with 16GB SDHC, at a speedy Class 6 rating. Their March 8 press release claimed the product will be "available for purchase next month," which sounds like April to me. I emailed the marketing manager for confirmation but have received no response.

http://www.patriotmemory.com/company....jsp?source=67

I'm currently using a Patriot 8GB Class 4 SDHC (PSF8GSDHC4) with the N800 patched kernel, and its speed is far more impressive than I expected. Much faster transfers than the Transcend 150X 4GB SD (non-HC). I'll try to run some comparative benchmarks when I find the time.

I purchased my 8GB CL4 card from newegg.com last month for $61.99 minus a $10 rebate. Since then the price has risen to $77.99, which would still tempt me to pick up a second card if the 16GB wasn't so close to the horizon.

http://www.newegg.com/Product/Produc...82E16820220217

Eagerly awaiting further 16GB SDHC news ...

TA-t3 2007-04-11 15:54

Re: n800, SD, SDHC, and storage
 
Just to second the posting up there.. don't defrag a flash card. Not a good idea.

Mara 2007-04-11 21:20

Re: n800, SD, SDHC, and storage
 
Just trying to make decision what speed grade SDHC card should I be buying? Most 8GB that are priced around $70 are Class 2, and Class 4's start around $100. Currently I'm using a "regular" (non-SDHC) 4GB SD card with "unknown" speed... and it seem to be plenty fast when reading data. But the writing seem quite slow, taking like 10-15 minutes to write a single 300MB file into it when connected via USB cable to the PC. (Yes, PC port is USB2.0.)

I have seen some speed test numbers here about speeds of different cards, but I do not remember seeing anything about write speed of different SDHC class cards? Would the Class 4 be faster than Class 2 to write to, when using the patched SDHC kernel in N800?

Milhouse 2007-04-11 22:37

Re: n800, SD, SDHC, and storage
 
300MB in 10-15 minutes doesn't sound right - something is wrong with the card, the card reader or the PC! :)

It's quite hard to benchmark the write speed on the N800 because of the internal OS filesystem buffering.

Using the following (utterly bogus) test...

Code:

/home/user # sync; time sh -c "dd if=/dev/zero of=/dev/mmcblk1 bs=1M count=128; sync; sync; sync;"
128+0 records in
128+0 records out
real    0m 20.64s
user    0m 0.00s
sys    0m 1.39s

...will "write" 128MB of data to a Transcend Class 2 8GB card (high speed, 4-bits wide) in 20.64 seconds (latest 3.2007.10-7 SDHC kernel) which works out at just over 6.2MB/s write speed.

I know the results from this test are incorrect, but it does go to show that you won't really see a great deal of difference between Class 2 and Class 4 write performance in day-to-day usage. The OS will finish writing the data asynchronously to the Class 4 card faster than it will the Class 2 card, but you're not likely to notice.

You should see a difference between Class 2 and Class 4 in a Windows PC as file transfers should be quicker with the Class 4 card, in which case your buying decision should be based on how often you intend to bulk copy data to the card when it is connected to a PC.

IMHO, the N800 isn't likely to see any benefit when using a Class 4 or faster card - Class 2 will be fine.

Mara 2007-04-12 00:21

Re: n800, SD, SDHC, and storage
 
Well... did redo the speed test using 319MB size AVI file copied from computer to N800. It took 740 seconds... (that is over 12 minutes...). By reading back the same file to PC took only 30 seconds! Thus the read speed is over 10MB/sec, which is over 20x faster than write speed! That is with "regular" 4GB SD card, not SDHC card. (I do have the SDHC kernel installed which seem to be faster than the stock kernel, even with non-SDHC cards.)

At any rate even Class 2 card would be many times faster to write than my current 4GB card. (Read speed might be slightly slower?)

Based on your recommendation I'll propably just get a Class 2 card.

darethehair 2007-04-25 23:26

Re: n800, SD, SDHC, and storage
 
This seems like the best thread to post my questions, so here goes:

1) I have a brand-new N800 (yay!) and I purchased two 8gb Patriot SDHC cards for it. I would assume that before I can use them that I need to format/partition them (?), but does this mean I need to go out and purchase a USB multi-card-reader with SDHC support before I can do this? The card readers on my Linux PCs don't seem to recognize these cards (nio big surprise). How do the rest of you SDHC people do this? Can I be sure that any card reader that I purchase will work on my Linux systems (I am assuming that any desire to create EXT2/3 partitions without using them under Linux would be impossible).

2) I need to have clear(er) guidance on the best way to partition these cards. I have read that they *must* have a FAT(32?) partition on them -- is this true? How large? Being a Linux guy I would simply prefer to format them completely as EXT3.

Please help guide me!

johsua 2007-04-25 23:46

Re: n800, SD, SDHC, and storage
 
See the SDHC wiki:

http://www.internettablettalk.com/wi..._to_a_computer

In short - you don't need to format. You just need to patch the kernel to get SDHC support. This is not hard to do.

Good luck.

fanoush 2007-04-26 07:39

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by darethehair (Post 45880)
I would assume that before I can use them that I need to format/partition them (?), but does this mean I need to go out and purchase a USB multi-card-reader with SDHC support before I can do this? The card readers on my Linux PCs don't seem to recognize these cards (nio big surprise). How do the rest of you SDHC people do this?

N800 works as usb card reader. once you flash sdhc kernel you can reformat and repartition cards from PC over USB.

Quote:

Originally Posted by darethehair (Post 45880)
2) I need to have clear(er) guidance on the best way to partition these cards. I have read that they *must* have a FAT(32?) partition on them -- is this true? How large? Being a Linux guy I would simply prefer to format them completely as EXT3.

Default system simply expects first partition to be FAT. With fist partition being FAT(32) you won't need any modification of system files. It is possible to have ext2 but it may be less practical when accessing card over USB from non-linux PC and you also need to hack few configuration files (/etc/fstab at least).

In my opinion the easiest is to keep first one as FAT for data that I wish to share over USB and create other partition(s) as ext2 or ext3 for things that need permissions. If you are advanced linux user you may also consider transferring system from flash to mmc card to have more space, faster system (depends on card speed) and easier crash recovery
http://maemo.org/maemowiki/HowTo_EAS..._From_MMC_card

Karl-Wilhelm 2007-05-04 19:28

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by johsua (Post 45883)
See the SDHC wiki:

http://www.internettablettalk.com/wi..._to_a_computer

In short - you don't need to format. You just need to patch the kernel to get SDHC support. This is not hard to do.

Good luck.

I just can't get that guide to work.

I just don't understand why I get that "error".
http://kirkedam.mine.nu/kwk/N800%20Stuff/Bilde340.jpg

Thanks in advance :)

fanoush 2007-05-04 20:32

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by Karl-Wilhelm (Post 47238)
I just can't get that guide to work.

I just don't understand why I get that "error".
http://kirkedam.mine.nu/kwk/N800%20Stuff/Bilde340.jpg

Thanks in advance :)

You did not enter correct path to kernel flasher archive. I have added more details to that wiki page. Read again and use proper path, it depends on where you saved those files.

Karl-Wilhelm 2007-05-04 21:23

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by fanoush (Post 47264)
You did not enter correct path to kernel flasher archive. I have added more details to that wiki page. Read again and use proper path, it depends on where you saved those files.

Thanks =) I got it to work now! I had done a couple of things wrong...

Happy weekend ;)

chyang 2007-05-06 22:31

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by Mara (Post 43869)
Well... did redo the speed test using 319MB size AVI file copied from computer to N800. It took 740 seconds... (that is over 12 minutes...). By reading back the same file to PC took only 30 seconds! Thus the read speed is over 10MB/sec, which is over 20x faster than write speed! That is with "regular" 4GB SD card, not SDHC card. (I do have the SDHC kernel installed which seem to be faster than the stock kernel, even with non-SDHC cards.)

At any rate even Class 2 card would be many times faster to write than my current 4GB card. (Read speed might be slightly slower?)

Based on your recommendation I'll propably just get a Class 2 card.

any new result with the class 2 card?i am planning to buy a non-standard 4gb sd to use with my n800, if it is as what you tested, i would choose sdhc card. thanks.

--
posted from zaurus

Milhouse 2007-05-06 23:42

Re: n800, SD, SDHC, and storage
 
From the benchmarks posted on this forum, the slowest SDHC Class 2 card typically outperforms even the fastest SD card (when reading data) so unless you need SD for compatability I'd recommend SDHC every time as Nokia will surely add official SDHC in the next firmware (clowns if they don't).

Mara 2007-05-07 00:49

Re: n800, SD, SDHC, and storage
 
Well.. I haven't got the 8GB SDHC card yet. The 4GB I have now has enough space for my needs for now. I'm waiting the 8GB prices to go down some more...

fanoush 2007-05-07 12:39

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by Milhouse (Post 47486)
From the benchmarks posted on this forum, the slowest SDHC Class 2 card typically outperforms even the fastest SD card (when reading data) so unless you need SD for compatability I'd recommend SDHC every time as Nokia will surely add official SDHC in the next firmware (clowns if they don't).

Well, that depends on card price and importance of write speed. I am happy with transcend 4gb 150x. It was cheaper even than Transcend 4GB SDHC class 2 and write speed is excellent and much better than the class 2 card (and even slightly better than class 6 card), see also test here.
http://www.hjreggel.net/cardspeed/sp...cards-sdh.html

Write speed can be measured either by copying some big video over USB which is practical test where it really matters or by doing synthetic test via dd i.e. something like
Code:

s=$(date +%s) ;dd if=/dev/zero of=/media/mmcx/testfile bs=4096 count=20000 ; sync ; e=$(date +%s) ; echo $((e-s))
then just divide size (80 MB?) by the result in seconds

True that some SD cards may be of poor quality with pathetic write speed but fast sd cards are faster when writing then SDHC class 2 and may be cheaper since SDHC is still novelty and sell in lower volumes. Well at least this was true at the time I bought my card. When checking same shop today I see Transcend SDHC class 2 price dropped to be now lower than the 150x one (by approx $8, 4GB SD 150x ~= $58, 4GB class2 SDHC ~= $50) so this may not apply anymore.

When you are planning use cards for storing video and expect to write often to it, fast writes are important. In normal usage writing is not so frequent and read speed of all current cards is similar and good enough.

jpj 2007-05-07 23:36

Re: n800, SD, SDHC, and storage
 
I have a Kingston 8GB CL6 card on order and plan to benchmark it against my Patriot 8GB CL4. Even if there's no significant difference in the N800, I expect the speed bump will help bulk transfers via a PC hosted SDHC reader.

On a related note, Patriot's 16GB CL6 availability has been pushed back to this summer. My query in their support forum eventually prompted the following response:
Quote:

I have a date change. The 16GB most likely won't be available till the end of June in to August. Keep an eye out for it then.

linuxbear 2007-05-08 04:02

Re: n800, SD, SDHC, and storage
 
Quote:

Originally Posted by fcassia (Post 43359)
You are kidding, right? Because you DO know that flash memory has a limited number of read/write cycles, right? And you DO know that "defragmentation" is a very read/write intensive process, right?

You are also aware that in Flash cards are MEMORY and hence there is no SEEK TIME involved because it takes the same time to get data from memory position #1 as it does from memory position #3276864738, yes?

In short: running a "defrag" on a flash device is not only pointless, it will also reduce the life of your memory card. Brilliant!.

It might be safer to move it all to your linux desktop and then write it back to the chip. Once it is on the ext.xx or reiser FS it will be defragged.
My wife has been writing to SD cards so she can take music to work and play it on her Palm. She has had no trouble after almost 2 years. Flash cards will wear out in time, but we have not experienced any problems yet.
Also, I found a nice card reader which plugs into a USB port for less than 10 dollars US. It's made by "pqi genie" and will save your battery a bit as file x-fer is a power hungry process on a portable

Glen

fanoush 2007-05-08 05:45

Re: n800, SD, SDHC, and storage
 
Did the write test with Transcend 150x 4GB SD. When writing 160MB it took 25 seconds
Code:

Nokia-N800-10:~$ s=$(date +%s) ; dd if=/dev/zero of=/media/mmc2/test bs=4096 count=40000 ; sync ; e=$(date +%s) ; echo $((e-s))
40000+0 records in
40000+0 records out
25

This means N800 write speed including FAT filesystem overhead is approx. 6MB/s with this card.

Milhouse 2007-05-08 13:32

Re: n800, SD, SDHC, and storage
 
Fanoush - in this post I wrote 128MB in 20.64s to a Transcend Class 2 8GB card (6.4MB/s - same as your result 160/25=>6.4). However I'm not convinced this test is reliable due to the OS buffering writes, though I could be wrong. :)

fanoush 2007-05-08 14:06

Re: n800, SD, SDHC, and storage
 
the sync command flushes write buffers, you can also mount before test, measure start, do the write, umount (which flushes device buffers too) and measure end

EDIT: the difference is that I am writing to file so sync/umount should definitely make sure blocks are written. But anyway I would guess direct device i/o does not cache writes, that would be quite dangerous as devices can be removed anytime, it does cache reads however. BTW there is some file in /proc or /sys to flush such read buffers, I can dig it in mail, used it to debug my 'broken' mmcpluc 4GB card that works in everything else but N800.

aleksandyr 2007-05-08 15:28

Re: n800, SD, SDHC, and storage
 
My Connect3D 4GB non-SDHC card reads something in the 8-10MB/sec range, compared to my Kingston 2GB MMCMobile which reads in the 9-12MB/sec range.

Worth noting, I think, is that these cards are on sale again at ECost for $20. I'd be happy to post specific benchmarks and such: I'll also point at Dealram as where I keep finding cheap memory.

Write ~160MB: 65 seconds, 2.5MB/sec
Code:

Nokia-N800-10:~# s=$(date +%s) ; dd if=/dev/zero of=/media/mmc2/test bs=4096 count=40000 ; sync ; e=$(date +%s) ; echo $((e-s))
40000+0 records in
40000+0 records out
65

Read ~160MB: 17 seconds, 9.4MB/sec
Code:

Nokia-N800-10:~# s=$(date +%s) ; dd if=/dev/mmcblk1 of=/dev/null bs=4096 count=40000 ; sync ; e=$(date +%s) ; echo $((e-s))
40000+0 records in
40000+0 records out
17

Output in dmesg:
Code:

mmc1: clock 48000000Hz busmode 2 powermode 2 cs 0 Vdd 15 width 2                          timing 2
Somewhat related, today at work I plan to build a new kernel incorporating MPPE as well as the SDHC patches --- I'm also going to get a full suite of modules together for cifs, nfs, ext3, so forth, and so on. If anyone is interested, I'd be happy to post it up somewhere.

Also somewhat related, I might put together a Python script that will test your cards and upload benchmarks for you to a special site, if I'm bored enough at work :)

Milhouse 2007-05-08 15:56

Re: n800, SD, SDHC, and storage
 
Ouch - that WRITE speed is pretty slow! At least it confirms what Fanoush is saying that direct IO writes aren't buffered in which case the write speed can be guesstimated with a resonable degree of certainty.

Has anyone tested the write speed of a Class 4 or Class 6 SDHC card running in high-speed (48Mhz) mode?

The benchmark app might be quite useful! :)


All times are GMT. The time now is 03:50.

vBulletin® Version 3.8.8