Den lör 12 juli 2025 kl 03:16 skrev H. Hartzer <h...@hartzer.sh>: > 7.7 has usually been pretty responsive for me, but I've had a few issues > here and there. Right now, my laptop with a decent SSD is very laggy > running aria2c on a large file (19GB.) aria2c is a downloader, like curl > or ftp, but good for cases where needing to resume a download is there. > > The lag seems to be in the "file allocation" stage. I assume this is > writing zeroes. I am using encryption through softraid, although I feel > that shouldn't have a huge impact. > Has anyone else run into this? Is it something that can be tuned for?
Should be easy for you to test at some partition without crypto, but I do seem to recall some part of the crypto layer being more synchronous than the upper filesystem layer would normally be, so it might just be that the part that takes your newly written all-zeroes sector and reencrypts it to xyzrwt789 then is less async than the layer above so when the number of outstanding async writes in the layer above hits its watermark and starts pushing those sectors down to the crypto layer, it becomes sync behaviour and you sort of lose the ability to reorder IO to suit your drive layout and whatever tricks a file system can do. Reading the file allocation part of the aria2 docs seems to hint that you need some extra support on your file system for it not to be really slow, https://aria2.github.io/manual/en/html/aria2c.html#cmdoption-file-allocation and its a good guess that FFS does not have those properties that aria2 would like to see, so your best bet might be to not do preallocation and just start writing the content. -- May the most significant bit of your life be positive.