anonymous@RULINUX.NET~# Last login: 2024-04-26 03:22:24
Регистрация Вход Новости | Разметка | Пользователи | Галерея | Форум | Статьи | Неподтвержденное | Трекер | Правила форума | F.A.Q. | Ссылки | Поиск
[#] [Добавить метку] [Редактировать]
Скрыть

Мой rtorrent.rc

text

## Useful links                                                                                                
# https://github.com/rakshasa/rtorrent/wiki/Common-Tasks-in-rTorrent#move-completed-torrents-to-a-fixed-location
# https://wiki.archlinux.org/index.php/RTorrent                                                    
# https://rtorrent-docs.readthedocs.io/en/latest/use-cases.html#versatile-move                    
# New config syntax:                                                                              
# https://github.com/rakshasa/rtorrent/wiki/rTorrent-0.9-Comprehensive-Command-list-%28WIP%29      
#                                                                                                  
# INIT.D scripts                                                                                  
#   https://raw.githubusercontent.com/wolandmaster/luci-app-rtorrent/master/src/etc/init.d/rtorrent
#                                                                            
####                                                                        
                                                                             
                                                                             
# This is an example resource file for rTorrent. Copy to                    
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to        
# uncomment the options you wish to enable.                                                                                    
                                                                                                                               
# Maximum and minimum number of peers to connect to per torrent.                                                                
#min_peers = 40                                                                                                                        
#max_peers = 100                                                                                                                        
                                                                                                                                       
# Same as above but for seeding completed torrents (-1 = same as downloading)                                                          
#min_peers_seed = 10                                                                                                                    
#max_peers_seed = 50                                                                                                                    
                                                                                                                                       
# Maximum number of simultanious uploads per torrent.                                                                                  
#max_uploads = 15                                                                                                                                                                                              
                                                                                                                                                                                                               
                                                                                                                                                                                                               
# Global upload and download rate in KiB. "0" for unlimited.                                                                                                                                                    
download_rate = 96                                                                                                                                                                                              
upload_rate = 48                                                                                                                                                                                                
                                                                                                                                                                                                               
# default path for in progress downloads                                                                                                                                                                        
# directory = /overlay/home/rtorrent/incomplete                                                                                                                                                                
directory = /1TB/System/rtorrent/incomplete                                                                                                                                                                    
                                                                                                                                                                                                               
## [This config]                                                                                                                                                                                                
# New torrent files are watched in this location:                                                                                                                                                              
#   /overlay/Watch/{movies,music,other}/*.torrent / .bin                                                                                                                                                        
#                                                                                                                                                                                                              
# Complete downloads will be moved to                                                                                                                                                                          
#   /1TB/RT_Downloads/{movies,music,other}                                                                                                                                                                      
                                                                                                                                                                                                               
schedule = watch_directory_1,5,5,"load.start=/1TB/System/rtorrent/Watch/movies/*.torrent,d.custom1.set=/1TB/RT_Downloads/movies"                                                                                
schedule = watch_directory_2,5,5,"load.start=/1TB/System/rtorrent/Watch/music/*.torrent,d.custom1.set=/1TB/RT_Downloads/music"                                                                                  
schedule = watch_directory_3,5,5,"load.start=/1TB/System/rtorrent/Watch/other/*.torrent,d.custom1.set=/1TB/RT_Downloads/other"                                                                                  
schedule = watch_directory_4,5,5,"load.start=/1TB/System/rtorrent/Watch/audiobooks/*.torrent,d.custom1.set=/1TB/RT_Downloads/audiobooks"                                                                        
                                                                                                                                                                                                               
schedule = watch_directory_5,5,5,"load.start=/1TB/System/rtorrent/Watch/movies/*.bin,d.custom1.set=/1TB/RT_Downloads/movies"                                                                                    
schedule = watch_directory_6,5,5,"load.start=/1TB/System/rtorrent/Watch/music/*.bin,d.custom1.set=/1TB/RT_Downloads/music"                                                                                      
schedule = watch_directory_7,5,5,"load.start=/1TB/System/rtorrent/Watch/other/*.bin,d.custom1.set=/1TB/RT_Downloads/other"                                                                                      
schedule = watch_directory_8,5,5,"load.start=/1TB/System/rtorrent/Watch/audiobooks/*.bin,d.custom1.set=/1TB/RT_Downloads/audiobooks"                                                                            
                                                                                                                                                                                                               
method.insert = d.get_data_full_path, simple, "branch=((d.is_multi_file)),((cat,(d.directory))),((cat,(d.directory),/,(d.name)))"                                                                              
method.insert = d.move_to_complete, simple, "execute=mkdir,-p,$argument.1=; execute=cp,-rp,$argument.0=,$argument.1=; d.stop=; d.directory.set=$argument.1=; d.start=;d.save_full_session=; execute=rm, -r, $arg
method.set_key = event.download.finished,move_complete,"d.move_to_complete=$d.get_data_full_path=,$d.custom1="                                                                                                
                                                                                                                                                                                                               
#                                                                                                                                                                                                              
#schedule = rss_downloader,300,300,"execute=/usr/lib/lua/rss_downloader.lua"                                                                                                                                  
                                                                                     
                                                                                                                                                                                                               
# [About schedules]                                                                                                                                                                                            
#                                                                                                                                                                                                              
# schedule a timer event named 'watch_directory_1':                                                                                                                                                            
# 1) triggers 10 seconds after rtorrent starts                                                                                                                                                                  
# 2) triggers at 10 second intervals thereafter                                                                                                                                                                
# 3) Upon trigger, attempt to load (and start) new *.torrent files found in /home/user/torrents/watch/                                                                                                          
# 4) set a variable named 'custom1' with the value "/home/user/torrents/complete"                                                                                                                              
# NOTE: if you do not want it to automatically start the torrent, change 'load.start' to 'load'                                                                                                                
#   schedule = watch_directory_1,10,10,"load.start=/home/user/torrents/watch/*.torrent,d.set_custom1=/home/user/torrents/complete"                                                                              
#                                                                                                                                                                                                              
# upon completion, move content to path specified above via custom1                                                                                                                                            
#   method.insert = d.get_data_full_path, simple, "branch=((d.is_multi_file)),((cat,(d.directory))),((cat,(d.directory),/,(d.name)))"                                                                          
#   method.insert = d.move_to_complete, simple, "execute=mkdir,-p,$argument.1=; execute=cp,-rp,$argument.0=,$argument.1=; d.stop=; d.directory.set=$argument.1=; d.start=;d.save_full_session=; execute=rm, -r,
#   method.set_key = event.download.finished,move_complete,"d.move_to_complete=$d.get_data_full_path=,$d.custom1="                                                                                              
                                                                                                                                                                                                               
# Close torrents when diskspace is low.                                                                                                                                                                        
# Arch: schedule2 = low_diskspace,5,60,((close_low_diskspace,100M))                                                                                                                                            
schedule = low_diskspace,5,60,close_low_diskspace=16G                                                                                                                                                          
                                                                                                                                                                                                               
# Alternative calls to bind and ip that should handle dynamic ip's.                                                                                                                                            
#schedule = ip_tick,0,1800,ip=rakshasa                                                                                                                                                                          
#schedule = bind_tick,0,1800,bind=rakshasa                                                                                                                                                                      
                                                                                                                                                                                                               
                                                                                                                                                                                                               
# Default session directory. Make sure you don't run multiple instance                                                                                                                                          
# of rtorrent using the same session directory. Perhaps using a                                                                                                                                                
# relative path?                                                                                                                                                                                                
session.path.set = /1TB/System/rtorrent/sessions                                                                                                                                                                
                                                                                                                                                                                                               
                                                                                                                                                                                                               
# The ip address the listening socket and outgoing connections is                                                                                                                                              
# bound to.                                                                                                                                                                                                    
#bind = 127.0.0.1                                                                                                                                                                                              
#bind = rakshasa.no                                                                                                                                                                                            
                                                                                                                                                                                                               
# Port range to use for listening.                                                                                                                                                                              
#port_range = 6890-6999                                                                                                                                                                                        
network.port_range.set = 6890-6891                                                                                                                                                                              
                                                                                                                                                                                                               
                                                                                                                                                                                                               
# Start opening ports at a random position within the port range.                                                                                                                                              
#port_random = no                                                                                                                                                                                              
network.port_random.set = yes                                                                                                                                                                                  
                                                                                                                                                                                                               
# Check hash for finished torrents. Might be usefull until the bug is                                                                                                                                          
# fixed that causes lack of diskspace not to be properly reported.                                                                                                                                              
#check_hash = no                                                                                                                                                                                                
check_hash = yes                                                                                                                                                                                                
                                                                                                                                                                                                               
# Set whether the client should try to connect to UDP trackers.                                                                                                                                                
#   Obsolete syntax leads to error Command "use_udp_trackers" does not exist.                                                                                                                                  
#   use_udp_trackers = yes                                                                                                                                                                                      
trackers.use_udp.set = yes                                                                                                                                                                                      
                                                                                                                                                                                                               
# Encryption options, set to none (default) or any combination of the following:                                                                                                                                
# allow_incoming, try_outgoing, require, require_RC4, enable_retry, prefer_plaintext                                                                                                                          
#                                                                                                                                                                                                              
# The example value allows incoming encrypted connections, starts unencrypted                                                                                                                                  
# outgoing connections but retries with encryption if they fail, preferring                                                                                                                                    
# plaintext to RC4 encryption after the encrypted handshake                                                                                                                                                    
#                                                                                                                                                                                                              
# encryption = allow_incoming,enable_retry,prefer_plaintext                                                                                                                                                    
# encryption = allow_incoming,try_outgoing,enable_retry,prefer_plaintext                                                                                                                                      
encryption = require                                                                                                                                                                                          
                                                                                                                                                                                                               
# Enable DHT support for trackerless torrents or when all trackers are down.                                                                                                                                  
# May be set to "disable" (completely disable DHT), "off" (do not start DHT),                                                                                                                                  
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately).                                                                                                                                      
# The default is "off". For DHT to work, a session directory must be defined.                                                                                                                                  
#                                                                                                                                                                                                              
dht = auto                                                      
dht_port = 6881                                                                                                                                                                                                
                                                                                                                                                                                                               
