mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-12 03:00:28 +00:00
net-p2p/qbittorrent: Adjust default settings when using libtorrent-rasterbar 2.x
* Disable memmory mapped file handling and use "POSIX-compliant"
* Backport commit 8bcac1bed28f93c0712e915f43294b1e5fd03659 which
reduces FilePoolSize
* Change status to experimental
This change only applies to new installs, if you have a configuration
already you need to apply these changes by hand
References:
8bcac1bed2
https://github.com/arvidn/libtorrent/issues/6667#issuecomment-1502670412
PR: 270765
Reviewed by: yuri (previous revision)
This commit is contained in:
parent
4fb2aac3d4
commit
d9bf924e99
@ -54,7 +54,7 @@ OPTIONS_DEFAULT= DBUS LIBTORRENT1
|
|||||||
|
|
||||||
LIBTORRENT_DESC= libtorrent version number to use
|
LIBTORRENT_DESC= libtorrent version number to use
|
||||||
LIBTORRENT1_DESC= Version 1.x (default)
|
LIBTORRENT1_DESC= Version 1.x (default)
|
||||||
LIBTORRENT2_DESC= Version 2.x (unstable, has memory issues)
|
LIBTORRENT2_DESC= Version 2.x (experimental)
|
||||||
|
|
||||||
DEBUG_CONFIGURE_ENABLE= debug
|
DEBUG_CONFIGURE_ENABLE= debug
|
||||||
DBUS_CONFIGURE_ENABLE= qt-dbus
|
DBUS_CONFIGURE_ENABLE= qt-dbus
|
||||||
@ -64,6 +64,7 @@ LIBTORRENT1_BUILD_DEPENDS= libtorrent-rasterbar>0:net-p2p/libtorrent-rasterbar
|
|||||||
LIBTORRENT1_RUN_DEPENDS= libtorrent-rasterbar>0:net-p2p/libtorrent-rasterbar
|
LIBTORRENT1_RUN_DEPENDS= libtorrent-rasterbar>0:net-p2p/libtorrent-rasterbar
|
||||||
LIBTORRENT2_BUILD_DEPENDS= libtorrent-rasterbar2>0:net-p2p/libtorrent-rasterbar2
|
LIBTORRENT2_BUILD_DEPENDS= libtorrent-rasterbar2>0:net-p2p/libtorrent-rasterbar2
|
||||||
LIBTORRENT2_RUN_DEPENDS= libtorrent-rasterbar2>0:net-p2p/libtorrent-rasterbar2
|
LIBTORRENT2_RUN_DEPENDS= libtorrent-rasterbar2>0:net-p2p/libtorrent-rasterbar2
|
||||||
|
LIBTORRENT2_EXTRA_PATCHES= ${FILESDIR}/extrapatch-libtorrent-rasterbar2-settings
|
||||||
|
|
||||||
PYTHON_DESC= Install Python to support some plugin functionality
|
PYTHON_DESC= Install Python to support some plugin functionality
|
||||||
PYTHON_USES= python:3.6+,run
|
PYTHON_USES= python:3.6+,run
|
||||||
|
@ -0,0 +1,17 @@
|
|||||||
|
--- src/base/bittorrent/sessionimpl.cpp.orig 2023-02-27 22:40:57 UTC
|
||||||
|
+++ src/base/bittorrent/sessionimpl.cpp
|
||||||
|
@@ -396,12 +396,12 @@ SessionImpl::SessionImpl(QObject *parent)
|
||||||
|
, m_announceToAllTiers(BITTORRENT_SESSION_KEY(u"AnnounceToAllTiers"_qs), true)
|
||||||
|
, m_asyncIOThreads(BITTORRENT_SESSION_KEY(u"AsyncIOThreadsCount"_qs), 10)
|
||||||
|
, m_hashingThreads(BITTORRENT_SESSION_KEY(u"HashingThreadsCount"_qs), 1)
|
||||||
|
- , m_filePoolSize(BITTORRENT_SESSION_KEY(u"FilePoolSize"_qs), 5000)
|
||||||
|
+ , m_filePoolSize(BITTORRENT_SESSION_KEY(u"FilePoolSize"_qs), 500)
|
||||||
|
, m_checkingMemUsage(BITTORRENT_SESSION_KEY(u"CheckingMemUsageSize"_qs), 32)
|
||||||
|
, m_diskCacheSize(BITTORRENT_SESSION_KEY(u"DiskCacheSize"_qs), -1)
|
||||||
|
, m_diskCacheTTL(BITTORRENT_SESSION_KEY(u"DiskCacheTTL"_qs), 60)
|
||||||
|
, m_diskQueueSize(BITTORRENT_SESSION_KEY(u"DiskQueueSize"_qs), (1024 * 1024))
|
||||||
|
- , m_diskIOType(BITTORRENT_SESSION_KEY(u"DiskIOType"_qs), DiskIOType::Default)
|
||||||
|
+ , m_diskIOType(BITTORRENT_SESSION_KEY(u"DiskIOType"_qs), DiskIOType::Posix)
|
||||||
|
, m_diskIOReadMode(BITTORRENT_SESSION_KEY(u"DiskIOReadMode"_qs), DiskIOReadMode::EnableOSCache)
|
||||||
|
, m_diskIOWriteMode(BITTORRENT_SESSION_KEY(u"DiskIOWriteMode"_qs), DiskIOWriteMode::EnableOSCache)
|
||||||
|
#ifdef Q_OS_WIN
|
Loading…
Reference in New Issue
Block a user