copy policy to prevent fragmentation

Discuss one of the most feature filled GameCube applications here :)
Post Reply
User avatar
eadmaster
Posts: 3
Joined: Wed Nov 16, 2011 2:43 am
Location: Italy
Contact:

copy policy to prevent fragmentation

Post by eadmaster » Wed Nov 16, 2011 2:58 am

Hi, i'm thinking about using a stack-like (LIFO) copy policy to prevent fragmentation on the SD:
1. format the SD
2. copy game A
3. copy game B
4. copy game C
etc., until the space is filled

later, if you need some free space always delete the latest games copied in reverse order.
(you better keep a list on a txt file to remember the copy order)

questions:
- Will this policy serve the purpose of preventing fragmentation?
- Can you suggest a better algorithm?
roubagalinhas
Posts: 17
Joined: Fri Aug 12, 2011 6:49 pm
Location: Braga, PT

Re: copy policy to prevent fragmentation

Post by roubagalinhas » Wed Nov 16, 2011 5:16 am

if you copy one game at a time it will eventually get fragmented, i've already tried that

just copy them all at once
User avatar
emu_kidid
Site Admin
Posts: 4951
Joined: Mon Mar 29, 2010 10:06 am
Location: Australia
Contact:

Re: copy policy to prevent fragmentation

Post by emu_kidid » Wed Nov 16, 2011 5:18 am

32gb card can fit about 40+ games (shrunk/etc), why ever copy again? ;)
Image
User avatar
liquitt
Posts: 1814
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: copy policy to prevent fragmentation

Post by liquitt » Wed Nov 16, 2011 8:46 am

eadmaster wrote:questions:
- Will this policy serve the purpose of preventing fragmentation?
- Can you suggest a better algorithm?
no and no.
the problem is in the filesystem and/or operating system itself so there's really no way to stop files from fragmentation. if you really want to have a go at this, you should start at the swiss source, not the other side ;)
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
User avatar
eadmaster
Posts: 3
Joined: Wed Nov 16, 2011 2:43 am
Location: Italy
Contact:

Re: copy policy to prevent fragmentation

Post by eadmaster » Thu Nov 17, 2011 5:05 am

uhm, maybe flash memory is different because of wear leveling.

So, the only "safe" way would be doing a clean format each time?
User avatar
liquitt
Posts: 1814
Joined: Thu Apr 01, 2010 5:43 am
Location: neverland

Re: copy policy to prevent fragmentation

Post by liquitt » Thu Nov 17, 2011 8:11 am

i don't think that you need a format every time you change the games. might be for flash memory but with HDD you sure don't need to, because i never did
please search before you ask - a lot has been discussed already!
(or use google with "site:gc-forever.com *term*")
http://is.gd/MDmZcr

we also have a wiki filled with knowledge
http://is.gd/dX58Rm
Post Reply