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)

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


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

vBulletin® Version 3.8.8