Opened 3 years ago

Last modified 3 years ago

#2363 new enhancement

I2PSnark: New method required to create files.

Reported by: lg Owned by: zzz
Priority: minor Milestone: undecided
Component: apps/i2psnark Version: 0.9.37
Keywords: Cc:
Parent Tickets: Sensitive: no


I2PSnark creates new files by padding them with zeros.
This is no longer tenable today.
We're dealing with file sizes from 10GB to 30GB and more.
The IO load rises from under one in normal operation to over 50,
which causes the whole system to stagnate and even freeze temporarily from the user's point of view.
An alternative to the FAT routine is urgently needed. BiglyBT even has a special switch for creating on XFS file systems.


Change History (1)

comment:1 Changed 3 years ago by zzz

Yeah I've especially seen issues on a RPi with a slow SD card (although the code says we don't do this on ARM so not sure what's going on). Looks like we only do this on Linux and Mac. We don't need to do this for solid state disks but there's no way to know that from Java. I also looked at adding a check of free space on the partition instead of just creating the full file. There may be other mechanisms available in Java 7 or later. It's not about FAT but about preventing fragmentation.

Note: See TracTickets for help on using tickets.