aMule Forum

English => Feature requests => Topic started by: gnazio on April 09, 2012, 06:30:27 PM

Title: Increase File Buffer Size
Post by: gnazio on April 09, 2012, 06:30:27 PM
What about increasing the file buffer size limit?
The limit has been the same in about 10 years of development (considering emule too), and in the meanwhile PC's capacities (RAM/HD cache/...) are vastly improved.
Title: Re: Increase File Buffer Size
Post by: stoatwblr on April 15, 2012, 03:02:23 PM
I believe that's the amount held in ram before committing to disk.

Is tweaking that a good idea? Linux/BSD already has their own disk write buffering anyway.

Title: Re: Increase File Buffer Size
Post by: Stu Redman on April 15, 2012, 04:18:07 PM
It's hard to tweak, since I'm sure you won't notice any different behavior anyway.
And if you start with it, you need options to not waste4 memory on the embedded platforms and all that. I don't think it's worth the effort.
Title: Re: Increase File Buffer Size
Post by: darkbasic on May 23, 2012, 01:51:31 PM
It helps preserving disk health, with modern connections you can fill a 1.5MB buffer in less than a second and ram isn't a problem anymore. You can keep the default and let power users customize it.
Title: Re: Increase File Buffer Size
Post by: darkbasic on May 23, 2012, 06:58:45 PM
As I said you can keep the actual value as default but let peoples increase the buffer.
Title: Re: Increase File Buffer Size
Post by: ErstStavroBlofeld on February 05, 2022, 02:29:49 PM
For anybody who wants to change it:

Got to the src folder and open the files and search for this lines.
Change the 15000 to 90000 and you have a max Buffer of 9MiB instead of 1.5MiB

PrefsUnifiedDlg.cpp:   
Code: [Select]
label = CFormat(wxPLURAL("File Buffer Size: %d byte", "File Buffer Size: %d bytes",
        event.GetPosition() * 15000)) % (event.GetPosition() * 15000);


Preferences.h:
Code: [Select]
static uint32 GetFileBufferSize() { return s_iFileBufferSize*15000; }
static void SetFileBufferSize(uint32 val) { s_iFileBufferSize = val/15000; }
[code]

This value should be outplaced as a constant.