I'm using aria2 on Mac OSX 10.6.8 and after something i'm obliged to kill aria2 because it's consume all available memory.
On mac platform you should disable the cache like this for the handle file:
fcntl(fd, F_GLOBAL_NOCACHE, 1)
Did you actually see that setting F_GLOBAL_NOCACHE to 1 fixed this issue?
I don't know much about Mac OS X file handling, but most operating systems cache file contents in itself (to share the data with other processes) rather than in individual user process. So if you see aria2 process consumes lots of memory, I think it is a memory leak of aria2.
how do we test this?
on my mac, running aria2 in rpc daemon mode, it seems to make the fan run full blast sometimes when downloading torrents. I assume this was due to writing large files all over but it has a SSD & plenty of memory.
Patch attached. Could you test aria2 and see that the issue is fixed with this patch?
The patch was applied and the current release has this. I close this issue for now.