Join Today
+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 23
Like Tree2Likes

Thread: Defragmenting Memory card

  1. #11
    Join Date
    Jun 2008
    Location
    India
    Posts
    404

    Default

    Lolz i thought this an year before... n i ended up loosing all my information
    I got all my games deleted I don't knw y but this is what happened to my card
    Defragmenting only helps in pc not much in cellphones

  2. #12
    Join Date
    Feb 2008
    Location
    Auburn,NY
    Posts
    1,047

    Default

    Quote Originally Posted by aaunderscore View Post
    & do u know how to make a corrupted mmc working?
    i hve 2 gb mmc for rokr but it gets corrupted in 3-4 months.
    i really wanna use that.
    How corrupt is ur memory card ?
    Quote Originally Posted by wyrm View Post
    Have you really measured a performance gain after "defragmenting"???

    I really dont see how this could increase performance, TF/SD cards are SSDs, and dont have access delays for random reads like Hard Drives do. There are no moving parts, you dont need to have a "head" to seek for the start of the block like on Hard _Disks_.

    Also, by defragmenting your TF/SD card you will cause a lot of block erases (needed before write), and all erases will wear out your card, so defragmenting will in fact make your card die earlier.
    I totally agree Deragmenting has no use in the E6, maybe with phone that carry 8gb, 16b memory card but not in 2gb,

    Phone:Sony X1i Silver Limited Edition running @ 710mhz
    Rom: Dynamics GTX 2.2.0 W7U Edition(21689)
    DualBoot: Android 2.1 ,2.2, and 2.3

  3. #13
    Join Date
    Jul 2005
    Location
    Franconia
    Posts
    4,866

    Default

    Quote Originally Posted by Viper89 View Post
    I totally agree Deragmenting has no use in the E6, maybe with phone that carry 8gb, 16b memory card but not in 2gb,
    It has nothing todo with the size of the card. Defragmentation is only for hard disks.
    It is for NO use on flash memory cards.
    wyrm is right!

    /me in the process to replace the harddisk from my laptop with flash cards
    Last edited by swifty; 01-28-2009 at 07:54 PM.

  4. #14
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    387

    Default

    Quote Originally Posted by swifty View Post
    /me in the process to replace the harddisk from my laptop with flash cards
    Nice! This greatly improves performance and battery life
    Now, you have to pick the right SSDs, random small write(< 1 erase block) speed is the slowest operation and major factor when deciding for a branch, take a look at this blog post, it may help you to decide.. The author is very respected.

    Linus' blog: .. so I got one of the new Intel SSD's
    swifty likes this.
    If you use OpenEZX and want to support it, please click on "I USE THIS" on our ohloh project page: https://www.ohloh.net/projects/openezx

  5. #15
    Join Date
    Feb 2008
    Location
    Auburn,NY
    Posts
    1,047

    Talking

    Quote Originally Posted by swifty View Post
    It has nothing todo with the size of the card. Defragmentation is only for hard disks.
    It is for NO use on flash memory cards.
    wyrm is right!

    /me in the process to replace the harddisk from my laptop with flash cards
    I never said he wasn't right? Yes u are right, I was thinking of something different and it came out wrong
    Last edited by Viper89; 01-29-2009 at 03:29 AM.

    Phone:Sony X1i Silver Limited Edition running @ 710mhz
    Rom: Dynamics GTX 2.2.0 W7U Edition(21689)
    DualBoot: Android 2.1 ,2.2, and 2.3

  6. #16

    Default

    It's debatable that there is not performance gain at all. Moving parts are not there; given.

    But the access time should theoritically change if say
    1. 1gig of data is all in a continuous stream
    2. 1gig of data is strewn across the whole card in 200kb pieces. There still needs to be a resolution of the address of the next 200kb part, over 5000 times. All that logic takes time.

    Hope i'm making sense.
    Last edited by xetaman; 01-29-2009 at 08:43 AM.

  7. #17

    Default

    yes its not gonna increase d speed but its just help in optimizing...

  8. #18
    Join Date
    Jan 2007
    Location
    Brazil
    Posts
    387

    Default

    Quote Originally Posted by xetaman View Post
    It's debatable that there is not performance gain at all. Moving parts are not there; given.

    But the access time should theoritically change if say
    1. 1gig of data is all in a continuous stream
    2. 1gig of data is strewn across the whole card in 200kb pieces. There still needs to be a resolution of the address of the next 200kb part, over 5000 times. All that logic takes time.

    Hope i'm making sense.
    no, you are not

    Specifically in the case of TF/SD cards, where the card does wear levelling on hardware, "continuous" is not continuous at all.

    Also, with FAT filesystem, access is per block, not per stream, makes no difference if the data is contiguous, you will still read (file_size/block_size) blocks.

    Anyway, you can test this yourself, mount a FAT filesystem with syncronous access (to disable fs cache), and:
    Code:
    #change /tmp to your card mount point
    #create a contiguous file
    dd if=/dev/zero bs=1k count=1048572 of=/tmp/foo
    #measure reading time
    time dd=/tmp/foo of=/dev/null
    rm -f /tmp/foo
    #create a _very_ fragmented file
    dd if=/dev/zero bs=1k count=1048572 of=/tmp/foo &
    dd if=/dev/zero bs=1k count=1048572 of=/tmp/bar
    #measure reading time
    time dd=/tmp/foo of=/dev/null
    rm -f /tmp/foo /tmp/bar
    If you use OpenEZX and want to support it, please click on "I USE THIS" on our ohloh project page: https://www.ohloh.net/projects/openezx

  9. #19

    Default

    Quote Originally Posted by wyrm View Post
    no, you are not

    Specifically in the case of TF/SD cards, where the card does wear levelling on hardware, "continuous" is not continuous at all.

    Also, with FAT filesystem, access is per block, not per stream, makes no difference if the data is contiguous, you will still read (file_size/block_size) blocks.

    Anyway, you can test this yourself, mount a FAT filesystem with syncronous access (to disable fs cache), and:
    Code:
    #change /tmp to your card mount point
    #create a contiguous file
    dd if=/dev/zero bs=1k count=1048572 of=/tmp/foo
    #measure reading time
    time dd=/tmp/foo of=/dev/null
    rm -f /tmp/foo
    #create a _very_ fragmented file
    dd if=/dev/zero bs=1k count=1048572 of=/tmp/foo &
    dd if=/dev/zero bs=1k count=1048572 of=/tmp/bar
    #measure reading time
    time dd=/tmp/foo of=/dev/null
    rm -f /tmp/foo /tmp/bar

    I get what your are saying and it makes sense. But you are not considering the logic calculation bit. That the same number of blocks have to be read is given. It is the calculation of the address of those respective blocks that i'm talking about.

    In the case of a stream, it's always the next block. In the case of fragmented data, there is a pointer somewhere (either at the end of that block, or in a address table, fat, i guess), which needs to be referred and the destination calculated. This is what i think takes more time.

  10. #20

    Default

    Last edited by Konig; 01-30-2009 at 09:14 AM.
    -Remember me and smile, for it's better to forget than remember me and cry.-

    motomaster

    *Gone forever to come Back*


 
+ Reply to Thread
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 22
    Last Post: 07-20-2010, 05:46 PM
  2. how to transfer java app frm phone memory to memory card?
    By osmanrokr in forum E6 General Chat
    Replies: 0
    Last Post: 10-28-2008, 01:07 PM
  3. V9 memory card help
    By shoib in forum RAZR Series
    Replies: 0
    Last Post: 05-26-2008, 07:42 PM
  4. Help: Phone can not read SD card. Get "Memory card Unavailable"
    By julioszabo in forum A1200 General Chat
    Replies: 9
    Last Post: 02-28-2008, 12:49 AM
  5. Memory card Q
    By pyramis in forum E6 General Chat
    Replies: 2
    Last Post: 11-23-2007, 07:33 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Optimization by vBSEO 3.6.0 RC 1