It would be possible defrag NAND?

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

Jan 18, 2012
  1. OriginalHamster
    OP

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,281
    Country:
    Chile
    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

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,537
    Location:
    ???
    Country:
    Germany
    AFAIK you can't defrag it, and I suppose it would not help at all because it's a flash memory.
     
  3. DinohScene

    Member DinohScene The Gift of Dino

    Joined:
    Oct 11, 2011
    Messages:
    12,887
    Location:
    В небо
    Country:
    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

    Member Lucif3r GBAtemp Maniac

    Joined:
    Sep 10, 2011
    Messages:
    1,464
    Country:
    Sweden
    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

    Member PsyBlade Snake Charmer

    Joined:
    Jul 30, 2009
    Messages:
    2,204
    Location:
    Sol III
    Country:
    Germany
    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

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,281
    Country:
    Chile
    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

    Global Moderator FIX94 Global Moderator

    Joined:
    Dec 3, 2009
    Messages:
    6,537
    Location:
    ???
    Country:
    Germany
    That will come because you may still have the tickets installed, this can slow everything down.
     
  8. OriginalHamster
    OP

    Member OriginalHamster UStealthy

    Joined:
    Nov 2, 2008
    Messages:
    3,281
    Country:
    Chile
    Probably, I have like 100 titles installed =P
     
  9. Coto

    Member Coto GBAtemp Addict

    Joined:
    Jun 4, 2010
    Messages:
    2,277
    Country:
    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

    Member Hielkenator GBAtemp Psycho!

    Joined:
    Feb 7, 2010
    Messages:
    4,176
    Country:
    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

    Member giantpune GBAtemp Addict

    Joined:
    Apr 10, 2009
    Messages:
    2,860
    Country:
    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

    Member Coto GBAtemp Addict

    Joined:
    Jun 4, 2010
    Messages:
    2,277
    Country:
    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

    Member DeadlyFoez Banned

    Joined:
    Apr 12, 2009
    Messages:
    5,223
    Country:
    United States
    In My Honest Opinion
    :glare: noob

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

    Member Hielkenator GBAtemp Psycho!

    Joined:
    Feb 7, 2010
    Messages:
    4,176
    Country:
    Netherlands
    lol, thank you! ( lol = laughing out loud )


     
  15. Coto

    Member Coto GBAtemp Addict

    Joined:
    Jun 4, 2010
    Messages:
    2,277
    Country:
    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

    Member obcd GBAtemp Advanced Maniac

    Joined:
    Apr 5, 2011
    Messages:
    1,594
    Country:
    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.
     

Share This Page