FtpServer
  1. FtpServer
  2. FTPSERVER-48

Ability to change the size of the buffer when writing data on disk

    Details

    • Type: Wish Wish
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      All

      Description

      It could be a great benefit to be able to configure in parameters file (ftpd.conf ?) the size of the buffer to write on disk. The size of the buffer is 4096 and is hard coded in RequestHandler, I guess. Some FileSystem will be more performant with a different buffer size. Feel free to contact me if I'm not clear.

        Activity

        Hide
        Niklas Gustavsson added a comment -

        Hi Nicolas,

        could you give some examples of where you think that configuration option would make the most difference?

        Show
        Niklas Gustavsson added a comment - Hi Nicolas, could you give some examples of where you think that configuration option would make the most difference?
        Hide
        Nicolas FROMENT added a comment -

        First of all, I was wrong the default size is 4096 and not 512. Some time ago, I experiment performance issue with the ftpserver. It was 4 times slower than proftpd on the same computer. I look around the code. As I was previously implicated in a project with a lot of IO call, I knew that writing on disk with different buffer size (because of disk cluster size and/or because bigger the buffer is, fewer are the IO) we got different performance.
        I don't test it with the ftpserver code (I can't manage building it with maven... If someone can explain or point to a wiki page ). With the last binaries I download, it is still 4 times slower than proftpd.
        So, put the buffer size as a configuration parameter can help improving performance, and test it easily.

        Show
        Nicolas FROMENT added a comment - First of all, I was wrong the default size is 4096 and not 512. Some time ago, I experiment performance issue with the ftpserver. It was 4 times slower than proftpd on the same computer. I look around the code. As I was previously implicated in a project with a lot of IO call, I knew that writing on disk with different buffer size (because of disk cluster size and/or because bigger the buffer is, fewer are the IO) we got different performance. I don't test it with the ftpserver code (I can't manage building it with maven... If someone can explain or point to a wiki page ). With the last binaries I download, it is still 4 times slower than proftpd. So, put the buffer size as a configuration parameter can help improving performance, and test it easily.

          People

          • Assignee:
            Unassigned
            Reporter:
            Nicolas FROMENT
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development