All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size
@ 2018-11-09 19:35 Jared Bents
  2018-11-09 19:35 ` [Buildroot] [PATCH v1 2/2] package/proftpd: add sendfile Jared Bents
  2018-11-09 20:40 ` [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size Arnout Vandecappelle
  0 siblings, 2 replies; 6+ messages in thread
From: Jared Bents @ 2018-11-09 19:35 UTC (permalink / raw)
  To: buildroot

Enables tunable buffer size as a compile time option

Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
---
 package/proftpd/Config.in  | 8 ++++++++
 package/proftpd/proftpd.mk | 4 ++++
 2 files changed, 12 insertions(+)

diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
index b615a5ff4c..51c795501e 100644
--- a/package/proftpd/Config.in
+++ b/package/proftpd/Config.in
@@ -65,4 +65,12 @@ config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_SQL
 	  Compile mod_quotatab with mod_quotatab_sql table.
 
 endif
+
+config BR2_PACKAGE_PROFTPD_BUFFER_SIZE
+	int "buffer size (0 for default)"
+	default "0"
+	help
+	  Compile ProFTPD with tunable buffer size. Size in
+	  bytes. 0 uses default size.
+
 endif
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index 8f3ff5088e..5ff0bc17e5 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -121,4 +121,8 @@ define PROFTPD_INSTALL_INIT_SYSTEMD
 		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/proftpd.service
 endef
 
+ifneq ($(BR2_PACKAGE_PROFTPD_BUFFER_SIZE),0)
+PROFTPD_CONF_OPTS += --enable-tunable-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)
+endif
+
 $(eval $(autotools-package))
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH v1 2/2] package/proftpd: add sendfile
  2018-11-09 19:35 [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size Jared Bents
@ 2018-11-09 19:35 ` Jared Bents
  2018-11-09 20:44   ` Arnout Vandecappelle
  2018-11-09 20:40 ` [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size Arnout Vandecappelle
  1 sibling, 1 reply; 6+ messages in thread
From: Jared Bents @ 2018-11-09 19:35 UTC (permalink / raw)
  To: buildroot

Enables sendfile as a compile time option

Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
---
 package/proftpd/Config.in  | 6 ++++++
 package/proftpd/proftpd.mk | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
index 51c795501e..ab3f0d3bf3 100644
--- a/package/proftpd/Config.in
+++ b/package/proftpd/Config.in
@@ -73,4 +73,10 @@ config BR2_PACKAGE_PROFTPD_BUFFER_SIZE
 	  Compile ProFTPD with tunable buffer size. Size in
 	  bytes. 0 uses default size.
 
+config BR2_PACKAGE_PROFTPD_SENDFILE
+	bool "sendfile support"
+	help
+	  Compile ProFTPD with sendfile. Sendfile implements
+	  zero-copy transfers.
+
 endif
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index 5ff0bc17e5..45bc13eafa 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -125,4 +125,8 @@ ifneq ($(BR2_PACKAGE_PROFTPD_BUFFER_SIZE),0)
 PROFTPD_CONF_OPTS += --enable-tunable-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)
 endif
 
+ifeq ($(BR2_PACKAGE_PROFTPD_SENDFILE),y)
+PROFTPD_CONF_OPTS += --enable-sendfile
+endif
+
 $(eval $(autotools-package))
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size
  2018-11-09 19:35 [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size Jared Bents
  2018-11-09 19:35 ` [Buildroot] [PATCH v1 2/2] package/proftpd: add sendfile Jared Bents
@ 2018-11-09 20:40 ` Arnout Vandecappelle
  2018-11-12 14:30   ` Jared Bents
  1 sibling, 1 reply; 6+ messages in thread
From: Arnout Vandecappelle @ 2018-11-09 20:40 UTC (permalink / raw)
  To: buildroot

 Hi Jared,

On 09/11/2018 20:35, Jared Bents wrote:
> Enables tunable buffer size as a compile time option
> 
> Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
> ---
>  package/proftpd/Config.in  | 8 ++++++++
>  package/proftpd/proftpd.mk | 4 ++++
>  2 files changed, 12 insertions(+)
> 
> diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
> index b615a5ff4c..51c795501e 100644
> --- a/package/proftpd/Config.in
> +++ b/package/proftpd/Config.in
> @@ -65,4 +65,12 @@ config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_SQL
>  	  Compile mod_quotatab with mod_quotatab_sql table.
>  
>  endif
> +
> +config BR2_PACKAGE_PROFTPD_BUFFER_SIZE
> +	int "buffer size (0 for default)"

 You should specify the unit here, so "buffer size in bytes".

> +	default "0"
> +	help
> +	  Compile ProFTPD with tunable buffer size. Size in
> +	  bytes. 0 uses default size.

 It's not very clear what this means. I like the text from [1], so the help text
could be something like:

	  By increasing the buffer size above the default of 1K,
	  proftpd reads and writes data in larger chunks, and makes
	  fewer expensive system calls. Use of this option to set buffer
	  sizes of 8K or more has been reported to drastically increase
	  transfer speeds (depending on network configurations).

	  0 uses the default size of 1024.

> +
>  endif
> diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
> index 8f3ff5088e..5ff0bc17e5 100644
> --- a/package/proftpd/proftpd.mk
> +++ b/package/proftpd/proftpd.mk
> @@ -121,4 +121,8 @@ define PROFTPD_INSTALL_INIT_SYSTEMD
>  		$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/proftpd.service
>  endef
>  
> +ifneq ($(BR2_PACKAGE_PROFTPD_BUFFER_SIZE),0)
> +PROFTPD_CONF_OPTS += --enable-tunable-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)

 Have you tested this? As far as I can see, the option is actually called
