It would be possible defrag NAND?

Discussion in 'Wii - Hacking' started by OriginalHamster, Jan 18, 2012.

  1. OriginalHamster
    OP

    OriginalHamster UStealthy

    Member
    3,381
    641
    Nov 2, 2008
    Cote d'Ivoire
    Just wondering if it's would be possible, I just check my files with GiantPune NAND extractor tool and I saw how scatered my files are.
    Could a defrag help to improve speed? My Wii is getting very slow to show the channels installed.
     
  2. FIX94

    FIX94 Global Moderator

    Global Moderator
    6,804
    8,098
    Dec 3, 2009
    Germany
    ???
    AFAIK you can't defrag it, and I suppose it would not help at all because it's a flash memory.
     
  3. DinohScene

    DinohScene DinohScene <З MartyDreamy

    Member
    GBAtemp Patron
    DinohScene is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    14,826
    11,184
    Oct 11, 2011
    Antarctica
    В небо
    You won't have any speed improvements with it.
    Besides it reduces the life of the NAND by unnecessary write cycles.

    The same goes for SDD's.
    The amount of fragmentation hardly makes a diffirence.
     
  4. Lucif3r

    Lucif3r GBAtemp Maniac

    Member
    1,464
    78
    Sep 10, 2011
    No, a NAND isnt affected by fragmentation as such. Main reason a normal HDD gets affected by fragmentation is because the head needs to move a lot more. Solid State chips dont.


    edit: bastards, ninja'd by 2 other lurkers ^..^
     
  5. PsyBlade

    PsyBlade Snake Charmer

    Member
    2,204
    254
    Jul 30, 2009
    Gambia, The
    Sol III
    a conventional defrag algorithems will inflict much more harm than good on flash
    but under certain circumstances a specialised flash defrag could help, but I don't know the wiis details
    the tool would need to be made to fit to the wiis nand anyway and there is none and probably never will be
     
  6. OriginalHamster
    OP

    OriginalHamster UStealthy

    Member
    3,381
    641
    Nov 2, 2008
    Cote d'Ivoire
    I wonder why some Wiis are faster, my nephew Wii load the channels in settings menu very fast, mine takes about 11 seconds, even I have few channels installed on NAND, I store my VC/WiiWare in the SD.
     
  7. FIX94

    FIX94 Global Moderator

    Global Moderator
    6,804
    8,098
    Dec 3, 2009
    Germany
    ???
    That will come because you may still have the tickets installed, this can slow everything down.
     
  8. OriginalHamster
    OP

    OriginalHamster UStealthy

    Member
    3,381
    641
    Nov 2, 2008
    Cote d'Ivoire
    Probably, I have like 100 titles installed =P
     
  9. Coto

    Coto GBAtemp Addict

    Member
    2,331
    381
    Jun 4, 2010
    Chile
    Do a format, it's simple.

    Build a completely new NAND from scratch, using ohneschwanzenegger.
    (grab dead sectors & setting.txt [region,serial, hw strings?] from your NAND backup so you don't have trouble getting WIFI to work once you rewrote the new NAND).
    There are various tutorials around here, and once you're done, rewrite the fresh NAND with bootmii.

    ps: of course this means you'd have to backup everything, savefiles, wads, etc.
     
  10. Hielkenator

    Hielkenator GBAtemp Psycho!

    Member
    4,219
    385
    Feb 7, 2010
    Netherlands
    A "normal" Wii system format will suffice.
    There's no need for 'Punes tools in this case and is probably overkill IMHO.
     
  11. giantpune

    giantpune GBAtemp Addict

    Member
    2,860
    122
    Apr 10, 2009
    United States
    my tool will also fragment the files it writes. it will a random sector, and then put as much of that file as it can on the same block as that sector. if the file is bigger than the free space on that block, it will pick another random one.
     
  12. Coto

    Coto GBAtemp Addict

    Member
    2,331
    381
    Jun 4, 2010
    Chile
    If you're going as far as doing a "normal" wii format, most likely you'll have to reinstall all VC channels again, however I don't know if a system format will do side effects if you erase a forced installation through WAD (TMD, tickets...). If you're going that far, it's much better to build a new system menu from scratch, just install everything and restore WADs like you should do.

    Also, IIRC originalhamster had a boot2 bugged wii...

    Sorry, I don't spend that much time on internet to know what is IMHO, and who cares anyway
     
  13. DeadlyFoez

    DeadlyFoez Banned!

    Member
    5,356
    1,331
    Apr 12, 2009
    United States
    In My Honest Opinion
    :glare: noob

    j/k :D
     
    1 person likes this.
  14. Hielkenator

    Hielkenator GBAtemp Psycho!

    Member
    4,219
    385
    Feb 7, 2010
    Netherlands
    lol, thank you! ( lol = laughing out loud )


     
  15. Coto

    Coto GBAtemp Addict

    Member
    2,331
    381
    Jun 4, 2010
    Chile
    But if a NAND is built from scratch, we will forget wrong, old tickets lying around (whose deleting with anytitler could lead to a permanent brick anyway).

    And like others said, defrag flash memory will waste write cicles (as the lifespan of a flash mem depends on the times you write per block)
     
  16. obcd

    obcd GBAtemp Advanced Maniac

    Member
    1,594
    278
    Apr 5, 2011
    Belgium
    A good flash implementation is suposed to keep track of the number of erase cycles performed on every block. It should try to keep those numbers as small as possible, and equaly divided. As a nand flash chip is purely a memory chip, reading from one sector to another doesn't take time like on a normal harddisk. In case of a normal harddisk, the read write haeds need to be displaced which take time, and very likely the newly requested sector won't be cached, so the disk electronics will need to read it from the platters. While it looks ugly to see your files spread over your nand chip sectors, it doesn't affect speed. Every time the system menu loads, all tickets are checked, and the existence of the titles for it are checked as well to see if they are channels that should be displayed on the system menu. So, if some garbae is left in those folders, it might slowdown things.