全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 3588|回复: 17
打印 上一主题 下一主题

盒子 qbittorrent,总是会爆内存到swap

[复制链接]
跳转到指定楼层
1#
发表于 2021-5-14 09:17:02 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

盒子 qbittorrent,总是会爆内存到swap.

感觉爆内存后,会卡好多,

已经设置了不使用系统缓存,并且缓存设置的8G




下面是我的配置文件
  1. [Application]
  2. FileLogger\Age=6
  3. FileLogger\AgeType=1
  4. FileLogger\Backup=true
  5. FileLogger\DeleteOld=true
  6. FileLogger\Enabled=true
  7. FileLogger\MaxSize=20
  8. FileLogger\Path=/home/

  9. [BitTorrent]
  10. Session\AnnounceToAllTiers=true
  11. Session\AsyncIOThreadsCount=16
  12. Session\CheckingMemUsageSize=32
  13. Session\ChokingAlgorithm=FixedSlots
  14. Session\CoalesceReadWrite=false
  15. Session\FilePoolSize=40
  16. Session\GuidedReadCache=true
  17. Session\MultiConnectionsPerIp=false
  18. Session\SeedChokingAlgorithm=FastestUpload
  19. Session\SendBufferLowWatermark=10
  20. Session\SendBufferWatermark=500
  21. Session\SendBufferWatermarkFactor=50
  22. Session\SocketBacklogSize=30
  23. Session\SuggestMode=false
  24. Session\uTPMixedMode=TCP

  25. [LegalNotice]
  26. Accepted=true

  27. [Preferences]
  28. %23Connection\InetAddress=1.1.1.1
  29. %23Connection\Interface=eth0
  30. %23Connection\InterfaceAddress=0.0.0.0
  31. %23Connection\InterfaceName=eth0
  32. Advanced\AnnounceToAllTrackers=false
  33. Advanced\RecheckOnCompletion=false
  34. Advanced\osCache=false
  35. Advanced\trackerPort=9000
  36. Bittorrent\AddTrackers=false
  37. Bittorrent\DHT=false
  38. Bittorrent\Encryption=1
  39. Bittorrent\LSD=false
  40. Bittorrent\MaxConnecs=-1
  41. Bittorrent\MaxConnecsPerTorrent=-1
  42. Bittorrent\MaxRatioAction=0
  43. Bittorrent\PeX=false
  44. Bittorrent\uTP=false
  45. Bittorrent\uTP_rate_limited=true
  46. Connection\GlobalDLLimit=0
  47. Connection\GlobalDLLimitAlt=0
  48. Connection\GlobalUPLimit=0
  49. Connection\GlobalUPLimitAlt=0
  50. Connection\PortRangeMin=9002
  51. Connection\ResolvePeerCountries=true
  52. Downloads\DiskWriteCacheSize=6000
  53. Downloads\DiskWriteCacheTTL=60
  54. Downloads\SavePath=/home//qbittorrent/download
  55. Downloads\SaveResumeDataInterval=3
  56. Downloads\ScanDirsV2=@Variant(\0\0\0\x1c\0\0\0\x1\0\0\0\x36\0/\0h\0o\0m\0\x65\0/\0p\0k\0w\0/\0q\0\x62\0i\0t\0t\0o\0r\0r\0\x65\0n\0t\0/\0w\0\x61\0t\0\x63\0h\0\0\0\x2\0\0\0\x1)
  57. Downloads\StartInPause=false
  58. Downloads\TorrentExportDir=/home//qbittorrent/torrent
  59. General\Locale=zh
  60. Queueing\QueueingEnabled=false
  61. WebUI\AlternativeUIEnabled=false
  62. WebUI\CSRFProtection=false
  63. WebUI\HostHeaderValidation=true
  64. WebUI\LocalHostAuth=true
  65. WebUI\Password_PBKDF2=
  66. WebUI\Password_ha1=
  67. WebUI\Port=2017
  68. WebUI\RootFolder=/opt/qBittorrent/WebUI/miniers.qb-web
  69. WebUI\Username=
复制代码


18#
 楼主| 发表于 2021-5-24 13:53:09 | 只看该作者
nightmare 发表于 2021-5-15 11:08
是hdd吧?查看一下硬盘io,应该是硬盘卡脖子了,网速太快,写不进硬盘?

有可能,下载突发70m/s


硬盘io I/O Speed(1st run)    : 97.6 MB/s
I/O Speed(2nd run)    : 207 MB/s
I/O Speed(3rd run)    : 206 MB/s
Average I/O speed     : 170.2 MB/s
17#
 楼主| 发表于 2021-5-24 13:51:16 | 只看该作者
6700 发表于 2021-5-23 12:35
楼主你qb使用的libtorrent版本分别是多少?我用deluge也遇到这个问题,我怀疑是libtorrent的bug ...

用的这个脚本
bash <(wget --no-check-certificate -qO- https://github.com/Aniverse/inexistence/raw/master/inexistence.sh) \
-y --tweaks   --no-swap --bbr  --no-system-upgrade --no-flexget --tr no --no-filebrowser \
--de no --rt no --qb 4.1.9 -u xxx -p xxx


后面把缓存设置改小到4G ,就没有爆内存了
16#
发表于 2021-5-23 12:35:27 | 只看该作者
楼主你qb使用的libtorrent版本分别是多少?我用deluge也遇到这个问题,我怀疑是libtorrent的bug
15#
发表于 2021-5-15 11:08:09 来自手机 | 只看该作者
是hdd吧?查看一下硬盘io,应该是硬盘卡脖子了,网速太快,写不进硬盘?
14#
发表于 2021-5-15 10:25:48 | 只看该作者
换版本试试,可能内存泄漏了
13#
 楼主| 发表于 2021-5-15 10:15:13 | 只看该作者
doruison 发表于 2021-5-15 10:10
看你内存多大,开了多数程序
我两台机器,一台欧盟4G,一台毛子512M,都是一样的ubuntu20.04
明明前者程序 ...

收到 ,谢谢老哥
12#
发表于 2021-5-15 10:10:23 | 只看该作者
Geekman 发表于 2021-5-15 09:09
不是说swap 关了 会有各种奇怪的错误么

看你内存多大,开了多数程序
我两台机器,一台欧盟4G,一台毛子512M,都是一样的ubuntu20.04
明明前者程序跑得多得多,一直没开swap也没事;后者一关就报错
11#
发表于 2021-5-15 09:10:01 | 只看该作者
QB的缓存会翻倍吃。我一般设置为内存/2 再减1-2G。看总内存大小,你这个情况我还没遇到过。设置6000居然爆了15G
10#
 楼主| 发表于 2021-5-15 09:09:12 | 只看该作者
ime 发表于 2021-5-14 15:11
把swap关了就行,swap那玩意其实没任何意义

不是说swap 关了 会有各种奇怪的错误么
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-1-14 08:21 , Processed in 0.062617 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表