--enable-buffer-size. [1] indeed mentions --enable-tunable-buffer-size; I guess
that's either a mistake or from an earlier version, though.


 I've marked this patch as Changes Requested in patchwork. Could you send an
updated version?

 Regards,
 Arnout


> +endif
> +
>  $(eval $(autotools-package))
> 

[1] http://www.proftpd.org/docs/howto/BCP.html

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH v1 2/2] package/proftpd: add sendfile
  2018-11-09 19:35 ` [Buildroot] [PATCH v1 2/2] package/proftpd: add sendfile Jared Bents
@ 2018-11-09 20:44   ` Arnout Vandecappelle
  2018-11-12 14:52     ` Jared Bents
  0 siblings, 1 reply; 6+ messages in thread
From: Arnout Vandecappelle @ 2018-11-09 20:44 UTC (permalink / raw)
  To: buildroot



On 09/11/2018 20:35, Jared Bents wrote:
> Enables sendfile as a compile time option
> 
> Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
> ---
>  package/proftpd/Config.in  | 6 ++++++
>  package/proftpd/proftpd.mk | 4 ++++
>  2 files changed, 10 insertions(+)
> 
> diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
> index 51c795501e..ab3f0d3bf3 100644
> --- a/package/proftpd/Config.in
> +++ b/package/proftpd/Config.in
> @@ -73,4 +73,10 @@ config BR2_PACKAGE_PROFTPD_BUFFER_SIZE
>  	  Compile ProFTPD with tunable buffer size. Size in
>  	  bytes. 0 uses default size.
>  
> +config BR2_PACKAGE_PROFTPD_SENDFILE
> +	bool "sendfile support"
> +	help
> +	  Compile ProFTPD with sendfile. Sendfile implements
> +	  zero-copy transfers.

 Is there any reason to make this optional? sendfile has been supported in Linux
for ages. And anyway, the configure script checks that.

> +
>  endif
> diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
> index 5ff0bc17e5..45bc13eafa 100644
> --- a/package/proftpd/proftpd.mk
> +++ b/package/proftpd/proftpd.mk
> @@ -125,4 +125,8 @@ ifneq ($(BR2_PACKAGE_PROFTPD_BUFFER_SIZE),0)
>  PROFTPD_CONF_OPTS += --enable-tunable-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)
>  endif
>  
> +ifeq ($(BR2_PACKAGE_PROFTPD_SENDFILE),y)
> +PROFTPD_CONF_OPTS += --enable-sendfile

 If we indeed keep it optional, you should also add an explicit disable:

else
PROFTPD_CONF_OPTS += --disable-sendfile


 I have marked your patch as Changes Requested in patchwork, so unless you
resend it (with the fixes mentioned above), we will forget about it.

 Thank you!

 Regards,
 Arnout


 Regards,
 Arnout

> +endif
> +
>  $(eval $(autotools-package))
> 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size
  2018-11-09 20:40 ` [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size Arnout Vandecappelle
@ 2018-11-12 14:30   ` Jared Bents
  0 siblings, 0 replies; 6+ messages in thread
From: Jared Bents @ 2018-11-12 14:30 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

On Fri, Nov 9, 2018 at 2:40 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>
>  Hi Jared,
>
> On 09/11/2018 20:35, Jared Bents wrote:
> > Enables tunable buffer size as a compile time option
> >
> > Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
> > ---
> >  package/proftpd/Config.in  | 8 ++++++++
> >  package/proftpd/proftpd.mk | 4 ++++
> >  2 files changed, 12 insertions(+)
> >
> > diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
> > index b615a5ff4c..51c795501e 100644
> > --- a/package/proftpd/Config.in
> > +++ b/package/proftpd/Config.in
> > @@ -65,4 +65,12 @@ config BR2_PACKAGE_PROFTPD_MOD_QUOTATAB_SQL
> >         Compile mod_quotatab with mod_quotatab_sql table.
> >
> >  endif
> > +
> > +config BR2_PACKAGE_PROFTPD_BUFFER_SIZE
> > +     int "buffer size (0 for default)"
>
>  You should specify the unit here, so "buffer size in bytes".
>
> > +     default "0"
> > +     help
> > +       Compile ProFTPD with tunable buffer size. Size in
> > +       bytes. 0 uses default size.
>
>  It's not very clear what this means. I like the text from [1], so the help text
> could be something like:
>
>           By increasing the buffer size above the default of 1K,
>           proftpd reads and writes data in larger chunks, and makes
>           fewer expensive system calls. Use of this option to set buffer
>           sizes of 8K or more has been reported to drastically increase
>           transfer speeds (depending on network configurations).
>
>           0 uses the default size of 1024.
>

I'll update to include the units and the more informative help.

> > +
> >  endif
> > diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
> > index 8f3ff5088e..5ff0bc17e5 100644
> > --- a/package/proftpd/proftpd.mk
> > +++ b/package/proftpd/proftpd.mk
> > @@ -121,4 +121,8 @@ define PROFTPD_INSTALL_INIT_SYSTEMD
> >               $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/proftpd.service
> >  endef
> >
> > +ifneq ($(BR2_PACKAGE_PROFTPD_BUFFER_SIZE),0)
> > +PROFTPD_CONF_OPTS += --enable-tunable-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)
>
>  Have you tested this? As far as I can see, the option is actually called
> --enable-buffer-size. [1] indeed mentions --enable-tunable-buffer-size; I guess
> that's either a mistake or from an earlier version, though.
>

Yes, it looks like --enable-tunable-buffer-size is the older version.
 was looking at [1] when looking into adjusting the buffer size but it
looks like the package actually use --enable-buffer-size, I will
update to use --enable-buffer-size.

>
>  I've marked this patch as Changes Requested in patchwork. Could you send an
> updated version?
>
>  Regards,
>  Arnout
>
>
> > +endif
> > +
> >  $(eval $(autotools-package))
> >
>
> [1] http://www.proftpd.org/docs/howto/BCP.html

Thank you,
Jared

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Buildroot] [PATCH v1 2/2] package/proftpd: add sendfile
  2018-11-09 20:44   ` Arnout Vandecappelle
@ 2018-11-12 14:52     ` Jared Bents
  0 siblings, 0 replies; 6+ messages in thread
From: Jared Bents @ 2018-11-12 14:52 UTC (permalink / raw)
  To: buildroot

Hi Arnout,

On Fri, Nov 9, 2018 at 2:44 PM Arnout Vandecappelle <arnout@mind.be> wrote:
>
>
>
> On 09/11/2018 20:35, Jared Bents wrote:
> > Enables sendfile as a compile time option
> >
> > Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
> > ---
> >  package/proftpd/Config.in  | 6 ++++++
> >  package/proftpd/proftpd.mk | 4 ++++
> >  2 files changed, 10 insertions(+)
> >
> > diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
> > index 51c795501e..ab3f0d3bf3 100644
> > --- a/package/proftpd/Config.in
> > +++ b/package/proftpd/Config.in
> > @@ -73,4 +73,10 @@ config BR2_PACKAGE_PROFTPD_BUFFER_SIZE
> >         Compile ProFTPD with tunable buffer size. Size in
> >         bytes. 0 uses default size.
> >
> > +config BR2_PACKAGE_PROFTPD_SENDFILE
> > +     bool "sendfile support"
> > +     help
> > +       Compile ProFTPD with sendfile. Sendfile implements
> > +       zero-copy transfers.
>
>  Is there any reason to make this optional? sendfile has been supported in Linux
> for ages. And anyway, the configure script checks that.

I will update to include it in the default PROFTPD_CONF_OPTS and
remove the option.

>
> > +
> >  endif
> > diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
> > index 5ff0bc17e5..45bc13eafa 100644
> > --- a/package/proftpd/proftpd.mk
> > +++ b/package/proftpd/proftpd.mk
> > @@ -125,4 +125,8 @@ ifneq ($(BR2_PACKAGE_PROFTPD_BUFFER_SIZE),0)
> >  PROFTPD_CONF_OPTS += --enable-tunable-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)
> >  endif
> >
> > +ifeq ($(BR2_PACKAGE_PROFTPD_SENDFILE),y)
> > +PROFTPD_CONF_OPTS += --enable-sendfile
>
>  If we indeed keep it optional, you should also add an explicit disable:
>
> else
> PROFTPD_CONF_OPTS += --disable-sendfile
>
>
>  I have marked your patch as Changes Requested in patchwork, so unless you
> resend it (with the fixes mentioned above), we will forget about it.
>
>  Thank you!
>
>  Regards,
>  Arnout
>
>
>  Regards,
>  Arnout
>
> > +endif
> > +
> >  $(eval $(autotools-package))
> >

Thank you,
Jared

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-12 14:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-09 19:35 [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size Jared Bents
2018-11-09 19:35 ` [Buildroot] [PATCH v1 2/2] package/proftpd: add sendfile Jared Bents
2018-11-09 20:44   ` Arnout Vandecappelle
2018-11-12 14:52     ` Jared Bents
2018-11-09 20:40 ` [Buildroot] [PATCH v1 1/2] package/proftpd: add tunable buffer size Arnout Vandecappelle
2018-11-12 14:30   ` Jared Bents

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.