# Enable peer exchange (for torrents not marked private)                                                                                                                                                        
#    Obsolete syntax, not working:                                                                                                                                                                              
#    peer_exchange = yes                                                                                                                                                                                        
protocol.pex.set = yes                                                                                                                                                                                          
                                                                                                                                                                                                               
#scgi_port = 127.0.0.1:5000                                                                                                                                                                                    
network.scgi.open_port = 127.0.0.1:5000                                                                                                                                                                        
                                                                                                                                                                                                               
                                                                                                                                                                                                               
log.execute = /1TB/System/rtorrent/rtorrent.log                                                                                                                                                                
                                                                                                                                                                                                               
#session_save = yes                                                                                                                                                                                            
                                                                                                                                                                                                               
                                                                                                                                                                                                               
## [Tuning]
#
# я бы добавил, что стоит потюнить конфиг rtorrent. у меня при стандартных настройках он не влезал в 512мб памяти, выдавал спустя некоторое время File chunk write error: Cannot allocate memory
# происходит это когда много используется слотов закачки/отдачи — дефолтные значения буферов по 4мб, простая калькуляция показывает, что при 100 активных слотах уже откушается 400мб памяти.
# чтобы избежать данной проблемы выставляем в конфиге
#        send_buffer_size = 1M
#        receive_buffer_size = 1M
# (c) https://habrahabr.ru/post/88405/        

                                                                                                                                                                                                               
#send_buffer_size = 1M                                                                                                                                                                                          
#receive_buffer_size = 1M                                                                                                                                                                                      
network.send_buffer.size.set    = 1M                                                                                                                                                                            
network.receive_buffer.size.set = 1M                                                                                                                                                                            
network.tos.set = throughput                                                                                                                                                                                    
                                                                                                                                                                                                               
encoding.add = UTF-8                                  

 

anonymous(*) (2019-08-05 17:50:09)
Отредактировано anonymous по причине "не указана"
Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

[Ответить на это сообщение]
Этот тред читают 1 пользователь:
Анонимных: 1
Зарегистрированных: 0




(c) 2010-2020 LOR-NG Developers Group
Powered by TimeMachine

Valid HTML 4.01 Transitional Правильный CSS!