Status
Brak możliwości dodawania odpowiedzi.

Silas Mariusz

rm -rf /
Help us, GOD!
5 Kwiecień 2008
10 437
2 641
405
Odznaki
205
Nowy Sącz
forum.qnap.net.pl
QNAP
TS-x77
Ethernet
1 GbE
Poz.
6
 
Symptoms
  • The NAS shows high memory use while Rtorrent 16 runs.
  • The memory figure of rtorrent grows while torrents download or seed.


Cause
rtorrent maps the parts of torrent files it reads and writes into memory: its piece cache. A limit caps it. By default, the limit is a quarter of the NAS's RAM, at least 512 and at most 2048 MiB. These mapped pages are disk cache: the system frees them when another program needs the memory, and rtorrent then reads them from disk again.

The piece cache is not all of rtorrent's memory. rtorrent also keeps memory for its peers, trackers and session, and every connection costs memory. More peers and slots mean more memory.


Resolution
  1. See what uses the memory. On the Dashboard, the Memory chart of the Processor and memory card shows what each program holds itself: rtorrent, Services and add-ons and Jobs. Mapped files in the key is the part rtorrent has mapped. The grey hatched background shows the whole NAS, without the disk cache.
    s11-memory-en.webp
  2. Read the piece cache. The rtorrent card on the Dashboard shows Piece cache: the memory in use and the limit.
  3. Lower the limit. Open Settings → Bandwidth & limits. In the Memory and files row, lower piece cache (MiB). 512 is the lowest value. Press Review & save and confirm the changes in the window that opens. rtorrent applies the new limit without a restart.
    s11-cache-en.webp
  4. Hold fewer peers. Lower max in the Public profile: peers per torrent and Private profile: peers per torrent rows of Settings → Connection profiles (press Custom… to see them).


Notice & Advise
  • The memory figure of rtorrent on the Services card includes the mapped files, so it reads higher than the chart.
  • On QuTS hero, the ZFS read cache counts as memory in use in the NAS figure.
  • A link profile and the proposals on the Performance page can change the piece cache. Both show the old and new value before anything changes.
  • A small cache can slow a fast line. In the package's own test over a full 1 Gbit/s line, a download took about twice as long with 512 MiB as with 2048 MiB.


Ref. links:
Rtorrent 16 guide: Control Center
 
Status
Brak możliwości dodawania odpowiedzi.