* [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size
@ 2018-11-12 16:45 Jared Bents
2018-11-12 16:45 ` [Buildroot] [PATCH v2 2/2] package/proftpd: add sendfile Jared Bents
2018-11-12 23:56 ` [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size Arnout Vandecappelle
0 siblings, 2 replies; 5+ messages in thread
From: Jared Bents @ 2018-11-12 16:45 UTC (permalink / raw)
To: buildroot
Enable buffer size as a compile time option to change internal
buffer size.
Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
--
[v1->v2]:
- Update to enable-buffer-size instead of previous
enable-tunable-buffer-size.
- Update to the help information for added option to Config.in
and included units.
---
package/proftpd/Config.in | 13 +++++++++++++
package/proftpd/proftpd.mk | 4 ++++
2 files changed, 17 insertions(+)
diff --git a/package/proftpd/Config.in b/package/proftpd/Config.in
index b615a5ff4c..478a7e80e1 100644
--- a/package/proftpd/Config.in
+++ b/package/proftpd/Config.in
@@ -65,4 +65,17 @@ 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 in bytes (0 for default)"
+ default "0"
+ help
+ 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..324a602761 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-buffer-size=$(BR2_PACKAGE_PROFTPD_BUFFER_SIZE)
+endif
+
$(eval $(autotools-package))
--
2.18.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2 2/2] package/proftpd: add sendfile
2018-11-12 16:45 [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size Jared Bents
@ 2018-11-12 16:45 ` Jared Bents
2018-11-12 23:56 ` [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size Arnout Vandecappelle
1 sibling, 0 replies; 5+ messages in thread
From: Jared Bents @ 2018-11-12 16:45 UTC (permalink / raw)
To: buildroot
Enables sendfile to ProFTPD for zero-copy transfers.
Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
--
[v1->v2]:
- Removed option and made sendfile always enabled.
---
package/proftpd/proftpd.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/proftpd/proftpd.mk b/package/proftpd/proftpd.mk
index 324a602761..a228d58e03 100644
--- a/package/proftpd/proftpd.mk
+++ b/package/proftpd/proftpd.mk
@@ -20,6 +20,7 @@ PROFTPD_CONF_OPTS = \
--disable-ncurses \
--disable-facl \
--disable-dso \
+ --enable-sendfile \
--enable-shadow \
--with-gnu-ld
--
2.18.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size
2018-11-12 16:45 [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size Jared Bents
2018-11-12 16:45 ` [Buildroot] [PATCH v2 2/2] package/proftpd: add sendfile Jared Bents
@ 2018-11-12 23:56 ` Arnout Vandecappelle
2018-11-14 5:04 ` Baruch Siach
1 sibling, 1 reply; 5+ messages in thread
From: Arnout Vandecappelle @ 2018-11-12 23:56 UTC (permalink / raw)
To: buildroot
On 12/11/2018 17:45, Jared Bents wrote:
> Enable buffer size as a compile time option to change internal
> buffer size.
>
> Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
Both applied to next, thanks!
Regards,
Arnout
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size
2018-11-12 23:56 ` [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size Arnout Vandecappelle
@ 2018-11-14 5:04 ` Baruch Siach
2018-11-14 8:21 ` Arnout Vandecappelle
0 siblings, 1 reply; 5+ messages in thread
From: Baruch Siach @ 2018-11-14 5:04 UTC (permalink / raw)
To: buildroot
Hi Arnout,
On Tue, Nov 13, 2018 at 12:56:34AM +0100, Arnout Vandecappelle wrote:
> On 12/11/2018 17:45, Jared Bents wrote:
> > Enable buffer size as a compile time option to change internal
> > buffer size.
> >
> > Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
>
> Both applied to next, thanks!
Not in next as of commit 3db2ed427138f (python-cchardet: new package).
baruch
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size
2018-11-14 5:04 ` Baruch Siach
@ 2018-11-14 8:21 ` Arnout Vandecappelle
0 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2018-11-14 8:21 UTC (permalink / raw)
To: buildroot
On 14/11/2018 06:04, Baruch Siach wrote:
> Hi Arnout,
>
> On Tue, Nov 13, 2018 at 12:56:34AM +0100, Arnout Vandecappelle wrote:
>> On 12/11/2018 17:45, Jared Bents wrote:
>>> Enable buffer size as a compile time option to change internal
>>> buffer size.
>>>
>>> Signed-off-by: Jared Bents <jared.bents@rockwellcollins.com>
>>
>> Both applied to next, thanks!
>
> Not in next as of commit 3db2ed427138f (python-cchardet: new package).
Oops, I pushed to a local clone instead of to git.buildroot.org...
Done now.
Regards,
Arnout
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2018-11-14 8:21 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12 16:45 [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size Jared Bents
2018-11-12 16:45 ` [Buildroot] [PATCH v2 2/2] package/proftpd: add sendfile Jared Bents
2018-11-12 23:56 ` [Buildroot] [PATCH v2 1/2] package/proftpd: add enable buffer size Arnout Vandecappelle
2018-11-14 5:04 ` Baruch Siach
2018-11-14 8:21 ` Arnout Vandecappelle
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.